Skip to content
Snippets Groups Projects
Commit 31651063 authored by Murat Kabilov's avatar Murat Kabilov
Browse files

use get parameter for k8s resource watch url

parent 4d936fc3
Branches
No related tags found
No related merge requests found
......@@ -90,8 +90,9 @@ func (c *Controller) clusterListFunc(options meta_v1.ListOptions) (runtime.Objec
}
func (c *Controller) clusterWatchFunc(options meta_v1.ListOptions) (watch.Interface, error) {
options.Watch = true
req := c.RestClient.Get().
RequestURI(fmt.Sprintf(constants.WatchClustersURITemplate, c.opConfig.Namespace)).
RequestURI(fmt.Sprintf(constants.ListClustersURITemplate, c.opConfig.Namespace)).
VersionedParams(&options, scheme.ParameterCodec).
FieldsSelectorParam(fields.Everything())
return req.Watch()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment