disable GC for custom resources

This commit is contained in:
deads2k 2017-06-13 10:40:58 -04:00
parent 5d2dbb58d7
commit 1da8f67560

View File

@ -109,7 +109,9 @@ func NewCRDRESTOptionsGetter(etcdOptions genericoptions.EtcdOptions) genericregi
StoragePrefix: etcdOptions.StorageConfig.Prefix, StoragePrefix: etcdOptions.StorageConfig.Prefix,
EnableWatchCache: etcdOptions.EnableWatchCache, EnableWatchCache: etcdOptions.EnableWatchCache,
DefaultWatchCacheSize: etcdOptions.DefaultWatchCacheSize, DefaultWatchCacheSize: etcdOptions.DefaultWatchCacheSize,
EnableGarbageCollection: etcdOptions.EnableGarbageCollection, // garbage collection for custom resources is forced off until GC works with CRs.
// When GC is enabled, this turns back into etcdOptions.EnableGarbageCollection
EnableGarbageCollection: false,
DeleteCollectionWorkers: etcdOptions.DeleteCollectionWorkers, DeleteCollectionWorkers: etcdOptions.DeleteCollectionWorkers,
} }
ret.StorageConfig.Codec = unstructured.UnstructuredJSONScheme ret.StorageConfig.Codec = unstructured.UnstructuredJSONScheme