Skip to content

Commit

Permalink
Update rbac for argo rollouts
Browse files Browse the repository at this point in the history
  • Loading branch information
gamingrobot committed Oct 17, 2023
1 parent e02ae14 commit df873ff
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 29 deletions.
1 change: 1 addition & 0 deletions manifests/generate-manifests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ dotnet run --no-build --project $project -- generator rbac -o $output\rbac\
# "$($output)operator\kustomization.yaml"
"$($output)crd\deploymentconfigs_apps_openshift_io.yaml"
"$($output)crd\dynakubes_dynatrace_com.yaml"
"$($output)crd\rollouts_argoproj_io.yaml"
"$($output)crd\kustomization.yaml"
) | ForEach-Object {
Write-Host "Cleaning up bad object $_"
Expand Down
60 changes: 31 additions & 29 deletions manifests/install/all/operator/base/rbac/cluster-role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,14 @@ metadata:
app.kubernetes.io/name: operator
app.kubernetes.io/part-of: contrast-agent-operator
rules:
- apiGroups:
- ""
- agents.contrastsecurity.com
- coordination.k8s.io
resources:
- secrets
- agentconnections
- agentconfigurations
- leases
verbs:
- '*'
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
verbs:
- create
- get
- list
- watch
- patch
- update
- delete
- apiGroups:
- apps
- argoproj.io
- ""
- apps.openshift.io
resources:
- daemonsets
- rollouts
- deployments
- statefulsets
- pods
Expand All @@ -46,21 +25,44 @@ rules:
- patch
- apiGroups:
- agents.contrastsecurity.com
- dynatrace.com
resources:
- agentinjectors
- clusteragentconfigurations
- dynakubes
- clusteragentconnections
verbs:
- get
- list
- watch
- apiGroups:
- agents.contrastsecurity.com
- ""
- coordination.k8s.io
resources:
- agentconnections
- secrets
- agentconfigurations
- leases
verbs:
- '*'
- apiGroups:
- agents.contrastsecurity.com
- dynatrace.com
resources:
- clusteragentconnections
- dynakubes
- clusteragentconfigurations
- agentinjectors
verbs:
- '*'
- apiGroups:
- admissionregistration.k8s.io
resources:
- mutatingwebhookconfigurations
verbs:
- create
- get
- list
- watch
- patch
- update
- delete
- apiGroups:
- ""
resources:
Expand Down Expand Up @@ -121,4 +123,4 @@ rules:
verbs:
- get
- patch
- update
- update

0 comments on commit df873ff

Please sign in to comment.