Skip to content

Commit e2f5cd3

Browse files
committed
add clusterapi crd groups to audit logs
1 parent 1d455c1 commit e2f5cd3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

internal/test/envtest/environment.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,13 @@ kind: Policy
445445
rules:
446446
- level: RequestResponse
447447
resources:
448-
- resources: ["*"]
448+
- group: ""
449+
- group: "cluster.x-k8s.io"
450+
- group: "infrastructure.cluster.x-k8s.io"
451+
- group: "controlplane.cluster.x-k8s.io"
452+
- group: "addons.cluster.x-k8s.io"
453+
- group: "bootstrap.cluster.x-k8s.io"
454+
- group: "runtime.cluster.x-k8s.io"
449455
`)
450456

451457
if err := os.WriteFile(policyFile, policyYAML, 0600); err != nil {

0 commit comments

Comments
 (0)