@@ -843,7 +843,7 @@ var _ = SIGDescribe("StatefulSet", func() {
843
843
ss , err := c .AppsV1 ().StatefulSets (ns ).Create (context .TODO (), ss , metav1.CreateOptions {})
844
844
framework .ExpectNoError (err )
845
845
e2estatefulset .WaitForRunningAndReady (c , * ss .Spec .Replicas , ss )
846
- ss = waitForStatus (c , ss )
846
+ waitForStatus (c , ss )
847
847
848
848
ginkgo .By ("getting scale subresource" )
849
849
scale , err := c .AppsV1 ().StatefulSets (ns ).GetScale (context .TODO (), ssName , metav1.GetOptions {})
@@ -1151,7 +1151,7 @@ func rollbackTest(c clientset.Interface, ns string, ss *appsv1.StatefulSet) {
1151
1151
e2estatefulset .SortStatefulPods (pods )
1152
1152
err = breakPodHTTPProbe (ss , & pods .Items [1 ])
1153
1153
framework .ExpectNoError (err )
1154
- ss , pods = waitForPodNotReady (c , ss , pods .Items [1 ].Name )
1154
+ ss , _ = waitForPodNotReady (c , ss , pods .Items [1 ].Name )
1155
1155
newImage := NewWebserverImage
1156
1156
oldImage := ss .Spec .Template .Spec .Containers [0 ].Image
1157
1157
@@ -1172,7 +1172,7 @@ func rollbackTest(c clientset.Interface, ns string, ss *appsv1.StatefulSet) {
1172
1172
e2estatefulset .SortStatefulPods (pods )
1173
1173
err = restorePodHTTPProbe (ss , & pods .Items [1 ])
1174
1174
framework .ExpectNoError (err )
1175
- ss , pods = e2estatefulset .WaitForPodReady (c , ss , pods .Items [1 ].Name )
1175
+ ss , _ = e2estatefulset .WaitForPodReady (c , ss , pods .Items [1 ].Name )
1176
1176
ss , pods = waitForRollingUpdate (c , ss )
1177
1177
framework .ExpectEqual (ss .Status .CurrentRevision , updateRevision , fmt .Sprintf ("StatefulSet %s/%s current revision %s does not equal update revision %s on update completion" ,
1178
1178
ss .Namespace ,
@@ -1195,9 +1195,8 @@ func rollbackTest(c clientset.Interface, ns string, ss *appsv1.StatefulSet) {
1195
1195
ginkgo .By ("Rolling back to a previous revision" )
1196
1196
err = breakPodHTTPProbe (ss , & pods .Items [1 ])
1197
1197
framework .ExpectNoError (err )
1198
- ss , pods = waitForPodNotReady (c , ss , pods .Items [1 ].Name )
1198
+ ss , _ = waitForPodNotReady (c , ss , pods .Items [1 ].Name )
1199
1199
priorRevision := currentRevision
1200
- currentRevision , updateRevision = ss .Status .CurrentRevision , ss .Status .UpdateRevision
1201
1200
ss , err = updateStatefulSetWithRetries (c , ns , ss .Name , func (update * appsv1.StatefulSet ) {
1202
1201
update .Spec .Template .Spec .Containers [0 ].Image = oldImage
1203
1202
})
@@ -1211,7 +1210,7 @@ func rollbackTest(c clientset.Interface, ns string, ss *appsv1.StatefulSet) {
1211
1210
pods = e2estatefulset .GetPodList (c , ss )
1212
1211
e2estatefulset .SortStatefulPods (pods )
1213
1212
restorePodHTTPProbe (ss , & pods .Items [1 ])
1214
- ss , pods = e2estatefulset .WaitForPodReady (c , ss , pods .Items [1 ].Name )
1213
+ ss , _ = e2estatefulset .WaitForPodReady (c , ss , pods .Items [1 ].Name )
1215
1214
ss , pods = waitForRollingUpdate (c , ss )
1216
1215
framework .ExpectEqual (ss .Status .CurrentRevision , priorRevision , fmt .Sprintf ("StatefulSet %s/%s current revision %s does not equal prior revision %s on rollback completion" ,
1217
1216
ss .Namespace ,
0 commit comments