@@ -222,12 +222,13 @@ spec:
222
222
namespace: default
223
223
name: pi-calculation
224
224
conditionRules:
225
- - type: WellKnownCompletions
225
+ - type: WellKnownConditions
226
+ condition: Complete
226
227
` ` `
227
228
228
229
# ## Well-Known Completions
229
230
230
- For common Kubernetes resources, you can use the `WellKnownCompletions ` type which provides
231
+ For common Kubernetes resources, you can use the `WellKnownConditions ` type which provides
231
232
built-in completion logic :
232
233
233
234
**Job Completion**: A Job is considered complete when it has a condition of type `Complete` or `Failed`
@@ -243,7 +244,8 @@ manifestConfigs:
243
244
namespace: default
244
245
name: my-job
245
246
conditionRules:
246
- - type: WellKnownCompletions
247
+ - type: WellKnownConditions
248
+ condition: Complete
247
249
` ` `
248
250
249
251
# ## Custom CEL Expressions
@@ -301,7 +303,8 @@ spec:
301
303
namespace: default
302
304
name: my-job
303
305
conditionRules:
304
- - type: WellKnownCompletions
306
+ - type: WellKnownConditions
307
+ condition: Complete
305
308
` ` `
306
309
307
310
**Important Notes:**
@@ -325,16 +328,16 @@ Completion status is reflected in both manifest-level and `ManifestWork`-level c
325
328
status:
326
329
conditions:
327
330
- lastTransitionTime: "2025-02-20T18:53:40Z"
328
- message: "All manifests with completion rules are complete "
329
- reason: "ConditionRulesPassed "
331
+ message: "Job is finished "
332
+ reason: "ConditionRulesAggregated "
330
333
status: "True"
331
334
type: Complete
332
335
resourceStatus:
333
336
manifests:
334
337
- conditions:
335
338
- lastTransitionTime: "2025-02-20T19:12:22Z"
336
339
message: "Job is finished"
337
- reason: "ConditionRulesPassed "
340
+ reason: "ConditionRuleEvaluated "
338
341
status: "True"
339
342
type: Complete
340
343
resourceMeta:
@@ -347,6 +350,8 @@ status:
347
350
version: v1
348
351
` ` `
349
352
353
+ All conditions with the same type from manifest-level are aggregated to `ManifestWork`-level status.conditions.
354
+
350
355
# ## Multiple Condition Types
351
356
352
357
You can define multiple condition rules for different condition types on the same manifest :
@@ -412,7 +417,8 @@ spec:
412
417
namespace: default
413
418
name: data-migration
414
419
conditionRules:
415
- - type: WellKnownCompletions
420
+ - type: WellKnownConditions
421
+ condition: Complete
416
422
` ` `
417
423
418
424
**Run a Job and clean up after 30 seconds:**
@@ -448,7 +454,8 @@ spec:
448
454
namespace: default
449
455
name: temp-task
450
456
conditionRules:
451
- - type: WellKnownCompletions
457
+ - type: WellKnownConditions
458
+ condition: Complete
452
459
` ` `
453
460
454
461
# # Garbage collection
0 commit comments