@@ -21,11 +21,11 @@ const (
2121 // LabelServiceImportName indicates the name of the multi-cluster service that an EndpointSlice belongs to.
2222 LabelServiceImportName = "multicluster.kubernetes.io/service-name"
2323
24- // LabelEntityManagedBy indicates the name of the entity that manages the EndpointSlice.
25- LabelEntityManagedBy = "endpointslice.kubernetes.io/managed-by"
24+ // LabelEndpointSliceManagedBy indicates the name of the entity that manages the EndpointSlice.
25+ LabelEndpointSliceManagedBy = "endpointslice.kubernetes.io/managed-by"
2626
27- // ValueEntityManagedBy indicates the name of the entity that manages the EndpointSlice.
28- ValueEntityManagedBy = "aws-cloud-map-mcs-controller-for-k8s"
27+ // ValueEndpointSliceManagedBy indicates the name of the entity that manages the EndpointSlice.
28+ ValueEndpointSliceManagedBy = "aws-cloud-map-mcs-controller-for-k8s"
2929)
3030
3131// ServicePortToPort converts a k8s service port to internal model port
@@ -214,7 +214,7 @@ func CreateEndpointSliceStruct(svc *v1.Service, svcImportName string) *discovery
214214 // original ServiceImport name
215215 LabelServiceImportName : svcImportName ,
216216 // 'managed-by' label set to controller
217- LabelEntityManagedBy : ValueEntityManagedBy ,
217+ LabelEndpointSliceManagedBy : ValueEndpointSliceManagedBy ,
218218 },
219219 GenerateName : svc .Name + "-" ,
220220 OwnerReferences : []metav1.OwnerReference {* metav1 .NewControllerRef (svc , schema.GroupVersionKind {
0 commit comments