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: Detect version from cilium pods #987

Merged
merged 1 commit into from Jul 22, 2022

Conversation

gandro
Copy link
Member

@gandro gandro commented Jul 21, 2022

This commit changes the version detection away from the version state
stored during cilium install, and instead relies on the actual version
reported by cilium version in the Cilium pods. This fixes an issue
where cilium connectivity test could not be used if Cilium was not
installed via CLI (e.g. via Helm).

The version of all Cilium pods is parsed, and only the minimum version
is used. This ensures that we can use the lowest common denominator in
terms of features.

This commit changes the version detection away from the version state
stored during `cilium install`, and instead relies on the actual version
reported by `cilium version` in the Cilium pods. This fixes an issue
where `cilium connectivity test` could not be used if Cilium was not
installed via CLI (e.g. via Helm).

The version of all Cilium pods is parsed, and only the minimum version
is used. This ensures that we can use the lowest common denominator in
terms of features.

Signed-off-by: Sebastian Wicki <sebastian@isovalent.com>
@gandro gandro requested a review from a team as a code owner July 21, 2022 15:39
@gandro gandro requested a review from ldelossa July 21, 2022 15:39
@gandro gandro temporarily deployed to ci July 21, 2022 15:39 Inactive
Copy link
Member

@tklauser tklauser left a comment

Choose a reason for hiding this comment

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

Very nice, thanks Sebastian!

@tklauser tklauser merged commit d80e683 into master Jul 22, 2022
@tklauser tklauser deleted the pr/gandro/detect-version-in-connectivity-test branch July 22, 2022 06:07
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