update google.golang.org/grpc to 1.7.2 (#3101)

pull/3183/head
Hadrien Chauvin 7 years ago committed by Matt Butcher
parent 06cc1ea389
commit 838d780894

15
glide.lock generated

@ -1,5 +1,5 @@
hash: 397d714c3a444071879981d3e6575931bd637166e845c6577eaea08ffde7e33d hash: 3d0ff2a6cf119f719abbd2606da14a00073627972be81a6e68404ad92c2d4cd5
updated: 2017-10-27T11:04:22.887120936-04:00 updated: 2017-11-04T13:04:46.410949815+01:00
imports: imports:
- name: cloud.google.com/go - name: cloud.google.com/go
version: 3b1ae45394a234c385be014e9a488f2bb6eef821 version: 3b1ae45394a234c385be014e9a488f2bb6eef821
@ -320,18 +320,27 @@ imports:
- internal/remote_api - internal/remote_api
- internal/urlfetch - internal/urlfetch
- urlfetch - urlfetch
- name: google.golang.org/genproto
version: 09f6ed296fc66555a25fe4ce95173148778dfa85
subpackages:
- googleapis/rpc/status
- name: google.golang.org/grpc - name: google.golang.org/grpc
version: 8050b9cbc271307e5a716a9d782803d09b0d6f2d version: 5ffe3083946d5603a0578721101dc8165b1d5b5f
subpackages: subpackages:
- balancer
- codes - codes
- connectivity
- credentials - credentials
- grpclb/grpc_lb_v1/messages
- grpclog - grpclog
- internal - internal
- keepalive - keepalive
- metadata - metadata
- naming - naming
- peer - peer
- resolver
- stats - stats
- status
- tap - tap
- transport - transport
- name: gopkg.in/inf.v0 - name: gopkg.in/inf.v0

@ -26,7 +26,7 @@ import:
- ptypes/any - ptypes/any
- ptypes/timestamp - ptypes/timestamp
- package: google.golang.org/grpc - package: google.golang.org/grpc
version: 1.2.1 version: 1.7.2
# 1.8.1 libs are hosed and need some manual intervention, so pinning to 1.8.0 for now # 1.8.1 libs are hosed and need some manual intervention, so pinning to 1.8.0 for now
# so others aren't getting errors when running `glide up` # so others aren't getting errors when running `glide up`
- package: k8s.io/kubernetes - package: k8s.io/kubernetes

@ -426,7 +426,7 @@ func WithMaxHistory(max int32) HistoryOption {
// NewContext creates a versioned context. // NewContext creates a versioned context.
func NewContext() context.Context { func NewContext() context.Context {
md := metadata.Pairs("x-helm-api-client", version.GetVersion()) md := metadata.Pairs("x-helm-api-client", version.GetVersion())
return metadata.NewContext(context.TODO(), md) return metadata.NewOutgoingContext(context.TODO(), md)
} }
// ReleaseTestOption allows configuring optional request data for // ReleaseTestOption allows configuring optional request data for

@ -78,7 +78,7 @@ func splitMethod(fullMethod string) (string, string) {
} }
func versionFromContext(ctx context.Context) string { func versionFromContext(ctx context.Context) string {
if md, ok := metadata.FromContext(ctx); ok { if md, ok := metadata.FromIncomingContext(ctx); ok {
if v, ok := md["x-helm-api-client"]; ok && len(v) > 0 { if v, ok := md["x-helm-api-client"]; ok && len(v) > 0 {
return v[0] return v[0]
} }

Loading…
Cancel
Save