@@ -45,7 +45,6 @@ import (
4545
4646 v1 "k8s.io/api/core/v1"
4747 runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
48- runtimeapi_alpha "k8s.io/cri-api/v1alpha2/pkg/apis/runtime/v1alpha2"
4948)
5049
5150const (
@@ -74,12 +73,6 @@ const (
7473 defaultCgroupDriver = "cgroupfs"
7574)
7675
77- // v1AlphaCRIService provides the interface necessary for cri.v1alpha2
78- type v1AlphaCRIService interface {
79- runtimeapi_alpha.RuntimeServiceServer
80- runtimeapi_alpha.ImageServiceServer
81- }
82-
8376// CRIService includes all methods necessary for a CRI backend.
8477type CRIService interface {
8578 runtimeapi.RuntimeServiceServer
@@ -288,17 +281,6 @@ type dockerService struct {
288281 cleanupInfosLock sync.RWMutex
289282}
290283
291- type dockerServiceAlpha struct {
292- ds DockerService
293-
294- // This handles unimplemented methods unless cri-dockerd overrides them
295- runtimeapi_alpha.UnimplementedRuntimeServiceServer
296- }
297-
298- func NewDockerServiceAlpha (ds DockerService ) v1AlphaCRIService {
299- return & dockerServiceAlpha {ds : ds }
300- }
301-
302284// Version returns the runtime name, runtime version and runtime API version
303285func (ds * dockerService ) Version (
304286 _ context.Context ,
@@ -316,22 +298,6 @@ func (ds *dockerService) Version(
316298 }, nil
317299}
318300
319- func (ds * dockerService ) AlphaVersion (
320- _ context.Context ,
321- r * runtimeapi.VersionRequest ,
322- ) (* runtimeapi_alpha.VersionResponse , error ) {
323- v , err := ds .getDockerVersion ()
324- if err != nil {
325- return nil , err
326- }
327- return & runtimeapi_alpha.VersionResponse {
328- Version : kubeAPIVersion ,
329- RuntimeName : dockerRuntimeName ,
330- RuntimeVersion : v .Version ,
331- RuntimeApiVersion : config .CRIVersionAlpha ,
332- }, nil
333- }
334-
335301// getDockerVersion gets the version information from docker.
336302func (ds * dockerService ) getDockerVersion () (* dockertypes.Version , error ) {
337303 res , err := ds .systemInfoCache .Memoize ("docker_version" , systemInfoCacheMinTTL , func () (interface {}, error ) {
0 commit comments