Skip to content

Commit ecf9004

Browse files
committed
fix: add update identityServiceConfig logic
1 parent 857ae3c commit ecf9004

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

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

0 commit comments

Comments
 (0)