Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions content/en/docs/concepts/work-distribution/manifestwork.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,14 @@ spec:
name: pi-calculation
namespace: default
spec:
manualSelector: true
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix error:

Failed to apply manifest: Job.batch "pi-calculation" is invalid:
          [spec.selector: Required value, spec.template.metadata.labels: Invalid value:
          map[string]string(nil): `selector` does not match template `labels`, spec.selector:
          Invalid value: "null": field is immutable

selector:
matchLabels:
job: pi-calculation
template:
metadata:
labels:
job: pi-calculation
spec:
containers:
- name: pi
Expand Down Expand Up @@ -263,12 +270,12 @@ manifestConfigs:
- condition: Complete
type: CEL
celExpressions:
- expression: |
object.status.conditions.filter(
c, c.type == 'Complete' || c.type == 'Failed'
).exists(
c, c.status == 'True'
)
- |
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix error:

Error from server (BadRequest): error when creating "cel.yaml": ManifestWork in version "v1" cannot be handled as a ManifestWork: strict decoding error: unknown field "spec.manifestConfigs[0].conditionRules[0].celExpressions[0].expression"

object.status.conditions.filter(
c, c.type == 'Complete' || c.type == 'Failed'
).exists(
c, c.status == 'True'
)
messageExpression: |
result ? "Custom resource is complete" : "Custom resource is not complete"
```
Expand Down