Skip to content

Commit b7c60d0

Browse files
committed
values: add a possibility to inject custom configs
1 parent 91dbb9a commit b7c60d0

3 files changed

Lines changed: 34 additions & 1 deletion

File tree

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,26 @@ helm install --set image.tag=10.0.3 \
2424
--set "dcache.pools={d,f}" my-release dcache/dcache
2525
```
2626

27+
## Add extra onfiguraton to dcache.conf of layout.conf files
28+
29+
Two configuration properties control the: `dcache.configExtra` and `dcache.layoutExtra`. With a value files the confuguration can be adjusted as needed:
30+
31+
```yaml
32+
dcache:
33+
configExtra: |
34+
custom.property = value
35+
36+
layoutExtra: |
37+
[customDomain]
38+
[customDomain/cell]
39+
```
40+
41+
```bash
42+
helm install --values custom-config.yaml my-release dcache/dcache
43+
```
44+
45+
> [!NOTE]: The custom configurations are added at the end of dcache and layout conf files.
46+
2747
## Enable CTA plugin
2848

2949
```bash

templates/configmap.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,11 @@ data:
157157
pool.mover.https.port.min={{ $.Values.mover.https }}
158158
pool.mover.https.port.max={{ $.Values.mover.https }}
159159

160-
161160
{{- end }}
162161

162+
# Extra user configuration
163+
{{ .Values.dcache.layoutExtra | indent 4 }}
164+
163165
dcache.conf: |-
164166
{{- if .Values.services.srm.enabled }}
165167
dcache.enable.space-reservation = true
@@ -204,6 +206,10 @@ data:
204206
dcache.net.wan.port.min={{ $.Values.mover.wan_range_min }}
205207
dcache.net.wan.port.max={{ $.Values.mover.wan_range_max }}
206208

209+
# Extra user configuration
210+
{{ .Values.dcache.configExtra | indent 4 }}
211+
212+
207213
00-init.sh: |-
208214
export JAVA=/usr/bin/java
209215
/opt/dcache/bin/dcache database update

values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ dcache:
2121
- a
2222
- b
2323
- c
24+
# extra configuration for dcache.conf
25+
configExtra: |
26+
27+
# extra configuration for layout.conf
28+
layoutExtra: |
29+
30+
2431
#
2532
# Extra modules added into /opt/dcache/share/plugins directory
2633
#

0 commit comments

Comments
 (0)