[英]How to get PodSandboxConfig object in PullImageRequest on container runtime interface interface
I'm working on a new CRI for Kubernetes and I would like to have information about the pod configuration in the PullImage method, but PullImageRequest
always contains the sandbox configuration with nil value.我正在为 Kubernetes 开发一个新的 CRI,我想在 PullImage 方法中获得有关 pod 配置的信息,但
PullImageRequest
始终包含值为 nil 的沙箱配置。
As you can see, PullImageRequest contains a PodSanboxConfig object:如您所见,PullImageRequest 包含一个 PodSanboxConfig 对象:
type PullImageRequest struct {
// Spec of the image.
Image *ImageSpec `protobuf:"bytes,1,opt,name=image" json:"image,omitempty"`
// Authentication configuration for pulling the image.
Auth *AuthConfig `protobuf:"bytes,2,opt,name=auth" json:"auth,omitempty"`
// Config of the PodSandbox, which is used to pull image in PodSandbox context.
SandboxConfig *PodSandboxConfig `protobuf:"bytes,3,opt,name=sandbox_config,json=sandboxConfig" json:"sandbox_config,omitempty"`
}
I'm working with我正在与
Kubernetes 1.11.3
Kubernetes 1.11.3
and和
cri/runtime/v1alpha2
cri/运行时/v1alpha2
How can I do to get the PodSandboxConfig object?如何获取 PodSandboxConfig 对象?
Thanks谢谢
我在 Kubernetes github 上创建了一个关于它的问题,他们正在这个pull request中处理它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.