Skip to content

Commit

Permalink
Specify namespace
Browse files Browse the repository at this point in the history
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
  • Loading branch information
jenting committed Aug 16, 2023
1 parent b2c838e commit fe78aaa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions charts/velero/templates/cleanup-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit fe78aaa

Please sign in to comment.