[stable/kibana] Ability to mount additional configmaps (#9997)

* [stable/kibana] Ability to mount additional configmaps

Signed-off-by: Mikhail Advani <mikhail.advani@gmail.com>

* [stable/kibana] Test addition and version correction

Signed-off-by: Mikhail Advani <mikhail.advani@gmail.com>
This commit is contained in:
Mikhail Advani
2018-12-17 15:34:20 -08:00
committed by Kubernetes Prow Robot
parent 0951e9f076
commit f43874c056
5 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: kibana
version: 1.0.3
version: 1.1.0
appVersion: 6.5.3
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
+1
View File
@@ -100,6 +100,7 @@ The following table lists the configurable parameters of the kibana chart and th
| `securityContext.allowPrivilegeEscalation` | Allow privilege escalation | `false` |
| `securityContext.runAsUser` | User id to run in pods | `1000` |
| `securityContext.fsGroup` | fsGroup id to run in pods | `2000` |
| `extraConfigMapMounts` | Additional configmaps to be mounted | `[]` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
@@ -0,0 +1,6 @@
---
extraConfigMapMounts:
- name: logtrail-configs
configMap: kibana-logtrail
mountPath: /usr/share/kibana/plugins/logtrail/logtrail.json
subPath: logtrail.json
+10
View File
@@ -173,6 +173,11 @@ spec:
{{- end }}
{{- with .Values.extraContainers }}
{{ tpl . $ | indent 6 }}
{{- end }}
{{- range .Values.extraConfigMapMounts }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
subPath: {{ .subPath }}
{{- end }}
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
@@ -215,3 +220,8 @@ spec:
name: {{ template "kibana.fullname" . }}-importscript
defaultMode: 0777
{{- end }}
{{- range .Values.extraConfigMapMounts }}
- name: {{ .name }}
configMap:
name: {{ .configMap }}
{{- end }}
+6
View File
@@ -177,3 +177,9 @@ securityContext:
allowPrivilegeEscalation: false
runAsUser: 1000
fsGroup: 2000
extraConfigMapMounts: []
# - name: logtrail-configs
# configMap: kibana-logtrail
# mountPath: /usr/share/kibana/plugins/logtrail/logtrail.json
# subPath: logtrail.json