Skip to content

Commit acf25a1

Browse files
committed
removed init containers and shared volumes
1 parent 58257a9 commit acf25a1

File tree

1 file changed

+3
-32
lines changed
  • resources/charts/bitcoincore/charts/lnd/templates

1 file changed

+3
-32
lines changed

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

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,6 @@ spec:
2121
{{- end }}
2222
securityContext:
2323
{{- toYaml .Values.podSecurityContext | nindent 4 }}
24-
{{- if .Values.enableInitContainers }}
25-
initContainers:
26-
- name: prepare-files
27-
image: busybox
28-
command:
29-
- sh
30-
- -c
31-
- |
32-
# Read the hex-encoded macaroon from the ConfigMap
33-
HEX_MACAROON=$(cat /config/MACAROON_HEX)
34-
35-
# Convert the hex-encoded macaroon to binary format
36-
echo "$HEX_MACAROON" | xxd -r -p > /shared-data/admin.macaroon
37-
38-
# Ensure the file has the correct permissions
39-
chmod 644 /shared-data/admin.macaroon
40-
volumeMounts:
41-
{{- if .Values.sharedVolume }}
42-
- name: {{ .Values.sharedVolume.name }}
43-
mountPath: {{ .Values.sharedVolume.mountPath }}
44-
{{- end }}
45-
- name: config
46-
mountPath: /config
47-
{{- end }}
4824
containers:
4925
- name: {{ .Chart.Name }}
5026
securityContext:
@@ -70,10 +46,6 @@ spec:
7046
resources:
7147
{{- toYaml .Values.resources | nindent 8 }}
7248
volumeMounts:
73-
{{- if .Values.sharedVolume }}
74-
- mountPath: {{ .Values.sharedVolume.mountPath }}
75-
name: {{ .Values.sharedVolume.name }}
76-
{{- end }}
7749
{{- with .Values.volumeMounts }}
7850
{{- toYaml . | nindent 8 }}
7951
{{- end }}
@@ -86,14 +58,13 @@ spec:
8658
- mountPath: /root/.lnd/tls.cert
8759
name: config
8860
subPath: tls.cert
61+
- mountPath: /root/.lnd/macaroon.hex
62+
name: config
63+
subPath: MACAROON_HEX
8964
{{- with .Values.extraContainers }}
9065
{{- toYaml . | nindent 4 }}
9166
{{- end }}
9267
volumes:
93-
{{- if .Values.sharedVolume }}
94-
- name: {{ .Values.sharedVolume.name }}
95-
emptyDir: {}
96-
{{- end }}
9768
{{- with .Values.volumes }}
9869
{{- toYaml . | nindent 4 }}
9970
{{- end }}

0 commit comments

Comments
 (0)