mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-05 23:03: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 }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
nomos/logical-role: prometheus
|
nomos/logical-role: prometheus
|
||||||
{{- end -}}
|
{{- 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"]
|
command: ["/etc/nomos/scripts/run_cfgsync.sh"]
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: {{ .Values.cfgsync.port }}
|
containerPort: {{ include "nomos-runner.cfgsyncPort" . }}
|
||||||
env:
|
env:
|
||||||
- name: RUST_LOG
|
- name: RUST_LOG
|
||||||
value: debug
|
value: debug
|
||||||
|
|||||||
@ -11,5 +11,5 @@ spec:
|
|||||||
nomos/component: cfgsync
|
nomos/component: cfgsync
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: {{ .Values.cfgsync.port }}
|
port: {{ include "nomos-runner.cfgsyncPort" . }}
|
||||||
targetPort: http
|
targetPort: http
|
||||||
|
|||||||
@ -2,7 +2,7 @@ image: "nomos-testnet:local"
|
|||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
|
||||||
cfgsync:
|
cfgsync:
|
||||||
port: {{ default 4400 (env "NOMOS_CFGSYNC_PORT") | int }}
|
port: 4400
|
||||||
config: ""
|
config: ""
|
||||||
|
|
||||||
scripts:
|
scripts:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user