Skip to content

Commit 1ff3a45

Browse files
committed
fix: add update identityServiceConfig logic
1 parent 44c243c commit 1ff3a45

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
@@ -481,6 +481,12 @@ func (s *Service) checkDiffAndPrepareUpdate(existingCluster *containerpb.Cluster
481481
log.V(4).Info("Master authorized networks config update check", "desired", desiredMasterAuthorizedNetworksConfig)
482482
}
483483

484+
desiredEnableIdentityService := s.scope.GCPManagedControlPlane.Spec.EnableIdentityService
485+
if desiredEnableIdentityService != existingCluster.GetIdentityServiceConfig().GetEnabled() {
486+
needUpdate = true
487+
clusterUpdate.DesiredIdentityServiceConfig = &containerpb.IdentityServiceConfig{Enabled: desiredEnableIdentityService}
488+
}
489+
484490
updateClusterRequest := containerpb.UpdateClusterRequest{
485491
Name: s.scope.ClusterFullName(),
486492
Update: &clusterUpdate,

0 commit comments

Comments
 (0)