Skip to content
Open
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
28 changes: 28 additions & 0 deletions components/kubearchive/base/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,31 @@ roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: admin
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: kubearchive-route-reader
namespace: kubearchive
rules:
- apiGroups:
- route.openshift.io
resources:
- routes
verbs:
- get
- list
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: authenticated-route-access
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would call it kubearchive-route-reader to match the role.

namespace: kubearchive
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: system:authenticated
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: kubearchive-route-reader
Loading