Export endpoints, endpointslice, mirroring controller names

This commit is contained in:
Dan Winship
2025-03-07 10:52:54 -05:00
parent 610adebdb7
commit d4c55d06cf
9 changed files with 62 additions and 62 deletions

View File

@@ -397,7 +397,7 @@ func TestSyncServiceEndpointSlicePendingDeletion(t *testing.T) {
OwnerReferences: []metav1.OwnerReference{*ownerRef},
Labels: map[string]string{
discovery.LabelServiceName: serviceName,
discovery.LabelManagedBy: controllerName,
discovery.LabelManagedBy: ControllerName,
},
DeletionTimestamp: &deletedTs,
},
@@ -442,7 +442,7 @@ func TestSyncServiceEndpointSliceLabelSelection(t *testing.T) {
OwnerReferences: []metav1.OwnerReference{*ownerRef},
Labels: map[string]string{
discovery.LabelServiceName: serviceName,
discovery.LabelManagedBy: controllerName,
discovery.LabelManagedBy: ControllerName,
},
},
AddressType: discovery.AddressTypeIPv4,
@@ -453,7 +453,7 @@ func TestSyncServiceEndpointSliceLabelSelection(t *testing.T) {
OwnerReferences: []metav1.OwnerReference{*ownerRef},
Labels: map[string]string{
discovery.LabelServiceName: serviceName,
discovery.LabelManagedBy: controllerName,
discovery.LabelManagedBy: ControllerName,
},
},
AddressType: discovery.AddressTypeIPv4,
@@ -472,7 +472,7 @@ func TestSyncServiceEndpointSliceLabelSelection(t *testing.T) {
Namespace: ns,
Labels: map[string]string{
discovery.LabelServiceName: "something-else",
discovery.LabelManagedBy: controllerName,
discovery.LabelManagedBy: ControllerName,
},
},
AddressType: discovery.AddressTypeIPv4,
@@ -529,7 +529,7 @@ func TestOnEndpointSliceUpdate(t *testing.T) {
Namespace: ns,
Labels: map[string]string{
discovery.LabelServiceName: serviceName,
discovery.LabelManagedBy: controllerName,
discovery.LabelManagedBy: ControllerName,
},
},
AddressType: discovery.AddressTypeIPv4,
@@ -1750,7 +1750,7 @@ func TestSyncServiceStaleInformer(t *testing.T) {
Generation: testcase.informerGenerationNumber,
Labels: map[string]string{
discovery.LabelServiceName: serviceName,
discovery.LabelManagedBy: controllerName,
discovery.LabelManagedBy: ControllerName,
},
},
AddressType: discovery.AddressTypeIPv4,
@@ -1977,7 +1977,7 @@ func TestUpdateNode(t *testing.T) {
Namespace: "ns",
Labels: map[string]string{
discovery.LabelServiceName: "svc",
discovery.LabelManagedBy: controllerName,
discovery.LabelManagedBy: ControllerName,
},
},
Endpoints: []discovery.Endpoint{