Skip to content

Commit 3f0b6e3

Browse files
Helm chart chain id fix (#299)
* Moved CHAIN_ID from secret to env key/value setup. Secrets need to be encoded so putting decimal or hexadecimal values in there will often render something like this: % Moving this to single quoted value fixes that. Signed-off-by: Matt Halder <[email protected]> * Additional comment here to tell users that this value is expected to decimal value not hexadecimal. Signed-off-by: Matt Halder <[email protected]>
1 parent fb6e217 commit 3f0b6e3

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

helm-chart/templates/deployment.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ spec:
3434
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3535
imagePullPolicy: {{ .Values.image.pullPolicy }}
3636
env:
37+
- name: CHAIN_ID
38+
value: {{ .Values.config.CHAIN_ID | squote }}
3739
- name: HEDERA_NETWORK
3840
valueFrom:
3941
secretKeyRef:
@@ -64,12 +66,6 @@ spec:
6466
name: {{ include "json-rpc-relay.fullname" . }}
6567
key: OPERATOR_KEY_ETH_SENDRAWTRANSACTION
6668
optional: true
67-
- name: CHAIN_ID
68-
valueFrom:
69-
secretKeyRef:
70-
name: {{ include "json-rpc-relay.fullname" . }}
71-
key: CHAIN_ID
72-
optional: true
7369
- name: MIRROR_NODE_URL
7470
valueFrom:
7571
secretKeyRef:

helm-chart/templates/secret.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ data:
1010
OPERATOR_KEY_MAIN: {{ .Values.config.OPERATOR_KEY_MAIN | b64enc }}
1111
OPERATOR_ID_ETH_SENDRAWTRANSACTION: {{ .Values.config.OPERATOR_ID_ETH_SENDRAWTRANSACTION | default (printf "%q" "") }}
1212
OPERATOR_KEY_ETH_SENDRAWTRANSACTION: {{ .Values.config.OPERATOR_KEY_ETH_SENDRAWTRANSACTION | default (printf "%q" "") }}
13-
CHAIN_ID: {{ printf "%s" .Values.config.CHAIN_ID | default (printf "%q" "") |b64enc }}
1413
MIRROR_NODE_URL: {{ .Values.config.MIRROR_NODE_URL | b64enc }}
1514
LOCAL_NODE: {{ .Values.config.LOCAL_NODE | quote | b64enc }}
1615
SERVER_PORT: {{ .Values.config.SERVER_PORT | quote | b64enc }}

helm-chart/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ config:
8989
OPERATOR_KEY_MAIN: ""
9090
OPERATOR_ID_ETH_SENDRAWTRANSACTION: ""
9191
OPERATOR_KEY_ETH_SENDRAWTRANSACTION: ""
92+
# This value should be in decimal, not hexadecimal format.
9293
CHAIN_ID: ""
9394
MIRROR_NODE_URL: ""
9495
LOG_LEVEL: ""

0 commit comments

Comments
 (0)