Fix ALS K8SServiceRegistry didn't remove the correct entry (#6658)
* Fix ALS K8SServiceRegistry didn't remove the correct entry * Add changes Co-authored-by: Zhenxu Ke <kezhenxu94@apache.org>
This commit is contained in:
parent
7d06c210ae
commit
4af2b61027
|
|
@ -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())
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue