Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Adjust DSG Image Puller Permissions #697

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions odh-dashboard/overlays/authentication/fetch-builds-and-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: dsg-cluster-roles
rules:
- apiGroups:
- image.openshift.io
verbs:
- get
- list
- watch
resources:
- imagestreams
- apiGroups:
- build.openshift.io
verbs:
- get
- list
- watch
resources:
- builds
- buildconfigs
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: builds-and-images
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: dsg-cluster-roles
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:authenticated
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: cluster-image-pullers
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: system:image-puller
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:serviceaccounts
2 changes: 2 additions & 0 deletions odh-dashboard/overlays/authentication/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ bases:
resources:
- clusterrolebinding.yaml
- secret.yaml
- fetch-builds-and-images.yaml
- image-clusterrolebinding.yaml
patchesJson6902:
- path: deployment.yaml
target:
Expand Down