From fe77f1deae5a7dc2076e04ba0a6cd6ffb8e308ac Mon Sep 17 00:00:00 2001 From: aurel333 <47594907+aurel333@users.noreply.github.com> Date: Wed, 8 Mar 2023 22:24:03 +0100 Subject: [PATCH] Fix awx-manager-role bad match between some apiGroups and resources (#1262) Co-authored-by: Aurelien Potin --- config/rbac/role.yaml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 381a66aa..105862dd 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -20,7 +20,6 @@ rules: - watch - apiGroups: - "" - - "rbac.authorization.k8s.io" resources: - pods - services @@ -31,6 +30,17 @@ rules: - events - configmaps - secrets + verbs: + - get + - list + - create + - delete + - patch + - update + - watch + - apiGroups: + - "rbac.authorization.k8s.io" + resources: - roles - rolebindings verbs: @@ -43,12 +53,22 @@ rules: - watch - apiGroups: - apps - - networking.k8s.io resources: - deployments - daemonsets - replicasets - statefulsets + verbs: + - get + - list + - create + - delete + - patch + - update + - watch + - apiGroups: + - networking.k8s.io + resources: - ingresses verbs: - get