mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-11 15:34:56 +00:00
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:
parent
59a31171e3
commit
c459600346
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ func (uw *urlWatcher) watchForUpdates(resourceVersion string) {
|
||||||
}
|
}
|
||||||
requestURL := apiURL
|
requestURL := apiURL
|
||||||
if resourceVersion != "" {
|
if resourceVersion != "" {
|
||||||
requestURL += "&resourceVersion=" + url.QueryEscape(resourceVersion) + "&resourceVersionMatch=NotOlderThan"
|
requestURL += "&resourceVersion=" + url.QueryEscape(resourceVersion)
|
||||||
}
|
}
|
||||||
resp, err := aw.doRequest(requestURL)
|
resp, err := aw.doRequest(requestURL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue