lib/promscrape/discovery/kubernetes: remove resourceVersionMatch=NotOlderThan query arg when watching for k8s object changes, since it cannot be used when watch=1 query arg is passed

This commit is contained in:
Aliaksandr Valialkin 2021-02-28 16:07:07 +02:00
parent 59a31171e3
commit c459600346

View file

@ -347,7 +347,7 @@ func (uw *urlWatcher) watchForUpdates(resourceVersion string) {
}
requestURL := apiURL
if resourceVersion != "" {
requestURL += "&resourceVersion=" + url.QueryEscape(resourceVersion) + "&resourceVersionMatch=NotOlderThan"
requestURL += "&resourceVersion=" + url.QueryEscape(resourceVersion)
}
resp, err := aw.doRequest(requestURL)
if err != nil {