Skip to content

Commit

Permalink
fix: add update identityServiceConfig logic
Browse files Browse the repository at this point in the history
  • Loading branch information
afarbos committed Dec 19, 2024
1 parent 95ab1aa commit b731a5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cloud/services/container/clusters/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,12 @@ func (s *Service) checkDiffAndPrepareUpdate(existingCluster *containerpb.Cluster
log.V(4).Info("Master authorized networks config update check", "desired", desiredMasterAuthorizedNetworksConfig)
}

desiredEnableIdentityService := s.scope.GCPManagedControlPlane.Spec.EnableIdentityService
if desiredEnableIdentityService != existingCluster.GetIdentityServiceConfig().GetEnabled() {
needUpdate = true
clusterUpdate.DesiredIdentityServiceConfig = &containerpb.IdentityServiceConfig{Enabled: desiredEnableIdentityService}
}

updateClusterRequest := containerpb.UpdateClusterRequest{
Name: s.scope.ClusterFullName(),
Update: &clusterUpdate,
Expand Down

0 comments on commit b731a5c

Please sign in to comment.