StatefulSet: Remove pod.alpha.kubernetes.io/initialized annotation.

This commit is contained in:
Anthony Yeh
2017-07-19 16:59:40 -07:00
parent 48e8370674
commit 283211c1cf
4 changed files with 2 additions and 113 deletions

View File

@@ -213,18 +213,6 @@ func TestIsRunningAndReady(t *testing.T) {
if !isRunningAndReady(pod) {
t.Error("Pod should be running and ready")
}
pod.Annotations[apps.StatefulSetInitAnnotation] = "true"
if !isRunningAndReady(pod) {
t.Error("isRunningAndReady does not respected init annotation set to true")
}
pod.Annotations[apps.StatefulSetInitAnnotation] = "false"
if isRunningAndReady(pod) {
t.Error("isRunningAndReady does not respected init annotation set to false")
}
pod.Annotations[apps.StatefulSetInitAnnotation] = "blah"
if !isRunningAndReady(pod) {
t.Error("isRunningAndReady does not erroneous init annotation")
}
}
func TestAscendingOrdinal(t *testing.T) {