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

Retrieve CiliumNodes in connectivity tests context, and use them to determine PodCIDRs #2249

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

giorio94
Copy link
Member

Add CiliumNodes to the list of resources which are retrieved during connectivity tests initialization, and stored for later access from individual tests. Indeed, CiliumNodes contain additional information compared to plain Kubernetes Node objects, especially around IPAM. Additionally, leverage them to determine the PodCIDRs used for certain (unsafe) tests, so that we retrieve the correct CIDR both in case of kubernetes and cluster-pool IPAM modes, whereas now it only works in the first case.

Add CiliumNodes to the list of resources which are retrieved during
connectivity tests initialization, and stored for later access from
individual tests. Indeed, CiliumNodes contain additional information
compared to plain Kubernetes Node objects, especially around IPAM.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@giorio94
Copy link
Member Author

Converting back to draft as one of the CI failures seems legitimate.

@giorio94 giorio94 marked this pull request as draft January 23, 2024 08:18
Leverage the CiliumNode resources instead of plain K8s Node ones to
determine the PodCIDRs used for certain (unsafe) tests, so that we
retrieve the correct CIDR both in case of kubernetes and cluster-pool
IPAM modes, whereas now it only works in the first case.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@giorio94
Copy link
Member Author

CI is green. Marking ready for review again.

@giorio94 giorio94 marked this pull request as ready for review January 24, 2024 08:40
@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 Jan 24, 2024
@tklauser tklauser merged commit 1a3c1ec into cilium:main Jan 24, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

None yet

2 participants