mirror of
https://github.com/niusmallnan/steve.git
synced 2025-06-29 16:06:56 +00:00
Watch by name should use the admin client
This commit is contained in:
parent
2daf0ce8ee
commit
3bb1459a8b
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user