Skip to content

Commit e5a8122

Browse files
committed
fix: add update identityServiceConfig logic
1 parent 3ed50cc commit e5a8122

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cloud/services/container/clusters/reconcile.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,12 @@ func (s *Service) checkDiffAndPrepareUpdate(existingCluster *containerpb.Cluster
471471
log.V(4).Info("Master authorized networks config update check", "desired", desiredMasterAuthorizedNetworksConfig)
472472
}
473473

474+
desiredEnableIdentityService := s.scope.GCPManagedControlPlane.Spec.EnableIdentityService
475+
if desiredEnableIdentityService != existingCluster.GetIdentityServiceConfig().GetEnabled() {
476+
needUpdate = true
477+
clusterUpdate.DesiredIdentityServiceConfig = &containerpb.IdentityServiceConfig{Enabled: desiredEnableIdentityService}
478+
}
479+
474480
updateClusterRequest := containerpb.UpdateClusterRequest{
475481
Name: s.scope.ClusterFullName(),
476482
Update: &clusterUpdate,

0 commit comments

Comments
 (0)