@@ -61,7 +61,7 @@ func fakeWorker(clc *ClusterLabelerController) {
61
61
62
62
func TestClusterLabelerLabelsPrimaryAndSecondaries (t * testing.T ) {
63
63
pods := []corev1.Pod {
64
- corev1. Pod {
64
+ {
65
65
TypeMeta : metav1.TypeMeta {
66
66
APIVersion : "v1" ,
67
67
Kind : "Pod" ,
@@ -74,7 +74,7 @@ func TestClusterLabelerLabelsPrimaryAndSecondaries(t *testing.T) {
74
74
},
75
75
},
76
76
},
77
- corev1. Pod {
77
+ {
78
78
TypeMeta : metav1.TypeMeta {
79
79
APIVersion : "v1" ,
80
80
Kind : "Pod" ,
@@ -87,7 +87,7 @@ func TestClusterLabelerLabelsPrimaryAndSecondaries(t *testing.T) {
87
87
},
88
88
},
89
89
},
90
- corev1. Pod {
90
+ {
91
91
TypeMeta : metav1.TypeMeta {
92
92
APIVersion : "v1" ,
93
93
Kind : "Pod" ,
@@ -109,19 +109,19 @@ func TestClusterLabelerLabelsPrimaryAndSecondaries(t *testing.T) {
109
109
Status : "OK" ,
110
110
StatusText : "Cluster is ONLINE and can tolerate up to ONE failure." ,
111
111
Topology : map [string ]* innodb.Instance {
112
- "test-cluster-0.test-cluster:3306" : & innodb. Instance {
112
+ "test-cluster-0.test-cluster:3306" : {
113
113
Address : "test-cluster-0.test-cluster:3306" ,
114
114
Mode : "R/W" ,
115
115
Role : "HA" ,
116
116
Status : innodb .InstanceStatusOnline ,
117
117
},
118
- "test-cluster-1.test-cluster:3306" : & innodb. Instance {
118
+ "test-cluster-1.test-cluster:3306" : {
119
119
Address : "test-cluster-1.test-cluster:3306" ,
120
120
Mode : "R/O" ,
121
121
Role : "HA" ,
122
122
Status : innodb .InstanceStatusOnline ,
123
123
},
124
- "test-cluster-2.test-cluster:3306" : & innodb. Instance {
124
+ "test-cluster-2.test-cluster:3306" : {
125
125
Address : "test-cluster-2.test-cluster:3306" ,
126
126
Mode : "R/O" ,
127
127
Role : "HA" ,
@@ -174,7 +174,7 @@ func TestClusterLabelerLabelsPrimaryAndSecondaries(t *testing.T) {
174
174
175
175
func TestClusterLabelerRelabelsOldPrimary (t * testing.T ) {
176
176
pods := []corev1.Pod {
177
- corev1. Pod {
177
+ {
178
178
TypeMeta : metav1.TypeMeta {
179
179
APIVersion : "v1" ,
180
180
Kind : "Pod" ,
@@ -188,7 +188,7 @@ func TestClusterLabelerRelabelsOldPrimary(t *testing.T) {
188
188
},
189
189
},
190
190
},
191
- corev1. Pod {
191
+ {
192
192
TypeMeta : metav1.TypeMeta {
193
193
APIVersion : "v1" ,
194
194
Kind : "Pod" ,
@@ -202,7 +202,7 @@ func TestClusterLabelerRelabelsOldPrimary(t *testing.T) {
202
202
},
203
203
},
204
204
},
205
- corev1. Pod {
205
+ {
206
206
TypeMeta : metav1.TypeMeta {
207
207
APIVersion : "v1" ,
208
208
Kind : "Pod" ,
@@ -225,19 +225,19 @@ func TestClusterLabelerRelabelsOldPrimary(t *testing.T) {
225
225
Status : "OK" ,
226
226
StatusText : "Cluster is ONLINE and can tolerate up to ONE failure." ,
227
227
Topology : map [string ]* innodb.Instance {
228
- "test-cluster-0.test-cluster:3306" : & innodb. Instance {
228
+ "test-cluster-0.test-cluster:3306" : {
229
229
Address : "test-cluster-0.test-cluster:3306" ,
230
230
Mode : "R/O" ,
231
231
Role : "HA" ,
232
232
Status : innodb .InstanceStatusOnline ,
233
233
},
234
- "test-cluster-1.test-cluster:3306" : & innodb. Instance {
234
+ "test-cluster-1.test-cluster:3306" : {
235
235
Address : "test-cluster-1.test-cluster:3306" ,
236
236
Mode : "R/W" ,
237
237
Role : "HA" ,
238
238
Status : innodb .InstanceStatusOnline ,
239
239
},
240
- "test-cluster-2.test-cluster:3306" : & innodb. Instance {
240
+ "test-cluster-2.test-cluster:3306" : {
241
241
Address : "test-cluster-2.test-cluster:3306" ,
242
242
Mode : "R/O" ,
243
243
Role : "HA" ,
@@ -280,7 +280,7 @@ func TestClusterLabelerRelabelsOldPrimary(t *testing.T) {
280
280
281
281
func TestClusterLabelerDoesntRelabelCorrectlyLabeledPods (t * testing.T ) {
282
282
pods := []corev1.Pod {
283
- corev1. Pod {
283
+ {
284
284
TypeMeta : metav1.TypeMeta {
285
285
APIVersion : "v1" ,
286
286
Kind : "Pod" ,
@@ -294,7 +294,7 @@ func TestClusterLabelerDoesntRelabelCorrectlyLabeledPods(t *testing.T) {
294
294
},
295
295
},
296
296
},
297
- corev1. Pod {
297
+ {
298
298
TypeMeta : metav1.TypeMeta {
299
299
APIVersion : "v1" ,
300
300
Kind : "Pod" ,
@@ -308,7 +308,7 @@ func TestClusterLabelerDoesntRelabelCorrectlyLabeledPods(t *testing.T) {
308
308
},
309
309
},
310
310
},
311
- corev1. Pod {
311
+ {
312
312
TypeMeta : metav1.TypeMeta {
313
313
APIVersion : "v1" ,
314
314
Kind : "Pod" ,
@@ -331,19 +331,19 @@ func TestClusterLabelerDoesntRelabelCorrectlyLabeledPods(t *testing.T) {
331
331
Status : "OK" ,
332
332
StatusText : "Cluster is ONLINE and can tolerate up to ONE failure." ,
333
333
Topology : map [string ]* innodb.Instance {
334
- "test-cluster-0.test-cluster:3306" : & innodb. Instance {
334
+ "test-cluster-0.test-cluster:3306" : {
335
335
Address : "test-cluster-0.test-cluster:3306" ,
336
336
Mode : "R/W" ,
337
337
Role : "HA" ,
338
338
Status : innodb .InstanceStatusOnline ,
339
339
},
340
- "test-cluster-1.test-cluster:3306" : & innodb. Instance {
340
+ "test-cluster-1.test-cluster:3306" : {
341
341
Address : "test-cluster-1.test-cluster:3306" ,
342
342
Mode : "R/O" ,
343
343
Role : "HA" ,
344
344
Status : innodb .InstanceStatusOnline ,
345
345
},
346
- "test-cluster-2.test-cluster:3306" : & innodb. Instance {
346
+ "test-cluster-2.test-cluster:3306" : {
347
347
Address : "test-cluster-2.test-cluster:3306" ,
348
348
Mode : "R/O" ,
349
349
Role : "HA" ,
@@ -366,7 +366,7 @@ func TestClusterLabelerDoesntRelabelCorrectlyLabeledPods(t *testing.T) {
366
366
367
367
func TestClusterLabelerRemovesLabelFromInstanceInMissingState (t * testing.T ) {
368
368
pods := []corev1.Pod {
369
- corev1. Pod {
369
+ {
370
370
TypeMeta : metav1.TypeMeta {
371
371
APIVersion : "v1" ,
372
372
Kind : "Pod" ,
@@ -380,7 +380,7 @@ func TestClusterLabelerRemovesLabelFromInstanceInMissingState(t *testing.T) {
380
380
},
381
381
},
382
382
},
383
- corev1. Pod {
383
+ {
384
384
TypeMeta : metav1.TypeMeta {
385
385
APIVersion : "v1" ,
386
386
Kind : "Pod" ,
@@ -394,7 +394,7 @@ func TestClusterLabelerRemovesLabelFromInstanceInMissingState(t *testing.T) {
394
394
},
395
395
},
396
396
},
397
- corev1. Pod {
397
+ {
398
398
TypeMeta : metav1.TypeMeta {
399
399
APIVersion : "v1" ,
400
400
Kind : "Pod" ,
@@ -417,19 +417,19 @@ func TestClusterLabelerRemovesLabelFromInstanceInMissingState(t *testing.T) {
417
417
Status : "OK" ,
418
418
StatusText : "Cluster is ONLINE and can tolerate up to ONE failure." ,
419
419
Topology : map [string ]* innodb.Instance {
420
- "test-cluster-0.test-cluster:3306" : & innodb. Instance {
420
+ "test-cluster-0.test-cluster:3306" : {
421
421
Address : "test-cluster-0.test-cluster:3306" ,
422
422
Mode : "R/W" ,
423
423
Role : "HA" ,
424
424
Status : innodb .InstanceStatusOnline ,
425
425
},
426
- "test-cluster-1.test-cluster:3306" : & innodb. Instance {
426
+ "test-cluster-1.test-cluster:3306" : {
427
427
Address : "test-cluster-1.test-cluster:3306" ,
428
428
Mode : "R/O" ,
429
429
Role : "HA" ,
430
430
Status : innodb .InstanceStatusOnline ,
431
431
},
432
- "test-cluster-2.test-cluster:3306" : & innodb. Instance {
432
+ "test-cluster-2.test-cluster:3306" : {
433
433
Address : "test-cluster-2.test-cluster:3306" ,
434
434
Mode : "R/O" ,
435
435
Role : "HA" ,
0 commit comments