@@ -27,10 +27,10 @@ import (
|
||||
|
||||
// ListContainers lists all containers matching the filter.
|
||||
func (c *criContainerdService) ListContainers(ctx context.Context, r *runtime.ListContainersRequest) (retRes *runtime.ListContainersResponse, retErr error) {
|
||||
glog.V(4).Infof("ListContainers with filter %+v", r.GetFilter())
|
||||
glog.V(5).Infof("ListContainers with filter %+v", r.GetFilter())
|
||||
defer func() {
|
||||
if retErr == nil {
|
||||
glog.V(4).Infof("ListContainers returns containers %+v", retRes.GetContainers())
|
||||
glog.V(5).Infof("ListContainers returns containers %+v", retRes.GetContainers())
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
@@ -28,10 +28,10 @@ import (
|
||||
|
||||
// ContainerStatus inspects the container and returns the status.
|
||||
func (c *criContainerdService) ContainerStatus(ctx context.Context, r *runtime.ContainerStatusRequest) (retRes *runtime.ContainerStatusResponse, retErr error) {
|
||||
glog.V(4).Infof("ContainerStatus for container %q", r.GetContainerId())
|
||||
glog.V(5).Infof("ContainerStatus for container %q", r.GetContainerId())
|
||||
defer func() {
|
||||
if retErr == nil {
|
||||
glog.V(4).Infof("ContainerStatus for %q returns status %+v", r.GetContainerId(), retRes.GetStatus())
|
||||
glog.V(5).Infof("ContainerStatus for %q returns status %+v", r.GetContainerId(), retRes.GetStatus())
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
@@ -28,10 +28,10 @@ import (
|
||||
// TODO(random-liu): Add image list filters after CRI defines this more clear, and kubelet
|
||||
// actually needs it.
|
||||
func (c *criContainerdService) ListImages(ctx context.Context, r *runtime.ListImagesRequest) (retRes *runtime.ListImagesResponse, retErr error) {
|
||||
glog.V(4).Infof("ListImages with filter %+v", r.GetFilter())
|
||||
glog.V(5).Infof("ListImages with filter %+v", r.GetFilter())
|
||||
defer func() {
|
||||
if retErr == nil {
|
||||
glog.V(4).Infof("ListImages returns image list %+v", retRes.GetImages())
|
||||
glog.V(5).Infof("ListImages returns image list %+v", retRes.GetImages())
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
@@ -28,10 +28,10 @@ import (
|
||||
// TODO(random-liu): We should change CRI to distinguish image id and image spec. (See
|
||||
// kubernetes/kubernetes#46255)
|
||||
func (c *criContainerdService) ImageStatus(ctx context.Context, r *runtime.ImageStatusRequest) (retRes *runtime.ImageStatusResponse, retErr error) {
|
||||
glog.V(4).Infof("ImageStatus for image %q", r.GetImage().GetImage())
|
||||
glog.V(5).Infof("ImageStatus for image %q", r.GetImage().GetImage())
|
||||
defer func() {
|
||||
if retErr == nil {
|
||||
glog.V(4).Infof("ImageStatus for %q returns image status %+v",
|
||||
glog.V(5).Infof("ImageStatus for %q returns image status %+v",
|
||||
r.GetImage().GetImage(), retRes.GetImage())
|
||||
}
|
||||
}()
|
||||
|
||||
@@ -30,10 +30,10 @@ import (
|
||||
|
||||
// ListPodSandbox returns a list of Sandbox.
|
||||
func (c *criContainerdService) ListPodSandbox(ctx context.Context, r *runtime.ListPodSandboxRequest) (retRes *runtime.ListPodSandboxResponse, retErr error) {
|
||||
glog.V(4).Infof("ListPodSandbox with filter %+v", r.GetFilter())
|
||||
glog.V(5).Infof("ListPodSandbox with filter %+v", r.GetFilter())
|
||||
defer func() {
|
||||
if retErr == nil {
|
||||
glog.V(4).Infof("ListPodSandbox returns sandboxes %+v", retRes.GetItems())
|
||||
glog.V(5).Infof("ListPodSandbox returns sandboxes %+v", retRes.GetItems())
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
@@ -31,10 +31,10 @@ import (
|
||||
|
||||
// PodSandboxStatus returns the status of the PodSandbox.
|
||||
func (c *criContainerdService) PodSandboxStatus(ctx context.Context, r *runtime.PodSandboxStatusRequest) (retRes *runtime.PodSandboxStatusResponse, retErr error) {
|
||||
glog.V(4).Infof("PodSandboxStatus for sandbox %q", r.GetPodSandboxId())
|
||||
glog.V(5).Infof("PodSandboxStatus for sandbox %q", r.GetPodSandboxId())
|
||||
defer func() {
|
||||
if retErr == nil {
|
||||
glog.V(4).Infof("PodSandboxStatus for %q returns status %+v", r.GetPodSandboxId(), retRes.GetStatus())
|
||||
glog.V(5).Infof("PodSandboxStatus for %q returns status %+v", r.GetPodSandboxId(), retRes.GetStatus())
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user