From fe78aaaff172ce66d7f5368921913538f94511c9 Mon Sep 17 00:00:00 2001 From: JenTing Hsiao Date: Wed, 16 Aug 2023 19:52:19 +0800 Subject: [PATCH] Specify namespace Signed-off-by: JenTing Hsiao --- charts/velero/templates/cleanup-crds.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/velero/templates/cleanup-crds.yaml b/charts/velero/templates/cleanup-crds.yaml index 4bd66c39..462b6e0e 100644 --- a/charts/velero/templates/cleanup-crds.yaml +++ b/charts/velero/templates/cleanup-crds.yaml @@ -51,10 +51,10 @@ spec: - /bin/sh - -c - > - kubectl delete backupstoragelocations.velero.io --all; - kubectl delete volumesnapshotlocations.velero.io --all; - kubectl delete schedules.velero.io --all; - kubectl delete crd -l component=velero; + kubectl delete backupstoragelocations.velero.io -n {{ .Release.Namespace }} --all; + kubectl delete volumesnapshotlocations.velero.io -n {{ .Release.Namespace }}--all; + kubectl delete schedules.velero.io -n {{ .Release.Namespace }} --all; + kubectl delete crd -l component=velero -n {{ .Release.Namespace }}; {{- with .Values.kubectl.containerSecurityContext }} securityContext: {{- toYaml . | nindent 12 }}