Skip to content

Commit

Permalink
Handle config files in epics-opis
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelldls committed Jul 11, 2024
1 parent 7306286 commit 654d78b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 40 deletions.
40 changes: 0 additions & 40 deletions Charts/epics-opis/config/nginx.conf

This file was deleted.

11 changes: 11 additions & 0 deletions Charts/epics-opis/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-config
labels:
app: {{ .Release.Name }}
data:
{{- range $k, $v := .Values.global.files }}
{{ $k | replace "_dot_" "." }}: |-
{{ $v | indent 4 }}
{{- end }}
4 changes: 4 additions & 0 deletions Charts/epics-opis/templates/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ spec:
app: {{ .Release.Name }}
location: {{ .Values.location }}
ioc_group: {{ .Values.ioc_group }}
annotations:
{{- range $k, $v := .Values.global.files }}
{{ $k }}-sha256: {{ $v | sha256sum }}
{{- end }}
spec:
volumes:
- name: html-volume
Expand Down

0 comments on commit 654d78b

Please sign in to comment.