Skip to content

Commit

Permalink
Account for discovered policies(kyverno, vapb etc) in aggregaterole
Browse files Browse the repository at this point in the history
This will allow the discovered policies table to show kyverno policies(clusterPolicy, policy), gatekeeper mutations, validatingAdmissionPolicyBinding, policyreports
for view users.

Signed-off-by: yiraeChristineKim <[email protected]>
  • Loading branch information
yiraeChristineKim committed Jan 9, 2025
1 parent dcf6c55 commit ea72ae6
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,17 @@ rules:
resources: ["klusterletaddonconfigs"]
verbs: ["create", "get", "list", "watch", "update", "delete", "deletecollection", "patch"]
- apiGroups: ["wgpolicyk8s.io"]
resources: ["policyreports"]
resources: ["policyreports", "clusterpolicyreports"]
verbs: ["get", "list", "watch"]
- apiGroups: ["submarineraddon.open-cluster-management.io"]
resources: ["submarinerconfigs", "submarinerconfigs/status"]
verbs: ["create", "get", "list", "watch", "update", "delete", "deletecollection", "patch"]
- apiGroups: ["mutations.gatekeeper.sh"]
resources: ["*"]
verbs: ["create", "get", "list", "watch", "update", "delete", "deletecollection", "patch"]
- apiGroups: ["admissionregistration.k8s.io"]
resources: ["validatingadmissionpolicybindings"]
verbs: ["create", "get", "list", "watch", "update", "delete", "deletecollection", "patch"]
- apiGroups: ["kyverno.io"]
resources: ["policies", "clusterpolicies"]
verbs: ["create", "get", "list", "watch", "update", "delete", "deletecollection", "patch"]
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ rules:
resources: ["klusterletaddonconfigs"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: ["wgpolicyk8s.io"]
resources: ["policyreports"]
resources: ["policyreports", "clusterpolicyreports"]
verbs: ["get", "list", "watch"]
- apiGroups: ["submarineraddon.open-cluster-management.io"]
resources: ["submarinerconfigs", "submarinerconfigs/status"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: ["mutations.gatekeeper.sh"]
resources: ["*"]
verbs: ["get", "list", "watch", "update", "patch"]
- apiGroups: ["admissionregistration.k8s.io"]
resources: ["validatingadmissionpolicybindings"]
verbs: ["get", "list", "watch", "update", "patch"]
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,17 @@ rules:
resources: ["klusterletaddonconfigs"]
verbs: ["get", "list", "watch"]
- apiGroups: ["wgpolicyk8s.io"]
resources: ["policyreports"]
resources: ["policyreports", "clusterpolicyreports"]
verbs: ["get", "list", "watch"]
- apiGroups: ["submarineraddon.open-cluster-management.io"]
resources: ["submarinerconfigs", "submarinerconfigs/status"]
verbs: ["get", "list", "watch"]
- apiGroups: ["mutations.gatekeeper.sh"]
resources: ["*"]
verbs: ["get", "list", "watch"]
- apiGroups: ["admissionregistration.k8s.io"]
resources: ["validatingadmissionpolicybindings"]
verbs: ["get", "list", "watch"]
- apiGroups: ["kyverno.io"]
resources: ["policies", "clusterpolicies"]
verbs: ["get", "list", "watch"]

0 comments on commit ea72ae6

Please sign in to comment.