mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
CRI: clarify the behavior of PodSandboxStatus and ContainerStatus
This commit is contained in:
parent
f4b1968b91
commit
87a8833fa5
@ -2937,7 +2937,8 @@ type RuntimeServiceClient interface {
|
|||||||
// This call is idempotent, and must not return an error if the sandbox has
|
// This call is idempotent, and must not return an error if the sandbox has
|
||||||
// already been removed.
|
// already been removed.
|
||||||
RemovePodSandbox(ctx context.Context, in *RemovePodSandboxRequest, opts ...grpc.CallOption) (*RemovePodSandboxResponse, error)
|
RemovePodSandbox(ctx context.Context, in *RemovePodSandboxRequest, opts ...grpc.CallOption) (*RemovePodSandboxResponse, error)
|
||||||
// PodSandboxStatus returns the status of the PodSandbox.
|
// PodSandboxStatus returns the status of the PodSandbox. If the PodSandbox is not
|
||||||
|
// present, returns an error.
|
||||||
PodSandboxStatus(ctx context.Context, in *PodSandboxStatusRequest, opts ...grpc.CallOption) (*PodSandboxStatusResponse, error)
|
PodSandboxStatus(ctx context.Context, in *PodSandboxStatusRequest, opts ...grpc.CallOption) (*PodSandboxStatusResponse, error)
|
||||||
// ListPodSandbox returns a list of PodSandboxes.
|
// ListPodSandbox returns a list of PodSandboxes.
|
||||||
ListPodSandbox(ctx context.Context, in *ListPodSandboxRequest, opts ...grpc.CallOption) (*ListPodSandboxResponse, error)
|
ListPodSandbox(ctx context.Context, in *ListPodSandboxRequest, opts ...grpc.CallOption) (*ListPodSandboxResponse, error)
|
||||||
@ -2957,7 +2958,8 @@ type RuntimeServiceClient interface {
|
|||||||
RemoveContainer(ctx context.Context, in *RemoveContainerRequest, opts ...grpc.CallOption) (*RemoveContainerResponse, error)
|
RemoveContainer(ctx context.Context, in *RemoveContainerRequest, opts ...grpc.CallOption) (*RemoveContainerResponse, error)
|
||||||
// ListContainers lists all containers by filters.
|
// ListContainers lists all containers by filters.
|
||||||
ListContainers(ctx context.Context, in *ListContainersRequest, opts ...grpc.CallOption) (*ListContainersResponse, error)
|
ListContainers(ctx context.Context, in *ListContainersRequest, opts ...grpc.CallOption) (*ListContainersResponse, error)
|
||||||
// ContainerStatus returns status of the container.
|
// ContainerStatus returns status of the container. If the container is not
|
||||||
|
// present, returns an error.
|
||||||
ContainerStatus(ctx context.Context, in *ContainerStatusRequest, opts ...grpc.CallOption) (*ContainerStatusResponse, error)
|
ContainerStatus(ctx context.Context, in *ContainerStatusRequest, opts ...grpc.CallOption) (*ContainerStatusResponse, error)
|
||||||
// ExecSync runs a command in a container synchronously.
|
// ExecSync runs a command in a container synchronously.
|
||||||
ExecSync(ctx context.Context, in *ExecSyncRequest, opts ...grpc.CallOption) (*ExecSyncResponse, error)
|
ExecSync(ctx context.Context, in *ExecSyncRequest, opts ...grpc.CallOption) (*ExecSyncResponse, error)
|
||||||
@ -3166,7 +3168,8 @@ type RuntimeServiceServer interface {
|
|||||||
// This call is idempotent, and must not return an error if the sandbox has
|
// This call is idempotent, and must not return an error if the sandbox has
|
||||||
// already been removed.
|
// already been removed.
|
||||||
RemovePodSandbox(context.Context, *RemovePodSandboxRequest) (*RemovePodSandboxResponse, error)
|
RemovePodSandbox(context.Context, *RemovePodSandboxRequest) (*RemovePodSandboxResponse, error)
|
||||||
// PodSandboxStatus returns the status of the PodSandbox.
|
// PodSandboxStatus returns the status of the PodSandbox. If the PodSandbox is not
|
||||||
|
// present, returns an error.
|
||||||
PodSandboxStatus(context.Context, *PodSandboxStatusRequest) (*PodSandboxStatusResponse, error)
|
PodSandboxStatus(context.Context, *PodSandboxStatusRequest) (*PodSandboxStatusResponse, error)
|
||||||
// ListPodSandbox returns a list of PodSandboxes.
|
// ListPodSandbox returns a list of PodSandboxes.
|
||||||
ListPodSandbox(context.Context, *ListPodSandboxRequest) (*ListPodSandboxResponse, error)
|
ListPodSandbox(context.Context, *ListPodSandboxRequest) (*ListPodSandboxResponse, error)
|
||||||
@ -3186,7 +3189,8 @@ type RuntimeServiceServer interface {
|
|||||||
RemoveContainer(context.Context, *RemoveContainerRequest) (*RemoveContainerResponse, error)
|
RemoveContainer(context.Context, *RemoveContainerRequest) (*RemoveContainerResponse, error)
|
||||||
// ListContainers lists all containers by filters.
|
// ListContainers lists all containers by filters.
|
||||||
ListContainers(context.Context, *ListContainersRequest) (*ListContainersResponse, error)
|
ListContainers(context.Context, *ListContainersRequest) (*ListContainersResponse, error)
|
||||||
// ContainerStatus returns status of the container.
|
// ContainerStatus returns status of the container. If the container is not
|
||||||
|
// present, returns an error.
|
||||||
ContainerStatus(context.Context, *ContainerStatusRequest) (*ContainerStatusResponse, error)
|
ContainerStatus(context.Context, *ContainerStatusRequest) (*ContainerStatusResponse, error)
|
||||||
// ExecSync runs a command in a container synchronously.
|
// ExecSync runs a command in a container synchronously.
|
||||||
ExecSync(context.Context, *ExecSyncRequest) (*ExecSyncResponse, error)
|
ExecSync(context.Context, *ExecSyncRequest) (*ExecSyncResponse, error)
|
||||||
|
@ -36,7 +36,8 @@ service RuntimeService {
|
|||||||
// This call is idempotent, and must not return an error if the sandbox has
|
// This call is idempotent, and must not return an error if the sandbox has
|
||||||
// already been removed.
|
// already been removed.
|
||||||
rpc RemovePodSandbox(RemovePodSandboxRequest) returns (RemovePodSandboxResponse) {}
|
rpc RemovePodSandbox(RemovePodSandboxRequest) returns (RemovePodSandboxResponse) {}
|
||||||
// PodSandboxStatus returns the status of the PodSandbox.
|
// PodSandboxStatus returns the status of the PodSandbox. If the PodSandbox is not
|
||||||
|
// present, returns an error.
|
||||||
rpc PodSandboxStatus(PodSandboxStatusRequest) returns (PodSandboxStatusResponse) {}
|
rpc PodSandboxStatus(PodSandboxStatusRequest) returns (PodSandboxStatusResponse) {}
|
||||||
// ListPodSandbox returns a list of PodSandboxes.
|
// ListPodSandbox returns a list of PodSandboxes.
|
||||||
rpc ListPodSandbox(ListPodSandboxRequest) returns (ListPodSandboxResponse) {}
|
rpc ListPodSandbox(ListPodSandboxRequest) returns (ListPodSandboxResponse) {}
|
||||||
@ -57,7 +58,8 @@ service RuntimeService {
|
|||||||
rpc RemoveContainer(RemoveContainerRequest) returns (RemoveContainerResponse) {}
|
rpc RemoveContainer(RemoveContainerRequest) returns (RemoveContainerResponse) {}
|
||||||
// ListContainers lists all containers by filters.
|
// ListContainers lists all containers by filters.
|
||||||
rpc ListContainers(ListContainersRequest) returns (ListContainersResponse) {}
|
rpc ListContainers(ListContainersRequest) returns (ListContainersResponse) {}
|
||||||
// ContainerStatus returns status of the container.
|
// ContainerStatus returns status of the container. If the container is not
|
||||||
|
// present, returns an error.
|
||||||
rpc ContainerStatus(ContainerStatusRequest) returns (ContainerStatusResponse) {}
|
rpc ContainerStatus(ContainerStatusRequest) returns (ContainerStatusResponse) {}
|
||||||
|
|
||||||
// ExecSync runs a command in a container synchronously.
|
// ExecSync runs a command in a container synchronously.
|
||||||
|
Loading…
Reference in New Issue
Block a user