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

[Connectivity] Refactor single node detection #2621

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

ldelossa
Copy link
Contributor

This PR refactors the single node detection.

Primarily, we now look for the newer node-role.kubernetes.io/control-plane taint along with explicitly examining the taint's effect to ensure it is "NoSchedule".

Introduce a dedicated function for detecting if the cluster under test
is comprised of a single node.

Two improvements are made in this dedicated functions:
1. Detect the newer node-role.kubernetes.io/control-plane taint which
   replaces the master role
2. Explicitly check for the 'NoSchedule' effect of a discovered taint.

A subsequent commit will remove single node detection from initClient
and invoke this new method during connectivity test setup and
validation.

Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
@ldelossa ldelossa self-assigned this Jun 22, 2024
@ldelossa ldelossa requested a review from a team as a code owner June 22, 2024 03:19
Refactor ConnectivityTest.initClients function to no longer detect
single node clusters.

The method's sole responsibility is now setting the ConnectivityTest's
k8s clients.

Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
@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 Jun 24, 2024
@michi-covalent michi-covalent merged commit 854a230 into cilium:main Jun 24, 2024
15 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.

3 participants