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

fix: assume invalid semver CNI has the required dump state command #2078

Merged
merged 1 commit into from
Jul 26, 2023
Merged

fix: assume invalid semver CNI has the required dump state command #2078

merged 1 commit into from
Jul 26, 2023

Conversation

thatmattlong
Copy link
Contributor

Reason for Change:
The CNS will invoke CNI's version command to check CNI version, and use it to determine whether it can be used for reconciling CNS state. This is achieved by a semver comparison >= v1.4.7. However, if the CNI was not tagged with a semantic version, this fails. Since CNI v1.4.7 is quite old, it is probably safe to remove this check entirely and just say "CNS >= v1.4.44 can't be used with CNI <=v1.4.6", but for now we'll just ignore the sem ver check if the parsing fails and assume we can use the command.

Requirements:

Notes:
I'm open to just removing the semver check altogether with the caveat that CNS v1.4.44 and above must be used with CNI >= v1.4.7.

@thatmattlong thatmattlong added the cns Related to CNS. label Jul 25, 2023
@thatmattlong thatmattlong requested review from a team as code owners July 25, 2023 21:53
@thatmattlong thatmattlong requested a review from rbtr July 25, 2023 21:53
@thatmattlong thatmattlong merged commit cc251ca into Azure:master Jul 26, 2023
@thatmattlong thatmattlong deleted the matlong/cni-reconcile-ignore-semver branch July 26, 2023 16:52
@thatmattlong thatmattlong mentioned this pull request Jul 28, 2023
4 tasks
thatmattlong added a commit that referenced this pull request Jul 31, 2023
* fix: assume invalid semver CNI has the required dump state command (#2078)

* fix: Updating the vmsize for e2e cilium to avoid resource scarcity (#2014)

CI: Testing the e2e test for cilium

---------

Co-authored-by: Vipul Singh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cns Related to CNS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants