From c7a67b72f8081522617ab818aaec9d736fd0cb6f Mon Sep 17 00:00:00 2001 From: danielm-codefresh Date: Sun, 27 Feb 2022 09:53:02 +0200 Subject: [PATCH] Added support for openshift --- .../rbac/argo-events-webhook-cluster-role.yaml | 14 ++++++++++++++ manifests/install-validating-webhook.yaml | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/manifests/extensions/validating-webhook/rbac/argo-events-webhook-cluster-role.yaml b/manifests/extensions/validating-webhook/rbac/argo-events-webhook-cluster-role.yaml index 6409c18181..a0cec21556 100644 --- a/manifests/extensions/validating-webhook/rbac/argo-events-webhook-cluster-role.yaml +++ b/manifests/extensions/validating-webhook/rbac/argo-events-webhook-cluster-role.yaml @@ -52,3 +52,17 @@ rules: - eventbus - eventsources - sensors + - apiGroups: + - rbac.authorization.k8s.io + resources: + - clusterroles + verbs: + - get + - list + - apiGroups: + - apps + resources: + - deployments/finalizers + - clusterroles/finalizers + verbs: + - update diff --git a/manifests/install-validating-webhook.yaml b/manifests/install-validating-webhook.yaml index cdc9dba2af..d7c646fcf6 100644 --- a/manifests/install-validating-webhook.yaml +++ b/manifests/install-validating-webhook.yaml @@ -58,6 +58,20 @@ rules: - get - list - watch +- apiGroups: + - rbac.authorization.k8s.io + resources: + - clusterroles + verbs: + - get + - list +- apiGroups: + - apps + resources: + - deployments/finalizers + - clusterroles/finalizers + verbs: + - update --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding