-
Kubernetes Submit Queue authored
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Use DeleteOptions.PropagationPolicy instead of OrphanDependents (deprecated) in kubectl **What this PR does / why we need it**: Replaces the deprecated `DeleteOptions.OrphanDependents` deletion option with `DeleteOptions.PropagationPolicy`. It will improve the cascade deletion by using `Foreground` GC deletion instead of the old `OrphanDependents: false` which has a confusing behavior (leaves orphans if children has finalizers set). **Which issue(s) this PR fixes**: Fixes #59850 **Special notes for your reviewer**: **Release note**: ```release-note Use DeleteOptions.PropagationPolicy instead of OrphanDependents in kubectl ```