diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 88e145f..49ed984 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -10,9 +10,9 @@ description: | type: application -version: 0.5.48 +version: 0.5.49 -appVersion: "0.5.48" +appVersion: "0.5.49" home: https://github.com/lukaszraczylo/kubernetes-images-sync-operator diff --git a/chart/values.yaml b/chart/values.yaml index 3dff3df..a5693af 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -12,7 +12,7 @@ sa: - ALL image: repository: ghcr.io/lukaszraczylo/kubernetes-images-sync-operator - tag: 0.5.48 + tag: 0.5.49 resources: limits: cpu: 500m diff --git a/internal/shared/definitions.go b/internal/shared/definitions.go index f2c0870..d621431 100644 --- a/internal/shared/definitions.go +++ b/internal/shared/definitions.go @@ -6,13 +6,14 @@ import ( "strings" ) -var BACKUP_JOB_IMAGE = getWorkerImage() +// BACKUP_JOB_IMAGE is the image used for backup jobs +var BACKUP_JOB_IMAGE string -func getWorkerImage() string { - if img := os.Getenv("WORKER_IMAGE"); img != "" { - return img +func init() { + BACKUP_JOB_IMAGE = os.Getenv("WORKER_IMAGE") + if BACKUP_JOB_IMAGE == "" { + BACKUP_JOB_IMAGE = "ghcr.io/lukaszraczylo/kubernetes-images-sync-worker:latest" // fallback } - return "ghcr.io/lukaszraczylo/kubernetes-images-sync-worker:1.0.2" // fallback } const (