Skip to content

Commit 9b71425

Browse files
authored
Merge pull request containerd#5643 from dcbw/15-cni-plugin-pod-uid
[release/1.5] sandbox: send pod UID to CNI plugins as K8S_POD_UID
2 parents 8098a6e + a2dc682 commit 9b71425

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cri/server/sandbox_run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ func toCNILabels(id string, config *runtime.PodSandboxConfig) map[string]string
409409
"K8S_POD_NAMESPACE": config.GetMetadata().GetNamespace(),
410410
"K8S_POD_NAME": config.GetMetadata().GetName(),
411411
"K8S_POD_INFRA_CONTAINER_ID": id,
412+
"K8S_POD_UID": config.GetMetadata().GetUid(),
412413
"IgnoreUnknown": "1",
413414
}
414415
}

0 commit comments

Comments
 (0)