mirror of
https://github.com/rancher/steve.git
synced 2025-09-16 07:18:28 +00:00
Add projectsornamespaces query parameter
Add a new query parameter to filter resources by their namespace or their namespace's project. This parameter is separate from the existing `filter` parameter. Filter by a comma-separated list of projects and/or namespaces with: ?projectsornamespaces=p1,n1,n2 The result can be negated with the ! operator: ?projectsornamespaces!=p1,n1,n2
This commit is contained in:
@@ -145,7 +145,7 @@ func setup(ctx context.Context, server *Server) error {
|
||||
summaryCache := summarycache.New(sf, ccache)
|
||||
summaryCache.Start(ctx)
|
||||
|
||||
for _, template := range resources.DefaultSchemaTemplates(cf, server.BaseSchemas, summaryCache, asl, server.controllers.K8s.Discovery()) {
|
||||
for _, template := range resources.DefaultSchemaTemplates(cf, server.BaseSchemas, summaryCache, asl, server.controllers.K8s.Discovery(), server.controllers.Core.Namespace().Cache()) {
|
||||
sf.AddTemplate(template)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user