From 63eaae94b6ea815581d73bab101f557a45f5334a Mon Sep 17 00:00:00 2001 From: Volodymyr Stoiko Date: Tue, 4 Mar 2025 19:52:09 +0200 Subject: [PATCH] update cleanup --- helm-chart/templates/02-cluster-role.yaml | 9 +++++++++ helm-chart/templates/18-cleanup-job.yaml | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/helm-chart/templates/02-cluster-role.yaml b/helm-chart/templates/02-cluster-role.yaml index 09126b64b..6b5094ac4 100644 --- a/helm-chart/templates/02-cluster-role.yaml +++ b/helm-chart/templates/02-cluster-role.yaml @@ -69,9 +69,18 @@ rules: - secrets - configmaps verbs: + - create - get - watch - list - update - patch - delete + - apiGroups: + - "" + - v1 + resources: + - secrets + - configmaps + verbs: + - create diff --git a/helm-chart/templates/18-cleanup-job.yaml b/helm-chart/templates/18-cleanup-job.yaml index 3c36d626f..3dee7cd0f 100644 --- a/helm-chart/templates/18-cleanup-job.yaml +++ b/helm-chart/templates/18-cleanup-job.yaml @@ -21,4 +21,4 @@ spec: {{- end }} command: ["/bin/sh", "-c"] args: - - "kubectl delete cm kubeshark-config-map && kubectl delete secret kubeshark-secret" \ No newline at end of file + - "kubectl delete cm kubeshark-config-map || true && kubectl delete secret kubeshark-secret || true" \ No newline at end of file