Bumping k8s dependencies to 1.13

This commit is contained in:
Cheng Xing
2018-11-16 14:08:25 -08:00
parent 305407125c
commit b4c0b68ec7
8002 changed files with 884099 additions and 276228 deletions

View File

@@ -1,15 +1,6 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: object.proto
/*
Package int64support is a generated protocol buffer package.
It is generated from these files:
object.proto
It has these top-level messages:
Object
*/
package int64support
import proto "github.com/gogo/protobuf/proto"
@@ -34,12 +25,42 @@ var _ = math.Inf
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type Object struct {
OptionalNumber *int64 `protobuf:"varint,1,opt,name=optional_number,json=optionalNumber" json:"optional_number,omitempty"`
OptionalNumber *int64 `protobuf:"varint,1,opt,name=optional_number,json=optionalNumber" json:"optional_number,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Object) Reset() { *m = Object{} }
func (*Object) ProtoMessage() {}
func (*Object) Descriptor() ([]byte, []int) { return fileDescriptorObject, []int{0} }
func (m *Object) Reset() { *m = Object{} }
func (*Object) ProtoMessage() {}
func (*Object) Descriptor() ([]byte, []int) {
return fileDescriptor_object_9a4b0c2b004c02f9, []int{0}
}
func (m *Object) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Object) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Object.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (dst *Object) XXX_Merge(src proto.Message) {
xxx_messageInfo_Object.Merge(dst, src)
}
func (m *Object) XXX_Size() int {
return m.Size()
}
func (m *Object) XXX_DiscardUnknown() {
xxx_messageInfo_Object.DiscardUnknown(m)
}
var xxx_messageInfo_Object proto.InternalMessageInfo
func (m *Object) GetOptionalNumber() int64 {
if m != nil && m.OptionalNumber != nil {
@@ -470,9 +491,9 @@ var (
ErrIntOverflowObject = fmt.Errorf("proto: integer overflow")
)
func init() { proto.RegisterFile("object.proto", fileDescriptorObject) }
func init() { proto.RegisterFile("object.proto", fileDescriptor_object_9a4b0c2b004c02f9) }
var fileDescriptorObject = []byte{
var fileDescriptor_object_9a4b0c2b004c02f9 = []byte{
// 190 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0xc9, 0x4f, 0xca, 0x4a,
0x4d, 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0xc9, 0xcc, 0x2b, 0x31, 0x33, 0x29,

View File

@@ -7,7 +7,7 @@ import (
func TestMarshaler(t *testing.T) {
n := int64(1)
b, err := json.Marshal(&Object{&n})
b, err := json.Marshal(&Object{OptionalNumber: &n})
if err != nil {
t.Fatal(err)
}

View File

@@ -1,24 +1,16 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: object.proto
/*
Package int64support is a generated protocol buffer package.
It is generated from these files:
object.proto
It has these top-level messages:
Object
*/
package int64support
import testing "testing"
import rand "math/rand"
import math_rand "math/rand"
import time "time"
import proto "github.com/gogo/protobuf/proto"
import jsonpb "github.com/gogo/protobuf/jsonpb"
import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
import github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb"
import fmt "fmt"
import parser "go/parser"
import go_parser "go/parser"
import proto "github.com/gogo/protobuf/proto"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
@@ -29,14 +21,14 @@ var _ = math.Inf
func TestObjectProto(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedObject(popr, false)
dAtA, err := proto.Marshal(p)
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
msg := &Object{}
if err := proto.Unmarshal(dAtA, msg); err != nil {
if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
littlefuzz := make([]byte, len(dAtA))
@@ -57,13 +49,13 @@ func TestObjectProto(t *testing.T) {
littlefuzz = append(littlefuzz, byte(popr.Intn(256)))
}
// shouldn't panic
_ = proto.Unmarshal(littlefuzz, msg)
_ = github_com_gogo_protobuf_proto.Unmarshal(littlefuzz, msg)
}
}
func TestObjectMarshalTo(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedObject(popr, false)
size := p.Size()
dAtA := make([]byte, size)
@@ -75,7 +67,7 @@ func TestObjectMarshalTo(t *testing.T) {
t.Fatalf("seed = %d, err = %v", seed, err)
}
msg := &Object{}
if err := proto.Unmarshal(dAtA, msg); err != nil {
if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
for i := range dAtA {
@@ -90,7 +82,7 @@ func TestObjectMarshalTo(t *testing.T) {
}
func BenchmarkObjectProtoMarshal(b *testing.B) {
popr := rand.New(rand.NewSource(616))
popr := math_rand.New(math_rand.NewSource(616))
total := 0
pops := make([]*Object, 10000)
for i := 0; i < 10000; i++ {
@@ -98,7 +90,7 @@ func BenchmarkObjectProtoMarshal(b *testing.B) {
}
b.ResetTimer()
for i := 0; i < b.N; i++ {
dAtA, err := proto.Marshal(pops[i%10000])
dAtA, err := github_com_gogo_protobuf_proto.Marshal(pops[i%10000])
if err != nil {
panic(err)
}
@@ -108,11 +100,11 @@ func BenchmarkObjectProtoMarshal(b *testing.B) {
}
func BenchmarkObjectProtoUnmarshal(b *testing.B) {
popr := rand.New(rand.NewSource(616))
popr := math_rand.New(math_rand.NewSource(616))
total := 0
datas := make([][]byte, 10000)
for i := 0; i < 10000; i++ {
dAtA, err := proto.Marshal(NewPopulatedObject(popr, false))
dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedObject(popr, false))
if err != nil {
panic(err)
}
@@ -122,7 +114,7 @@ func BenchmarkObjectProtoUnmarshal(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
total += len(datas[i%10000])
if err := proto.Unmarshal(datas[i%10000], msg); err != nil {
if err := github_com_gogo_protobuf_proto.Unmarshal(datas[i%10000], msg); err != nil {
panic(err)
}
}
@@ -131,15 +123,15 @@ func BenchmarkObjectProtoUnmarshal(b *testing.B) {
func TestObjectJSON(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedObject(popr, true)
marshaler := jsonpb.Marshaler{}
marshaler := github_com_gogo_protobuf_jsonpb.Marshaler{}
jsondata, err := marshaler.MarshalToString(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
msg := &Object{}
err = jsonpb.UnmarshalString(jsondata, msg)
err = github_com_gogo_protobuf_jsonpb.UnmarshalString(jsondata, msg)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
@@ -152,11 +144,11 @@ func TestObjectJSON(t *testing.T) {
}
func TestObjectProtoText(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedObject(popr, true)
dAtA := proto.MarshalTextString(p)
dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
msg := &Object{}
if err := proto.UnmarshalText(dAtA, msg); err != nil {
if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
if err := p.VerboseEqual(msg); err != nil {
@@ -169,11 +161,11 @@ func TestObjectProtoText(t *testing.T) {
func TestObjectProtoCompactText(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedObject(popr, true)
dAtA := proto.CompactTextString(p)
dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
msg := &Object{}
if err := proto.UnmarshalText(dAtA, msg); err != nil {
if err := github_com_gogo_protobuf_proto.UnmarshalText(dAtA, msg); err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
if err := p.VerboseEqual(msg); err != nil {
@@ -185,14 +177,14 @@ func TestObjectProtoCompactText(t *testing.T) {
}
func TestObjectVerboseEqual(t *testing.T) {
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedObject(popr, false)
dAtA, err := proto.Marshal(p)
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
panic(err)
}
msg := &Object{}
if err := proto.Unmarshal(dAtA, msg); err != nil {
if err := github_com_gogo_protobuf_proto.Unmarshal(dAtA, msg); err != nil {
panic(err)
}
if err := p.VerboseEqual(msg); err != nil {
@@ -200,24 +192,24 @@ func TestObjectVerboseEqual(t *testing.T) {
}
}
func TestObjectGoString(t *testing.T) {
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedObject(popr, false)
s1 := p.GoString()
s2 := fmt.Sprintf("%#v", p)
if s1 != s2 {
t.Fatalf("GoString want %v got %v", s1, s2)
}
_, err := parser.ParseExpr(s1)
_, err := go_parser.ParseExpr(s1)
if err != nil {
t.Fatal(err)
}
}
func TestObjectSize(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedObject(popr, true)
size2 := proto.Size(p)
dAtA, err := proto.Marshal(p)
size2 := github_com_gogo_protobuf_proto.Size(p)
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
t.Fatalf("seed = %d, err = %v", seed, err)
}
@@ -228,14 +220,14 @@ func TestObjectSize(t *testing.T) {
if size2 != size {
t.Errorf("seed = %d, size %v != before marshal proto.Size %v", seed, size, size2)
}
size3 := proto.Size(p)
size3 := github_com_gogo_protobuf_proto.Size(p)
if size3 != size {
t.Errorf("seed = %d, size %v != after marshal proto.Size %v", seed, size, size3)
}
}
func BenchmarkObjectSize(b *testing.B) {
popr := rand.New(rand.NewSource(616))
popr := math_rand.New(math_rand.NewSource(616))
total := 0
pops := make([]*Object, 1000)
for i := 0; i < 1000; i++ {
@@ -249,7 +241,7 @@ func BenchmarkObjectSize(b *testing.B) {
}
func TestObjectStringer(t *testing.T) {
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedObject(popr, false)
s1 := p.String()
s2 := fmt.Sprintf("%v", p)