higress-group/higress-console

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

オープン

#224 opened on 2023/06/07

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Java (162 件のフォーク)github user discovery
backendenhancementgood first issuehelp wantedlevel/easy

Repository metrics

Stars
 (187 個のスター)
PR merge metrics
 (平均マージ 16d 10h) (30d で 2 merged PRs)

説明

Why do you need it?

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

How could it be?

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

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

Other related information

コントリビューターガイド