-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Config variable handling update (#451)
* Breaking up the configuration settings into secrets and configmap. Using the secret for the operator id and key. Signed-off-by: Matt Halder <[email protected]> * Deployment.yaml has been updated to use configmap and secrets from the last commit. Values file has settings for using either local or global hedera networks configurations. Signed-off-by: Matt Halder <[email protected]> * Adding support for both local and hosted hedera networks in the configmap. Added test values into minikube values file. Signed-off-by: Matt Halder <[email protected]> * Moving the eth_raw id and key from the configmap to the secrets location for both templates and values. Signed-off-by: Matt Halder <[email protected]> * Adding padded return for linting Signed-off-by: Matt Halder <[email protected]> * moving from rfc 1918 addresses to loopback address, this is how local development nodes are documented to run Signed-off-by: Matt Halder <[email protected]> * moving from rfc 1918 addresses to loopback address, this is how local development nodes are documented to run Signed-off-by: Matt Halder <[email protected]> Signed-off-by: Matt Halder <[email protected]>
- Loading branch information
1 parent
a3499e6
commit 4c3191c
Showing
5 changed files
with
76 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
imagePullSecrets: | ||
- name: ghcr-registry-auth | ||
|
||
|
||
config: | ||
# This value should be in decimal, not hexadecimal format. | ||
CHAIN_ID: "" | ||
MIRROR_NODE_URL: "" | ||
LOG_LEVEL: "" | ||
local: | ||
HEDERA_NETWORK: {"127.0.01:50211":"0.0.3"} | ||
|
||
secret: | ||
OPERATOR_ID_MAIN: "" | ||
OPERATOR_KEY_MAIN: "" | ||
OPERATOR_ID_ETH_SENDRAWTRANSACTION: "" | ||
OPERATOR_KEY_ETH_SENDRAWTRANSACTION: "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "json-rpc-relay.fullname" . }} | ||
labels: | ||
app: {{ template "json-rpc-relay.name" . }} | ||
{{ include "json-rpc-relay.labels" . | nindent 4 }} | ||
data: | ||
{{- if .Values.config.local.HEDERA_NETWORK }} | ||
HEDERA_NETWORK: {{ .Values.config.local.HEDERA_NETWORK | toJson }} | ||
{{- else if .Values.config.hosted.HEDERA_NETWORK }} | ||
HEDERA_NETWORK: {{ .Values.config.hosted.HEDERA_NETWORK }} | ||
{{- else }} | ||
HEDERA_NETWORK: {{ required "A valid HEDERA_NETWORK must be present in either .Values.config.local.HEDERA_NETWORK or .Values.config.hosted.HEDERA_NETWORK " (or .Values.config.local.HEDERA_NETWORK .Values.config.hosted.HEDERA_NETWORK) }} | ||
{{- end }} | ||
CHAIN_ID: {{ .valu}} | ||
MIRROR_NODE_URL: {{ .Values.config.MIRROR_NODE_URL }} | ||
LOCAL_NODE: {{ .Values.config.LOCAL_NODE }} | ||
SERVER_PORT: {{ .Values.config.SERVER_PORT }} | ||
CHAIN_ID: {{ .Values.config.CHAIN_ID }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters