-
Notifications
You must be signed in to change notification settings - Fork 39.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix PodTemplate validation #60683
Fix PodTemplate validation #60683
Conversation
… PodTemplate validation
/assign @liggitt |
/ok-to-test |
/lgtm |
/status approved-for-milestone |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, nilebox The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[MILESTONENOTIFIER] Milestone Pull Request: Up-to-date for process @caesarxuchao @liggitt @nilebox Pull Request Labels
|
/test pull-kubernetes-e2e-gce |
/test all [submit-queue is verifying that this PR is safe to merge] |
/test pull-kubernetes-e2e-gce |
/test all [submit-queue is verifying that this PR is safe to merge] |
/retest Review the full test history for this PR. Silence the bot with an |
@liggitt All checks passed, ready to merge. |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue (batch tested with PRs 60683, 60386). If you want to cherry-pick this change to another branch, please follow the instructions here. |
opened cherry picks |
…3-upstream-release-1.9 Automatic merge from submit-queue. Automated cherry pick of #60683: Bugfix: Fix ordering of ValidateObjectMetaUpdate method Cherry pick of #60683 on release-1.9. #60683: Bugfix: Fix ordering of ValidateObjectMetaUpdate method ```release-note fixed foreground deletion of podtemplates ```
Commit found in the "release-1.9" branch appears to be this PR. Removing the "cherrypick-candidate" label. If this is an error find help to get your PR picked. |
…3-upstream-release-1.7 Automatic merge from submit-queue. Automated cherry pick of #60683: Bugfix: Fix ordering of ValidateObjectMetaUpdate method Cherry pick of #60683 on release-1.7. #60683: Bugfix: Fix ordering of ValidateObjectMetaUpdate method ```release-note fixed foreground deletion of podtemplates ```
…3-upstream-release-1.8 Automatic merge from submit-queue. Automated cherry pick of #60683: Bugfix: Fix ordering of ValidateObjectMetaUpdate method Cherry pick of #60683 on release-1.8. #60683: Bugfix: Fix ordering of ValidateObjectMetaUpdate method ```release-note fixed foreground deletion of podtemplates ```
What this PR does / why we need it:
This is a bugfix for pod template validation, which can be reproduced by deleting with "foreground deletion" mode (
DeleteOptions.PropagationPolicy = metav1.DeletePropagationForeground
).Because of this bug GC will never delete a pod template with
foregroundDeletion
finalizer.Special notes for your reviewer:
The issue was originally found and confirmed in the PR #59851, where switching to foreground deletion in
kubectl
broke a unit test revealing this bug.Extracted for easier backporting to releases as suggested in #59851 (comment)
/cc @liggitt @caesarxuchao
/sig api-machinery