Run cleanup program instead of kubectl

This commit is contained in:
Volodymyr Stoiko 2025-04-14 19:28:09 +03:00
parent 9775a70722
commit 3733ae132e
No known key found for this signature in database
GPG Key ID: D022CBF7FABDA111

View File

@ -19,6 +19,4 @@ spec:
{{ else }}
image: '{{ .Values.tap.docker.registry }}/hub:{{ not (eq .Values.tap.docker.tag "") | ternary .Values.tap.docker.tag (include "kubeshark.defaultVersion" .) }}'
{{- end }}
command: ["/bin/sh", "-c"]
args:
- "kubectl delete cm kubeshark-config-map || true && kubectl delete secret kubeshark-secret || true"
command: ["/app/cleanup"]