Skip to content

Commit 3b4c76c

Browse files
committed
fix: add update identityServiceConfig logic
1 parent 34bb799 commit 3b4c76c

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

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

0 commit comments

Comments
 (0)