containerd/pkg/cri
Dan Williams dac2543a07 sandbox: send pod UID to CNI plugins as K8S_POD_UID
CNI plugins that need to wait for network state to converge
may want to cancel waiting when a short lived pod is deleted.
However, there is a race between when kubelet asks the runtime
to create the sandbox for the pod, and when the plugin is able
request the pod object from the apiserver. It may be the case
that the plugin receives the new pod, rather than the pod
the sandbox request was initiated for.

Passing the pod UID to the plugin allows the plugin to check
whether the pod it gets from the apiserver is actually the
pod its sandbox request was started for.

Signed-off-by: Dan Williams <dcbw@redhat.com>
2021-06-22 22:53:30 -05:00
..
annotations [cri] add pod annotations to CNI call 2021-02-09 13:24:01 -05:00
config fixing some doc links 2021-06-21 18:24:47 -05:00
constants scrub the stale TODO 2021-06-01 11:22:15 +08:00
io optimize cri redirect logs 2021-04-09 11:45:53 +08:00
opts Support PID NamespaceMode_TARGET 2021-04-21 17:54:17 +02:00
platforms support multi-arch images for windows via ctr 2021-03-31 15:50:01 -07:00
server sandbox: send pod UID to CNI plugins as K8S_POD_UID 2021-06-22 22:53:30 -05:00
store go.mod: github.com/containerd/go-cni v1.0.2 2021-04-14 09:09:18 +02:00
streaming Refactor CRI packages 2020-10-07 14:45:57 -07:00
util Refactor pkg packages 2020-10-08 17:30:17 -07:00
cri.go Refactor pkg packages 2020-10-08 17:30:17 -07:00