From ad8b7a75592245d6d611517960421a1562939dc1 Mon Sep 17 00:00:00 2001 From: Veymax Date: Fri, 17 Nov 2023 15:28:13 -0600 Subject: [PATCH] Explicitly sets helm resource policy to keep Signed-off-by: Veymax --- charts/nextcloud/Chart.yaml | 2 +- charts/nextcloud/README.md | 1 + charts/nextcloud/templates/nextcloud-data-pvc.yaml | 1 + charts/nextcloud/templates/nextcloud-pvc.yaml | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml index ebae207d..0a55845f 100644 --- a/charts/nextcloud/Chart.yaml +++ b/charts/nextcloud/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nextcloud -version: 4.5.0 +version: 4.5.1 appVersion: 27.1.3 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/charts/nextcloud/README.md b/charts/nextcloud/README.md index 4dfdb9cc..cdf5f6e2 100644 --- a/charts/nextcloud/README.md +++ b/charts/nextcloud/README.md @@ -250,6 +250,7 @@ Is there a missing parameter for one of the Bitnami helm charts listed above? Pl The [Nextcloud](https://hub.docker.com/_/nextcloud/) image stores the nextcloud data and configurations at the `/var/www/html` paths of the container. Persistent Volume Claims are used to keep the data across deployments. This is known to work with GKE, EKS, K3s, and minikube. +If the helm chart is uninstalled, nextcloud and it's sub-charts will *not* delete their PVCs. They will need to be manually deleted if desired. | Parameter | Description | Default | diff --git a/charts/nextcloud/templates/nextcloud-data-pvc.yaml b/charts/nextcloud/templates/nextcloud-data-pvc.yaml index 7c2febc3..7998aa87 100644 --- a/charts/nextcloud/templates/nextcloud-data-pvc.yaml +++ b/charts/nextcloud/templates/nextcloud-data-pvc.yaml @@ -12,6 +12,7 @@ metadata: app.kubernetes.io/component: app {{- if .Values.persistence.nextcloudData.annotations }} annotations: + helm.sh/resource-policy: keep {{ toYaml .Values.persistence.nextcloudData.annotations | indent 4 }} {{- end }} spec: diff --git a/charts/nextcloud/templates/nextcloud-pvc.yaml b/charts/nextcloud/templates/nextcloud-pvc.yaml index 8c1789af..840c88e6 100644 --- a/charts/nextcloud/templates/nextcloud-pvc.yaml +++ b/charts/nextcloud/templates/nextcloud-pvc.yaml @@ -12,6 +12,7 @@ metadata: app.kubernetes.io/component: app {{- if .Values.persistence.annotations }} annotations: + helm.sh/resource-policy: keep {{ toYaml .Values.persistence.annotations | indent 4 }} {{- end }} spec: