Skip to content

Commit

Permalink
[RS-2296] Updated rbac for idc - list available for cm, secrets and w…
Browse files Browse the repository at this point in the history
…ebhooks. (#3758)

* updated rbac for idc - list available for cm, secrets and webhooks.

* copyright.

* test to reflect the changes made.

* copyright again.

* after make gen-versions.
  • Loading branch information
bartolini authored Feb 12, 2025
1 parent 57cdab7 commit fac2b23
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,13 @@ spec:
FrontendMap should be large enough to hold an entry for each nodeport,
external IP and each port in each service.
type: integer
bpfMapSizePerCpuConntrack:
description: |-
BPFMapSizePerCPUConntrack determines the size of conntrack map based on the number of CPUs. If set to a
non-zero value, overrides BPFMapSizeConntrack with `BPFMapSizePerCPUConntrack * (Number of CPUs)`.
This map must be large enough to hold an entry for each active connection. Warning: changing the size of the
conntrack map can cause disruption.
type: integer
bpfMapSizeRoute:
description: |-
BPFMapSizeRoute sets the size for the routes map. The routes map should be large enough
Expand Down
6 changes: 3 additions & 3 deletions pkg/render/intrusion_detection.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2024 Tigera, Inc. All rights reserved.
// Copyright (c) 2019-2025 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 @@ -315,12 +315,12 @@ func (c *intrusionDetectionComponent) intrusionDetectionClusterRole() *rbacv1.Cl
{
APIGroups: []string{""},
Resources: []string{"secrets", "configmaps"},
Verbs: []string{"get", "watch"},
Verbs: []string{"get", "list", "watch"},
},
{
APIGroups: []string{"crd.projectcalico.org"},
Resources: []string{"securityeventwebhooks"},
Verbs: []string{"get", "watch", "update"},
Verbs: []string{"get", "list", "watch", "update"},
},
{
APIGroups: []string{"crd.projectcalico.org"},
Expand Down
6 changes: 3 additions & 3 deletions pkg/render/intrusion_detection_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2019-2024 Tigera, Inc. All rights reserved.
// Copyright (c) 2019-2025 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 @@ -205,12 +205,12 @@ var _ = Describe("Intrusion Detection rendering tests", func() {
rbacv1.PolicyRule{
APIGroups: []string{""},
Resources: []string{"secrets", "configmaps"},
Verbs: []string{"get", "watch"},
Verbs: []string{"get", "list", "watch"},
},
rbacv1.PolicyRule{
APIGroups: []string{"crd.projectcalico.org"},
Resources: []string{"securityeventwebhooks"},
Verbs: []string{"get", "watch", "update"},
Verbs: []string{"get", "list", "watch", "update"},
},
rbacv1.PolicyRule{
APIGroups: []string{"crd.projectcalico.org"},
Expand Down

0 comments on commit fac2b23

Please sign in to comment.