mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-22 08:45:39 +02:00
use get parameter for k8s resource watch url
This commit is contained in:
@@ -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) {
|
func (c *Controller) clusterWatchFunc(options meta_v1.ListOptions) (watch.Interface, error) {
|
||||||
|
options.Watch = true
|
||||||
req := c.RestClient.Get().
|
req := c.RestClient.Get().
|
||||||
RequestURI(fmt.Sprintf(constants.WatchClustersURITemplate, c.opConfig.Namespace)).
|
RequestURI(fmt.Sprintf(constants.ListClustersURITemplate, c.opConfig.Namespace)).
|
||||||
VersionedParams(&options, scheme.ParameterCodec).
|
VersionedParams(&options, scheme.ParameterCodec).
|
||||||
FieldsSelectorParam(fields.Everything())
|
FieldsSelectorParam(fields.Everything())
|
||||||
return req.Watch()
|
return req.Watch()
|
||||||
|
|||||||
Reference in New Issue
Block a user