Skip to content

Commit f4b0a78

Browse files
dimshaouchakuna-matatah
authored
Add CNINode to cache filter (#3164)
We should reduce the number of CNINode object VPC CNI watches for to just the node it is managing as well. Signed-off-by: Davanum Srinivas <davanum@gmail.com> Co-authored-by: Hao Zhou <zhuhz@amazon.com> Co-authored-by: Harish Kuna <hakuna@amazon.com>
1 parent 6f477a3 commit f4b0a78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/k8sapi/k8sutils.go

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ func getIPAMDCacheFilters() map[client.Object]cache.ByObject {
4141
&corev1.Node{}: {
4242
Field: fields.Set{"metadata.name": nodeName}.AsSelector(),
4343
},
44+
&rcscheme.CNINode{}: {
45+
Field: fields.Set{"metadata.name": nodeName}.AsSelector(),
46+
},
4447
}
4548
}
4649
return nil

0 commit comments

Comments
 (0)