update cleanup

This commit is contained in:
Volodymyr Stoiko
2025-03-04 19:52:09 +02:00
parent 32bab71958
commit 63eaae94b6
2 changed files with 10 additions and 1 deletions

View File

@@ -69,9 +69,18 @@ rules:
- secrets
- configmaps
verbs:
- create
- get
- watch
- list
- update
- patch
- delete
- apiGroups:
- ""
- v1
resources:
- secrets
- configmaps
verbs:
- create

View File

@@ -21,4 +21,4 @@ spec:
{{- end }}
command: ["/bin/sh", "-c"]
args:
- "kubectl delete cm kubeshark-config-map && kubectl delete secret kubeshark-secret"
- "kubectl delete cm kubeshark-config-map || true && kubectl delete secret kubeshark-secret || true"