Reduce informer memory usage by informer transform (#1203)

This fix reduces multus-daemon memory usage with k8s 0.29 informer
transform to trim unnecessary Pod object information to multus.
This commit is contained in:
Tomofumi Hayashi
2024-01-18 23:32:21 +09:00
committed by GitHub
parent a70da3556a
commit 40687759fb
633 changed files with 56945 additions and 25259 deletions

View File

@@ -35,7 +35,7 @@ const mdKey = mdKeyType("grpc.internal.address.metadata")
type mdValue metadata.MD
func (m mdValue) Equal(o interface{}) bool {
func (m mdValue) Equal(o any) bool {
om, ok := o.(mdValue)
if !ok {
return false