Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions chart/templates/backend-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ spec:
{{- end }}
serviceAccountName: {{ template "lightrun-be.serviceAccountName" . }}
volumes:
{{- if and .Values.general.system_config.content .Values.general.system_config.signature }}
- name: system-config
configMap:
name: {{ include "lightrun.fullname" . }}-system-config
{{- end }}
- name: encryption-keys
secret:
secretName: {{ include "secrets.backend.name" . }}
Expand Down Expand Up @@ -133,10 +135,12 @@ spec:
"/usr/src/lightrun/{{ .Values.deployments.backend.jar_name }}"
]
volumeMounts:
{{- if and .Values.general.system_config.content .Values.general.system_config.signature }}
- name: system-config
mountPath: {{ .Values.general.system_config.file_path }}
subPath: {{ base .Values.general.system_config.file_path }}
readOnly: true
{{- end }}
- name: encryption-keys
mountPath: /encryption-keys
readOnly: true
Expand Down Expand Up @@ -200,10 +204,12 @@ spec:
- secretRef:
name: {{ include "secrets.backend.name" . }}
env:
{{- if and .Values.general.system_config.content .Values.general.system_config.signature }}
- name: LIGHTRUN_SYSTEM_CONFIG_JSON_FILE_PATH
value: {{ .Values.general.system_config.file_path }}
- name: LIGHTRUN_SYSTEM_CONFIG_JSON_SIGNATURE
value: {{ .Values.general.system_config.signature }}
{{- end }}
- name: SERVER_SECURITY_ENCRYPTION-KEYS-PATH
value: file:/encryption-keys
- name: LIGHTRUN_HOSTNAME
Expand Down
4 changes: 3 additions & 1 deletion chart/templates/backend-system-config-cm.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{{- if and .Values.general.system_config.content .Values.general.system_config.signature }}
kind: ConfigMap
apiVersion: v1
metadata:
name: {{ include "lightrun.fullname" . }}-system-config
data:
system_config.json: {{ .Values.general.system_config.content }}
system_config.json: {{ .Values.general.system_config.content | b64dec | quote }}
{{- end }}