higress-group/higress-console

禁止删除包含绑定了路由的服务的服务来源

Aperta

#224 aperta il 7 giu 2023

 (1 commento) (0 reazioni) (0 assegnatari)Java (162 fork)github user discovery
backendenhancementgood first issuehelp wantedlevel/easy

Metriche repository

Star
 (187 stelle)
Metriche merge PR
 (Merge medio 16g 10h) (2 PR mergiate in 30 g)

Descrizione

Why do you need it?

如果一个服务来源提供的服务绑定了一个路由,用户又删除了这个服务来源,相应的服务所对应的服务器列表将不再更新,这就可能会影响线上流量。

How could it be?

在删除一个满足上述条件的服务来源时,API 应返回错误信息,告知用户该服务来源已经绑定了路由,不可删除。

但目前看从 Pilot 提供的 /debug/registryz 和 /debug/endpointShardz 似乎没有办法获知各个服务所关联的服务来源。所以具体的判断方法还需要进一步确认。

Other related information

Guida contributor