mirror of
https://github.com/rancher/steve.git
synced 2025-09-02 07:55:31 +00:00
Show resource relationships
This commit is contained in:
@@ -3,6 +3,8 @@ package resources
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/rancher/steve/pkg/summarycache"
|
||||
|
||||
"github.com/rancher/apiserver/pkg/store/apiroot"
|
||||
"github.com/rancher/apiserver/pkg/subscribe"
|
||||
"github.com/rancher/apiserver/pkg/types"
|
||||
@@ -31,17 +33,20 @@ func DefaultSchemas(ctx context.Context, baseSchema *types.APISchemas, ccache cl
|
||||
return baseSchema, err
|
||||
}
|
||||
|
||||
func DefaultSchemaTemplates(cf *client.Factory, lookup accesscontrol.AccessSetLookup, discovery discovery.DiscoveryInterface) []schema.Template {
|
||||
func DefaultSchemaTemplates(cf *client.Factory,
|
||||
summaryCache *summarycache.SummaryCache,
|
||||
lookup accesscontrol.AccessSetLookup,
|
||||
discovery discovery.DiscoveryInterface) []schema.Template {
|
||||
return []schema.Template{
|
||||
common.DefaultTemplate(cf, lookup),
|
||||
common.DefaultTemplate(cf, summaryCache, lookup),
|
||||
apigroups.Template(discovery),
|
||||
{
|
||||
ID: "configmap",
|
||||
Formatter: common.DefaultFormatter(helm.DropHelmData),
|
||||
Formatter: helm.DropHelmData,
|
||||
},
|
||||
{
|
||||
ID: "secret",
|
||||
Formatter: common.DefaultFormatter(helm.DropHelmData),
|
||||
Formatter: helm.DropHelmData,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user