cerebro: range over .Values.env to set specific auth settings (#15351)

Signed-off-by: Sebastien Doido <s.doido@gmail.com>
This commit is contained in:
Sebastien DOIDO
2019-07-26 03:07:58 -07:00
committed by Kubernetes Prow Robot
parent 6185240ae3
commit 52103a9d86
4 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: cerebro
version: 1.1.2
version: 1.1.3
appVersion: 0.8.3
apiVersion: v1
description: A Helm chart for Cerebro - a web admin tool that replaces Kopf.
+1
View File
@@ -62,6 +62,7 @@ The following table lists the configurable parameters of the cerebro chart and t
| `nodeSelector` | Settings for nodeselector | `{}` |
| `tolerations` | Settings for toleration | `{}` |
| `affinity` | Settings for affinity | `{}` |
| `env` | Map of env vars (key/value ) | `{}` |
| `envFromSecretRef` | Reference to Secret with env vars | |
| `config.basePath` | Application base path | `/` |
| `config.restHistorySize` | Rest request history size per user | `50` |
+7
View File
@@ -54,6 +54,13 @@ spec:
mountPath: /var/db/cerebro
- name: config
mountPath: /etc/cerebro
{{- if .Values.env }}
env:
{{- range $index, $element := .Values.env }}
- name: {{ $index | quote }}
value: {{ $element | quote }}
{{- end }}
{{- end }}
{{- if .Values.envFromSecretRef }}
envFrom:
- secretRef:
+3
View File
@@ -1,5 +1,8 @@
replicaCount: 1
revisionHistoryLimit: 3
env:
# AUTH_TYPE: "basic"
# BASIC_AUTH_USER: "admin"
image:
repository: lmenezes/cerebro