mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-02 21:33:07 +00:00
Add env-based cfgsync port override in helm templates
This commit is contained in:
parent
34be48b5b7
commit
a5e6ebf5e6
@ -39,3 +39,12 @@ app.kubernetes.io/name: {{ include "nomos-runner.chart" . }}
|
||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||
nomos/logical-role: prometheus
|
||||
{{- end -}}
|
||||
|
||||
{{- define "nomos-runner.cfgsyncPort" -}}
|
||||
{{- $env := env "NOMOS_CFGSYNC_PORT" -}}
|
||||
{{- if $env -}}
|
||||
{{ $env | int }}
|
||||
{{- else -}}
|
||||
{{ .Values.cfgsync.port | int }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@ -23,7 +23,7 @@ spec:
|
||||
command: ["/etc/nomos/scripts/run_cfgsync.sh"]
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: {{ .Values.cfgsync.port }}
|
||||
containerPort: {{ include "nomos-runner.cfgsyncPort" . }}
|
||||
env:
|
||||
- name: RUST_LOG
|
||||
value: debug
|
||||
|
||||
@ -11,5 +11,5 @@ spec:
|
||||
nomos/component: cfgsync
|
||||
ports:
|
||||
- name: http
|
||||
port: {{ .Values.cfgsync.port }}
|
||||
port: {{ include "nomos-runner.cfgsyncPort" . }}
|
||||
targetPort: http
|
||||
|
||||
@ -2,7 +2,7 @@ image: "nomos-testnet:local"
|
||||
imagePullPolicy: IfNotPresent
|
||||
|
||||
cfgsync:
|
||||
port: {{ default 4400 (env "NOMOS_CFGSYNC_PORT") | int }}
|
||||
port: 4400
|
||||
config: ""
|
||||
|
||||
scripts:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user