Skip to content

Commit

Permalink
verify replacement of * by verbs in appstudio templates (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatousJobanek authored Aug 14, 2023
1 parent 3c38a0c commit 195a7e8
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions testsupport/tiers/checks.go
Original file line number Diff line number Diff line change
Expand Up @@ -1471,17 +1471,17 @@ func appstudioUserActionsRole() spaceRoleObjectsCheck {
{
APIGroups: []string{"appstudio.redhat.com"},
Resources: []string{"applications", "components", "componentdetectionqueries"},
Verbs: []string{"*"},
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
},
{
APIGroups: []string{"appstudio.redhat.com"},
Resources: []string{"promotionruns", "snapshotenvironmentbindings", "snapshots", "environments"},
Verbs: []string{"*"},
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
},
{
APIGroups: []string{"appstudio.redhat.com"},
Resources: []string{"deploymenttargets", "deploymenttargetclaims"},
Verbs: []string{"*"},
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
},
{
APIGroups: []string{"managed-gitops.redhat.com"},
Expand All @@ -1491,7 +1491,7 @@ func appstudioUserActionsRole() spaceRoleObjectsCheck {
{
APIGroups: []string{"tekton.dev"},
Resources: []string{"pipelineruns"},
Verbs: []string{"*"},
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
},
{
APIGroups: []string{"results.tekton.dev"},
Expand All @@ -1501,32 +1501,32 @@ func appstudioUserActionsRole() spaceRoleObjectsCheck {
{
APIGroups: []string{"appstudio.redhat.com"},
Resources: []string{"enterprisecontractpolicies", "integrationtestscenarios", "releases", "releasestrategies", "releaseplans", "releaseplanadmissions"},
Verbs: []string{"*"},
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
},
{
APIGroups: []string{"jvmbuildservice.io"},
Resources: []string{"jbsconfigs", "artifactbuilds"},
Verbs: []string{"*"},
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
},
{
APIGroups: []string{"appstudio.redhat.com"},
Resources: []string{"spiaccesstokenbindings", "spiaccesschecks", "spiaccesstokens", "spifilecontentrequests", "spiaccesstokendataupdates"},
Verbs: []string{"*"},
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
},
{
APIGroups: []string{"appstudio.redhat.com"},
Resources: []string{"remotesecrets"},
Verbs: []string{"*"},
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
},
{
APIGroups: []string{""},
Resources: []string{"secrets"},
Verbs: []string{"*"},
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
},
{
APIGroups: []string{""},
Resources: []string{"configmaps"},
Verbs: []string{"*"},
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
},
{
APIGroups: []string{"appstudio.redhat.com"},
Expand Down Expand Up @@ -1586,7 +1586,7 @@ func appstudioMaintainerUserActionsRole() spaceRoleObjectsCheck {
{
APIGroups: []string{"appstudio.redhat.com"},
Resources: []string{"integrationtestscenarios"},
Verbs: []string{"*"},
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
},
{
APIGroups: []string{"appstudio.redhat.com"},
Expand All @@ -1596,12 +1596,12 @@ func appstudioMaintainerUserActionsRole() spaceRoleObjectsCheck {
{
APIGroups: []string{"appstudio.redhat.com"},
Resources: []string{"releases", "releasestrategies", "releaseplans"},
Verbs: []string{"*"},
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
},
{
APIGroups: []string{"appstudio.redhat.com"},
Resources: []string{"releaseplanadmissions"},
Verbs: []string{"*"},
Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"},
},
{
APIGroups: []string{"jvmbuildservice.io"},
Expand Down

0 comments on commit 195a7e8

Please sign in to comment.