Skip to content

Commit

Permalink
Sets IgnoreUnknown=1 in CNI_ARGS
Browse files Browse the repository at this point in the history
K8 uses CNI_ARGS to pass pod namespace, name and infra container
id to the CNI network plugin. CNI logic will throw an error
if these args are not known to it, unless the user specifies
IgnoreUnknown as part of CNI_ARGS. This PR sets IgnoreUnknown=1
to prevent the CNI logic from erroring and blocking pod setup.
containernetworking/cni#158
containernetworking/cni#126
  • Loading branch information
Arvinderpal committed Apr 29, 2016
1 parent 4b1b291 commit dede4d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kubelet/network/cni/cni.go
Expand Up @@ -197,6 +197,7 @@ func buildCNIRuntimeConf(podName string, podNs string, podInfraContainerID kubec
NetNS: podNetnsPath,
IfName: network.DefaultInterfaceName,
Args: [][2]string{
{"IgnoreUnknown", "1"},
{"K8S_POD_NAMESPACE", podNs},
{"K8S_POD_NAME", podName},
{"K8S_POD_INFRA_CONTAINER_ID", podInfraContainerID.ID},
Expand Down

0 comments on commit dede4d5

Please sign in to comment.