Unverified Commit cf4ff8cd authored by 张祖建's avatar 张祖建 Committed by GitHub
Browse files

Merge pull request #1041 from zhangzujian/fix-sts

fix StatefulSet down scale
Showing with 1 addition and 5 deletions
+1 -5
......@@ -826,11 +826,7 @@ func isStatefulSetPodToDel(c kubernetes.Interface, pod *v1.Pod, statefulSetName
return false
}
if index >= int64(*ss.Spec.Replicas) {
return true
}
return false
return index >= int64(*ss.Spec.Replicas) && index >= int64(ss.Status.Replicas)
}
func getNodeTunlIP(node *v1.Node) ([]net.IP, error) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment