From ac4910d36b4aabfceb55870abd0f837be43b179f Mon Sep 17 00:00:00 2001 From: Vishal Thapar <5137689+vthapar@users.noreply.github.com> Date: Wed, 7 Jul 2021 11:48:40 +0530 Subject: [PATCH] Fix globalnetv2 ClusterRole Globalnetv2 requires `globalnet` `ClusterRole` for Egress/IngressIPs but those were added as `globalnet` `Role` instead. This change moves the permissions from `Role` to `ClusterRole` Signed-off-by: Vishal Thapar <5137689+vthapar@users.noreply.github.com> --- submariner-operator/templates/rbac.yaml | 46 ++++++++++++------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/submariner-operator/templates/rbac.yaml b/submariner-operator/templates/rbac.yaml index b083add..9930a22 100644 --- a/submariner-operator/templates/rbac.yaml +++ b/submariner-operator/templates/rbac.yaml @@ -359,29 +359,6 @@ rules: - patch - update - watch - - apiGroups: - - submariner.io - resources: - - clusterglobalegressips - - globalegressips - verbs: - - create - - get - - list - - watch - - update - - apiGroups: - - submariner.io - resources: - - globalingressips - verbs: - - create - - get - - list - - watch - - update - - delete - - deletecollection --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding @@ -680,6 +657,29 @@ rules: - get - list - watch + - apiGroups: + - submariner.io + resources: + - clusterglobalegressips + - globalegressips + verbs: + - create + - get + - list + - watch + - update + - apiGroups: + - submariner.io + resources: + - globalingressips + verbs: + - create + - get + - list + - watch + - update + - delete + - deletecollection - apiGroups: - multicluster.x-k8s.io resources: