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

support disabling default cni #530

Merged
merged 2 commits into from
May 15, 2019

Conversation

BenTheElder
Copy link
Member

fixes #205 (though perhaps we need to follow up with docs 🙃 )

With this feature, users can skip the CNI installation and instead install their own CNI using the usual mechanisms (kubectl apply -f my-cni-manifest.yaml ...). This is an advanced use case and not strongly supported, but should be available. It seems a number of projects have found installing / testing their own CNI useful, and this makes it easier to do without poking at kind's internals 😉

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 15, 2019
@k8s-ci-robot k8s-ci-robot requested review from amwat and neolit123 May 15, 2019 00:53
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: BenTheElder

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 15, 2019
// this step might be skipped, but is next after init
if !cfg.Networking.DisableDefaultCNI {
actionsToRun = append(actionsToRun,
installcni.NewAction(), // install CNI
Copy link
Member Author

Choose a reason for hiding this comment

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

we could alternatively guard against this inside the action, I'm not sure this detail is important currently though as both are wholly internal to kind and should have roughly the same effect, but that might be a better refactor in the future.

@BenTheElder
Copy link
Member Author

cc @mauilion @aojea :-)

@BenTheElder BenTheElder added this to the 0.3 milestone May 15, 2019
@aojea
Copy link
Contributor

aojea commented May 15, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 15, 2019
@k8s-ci-robot k8s-ci-robot merged commit b4465e9 into kubernetes-sigs:master May 15, 2019
@BenTheElder BenTheElder deleted the disable-default-cni branch May 15, 2019 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support for custom CNIs
3 participants