[英]How to get PodSandboxConfig object in PullImageRequest on container runtime interface interface
我正在为 Kubernetes 开发一个新的 CRI,我想在 PullImage 方法中获得有关 pod 配置的信息,但PullImageRequest
始终包含值为 nil 的沙箱配置。
如您所见,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"`
}
我正在与
Kubernetes 1.11.3
和
cri/运行时/v1alpha2
如何获取 PodSandboxConfig 对象?
谢谢
我在 Kubernetes github 上创建了一个关于它的问题,他们正在这个pull request中处理它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.