prioritize user EtcdOptions.StorageConfig.StorageObjectCountTracker
Kubernetes-commit: 587ce02d90f3c1e1bb7418753009baf63f6039b7
This commit is contained in:
parent
70fb342c48
commit
f687e45ec2
|
|
@ -396,7 +396,11 @@ func (f *StorageFactoryRestOptionsFactory) GetRESTOptions(resource schema.GroupR
|
||||||
EnableGarbageCollection: f.Options.EnableGarbageCollection,
|
EnableGarbageCollection: f.Options.EnableGarbageCollection,
|
||||||
ResourcePrefix: f.StorageFactory.ResourcePrefix(resource),
|
ResourcePrefix: f.StorageFactory.ResourcePrefix(resource),
|
||||||
CountMetricPollPeriod: f.Options.StorageConfig.CountMetricPollPeriod,
|
CountMetricPollPeriod: f.Options.StorageConfig.CountMetricPollPeriod,
|
||||||
StorageObjectCountTracker: storageConfig.StorageObjectCountTracker,
|
StorageObjectCountTracker: f.Options.StorageConfig.StorageObjectCountTracker,
|
||||||
|
}
|
||||||
|
|
||||||
|
if ret.StorageObjectCountTracker == nil {
|
||||||
|
ret.StorageObjectCountTracker = storageConfig.StorageObjectCountTracker
|
||||||
}
|
}
|
||||||
|
|
||||||
if f.Options.EnableWatchCache {
|
if f.Options.EnableWatchCache {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue