Skip to content

Commit 61da106

Browse files
committed
Define new values in network.yaml file
1 parent 6745906 commit 61da106

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ spec:
3838
# Ensure the file has the correct permissions
3939
chmod 644 /shared-data/admin.macaroon
4040
volumeMounts:
41+
{{- if .Values.sharedVolume }}
4142
- name: {{ .Values.sharedVolume.name }}
4243
mountPath: {{ .Values.sharedVolume.mountPath }}
44+
{{- end }}
4345
- name: config
4446
mountPath: /config
4547
{{- end }}
@@ -68,8 +70,10 @@ spec:
6870
resources:
6971
{{- toYaml .Values.resources | nindent 8 }}
7072
volumeMounts:
73+
{{- if .Values.sharedVolume }}
7174
- mountPath: {{ .Values.sharedVolume.mountPath }}
7275
name: {{ .Values.sharedVolume.name }}
76+
{{- end }}
7377
{{- with .Values.volumeMounts }}
7478
{{- toYaml . | nindent 8 }}
7579
{{- end }}
@@ -85,12 +89,11 @@ spec:
8589
{{- with .Values.extraContainers }}
8690
{{- toYaml . | nindent 4 }}
8791
{{- end }}
88-
{{- with .Values.extraContainers }}
89-
{{- toYaml . | nindent 4 }}
90-
{{- end }}
9192
volumes:
93+
{{- if .Values.sharedVolume }}
9294
- name: {{ .Values.sharedVolume.name }}
9395
emptyDir: {}
96+
{{- end }}
9497
{{- with .Values.volumes }}
9598
{{- toYaml . | nindent 4 }}
9699
{{- end }}

resources/charts/bitcoincore/charts/lnd/values.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,3 @@ config: ""
132132
defaultConfig: ""
133133

134134
channels: []
135-
136-
# Controls whether the initContainers should be included
137-
enableInitContainers: true
138-
139-
# Shared volume configuration for storing shared data (e.g., macaroons or other files)
140-
# This volume is mounted at the specified mountPath and can be used for inter-container communication.
141-
sharedVolume:
142-
name: shared-data
143-
mountPath: /shared-data

resources/networks/hello/network.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ nodes:
3232
target: tank-0004-ln
3333
capacity: 100000
3434
push_amt: 50000
35+
sharedVolume: # Shared volume configuration for storing shared data (e.g., macaroons or other files). This volume is mounted at the specified mountPath and can be used for inter-container communication.
36+
name: shared-data
37+
mountPath: /shared-data
38+
enableInitContainers: true # Controls whether the initContainers should be included in the pod spec
3539
extraContainers:
3640
- name: circuitbreaker
3741
image: camillarhi/circuitbreaker:latest

0 commit comments

Comments
 (0)