File tree Expand file tree Collapse file tree 4 files changed +0
-105
lines changed
operator-controller/applier Expand file tree Collapse file tree 4 files changed +0
-105
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ import (
5959 "github.com/operator-framework/operator-controller/internal/catalogd/storage"
6060 "github.com/operator-framework/operator-controller/internal/catalogd/webhook"
6161 sharedcontrollers "github.com/operator-framework/operator-controller/internal/shared/controllers"
62- cacheutil "github.com/operator-framework/operator-controller/internal/shared/util/cache"
6362 fsutil "github.com/operator-framework/operator-controller/internal/shared/util/fs"
6463 httputil "github.com/operator-framework/operator-controller/internal/shared/util/http"
6564 imageutil "github.com/operator-framework/operator-controller/internal/shared/util/image"
@@ -255,8 +254,6 @@ func run(ctx context.Context) error {
255254
256255 cacheOptions := crcache.Options {
257256 ByObject : map [client.Object ]crcache.ByObject {},
258- // Memory optimization: strip managed fields and large annotations from cached objects
259- DefaultTransform : cacheutil .StripManagedFieldsAndAnnotations (),
260257 }
261258
262259 saKey , err := sautil .GetServiceAccount ()
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ import (
7878 "github.com/operator-framework/operator-controller/internal/operator-controller/rukpak/render/registryv1"
7979 "github.com/operator-framework/operator-controller/internal/operator-controller/scheme"
8080 sharedcontrollers "github.com/operator-framework/operator-controller/internal/shared/controllers"
81- cacheutil "github.com/operator-framework/operator-controller/internal/shared/util/cache"
8281 fsutil "github.com/operator-framework/operator-controller/internal/shared/util/fs"
8382 httputil "github.com/operator-framework/operator-controller/internal/shared/util/http"
8483 imageutil "github.com/operator-framework/operator-controller/internal/shared/util/image"
@@ -233,8 +232,6 @@ func run() error {
233232 cfg .systemNamespace : {LabelSelector : k8slabels .Everything ()},
234233 },
235234 DefaultLabelSelector : k8slabels .Nothing (),
236- // Memory optimization: strip managed fields and large annotations from cached objects
237- DefaultTransform : cacheutil .StripAnnotations (),
238235 }
239236
240237 if features .OperatorControllerFeatureGate .Enabled (features .BoxcutterRuntime ) {
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ import (
2828 ocv1 "github.com/operator-framework/operator-controller/api/v1"
2929 "github.com/operator-framework/operator-controller/internal/operator-controller/controllers"
3030 "github.com/operator-framework/operator-controller/internal/operator-controller/labels"
31- "github.com/operator-framework/operator-controller/internal/shared/util/cache"
3231)
3332
3433const (
@@ -68,9 +67,6 @@ func (r *SimpleRevisionGenerator) GenerateRevisionFromHelmRelease(
6867 maps .Copy (labels , objectLabels )
6968 obj .SetLabels (labels )
7069
71- // Memory optimization: strip large annotations
72- // Note: ApplyStripTransform never returns an error in practice
73- _ = cache .ApplyStripAnnotationsTransform (& obj )
7470 sanitizedUnstructured (ctx , & obj )
7571
7672 objs = append (objs , ocv1.ClusterExtensionRevisionObject {
@@ -122,10 +118,6 @@ func (r *SimpleRevisionGenerator) GenerateRevision(
122118 unstr := unstructured.Unstructured {Object : unstrObj }
123119 unstr .SetGroupVersionKind (gvk )
124120
125- // Memory optimization: strip large annotations
126- if err := cache .ApplyStripAnnotationsTransform (& unstr ); err != nil {
127- return nil , err
128- }
129121 sanitizedUnstructured (ctx , & unstr )
130122
131123 objs = append (objs , ocv1.ClusterExtensionRevisionObject {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments