Skip to content

Commit

Permalink
Merge pull request kubernetes#128722 from dims/possible-fix-for-alpha…
Browse files Browse the repository at this point in the history
…-feature-breaking-tests

Fix for alpha CI jobs failing with AllowUnsafeMalformedObjectDeletion switched on
  • Loading branch information
k8s-ci-robot authored Nov 9, 2024
2 parents feb3f92 + 9c6126e commit 1b08de5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ func DeleteCollection(r rest.CollectionDeleter, checkBody bool, scope *RequestSc
}

if utilfeature.DefaultFeatureGate.Enabled(features.AllowUnsafeMalformedObjectDeletion) {
if options != nil && ptr.Deref(options.IgnoreStoreReadErrorWithClusterBreakingPotential, true) {
if options != nil && ptr.Deref(options.IgnoreStoreReadErrorWithClusterBreakingPotential, false) {
fieldErrList := field.ErrorList{
field.Invalid(field.NewPath("ignoreStoreReadErrorWithClusterBreakingPotential"), true, "is not allowed with DELETECOLLECTION, try again after removing the option"),
}
Expand Down

0 comments on commit 1b08de5

Please sign in to comment.