Skip to content

Commit 1b08de5

Browse files
authored
Merge pull request kubernetes#128722 from dims/possible-fix-for-alpha-feature-breaking-tests
Fix for alpha CI jobs failing with AllowUnsafeMalformedObjectDeletion switched on
2 parents feb3f92 + 9c6126e commit 1b08de5

File tree

1 file changed

+1
-1
lines changed
  • staging/src/k8s.io/apiserver/pkg/endpoints/handlers

1 file changed

+1
-1
lines changed

staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func DeleteCollection(r rest.CollectionDeleter, checkBody bool, scope *RequestSc
306306
}
307307

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

0 commit comments

Comments
 (0)