-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update EgressGateway validation #1139
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1139 +/- ##
=======================================
Coverage 61.71% 61.71%
=======================================
Files 17 17
Lines 3025 3025
=======================================
Hits 1867 1867
Misses 918 918
Partials 240 240
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
||
return webhook.Allowed("checked") | ||
func checkDupIP(currentIPv4List, currentIPv6List []net.IP, clusterIPMap map[string]map[string]struct{}) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 api 应该在 utiles 之类的 pkg 中出现更为合适 ,让它 更具通用性
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个函数目前放在 webhook 的这个文件中更好,不需要放在 utiles
之类中。该函数不需要通用性。
目前已经是比较正式的版本了,每个 bug 修复,会呈现在 release note , 都需要有一些 描述:以前是什么,纠正是什么 |
done |
Signed-off-by: lou-lan <[email protected]>
Fix #839
Fix #538
Before
can create egressgateway ippools IP repeat
After
cannot create egressgateway ippools IP repeat