From 76aaf8c83011d888d8597bf1454be353264692e9 Mon Sep 17 00:00:00 2001 From: pat-s Date: Sun, 21 Jul 2024 12:44:08 +0200 Subject: [PATCH] ntfy: add updateStrategy with default 'recreate' --- ntfy/templates/deployment.yaml | 3 +++ ntfy/values.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ntfy/templates/deployment.yaml b/ntfy/templates/deployment.yaml index 8550abe..29a5c46 100644 --- a/ntfy/templates/deployment.yaml +++ b/ntfy/templates/deployment.yaml @@ -28,6 +28,9 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.updateStrategy }} + updateStrategy: {{- toYaml .Values.updateStrategy | nindent 4 }} + {{- end }} serviceAccountName: {{ include "ntfy.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} diff --git a/ntfy/values.yaml b/ntfy/values.yaml index 67badd8..36c773b 100644 --- a/ntfy/values.yaml +++ b/ntfy/values.yaml @@ -14,6 +14,9 @@ imagePullSecrets: [] nameOverride: "" fullnameOverride: "" +updateStrategy: + type: Recreate + ntfy: baseURL: "https://ntfy.example.org" listen: