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

version: Detect special running Cilium versions #651

Merged
merged 1 commit into from
Dec 9, 2021

Conversation

jrajahalme
Copy link
Member

When cilium is installed with 'cilium install --version="-ci:1234"'
this version string is added to the standard image names. For the
Cilium agent this becomes "quay.io/cilium/cilium-ci:1234". Detect this
when decoding version from a running Cilium pod by finding the part
after the dash in the image reference, so that the detected version
becomes "-ci:1234". This allows hubble to be enabled without passing
--hubble-version parameter explicitly in this case.

Signed-off-by: Jarno Rajahalme [email protected]

When cilium is installed with 'cilium install --version="-ci:1234"'
this version string is added to the standard image names. For the
Cilium agent this becomes "quay.io/cilium/cilium-ci:1234". Detect this
when decoding version from a running Cilium pod by finding the part
after the dash in the image reference, so that the detected version
becomes "-ci:1234". This allows hubble to be enabled without passing
--hubble-version parameter explicitly in this case.

Signed-off-by: Jarno Rajahalme <[email protected]>
@jrajahalme jrajahalme added the kind/enhancement This would improve or streamline existing functionality. label Dec 9, 2021
@jrajahalme jrajahalme requested a review from a team as a code owner December 9, 2021 02:13
@jrajahalme jrajahalme requested review from a team, michi-covalent and aanm December 9, 2021 02:13
@jrajahalme jrajahalme temporarily deployed to ci December 9, 2021 02:13 Inactive
@tklauser tklauser merged commit a7670ef into master Dec 9, 2021
@tklauser tklauser deleted the pr/jrajahalme/improve-version-detection branch December 9, 2021 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement This would improve or streamline existing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants