now working with the secret reference

This commit is contained in:
2023-11-22 10:03:03 +01:00
parent d6466f0472
commit ea96be6e17
4 changed files with 26 additions and 21 deletions

View File

@@ -1,15 +1,22 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
# namespace: backup
nameSuffix: -prune
namespace: backup
resources:
- ../../base
# - ./restic-commands.yaml
# patch the cronjob args field:
patches:
- path: ./restic-commands.yaml
- path: restic-commands.yaml
target:
kind: CronJob
name: restic-rclone-gdrive
- target:
kind: CronJob
name: restic-rclone-gdrive
# replace the name of the cronjob
patch: |-
- op: replace
path: /metadata/name
value: restic-gdrive-prune