From bd4fe894a5b2339a442d385d3b0018b236bafe4d Mon Sep 17 00:00:00 2001 From: Damyan Yordanov Date: Thu, 9 Jan 2025 13:16:00 +0100 Subject: [PATCH] Fix RBAC for `Endpoint`s (#237) --- config/default/{role.yaml => clusterrole.yaml} | 6 ++++++ .../default/{rolebinding.yaml => clusterrolebinding.yaml} | 0 config/default/kustomization.yaml | 4 ++-- 3 files changed, 8 insertions(+), 2 deletions(-) rename config/default/{role.yaml => clusterrole.yaml} (82%) rename config/default/{rolebinding.yaml => clusterrolebinding.yaml} (100%) diff --git a/config/default/role.yaml b/config/default/clusterrole.yaml similarity index 82% rename from config/default/role.yaml rename to config/default/clusterrole.yaml index 8c62a78..2f396ce 100644 --- a/config/default/role.yaml +++ b/config/default/clusterrole.yaml @@ -29,3 +29,9 @@ rules: - events verbs: - '*' +- apiGroups: + - metal.ironcore.dev + resources: + - endpoints + verbs: + - '*' \ No newline at end of file diff --git a/config/default/rolebinding.yaml b/config/default/clusterrolebinding.yaml similarity index 100% rename from config/default/rolebinding.yaml rename to config/default/clusterrolebinding.yaml diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index eaf551c..3d05bc3 100644 --- a/config/default/kustomization.yaml +++ b/config/default/kustomization.yaml @@ -8,6 +8,6 @@ resources: - sa.yaml - config.yaml - svc.yaml - - role.yaml - - rolebinding.yaml + - clusterrole.yaml + - clusterrolebinding.yaml - deployment.yaml