Skip to content

Commit

Permalink
Merge pull request #112 from DharmitD/dsp-user-role
Browse files Browse the repository at this point in the history
Add a role for Data Science Pipelines end user
  • Loading branch information
openshift-merge-robot authored May 4, 2023
2 parents 4c16188 + fcdb604 commit 86f66b2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions config/internal/apiserver/role_ds-pipeline-user-access.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ds-pipeline-user-access-{{.Name}}
namespace: {{.Namespace}}
labels:
app: ds-pipeline-{{.Name}}
component: data-science-pipelines
rules:
- apiGroups:
- route.openshift.io
resources:
- routes
verbs:
- get
1 change: 1 addition & 0 deletions controllers/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var apiServerTemplates = []string{
"apiserver/artifact_script.yaml.tmpl",
"apiserver/role_ds-pipeline.yaml.tmpl",
"apiserver/role_pipeline-runner.yaml.tmpl",
"apiserver/role_ds-pipeline-user-access.yaml.tmpl",
"apiserver/rolebinding_ds-pipeline.yaml.tmpl",
"apiserver/rolebinding_pipeline-runner.yaml.tmpl",
"apiserver/sa_ds-pipeline.yaml.tmpl",
Expand Down

0 comments on commit 86f66b2

Please sign in to comment.