mirror of
https://github.com/lukaszraczylo/kubernetes-images-sync-operator.git
synced 2026-07-13 04:37:06 +00:00
fixup! fixup! Improve helm chart allowing for lock of the worker image
This commit is contained in:
+2
-2
@@ -10,9 +10,9 @@ description: |
|
|||||||
|
|
||||||
type: application
|
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
|
home: https://github.com/lukaszraczylo/kubernetes-images-sync-operator
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ sa:
|
|||||||
- ALL
|
- ALL
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/lukaszraczylo/kubernetes-images-sync-operator
|
repository: ghcr.io/lukaszraczylo/kubernetes-images-sync-operator
|
||||||
tag: 0.5.48
|
tag: 0.5.49
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 500m
|
cpu: 500m
|
||||||
|
|||||||
@@ -6,13 +6,14 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
var BACKUP_JOB_IMAGE = getWorkerImage()
|
// BACKUP_JOB_IMAGE is the image used for backup jobs
|
||||||
|
var BACKUP_JOB_IMAGE string
|
||||||
|
|
||||||
func getWorkerImage() string {
|
func init() {
|
||||||
if img := os.Getenv("WORKER_IMAGE"); img != "" {
|
BACKUP_JOB_IMAGE = os.Getenv("WORKER_IMAGE")
|
||||||
return img
|
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 (
|
const (
|
||||||
|
|||||||
Reference in New Issue
Block a user