Skip to content
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

Merged
merged 1 commit into from
Jan 24, 2024
Merged

Update EgressGateway validation #1139

merged 1 commit into from
Jan 24, 2024

Conversation

lou-lan
Copy link
Collaborator

@lou-lan lou-lan commented Jan 16, 2024

Fix #839
Fix #538

Before

can create egressgateway ippools IP repeat

After

cannot create egressgateway ippools IP repeat

@lou-lan lou-lan added the release/bug bug pr recoded in new release label Jan 16, 2024
Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1e4de21) 61.71% compared to head (657cedc) 61.71%.
Report is 10 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1139   +/-   ##
=======================================
  Coverage   61.71%   61.71%           
=======================================
  Files          17       17           
  Lines        3025     3025           
=======================================
  Hits         1867     1867           
  Misses        918      918           
  Partials      240      240           
Flag Coverage Δ
unittests 61.71% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@lou-lan lou-lan added the Ready label Jan 16, 2024
@lou-lan lou-lan requested a review from bzsuni January 17, 2024 11:37

return webhook.Allowed("checked")
func checkDupIP(currentIPv4List, currentIPv6List []net.IP, clusterIPMap map[string]map[string]struct{}) error {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 api 应该在 utiles 之类的 pkg 中出现更为合适 ,让它 更具通用性

Copy link
Collaborator Author

@lou-lan lou-lan Jan 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个函数目前放在 webhook 的这个文件中更好,不需要放在 utiles 之类中。该函数不需要通用性。

@weizhoublue
Copy link
Collaborator

weizhoublue commented Jan 21, 2024

目前已经是比较正式的版本了,每个 bug 修复,会呈现在 release note , 都需要有一些 描述:以前是什么,纠正是什么

@lou-lan
Copy link
Collaborator Author

lou-lan commented Jan 22, 2024

目前已经是比较正式的版本了,每个 bug 修复,会呈现在 release note , 都需要有一些 描述:以前是什么,纠正是什么

done

Signed-off-by: lou-lan <loulan@loulan.me>
@weizhoublue weizhoublue merged commit 08bbcd0 into main Jan 24, 2024
32 checks passed
@weizhoublue weizhoublue deleted the webhook/egw branch January 24, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready release/bug bug pr recoded in new release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Night CI 2023-10-13: Failed--webhook 访问失败(偶现) egressgateway ippools IP repeat
3 participants