Skip to content

Commit 043db82

Browse files
authored
Merge pull request #7 from InterWorks/feat-orphan-resources
Keep resources on helm uninstall
2 parents 9619d91 + b2393ef commit 043db82

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

charts/curator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ description: A Helm chart for Curator in a Container in Kubernetes
55
type: application
66
icon: https://curator.interworks.com/storage/app/uploads/public/5f4/2f8/79d/thumb_464_32_32_0_0_crop.png
77

8-
version: 1.0.3
9-
appVersion: "2025.07-03"
8+
version: 1.0.4
9+
appVersion: "2025.08-01"

charts/curator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# curator
22

3-
![Version: 1.0.3](https://img.shields.io/badge/Version-1.0.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2025.07-03](https://img.shields.io/badge/AppVersion-2025.07--03-informational?style=flat-square)
3+
![Version: 1.0.4](https://img.shields.io/badge/Version-1.0.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2025.08-01](https://img.shields.io/badge/AppVersion-2025.08--01-informational?style=flat-square)
44

55
A Helm chart for Curator in a Container in Kubernetes
66

charts/curator/templates/mariadb-backup.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ kind: Backup
44
metadata:
55
name: {{ .Values.mariadbOperator.database.name }}
66
namespace: {{ .Release.Namespace }}
7+
annotations:
8+
"helm.sh/resource-policy": keep
79
spec:
810
mariaDbRef:
911
name: {{ .Values.mariadbOperator.mariaDbName | default "curator-mariadb" }}

charts/curator/templates/mariadb-database.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ metadata:
44
name: {{ .Values.mariadbOperator.database.name | default "curator" }}
55
namespace: {{ .Release.Namespace }}
66
annotations:
7-
"helm.sh/hook": pre-install
7+
"helm.sh/hook": pre-install, pre-upgrade
88
"helm.sh/hook-weight": "40"
9+
"helm.sh/resource-policy": keep
910
spec:
1011
mariaDbRef:
1112
name: {{ .Values.mariadbOperator.mariaDbName | default "curator-mariadb" }}

charts/curator/templates/pvc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ metadata:
55
{{- with .Values.persistence.annotations }}
66
annotations:
77
{{- toYaml . | nindent 4 }}
8+
annotations:
9+
helm.sh/resource-policy: keep
810
{{- end }}
911
{{- with .Values.persistence.labels }}
1012
labels:

0 commit comments

Comments
 (0)