Skip to content

Commit

Permalink
feat: add seldon permissions to default-editor (kubeflow#2013)
Browse files Browse the repository at this point in the history
* Create kubeflow-edit-seldon.yaml

* Update kustomization.yaml
  • Loading branch information
juliusvonkohout authored Sep 13, 2021
1 parent 2119cc8 commit e7fe3f8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions contrib/seldon/seldon-core-operator/base/kubeflow-edit-seldon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Kubeflow builds clusterrole kubeflow-edit by aggreagating multiple other clusterroles
# So i add a clusterrole that allows seldon deployments and it will be aggreagted because
# of its "aggregate-to-kubeflow-edit" label
# kubeflow-edit is the default role, that is available in each user namespace
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
rbac.authorization.kubeflow.org/aggregate-to-kubeflow-edit: "true"
name: kubeflow-edit-seldon
rules:
- apiGroups:
- machinelearning.seldon.io
verbs:
- '*'
resources:
- '*'
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# and emits as a YAML string
resources:
- resources.yaml
- kubeflow-edit-seldon.yaml

configurations:
- kustomizeconfig.yaml
Expand Down

0 comments on commit e7fe3f8

Please sign in to comment.