Skip to content

Commit

Permalink
Fix update mode for node pool groups
Browse files Browse the repository at this point in the history
Issues: rancher#249
  • Loading branch information
mjura committed Aug 26, 2023
1 parent 2c9d9d2 commit 3724d2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controller/aks-cluster-config-handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -873,6 +873,10 @@ func (h *Handler) updateUpstreamClusterState(ctx context.Context, config *aksv1.
logrus.Infof("Updating max surge in node pool [%s] for cluster [%s]", to.String(np.Name), config.Spec.ClusterName)
updateNodePool = true
}
if np.Mode != "" && np.Mode != upstreamNodePool.Mode {
logrus.Infof("Updating mode in node pool [%s] for cluster [%s]", to.String(np.Name), config.Spec.ClusterName)
updateNodePool = true
}
} else {
logrus.Infof("Adding node pool [%s] for cluster [%s]", to.String(np.Name), config.Spec.ClusterName)
updateNodePool = true
Expand Down

0 comments on commit 3724d2e

Please sign in to comment.