mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/promscrape/discovery/kubernetes: register pending apiWatchers in uw.aws
This commit is contained in:
parent
7fce4e9fb4
commit
db56ee0e28
1 changed files with 3 additions and 0 deletions
|
@ -437,6 +437,9 @@ func (uw *urlWatcher) registerPendingAPIWatchers() {
|
|||
for aw := range uw.awsPending {
|
||||
awsPending = append(awsPending, aw)
|
||||
delete(uw.awsPending, aw)
|
||||
if _, ok := uw.aws[aw]; !ok {
|
||||
uw.aws[aw] = struct{}{}
|
||||
}
|
||||
}
|
||||
uw.reloadScrapeWorksForAPIWatchers(awsPending, uw.objectsByKey)
|
||||
uw.mu.Unlock()
|
||||
|
|
Loading…
Reference in a new issue