Watch by name should use the admin client

This commit is contained in:
Darren Shepherd 2020-03-21 22:33:24 -07:00
parent 2daf0ce8ee
commit 3bb1459a8b

View File

@ -289,7 +289,7 @@ func (s *Store) listAndWatch(apiOp *types.APIRequest, k8sClient dynamic.Resource
} }
func (s *Store) WatchNames(apiOp *types.APIRequest, schema *types.APISchema, w types.WatchRequest, names sets.String) (chan types.APIEvent, error) { func (s *Store) WatchNames(apiOp *types.APIRequest, schema *types.APISchema, w types.WatchRequest, names sets.String) (chan types.APIEvent, error) {
adminClient, err := s.clientGetter.TableClientForWatch(apiOp, schema, apiOp.Namespace) adminClient, err := s.clientGetter.TableAdminClientForWatch(apiOp, schema, apiOp.Namespace)
if err != nil { if err != nil {
return nil, err return nil, err
} }