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.
As you can see, PullImageRequest contains a PodSanboxConfig object:
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
and
cri/runtime/v1alpha2
How can I do to get the PodSandboxConfig object?
Thanks
我在 Kubernetes github 上创建了一个关于它的问题,他们正在这个pull request中处理它。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.