@@ -577,17 +577,12 @@ to meet the above use cases. This policy can handle Job successes based on the
577
577
number of succeeded pods. After the Job meet success policy, the lingering Pods
578
578
are terminated by the Job controller.
579
579
580
- When you specify the only `.spec.successPolicy.rules[*].succeededIndexes`,
580
+ * When you specify the only `.spec.successPolicy.rules[*].succeededIndexes`,
581
581
once all indexes specified in the `succeededIndexes` succeeded, the Job is marked as succeeded.
582
- The `succeededIndexes` must be a list within 0 to `.spec.completions-1` and
583
- must not contain duplicate indexes. The `succeededIndexes` is represented as intervals separated by a hyphen.
584
- The number are listed in represented by the first and last element of the series, separated by a hyphen.
585
- For example, if you want to specify 1, 3, 4, 5 and 7, the `succeededIndexes` is represented as `1,3-5,7`.
586
-
587
- When you specify the only `spec.successPolicy.rules[*].succeededCount`,
582
+ The `succeededIndexes` must be a list of intervals between 0 and `.spec.completions-1`.
583
+ * When you specify the only `spec.successPolicy.rules[*].succeededCount`,
588
584
once the number of succeeded indexes reaches the `succeededCount`, the Job is marked as succeeded.
589
-
590
- When you specify both `succeededIndexes` and `succeededCount`,
585
+ * When you specify both `succeededIndexes` and `succeededCount`,
591
586
once the number of succeeded indexes specified in the `succeededIndexes` reaches the `succeededCount`,
592
587
the Job is marked as succeeded.
593
588
@@ -600,7 +595,10 @@ Here is a manifest for a Job with `successPolicy`:
600
595
601
596
In the example above, the rule of the success policy specifies that
602
597
the Job should be marked succeeded and terminate the lingering Pods
603
- if one of the 0, 1, and 2 indexes succeeded.
598
+ if one of the 0, 2, and 3 indexes succeeded.
599
+
600
+ Note that the `succeededIndexes` is represented as intervals separated by a hyphen.
601
+ The number are listed in represented by the first and last element of the series, separated by a hyphen.
604
602
605
603
{{< note >}}
606
604
When you specify both a success policy and some terminating policies such as `.spec.backoffLimit` and `.spec.podFailurePolicy`,
0 commit comments