Skip to content

Commit fef45ec

Browse files
committed
Fix potential bug with StatefulSet controller when reconciling deletion
1 parent bbe7c07 commit fef45ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/statefulset/statefulset_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func (in *ReconcileStatefulSet) ReconcileResources(request reconcile.Request, de
115115

116116
if stsExists && stsCurrent.GetDeletionTimestamp() != nil {
117117
// The StatefulSet exists but is being deleted
118-
stsExists = false
118+
return result, nil
119119
}
120120

121121
switch {

0 commit comments

Comments
 (0)