@@ -318,7 +318,7 @@ func TestSyncEndpointsExistingNilSubsets(t *testing.T) {
318
318
Namespace : ns ,
319
319
ResourceVersion : "1" ,
320
320
Labels : map [string ]string {
321
- labelManagedBy : controllerName ,
321
+ LabelManagedBy : ControllerName ,
322
322
},
323
323
},
324
324
Subsets : nil ,
@@ -350,7 +350,7 @@ func TestSyncEndpointsExistingEmptySubsets(t *testing.T) {
350
350
Namespace : ns ,
351
351
ResourceVersion : "1" ,
352
352
Labels : map [string ]string {
353
- labelManagedBy : controllerName ,
353
+ LabelManagedBy : ControllerName ,
354
354
},
355
355
},
356
356
Subsets : []v1.EndpointSubset {},
@@ -383,7 +383,7 @@ func TestSyncEndpointsWithPodResourceVersionUpdateOnly(t *testing.T) {
383
383
Namespace : ns ,
384
384
ResourceVersion : "1" ,
385
385
Labels : map [string ]string {
386
- labelManagedBy : controllerName ,
386
+ LabelManagedBy : ControllerName ,
387
387
},
388
388
},
389
389
Subsets : []v1.EndpointSubset {{
@@ -510,7 +510,7 @@ func TestSyncEndpointsProtocolTCP(t *testing.T) {
510
510
Namespace : ns ,
511
511
ResourceVersion : "1" ,
512
512
Labels : map [string ]string {
513
- labelManagedBy : controllerName ,
513
+ LabelManagedBy : ControllerName ,
514
514
v1 .IsHeadlessService : "" ,
515
515
},
516
516
},
@@ -534,7 +534,7 @@ func TestSyncEndpointsHeadlessServiceLabel(t *testing.T) {
534
534
Namespace : ns ,
535
535
ResourceVersion : "1" ,
536
536
Labels : map [string ]string {
537
- labelManagedBy : controllerName ,
537
+ LabelManagedBy : ControllerName ,
538
538
v1 .IsHeadlessService : "" ,
539
539
},
540
540
},
@@ -663,7 +663,7 @@ func TestSyncEndpointsProtocolUDP(t *testing.T) {
663
663
Namespace : ns ,
664
664
ResourceVersion : "1" ,
665
665
Labels : map [string ]string {
666
- labelManagedBy : controllerName ,
666
+ LabelManagedBy : ControllerName ,
667
667
v1 .IsHeadlessService : "" ,
668
668
},
669
669
},
@@ -713,7 +713,7 @@ func TestSyncEndpointsProtocolSCTP(t *testing.T) {
713
713
Namespace : ns ,
714
714
ResourceVersion : "1" ,
715
715
Labels : map [string ]string {
716
- labelManagedBy : controllerName ,
716
+ LabelManagedBy : ControllerName ,
717
717
v1 .IsHeadlessService : "" ,
718
718
},
719
719
},
@@ -759,7 +759,7 @@ func TestSyncEndpointsItemsEmptySelectorSelectsAll(t *testing.T) {
759
759
Namespace : ns ,
760
760
ResourceVersion : "1" ,
761
761
Labels : map [string ]string {
762
- labelManagedBy : controllerName ,
762
+ LabelManagedBy : ControllerName ,
763
763
v1 .IsHeadlessService : "" ,
764
764
},
765
765
},
@@ -806,7 +806,7 @@ func TestSyncEndpointsItemsEmptySelectorSelectsAllNotReady(t *testing.T) {
806
806
Namespace : ns ,
807
807
ResourceVersion : "1" ,
808
808
Labels : map [string ]string {
809
- labelManagedBy : controllerName ,
809
+ LabelManagedBy : ControllerName ,
810
810
v1 .IsHeadlessService : "" ,
811
811
},
812
812
},
@@ -853,7 +853,7 @@ func TestSyncEndpointsItemsEmptySelectorSelectsAllMixed(t *testing.T) {
853
853
Namespace : ns ,
854
854
ResourceVersion : "1" ,
855
855
Labels : map [string ]string {
856
- labelManagedBy : controllerName ,
856
+ LabelManagedBy : ControllerName ,
857
857
v1 .IsHeadlessService : "" ,
858
858
},
859
859
},
@@ -878,7 +878,7 @@ func TestSyncEndpointsItemsPreexisting(t *testing.T) {
878
878
Namespace : ns ,
879
879
ResourceVersion : "1" ,
880
880
Labels : map [string ]string {
881
- labelManagedBy : controllerName ,
881
+ LabelManagedBy : ControllerName ,
882
882
},
883
883
},
884
884
Subsets : []v1.EndpointSubset {{
@@ -906,7 +906,7 @@ func TestSyncEndpointsItemsPreexisting(t *testing.T) {
906
906
Namespace : ns ,
907
907
ResourceVersion : "1" ,
908
908
Labels : map [string ]string {
909
- labelManagedBy : controllerName ,
909
+ LabelManagedBy : ControllerName ,
910
910
v1 .IsHeadlessService : "" ,
911
911
},
912
912
},
@@ -930,7 +930,7 @@ func TestSyncEndpointsItemsPreexistingIdentical(t *testing.T) {
930
930
Name : "foo" ,
931
931
Namespace : ns ,
932
932
Labels : map [string ]string {
933
- labelManagedBy : controllerName ,
933
+ LabelManagedBy : ControllerName ,
934
934
},
935
935
},
936
936
Subsets : []v1.EndpointSubset {{
@@ -995,7 +995,7 @@ func TestSyncEndpointsItems(t *testing.T) {
995
995
ResourceVersion : "" ,
996
996
Name : "foo" ,
997
997
Labels : map [string ]string {
998
- labelManagedBy : controllerName ,
998
+ LabelManagedBy : ControllerName ,
999
999
v1 .IsHeadlessService : "" ,
1000
1000
},
1001
1001
},
@@ -1046,7 +1046,7 @@ func TestSyncEndpointsItemsWithLabels(t *testing.T) {
1046
1046
}}
1047
1047
1048
1048
serviceLabels [v1 .IsHeadlessService ] = ""
1049
- serviceLabels [labelManagedBy ] = controllerName
1049
+ serviceLabels [LabelManagedBy ] = ControllerName
1050
1050
data := runtime .EncodeOrDie (clientscheme .Codecs .LegacyCodec (v1 .SchemeGroupVersion ), & v1.Endpoints {
1051
1051
ObjectMeta : metav1.ObjectMeta {
1052
1052
ResourceVersion : "" ,
@@ -1099,7 +1099,7 @@ func TestSyncEndpointsItemsPreexistingLabelsChange(t *testing.T) {
1099
1099
}
1100
1100
1101
1101
serviceLabels [v1 .IsHeadlessService ] = ""
1102
- serviceLabels [labelManagedBy ] = controllerName
1102
+ serviceLabels [LabelManagedBy ] = ControllerName
1103
1103
data := runtime .EncodeOrDie (clientscheme .Codecs .LegacyCodec (v1 .SchemeGroupVersion ), & v1.Endpoints {
1104
1104
ObjectMeta : metav1.ObjectMeta {
1105
1105
Name : "foo" ,
@@ -1209,7 +1209,7 @@ func TestSyncEndpointsHeadlessService(t *testing.T) {
1209
1209
Namespace : ns ,
1210
1210
ResourceVersion : "1" ,
1211
1211
Labels : map [string ]string {
1212
- labelManagedBy : controllerName ,
1212
+ LabelManagedBy : ControllerName ,
1213
1213
"a" : "b" ,
1214
1214
v1 .IsHeadlessService : "" ,
1215
1215
},
@@ -1239,7 +1239,7 @@ func TestSyncEndpointsItemsExcludeNotReadyPodsWithRestartPolicyNeverAndPhaseFail
1239
1239
Namespace : ns ,
1240
1240
ResourceVersion : "1" ,
1241
1241
Labels : map [string ]string {
1242
- labelManagedBy : controllerName ,
1242
+ LabelManagedBy : ControllerName ,
1243
1243
"foo" : "bar" ,
1244
1244
},
1245
1245
},
@@ -1264,7 +1264,7 @@ func TestSyncEndpointsItemsExcludeNotReadyPodsWithRestartPolicyNeverAndPhaseFail
1264
1264
Namespace : ns ,
1265
1265
ResourceVersion : "1" ,
1266
1266
Labels : map [string ]string {
1267
- labelManagedBy : controllerName ,
1267
+ LabelManagedBy : ControllerName ,
1268
1268
v1 .IsHeadlessService : "" ,
1269
1269
},
1270
1270
},
@@ -1310,7 +1310,7 @@ func TestSyncEndpointsItemsExcludeNotReadyPodsWithRestartPolicyNeverAndPhaseSucc
1310
1310
Namespace : ns ,
1311
1311
ResourceVersion : "1" ,
1312
1312
Labels : map [string ]string {
1313
- labelManagedBy : controllerName ,
1313
+ LabelManagedBy : ControllerName ,
1314
1314
v1 .IsHeadlessService : "" ,
1315
1315
},
1316
1316
},
@@ -1357,7 +1357,7 @@ func TestSyncEndpointsItemsExcludeNotReadyPodsWithRestartPolicyOnFailureAndPhase
1357
1357
Namespace : ns ,
1358
1358
ResourceVersion : "1" ,
1359
1359
Labels : map [string ]string {
1360
- labelManagedBy : controllerName ,
1360
+ LabelManagedBy : ControllerName ,
1361
1361
v1 .IsHeadlessService : "" ,
1362
1362
},
1363
1363
},
@@ -1392,7 +1392,7 @@ func TestSyncEndpointsHeadlessWithoutPort(t *testing.T) {
1392
1392
ObjectMeta : metav1.ObjectMeta {
1393
1393
Name : "foo" ,
1394
1394
Labels : map [string ]string {
1395
- labelManagedBy : controllerName ,
1395
+ LabelManagedBy : ControllerName ,
1396
1396
v1 .IsHeadlessService : "" ,
1397
1397
},
1398
1398
},
@@ -1612,7 +1612,7 @@ func TestLastTriggerChangeTimeAnnotation(t *testing.T) {
1612
1612
v1 .EndpointsLastChangeTriggerTime : triggerTimeString ,
1613
1613
},
1614
1614
Labels : map [string ]string {
1615
- labelManagedBy : controllerName ,
1615
+ LabelManagedBy : ControllerName ,
1616
1616
v1 .IsHeadlessService : "" ,
1617
1617
},
1618
1618
},
@@ -1669,7 +1669,7 @@ func TestLastTriggerChangeTimeAnnotation_AnnotationOverridden(t *testing.T) {
1669
1669
v1 .EndpointsLastChangeTriggerTime : triggerTimeString ,
1670
1670
},
1671
1671
Labels : map [string ]string {
1672
- labelManagedBy : controllerName ,
1672
+ LabelManagedBy : ControllerName ,
1673
1673
v1 .IsHeadlessService : "" ,
1674
1674
},
1675
1675
},
@@ -1724,7 +1724,7 @@ func TestLastTriggerChangeTimeAnnotation_AnnotationCleared(t *testing.T) {
1724
1724
Namespace : ns ,
1725
1725
ResourceVersion : "1" ,
1726
1726
Labels : map [string ]string {
1727
- labelManagedBy : controllerName ,
1727
+ LabelManagedBy : ControllerName ,
1728
1728
v1 .IsHeadlessService : "" ,
1729
1729
}, // Annotation not set anymore.
1730
1730
},
0 commit comments