From 160edbb7e06d1d3cfd545ffa6948ca5242261702 Mon Sep 17 00:00:00 2001 From: refaelm Date: Sun, 10 Nov 2024 16:02:46 +0200 Subject: [PATCH] add operatorcommands to operator clusterrole Signed-off-by: refaelm --- .../kubescape-operator/templates/operator/clusterrole.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charts/kubescape-operator/templates/operator/clusterrole.yaml b/charts/kubescape-operator/templates/operator/clusterrole.yaml index 0cd43cf6..23843edd 100644 --- a/charts/kubescape-operator/templates/operator/clusterrole.yaml +++ b/charts/kubescape-operator/templates/operator/clusterrole.yaml @@ -25,4 +25,10 @@ rules: - apiGroups: ["kubescape.io"] resources: ["servicesscanresults"] verbs: ["get", "watch", "list", "create", "update", "delete" ,"patch"] + - apiGroups: ["kubescape.io"] + resources: ["operatorcommands"] + verbs: ["get", "watch", "list"] + - apiGroups: ["kubescape.io"] + resources: ["operatorcommands/status"] + verbs: ["get", "watch", "list", "update", "patch"] {{- end }}