-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
cni-(un)install: don't touch CNI dir if CILIUM_CUSTOM_CNI_CONF is set #14910
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ti-mo
added
kind/bug
This is a bug in the Cilium logic.
area/cni
Impacts the Container Networking Interface between Cilium and the orchestrator.
labels
Feb 9, 2021
maintainer-s-little-helper
bot
added
the
dont-merge/needs-release-note-label
The author needs to describe the release impact of these changes.
label
Feb 9, 2021
ti-mo
added
the
release-note/bug
This PR fixes an issue in a previous release of Cilium.
label
Feb 9, 2021
maintainer-s-little-helper
bot
removed
the
dont-merge/needs-release-note-label
The author needs to describe the release impact of these changes.
label
Feb 9, 2021
joestringer
approved these changes
Feb 9, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of comments, minor nits on the wording to be a little more formal.
Is this a bug in a released version of Cilium or only in master? If the latter, maybe |
ti-mo
added
release-note/minor
This PR changes functionality that users may find relevant to operating Cilium.
and removed
release-note/bug
This PR fixes an issue in a previous release of Cilium.
labels
Feb 10, 2021
ti-mo
force-pushed
the
pr/tb/custom-cni-conf
branch
from
February 10, 2021 09:12
5042400
to
68c4438
Compare
aanm
approved these changes
Feb 11, 2021
nathanjsweet
approved these changes
Mar 4, 2021
ti-mo
force-pushed
the
pr/tb/custom-cni-conf
branch
from
March 5, 2021 14:50
68c4438
to
32c06d1
Compare
Fixes cilium#14838. Setting CILIUM_CUSTOM_CNI_CONF on the container now provides full control for the user to manage their own CNI configs. The cilium-cni binary is still installed during agent startup unconditionally. This patch makes CILIUM_CUSTOM_CNI_CONF skip the CNI exclusivity behaiour as well as the Cilium config removal during both startup and shutdown. The agent can still be used with `--read-cni-conf` and `--write-cni-conf-..`. Signed-off-by: Timo Beckers <timo@isovalent.com>
Provide clearer workarounds for the change of behaviour. Link to the PR that introduced it since it links to relevant issues. Signed-off-by: Timo Beckers <timo@isovalent.com>
ti-mo
force-pushed
the
pr/tb/custom-cni-conf
branch
from
March 5, 2021 14:51
32c06d1
to
85fd528
Compare
ti-mo
added
the
ready-to-merge
This PR has passed all tests and received consensus from code owners to merge.
label
Mar 5, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/cni
Impacts the Container Networking Interface between Cilium and the orchestrator.
kind/bug
This is a bug in the Cilium logic.
ready-to-merge
This PR has passed all tests and received consensus from code owners to merge.
release-note/minor
This PR changes functionality that users may find relevant to operating Cilium.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes: #14838.
See commit messages. I've created a blueprint with a more structural rework to improve this long-term: #14892.
@joestringer Please give some feedback about the upgrade notes. Not sure if this warrants a more drastic
Breaking Changes
section, although users that hadcni.customConf
set before will see consistent behaviour between 1.9 and 1.10.Also, this should fix microk8s without requiring any further changes there, since
cni.customConf
setsCILIUM_CUSTOM_CNI_CONF=true
on the container. (might also want to remove theglobal.
prefix from Helm options in the install script there)Thanks @mvisonneau!