Skip to content
Browse files

K8S_ANNOT not recognized by multus cni plugin

K8S_ANNOT option is only supported by CNI Genie but not by
other CNI plugins like Multus. IgnoreUnknown option is not added
to CNI call when pod id, name is missing because of which multus
raise an unknwon option error.

This patch adds IgnoreUnknown option even when pod id and name
are missing.
  • Loading branch information...
hemanthnakkina committed Jun 27, 2019
1 parent 5a0c02c commit c1880f37149547931832c0e77d5d853b164f150e
Showing with 4 additions and 0 deletions.
  1. +4 −0 pkg/cni/client.go
@@ -143,6 +143,10 @@ func (c *realClient) cniRuntimeConf(podID, podName, podNs string) *libcni.Runtim
{"K8S_POD_NAME", podName},
} else {
r.Args = [][2]string{
{"IgnoreUnknown", "1"},
return r

0 comments on commit c1880f3

Please sign in to comment.
You can’t perform that action at this time.