diff --git a/pkg/controller/atlasproject/private_endpoint.go b/pkg/controller/atlasproject/private_endpoint.go index ab7495b076..f6b26df4cc 100644 --- a/pkg/controller/atlasproject/private_endpoint.go +++ b/pkg/controller/atlasproject/private_endpoint.go @@ -268,7 +268,7 @@ func endpointNeedsUpdating(specPeService mdbv1.PrivateEndpoint, atlasPeService a case provider.ProviderAWS, provider.ProviderAzure: return specPeService.ID != atlasPeService.InterfaceEndpointID() case provider.ProviderGCP: - return specPeService.EndpointGroupName != atlasPeService.InterfaceEndpointID() && len(atlasPeService.EndpointServiceName) != len(specPeService.Endpoints) + return specPeService.EndpointGroupName != atlasPeService.InterfaceEndpointID() || len(atlasPeService.ServiceAttachmentNames) != len(specPeService.Endpoints) } }