@@ -204,14 +204,14 @@ var _ = SIGDescribe("Network Partition [Disruptive] [Slow]", func() {
204
204
}()
205
205
go controller .Run (stopCh )
206
206
207
- ginkgo .By (fmt .Sprintf ("Block traffic from node %s to the master " , node .Name ))
207
+ ginkgo .By (fmt .Sprintf ("Block traffic from node %s to the control plane " , node .Name ))
208
208
host , err := e2enode .GetExternalIP (& node )
209
209
framework .ExpectNoError (err )
210
- masterAddresses := framework .GetAllMasterAddresses (c )
210
+ controlPlaneAddresses := framework .GetControlPlaneAddresses (c )
211
211
defer func () {
212
- ginkgo .By (fmt .Sprintf ("Unblock traffic from node %s to the master " , node .Name ))
213
- for _ , masterAddress := range masterAddresses {
214
- e2enetwork .UnblockNetwork (host , masterAddress )
212
+ ginkgo .By (fmt .Sprintf ("Unblock traffic from node %s to the control plane " , node .Name ))
213
+ for _ , instanceAddress := range controlPlaneAddresses {
214
+ e2enetwork .UnblockNetwork (host , instanceAddress )
215
215
}
216
216
217
217
if ginkgo .CurrentGinkgoTestDescription ().Failed {
@@ -225,8 +225,8 @@ var _ = SIGDescribe("Network Partition [Disruptive] [Slow]", func() {
225
225
}
226
226
}()
227
227
228
- for _ , masterAddress := range masterAddresses {
229
- e2enetwork .BlockNetwork (host , masterAddress )
228
+ for _ , instanceAddress := range controlPlaneAddresses {
229
+ e2enetwork .BlockNetwork (host , instanceAddress )
230
230
}
231
231
232
232
ginkgo .By ("Expect to observe node and pod status change from Ready to NotReady after network partition" )
@@ -592,14 +592,14 @@ var _ = SIGDescribe("Network Partition [Disruptive] [Slow]", func() {
592
592
}()
593
593
go controller .Run (stopCh )
594
594
595
- ginkgo .By (fmt .Sprintf ("Block traffic from node %s to the master " , node .Name ))
595
+ ginkgo .By (fmt .Sprintf ("Block traffic from node %s to the control plane " , node .Name ))
596
596
host , err := e2enode .GetExternalIP (& node )
597
597
framework .ExpectNoError (err )
598
- masterAddresses := framework .GetAllMasterAddresses (c )
598
+ controlPlaneAddresses := framework .GetControlPlaneAddresses (c )
599
599
defer func () {
600
- ginkgo .By (fmt .Sprintf ("Unblock traffic from node %s to the master " , node .Name ))
601
- for _ , masterAddress := range masterAddresses {
602
- e2enetwork .UnblockNetwork (host , masterAddress )
600
+ ginkgo .By (fmt .Sprintf ("Unblock traffic from node %s to the control plane " , node .Name ))
601
+ for _ , instanceAddress := range controlPlaneAddresses {
602
+ e2enetwork .UnblockNetwork (host , instanceAddress )
603
603
}
604
604
605
605
if ginkgo .CurrentGinkgoTestDescription ().Failed {
@@ -610,8 +610,8 @@ var _ = SIGDescribe("Network Partition [Disruptive] [Slow]", func() {
610
610
expectNodeReadiness (true , newNode )
611
611
}()
612
612
613
- for _ , masterAddress := range masterAddresses {
614
- e2enetwork .BlockNetwork (host , masterAddress )
613
+ for _ , instanceAddress := range controlPlaneAddresses {
614
+ e2enetwork .BlockNetwork (host , instanceAddress )
615
615
}
616
616
617
617
ginkgo .By ("Expect to observe node and pod status change from Ready to NotReady after network partition" )
0 commit comments