Skip to content

Commit

Permalink
Fix config init (#445)
Browse files Browse the repository at this point in the history
* fix public chains after #393: config-init needs access to the env

config-init needs access to the variable $CHAIN_NAME

* fix helm charts test

* fix other helm test
  • Loading branch information
nicolasochem authored May 11, 2022
1 parent 9e9517c commit 3eda09a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/tezos/templates/_containers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@
{{- include "tezos.generic_container" (dict "root" $
"type" "config-init"
"image" "octez"
"with_config" 1
"localvars" 1
) | nindent 0 }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions test/charts/mainnet.expect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ spec:
printf "\n\n\n\n\n\n\n"
envFrom:
- configMapRef:
name: tezos-config
env:
- name: MY_POD_IP
valueFrom:
Expand Down
4 changes: 4 additions & 0 deletions test/charts/mainnet2.expect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ spec:
printf "\n\n\n\n\n\n\n"
envFrom:
- configMapRef:
name: tezos-config
env:
- name: MY_POD_IP
valueFrom:
Expand Down Expand Up @@ -662,6 +664,8 @@ spec:
printf "\n\n\n\n\n\n\n"
envFrom:
- configMapRef:
name: tezos-config
env:
- name: MY_POD_IP
valueFrom:
Expand Down

0 comments on commit 3eda09a

Please sign in to comment.