Skip to content

Commit

Permalink
update check for delete statefulset pod
Browse files Browse the repository at this point in the history
  • Loading branch information
hongzhen-ma committed Jan 11, 2022
1 parent 5acf958 commit ff6bf6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ func isStatefulSetPodToDel(c kubernetes.Interface, pod *v1.Pod, statefulSetName
return false
}

return index >= int64(*ss.Spec.Replicas) && index >= int64(ss.Status.Replicas)
return index >= int64(*ss.Spec.Replicas)
}

func getNodeTunlIP(node *v1.Node) ([]net.IP, error) {
Expand Down

0 comments on commit ff6bf6f

Please sign in to comment.