Skip to content

[v1.16] workflows: Extend IPsec tests to cover egress gateway #35540

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

Merged
merged 5 commits into from
Oct 28, 2024

Conversation

julianwiedmann
Copy link
Member

@julianwiedmann julianwiedmann commented Oct 25, 2024

Manual backport, to tolerate that KPR and IPsec don't work together on v1.15.

Once this PR is merged, a GitHub action will update the labels of these PRs:

 35323

[ upstream commit bf874a0 ]

The 'encryption' and 'encryption-node' field are removed. We already
know this is about IPsec encryption and node encryption isn't supported,
so those fields are just unnecessary verbosity.

Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
@maintainer-s-little-helper maintainer-s-little-helper bot added backport/1.16 This PR represents a backport for Cilium 1.16.x of a PR that was merged to main. kind/backports This PR provides functionality previously merged into master. labels Oct 25, 2024
@julianwiedmann
Copy link
Member Author

/ci-ipsec-upgrade

@julianwiedmann julianwiedmann force-pushed the pr/jwi/v1.16/ci-ipsec-egw branch from 055ac66 to 05588fa Compare October 25, 2024 11:20
@julianwiedmann
Copy link
Member Author

/ci-ipsec-upgrade

@julianwiedmann julianwiedmann force-pushed the pr/jwi/v1.16/ci-ipsec-egw branch from 05588fa to 8f8b415 Compare October 25, 2024 11:40
@julianwiedmann
Copy link
Member Author

/ci-ipsec-upgrade

@julianwiedmann
Copy link
Member Author

/ci-ipsec-e2e

pchaigno and others added 4 commits October 25, 2024 15:16
[ upstream commit 738f73f ]

This commit simply ensures the two IPsec workflows use the same configs.
The configs from the end-to-end test workflow, which seem more
extensive, are used.

Note that this means IPsec+KPR is now covered in up/downgrade tests. It
was only covered in end-to-end tests before. This is now okay because
IPsec+KPR should work in v1.16.

Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
[ upstream commit e1916e2 ]

[ backporter's notes: switch `cilium` to `cilium-cli` ]

For the end-to-end workflow, where we check for unencrypted pod-to-pod
traffic, this change requires us to run the egress gateway tests outside
of the unencrypted traffic check. Otherwise, pod-to-world traffic
redirected to the gateway is detected as incorrect unencrypted.

Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
[ upstream commit 06cfdb4 ]

To avoid duplicating the test configurations, let's store it in a single
place, as a YAML file, and generate the matrices for the workflows from
that file.

For the end-to-end workflow, we can take the YAML file as is. For the
upgrade workflows, we need to remove unused fields and duplicate each
entry for "mode: patch" and "mode: minor".

For the upgrade workflow, this has the added benefit of displaying the
full configuration in the job's name (instead of the previous
"(1, minor)").

Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
KPR is not supported on v1.15, skip these particular tests.

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
@julianwiedmann julianwiedmann force-pushed the pr/jwi/v1.16/ci-ipsec-egw branch from 8f8b415 to 04bc51e Compare October 25, 2024 12:19
@julianwiedmann julianwiedmann changed the title Pr/jwi/v1.16/ci ipsec egw [v1.16] workflows: Extend IPsec tests to cover egress gateway Oct 25, 2024
@julianwiedmann
Copy link
Member Author

/test-backport-1.16

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Oct 28, 2024
@julianwiedmann julianwiedmann added this pull request to the merge queue Oct 28, 2024
Merged via the queue into v1.16 with commit 8ab4081 Oct 28, 2024
281 checks passed
@julianwiedmann julianwiedmann deleted the pr/jwi/v1.16/ci-ipsec-egw branch October 28, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.16 This PR represents a backport for Cilium 1.16.x of a PR that was merged to main. kind/backports This PR provides functionality previously merged into master. ready-to-merge This PR has passed all tests and received consensus from code owners to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants