Fix pod match error when the service have multiple selector (#9008)

This commit is contained in:
mrproliu 2022-05-08 13:05:51 +08:00 committed by GitHub
parent d9c74a8df1
commit 2f72a3cace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -44,6 +44,7 @@
* Clean up scroll contexts after used.
* Support autocomplete tags in logs query.
* Enhance Deprecated MetricQuery(v1) getValues querying to asynchronous concurrency query
* Fix the pod match error when the service has multiple selector in kubernetes environment.
#### UI

View File

@ -223,10 +223,10 @@ public class K8sInfoRegistry {
Objects.requireNonNull(o);
Objects.requireNonNull(c);
for (final Object value : o) {
if (c.contains(value)) {
return true;
if (!c.contains(value)) {
return false;
}
}
return false;
return true;
}
}