Skip to content

Commit

Permalink
Merge pull request #1126 from JimBugwadia/update_permissions2
Browse files Browse the repository at this point in the history
update permissions
  • Loading branch information
realshuting authored Aug 13, 2024
2 parents d4c42e1 + 5189caf commit 4b0a662
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ spec:
steps:
- name: 01 - Create policy and Enforce
try:
- apply:
file: permissions.yaml
- apply:
file: ../check-vpa-configuration.yaml
- patch:
Expand Down
17 changes: 17 additions & 0 deletions other/check-vpa-configuration/.chainsaw-test/permissions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kyverno:vpa
labels:
rbac.kyverno.io/aggregate-to-background-controller: "true"
rbac.kyverno.io/aggregate-to-reports-controller: "true"
rbac.kyverno.io/aggregate-to-admission-controller: "true"
rules:
- apiGroups:
- autoscaling.k8s.io
resources:
- verticalpodautoscalers
verbs:
- get
- list
- watch

0 comments on commit 4b0a662

Please sign in to comment.