Skip to content
Snippets Groups Projects
Commit c1127ccd authored by Kalin Daskalov's avatar Kalin Daskalov
Browse files

Merge branch 'feature/generalized-helm-chart' into 'main'

Add functionality to externally supply sensitive values to Helm chart

See merge request eclipse/xfsc/tsa/policy!37
parents e4625d51 466e7909
No related branches found
No related tags found
No related merge requests found
...@@ -36,14 +36,22 @@ spec: ...@@ -36,14 +36,22 @@ spec:
image: "{{ .Values.image.repository }}/{{ .Values.image.name }}:{{ default .Chart.AppVersion .Values.image.tag }}" image: "{{ .Values.image.repository }}/{{ .Values.image.name }}:{{ default .Chart.AppVersion .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy | quote }} imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
env: env:
{{- if .Values.mongo.addr }}
- name: MONGO_ADDR - name: MONGO_ADDR
value: {{ .Values.mongo.addr | quote }} value: {{ .Values.mongo.addr | quote }}
{{- end }}
{{- if .Values.mongo.user }}
- name: MONGO_USER - name: MONGO_USER
value: {{ .Values.mongo.user | quote }} value: {{ .Values.mongo.user | quote }}
{{- end }}
{{- if .Values.mongo.pass }}
- name: MONGO_PASS - name: MONGO_PASS
value: {{ .Values.mongo.pass | quote }} value: {{ .Values.mongo.pass | quote }}
{{- end }}
{{- if .Values.mongo.dbname }}
- name: MONGO_DB - name: MONGO_DB
value: {{ .Values.mongo.dbname | quote }} value: {{ .Values.mongo.dbname | quote }}
{{- end }}
- name: MONGO_EXPIRATION - name: MONGO_EXPIRATION
value: {{ .Values.mongo.collection | quote }} value: {{ .Values.mongo.collection | quote }}
- name: LOG_LEVEL - name: LOG_LEVEL
...@@ -73,6 +81,15 @@ spec: ...@@ -73,6 +81,15 @@ spec:
{{- if .Values.extraVars }} {{- if .Values.extraVars }}
{{- toYaml .Values.extraVars | indent 10 }} {{- toYaml .Values.extraVars | indent 10 }}
{{- end }} {{- end }}
{{- if .Values.secretEnv }}
{{- range $key, $value := .Values.secretEnv }}
- name: "{{ $key }}"
valueFrom:
secretKeyRef:
name: "{{ $value.name }}"
key: "{{ $value.key }}"
{{- end }}
{{- end }}
ports: ports:
{{- if .Values.metrics.enabled }} {{- if .Values.metrics.enabled }}
- name: monitoring - name: monitoring
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment