Skip to content

Commit 0ba0e7f

Browse files
authored
feat: experimental: memory optimization (hub cache transformation #1) (#245)
* Configuration changes Signed-off-by: michaelawyu <[email protected]> * Minor changes Signed-off-by: michaelawyu <[email protected]> * Minor fixes Signed-off-by: michaelawyu <[email protected]> --------- Signed-off-by: michaelawyu <[email protected]>
1 parent b621ed3 commit 0ba0e7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/hubagent/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ func main() {
124124
mgrOpts := ctrl.Options{
125125
Scheme: scheme,
126126
Cache: cache.Options{
127-
SyncPeriod: &opts.ResyncPeriod.Duration,
127+
SyncPeriod: &opts.ResyncPeriod.Duration,
128+
DefaultTransform: cache.TransformStripManagedFields(),
128129
},
129130
LeaderElection: opts.LeaderElection.LeaderElect,
130131
LeaderElectionID: opts.LeaderElection.ResourceName,

0 commit comments

Comments
 (0)