From 2138f85633627c5b075c659e290d6caf2c7934f3 Mon Sep 17 00:00:00 2001 From: michaelawyu Date: Thu, 11 Sep 2025 02:42:40 +1000 Subject: [PATCH] Configuration changes Signed-off-by: michaelawyu --- cmd/memberagent/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/memberagent/main.go b/cmd/memberagent/main.go index 3d560a18b..814db128b 100644 --- a/cmd/memberagent/main.go +++ b/cmd/memberagent/main.go @@ -179,6 +179,12 @@ func main() { DefaultNamespaces: map[string]cache.Config{ mcNamespace: {}, }, + // Strip managed fields from the objects to reduce memory usage. + // + // Note (chenyu1): the work applier does read the managedFields field, + // however, it concerns only objects from the member cluster side, which + // are not managed by this cache. + DefaultTransform: cache.TransformStripManagedFields(), }, }