From 12ff9c15dcbe3224b4cbb474413f8846d82f42d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Ma=C5=88=C3=A1k?= Date: Tue, 20 Sep 2022 14:01:43 +0200 Subject: [PATCH] Expose autoscaler "--balancing-ignore-label" flag through CRD --- install/01_clusterautoscaler.crd.yaml | 13 ++++++++++++- pkg/apis/autoscaling/v1/clusterautoscaler_types.go | 8 +++++++- pkg/apis/autoscaling/v1/zz_generated.deepcopy.go | 5 +++++ .../clusterautoscaler/clusterautoscaler.go | 5 +++++ .../clusterautoscaler/clusterautoscaler_test.go | 4 ++++ 5 files changed, 33 insertions(+), 2 deletions(-) diff --git a/install/01_clusterautoscaler.crd.yaml b/install/01_clusterautoscaler.crd.yaml index 324efe35e..70b94a91e 100644 --- a/install/01_clusterautoscaler.crd.yaml +++ b/install/01_clusterautoscaler.crd.yaml @@ -41,10 +41,21 @@ spec: properties: balanceSimilarNodeGroups: description: BalanceSimilarNodeGroups enables/disables the `--balance-similar-node-groups` - cluster-autocaler feature. This feature will automatically identify + cluster-autoscaler feature. This feature will automatically identify node groups with the same instance type and the same set of labels and try to keep the respective sizes of those node groups balanced. type: boolean + balancingIgnoredLabels: + description: BalancingIgnoredLabels sets "--balancing-ignore-label +