slime
slime copied to clipboard
Attempt to read a certain pod label when the pod cache is not built properly.
问题描述
注册仓库模块支持提取 pod 标签到服务实例元数据上,基本原理是将注册中心的实例 ip 和 pod ip 做匹配,两者相同时,执行添加。
这里要求一个前提是,pod 信息在从注册中心拉取数据转换成 istio se 前已经准备好了。slime 使用 pod informer 获取 pod 信息,这个 informer 的启动和不同注册中心 source 启动实际上是异步进行的,可能导致无法将 pod 标签正确的添加到服务实例元数据上,对于依赖这个特性的场景造成错误。
影响的子模块(在下面列表中打'X')
- [ ] 配置懒加载
- [ ] 插件管理
- [ ] 智能限流
- [x] 注册仓库
- [ ] 安装Boot
重现问题的步骤