mirror of
https://github.com/lukaszraczylo/kubernetes-images-sync-operator.git
synced 2026-06-15 00:41:26 +00:00
Improve helm chart allowing for lock of the worker image
This commit is contained in:
@@ -1,11 +1,19 @@
|
||||
package shared
|
||||
|
||||
import (
|
||||
"os"
|
||||
"regexp"
|
||||
"strings"
|
||||
)
|
||||
|
||||
var BACKUP_JOB_IMAGE = "ghcr.io/lukaszraczylo/kubernetes-images-sync-worker:1.0.2"
|
||||
var BACKUP_JOB_IMAGE = getWorkerImage()
|
||||
|
||||
func getWorkerImage() string {
|
||||
if img := os.Getenv("WORKER_IMAGE"); img != "" {
|
||||
return img
|
||||
}
|
||||
return "ghcr.io/lukaszraczylo/kubernetes-images-sync-worker:1.0.2" // fallback
|
||||
}
|
||||
|
||||
const (
|
||||
// AVAILABLE STATUSES
|
||||
|
||||
Reference in New Issue
Block a user