From 3ce9b42468f588fa57febc233184582571e2e8a7 Mon Sep 17 00:00:00 2001 From: Philipp Born <98814235+pborn-ionos@users.noreply.github.com> Date: Thu, 10 Aug 2023 11:31:38 +0200 Subject: [PATCH] fix(chart): make rbac more explicit (#60) --- charts/uptrends/templates/cluster_role.yaml | 24 +++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/charts/uptrends/templates/cluster_role.yaml b/charts/uptrends/templates/cluster_role.yaml index c87c4ea..62aceae 100644 --- a/charts/uptrends/templates/cluster_role.yaml +++ b/charts/uptrends/templates/cluster_role.yaml @@ -6,12 +6,24 @@ metadata: {{- include "uptrends.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }} rules: - apiGroups: - - '*' + - networking.k8s.io resources: - - '*' + - ingresses verbs: - - '*' -- nonResourceURLs: - - '*' + - get + - list + - update + - watch +- apiGroups: + - operators.ionos-cloud.github.io + resources: + - uptrends + - uptrends/status verbs: - - '*' + - create + - delete + - get + - list + - patch + - update + - watch