Skip to content

Commit 80b75d0

Browse files
committed
add possibility to add custom configs before pre-defined configuration
1 parent e22e188 commit 80b75d0

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

templates/configmap.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ metadata:
44
name: {{ .Release.Name }}-configmap
55
data:
66
dcache-k8s-door: |-
7+
8+
# Extra user configuration
9+
{{ .Values.dcache.layoutExtraPre | indent 4 }}
10+
711
{{ if .Values.dcache.door.enabled }}
812
[door-svc]
913
dcache.broker.scheme = core
@@ -163,6 +167,9 @@ data:
163167
{{ .Values.dcache.layoutExtra | indent 4 }}
164168

165169
dcache.conf: |-
170+
# Extra user configuration
171+
{{ .Values.dcache.configExtraPre | indent 4 }}
172+
166173
{{- if .Values.services.srm.enabled }}
167174
dcache.enable.space-reservation = true
168175
spacemanager.enable.unreserved-uploads-to-linkgroups = true

values.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,19 @@ dcache:
2121
- a
2222
- b
2323
- c
24-
# extra configuration for dcache.conf
24+
# extra configuration for dcache.conf, placed before the standard configuration
25+
configExtraPre: |
26+
# custom configuration before other settings
27+
28+
# extra configuration for dcache.conf, placed after the standard configuration
2529
configExtra: |
2630
27-
# extra configuration for layout.conf
31+
32+
# extra configuration for layout.conf, placed before the standard layout
33+
layoutExtraPre: |
34+
# custom configuration before other settings
35+
36+
# extra configuration for layout.conf, placed after the standard layout
2837
layoutExtra: |
2938
3039

0 commit comments

Comments
 (0)