Skip to content

Commit bd5d99f

Browse files
committed
feat: adding configmaps support
1 parent 46a32f9 commit bd5d99f

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
### Added
66

77
- Ability to insert custom securityContext block
8+
- ConfigMap support
89

910
## [2.6.1] - 2025-02-15
1011

chart/templates/deployment.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ spec:
3838
{{- end }}
3939
{{- if .Values.volumes.enabled }}
4040
volumeMounts:
41+
{{- if .Values.configMap }}
42+
- name: config
43+
mountPath: {{ .Values.configMap.mountPath }}
44+
readOnly: "true"
45+
{{- end }}
4146
{{- range .Values.volumes.mountPath }}
4247
{{- $dirmap := regexSplit ":" . -1 }}
4348
{{- $sub_path := slice $dirmap 0 1 | first }}
@@ -106,6 +111,11 @@ spec:
106111
fsGroup: {{ $gid | default 0 }}
107112
{{- end}}
108113
volumes:
114+
{{- if .Values.configMap }}
115+
- name: config
116+
configMap:
117+
name: {{ .Values.configMap.name }}
118+
{{- end }}
109119
- name: {{ .Release.Name }}-volume
110120
{{- if .Values.volumes.type.nfs }}
111121
nfs:

chart/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ deployNotifications:
3636
enabled: false
3737
image: ""
3838
nodeSelector: {}
39+
configMap: {}

0 commit comments

Comments
 (0)