mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
lib/promscrape/discovery/kubernetes: register pending apiWatchers in uw.aws
This commit is contained in:
parent
7fce4e9fb4
commit
db56ee0e28
@ -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 New Issue
Block a user