Skip to content

Commit 294dd24

Browse files
committed
FEAT: haproxy: Conditionalize subPath for haproxy-config configmap
Submitted-by: Timur-ND Signed-off-by: Antonio Huete Jimenez <antonio.huete@onum.com>
1 parent 5172c7d commit 294dd24

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

haproxy/templates/daemonset.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ spec:
154154
volumeMounts:
155155
- name: haproxy-config
156156
mountPath: {{ .Values.configMount.mountPath }}
157+
{{- if .Values.configMount.subPath }}
157158
subPath: {{ .Values.configMount.subPath }}
159+
{{- end }}
158160
{{- if .Values.includes }}
159161
- name: includes
160162
mountPath: {{ .Values.includesMountPath }}

haproxy/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,9 @@ spec:
156156
volumeMounts:
157157
- name: haproxy-config
158158
mountPath: {{ .Values.configMount.mountPath }}
159+
{{- if .Values.configMount.subPath }}
159160
subPath: {{ .Values.configMount.subPath }}
161+
{{- end }}
160162
{{- if .Values.includes }}
161163
- name: includes
162164
mountPath: {{ .Values.includesMountPath }}

0 commit comments

Comments
 (0)