Skip to content

Commit 1cbdd68

Browse files
authored
Merge pull request #583 from alecmerdler/issue-577
Add `packagemanifest:aggregated-apiserver-clusterrole`
2 parents bb46d55 + 46c102e commit 1cbdd68

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

deploy/chart/templates/0000_30_13-packageserver.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,23 @@ subjects:
5353
name: olm-operator-serviceaccount
5454
namespace: {{ .Values.namespace }}
5555
---
56+
kind: ClusterRole
57+
apiVersion: rbac.authorization.k8s.io/v1
58+
metadata:
59+
name: packagemanifest:aggregated-apiserver-clusterrole
60+
rules:
61+
- apiGroups: ["admissionregistration.k8s.io"]
62+
resources: ["mutatingwebhookconfigurations", "validatingwebhookconfigurations"]
63+
verbs: ["get", "watch", "list"]
64+
---
5665
apiVersion: rbac.authorization.k8s.io/v1
5766
kind: ClusterRoleBinding
5867
metadata:
5968
name: package-apiserver-clusterrolebinding
6069
roleRef:
6170
apiGroup: rbac.authorization.k8s.io
6271
kind: ClusterRole
63-
name: aggregated-apiserver-clusterrole
72+
name: packagemanifest:aggregated-apiserver-clusterrole
6473
subjects:
6574
- kind: ServiceAccount
6675
name: olm-operator-serviceaccount

manifests/0000_30_13-packageserver.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,23 @@ subjects:
5454
name: olm-operator-serviceaccount
5555
namespace: openshift-operator-lifecycle-manager
5656
---
57+
kind: ClusterRole
58+
apiVersion: rbac.authorization.k8s.io/v1
59+
metadata:
60+
name: packagemanifest:aggregated-apiserver-clusterrole
61+
rules:
62+
- apiGroups: ["admissionregistration.k8s.io"]
63+
resources: ["mutatingwebhookconfigurations", "validatingwebhookconfigurations"]
64+
verbs: ["get", "watch", "list"]
65+
---
5766
apiVersion: rbac.authorization.k8s.io/v1
5867
kind: ClusterRoleBinding
5968
metadata:
6069
name: package-apiserver-clusterrolebinding
6170
roleRef:
6271
apiGroup: rbac.authorization.k8s.io
6372
kind: ClusterRole
64-
name: aggregated-apiserver-clusterrole
73+
name: packagemanifest:aggregated-apiserver-clusterrole
6574
subjects:
6675
- kind: ServiceAccount
6776
name: olm-operator-serviceaccount

0 commit comments

Comments
 (0)