Skip to content

Commit

Permalink
fix: Set nodegroup labels always
Browse files Browse the repository at this point in the history
  • Loading branch information
okozachenko1203 committed Oct 23, 2023
1 parent dff538d commit 31a18bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions magnum_cluster_api/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1676,14 +1676,14 @@ def generate_machine_deployments_for_cluster(
"annotations": {
AUTOSCALE_ANNOTATION_MIN: f"{utils.get_node_group_min_node_count(ng)}", # noqa: E501
AUTOSCALE_ANNOTATION_MAX: f"{utils.get_node_group_max_node_count(context, ng)}", # noqa: E501
},
}
if auto_scaling_enabled
else {},
"labels": {
f"node-role.kubernetes.io/{ng.role}": "",
"node.cluster.x-k8s.io/nodegroup": ng.name,
},
}
if auto_scaling_enabled
else {},
},
"failureDomain": utils.get_cluster_label(cluster, "availability_zone", ""),
"machineHealthCheck": {
"enable": utils.get_cluster_label_as_bool(
Expand Down

0 comments on commit 31a18bd

Please sign in to comment.