From 2cfc85c8b300c5a727f7caebc8530a8db4e96c43 Mon Sep 17 00:00:00 2001 From: Arnav Sankaran Date: Mon, 15 Jul 2019 09:04:22 -0700 Subject: [PATCH] Fix compile on non windows linux systems --- pkg/kubelet/dockershim/docker_stats_unsupported.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pkg/kubelet/dockershim/docker_stats_unsupported.go b/pkg/kubelet/dockershim/docker_stats_unsupported.go index 751624cfb1f..736215a9d64 100644 --- a/pkg/kubelet/dockershim/docker_stats_unsupported.go +++ b/pkg/kubelet/dockershim/docker_stats_unsupported.go @@ -19,18 +19,11 @@ limitations under the License. package dockershim import ( - "context" "fmt" runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1alpha2" ) -// ContainerStats returns stats for a container stats request based on container id. -func (ds *dockerService) ContainerStats(_ context.Context, r *runtimeapi.ContainerStatsRequest) (*runtimeapi.ContainerStatsResponse, error) { - return nil, fmt.Errorf("not implemented") -} - -// ListContainerStats returns stats for a list container stats request based on a filter. -func (ds *dockerService) ListContainerStats(_ context.Context, r *runtimeapi.ListContainerStatsRequest) (*runtimeapi.ListContainerStatsResponse, error) { +func (ds *dockerService) getContainerStats(containerID string) (*runtimeapi.ContainerStats, error) { return nil, fmt.Errorf("not implemented") }