mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/cluster-autoscaler] add support for configmap for containers environment variables (#16041)
* add support for configmap for containers environment variables Signed-off-by: Andrew Johnstone <andrew@ajohnstone.com> * Support configmaps for cluster-autoscaler Signed-off-by: Andrew Johnstone <andrew@ajohnstone.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
97e5d10b56
commit
e975982bcb
@@ -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: 3.1.0
|
||||
version: 3.2.0
|
||||
appVersion: 1.13.1
|
||||
home: https://github.com/kubernetes/autoscaler
|
||||
sources:
|
||||
|
||||
@@ -150,6 +150,7 @@ Parameter | Description | Default
|
||||
`extraArgs` | additional container arguments | `{}`
|
||||
`podDisruptionBudget` | Pod disruption budget | `maxUnavailable: 1`
|
||||
`extraEnv` | additional container environment variables | `{}`
|
||||
`envFromConfigMap` | additional container environment variables from a configmap | `[]`
|
||||
`envFromSecret` | additional container environment variables from secret | `nil`
|
||||
`nodeSelector` | node labels for pod assignment | `{}`
|
||||
`podAnnotations` | annotations to add to each pod | `{}`
|
||||
|
||||
@@ -142,6 +142,13 @@ spec:
|
||||
- name: {{ $key }}
|
||||
value: "{{ $value }}"
|
||||
{{- end }}
|
||||
{{- range $key, $value := .Values.envFromConfigMap }}
|
||||
- name: {{ $key }}
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: {{ default (include "cluster-autoscaler.fullname" $) $value.name }}
|
||||
key: {{ required "Must specify key!" $value.key }}
|
||||
{{- end }}
|
||||
{{- if .Values.envFromSecret }}
|
||||
envFrom:
|
||||
- secretRef:
|
||||
|
||||
Reference in New Issue
Block a user