Skip to content

Commit e7ce524

Browse files
committed
fix: add update identityServiceConfig logic
1 parent f513440 commit e7ce524

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

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

0 commit comments

Comments
 (0)