Skip to content

Commit

Permalink
Merge pull request #259 from mjura/nodepool-mode-v2.7
Browse files Browse the repository at this point in the history
Fix update mode for node pool groups
  • Loading branch information
mjura committed Aug 28, 2023
2 parents 644be81 + cda5b8d commit b5fb69a
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 b5fb69a

Please sign in to comment.