Skip to content

Commit

Permalink
Add CNINode to cache filter (#3164)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
3 people authored Jan 5, 2025
1 parent 6f477a3 commit f4b0a78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/k8sapi/k8sutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ func getIPAMDCacheFilters() map[client.Object]cache.ByObject {
&corev1.Node{}: {
Field: fields.Set{"metadata.name": nodeName}.AsSelector(),
},
&rcscheme.CNINode{}: {
Field: fields.Set{"metadata.name": nodeName}.AsSelector(),
},
}
}
return nil
Expand Down

0 comments on commit f4b0a78

Please sign in to comment.