fix: Use postRenderer to replace broken kuberlr-kubectl image in rancher-backup hook
Some checks failed
Deploy Cluster / Terraform (push) Successful in 55s
Deploy Cluster / Ansible (push) Has been cancelled

The chart's post-install hook hardcodes rancher/kuberlr-kubectl which
can't download kubectl. Use Flux postRenderers to patch the job image
to bitnami/kubectl at render time.
This commit is contained in:
2026-04-02 00:51:50 +00:00
parent 75e3604f30
commit 30ccf13c82

View File

@@ -20,11 +20,9 @@ spec:
createNamespace: true
remediation:
retries: 3
skipHooks: true
upgrade:
remediation:
retries: 3
skipHooks: true
values:
image:
repository: rancher/backup-restore-operator
@@ -32,3 +30,13 @@ spec:
image:
repository: bitnami/kubectl
tag: "1.34"
postRenderers:
- kustomize:
patches:
- target:
kind: Job
name: rancher-backup-patch-sa
patch: |
- op: replace
path: /spec/template/spec/containers/0/image
value: bitnami/kubectl:1.34