Skip to content

Commit 00ce51c

Browse files
committed
pod: update pod for extra containers
1 parent 51e2f61 commit 00ce51c

File tree

1 file changed

+16
-14
lines changed
  • resources/charts/bitcoincore/charts/lnd/templates

1 file changed

+16
-14
lines changed

resources/charts/bitcoincore/charts/lnd/templates/pod.yaml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,23 @@ spec:
2121
{{- end }}
2222
securityContext:
2323
{{- toYaml .Values.podSecurityContext | nindent 4 }}
24+
{{- with .Values.extraContainers }}
2425
initContainers:
25-
- name: prepare-files
26-
image: busybox
27-
command:
28-
- sh
29-
- -c
30-
- |
31-
cp /root/.lnd/tls.cert /root/.lnd/tls_copy.cert
32-
chmod 644 /root/.lnd/tls_copy.cert
33-
volumeMounts:
34-
- name: lnd-data
35-
mountPath: /root/.lnd
36-
- name: config
37-
mountPath: /root/.lnd/tls.cert
38-
subPath: tls.cert
26+
- name: prepare-files
27+
image: busybox
28+
command:
29+
- sh
30+
- -c
31+
- |
32+
cp /root/.lnd/tls.cert /root/.lnd/tls_copy.cert
33+
chmod 644 /root/.lnd/tls_copy.cert
34+
volumeMounts:
35+
- name: lnd-data
36+
mountPath: /root/.lnd
37+
- name: config
38+
mountPath: /root/.lnd/tls.cert
39+
subPath: tls.cert
40+
{{- end }}
3941
containers:
4042
- name: {{ .Chart.Name }}
4143
securityContext:

0 commit comments

Comments
 (0)