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

Add datapath logic for ignore internal CIDR #451

Merged
merged 1 commit into from
Jun 16, 2023
Merged

Add datapath logic for ignore internal CIDR #451

merged 1 commit into from
Jun 16, 2023

Conversation

lou-lan
Copy link
Collaborator

@lou-lan lou-lan commented Jun 14, 2023

背景

减少用户使用的使用 EgressPolicy 的复杂度,可以不配置 destSubnet 字段。这时将对 EgressPolicy 匹配中的 Pod 除了访问集群内部网络地址的流量转发的出口网关。

描述

将 egress-controller 收集的集群内部子网信息记录到名为 egress-cluster-cidr-ipv4egress-cluster-cidr-ipv6 的 ipset。此 PR 增加「EgressPolicy 未定义 destSubnet 时对除了 internal CIDR 的流量进行 egress 转换」的 datapath 逻辑。

…al CIDR when "destSubnet" is not defined in EgressPolicy.
@lou-lan lou-lan changed the title Add datapath logic for egress conversion of traffic other than internal CIDR when "destSubnet" is not defined in EgressPolicy. Add datapath logic for egress conversion of traffic other than internal CIDR when "destSubnet" is not defined in EgressPolicy Jun 14, 2023
@lou-lan lou-lan changed the title Add datapath logic for egress conversion of traffic other than internal CIDR when "destSubnet" is not defined in EgressPolicy Add datapath logic Jun 14, 2023
@lou-lan lou-lan changed the title Add datapath logic Add datapath logic for ignore intelnal CIDR Jun 14, 2023
@codecov
Copy link

codecov bot commented Jun 14, 2023

Codecov Report

Merging #451 (c6381ca) into main (49f1c56) will decrease coverage by 0.38%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #451      +/-   ##
==========================================
- Coverage   10.43%   10.06%   -0.38%     
==========================================
  Files          19       19              
  Lines        3643     3777     +134     
==========================================
  Hits          380      380              
- Misses       3197     3331     +134     
  Partials       66       66              
Flag Coverage Δ
unittests 10.06% <0.00%> (-0.38%) ⬇️

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

Impacted Files Coverage Δ
pkg/agent/police.go 0.00% <0.00%> (ø)

@lou-lan lou-lan requested review from biqiangwu and bzsuni June 14, 2023 09:50
@lou-lan lou-lan changed the title Add datapath logic for ignore intelnal CIDR Add datapath logic for ignore internal CIDR Jun 14, 2023
@lou-lan lou-lan merged commit 0ca1ed8 into main Jun 16, 2023
24 of 27 checks passed
@lou-lan lou-lan deleted the internal-cidr branch June 16, 2023 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants