Fix environment env var in jobs component (#547)

This commit is contained in:
walker-16 2023-07-17 11:17:05 -03:00 committed by GitHub
parent 1440fa3741
commit 520997f6d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
ENVIRONMENT=staging
ENVIRONMENT=staging-mainnet
NAMESPACE=wormscan
NAME=wormscan-notional-job
IMAGE_NAME=

View File

@ -1,4 +1,4 @@
ENVIRONMENT=test
ENVIRONMENT=staging-testnet
NAMESPACE=wormscan-testnet
NAME=wormscan-notional-job
IMAGE_NAME=

View File

@ -14,7 +14,7 @@ spec:
image: {{ .IMAGE_NAME }}
imagePullPolicy: Always
env:
- name: ENV
- name: ENVIRONMENT
value: {{ .ENVIRONMENT }}
- name: P2P_NETWORK
value: {{ .P2P_NETWORK }}

View File

@ -11,7 +11,7 @@ import (
// Configuration is the configuration for the job
type Configuration struct {
Env string `env:"ENV,default=development"`
Environment string `env:"ENVIRONMENT,required"`
LogLevel string `env:"LOG_LEVEL,default=INFO"`
JobID string `env:"JOB_ID,required"`
CoingeckoURL string `env:"COINGECKO_URL,required"`