Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RS-2296] Updated rbac for idc - list available for cm, secrets and webhooks. #3758

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading