Skip to content

Commit

Permalink
fix default chain reading from defaults.yaml file (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 authored Aug 8, 2023
1 parent 48170c2 commit 8abf22f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion charts/devnet/templates/relayers/go-relayer/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ spec:
{{- range $i, $chain := $relayer.chains }}
{{- range $fullchain := $.Values.chains }}
{{- if eq $fullchain.name $chain }}
{{ $defaultChain := get $.Values.defaultChains $fullchain.type | default dict }}
{{ $defaultFile := $.Files.Get "defaults.yaml" | fromYaml }}
{{ $defaultChain := get $defaultFile.defaultChains $fullchain.type | default dict }}
{{ $fullchain = merge $fullchain $defaultChain }}
echo "Adding {{ $fullchain.name }} chain"
Expand Down
3 changes: 2 additions & 1 deletion charts/devnet/templates/relayers/hermes/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ spec:
{{- range $i, $chain := $relayer.chains }}
{{- range $fullchain := $.Values.chains }}
{{- if eq $fullchain.name $chain }}
{{ $defaultChain := get $.Values.defaultChains $fullchain.type | default dict }}
{{ $defaultFile := $.Files.Get "defaults.yaml" | fromYaml }}
{{ $defaultChain := get $defaultFile.defaultChains $fullchain.type | default dict }}
{{ $fullchain = merge $fullchain $defaultChain }}
echo "Creating key for {{ $chain }}..."
hermes keys add \
Expand Down
3 changes: 2 additions & 1 deletion charts/devnet/templates/relayers/ts-relayer/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ spec:
{{- range $i, $chain := $relayer.chains }}
{{- range $fullchain := $.Values.chains }}
{{- if eq $fullchain.name $chain }}
{{ $defaultChain := get $.Values.defaultChains $fullchain.type | default dict }}
{{ $defaultFile := $.Files.Get "defaults.yaml" | fromYaml }}
{{ $defaultChain := get $defaultFile.defaultChains $fullchain.type | default dict }}
{{ $fullchain = merge $fullchain $defaultChain }}
DENOM="{{ $fullchain.denom }}"
RLY_ADDR=$(ibc-setup keys list | grep "{{ $fullchain.name }}" | awk '{print $2}')
Expand Down

0 comments on commit 8abf22f

Please sign in to comment.