mirror of
https://github.com/rancher/steve.git
synced 2025-09-18 08:20:36 +00:00
Add support for listing helm releases
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
"github.com/rancher/steve/pkg/server/resources/clusters"
|
||||
"github.com/rancher/steve/pkg/server/resources/common"
|
||||
"github.com/rancher/steve/pkg/server/resources/counts"
|
||||
"github.com/rancher/steve/pkg/server/resources/helm"
|
||||
"github.com/rancher/steve/pkg/server/resources/userpreferences"
|
||||
"github.com/rancher/steve/pkg/server/store/proxy"
|
||||
"k8s.io/client-go/discovery"
|
||||
@@ -25,6 +26,7 @@ func DefaultSchemas(ctx context.Context, baseSchema *types.APISchemas, ccache cl
|
||||
apiroot.Register(baseSchema, []string{"v1"}, []string{"proxy:/apis"})
|
||||
userpreferences.Register(baseSchema, cg)
|
||||
clusters.Register(ctx, baseSchema, cg, ccache)
|
||||
helm.Register(baseSchema)
|
||||
return baseSchema
|
||||
}
|
||||
|
||||
@@ -32,5 +34,13 @@ func DefaultSchemaTemplates(cf *client.Factory, lookup accesscontrol.AccessSetLo
|
||||
return []schema.Template{
|
||||
common.DefaultTemplate(cf, lookup),
|
||||
apigroups.Template(discovery),
|
||||
{
|
||||
ID: "configmap",
|
||||
Formatter: helm.DropHelmData,
|
||||
},
|
||||
{
|
||||
ID: "secret",
|
||||
Formatter: helm.DropHelmData,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user