Skip to content

Commit

Permalink
fix: Set MachineDeployment replicas as min node count when autoscale …
Browse files Browse the repository at this point in the history
…enabled
  • Loading branch information
okozachenko1203 authored and mnaser committed Nov 14, 2023
1 parent 5da7223 commit 3cc9b19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion magnum_cluster_api/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1671,7 +1671,9 @@ def generate_machine_deployments_for_cluster(
{
"class": "default-worker",
"name": ng.name,
"replicas": None if auto_scaling_enabled else ng.node_count,
"replicas": utils.get_node_group_min_node_count(ng)
if auto_scaling_enabled
else ng.node_count,
"metadata": {
"annotations": {
AUTOSCALE_ANNOTATION_MIN: f"{utils.get_node_group_min_node_count(ng)}", # noqa: E501
Expand Down

0 comments on commit 3cc9b19

Please sign in to comment.