From aa1b5cfe179b8e89d681198732c9751831095828 Mon Sep 17 00:00:00 2001 From: Antonin <9219052+antonincms@users.noreply.github.com> Date: Fri, 2 Aug 2024 11:56:00 +0200 Subject: [PATCH] Integrate flag in helm chart --- helm/kubestitute/Chart.yaml | 4 ++-- helm/kubestitute/README.md | 3 ++- helm/kubestitute/templates/deployment.yaml | 3 +++ helm/kubestitute/values.yaml | 2 ++ 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/helm/kubestitute/Chart.yaml b/helm/kubestitute/Chart.yaml index cdf450e..1135c7b 100644 --- a/helm/kubestitute/Chart.yaml +++ b/helm/kubestitute/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v2 name: kubestitute type: application -version: 3.0.0 -appVersion: "2.2.0" +version: 3.1.0-rc.0 +appVersion: "2.3.0-rc.0" description: Kubestitute is an event based instances lifecycle manager for Kubernetes. home: https://github.com/quortex/kubestitute sources: diff --git a/helm/kubestitute/README.md b/helm/kubestitute/README.md index fed2f49..85855ba 100644 --- a/helm/kubestitute/README.md +++ b/helm/kubestitute/README.md @@ -1,6 +1,6 @@ # kubestitute -![Version: 3.0.0](https://img.shields.io/badge/Version-3.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.2.0](https://img.shields.io/badge/AppVersion-2.2.0-informational?style=flat-square) +![Version: 3.1.0-rc.0](https://img.shields.io/badge/Version-3.1.0--rc.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.3.0-rc.0](https://img.shields.io/badge/AppVersion-2.3.0--rc.0-informational?style=flat-square) Kubestitute is an event based instances lifecycle manager for Kubernetes. @@ -72,6 +72,7 @@ helm install kubestitute kubestitute/kubestitute -n kubestitute-system | aws.secretAccessKey | string | `""` | The secret access key of a user with necessary permissions. | | manager.clusterAutoscaler.namespace | string | `"kube-system"` | The Cluster Autoscaler namespace. | | manager.clusterAutoscaler.name | string | `"cluster-autoscaler-status"` | The Cluster Autoscaler status configmap name. | +| manager.clusterAutoscaler.legacyFormat | bool | `false` | Whether to parse the Cluster Autoscaler status configmap in legacy format, used by cluster-autoscaler up to version 1.29. | | manager.priorityExpander.enabled | bool | `false` | | | manager.priorityExpander.name | string | `"priority-expander-default"` | Name of the Priority Expander object. | | manager.priorityExpander.namespace | string | `"kubestitute-system"` | Namespace of the Priority Expander object. | diff --git a/helm/kubestitute/templates/deployment.yaml b/helm/kubestitute/templates/deployment.yaml index ecbbb06..45b9e69 100644 --- a/helm/kubestitute/templates/deployment.yaml +++ b/helm/kubestitute/templates/deployment.yaml @@ -42,6 +42,9 @@ spec: - --leader-elect - --clusterautoscaler-namespace={{ .clusterAutoscaler.namespace }} - --clusterautoscaler-status-name={{ .clusterAutoscaler.name }} + {{- if .clusterAutoscaler.legacyFormat }} + - --clusterautoscaler-status-legacy-format + {{- end }} {{- if .priorityExpander.enabled }} - --priority-expander-namespace={{ .priorityExpander.namespace }} - --priority-expander-name={{ .priorityExpander.name }} diff --git a/helm/kubestitute/values.yaml b/helm/kubestitute/values.yaml index 13e928a..442ba69 100644 --- a/helm/kubestitute/values.yaml +++ b/helm/kubestitute/values.yaml @@ -16,6 +16,8 @@ manager: namespace: kube-system # -- The Cluster Autoscaler status configmap name. name: cluster-autoscaler-status + # -- Whether to parse the Cluster Autoscaler status configmap in legacy format, used by cluster-autoscaler up to version 1.29. + legacyFormat: false priorityExpander: enabled: false