22 lines
		
	
	
		
			454 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			454 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
apiVersion: kustomize.config.k8s.io/v1beta1
 | 
						|
kind: Kustomization
 | 
						|
 | 
						|
namespace: backup
 | 
						|
resources:
 | 
						|
  - ../../cronjobs-base
 | 
						|
 | 
						|
 | 
						|
# patch the cronjob args field:
 | 
						|
patches:
 | 
						|
  - path: restic-commands.yaml
 | 
						|
    target:
 | 
						|
      kind: CronJob
 | 
						|
      name: restic-backblaze
 | 
						|
  - target:
 | 
						|
      kind: CronJob
 | 
						|
      name: restic-backblaze
 | 
						|
      # replace the name of the cronjob
 | 
						|
    patch: |-
 | 
						|
      - op: replace
 | 
						|
        path: /metadata/name
 | 
						|
        value: restic-backblaze-prune |