Unverified Commit 63135854 authored by Brian Lai's avatar Brian Lai Committed by GitHub

Mount license from secret using configurable key, instead of hardcoded key (#129)

parent fc62b35c
......@@ -40,6 +40,9 @@ spec:
- name: license
secret:
secretName: {{ .Values.license.secret.name }}
items:
- key: {{ .Values.license.secret.key }}
path: license.json
{{- end }}
{{- if .Values.data.https.enabled }}
- name: tls
......@@ -99,8 +102,7 @@ spec:
mountPath: /var/lib/influxdb
{{- if .Values.license.secret }}
- name: license
mountPath: /var/run/secrets/influxdb/license.json
subPath: json
mountPath: /var/run/secrets/influxdb/
{{- end }}
{{- if .Values.data.https.enabled }}
- name: tls
......
......@@ -40,6 +40,9 @@ spec:
- name: license
secret:
secretName: {{ .Values.license.secret.name }}
items:
- key: {{ .Values.license.secret.key }}
path: license.json
{{- end }}
{{- if .Values.meta.https.enabled }}
- name: tls
......@@ -101,8 +104,7 @@ spec:
mountPath: /var/lib/influxdb
{{- if .Values.license.secret }}
- name: license
mountPath: /var/run/secrets/influxdb/license.json
subPath: json
mountPath: /var/run/secrets/influxdb/
{{- end }}
{{- if .Values.meta.https.enabled }}
- name: tls
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment