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
Restore orphaning check in gc test #89236
Conversation
/priority critical-urgent |
@@ -461,6 +461,9 @@ func setupRCsPods(t *testing.T, gc *garbagecollector.GarbageCollector, clientSet | |||
} | |||
orphan := false | |||
switch { | |||
case options.OrphanDependents == nil && options.PropagationPolicy == nil && len(initialFinalizers) == 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about just moving this to the end of the switch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to keep it in the same location to minimize the logical diff from before
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, mikedanese 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 |
…6-upstream-release-1.18 Automated cherry pick of #89236: Restore orphaning check in gc test
What type of PR is this?
/kind bug
/kind failing-test
/kind flake
What this PR does / why we need it:
Restores orphaning check accidentally removed in https://github.com/kubernetes/kubernetes/pull/88708/files#diff-71e62caa4db77f62b62feb4951fd7ca8L464-L466
Which issue(s) this PR fixes:
Fixes #89021
Does this PR introduce a user-facing change?:
/cc @mikedanese
/sig api-machinery