Skip to content

Commit

Permalink
fix: command condition
Browse files Browse the repository at this point in the history
  • Loading branch information
omidasadpour committed Jul 19, 2023
1 parent f488072 commit b4de5c5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions charts/rollups-validator-node/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ spec:
{{- if .Values.validator.dispatcher.command }}
command:
{{- include "tplvalues.render" (dict "value" .Values.validator.dispatcher.command "context" $) | nindent 12 }}
{{- end }}
{{- else }}
args:
{{- if .Values.validator.dispatcher.healthCheck.enabled }}
{{- if .Values.validator.dispatcher.healthCheck.port }}
Expand All @@ -156,6 +156,7 @@ spec:
{{- else if .Values.redis.endpoint }}
- {{ print "--redis-endpoint=" .Values.redis.endpoint | quote }}
{{- end }}
{{- end }}
{{- range .Values.validator.dispatcher.args }}
- {{ . | quote}}
{{- end }}
Expand Down Expand Up @@ -221,7 +222,7 @@ spec:
{{- if .Values.validator.stateServer.command }}
command:
{{- include "tplvalues.render" (dict "value" .Values.validator.stateServer.command "context" $) | nindent 12 }}
{{- end }}
{{- else }}
args:
{{- if .Values.validator.localnode.enabled }}
- --bh-http-endpoint=http://{{ include "validator.fullname" . }}-localnode:8545
Expand All @@ -230,6 +231,7 @@ spec:
- {{ print "--bh-http-endpoint=" (required "A valid .Values.dapp.httpProvider is required" .Values.dapp.httpProvider) | quote }}
- {{ print "--bh-ws-endpoint=" (required "A valid .Values.dapp.wsProvider is required" .Values.dapp.wsProvider) | quote }}
{{- end }}
{{- end }}
{{- range .Values.validator.stateServer.args }}
- {{ . | quote}}
{{- end }}
Expand Down Expand Up @@ -272,7 +274,7 @@ spec:
{{- if .Values.validator.indexer.command }}
command:
{{- include "tplvalues.render" (dict "value" .Values.validator.indexer.command "context" $) | nindent 12 }}
{{- end }}
{{- else }}
args:
{{- if .Values.validator.indexer.healthCheck.enabled }}
{{- if .Values.validator.indexer.healthCheck.port }}
Expand All @@ -291,6 +293,7 @@ spec:
{{- else if .Values.redis.endpoint }}
- {{ print "--redis-endpoint=" .Values.redis.endpoint | quote }}
{{- end }}
{{- end }}
{{- range .Values.validator.indexer.args }}
- {{ . | quote}}
{{- end }}
Expand Down Expand Up @@ -452,7 +455,7 @@ spec:
{{- if .Values.serverManager.advanceRunner.command }}
command:
{{- include "tplvalues.render" (dict "value" .Values.serverManager.advanceRunner.command "context" $) | nindent 12 }}
{{- end }}
{{- else }}
args:
{{- if .Values.serverManager.advanceRunner.healthCheck.enabled }}
{{- if .Values.serverManager.advanceRunner.healthCheck.port }}
Expand All @@ -474,6 +477,7 @@ spec:
{{- else if .Values.redis.endpoint }}
- {{ print "--redis-endpoint=" .Values.redis.endpoint | quote }}
{{- end }}
{{- end }}
{{- range .Values.serverManager.advanceRunner.args }}
- {{ . | quote}}
{{- end }}
Expand Down

0 comments on commit b4de5c5

Please sign in to comment.