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: enumdecl.proto
/*
Package enumdecl is a generated protocol buffer package.
It is generated from these files:
enumdecl.proto
It has these top-level messages:
Message
*/
package enumdecl
import proto "github.com/gogo/protobuf/proto"
@@ -17,6 +8,8 @@ import fmt "fmt"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
import bytes "bytes"
import io "io"
// Reference imports to suppress errors if they are not otherwise used.
@@ -42,16 +35,49 @@ var MyEnum_value = map[string]int32{
func (x MyEnum) String() string {
return proto.EnumName(MyEnum_name, int32(x))
}
func (MyEnum) EnumDescriptor() ([]byte, []int) { return fileDescriptorEnumdecl, []int{0} }
type Message struct {
EnumeratedField MyEnum `protobuf:"varint,1,opt,name=enumerated_field,json=enumeratedField,proto3,enum=enumdecl.MyEnum" json:"enumerated_field,omitempty"`
func (MyEnum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_enumdecl_b298d32d6f1455f8, []int{0}
}
func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) { return fileDescriptorEnumdecl, []int{0} }
type Message struct {
EnumeratedField MyEnum `protobuf:"varint,1,opt,name=enumerated_field,json=enumeratedField,proto3,enum=enumdecl.MyEnum" json:"enumerated_field,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) {
return fileDescriptor_enumdecl_b298d32d6f1455f8, []int{0}
}
func (m *Message) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Message.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 *Message) XXX_Merge(src proto.Message) {
xxx_messageInfo_Message.Merge(dst, src)
}
func (m *Message) XXX_Size() int {
return m.Size()
}
func (m *Message) XXX_DiscardUnknown() {
xxx_messageInfo_Message.DiscardUnknown(m)
}
var xxx_messageInfo_Message proto.InternalMessageInfo
func (m *Message) GetEnumeratedField() MyEnum {
if m != nil {
@@ -92,6 +118,9 @@ func (this *Message) VerboseEqual(that interface{}) error {
if this.EnumeratedField != that1.EnumeratedField {
return fmt.Errorf("EnumeratedField this(%v) Not Equal that(%v)", this.EnumeratedField, that1.EnumeratedField)
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return fmt.Errorf("XXX_unrecognized this(%v) Not Equal that(%v)", this.XXX_unrecognized, that1.XXX_unrecognized)
}
return nil
}
func (this *Message) Equal(that interface{}) bool {
@@ -116,6 +145,9 @@ func (this *Message) Equal(that interface{}) bool {
if this.EnumeratedField != that1.EnumeratedField {
return false
}
if !bytes.Equal(this.XXX_unrecognized, that1.XXX_unrecognized) {
return false
}
return true
}
func (m *Message) Marshal() (dAtA []byte, err error) {
@@ -138,6 +170,9 @@ func (m *Message) MarshalTo(dAtA []byte) (int, error) {
i++
i = encodeVarintEnumdecl(dAtA, i, uint64(m.EnumeratedField))
}
if m.XXX_unrecognized != nil {
i += copy(dAtA[i:], m.XXX_unrecognized)
}
return i, nil
}
@@ -154,6 +189,7 @@ func NewPopulatedMessage(r randyEnumdecl, easy bool) *Message {
this := &Message{}
this.EnumeratedField = MyEnum([]int32{0, 1}[r.Intn(2)])
if !easy && r.Intn(10) != 0 {
this.XXX_unrecognized = randUnrecognizedEnumdecl(r, 2)
}
return this
}
@@ -236,6 +272,9 @@ func (m *Message) Size() (n int) {
if m.EnumeratedField != 0 {
n += 1 + sovEnumdecl(uint64(m.EnumeratedField))
}
if m.XXX_unrecognized != nil {
n += len(m.XXX_unrecognized)
}
return n
}
@@ -312,6 +351,7 @@ func (m *Message) Unmarshal(dAtA []byte) error {
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...)
iNdEx += skippy
}
}
@@ -426,9 +466,9 @@ var (
ErrIntOverflowEnumdecl = fmt.Errorf("proto: integer overflow")
)
func init() { proto.RegisterFile("enumdecl.proto", fileDescriptorEnumdecl) }
func init() { proto.RegisterFile("enumdecl.proto", fileDescriptor_enumdecl_b298d32d6f1455f8) }
var fileDescriptorEnumdecl = []byte{
var fileDescriptor_enumdecl_b298d32d6f1455f8 = []byte{
// 205 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4b, 0xcd, 0x2b, 0xcd,
0x4d, 0x49, 0x4d, 0xce, 0xd1, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x80, 0xf1, 0xa5, 0x74,

View File

@@ -1,22 +1,14 @@
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: enumdecl.proto
/*
Package enumdecl is a generated protocol buffer package.
It is generated from these files:
enumdecl.proto
It has these top-level messages:
Message
*/
package enumdecl
import testing "testing"
import rand "math/rand"
import math_rand "math/rand"
import time "time"
import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
import github_com_gogo_protobuf_jsonpb "github.com/gogo/protobuf/jsonpb"
import proto "github.com/gogo/protobuf/proto"
import jsonpb "github.com/gogo/protobuf/jsonpb"
import fmt "fmt"
import math "math"
import _ "github.com/gogo/protobuf/gogoproto"
@@ -28,14 +20,14 @@ var _ = math.Inf
func TestMessageProto(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedMessage(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 := &Message{}
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))
@@ -56,13 +48,13 @@ func TestMessageProto(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 TestMessageMarshalTo(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedMessage(popr, false)
size := p.Size()
dAtA := make([]byte, size)
@@ -74,7 +66,7 @@ func TestMessageMarshalTo(t *testing.T) {
t.Fatalf("seed = %d, err = %v", seed, err)
}
msg := &Message{}
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 {
@@ -89,7 +81,7 @@ func TestMessageMarshalTo(t *testing.T) {
}
func BenchmarkMessageProtoMarshal(b *testing.B) {
popr := rand.New(rand.NewSource(616))
popr := math_rand.New(math_rand.NewSource(616))
total := 0
pops := make([]*Message, 10000)
for i := 0; i < 10000; i++ {
@@ -97,7 +89,7 @@ func BenchmarkMessageProtoMarshal(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)
}
@@ -107,11 +99,11 @@ func BenchmarkMessageProtoMarshal(b *testing.B) {
}
func BenchmarkMessageProtoUnmarshal(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(NewPopulatedMessage(popr, false))
dAtA, err := github_com_gogo_protobuf_proto.Marshal(NewPopulatedMessage(popr, false))
if err != nil {
panic(err)
}
@@ -121,7 +113,7 @@ func BenchmarkMessageProtoUnmarshal(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)
}
}
@@ -130,15 +122,15 @@ func BenchmarkMessageProtoUnmarshal(b *testing.B) {
func TestMessageJSON(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedMessage(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 := &Message{}
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)
}
@@ -151,11 +143,11 @@ func TestMessageJSON(t *testing.T) {
}
func TestMessageProtoText(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedMessage(popr, true)
dAtA := proto.MarshalTextString(p)
dAtA := github_com_gogo_protobuf_proto.MarshalTextString(p)
msg := &Message{}
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 {
@@ -168,11 +160,11 @@ func TestMessageProtoText(t *testing.T) {
func TestMessageProtoCompactText(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedMessage(popr, true)
dAtA := proto.CompactTextString(p)
dAtA := github_com_gogo_protobuf_proto.CompactTextString(p)
msg := &Message{}
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 {
@@ -184,14 +176,14 @@ func TestMessageProtoCompactText(t *testing.T) {
}
func TestMessageVerboseEqual(t *testing.T) {
popr := rand.New(rand.NewSource(time.Now().UnixNano()))
popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
p := NewPopulatedMessage(popr, false)
dAtA, err := proto.Marshal(p)
dAtA, err := github_com_gogo_protobuf_proto.Marshal(p)
if err != nil {
panic(err)
}
msg := &Message{}
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,10 +192,10 @@ func TestMessageVerboseEqual(t *testing.T) {
}
func TestMessageSize(t *testing.T) {
seed := time.Now().UnixNano()
popr := rand.New(rand.NewSource(seed))
popr := math_rand.New(math_rand.NewSource(seed))
p := NewPopulatedMessage(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)
}
@@ -214,14 +206,14 @@ func TestMessageSize(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 BenchmarkMessageSize(b *testing.B) {
popr := rand.New(rand.NewSource(616))
popr := math_rand.New(math_rand.NewSource(616))
total := 0
pops := make([]*Message, 1000)
for i := 0; i < 1000; i++ {