fix: Use postRenderer to replace broken kuberlr-kubectl image in rancher-backup hook
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:
@@ -20,11 +20,9 @@ spec:
|
|||||||
createNamespace: true
|
createNamespace: true
|
||||||
remediation:
|
remediation:
|
||||||
retries: 3
|
retries: 3
|
||||||
skipHooks: true
|
|
||||||
upgrade:
|
upgrade:
|
||||||
remediation:
|
remediation:
|
||||||
retries: 3
|
retries: 3
|
||||||
skipHooks: true
|
|
||||||
values:
|
values:
|
||||||
image:
|
image:
|
||||||
repository: rancher/backup-restore-operator
|
repository: rancher/backup-restore-operator
|
||||||
@@ -32,3 +30,13 @@ spec:
|
|||||||
image:
|
image:
|
||||||
repository: bitnami/kubectl
|
repository: bitnami/kubectl
|
||||||
tag: "1.34"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user