[stable/kibana] Enabling environment from secrets (#14854)

* [stable/kibana] Enabling environment from secrets

Signed-off-by: Endre Czirbesz <endre.czirbesz@rungway.com>

* [stable/kibana] Fixing indentation

Signed-off-by: Endre Czirbesz <endre.czirbesz@rungway.com>
This commit is contained in:
Endre Czirbesz
2019-06-19 08:06:33 -07:00
committed by Kubernetes Prow Robot
parent 108bfc0321
commit 3000fc2b72
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: kibana
version: 3.0.0
version: 3.1.0
appVersion: 6.7.0
description: Kibana is an open source data visualization plugin for Elasticsearch
icon: https://raw.githubusercontent.com/elastic/kibana/master/src/ui/public/icons/kibana-color.svg
+3
View File
@@ -42,6 +42,9 @@ The following table lists the configurable parameters of the kibana chart and th
| ------------------------------------------ | ---------------------------------------------------------------------- | ------------------------------------- |
| `affinity` | node/pod affinities | None |
| `env` | Environment variables to configure Kibana | `{}` |
| `envFromSecrets` | Environment variables from secrets to the cronjob container | {} |
| `envFromSecrets.*.from.secret` | - `secretKeyRef.name` used for environment variable | |
| `envFromSecrets.*.from.key` | - `secretKeyRef.key` used for environment variable | |
| `files` | Kibana configuration files | None |
| `livenessProbe.enabled` | livenessProbe to be enabled? | `false` |
| `livenessProbe.path` | path for livenessProbe | `/status` |
+9
View File
@@ -140,6 +140,15 @@ spec:
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
{{- if .Values.envFromSecrets }}
{{- range $key,$value := .Values.envFromSecrets }}
- name: {{ $key | upper | quote}}
valueFrom:
secretKeyRef:
name: {{ $value.from.secret | quote}}
key: {{ $value.from.key | quote}}
{{- end }}
{{- end }}
{{- if (not .Values.authProxyEnabled) }}
ports:
- containerPort: {{ .Values.service.internalPort }}