feat: add include and exclude to prune
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: rclone-bucket
|
||||
version: 0.3.0
|
||||
version: 0.4.0
|
||||
description: Rclone CronJob to replicate buckets
|
||||
keywords:
|
||||
- rclone-bucket
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# rclone-bucket
|
||||
|
||||
 
|
||||
 
|
||||
|
||||
Rclone CronJob to replicate buckets
|
||||
|
||||
@@ -29,7 +29,7 @@ Rclone CronJob to replicate buckets
|
||||
| cronJob | object | `{"backoffLimit":3,"parallelism":1,"schedule":"0 0 * * *","suspend":false,"timeZone":"America/Chicago"}` | CronJob configuration |
|
||||
| image | object | `{"pullPolicy":"IfNotPresent","repository":"rclone/rclone","tag":"1.73.5@sha256:1619a625f845e169c34b952cf40c483c0392965b821c5155cde8cbfd35254a96"}` | Default image |
|
||||
| nameOverride | string | `""` | Default pattern follows <pvcTarget>-backup |
|
||||
| prune | object | `{"ageToPrune":"90d","enabled":false}` | Enable prune job |
|
||||
| prune | object | `{"ageToPrune":"90d","enabled":false,"exclude":"","include":""}` | Enable prune job |
|
||||
| rclone | object | `{"destination":{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"},"providerType":"Other","source":{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"}}` | rclone configuration |
|
||||
| rclone.destination | object | `{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"}` | Destination configuration |
|
||||
| rclone.source | object | `{"bucketName":"bucket","forcePathStyle":true,"providerType":"Other"}` | Source configuration |
|
||||
|
||||
@@ -26,6 +26,14 @@ controllers:
|
||||
- --min-age
|
||||
- {{ .Values.prune.ageToPrune }}
|
||||
{{- end }}
|
||||
{{- if .Values.prune.include }}
|
||||
- --include
|
||||
- {{ .Values.prune.include }}
|
||||
{{- end }}
|
||||
{{- if .Values.prune.exclude }}
|
||||
- --exclude
|
||||
- {{ .Values.prune.exclude }}
|
||||
{{- end }}
|
||||
- --verbose
|
||||
env:
|
||||
- name: RCLONE_S3_PROVIDER
|
||||
|
||||
@@ -38,6 +38,8 @@ rclone:
|
||||
prune:
|
||||
enabled: false
|
||||
ageToPrune: 90d
|
||||
include: ""
|
||||
exclude: ""
|
||||
|
||||
# -- Secret configuration
|
||||
secret:
|
||||
|
||||
Reference in New Issue
Block a user