diff --git a/stable/cluster-autoscaler/Chart.yaml b/stable/cluster-autoscaler/Chart.yaml index 9f0e110d2871..7b87771ccec3 100644 --- a/stable/cluster-autoscaler/Chart.yaml +++ b/stable/cluster-autoscaler/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 description: Scales worker nodes within autoscaling groups. icon: https://github.com/kubernetes/kubernetes/blob/master/logo/logo.png name: cluster-autoscaler -version: 6.0.1 +version: 6.1.0 appVersion: 1.14.6 home: https://github.com/kubernetes/autoscaler sources: diff --git a/stable/cluster-autoscaler/README.md b/stable/cluster-autoscaler/README.md index 8951e2589f2c..a751d59f3488 100644 --- a/stable/cluster-autoscaler/README.md +++ b/stable/cluster-autoscaler/README.md @@ -162,6 +162,8 @@ Parameter | Description | Default `envFromConfigMap` | additional container environment variables from a configmap | `{}` `envFromSecret` | secret name containing keys that will be exposed as envs | `nil` `extraEnvSecrets` | additional container environment variables from a secret | `{}` +`fullnameOverride` | String to fully override cluster-autoscaler.fullname template | `""` +`nameOverride` | String to partially override cluster-autoscaler.fullname template (will maintain the release name) | `""` `nodeSelector` | node labels for pod assignment | `{}` `podAnnotations` | annotations to add to each pod | `{}` `rbac.create` | If true, create & use RBAC resources | `false` diff --git a/stable/cluster-autoscaler/templates/_helpers.tpl b/stable/cluster-autoscaler/templates/_helpers.tpl index adce604e4f93..a40225d37ddf 100644 --- a/stable/cluster-autoscaler/templates/_helpers.tpl +++ b/stable/cluster-autoscaler/templates/_helpers.tpl @@ -11,6 +11,9 @@ Create a default fully qualified app name. We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). */}} {{- define "cluster-autoscaler.fullname" -}} +{{- if .Values.fullnameOverride -}} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} {{- $name := default (printf "%s-%s" .Values.cloudProvider .Chart.Name) .Values.nameOverride -}} {{- if ne $name .Release.Name -}} {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} @@ -18,6 +21,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this {{- printf "%s" $name | trunc 63 | trimSuffix "-" -}} {{- end -}} {{- end -}} +{{- end -}} {{/* Create chart name and version as used by the chart label. diff --git a/stable/cluster-autoscaler/values.yaml b/stable/cluster-autoscaler/values.yaml index 7023f5a26078..fe7325135e2c 100644 --- a/stable/cluster-autoscaler/values.yaml +++ b/stable/cluster-autoscaler/values.yaml @@ -166,3 +166,9 @@ serviceMonitor: ## [Kube Prometheus Selector Label](https://github.com/helm/charts/tree/master/stable/prometheus-operator#exporters) selector: prometheus: kube-prometheus + +## String to partially override cluster-autoscaler.fullname template (will maintain the release name) +nameOverride: "" + +## String to fully override cluster-autoscaler.fullname template +fullnameOverride: ""