From 4ca9bc8fc0389e375834c8490427c81bef9b72fd Mon Sep 17 00:00:00 2001 From: Volodymyr Stoiko Date: Wed, 16 Apr 2025 19:07:31 +0300 Subject: [PATCH] Run cleanup program instead of kubectl (#1745) --- 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