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: ...@@ -40,6 +40,9 @@ spec:
- name: license - name: license
secret: secret:
secretName: {{ .Values.license.secret.name }} secretName: {{ .Values.license.secret.name }}
items:
- key: {{ .Values.license.secret.key }}
path: license.json
{{- end }} {{- end }}
{{- if .Values.data.https.enabled }} {{- if .Values.data.https.enabled }}
- name: tls - name: tls
...@@ -99,8 +102,7 @@ spec: ...@@ -99,8 +102,7 @@ spec:
mountPath: /var/lib/influxdb mountPath: /var/lib/influxdb
{{- if .Values.license.secret }} {{- if .Values.license.secret }}
- name: license - name: license
mountPath: /var/run/secrets/influxdb/license.json mountPath: /var/run/secrets/influxdb/
subPath: json
{{- end }} {{- end }}
{{- if .Values.data.https.enabled }} {{- if .Values.data.https.enabled }}
- name: tls - name: tls
......
...@@ -40,6 +40,9 @@ spec: ...@@ -40,6 +40,9 @@ spec:
- name: license - name: license
secret: secret:
secretName: {{ .Values.license.secret.name }} secretName: {{ .Values.license.secret.name }}
items:
- key: {{ .Values.license.secret.key }}
path: license.json
{{- end }} {{- end }}
{{- if .Values.meta.https.enabled }} {{- if .Values.meta.https.enabled }}
- name: tls - name: tls
...@@ -101,8 +104,7 @@ spec: ...@@ -101,8 +104,7 @@ spec:
mountPath: /var/lib/influxdb mountPath: /var/lib/influxdb
{{- if .Values.license.secret }} {{- if .Values.license.secret }}
- name: license - name: license
mountPath: /var/run/secrets/influxdb/license.json mountPath: /var/run/secrets/influxdb/
subPath: json
{{- end }} {{- end }}
{{- if .Values.meta.https.enabled }} {{- if .Values.meta.https.enabled }}
- name: tls - 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