Skip to content

Commit 03bfcd8

Browse files
authored
Merge pull request #5640 from dcbw/cni-plugin-pod-uid
sandbox: send pod UID to CNI plugins as K8S_POD_UID
2 parents 0396089 + dac2543 commit 03bfcd8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)