diff --git a/pkg/render/intrusion_detection.go b/pkg/render/intrusion_detection.go index 57ccdb23a3..86ca96b5ed 100644 --- a/pkg/render/intrusion_detection.go +++ b/pkg/render/intrusion_detection.go @@ -1,4 +1,4 @@ -// Copyright (c) 2019-2023 Tigera, Inc. All rights reserved. +// Copyright (c) 2019-2024 Tigera, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -508,7 +508,7 @@ func (c *intrusionDetectionComponent) intrusionDetectionClusterRole() *rbacv1.Cl rbacv1.PolicyRule{ APIGroups: []string{""}, Resources: []string{"secrets", "configmaps"}, - Verbs: []string{"get"}, + Verbs: []string{"get", "watch"}, }, rbacv1.PolicyRule{ APIGroups: []string{"crd.projectcalico.org"}, diff --git a/pkg/render/intrusion_detection_test.go b/pkg/render/intrusion_detection_test.go index 906757fc73..2bd44b05f4 100644 --- a/pkg/render/intrusion_detection_test.go +++ b/pkg/render/intrusion_detection_test.go @@ -1,4 +1,4 @@ -// Copyright (c) 2019-2023 Tigera, Inc. All rights reserved. +// Copyright (c) 2019-2024 Tigera, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -276,7 +276,7 @@ var _ = Describe("Intrusion Detection rendering tests", func() { rbacv1.PolicyRule{ APIGroups: []string{""}, Resources: []string{"secrets", "configmaps"}, - Verbs: []string{"get"}, + Verbs: []string{"get", "watch"}, }, rbacv1.PolicyRule{ APIGroups: []string{"crd.projectcalico.org"},