@@ -278,7 +278,7 @@ var _ = SIGDescribe("StatefulSet", func() {
278
278
By ("Creating a new StatefulSet" )
279
279
ss := framework .NewStatefulSet ("ss2" , ns , headlessSvcName , 3 , nil , nil , labels )
280
280
sst := framework .NewStatefulSetTester (c )
281
- sst .SetHttpProbe (ss )
281
+ sst .SetHTTPProbe (ss )
282
282
ss .Spec .UpdateStrategy = apps.StatefulSetUpdateStrategy {
283
283
Type : apps .RollingUpdateStatefulSetStrategyType ,
284
284
RollingUpdate : func () * apps.RollingUpdateStatefulSetStrategy {
@@ -489,7 +489,7 @@ var _ = SIGDescribe("StatefulSet", func() {
489
489
By ("Creating a new StatefulSet" )
490
490
ss := framework .NewStatefulSet ("ss2" , ns , headlessSvcName , 3 , nil , nil , labels )
491
491
sst := framework .NewStatefulSetTester (c )
492
- sst .SetHttpProbe (ss )
492
+ sst .SetHTTPProbe (ss )
493
493
ss .Spec .UpdateStrategy = apps.StatefulSetUpdateStrategy {
494
494
Type : apps .OnDeleteStatefulSetStrategyType ,
495
495
}
@@ -581,22 +581,22 @@ var _ = SIGDescribe("StatefulSet", func() {
581
581
By ("Creating stateful set " + ssName + " in namespace " + ns )
582
582
ss := framework .NewStatefulSet (ssName , ns , headlessSvcName , 1 , nil , nil , psLabels )
583
583
sst := framework .NewStatefulSetTester (c )
584
- sst .SetHttpProbe (ss )
584
+ sst .SetHTTPProbe (ss )
585
585
ss , err = c .AppsV1 ().StatefulSets (ns ).Create (ss )
586
586
Expect (err ).NotTo (HaveOccurred ())
587
587
588
588
By ("Waiting until all stateful set " + ssName + " replicas will be running in namespace " + ns )
589
589
sst .WaitForRunningAndReady (* ss .Spec .Replicas , ss )
590
590
591
591
By ("Confirming that stateful set scale up will halt with unhealthy stateful pod" )
592
- sst .BreakHttpProbe (ss )
592
+ sst .BreakHTTPProbe (ss )
593
593
sst .WaitForRunningAndNotReady (* ss .Spec .Replicas , ss )
594
594
sst .WaitForStatusReadyReplicas (ss , 0 )
595
595
sst .UpdateReplicas (ss , 3 )
596
596
sst .ConfirmStatefulPodCount (1 , ss , 10 * time .Second , true )
597
597
598
598
By ("Scaling up stateful set " + ssName + " to 3 replicas and waiting until all of them will be running in namespace " + ns )
599
- sst .RestoreHttpProbe (ss )
599
+ sst .RestoreHTTPProbe (ss )
600
600
sst .WaitForRunningAndReady (3 , ss )
601
601
602
602
By ("Verifying that stateful set " + ssName + " was scaled up in order" )
@@ -622,14 +622,14 @@ var _ = SIGDescribe("StatefulSet", func() {
622
622
})
623
623
Expect (err ).NotTo (HaveOccurred ())
624
624
625
- sst .BreakHttpProbe (ss )
625
+ sst .BreakHTTPProbe (ss )
626
626
sst .WaitForStatusReadyReplicas (ss , 0 )
627
627
sst .WaitForRunningAndNotReady (3 , ss )
628
628
sst .UpdateReplicas (ss , 0 )
629
629
sst .ConfirmStatefulPodCount (3 , ss , 10 * time .Second , true )
630
630
631
631
By ("Scaling down stateful set " + ssName + " to 0 replicas and waiting until none of pods will run in namespace" + ns )
632
- sst .RestoreHttpProbe (ss )
632
+ sst .RestoreHTTPProbe (ss )
633
633
sst .Scale (ss , 0 )
634
634
635
635
By ("Verifying that stateful set " + ssName + " was scaled down in reverse order" )
@@ -662,33 +662,33 @@ var _ = SIGDescribe("StatefulSet", func() {
662
662
ss := framework .NewStatefulSet (ssName , ns , headlessSvcName , 1 , nil , nil , psLabels )
663
663
ss .Spec .PodManagementPolicy = apps .ParallelPodManagement
664
664
sst := framework .NewStatefulSetTester (c )
665
- sst .SetHttpProbe (ss )
665
+ sst .SetHTTPProbe (ss )
666
666
ss , err := c .AppsV1 ().StatefulSets (ns ).Create (ss )
667
667
Expect (err ).NotTo (HaveOccurred ())
668
668
669
669
By ("Waiting until all stateful set " + ssName + " replicas will be running in namespace " + ns )
670
670
sst .WaitForRunningAndReady (* ss .Spec .Replicas , ss )
671
671
672
672
By ("Confirming that stateful set scale up will not halt with unhealthy stateful pod" )
673
- sst .BreakHttpProbe (ss )
673
+ sst .BreakHTTPProbe (ss )
674
674
sst .WaitForRunningAndNotReady (* ss .Spec .Replicas , ss )
675
675
sst .WaitForStatusReadyReplicas (ss , 0 )
676
676
sst .UpdateReplicas (ss , 3 )
677
677
sst .ConfirmStatefulPodCount (3 , ss , 10 * time .Second , false )
678
678
679
679
By ("Scaling up stateful set " + ssName + " to 3 replicas and waiting until all of them will be running in namespace " + ns )
680
- sst .RestoreHttpProbe (ss )
680
+ sst .RestoreHTTPProbe (ss )
681
681
sst .WaitForRunningAndReady (3 , ss )
682
682
683
683
By ("Scale down will not halt with unhealthy stateful pod" )
684
- sst .BreakHttpProbe (ss )
684
+ sst .BreakHTTPProbe (ss )
685
685
sst .WaitForStatusReadyReplicas (ss , 0 )
686
686
sst .WaitForRunningAndNotReady (3 , ss )
687
687
sst .UpdateReplicas (ss , 0 )
688
688
sst .ConfirmStatefulPodCount (0 , ss , 10 * time .Second , false )
689
689
690
690
By ("Scaling down stateful set " + ssName + " to 0 replicas and waiting until none of pods will run in namespace" + ns )
691
- sst .RestoreHttpProbe (ss )
691
+ sst .RestoreHTTPProbe (ss )
692
692
sst .Scale (ss , 0 )
693
693
sst .WaitForStatusReplicas (ss , 0 )
694
694
})
@@ -788,7 +788,7 @@ var _ = SIGDescribe("StatefulSet", func() {
788
788
By ("Creating statefulset " + ssName + " in namespace " + ns )
789
789
ss := framework .NewStatefulSet (ssName , ns , headlessSvcName , 1 , nil , nil , labels )
790
790
sst := framework .NewStatefulSetTester (c )
791
- sst .SetHttpProbe (ss )
791
+ sst .SetHTTPProbe (ss )
792
792
ss , err := c .AppsV1 ().StatefulSets (ns ).Create (ss )
793
793
Expect (err ).NotTo (HaveOccurred ())
794
794
sst .WaitForRunningAndReady (* ss .Spec .Replicas , ss )
@@ -1083,7 +1083,7 @@ func pollReadWithTimeout(statefulPod statefulPodTester, statefulPodNumber int, k
1083
1083
// PVCs and one using no storage.
1084
1084
func rollbackTest (c clientset.Interface , ns string , ss * apps.StatefulSet ) {
1085
1085
sst := framework .NewStatefulSetTester (c )
1086
- sst .SetHttpProbe (ss )
1086
+ sst .SetHTTPProbe (ss )
1087
1087
ss , err := c .AppsV1 ().StatefulSets (ns ).Create (ss )
1088
1088
Expect (err ).NotTo (HaveOccurred ())
1089
1089
sst .WaitForRunningAndReady (* ss .Spec .Replicas , ss )
@@ -1102,7 +1102,7 @@ func rollbackTest(c clientset.Interface, ns string, ss *apps.StatefulSet) {
1102
1102
currentRevision ))
1103
1103
}
1104
1104
sst .SortStatefulPods (pods )
1105
- err = sst .BreakPodHttpProbe (ss , & pods .Items [1 ])
1105
+ err = sst .BreakPodHTTPProbe (ss , & pods .Items [1 ])
1106
1106
Expect (err ).NotTo (HaveOccurred ())
1107
1107
ss , pods = sst .WaitForPodNotReady (ss , pods .Items [1 ].Name )
1108
1108
newImage := NewNginxImage
@@ -1124,7 +1124,7 @@ func rollbackTest(c clientset.Interface, ns string, ss *apps.StatefulSet) {
1124
1124
By ("Updating Pods in reverse ordinal order" )
1125
1125
pods = sst .GetPodList (ss )
1126
1126
sst .SortStatefulPods (pods )
1127
- err = sst .RestorePodHttpProbe (ss , & pods .Items [1 ])
1127
+ err = sst .RestorePodHTTPProbe (ss , & pods .Items [1 ])
1128
1128
Expect (err ).NotTo (HaveOccurred ())
1129
1129
ss , pods = sst .WaitForPodReady (ss , pods .Items [1 ].Name )
1130
1130
ss , pods = sst .WaitForRollingUpdate (ss )
@@ -1150,7 +1150,7 @@ func rollbackTest(c clientset.Interface, ns string, ss *apps.StatefulSet) {
1150
1150
}
1151
1151
1152
1152
By ("Rolling back to a previous revision" )
1153
- err = sst .BreakPodHttpProbe (ss , & pods .Items [1 ])
1153
+ err = sst .BreakPodHTTPProbe (ss , & pods .Items [1 ])
1154
1154
Expect (err ).NotTo (HaveOccurred ())
1155
1155
ss , pods = sst .WaitForPodNotReady (ss , pods .Items [1 ].Name )
1156
1156
priorRevision := currentRevision
@@ -1169,7 +1169,7 @@ func rollbackTest(c clientset.Interface, ns string, ss *apps.StatefulSet) {
1169
1169
By ("Rolling back update in reverse ordinal order" )
1170
1170
pods = sst .GetPodList (ss )
1171
1171
sst .SortStatefulPods (pods )
1172
- sst .RestorePodHttpProbe (ss , & pods .Items [1 ])
1172
+ sst .RestorePodHTTPProbe (ss , & pods .Items [1 ])
1173
1173
ss , pods = sst .WaitForPodReady (ss , pods .Items [1 ].Name )
1174
1174
ss , pods = sst .WaitForRollingUpdate (ss )
1175
1175
Expect (ss .Status .CurrentRevision ).To (Equal (priorRevision ),
0 commit comments