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

cni-(un)install: don't touch CNI dir if CILIUM_CUSTOM_CNI_CONF is set #14910

Merged
merged 2 commits into from
Mar 8, 2021

Conversation

ti-mo
Copy link
Contributor

@ti-mo ti-mo commented Feb 9, 2021

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 had cni.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 sets CILIUM_CUSTOM_CNI_CONF=true on the container. (might also want to remove the global. prefix from Helm options in the install script there)

cni-(un)install: don't touch CNI dir if CILIUM_CUSTOM_CNI_CONF is set

Thanks @mvisonneau!

@ti-mo 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
@ti-mo ti-mo requested a review from a team as a code owner February 9, 2021 16:18
@ti-mo ti-mo requested review from a team, joestringer and nathanjsweet February 9, 2021 16:18
@maintainer-s-little-helper 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 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 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
@maintainer-s-little-helper maintainer-s-little-helper bot added this to In progress in 1.10.0 Feb 9, 2021
Copy link
Member

@joestringer joestringer left a 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.

Documentation/operations/upgrade.rst Outdated Show resolved Hide resolved
Documentation/operations/upgrade.rst Outdated Show resolved Hide resolved
@joestringer
Copy link
Member

Is this a bug in a released version of Cilium or only in master? If the latter, maybe release-note/minor is a better label for this rather than release-note/bug.

@ti-mo 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
Documentation/spelling_wordlist.txt Show resolved Hide resolved
@joestringer joestringer moved this from Done to In progress in 1.10.0 Feb 12, 2021
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 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
@errordeveloper errordeveloper merged commit 31a98a8 into cilium:master Mar 8, 2021
1.10.0 automation moved this from In progress to Done Mar 8, 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.
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

cni-uninstall.sh now removes the config even if it is managed externally
5 participants