Improve counts and columns

This commit is contained in:
Darren Shepherd
2019-09-09 14:28:55 -07:00
parent 46f5e218e9
commit f81721ef93
18 changed files with 1001 additions and 215 deletions

View File

@@ -24,6 +24,10 @@ func NewFactory(cfg *rest.Config) (*Factory, error) {
}, nil
}
func (p *Factory) DynamicClient() dynamic.Interface {
return p.client
}
func (p *Factory) Client(ctx *types.APIRequest, s *types.Schema) (dynamic.ResourceInterface, error) {
gvr := attributes.GVR(s)
if len(ctx.Namespaces) > 0 {