Skip to content

Instantly share code, notes, and snippets.

@odra
Created November 22, 2018 11:18
Show Gist options
  • Save odra/7261741e06ebf3e7d268e6d1a92e06f6 to your computer and use it in GitHub Desktop.
Save odra/7261741e06ebf3e7d268e6d1a92e06f6 to your computer and use it in GitHub Desktop.
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: leo-keycloak-operator
rules:
- apiGroups:
- aerogear.org
resources:
- "*"
verbs:
- "*"
- apiGroups:
- ""
resources:
- persistentvolumeclaims
- events
- secrets
- services
- pods
- deployments
verbs:
- "*"
- apiGroups:
- template.openshift.io
resources:
- processedtemplates
verbs: [ get, list, create, update, delete, deletecollection, watch]
- apiGroups:
- apps.openshift.io
resources:
- deploymentconfigs
verbs: [ get, list, create, update, delete, deletecollection, watch]
- apiGroups:
- route.openshift.io
resources:
- routes
- routes/custom-host
verbs: [ get, list, create, update, delete, deletecollection, watch]
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: leo-keycloak-cluster-operator
rules:
- apiGroups:
- aerogear.org
resources:
- "*"
verbs:
- "*"
- apiGroups:
- ""
resources:
- persistentvolumeclaims
- events
- secrets
- services
- pods
verbs:
- "*"
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- "*"
- apiGroups:
- template.openshift.io
resources:
- processedtemplates
verbs: [ get, list, create, update, delete, deletecollection, watch]
- apiGroups:
- apps.openshift.io
resources:
- deploymentconfigs
verbs: [ get, list, create, update, delete, deletecollection, watch]
- apiGroups:
- route.openshift.io
resources:
- routes
- routes/custom-host
verbs: [ get, list, create, update, delete, deletecollection, watch]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: leo-account-keycloak-operator
subjects:
- kind: ServiceAccount
name: keycloak-leo
namespace: keycloak-operator
roleRef:
kind: Role
name: leo-keycloak-operator
apiGroup: rbac.authorization.k8s.io
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: leo-account-keycloak-cluster-operator
subjects:
- kind: ServiceAccount
name: keycloak-leo
namespace: keycloak-operator
roleRef:
kind: ClusterRole
name: leo-keycloak-cluster-operator
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment