Skip to content

Commit

Permalink
webhooks should be able to watch config maps and secrets for changes. (
Browse files Browse the repository at this point in the history
  • Loading branch information
bartolini authored Jan 9, 2024
1 parent ff57548 commit 5a59102
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/render/intrusion_detection.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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"},
Expand Down
4 changes: 2 additions & 2 deletions pkg/render/intrusion_detection_test.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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"},
Expand Down

0 comments on commit 5a59102

Please sign in to comment.