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

tests: egressgw: minor improvements and clean ups #2063

Merged
merged 5 commits into from
Jan 5, 2024

Conversation

jibi
Copy link
Member

@jibi jibi commented Oct 23, 2023

see individual commits

@jibi jibi added the area/CI Continuous Integration testing issue or flake label Oct 23, 2023
@jibi jibi temporarily deployed to ci October 23, 2023 12:17 — with GitHub Actions Inactive
@jibi jibi force-pushed the pr/jibi/egressgw-cli-tests-improv branch from d187988 to d5e1cb1 Compare October 23, 2023 12:31
@jibi jibi temporarily deployed to ci October 23, 2023 12:31 — with GitHub Actions Inactive
@jibi jibi force-pushed the pr/jibi/egressgw-cli-tests-improv branch from d5e1cb1 to 3c8b316 Compare January 4, 2024 09:10
@jibi jibi marked this pull request as ready for review January 4, 2024 09:56
@jibi jibi requested review from a team as code owners January 4, 2024 09:56
Copy link
Member

@jschwinger233 jschwinger233 left a comment

Choose a reason for hiding this comment

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

It's not this PR to blame, still I found it a bit confusing that EgressGatewayPolicy's excludedCIDRs looks like a field accepting a CIDR but instead accepting 0 or 1. Thanks!

to better document how the ExcludedCIDRs param of
CiliumEgressGatewayPolicyParams works

Signed-off-by: Gilberto Bertin <[email protected]>
add a new PodSelectorKind parameter to CiliumEgressGatewayPolicyParams,
which allows to select the pod matching the "kind" label

Signed-off-by: Gilberto Bertin <[email protected]>
As CiliumEgressGatewayPolicyParams allows now to use a single policy
template across all test scenarios, stop passing the same policy
template to all invocations of WithCiliumEgressPolicy()

Signed-off-by: Gilberto Bertin <[email protected]>
and make it available to hooks

Signed-off-by: Gilberto Bertin <[email protected]>
@jibi
Copy link
Member Author

jibi commented Jan 5, 2024

It's not this PR to blame, still I found it a bit confusing that EgressGatewayPolicy's excludedCIDRs looks like a field accepting a CIDR but instead accepting 0 or 1. Thanks!

yeah that's fair 👍 perhaps I can rename it to excludedCIDRsMode or excludedCIDRsConf 🤔

rename the ExcludedCIDRs CiliumEgressGatewayPolicyParams field to
ExcludedCIDRsConf to make it more explicit its use case

Signed-off-by: Gilberto Bertin <[email protected]>
@jibi jibi merged commit 9240186 into main Jan 5, 2024
13 checks passed
@jibi jibi deleted the pr/jibi/egressgw-cli-tests-improv branch January 5, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants