Skip to content

Commit

Permalink
fix viewer role permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Ilario <[email protected]>
  • Loading branch information
filariow committed Apr 17, 2024
1 parent e497401 commit 33a1f47
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 150 deletions.
27 changes: 0 additions & 27 deletions deploy/templates/nstemplatetiers/appstudio/spacerole_viewer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ objects:
- get
- list
- watch
- create
- update
- patch
- apiGroups:
- appstudio.redhat.com
resources:
Expand Down Expand Up @@ -81,10 +78,6 @@ objects:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- appstudio.redhat.com
resources:
Expand All @@ -103,10 +96,6 @@ objects:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- appstudio.redhat.com
resources:
Expand All @@ -115,10 +104,6 @@ objects:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- jvmbuildservice.io
resources:
Expand All @@ -128,24 +113,17 @@ objects:
- get
- list
- watch
- create
- update
- patch
- apiGroups:
- appstudio.redhat.com
resources:
- spiaccesstokenbindings
- spiaccesschecks
- spiaccesstokens
- spifilecontentrequests
- spiaccesstokendataupdates
verbs:
- get
- list
- watch
- create
- update
- patch
- apiGroups:
- appstudio.redhat.com
resources:
Expand All @@ -170,7 +148,6 @@ objects:
- get
- list
- watch
# Allow using the project-controller
- apiGroups:
- projctl.konflux.dev
resources:
Expand All @@ -181,10 +158,6 @@ objects:
- get
- list
- watch
- create
- update
- patch
- delete
- apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
Expand Down
269 changes: 146 additions & 123 deletions test/templates/nstemplatetiers/appstudio/spacerole_viewer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,129 +19,152 @@ objects:
namespace: ${NAMESPACE}
name: appstudio-viewer-user-actions
rules:
- apiGroups:
- appstudio.redhat.com
resources:
- applications
- components
- componentdetectionqueries
verbs:
- get
- list
- watch
- create
- update
- patch
- apiGroups:
- appstudio.redhat.com
resources:
- promotionruns
- snapshotenvironmentbindings
- snapshots
- environments
verbs:
- get
- list
- watch
- apiGroups:
- appstudio.redhat.com
resources:
- deploymentttargets
- deploymenttargetclaims
verbs:
- get
- list
- watch
- apiGroups:
- managed-gitops.redhat.com
resources:
- gitopsdeployments
- gitopsdeploymentmanagedenvironments
- gitopsdeploymentrepositorycredentials
- gitopsdeploymentsyncruns
verbs:
- get
- list
- watch
- apiGroups:
- tekton.dev
resources:
- pipelineruns
verbs:
- get
- list
- watch
- apiGroups:
- results.tekton.dev
resources:
- results
- records
verbs:
- get
- list
- apiGroups:
- appstudio.redhat.com
resources:
- integrationtestscenarios
verbs:
- '*'
- apiGroups:
- appstudio.redhat.com
resources:
- enterprisecontractpolicies
verbs:
- get
- list
- watch
- apiGroups:
- appstudio.redhat.com
resources:
- releases
- releasestrategies
- releaseplans
verbs:
- '*'
- apiGroups:
- appstudio.redhat.com
resources:
- releaseplanadmissions
verbs:
- '*'
- apiGroups:
- jvmbuildservice.io
resources:
- jbsconfigs
- artifactbuilds
verbs:
- get
- list
- watch
- create
- update
- patch
- apiGroups:
- appstudio.redhat.com
resources:
- spiaccesstokenbindings
- spiaccesschecks
- spiaccesstokens
- spifilecontentrequests
- spiaccesstokendataupdates
verbs:
- get
- list
- watch
- create
- update
- patch
- apiGroups:
- ''
resources:
- configmaps
verbs:
- get
- list
- watch
- apiGroups:
- appstudio.redhat.com
resources:
- applications
- components
- componentdetectionqueries
verbs:
- get
- list
- watch
- apiGroups:
- appstudio.redhat.com
resources:
- promotionruns
- snapshotenvironmentbindings
- snapshots
- environments
verbs:
- get
- list
- watch
- apiGroups:
- appstudio.redhat.com
resources:
- deploymenttargets
- deploymenttargetclaims
verbs:
- get
- list
- watch
- apiGroups:
- managed-gitops.redhat.com
resources:
- gitopsdeployments
- gitopsdeploymentmanagedenvironments
- gitopsdeploymentrepositorycredentials
- gitopsdeploymentsyncruns
verbs:
- get
- list
- watch
- apiGroups:
- tekton.dev
resources:
- pipelineruns
verbs:
- get
- list
- watch
- apiGroups:
- results.tekton.dev
resources:
- results
- records
- logs
verbs:
- get
- list
- apiGroups:
- appstudio.redhat.com
resources:
- integrationtestscenarios
verbs:
- get
- list
- watch
- apiGroups:
- appstudio.redhat.com
resources:
- enterprisecontractpolicies
verbs:
- get
- list
- watch
- apiGroups:
- appstudio.redhat.com
resources:
- releases
- releasestrategies
- releaseplans
verbs:
- get
- list
- watch
- apiGroups:
- appstudio.redhat.com
resources:
- releaseplanadmissions
verbs:
- get
- list
- watch
- apiGroups:
- jvmbuildservice.io
resources:
- jbsconfigs
- artifactbuilds
verbs:
- get
- list
- watch
- apiGroups:
- appstudio.redhat.com
resources:
- spiaccesstokenbindings
- spiaccesschecks
- spiaccesstokens
- spifilecontentrequests
verbs:
- get
- list
- watch
- apiGroups:
- appstudio.redhat.com
resources:
- remotesecrets
verbs:
- get
- list
- watch
- apiGroups:
- ''
resources:
- configmaps
verbs:
- get
- list
- watch
- apiGroups:
- appstudio.redhat.com
resources:
- buildpipelineselectors
verbs:
- get
- list
- watch
- apiGroups:
- projctl.konflux.dev
resources:
- projects
- projectdevelopmentstreams
- projectdevelopmentstreamtemplates
verbs:
- get
- list
- watch
- apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
Expand Down

0 comments on commit 33a1f47

Please sign in to comment.