Skip to content

Commit d5d6533

Browse files
authored
Closing issue #185 (#186)
* Closing issue #185 * issue #185: correct default value for customLabels * issue #185: cover GoQuorum as well
1 parent dee98af commit d5d6533

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

helm/charts/besu-node/templates/node-statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ metadata:
1313
app.kubernetes.io/namespace: {{ .Release.Namespace }}
1414
app.kubernetes.io/release: {{ .Release.Name }}
1515
app.kubernetes.io/managed-by: helm
16+
{{- range $labelName, $labelValue := .Values.node.besu.customLabels }}
17+
{{ $labelName }}: {{ $labelValue }}
18+
{{- end }}
1619
namespace: {{ .Release.Namespace }}
1720
spec:
1821
replicas: 1

helm/charts/besu-node/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ node:
5555
privateKeyPath: "/keys/nodekey"
5656
genesisFilePath: "/etc/genesis/genesis.json"
5757
logging: INFO
58+
customLabels: {}
5859
account:
5960
password: 'password'
6061
passwordPath: "/keys/accountPassword"

helm/charts/goquorum-node/templates/node-statefulset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ metadata:
1414
app.kubernetes.io/namespace: {{ .Release.Namespace }}
1515
app.kubernetes.io/release: {{ .Release.Name }}
1616
app.kubernetes.io/managed-by: helm
17+
{{- range $labelName, $labelValue := .Values.node.goquorum.customLabels }}
18+
{{ $labelName }}: {{ $labelValue }}
19+
{{- end }}
1720
namespace: {{ .Release.Namespace }}
1821
spec:
1922
replicas: 1

helm/charts/goquorum-node/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ node:
4444
dataPath: "/data/quorum"
4545
keysPath: "/keys"
4646
genesisFilePath: "/etc/genesis/genesis.json"
47+
customLabels: {}
4748
networkId: 10
4849
replicaCount: 1
4950
account:

helm/values/bootnode.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ node:
4040
memRequest: "1G"
4141
account:
4242
password: 'password'
43+
customLabels:
44+
nodeType: bootnode
4345

0 commit comments

Comments
 (0)