Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmd/memberagent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,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(),
},
}

Expand Down
Loading