diff --git a/ntfy/Chart.yaml b/ntfy/Chart.yaml index 8a8b90b..675c356 100644 --- a/ntfy/Chart.yaml +++ b/ntfy/Chart.yaml @@ -3,7 +3,7 @@ name: ntfy description: A Helm chart for Kubernetes icon: https://github.com/binwiederhier/ntfy/raw/main/web/public/static/images/pwa-512x512.png type: application -version: "0.4.10" +version: "0.4.11" # renovate: image=docker.io/binwiederhier/ntfy appVersion: "2.11.0" maintainers: diff --git a/ntfy/README.md b/ntfy/README.md index 7ce6247..4d9ba9e 100644 --- a/ntfy/README.md +++ b/ntfy/README.md @@ -7,7 +7,7 @@ description: "A Helm chart for Kubernetes" # ntfy -![Version: 0.4.10](https://img.shields.io/badge/Version-0.4.10-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.11.0](https://img.shields.io/badge/AppVersion-2.11.0-informational?style=flat-square) +![Version: 0.4.11](https://img.shields.io/badge/Version-0.4.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.11.0](https://img.shields.io/badge/AppVersion-2.11.0-informational?style=flat-square) A Helm chart for Kubernetes diff --git a/ntfy/templates/secret.yaml b/ntfy/templates/secret.yaml index 32cb8a7..b06f214 100644 --- a/ntfy/templates/secret.yaml +++ b/ntfy/templates/secret.yaml @@ -17,8 +17,11 @@ kind: Secret metadata: name: {{ $secretName }} annotations: - helm.sh/resource-policy: keep confighash: {{ .Values.ntfy | toYaml | sha256sum | trunc 32 }} + "helm.sh/hook": pre-install,pre-upgrade + helm.sh/resource-policy: keep + "helm.sh/hook-weight": "5" + "helm.sh/hook-delete-policy": hook-failed labels: {{- include "ntfy.labels" . | nindent 4 }} data: diff --git a/ntfy/templates/setup/job.yaml b/ntfy/templates/setup/job.yaml index 2050ec8..5e4f1e7 100644 --- a/ntfy/templates/setup/job.yaml +++ b/ntfy/templates/setup/job.yaml @@ -8,6 +8,10 @@ metadata: labels: {{- include "ntfy.labels" . | nindent 4 }} app.kubernetes.io/component: setup-job + annotations: + "helm.sh/hook": pre-install,pre-upgrade + "helm.sh/hook-weight": "5" + "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded spec: template: metadata: diff --git a/ntfy/templates/setup/role.yaml b/ntfy/templates/setup/role.yaml index 23d93da..c925542 100644 --- a/ntfy/templates/setup/role.yaml +++ b/ntfy/templates/setup/role.yaml @@ -8,6 +8,10 @@ metadata: labels: {{- include "ntfy.labels" . | nindent 4 }} app.kubernetes.io/component: setup-job + annotations: + "helm.sh/hook": pre-install,pre-upgrade + "helm.sh/hook-weight": "5" + "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded rules: - apiGroups: - "" diff --git a/ntfy/templates/setup/rolebinding.yaml b/ntfy/templates/setup/rolebinding.yaml index 64eab0f..5028155 100644 --- a/ntfy/templates/setup/rolebinding.yaml +++ b/ntfy/templates/setup/rolebinding.yaml @@ -8,6 +8,10 @@ metadata: labels: {{- include "ntfy.labels" . | nindent 4 }} app.kubernetes.io/component: setup-job + annotations: + "helm.sh/hook": pre-install,pre-upgrade + "helm.sh/hook-weight": "5" + "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded roleRef: apiGroup: rbac.authorization.k8s.io kind: Role diff --git a/ntfy/templates/setup/serviceaccount.yaml b/ntfy/templates/setup/serviceaccount.yaml index 1b5d727..336eac4 100644 --- a/ntfy/templates/setup/serviceaccount.yaml +++ b/ntfy/templates/setup/serviceaccount.yaml @@ -6,4 +6,8 @@ metadata: labels: {{- include "ntfy.labels" . | nindent 4 }} app.kubernetes.io/component: setup-job + annotations: + "helm.sh/hook": pre-install,pre-upgrade + "helm.sh/hook-weight": "5" + "helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded {{- end }}