mirror of
https://github.com/rancher/steve.git
synced 2025-09-02 07:55:31 +00:00
Re-adding formatter when SQL cache is enabled (#300)
Previously, the formatter for state/relationships was disabled when the sql cache was enabled, since a transform function was adding those values before they were added to the cache. However, the get/watch calls currently don't use the cache, causing the state/relationships to be missing.
This commit is contained in:
@@ -49,7 +49,7 @@ func DefaultSchemaTemplates(cf *client.Factory,
|
||||
discovery discovery.DiscoveryInterface,
|
||||
namespaceCache corecontrollers.NamespaceCache) []schema.Template {
|
||||
return []schema.Template{
|
||||
common.DefaultTemplate(cf, summaryCache, lookup, namespaceCache, false),
|
||||
common.DefaultTemplate(cf, summaryCache, lookup, namespaceCache),
|
||||
apigroups.Template(discovery),
|
||||
{
|
||||
ID: "configmap",
|
||||
@@ -79,7 +79,7 @@ func DefaultSchemaTemplatesForStore(store types.Store,
|
||||
discovery discovery.DiscoveryInterface) []schema.Template {
|
||||
|
||||
return []schema.Template{
|
||||
common.DefaultTemplateForStore(store, summaryCache, true),
|
||||
common.DefaultTemplateForStore(store, summaryCache),
|
||||
apigroups.Template(discovery),
|
||||
{
|
||||
ID: "configmap",
|
||||
|
Reference in New Issue
Block a user