Fix environment env var in jobs component (#547)
This commit is contained in:
parent
1440fa3741
commit
520997f6d7
|
@ -1,4 +1,4 @@
|
||||||
ENVIRONMENT=staging
|
ENVIRONMENT=staging-mainnet
|
||||||
NAMESPACE=wormscan
|
NAMESPACE=wormscan
|
||||||
NAME=wormscan-notional-job
|
NAME=wormscan-notional-job
|
||||||
IMAGE_NAME=
|
IMAGE_NAME=
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
ENVIRONMENT=test
|
ENVIRONMENT=staging-testnet
|
||||||
NAMESPACE=wormscan-testnet
|
NAMESPACE=wormscan-testnet
|
||||||
NAME=wormscan-notional-job
|
NAME=wormscan-notional-job
|
||||||
IMAGE_NAME=
|
IMAGE_NAME=
|
||||||
|
|
|
@ -14,7 +14,7 @@ spec:
|
||||||
image: {{ .IMAGE_NAME }}
|
image: {{ .IMAGE_NAME }}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: ENV
|
- name: ENVIRONMENT
|
||||||
value: {{ .ENVIRONMENT }}
|
value: {{ .ENVIRONMENT }}
|
||||||
- name: P2P_NETWORK
|
- name: P2P_NETWORK
|
||||||
value: {{ .P2P_NETWORK }}
|
value: {{ .P2P_NETWORK }}
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
|
|
||||||
// Configuration is the configuration for the job
|
// Configuration is the configuration for the job
|
||||||
type Configuration struct {
|
type Configuration struct {
|
||||||
Env string `env:"ENV,default=development"`
|
Environment string `env:"ENVIRONMENT,required"`
|
||||||
LogLevel string `env:"LOG_LEVEL,default=INFO"`
|
LogLevel string `env:"LOG_LEVEL,default=INFO"`
|
||||||
JobID string `env:"JOB_ID,required"`
|
JobID string `env:"JOB_ID,required"`
|
||||||
CoingeckoURL string `env:"COINGECKO_URL,required"`
|
CoingeckoURL string `env:"COINGECKO_URL,required"`
|
||||||
|
|
Loading…
Reference in New Issue