簡體   English   中英

如何在容器運行時接口界面上獲取PullImageRequest中的PodSandboxConfig對象

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM