Skip to content

Commit

Permalink
fix init containers
Browse files Browse the repository at this point in the history
  • Loading branch information
steezeburger committed Sep 23, 2024
1 parent 83f1643 commit f6dd93f
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions charts/hermes/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ spec:
initContainers:
{{- range $index, $channel := .Values.createChannels }}
{{- if $channel.enabled }}
- name: create-channel-{{ $index }}
image: {{ $.Values.image }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
command: [ "hermes", "create", "channel" ]
args:
- --new-client-connection
- --yes
- --a-chain={{ $channel.chainA }}
- --b-chain={{ $channel.chainB }}
- --a-port={{ $channel.portA }}
- --b-port={{ $channel.portB }}
volumeMounts:
- mountPath: /home/hermes/.hermes
name: {{ include "hermes.fullname" $ }}-config-volume
- name: create-channel-{{ $index }}
image: {{ $.Values.image }}
imagePullPolicy: {{ $.Values.imagePullPolicy }}
command: [ "hermes", "create", "channel" ]
args:
- --new-client-connection
- --yes
- --a-chain={{ $channel.chainA }}
- --b-chain={{ $channel.chainB }}
- --a-port={{ $channel.portA }}
- --b-port={{ $channel.portB }}
volumeMounts:
- mountPath: /home/hermes/.hermes
name: {{ include "hermes.fullname" $ }}-config-volume
{{- range $chainId, $chain := $.Values.chains }}
- mountPath: "/home/hermes/.hermes/keys/{{ $chainId }}/keyring-test"
name: {{ include "hermes.fullname" $ }}-{{$chainId}}-key-volume
- mountPath: "/home/hermes/.hermes/keys/{{ $chainId }}/keyring-test"
name: {{ include "hermes.fullname" $ }}-{{$chainId}}-key-volume
{{- end }}
{{- end }}
{{- end }}
Expand All @@ -45,13 +45,13 @@ spec:
- name: hermes
image: {{ .Values.image }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
command: [ "hermes", "start" ]
command: ["hermes", "start"]
volumeMounts:
- mountPath: /home/hermes/.hermes
name: {{ include "hermes.fullname" . }}-config-volume
- mountPath: /home/hermes/.hermes
name: {{ include "hermes.fullname" . }}-config-volume
{{- range $chainId, $chain := .Values.chains }}
- mountPath: "/home/hermes/.hermes/keys/{{ $chainId }}/keyring-test"
name: {{ include "hermes.fullname" $ }}-{{$chainId}}-key-volume
- mountPath: "/home/hermes/.hermes/keys/{{ $chainId }}/keyring-test"
name: {{ include "hermes.fullname" $ }}-{{$chainId}}-key-volume
{{- end }}
ports:
- containerPort: {{ .Values.ports.rest }}
Expand Down

0 comments on commit f6dd93f

Please sign in to comment.