Skip to content

Commit

Permalink
#29 Add configuration file to the helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
danielemery committed Aug 2, 2024
1 parent 6dbcf1c commit 424595f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions helm/templates/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-config
labels:
app: {{ .Release.Name }}
data:
{{ .Values.configFile.name }}: |
{{ .Values.configFile.content | indent 4 }}
9 changes: 9 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ spec:
envFrom:
- secretRef:
name: {{ .Values.secretName }}
volumeMounts:
- name: config-volume
mountPath: {{ .Values.configFile.mountPath }}
subPath: {{ .Values.configFile.name }}
readOnly: true
volumes:
- name: config-volume
configMap:
name: {{ .Release.Name }}-config
{{- if .Values.registrySecretName }}
imagePullSecrets:
- name: {{ .Values.registrySecretName }}
Expand Down
3 changes: 3 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
registry: ghcr.io/danielemery/keys
version: REPLACED_BY_CI
secretName: keys-secret
configFile:
name: config.yaml
mountPath: /config.yaml

0 comments on commit 424595f

Please sign in to comment.