Merge pull request #165 from mrunalp/api_version

Set the version to what kubelet expects
This commit is contained in:
Antonio Murdaca 2016-10-20 21:25:52 +02:00 committed by GitHub
commit e14e6c7cfc

View file

@ -1,8 +1,8 @@
package server
import (
pb "k8s.io/kubernetes/pkg/kubelet/api/v1alpha1/runtime"
"golang.org/x/net/context"
pb "k8s.io/kubernetes/pkg/kubelet/api/v1alpha1/runtime"
)
// Version returns the runtime name, runtime version and runtime API version
@ -17,6 +17,9 @@ func (s *Server) Version(ctx context.Context, req *pb.VersionRequest) (*pb.Versi
return nil, err
}
// TODO: Track upstream code. For now it expects 0.1.0
version = "0.1.0"
// taking const address
rav := runtimeAPIVersion
runtimeName := s.runtime.Name()