Revert "feat(*): add k8s version to version debug cmd"

This reverts commit 63be90dda5.
pull/2754/head
Sam Leavens 7 years ago
parent 63be90dda5
commit 3eeab04e0b

@ -8,13 +8,13 @@ dst = ../pkg/proto
target = go
plugins = grpc
chart_ias = $(subst $(space),$(comma),$(addsuffix =$(import_path)/$(chart_pkg),$(addprefix M,$(chart_pbs))))
chart_pbs = $(sort $(wildcard hapi/chart/*.proto))
chart_pkg = chart
chart_ias = $(subst $(space),$(comma),$(addsuffix =$(import_path)/$(chart_pkg),$(addprefix M,$(chart_pbs))))
chart_pbs = $(sort $(wildcard hapi/chart/*.proto))
chart_pkg = chart
release_ias = $(subst $(space),$(comma),$(addsuffix =$(import_path)/$(release_pkg),$(addprefix M,$(release_pbs))))
release_pbs = $(sort $(wildcard hapi/release/*.proto))
release_pkg = release
release_ias = $(subst $(space),$(comma),$(addsuffix =$(import_path)/$(release_pkg),$(addprefix M,$(release_pbs))))
release_pbs = $(sort $(wildcard hapi/release/*.proto))
release_pkg = release
services_ias = $(subst $(space),$(comma),$(addsuffix =$(import_path)/$(services_pkg),$(addprefix M,$(services_pbs))))
services_pbs = $(sort $(wildcard hapi/services/*.proto))
@ -24,18 +24,14 @@ rudder_ias = $(subst $(space),$(comma),$(addsuffix =$(import_path)/$(rudder_pkg)
rudder_pbs = $(sort $(wildcard hapi/rudder/*.proto))
rudder_pkg = rudder
version_ias = $(subst $(space),$(comma),$(addsuffix =$(import_path)/$(version_pkg),$(addprefix M,$(version_pbs))))
version_pbs = $(sort $(wildcard hapi/version/*.proto))
version_pkg = version
kube_ias = $(subst $(space),$(comma),$(addsuffix =$(import_path)/$(kube_pkg),$(addprefix M,$(kube_pbs))))
kube_pbs = $(sort $(wildcard hapi/kube/*.proto))
kube_pkg = kube
version_ias = $(subst $(space),$(comma),$(addsuffix =$(import_path)/$(version_pkg),$(addprefix M,$(version_pbs))))
version_pbs = $(sort $(wildcard hapi/version/*.proto))
version_pkg = version
google_deps = Mgoogle/protobuf/timestamp.proto=github.com/golang/protobuf/ptypes/timestamp,Mgoogle/protobuf/any.proto=github.com/golang/protobuf/ptypes/any
.PHONY: all
all: chart release services rudder version kube
all: chart release services rudder version
.PHONY: chart
chart:
@ -57,10 +53,6 @@ rudder:
version:
PATH=../bin:$(PATH) protoc --$(target)_out=plugins=$(plugins),$(google_deps):$(dst) $(version_pbs)
.PHONY: kube
kube:
PATH=../bin:$(PATH) protoc --$(target)_out=plugins=$(plugins),$(google_deps):$(dst) $(kube_pbs)
.PHONY: clean
clean:
@rm -rf $(dst)/hapi 2>/dev/null

@ -1,25 +0,0 @@
// Copyright 2017 The Kubernetes Authors All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package hapi.kube;
import "hapi/kube/version.proto";
option go_package = "kube";
message Info {
hapi.kube.Version Version = 1;
}

@ -1,31 +0,0 @@
// Copyright 2017 The Kubernetes Authors All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package hapi.kube;
option go_package = "kube";
message Version {
string major = 1;
string minor = 2;
string git_version = 3;
string git_commit = 4;
string git_tree_state = 5;
string build_date = 6;
string go_version = 7;
string compiler = 8;
string platform = 9;
}

@ -23,7 +23,6 @@ import "hapi/release/info.proto";
import "hapi/release/test_run.proto";
import "hapi/release/status.proto";
import "hapi/version/version.proto";
import "hapi/kube/info.proto";
option go_package = "services";
@ -86,11 +85,6 @@ service ReleaseService {
}
}
service InfoService {
rpc GetKubeInfo(GetKubeInfoRequest) returns (GetKubeInfoResponse) {
}
}
// ListReleasesRequest requests a list of releases.
//
// Releases can be retrieved in chunks by setting limit and offset.
@ -339,11 +333,5 @@ message TestReleaseRequest {
message TestReleaseResponse {
string msg = 1;
hapi.release.TestRun.Status status = 2;
}
message GetKubeInfoRequest {
}
message GetKubeInfoResponse {
hapi.kube.Info Info = 1;
}

@ -71,9 +71,9 @@ func newVersionCmd(c helm.Interface, out io.Writer) *cobra.Command {
if !version.showClient && !version.showServer {
version.showClient, version.showServer = true, true
}
if version.showServer || settings.Debug {
if version.showServer {
// We do this manually instead of in PreRun because we only
// need a tunnel if server version or debug is requested.
// need a tunnel if server version is requested.
setupConnection(cmd, args)
}
version.client = ensureHelmClient(version.client)
@ -89,17 +89,6 @@ func newVersionCmd(c helm.Interface, out io.Writer) *cobra.Command {
}
func (v *versionCmd) run() error {
if settings.Debug {
resp, err := v.client.GetKubeInfo()
if err != nil {
if grpc.Code(err) == codes.Unimplemented {
return errors.New("server is too old to know kubernetes info")
}
debug("%s", err)
return errors.New("cannot connect to Tiller")
}
debug("Kubernetes: %+v\n", resp.Info)
}
if v.showClient {
cv := version.GetVersionProto()

@ -171,14 +171,6 @@ func start() {
}
}()
go func() {
svc := tiller.NewInfoServer(env, clientset)
services.RegisterInfoServiceServer(rootServer, svc)
if err := rootServer.Serve(lstn); err != nil {
srvErrCh <- err
}
}()
go func() {
mux := newProbesMux()

@ -197,19 +197,6 @@ func (h *Client) GetVersion(opts ...VersionOption) (*rls.GetVersionResponse, err
return h.version(ctx, req)
}
// GetKubeInfo returns the kubernetes server information.
func (h *Client) GetKubeInfo() (*rls.GetKubeInfoResponse, error) {
req := &rls.GetKubeInfoRequest{}
ctx := NewContext()
if h.opts.before != nil {
if err := h.opts.before(ctx, req); err != nil {
return nil, err
}
}
return h.kubeInfo(ctx, req)
}
// RollbackRelease rolls back a release to the previous version.
func (h *Client) RollbackRelease(rlsName string, opts ...RollbackOption) (*rls.RollbackReleaseResponse, error) {
for _, opt := range opts {
@ -416,17 +403,6 @@ func (h *Client) version(ctx context.Context, req *rls.GetVersionRequest) (*rls.
return rlc.GetVersion(ctx, req)
}
func (h *Client) kubeInfo(ctx context.Context, req *rls.GetKubeInfoRequest) (*rls.GetKubeInfoResponse, error) {
c, err := h.connect(ctx)
if err != nil {
return nil, err
}
defer c.Close()
rlc := rls.NewInfoServiceClient(c)
return rlc.GetKubeInfo(ctx, req)
}
// Executes tiller.GetHistory RPC.
func (h *Client) history(ctx context.Context, req *rls.GetHistoryRequest) (*rls.GetHistoryResponse, error) {
c, err := h.connect(ctx)

@ -21,7 +21,6 @@ import (
"sync"
"k8s.io/helm/pkg/proto/hapi/chart"
"k8s.io/helm/pkg/proto/hapi/kube"
"k8s.io/helm/pkg/proto/hapi/release"
rls "k8s.io/helm/pkg/proto/hapi/services"
"k8s.io/helm/pkg/proto/hapi/version"
@ -79,25 +78,6 @@ func (c *FakeClient) GetVersion(opts ...VersionOption) (*rls.GetVersionResponse,
}, nil
}
// GetKubeInfo returns fake kubernetes server information
func (c *FakeClient) GetKubeInfo() (*rls.GetKubeInfoResponse, error) {
return &rls.GetKubeInfoResponse{
Info: &kube.Info{
Version: &kube.Version{
Major: "0",
Minor: "1",
GitVersion: "2",
GitCommit: "3",
GitTreeState: "4",
BuildDate: "5",
GoVersion: "6",
Compiler: "7",
Platform: "8",
},
},
}, nil
}
// UpdateReleaseFromChart returns nil, nil
func (c *FakeClient) UpdateReleaseFromChart(rlsName string, chart *chart.Chart, opts ...UpdateOption) (*rls.UpdateReleaseResponse, error) {
return nil, nil

@ -34,6 +34,5 @@ type Interface interface {
ReleaseContent(rlsName string, opts ...ContentOption) (*rls.GetReleaseContentResponse, error)
ReleaseHistory(rlsName string, opts ...HistoryOption) (*rls.GetHistoryResponse, error)
GetVersion(opts ...VersionOption) (*rls.GetVersionResponse, error)
GetKubeInfo() (*rls.GetKubeInfoResponse, error)
RunReleaseTest(rlsName string, opts ...ReleaseTestOption) (<-chan *rls.TestReleaseResponse, <-chan error)
}

@ -1,6 +1,5 @@
// Code generated by protoc-gen-go.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hapi/chart/chart.proto
// DO NOT EDIT!
/*
Package chart is a generated protocol buffer package.

@ -1,6 +1,5 @@
// Code generated by protoc-gen-go.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hapi/chart/config.proto
// DO NOT EDIT!
package chart

@ -1,6 +1,5 @@
// Code generated by protoc-gen-go.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hapi/chart/metadata.proto
// DO NOT EDIT!
package chart

@ -1,6 +1,5 @@
// Code generated by protoc-gen-go.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hapi/chart/template.proto
// DO NOT EDIT!
package chart

@ -1,64 +0,0 @@
// Code generated by protoc-gen-go.
// source: hapi/kube/info.proto
// DO NOT EDIT!
/*
Package kube is a generated protocol buffer package.
It is generated from these files:
hapi/kube/info.proto
hapi/kube/version.proto
It has these top-level messages:
Info
Version
*/
package kube
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Info struct {
Version *Version `protobuf:"bytes,1,opt,name=Version" json:"Version,omitempty"`
}
func (m *Info) Reset() { *m = Info{} }
func (m *Info) String() string { return proto.CompactTextString(m) }
func (*Info) ProtoMessage() {}
func (*Info) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Info) GetVersion() *Version {
if m != nil {
return m.Version
}
return nil
}
func init() {
proto.RegisterType((*Info)(nil), "hapi.kube.Info")
}
func init() { proto.RegisterFile("hapi/kube/info.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 109 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xc9, 0x48, 0x2c, 0xc8,
0xd4, 0xcf, 0x2e, 0x4d, 0x4a, 0xd5, 0xcf, 0xcc, 0x4b, 0xcb, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9,
0x17, 0xe2, 0x04, 0x89, 0xea, 0x81, 0x44, 0xa5, 0xc4, 0x11, 0x0a, 0xca, 0x52, 0x8b, 0x8a, 0x33,
0xf3, 0xf3, 0x20, 0x6a, 0x94, 0x4c, 0xb8, 0x58, 0x3c, 0xf3, 0xd2, 0xf2, 0x85, 0x74, 0xb8, 0xd8,
0xc3, 0x20, 0x12, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0xdc, 0x46, 0x42, 0x7a, 0x70, 0xdd, 0x7a, 0x50,
0x99, 0x20, 0x98, 0x12, 0x27, 0xb6, 0x28, 0x16, 0x90, 0x44, 0x12, 0x1b, 0xd8, 0x10, 0x63, 0x40,
0x00, 0x00, 0x00, 0xff, 0xff, 0x9c, 0x44, 0x5d, 0xcd, 0x80, 0x00, 0x00, 0x00,
}

@ -1,119 +0,0 @@
// Code generated by protoc-gen-go.
// source: hapi/kube/version.proto
// DO NOT EDIT!
package kube
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type Version struct {
Major string `protobuf:"bytes,1,opt,name=major" json:"major,omitempty"`
Minor string `protobuf:"bytes,2,opt,name=minor" json:"minor,omitempty"`
GitVersion string `protobuf:"bytes,3,opt,name=git_version,json=gitVersion" json:"git_version,omitempty"`
GitCommit string `protobuf:"bytes,4,opt,name=git_commit,json=gitCommit" json:"git_commit,omitempty"`
GitTreeState string `protobuf:"bytes,5,opt,name=git_tree_state,json=gitTreeState" json:"git_tree_state,omitempty"`
BuildDate string `protobuf:"bytes,6,opt,name=build_date,json=buildDate" json:"build_date,omitempty"`
GoVersion string `protobuf:"bytes,7,opt,name=go_version,json=goVersion" json:"go_version,omitempty"`
Compiler string `protobuf:"bytes,8,opt,name=compiler" json:"compiler,omitempty"`
Platform string `protobuf:"bytes,9,opt,name=platform" json:"platform,omitempty"`
}
func (m *Version) Reset() { *m = Version{} }
func (m *Version) String() string { return proto.CompactTextString(m) }
func (*Version) ProtoMessage() {}
func (*Version) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
func (m *Version) GetMajor() string {
if m != nil {
return m.Major
}
return ""
}
func (m *Version) GetMinor() string {
if m != nil {
return m.Minor
}
return ""
}
func (m *Version) GetGitVersion() string {
if m != nil {
return m.GitVersion
}
return ""
}
func (m *Version) GetGitCommit() string {
if m != nil {
return m.GitCommit
}
return ""
}
func (m *Version) GetGitTreeState() string {
if m != nil {
return m.GitTreeState
}
return ""
}
func (m *Version) GetBuildDate() string {
if m != nil {
return m.BuildDate
}
return ""
}
func (m *Version) GetGoVersion() string {
if m != nil {
return m.GoVersion
}
return ""
}
func (m *Version) GetCompiler() string {
if m != nil {
return m.Compiler
}
return ""
}
func (m *Version) GetPlatform() string {
if m != nil {
return m.Platform
}
return ""
}
func init() {
proto.RegisterType((*Version)(nil), "hapi.kube.Version")
}
func init() { proto.RegisterFile("hapi/kube/version.proto", fileDescriptor1) }
var fileDescriptor1 = []byte{
// 229 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x90, 0xcd, 0x4a, 0x03, 0x51,
0x0c, 0x85, 0x69, 0x6d, 0xa7, 0x9d, 0x28, 0x2e, 0x06, 0xc1, 0x8b, 0x20, 0x8a, 0xb8, 0x70, 0xd5,
0x2e, 0x7c, 0x03, 0xf5, 0x09, 0x54, 0x5c, 0xb8, 0x19, 0x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, 0x48, 0x01, 0x00, 0x00,
}

@ -1,6 +1,5 @@
// Code generated by protoc-gen-go.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hapi/release/hook.proto
// DO NOT EDIT!
/*
Package release is a generated protocol buffer package.

@ -1,6 +1,5 @@
// Code generated by protoc-gen-go.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hapi/release/info.proto
// DO NOT EDIT!
package release

@ -1,6 +1,5 @@
// Code generated by protoc-gen-go.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hapi/release/release.proto
// DO NOT EDIT!
package release

@ -1,6 +1,5 @@
// Code generated by protoc-gen-go.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hapi/release/status.proto
// DO NOT EDIT!
package release

@ -1,6 +1,5 @@
// Code generated by protoc-gen-go.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hapi/release/test_run.proto
// DO NOT EDIT!
package release

@ -1,6 +1,5 @@
// Code generated by protoc-gen-go.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hapi/release/test_suite.proto
// DO NOT EDIT!
package release

@ -1,6 +1,5 @@
// Code generated by protoc-gen-go.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hapi/rudder/rudder.proto
// DO NOT EDIT!
/*
Package rudder is a generated protocol buffer package.

@ -1,6 +1,5 @@
// Code generated by protoc-gen-go.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hapi/services/tiller.proto
// DO NOT EDIT!
/*
Package services is a generated protocol buffer package.
@ -30,8 +29,6 @@ It has these top-level messages:
GetHistoryResponse
TestReleaseRequest
TestReleaseResponse
GetKubeInfoRequest
GetKubeInfoResponse
*/
package services
@ -45,7 +42,6 @@ import hapi_release4 "k8s.io/helm/pkg/proto/hapi/release"
import hapi_release1 "k8s.io/helm/pkg/proto/hapi/release"
import hapi_release3 "k8s.io/helm/pkg/proto/hapi/release"
import hapi_version "k8s.io/helm/pkg/proto/hapi/version"
import hapi_kube1 "k8s.io/helm/pkg/proto/hapi/kube"
import (
context "golang.org/x/net/context"
@ -893,30 +889,6 @@ func (m *TestReleaseResponse) GetStatus() hapi_release1.TestRun_Status {
return hapi_release1.TestRun_UNKNOWN
}
type GetKubeInfoRequest struct {
}
func (m *GetKubeInfoRequest) Reset() { *m = GetKubeInfoRequest{} }
func (m *GetKubeInfoRequest) String() string { return proto.CompactTextString(m) }
func (*GetKubeInfoRequest) ProtoMessage() {}
func (*GetKubeInfoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
type GetKubeInfoResponse struct {
Info *hapi_kube1.Info `protobuf:"bytes,1,opt,name=Info" json:"Info,omitempty"`
}
func (m *GetKubeInfoResponse) Reset() { *m = GetKubeInfoResponse{} }
func (m *GetKubeInfoResponse) String() string { return proto.CompactTextString(m) }
func (*GetKubeInfoResponse) ProtoMessage() {}
func (*GetKubeInfoResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
func (m *GetKubeInfoResponse) GetInfo() *hapi_kube1.Info {
if m != nil {
return m.Info
}
return nil
}
func init() {
proto.RegisterType((*ListReleasesRequest)(nil), "hapi.services.tiller.ListReleasesRequest")
proto.RegisterType((*ListSort)(nil), "hapi.services.tiller.ListSort")
@ -939,8 +911,6 @@ func init() {
proto.RegisterType((*GetHistoryResponse)(nil), "hapi.services.tiller.GetHistoryResponse")
proto.RegisterType((*TestReleaseRequest)(nil), "hapi.services.tiller.TestReleaseRequest")
proto.RegisterType((*TestReleaseResponse)(nil), "hapi.services.tiller.TestReleaseResponse")
proto.RegisterType((*GetKubeInfoRequest)(nil), "hapi.services.tiller.GetKubeInfoRequest")
proto.RegisterType((*GetKubeInfoResponse)(nil), "hapi.services.tiller.GetKubeInfoResponse")
proto.RegisterEnum("hapi.services.tiller.ListSort_SortBy", ListSort_SortBy_name, ListSort_SortBy_value)
proto.RegisterEnum("hapi.services.tiller.ListSort_SortOrder", ListSort_SortOrder_name, ListSort_SortOrder_value)
}
@ -1395,153 +1365,85 @@ var _ReleaseService_serviceDesc = grpc.ServiceDesc{
Metadata: "hapi/services/tiller.proto",
}
// Client API for InfoService service
type InfoServiceClient interface {
GetKubeInfo(ctx context.Context, in *GetKubeInfoRequest, opts ...grpc.CallOption) (*GetKubeInfoResponse, error)
}
type infoServiceClient struct {
cc *grpc.ClientConn
}
func NewInfoServiceClient(cc *grpc.ClientConn) InfoServiceClient {
return &infoServiceClient{cc}
}
func (c *infoServiceClient) GetKubeInfo(ctx context.Context, in *GetKubeInfoRequest, opts ...grpc.CallOption) (*GetKubeInfoResponse, error) {
out := new(GetKubeInfoResponse)
err := grpc.Invoke(ctx, "/hapi.services.tiller.InfoService/GetKubeInfo", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for InfoService service
type InfoServiceServer interface {
GetKubeInfo(context.Context, *GetKubeInfoRequest) (*GetKubeInfoResponse, error)
}
func RegisterInfoServiceServer(s *grpc.Server, srv InfoServiceServer) {
s.RegisterService(&_InfoService_serviceDesc, srv)
}
func _InfoService_GetKubeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetKubeInfoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InfoServiceServer).GetKubeInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/hapi.services.tiller.InfoService/GetKubeInfo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InfoServiceServer).GetKubeInfo(ctx, req.(*GetKubeInfoRequest))
}
return interceptor(ctx, in, info, handler)
}
var _InfoService_serviceDesc = grpc.ServiceDesc{
ServiceName: "hapi.services.tiller.InfoService",
HandlerType: (*InfoServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetKubeInfo",
Handler: _InfoService_GetKubeInfo_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "hapi/services/tiller.proto",
}
func init() { proto.RegisterFile("hapi/services/tiller.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 1284 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdd, 0x72, 0xdb, 0xc4,
0x17, 0x8f, 0xfc, 0xed, 0xe3, 0xd4, 0x75, 0x37, 0x6e, 0xa2, 0xea, 0xdf, 0x3f, 0x13, 0xd4, 0x81,
0xba, 0x85, 0x3a, 0x60, 0xb8, 0x81, 0x61, 0x98, 0x49, 0x53, 0x4f, 0x52, 0x1a, 0xd2, 0x19, 0xb9,
0x2d, 0x33, 0x0c, 0xe0, 0x91, 0xed, 0x75, 0x2b, 0x2a, 0x4b, 0x46, 0xbb, 0x0a, 0xcd, 0x2d, 0x77,
0x3c, 0x0a, 0x6f, 0xc1, 0x7b, 0x70, 0x09, 0x0f, 0xc2, 0xec, 0x97, 0xa2, 0x55, 0xa4, 0x44, 0xe4,
0x46, 0xd6, 0xee, 0x39, 0x7b, 0x3e, 0x7e, 0xe7, 0xe8, 0xb7, 0xc7, 0x60, 0xbd, 0x71, 0xd7, 0xde,
0x1e, 0xc1, 0xd1, 0xa9, 0x37, 0xc7, 0x64, 0x8f, 0x7a, 0xbe, 0x8f, 0xa3, 0xe1, 0x3a, 0x0a, 0x69,
0x88, 0xfa, 0x4c, 0x36, 0x54, 0xb2, 0xa1, 0x90, 0x59, 0xdb, 0xfc, 0xc4, 0xfc, 0x8d, 0x1b, 0x51,
0xf1, 0x14, 0xda, 0xd6, 0x4e, 0x7a, 0x3f, 0x0c, 0x96, 0xde, 0x6b, 0x29, 0x10, 0x2e, 0x22, 0xec,
0x63, 0x97, 0x60, 0xf5, 0xab, 0x1d, 0x52, 0x32, 0x2f, 0x58, 0x86, 0x52, 0xf0, 0x3f, 0x4d, 0x40,
0x31, 0xa1, 0xd3, 0x28, 0x0e, 0xa4, 0xf0, 0x8e, 0x26, 0x24, 0xd4, 0xa5, 0x31, 0xd1, 0x9c, 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 0xe3,
0x9e, 0x10, 0x00, 0x00,
// 1217 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdd, 0x6e, 0xe3, 0xc4,
0x17, 0xaf, 0xf3, 0x9d, 0x93, 0x36, 0xff, 0x74, 0x9a, 0xb6, 0xae, 0xff, 0x0b, 0x2a, 0x46, 0xb0,
0xd9, 0x85, 0x4d, 0x21, 0x70, 0x83, 0x84, 0x90, 0xba, 0xdd, 0xa8, 0x2d, 0x94, 0xae, 0xe4, 0x6c,
0x17, 0x09, 0x01, 0x91, 0x9b, 0x4c, 0x5a, 0xb3, 0x8e, 0x27, 0x78, 0xc6, 0x65, 0x7b, 0xcb, 0x1d,
0x8f, 0xc2, 0x5b, 0xf0, 0x1e, 0x5c, 0xc2, 0x83, 0x20, 0xcf, 0x87, 0xeb, 0x49, 0xed, 0xd6, 0xf4,
0x26, 0x9e, 0x99, 0xf3, 0xfd, 0x3b, 0x67, 0xce, 0x9c, 0x80, 0x75, 0xe9, 0x2e, 0xbc, 0x3d, 0x8a,
0xc3, 0x2b, 0x6f, 0x82, 0xe9, 0x1e, 0xf3, 0x7c, 0x1f, 0x87, 0xfd, 0x45, 0x48, 0x18, 0x41, 0xdd,
0x98, 0xd6, 0x57, 0xb4, 0xbe, 0xa0, 0x59, 0x5b, 0x5c, 0x62, 0x72, 0xe9, 0x86, 0x4c, 0xfc, 0x0a,
0x6e, 0x6b, 0x3b, 0x7d, 0x4e, 0x82, 0x99, 0x77, 0x21, 0x09, 0xc2, 0x44, 0x88, 0x7d, 0xec, 0x52,
0xac, 0xbe, 0x9a, 0x90, 0xa2, 0x79, 0xc1, 0x8c, 0x48, 0xc2, 0xff, 0x35, 0x02, 0xc3, 0x94, 0x8d,
0xc3, 0x28, 0x90, 0xc4, 0x1d, 0x8d, 0x48, 0x99, 0xcb, 0x22, 0xaa, 0x19, 0xbb, 0xc2, 0x21, 0x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c7, 0xc5, 0x98,
0x13, 0x73, 0x14, 0x3a, 0xcb, 0x3d, 0x24, 0x2f, 0x8f, 0x39, 0xfd, 0x2e, 0x2f, 0x8f, 0x79, 0xad,
0xc9, 0x5e, 0x41, 0x2e, 0xc0, 0x4d, 0x0b, 0x41, 0x8f, 0x73, 0x13, 0xa2, 0x77, 0x1e, 0xab, 0x77,
0x3f, 0x63, 0x62, 0x62, 0x01, 0xff, 0x5b, 0x7a, 0x63, 0x51, 0x0e, 0x34, 0xd9, 0x03, 0x87, 0xf5,
0xac, 0x20, 0xf7, 0x52, 0x50, 0xb2, 0x2b, 0xdd, 0x11, 0x94, 0xde, 0xf2, 0xee, 0x08, 0x6a, 0xa9,
0xc1, 0xd9, 0x2b, 0xc8, 0x83, 0xb6, 0x13, 0x05, 0xd2, 0x74, 0xdc, 0x16, 0x50, 0x8e, 0xf4, 0xed,
0xae, 0x66, 0x3d, 0x29, 0xc0, 0x79, 0x73, 0xbf, 0x9f, 0xc3, 0xf7, 0x0d, 0xc5, 0x7a, 0x5e, 0xe3,
0xff, 0x69, 0x3f, 0xfb, 0x37, 0x00, 0x00, 0xff, 0xff, 0xf3, 0x7c, 0x9c, 0x49, 0xc1, 0x0f, 0x00,
0x00,
}

@ -1,6 +1,5 @@
// Code generated by protoc-gen-go.
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: hapi/version/version.proto
// DO NOT EDIT!
/*
Package version is a generated protocol buffer package.

@ -1,61 +0,0 @@
/*
Copyright 2017 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package tiller
import (
"golang.org/x/net/context"
"k8s.io/helm/pkg/proto/hapi/kube"
"k8s.io/helm/pkg/proto/hapi/services"
"k8s.io/helm/pkg/tiller/environment"
"k8s.io/kubernetes/pkg/client/clientset_generated/internalclientset"
)
// InfoServer implements the server-side gRPC endpoint for the HAPI info service.
type InfoServer struct {
clientset internalclientset.Interface
env *environment.Environment
}
// GetKubeInfo returns Kubernetes server information.
func (s *InfoServer) GetKubeInfo(context.Context, *services.GetKubeInfoRequest) (*services.GetKubeInfoResponse, error) {
v, err := s.clientset.Discovery().ServerVersion()
if err != nil {
return nil, err
}
i := &kube.Info{
Version: &kube.Version{
Major: v.Major,
Minor: v.Minor,
GitVersion: v.GitVersion,
GitCommit: v.GitCommit,
GitTreeState: v.GitTreeState,
BuildDate: v.BuildDate,
GoVersion: v.GoVersion,
Compiler: v.Compiler,
Platform: v.Platform,
},
}
return &services.GetKubeInfoResponse{Info: i}, nil
}
// NewInfoServer returns a new InfoServer.
func NewInfoServer(env *environment.Environment, clientset internalclientset.Interface) *InfoServer {
return &InfoServer{
env: env,
clientset: clientset,
}
}

@ -78,7 +78,7 @@ var ListDefaultLimit int64 = 512
// prevents an empty string from matching.
var ValidName = regexp.MustCompile("^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])+$")
// ReleaseServer implements the server-side gRPC endpoint for the release service.
// ReleaseServer implements the server-side gRPC endpoint for the HAPI services.
type ReleaseServer struct {
ReleaseModule
env *environment.Environment

Loading…
Cancel
Save