diff --git a/charts/cluster-autoscaler/Chart.yaml b/charts/cluster-autoscaler/Chart.yaml index 4ac0ae2e836a..321addeb92b3 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.38.0 +version: 9.38.1 diff --git a/charts/cluster-autoscaler/README.md b/charts/cluster-autoscaler/README.md index f44e692284a2..74879dfeddc3 100644 --- a/charts/cluster-autoscaler/README.md +++ b/charts/cluster-autoscaler/README.md @@ -431,6 +431,7 @@ vpa: | image.pullSecrets | list | `[]` | Image pull secrets | | image.repository | string | `"registry.k8s.io/autoscaling/cluster-autoscaler"` | Image repository | | image.tag | string | `"v1.31.0"` | Image tag | +| initContainers | list | `[]` | Any additional init containers. | | kubeTargetVersionOverride | string | `""` | Allow overriding the `.Capabilities.KubeVersion.GitVersion` check. Useful for `helm template` commands. | | kwokConfigMapName | string | `"kwok-provider-config"` | configmap for configuring kwok provider | | magnumCABundlePath | string | `"/etc/kubernetes/ca-bundle.crt"` | Path to the host's CA bundle, from `ca-file` in the cloud-config file. | diff --git a/charts/cluster-autoscaler/templates/deployment.yaml b/charts/cluster-autoscaler/templates/deployment.yaml index 1b06186bf212..4850c7903805 100644 --- a/charts/cluster-autoscaler/templates/deployment.yaml +++ b/charts/cluster-autoscaler/templates/deployment.yaml @@ -46,6 +46,10 @@ spec: {{- if .Values.hostNetwork }} hostNetwork: {{ .Values.hostNetwork }} {{- end }} + {{- with .Values.initContainers }} + initContainers: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ template "cluster-autoscaler.name" . }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" diff --git a/charts/cluster-autoscaler/values.yaml b/charts/cluster-autoscaler/values.yaml index f235bf6f4d02..e4cc8b6f15c9 100644 --- a/charts/cluster-autoscaler/values.yaml +++ b/charts/cluster-autoscaler/values.yaml @@ -226,6 +226,9 @@ extraVolumeSecrets: {} # - key: subkey # path: mypath +# initContainers -- Any additional init containers. +initContainers: [] + # fullnameOverride -- String to fully override `cluster-autoscaler.fullname` template. fullnameOverride: ""