Skip to content

Commit b731a5c

Browse files
committed
fix: add update identityServiceConfig logic
1 parent 95ab1aa commit b731a5c

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

450+
desiredEnableIdentityService := s.scope.GCPManagedControlPlane.Spec.EnableIdentityService
451+
if desiredEnableIdentityService != existingCluster.GetIdentityServiceConfig().GetEnabled() {
452+
needUpdate = true
453+
clusterUpdate.DesiredIdentityServiceConfig = &containerpb.IdentityServiceConfig{Enabled: desiredEnableIdentityService}
454+
}
455+
450456
updateClusterRequest := containerpb.UpdateClusterRequest{
451457
Name: s.scope.ClusterFullName(),
452458
Update: &clusterUpdate,

0 commit comments

Comments
 (0)