Skip to content

Commit 67818ee

Browse files
authored
Merge pull request #4149 from kannon92/cleanup-pod-replacement-policy-for-beta
update 3939 with some items for beta.
2 parents f5fef77 + b9c7772 commit 67818ee

File tree

1 file changed

+17
-14
lines changed
  • keps/sig-apps/3939-allow-replacement-when-fully-terminated

1 file changed

+17
-14
lines changed

keps/sig-apps/3939-allow-replacement-when-fully-terminated/README.md

+17-14
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Items marked with (R) are required *prior to targeting to a milestone / release*
173173
- [x] (R) Production readiness review completed
174174
- [x] (R) Production readiness review approved
175175
- [x] "Implementation History" section is up-to-date for milestone
176-
- [ ] User-facing documentation has been created in [kubernetes/website], for publication to [kubernetes.io]
176+
- [x] User-facing documentation has been created in [kubernetes/website], for publication to [kubernetes.io]
177177
- [x] Supporting documentation—e.g., additional design documents, links to mailing list discussions/SIG meetings, relevant PRs/issues, release notes
178178

179179
<!--
@@ -501,17 +501,17 @@ Case With `JobPodReplacementPolicy` off
501501
Case for disable and reenable `JobPodReplacementPolicy`
502502

503503
1. Create Job with `podReplacementPolicy: Failed`
504-
1. Job starts pods that takes a while to terminate
505-
1. Restart controller and disable `JobPodReplacementPolicy`
506-
1. Delete some pods
507-
1. Verify that terminating pods count as failed and pods are recreated.
508-
1. Restart controller and reenable `JobPodReplacementPolicy`
509-
1. Terminate pods with phase Succeeded.
510-
1. Verify that pods still count as failed.
511-
1. Delete remaining Pods.
512-
1. Verify that `terminating` is tracked.
513-
1. Verify that pod creation only occurs once pod is fully terminated.
514-
1. Verify that pod creation only occurs once deletion happens.
504+
2. Job starts pods that takes a while to terminate
505+
3. Restart controller and disable `JobPodReplacementPolicy`
506+
4. Delete some pods
507+
5. Verify that terminating pods count as failed and pods are recreated.
508+
6. Restart controller and reenable `JobPodReplacementPolicy`
509+
7. Terminate pods with phase Succeeded.
510+
8. Verify that pods still count as failed.
511+
9. Delete remaining Pods.
512+
10. Verify that `terminating` is tracked.
513+
11. Verify that pod creation only occurs once pod is fully terminated.
514+
12. Verify that pod creation only occurs once deletion happens.
515515

516516
To cover cases with `PodDisruptionCondition` we really only need to worry about tracking terminating fields.
517517
Tests will verify counting of terminating fields regardless of `PodDisruptionCondition` being on or off.
@@ -570,6 +570,7 @@ We expect no non-infra related flakes in the last month as a GA graduation crite
570570
- Address reviews and bug reports from Alpha users
571571
- E2e tests are in Testgrid and linked in KEP
572572
- The feature flag enabled by default
573+
- `job_pods_creation_total` metric is added.
573574

574575
#### GA
575576

@@ -756,7 +757,7 @@ During pod terminations, an operator can see that the terminating field is being
756757

757758
We will use a new metric:
758759

759-
- `job_pod_creation` (new) the `action` label will mention what triggers creation (`new`, `recreateTerminatingOrFailed`, `recreateTerminated`))
760+
- `job_pods_creation_total` (new) the `action` label will mention what triggers creation (`new`, `recreateTerminatingOrFailed`, `recreateTerminated`))
760761
This can be used to get the number of pods that are being recreated due to `recreateTerminated`. Otherwise we would expect to see `new` or `recreateTerminatingOrFailed` as the normal values.
761762

762763
<!--
@@ -902,7 +903,9 @@ No change from existing behavior of the Job controller.
902903

903904
## Implementation History
904905

905-
- 2023-05-19: Initial KEP
906+
- 2023-04-03: Created KEP
907+
- 2023-05-19: KEP Merged.
908+
- 2023-07-16: Alpha PRs merged.
906909

907910
## Drawbacks
908911

0 commit comments

Comments
 (0)