owncloud / ocis-charts

:chart_with_upwards_trend: Helm Charts for ownCloud's OCIS
https://owncloud.dev/ocis/deployment/kubernetes/
Apache License 2.0
46 stars 24 forks source link

introduce labels for resources to be backed up #587

Closed wkloucek closed 1 week ago

wkloucek commented 1 month ago

Description

Introduces a new option to set labels on resources that must be backed up.

Related Issue

Motivation and Context

Currently there is no other way to inject labels to specific resources

How Has This Been Tested?

diff --git a/deployments/development-install/helmfile.yaml b/deployments/development-install/helmfile.yaml
index 6edf79a..0bdd3b3 100644
--- a/deployments/development-install/helmfile.yaml
+++ b/deployments/development-install/helmfile.yaml
@@ -14,6 +14,17 @@ releases:
               hosts:
                 - ocis.kube.owncloud.test

+      - backup:
+          configMapLabels:
+            backup.test/include: "true"
+            backup.test/configmap: "test"
+          secretLabels:
+            backup.test/include: "true"
+            backup.test/secret: "test"
+          pvcLabels:
+            backup.test/include: "true"
+            backup.test/pvc: "test"
+
       - logging:
           level: debug

Screenshots (if appropriate):

Types of changes

Checklist:

wkloucek commented 1 week ago

@d7oc this should answer your questions (see also the description)

Could we please split cleanups from the basic topic of the PRs.

I can do it

EDIT: done