Skip to content

Commit

Permalink
Merge pull request konflux-ci#238 from ralphbean/role-aggregation
Browse files Browse the repository at this point in the history
fix(RHTAPBUGS-714): aggregate clusterroles
  • Loading branch information
johnbieren authored Aug 23, 2023
2 parents 2bf3743 + a59b979 commit 3ba7874
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/rbac/release_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: release-editor-role
labels:
rbac.authorization.k8s.io/aggregate-to-admin: 'true'
rbac.authorization.k8s.io/aggregate-to-edit: 'true'
rules:
- apiGroups:
- appstudio.redhat.com
Expand Down
2 changes: 2 additions & 0 deletions config/rbac/release_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: release-viewer-role
labels:
rbac.authorization.k8s.io/aggregate-to-view: 'true'
rules:
- apiGroups:
- appstudio.redhat.com
Expand Down
3 changes: 3 additions & 0 deletions config/rbac/releaseplan_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: releaseplan-editor-role
labels:
rbac.authorization.k8s.io/aggregate-to-admin: 'true'
rbac.authorization.k8s.io/aggregate-to-edit: 'true'
rules:
- apiGroups:
- appstudio.redhat.com
Expand Down
2 changes: 2 additions & 0 deletions config/rbac/releaseplan_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: releaseplan-viewer-role
labels:
rbac.authorization.k8s.io/aggregate-to-view: 'true'
rules:
- apiGroups:
- appstudio.redhat.com
Expand Down
3 changes: 3 additions & 0 deletions config/rbac/releaseplanadmission_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: releaseplanadmission-editor-role
labels:
rbac.authorization.k8s.io/aggregate-to-admin: 'true'
rbac.authorization.k8s.io/aggregate-to-edit: 'true'
rules:
- apiGroups:
- appstudio.redhat.com
Expand Down
2 changes: 2 additions & 0 deletions config/rbac/releaseplanadmission_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: releaseplanadmission-viewer-role
labels:
rbac.authorization.k8s.io/aggregate-to-view: 'true'
rules:
- apiGroups:
- appstudio.redhat.com
Expand Down
3 changes: 3 additions & 0 deletions config/rbac/releasestrategy_editor_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: releasestrategy-editor-role
labels:
rbac.authorization.k8s.io/aggregate-to-admin: 'true'
rbac.authorization.k8s.io/aggregate-to-edit: 'true'
rules:
- apiGroups:
- appstudio.redhat.com
Expand Down
2 changes: 2 additions & 0 deletions config/rbac/releasestrategy_viewer_role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: releasestrategy-viewer-role
labels:
rbac.authorization.k8s.io/aggregate-to-view: 'true'
rules:
- apiGroups:
- appstudio.redhat.com
Expand Down

0 comments on commit 3ba7874

Please sign in to comment.