From 3733ae132e831cebcfdb06f46706be295b0166ca Mon Sep 17 00:00:00 2001 From: Volodymyr Stoiko Date: Mon, 14 Apr 2025 19:28:09 +0300 Subject: [PATCH] Run cleanup program instead of kubectl --- helm-chart/templates/18-cleanup-job.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/helm-chart/templates/18-cleanup-job.yaml b/helm-chart/templates/18-cleanup-job.yaml index 3dee7cd0f..443c824ef 100644 --- a/helm-chart/templates/18-cleanup-job.yaml +++ b/helm-chart/templates/18-cleanup-job.yaml @@ -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" \ No newline at end of file + command: ["/app/cleanup"] \ No newline at end of file