Skip to content

Commit

Permalink
Merge pull request #258 from mjura/nodepool-mode-v2.8
Browse files Browse the repository at this point in the history
Fix update mode for node pool groups
  • Loading branch information
mjura authored Aug 28, 2023
2 parents 2c9d9d2 + 065265f commit 09ae419
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 09ae419

Please sign in to comment.