From 1a33ace37bc73cdffb0e2165ed1b8e8524640f29 Mon Sep 17 00:00:00 2001 From: zhujian Date: Fri, 18 Jul 2025 16:14:18 +0800 Subject: [PATCH 1/2] docs(manifestwork): use manualSelector in Job example to avoid immutable field error Signed-off-by: zhujian --- content/en/docs/concepts/work-distribution/manifestwork.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/content/en/docs/concepts/work-distribution/manifestwork.md b/content/en/docs/concepts/work-distribution/manifestwork.md index efb0e8316..6c58a9343 100644 --- a/content/en/docs/concepts/work-distribution/manifestwork.md +++ b/content/en/docs/concepts/work-distribution/manifestwork.md @@ -207,7 +207,14 @@ spec: name: pi-calculation namespace: default spec: + manualSelector: true + selector: + matchLabels: + job: pi-calculation template: + metadata: + labels: + job: pi-calculation spec: containers: - name: pi From 9b99e25538b8f6f0caf9530203480d964bfad815 Mon Sep 17 00:00:00 2001 From: zhujian Date: Fri, 18 Jul 2025 16:30:18 +0800 Subject: [PATCH 2/2] docs(manifestwork): fix celExpressions example to use string array per API spec Signed-off-by: zhujian --- .../docs/concepts/work-distribution/manifestwork.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/en/docs/concepts/work-distribution/manifestwork.md b/content/en/docs/concepts/work-distribution/manifestwork.md index 6c58a9343..3de3eab79 100644 --- a/content/en/docs/concepts/work-distribution/manifestwork.md +++ b/content/en/docs/concepts/work-distribution/manifestwork.md @@ -270,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' - ) + - | + 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" ```