@@ -88,6 +88,11 @@ const (
8888
8989 // ClusterImporter will enable the auto import of managed cluster for certain cluster providers, e.g. cluster-api.
9090 ClusterImporter featuregate.Feature = "ClusterImporter"
91+
92+ // CleanUpCompletedManifestWork will delete manifestworks which have Completed status after a specified TTL seconds.
93+ // When enabled, the work controller will automatically clean up completed manifest works based on the configured
94+ // time-to-live duration to prevent accumulation of old completed resources.
95+ CleanUpCompletedManifestWork featuregate.Feature = "CleanUpCompletedManifestWork"
9196)
9297
9398// DefaultSpokeRegistrationFeatureGates consists of all known ocm-registration
@@ -120,9 +125,10 @@ var DefaultHubAddonManagerFeatureGates = map[featuregate.Feature]featuregate.Fea
120125// DefaultHubWorkFeatureGates consists of all known acm work wehbook feature keys.
121126// To add a new feature, define a key for it above and add it here.
122127var DefaultHubWorkFeatureGates = map [featuregate.Feature ]featuregate.FeatureSpec {
123- NilExecutorValidating : {Default : false , PreRelease : featuregate .Alpha },
124- ManifestWorkReplicaSet : {Default : false , PreRelease : featuregate .Alpha },
125- CloudEventsDrivers : {Default : false , PreRelease : featuregate .Alpha },
128+ NilExecutorValidating : {Default : false , PreRelease : featuregate .Alpha },
129+ ManifestWorkReplicaSet : {Default : false , PreRelease : featuregate .Alpha },
130+ CloudEventsDrivers : {Default : false , PreRelease : featuregate .Alpha },
131+ CleanUpCompletedManifestWork : {Default : false , PreRelease : featuregate .Alpha },
126132}
127133
128134// DefaultSpokeWorkFeatureGates consists of all known ocm work feature keys for work agent.
0 commit comments