From 2ca15aa240806da5bbf39bd2343f23645bfcb59e Mon Sep 17 00:00:00 2001 From: Matt Dainty Date: Thu, 16 Nov 2023 13:33:44 +0000 Subject: [PATCH] fix: Add revisionHistoryLimit override to cluster-autoscaler Signed-off-by: Matt Dainty --- charts/cluster-autoscaler/Chart.yaml | 2 +- charts/cluster-autoscaler/README.md | 1 + charts/cluster-autoscaler/templates/deployment.yaml | 1 + charts/cluster-autoscaler/values.yaml | 3 +++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/cluster-autoscaler/Chart.yaml b/charts/cluster-autoscaler/Chart.yaml index a29a9b869caa..287861945a86 100644 --- a/charts/cluster-autoscaler/Chart.yaml +++ b/charts/cluster-autoscaler/Chart.yaml @@ -11,4 +11,4 @@ name: cluster-autoscaler sources: - https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler type: application -version: 9.31.0 +version: 9.31.1 diff --git a/charts/cluster-autoscaler/README.md b/charts/cluster-autoscaler/README.md index de85fc786631..6da99a4c24c1 100644 --- a/charts/cluster-autoscaler/README.md +++ b/charts/cluster-autoscaler/README.md @@ -442,6 +442,7 @@ vpa: | rbac.serviceAccount.name | string | `""` | The name of the ServiceAccount to use. If not set and create is `true`, a name is generated using the fullname template. | | replicaCount | int | `1` | Desired number of pods | | resources | object | `{}` | Pod resource requests and limits. | +| revisionHistoryLimit | int | `10` | The number of revisions to keep. | | secretKeyRefNameOverride | string | `""` | Overrides the name of the Secret to use when loading the secretKeyRef for AWS and Azure env variables | | securityContext | object | `{}` | [Security context for pod](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) | | service.annotations | object | `{}` | Annotations to add to service | diff --git a/charts/cluster-autoscaler/templates/deployment.yaml b/charts/cluster-autoscaler/templates/deployment.yaml index 5571b66c09f7..8bb78de4d796 100644 --- a/charts/cluster-autoscaler/templates/deployment.yaml +++ b/charts/cluster-autoscaler/templates/deployment.yaml @@ -11,6 +11,7 @@ metadata: namespace: {{ .Release.Namespace }} spec: replicas: {{ .Values.replicaCount }} + revisionHistoryLimit: {{ .Values.revisionHistoryLimit }} selector: matchLabels: {{ include "cluster-autoscaler.instance-name" . | indent 6 }} diff --git a/charts/cluster-autoscaler/values.yaml b/charts/cluster-autoscaler/values.yaml index b7b39739d3ec..52a1326ba075 100644 --- a/charts/cluster-autoscaler/values.yaml +++ b/charts/cluster-autoscaler/values.yaml @@ -321,6 +321,9 @@ resources: {} # cpu: 100m # memory: 300Mi +# revisionHistoryLimit -- The number of revisions to keep. +revisionHistoryLimit: 10 + # securityContext -- [Security context for pod](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) securityContext: {} # runAsNonRoot: true