Skip to content
This repository was archived by the owner on May 10, 2024. It is now read-only.

Commit c7b6320

Browse files
committed
feat: Do not delete CRD on Helm uninstall, so the accidential uninstall would not delete all of the data recursively
1 parent db59b7c commit c7b6320

File tree

1 file changed

+4
-0
lines changed
  • helm/backup-repository-server/templates

1 file changed

+4
-0
lines changed

helm/backup-repository-server/templates/crd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: "CustomResourceDefinition"
44
metadata:
55
name: "backupcollections.backups.riotkit.org"
6+
annotations:
7+
"helm.sh/resource-policy": keep
68
spec:
79
group: "backups.riotkit.org"
810
scope: "Namespaced"
@@ -105,6 +107,8 @@ apiVersion: apiextensions.k8s.io/v1
105107
kind: "CustomResourceDefinition"
106108
metadata:
107109
name: "backupusers.backups.riotkit.org"
110+
annotations:
111+
"helm.sh/resource-policy": keep
108112
spec:
109113
group: "backups.riotkit.org"
110114
scope: "Namespaced"

0 commit comments

Comments
 (0)