1
0
mirror of https://github.com/rancher/steve.git synced 2025-09-02 16:05:42 +00:00

Add state info to relationships

This commit is contained in:
Darren Shepherd
2020-10-23 14:00:11 -07:00
parent a44863b331
commit 92638937df
2 changed files with 55 additions and 23 deletions

View File

@@ -127,10 +127,8 @@ func setup(ctx context.Context, server *Server) error {
}
sf := schema.NewCollection(ctx, server.BaseSchemas, asl)
summaryCache := summarycache.New(sf)
ccache.OnAdd(ctx, summaryCache.OnAdd)
ccache.OnRemove(ctx, summaryCache.OnRemove)
ccache.OnChange(ctx, summaryCache.OnChange)
summaryCache := summarycache.New(sf, ccache)
summaryCache.Start(ctx)
for _, template := range resources.DefaultSchemaTemplates(cf, summaryCache, asl, server.controllers.K8s.Discovery()) {
sf.AddTemplate(template)