@@ -49,7 +49,6 @@ import (
4949
5050 v1 "k8s.io/api/core/v1"
5151 runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
52- runtimeapi_alpha "k8s.io/cri-api/v1alpha2/pkg/apis/runtime/v1alpha2"
5352)
5453
5554const (
@@ -78,12 +77,6 @@ const (
7877 defaultCgroupDriver = "cgroupfs"
7978)
8079
81- // v1AlphaCRIService provides the interface necessary for cri.v1alpha2
82- type v1AlphaCRIService interface {
83- runtimeapi_alpha.RuntimeServiceServer
84- runtimeapi_alpha.ImageServiceServer
85- }
86-
8780// CRIService includes all methods necessary for a CRI backend.
8881type CRIService interface {
8982 runtimeapi.RuntimeServiceServer
@@ -294,17 +287,6 @@ type dockerService struct {
294287 // runtimeInfoLock sync.RWMutex
295288}
296289
297- type dockerServiceAlpha struct {
298- ds DockerService
299-
300- // This handles unimplemented methods unless cri-dockerd overrides them
301- runtimeapi_alpha.UnimplementedRuntimeServiceServer
302- }
303-
304- func NewDockerServiceAlpha (ds DockerService ) v1AlphaCRIService {
305- return & dockerServiceAlpha {ds : ds }
306- }
307-
308290// Version returns the runtime name, runtime version and runtime API version
309291func (ds * dockerService ) Version (
310292 _ context.Context ,
@@ -322,22 +304,6 @@ func (ds *dockerService) Version(
322304 }, nil
323305}
324306
325- func (ds * dockerService ) AlphaVersion (
326- _ context.Context ,
327- r * runtimeapi.VersionRequest ,
328- ) (* runtimeapi_alpha.VersionResponse , error ) {
329- v , err := ds .getDockerVersion ()
330- if err != nil {
331- return nil , err
332- }
333- return & runtimeapi_alpha.VersionResponse {
334- Version : kubeAPIVersion ,
335- RuntimeName : dockerRuntimeName ,
336- RuntimeVersion : v .Version ,
337- RuntimeApiVersion : config .CRIVersionAlpha ,
338- }, nil
339- }
340-
341307// getDockerVersion gets the version information from docker.
342308func (ds * dockerService ) getDockerVersion () (* dockertypes.Version , error ) {
343309 res , err := ds .systemInfoCache .Memoize ("docker_version" , systemInfoCacheMinTTL , func () (interface {}, error ) {
0 commit comments