Skip to content

Commit bb764cc

Browse files
authored
Merge pull request #12883 from ivelichkovich/auditlogsforenvtest
🌱 add clusterapi crd groups to audit logs for envtest
2 parents 1d455c1 + e2f5cd3 commit bb764cc

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)