Skip to content

Instantly share code, notes, and snippets.

@amisevsk
Created May 22, 2020 17:06
Show Gist options
  • Save amisevsk/de48e5e2664857fcd53f0f9550a92082 to your computer and use it in GitHub Desktop.
Save amisevsk/de48e5e2664857fcd53f0f9550a92082 to your computer and use it in GitHub Desktop.
Additional role/binding for console
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: console-clusterrole-patch
rules:
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
- validatingwebhookconfigurations
verbs:
- get
- list
- watch
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: console-clusterrole-patch
subjects:
- kind: ServiceAccount
name: console
namespace: openshift-console
roleRef:
kind: ClusterRole
name: console-clusterrole-patch
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment