From d647ae6093c8725916cd48cf704eb655b666b51a Mon Sep 17 00:00:00 2001 From: tehreemnisa Date: Wed, 6 Nov 2024 11:34:40 +0500 Subject: [PATCH] tenant namespaces can be added in includeNamespace while the default backup namespace would be the -system namespace --- application/templates/backup.yaml | 2 +- application/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/application/templates/backup.yaml b/application/templates/backup.yaml index 08bb31ed..b2b63734 100644 --- a/application/templates/backup.yaml +++ b/application/templates/backup.yaml @@ -18,7 +18,7 @@ spec: matchLabels: app.kubernetes.io/part-of: {{ include "application.name" . }} includedNamespaces: - - {{ include "application.namespace" . }} + - {{ .Values.backup.includedNamespace | default ( include "application.namespace" . ) | quote }} defaultVolumesToRestic: {{ .Values.backup.defaultVolumesToRestic }} snapshotVolumes: {{ .Values.backup.snapshotVolumes }} storageLocation: {{ .Values.backup.storageLocation | quote }} diff --git a/application/values.yaml b/application/values.yaml index 36482eb9..0bdb3a38 100644 --- a/application/values.yaml +++ b/application/values.yaml @@ -1193,6 +1193,7 @@ backup: namespace: # -- (object) Additional labels for Backup. # @section -- Backup Parameters + includedNamespaces: additionalLabels: # grafanaDashboard: grafana-operator # -- (object) Annotations for Backup.