未验证 提交 4af2b610 编写于 作者: W wankai123 提交者: GitHub

Fix ALS K8SServiceRegistry didn't remove the correct entry (#6658)

* Fix ALS K8SServiceRegistry didn't remove the correct entry

* Add changes
Co-authored-by: NZhenxu Ke <kezhenxu94@apache.org>
上级 7d06c210
......@@ -63,6 +63,7 @@ Release Notes.
* Optimize the self monitoring grafana dashboard.
* Enhance the export service.
* Add function `retagByK8sMeta` and opt type `K8sRetagType.Pod2Service` in MAL for k8s to relate pods and services.
* Fix ALS K8SServiceRegistry didn't remove the correct entry.
* Using "service.istio.io/canonical-name" to replace "app" label to resolve Envoy ALS service name
#### UI
......
......@@ -209,7 +209,7 @@ public class K8SServiceRegistry {
protected void removeService(final V1Service service) {
ofNullable(service.getMetadata()).ifPresent(
metadata -> idServiceMap.remove(metadata.getUid())
metadata -> idServiceMap.remove(metadata.getNamespace() + ":" + metadata.getName())
);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册