Skip to content

Commit

Permalink
Add a general cluster role to JH (opendatahub-io#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
maroroman authored Jun 23, 2021
1 parent bbc068e commit 8b71f5e
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 15 deletions.
24 changes: 24 additions & 0 deletions jupyterhub/jupyterhub/base/jupyterhub-cluster-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
labels:
app: jupyterhub
name: jupyterhub-cluster
rules:
- verbs:
- get
- watch
- list
apiGroups:
- ''
- config.openshift.io
resources:
- clusterversions
- verbs:
- get
- list
- watch
apiGroups:
- ''
resources:
- nodes
12 changes: 12 additions & 0 deletions jupyterhub/jupyterhub/base/jupyterhub-cluster-rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: jupyterhub-cluster
subjects:
- kind: ServiceAccount
name: jupyterhub-hub
namespace: $(namespace)
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: jupyterhub-cluster
14 changes: 0 additions & 14 deletions jupyterhub/jupyterhub/base/jupyterhub-nodereader-rolebinding.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion jupyterhub/jupyterhub/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ resources:
- jupyterhub-serviceaccount.yaml
- jupyterhub-role.yaml
- jupyterhub-rolebinding.yaml
- jupyterhub-nodereader-rolebinding.yaml
- jupyterhub-cluster-role.yaml
- jupyterhub-cluster-rolebinding.yaml
- jupyterhub-route.yaml
- jupyterhub-singleuser-profiles-configmap.yaml
- jupyterhub-singleuser-profiles-sizes-configmap.yaml
Expand Down

0 comments on commit 8b71f5e

Please sign in to comment.