From 73779ad42bc725185a6643d3025b6c011738bca0 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 26 Apr 2026 14:12:11 -0500 Subject: [PATCH] feat: add include and exclude to prune --- charts/rclone-bucket/Chart.yaml | 2 +- charts/rclone-bucket/README.md | 4 ++-- charts/rclone-bucket/templates/common.yaml | 8 ++++++++ charts/rclone-bucket/values.yaml | 2 ++ 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/charts/rclone-bucket/Chart.yaml b/charts/rclone-bucket/Chart.yaml index 6f3e19d..f16702b 100644 --- a/charts/rclone-bucket/Chart.yaml +++ b/charts/rclone-bucket/Chart.yaml @@ -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 diff --git a/charts/rclone-bucket/README.md b/charts/rclone-bucket/README.md index 44c9b9b..9476dbd 100644 --- a/charts/rclone-bucket/README.md +++ b/charts/rclone-bucket/README.md @@ -1,6 +1,6 @@ # rclone-bucket -![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![AppVersion: v1.73.5](https://img.shields.io/badge/AppVersion-v1.73.5-informational?style=flat-square) +![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![AppVersion: v1.73.5](https://img.shields.io/badge/AppVersion-v1.73.5-informational?style=flat-square) 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 -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 | diff --git a/charts/rclone-bucket/templates/common.yaml b/charts/rclone-bucket/templates/common.yaml index 30fb13d..6e9bcb8 100644 --- a/charts/rclone-bucket/templates/common.yaml +++ b/charts/rclone-bucket/templates/common.yaml @@ -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 diff --git a/charts/rclone-bucket/values.yaml b/charts/rclone-bucket/values.yaml index 522efc6..f61fbfb 100644 --- a/charts/rclone-bucket/values.yaml +++ b/charts/rclone-bucket/values.yaml @@ -38,6 +38,8 @@ rclone: prune: enabled: false ageToPrune: 90d + include: "" + exclude: "" # -- Secret configuration secret: