【GLCC】Higress Console 支持 Gateway API-功能模块2 #326
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ⅰ. Describe what this PR did
本pr主要完成功能第2部分:域名->gateway的转化,包括①修改域名定义,支持不同端口配置不同证书,②域名操作时,自动进行gateway资源的 增删查改列 操作,③通过全局配置
higress-port
,记录每个端口的计数情况,增加或删除域名端口时,同时修改higress-gateway的service的ports字段Ⅱ. 整体进度
[√]启动console时,初始化gtw class,读取网关模式
[√]修改域名定义,支持不同端口配置不同证书
[√]增加域名端口时,同时修改higress-gateway的service的ports字段 #896
[ ]重写、重定向等策略的适配
[ ]支持openapi导入,生成配置
[ ]路由级插件适配
Ⅲ. 结果
①域名创建
检查对应gateway资源
检查service对应端口是否开启
检查gateway status
②域名更新
service删除多余端口号
gateway中也更新了
③域名删除
service中删除对应端口号
删除了对应的gateway资源
Ⅳ. 备注
目前域名对应创建的gateway资源仍然先放在
higress-system
命名空间下,可根据需要修改