Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

Support weave network plugin #217

Merged
merged 1 commit into from
Aug 23, 2017
Merged

Conversation

feiskyer
Copy link
Contributor

Fix #216.

To use weave network plugin, run

  kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 23, 2017
@k8s-reviewable
Copy link

This change is Reviewable

@feiskyer
Copy link
Contributor Author

/cc @resouer

@@ -77,15 +77,20 @@ func (h *Runtime) RunPodSandbox(config *kubeapi.PodSandboxConfig) (string, error
"portMappings": portMappingsParam,
}
podId := userpod.Id
_, err = h.netPlugin.SetUpPod(netNsPath, podId, config.GetMetadata(), config.GetAnnotations(), capabilities)
sandboxID := podId
// workaroud for weave netwprk plugin because it creates a veth pair based on a truncated sandboxID.
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: netwprk -> network

@@ -291,7 +296,12 @@ func (h *Runtime) StopPodSandbox(podSandboxID string) error {
}

// 4: tear down the cni network.
err = h.netPlugin.TearDownPod(netNsPath, podSandboxID, status.GetMetadata(), status.GetAnnotations(), capabilities)
sandboxID := podSandboxID
// workaroud for weave netwprk plugin because it creates a veth pair based on a truncated sandboxID.
Copy link
Contributor

Choose a reason for hiding this comment

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

same typo

To use weave network plugin, run

  kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
@feiskyer
Copy link
Contributor Author

@resouer Fixed typo. PTAL

@resouer
Copy link
Contributor

resouer commented Aug 23, 2017

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 23, 2017
@resouer resouer merged commit b417a6b into kubernetes-retired:master Aug 23, 2017
@feiskyer feiskyer mentioned this pull request Sep 27, 2017
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants