Skip to content

Commit 74f9564

Browse files
authored
CLOUDP-141985: Fix the GCP PE comparison (#746)
1 parent 7545a07 commit 74f9564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/atlasproject/private_endpoint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func endpointNeedsUpdating(specPeService mdbv1.PrivateEndpoint, atlasPeService a
268268
case provider.ProviderAWS, provider.ProviderAzure:
269269
return specPeService.ID != atlasPeService.InterfaceEndpointID()
270270
case provider.ProviderGCP:
271-
return specPeService.EndpointGroupName != atlasPeService.InterfaceEndpointID() && len(atlasPeService.EndpointServiceName) != len(specPeService.Endpoints)
271+
return specPeService.EndpointGroupName != atlasPeService.InterfaceEndpointID() || len(atlasPeService.ServiceAttachmentNames) != len(specPeService.Endpoints)
272272
}
273273
}
274274

0 commit comments

Comments
 (0)