Skip to content

Commit e277602

Browse files
authored
feat: memory optimization (memory cache transformation) (#247)
Configuration changes Signed-off-by: michaelawyu <chenyu1@microsoft.com>
1 parent 33e72a5 commit e277602

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/memberagent/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,12 @@ func main() {
177177
DefaultNamespaces: map[string]cache.Config{
178178
mcNamespace: {},
179179
},
180+
// Strip managed fields from the objects to reduce memory usage.
181+
//
182+
// Note (chenyu1): the work applier does read the managedFields field,
183+
// however, it concerns only objects from the member cluster side, which
184+
// are not managed by this cache.
185+
DefaultTransform: cache.TransformStripManagedFields(),
180186
},
181187
}
182188

0 commit comments

Comments
 (0)