updated vendor

This commit is contained in:
2026-06-16 08:02:19 +02:00
parent 2f7f99d3f0
commit 77299d0c64
1283 changed files with 67302 additions and 208958 deletions
+170
View File
@@ -0,0 +1,170 @@
/*
Copyright The Kubernetes Authors.
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 v1
import (
"fmt"
"io"
)
func (FieldsV1) SwaggerDoc() map[string]string {
return map[string]string{
"": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff",
}
}
type FieldsV1Reader interface {
io.Reader
io.ReaderAt
// Size returns the original byte length of the underlying data. Size is the number of bytes available for reading via ReadAt.
Size() int64
}
func (f *FieldsV1) DeepCopy() *FieldsV1 {
if f == nil {
return nil
}
out := new(FieldsV1)
f.DeepCopyInto(out)
return out
}
func (f *FieldsV1) Marshal() (dAtA []byte, err error) {
size := f.Size()
dAtA = make([]byte, size)
n, err := f.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (f *FieldsV1) MarshalTo(dAtA []byte) (int, error) {
size := f.Size()
return f.MarshalToSizedBuffer(dAtA[:size])
}
func (f *FieldsV1) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
rawBytes := f.GetRawBytes()
if len(rawBytes) > 0 {
i -= len(rawBytes)
copy(dAtA[i:], rawBytes)
i = encodeVarintGenerated(dAtA, i, uint64(len(rawBytes)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (f *FieldsV1) Size() (n int) {
if f == nil {
return 0
}
var l int
_ = l
if l := int(f.GetRawReader().Size()); l > 0 {
n += 1 + l + sovGenerated(uint64(l))
}
return n
}
func (f *FieldsV1) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: FieldsV1: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: FieldsV1: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthGenerated
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
f.SetRawBytes(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenerated(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
+105
View File
@@ -0,0 +1,105 @@
//go:build !fieldsv1string
/*
Copyright The Kubernetes Authors.
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 v1
import (
"bytes"
)
// FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.
//
// Each key is either a '.' representing the field itself, and will always map to an empty set,
// or a string representing a sub-field or item. The string will follow one of these four formats:
// 'f:<name>', where <name> is the name of a field in a struct, or key in a map
// 'v:<value>', where <value> is the exact json formatted value of a list item
// 'i:<index>', where <index> is position of a item in a list
// 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values
// If a key maps to an empty Fields value, the field that key represents is part of the set.
//
// The exact format is defined in sigs.k8s.io/structured-merge-diff
// +k8s:deepcopy-gen=false
// +protobuf.options.marshal=false
// +protobuf.options.(gogoproto.goproto_stringer)=false
type FieldsV1 struct {
// Raw is the underlying serialization of this object.
//
// Deprecated: Direct access to this field is deprecated. Use GetRawBytes, GetRawString, SetRawBytes, SetRawString, GetRawReader, NewFieldsV1 instead.
Raw []byte `json:"-" protobuf:"bytes,1,opt,name=Raw"`
}
func (f FieldsV1) String() string {
return string(f.Raw)
}
func (f FieldsV1) Equal(f2 FieldsV1) bool {
return bytes.Equal(f.Raw, f2.Raw)
}
func (f *FieldsV1) GetRawReader() FieldsV1Reader {
if f == nil || len(f.Raw) == 0 {
return bytes.NewReader(nil)
}
return bytes.NewReader(f.Raw)
}
// GetRawBytes returns the raw bytes.
// These may or may not be a copy of the underlying bytes.
// If mutating the underlying bytes is desired, the returned bytes may be mutated and then passed to SetRawBytes().
// If mutating the underlying bytes is not desired, make a copy of the returned bytes.
func (f *FieldsV1) GetRawBytes() []byte {
if f == nil {
return nil
}
return f.Raw
}
// GetRawString returns the raw data as a string.
func (f *FieldsV1) GetRawString() string {
if f == nil {
return ""
}
return string(f.Raw)
}
// SetRawBytes sets the raw bytes. It does not retain the passed-in byte slice.
func (f *FieldsV1) SetRawBytes(b []byte) {
if f != nil {
f.Raw = bytes.Clone(b)
}
}
// SetRawString sets the raw data from a string.
func (f *FieldsV1) SetRawString(s string) {
if f != nil {
f.Raw = []byte(s)
}
}
func NewFieldsV1(raw string) *FieldsV1 {
return &FieldsV1{Raw: []byte(raw)}
}
func (f *FieldsV1) DeepCopyInto(out *FieldsV1) {
*out = *f
if f.Raw != nil {
in, out := &f.Raw, &out.Raw
*out = make([]byte, len(*in))
copy(*out, *in)
}
}
+113
View File
@@ -0,0 +1,113 @@
//go:build fieldsv1string
/*
Copyright The Kubernetes Authors.
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 v1
import (
"strings"
"unique"
)
// FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.
//
// Each key is either a '.' representing the field itself, and will always map to an empty set,
// or a string representing a sub-field or item. The string will follow one of these four formats:
// 'f:<name>', where <name> is the name of a field in a struct, or key in a map
// 'v:<value>', where <value> is the exact json formatted value of a list item
// 'i:<index>', where <index> is position of a item in a list
// 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values
// If a key maps to an empty Fields value, the field that key represents is part of the set.
//
// The exact format is defined in sigs.k8s.io/structured-merge-diff
// +k8s:deepcopy-gen=false
// +protobuf.options.marshal=false
// +protobuf.options.(gogoproto.goproto_stringer)=false
type FieldsV1 struct {
// The zero value of a unique.Handle[string] has an uninitialized underlying pointer.
// Calling .Value() on it panics. We must explicitly check for this uninitialized
// state (f.handle == unique.Handle[string]{}) across accessors to safely support
// uninitialized metav1.FieldsV1{} objects.
// See ongoing golang discussion related to this here: https://github.com/golang/go/issues/73344
handle unique.Handle[string]
}
func (f FieldsV1) String() string {
if f.handle == (unique.Handle[string]{}) {
return ""
}
return f.handle.Value()
}
func (f FieldsV1) Equal(f2 FieldsV1) bool {
if f.handle == f2.handle {
return true
}
// An uninitialized FieldsV1 compared to an explicitly empty
// FieldsV1 (unique.Make("") will fail the handle check above.
// Evaluate string contents directly as well to maintain parity with legacy
// bytes.Equal(nil, []byte{}) == true behavior.
return f.GetRawString() == f2.GetRawString()
}
func (f *FieldsV1) GetRawReader() FieldsV1Reader {
if f == nil || f.handle == (unique.Handle[string]{}) {
return strings.NewReader("")
}
return strings.NewReader(f.handle.Value())
}
// GetRawBytes returns the raw bytes.
// These may or may not be a copy of the underlying bytes.
// If mutating the underlying bytes is desired, the returned bytes may be mutated and then passed to SetRawBytes().
// If mutating the underlying bytes is not desired, make a copy of the returned bytes.
func (f *FieldsV1) GetRawBytes() []byte {
if f == nil || f.handle == (unique.Handle[string]{}) {
return nil
}
return []byte(f.handle.Value())
}
// GetRawString returns the raw data as a string.
func (f *FieldsV1) GetRawString() string {
if f == nil || f.handle == (unique.Handle[string]{}) {
return ""
}
return f.handle.Value()
}
// SetRawBytes sets the raw bytes. It does not retain the passed-in byte slice.
func (f *FieldsV1) SetRawBytes(b []byte) {
if f != nil {
f.handle = unique.Make(string(b))
}
}
// SetRawString sets the raw data from a string.
func (f *FieldsV1) SetRawString(s string) {
if f != nil {
f.handle = unique.Make(s)
}
}
func NewFieldsV1(raw string) *FieldsV1 {
return &FieldsV1{handle: unique.Make(raw)}
}
func (f *FieldsV1) DeepCopyInto(out *FieldsV1) {
*out = *f
}
+226 -127
View File
@@ -105,6 +105,8 @@ func (m *RootPaths) Reset() { *m = RootPaths{} }
func (m *ServerAddressByClientCIDR) Reset() { *m = ServerAddressByClientCIDR{} }
func (m *ShardInfo) Reset() { *m = ShardInfo{} }
func (m *Status) Reset() { *m = Status{} }
func (m *StatusCause) Reset() { *m = StatusCause{} }
@@ -694,36 +696,6 @@ func (m *FieldSelectorRequirement) MarshalToSizedBuffer(dAtA []byte) (int, error
return len(dAtA) - i, nil
}
func (m *FieldsV1) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *FieldsV1) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *FieldsV1) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
if m.Raw != nil {
i -= len(m.Raw)
copy(dAtA[i:], m.Raw)
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Raw)))
i--
dAtA[i] = 0xa
}
return len(dAtA) - i, nil
}
func (m *GetOptions) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
@@ -1130,6 +1102,18 @@ func (m *ListMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
if m.ShardInfo != nil {
{
size, err := m.ShardInfo.MarshalToSizedBuffer(dAtA[:i])
if err != nil {
return 0, err
}
i -= size
i = encodeVarintGenerated(dAtA, i, uint64(size))
}
i--
dAtA[i] = 0x2a
}
if m.RemainingItemCount != nil {
i = encodeVarintGenerated(dAtA, i, uint64(*m.RemainingItemCount))
i--
@@ -1173,6 +1157,11 @@ func (m *ListOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) {
_ = i
var l int
_ = l
i -= len(m.ShardSelector)
copy(dAtA[i:], m.ShardSelector)
i = encodeVarintGenerated(dAtA, i, uint64(len(m.ShardSelector)))
i--
dAtA[i] = 0x7a
if m.SendInitialEvents != nil {
i--
if *m.SendInitialEvents {
@@ -1797,6 +1786,34 @@ func (m *ServerAddressByClientCIDR) MarshalToSizedBuffer(dAtA []byte) (int, erro
return len(dAtA) - i, nil
}
func (m *ShardInfo) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
n, err := m.MarshalToSizedBuffer(dAtA[:size])
if err != nil {
return nil, err
}
return dAtA[:n], nil
}
func (m *ShardInfo) MarshalTo(dAtA []byte) (int, error) {
size := m.Size()
return m.MarshalToSizedBuffer(dAtA[:size])
}
func (m *ShardInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
i := len(dAtA)
_ = i
var l int
_ = l
i -= len(m.Selector)
copy(dAtA[i:], m.Selector)
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Selector)))
i--
dAtA[i] = 0xa
return len(dAtA) - i, nil
}
func (m *Status) Marshal() (dAtA []byte, err error) {
size := m.Size()
dAtA = make([]byte, size)
@@ -2405,19 +2422,6 @@ func (m *FieldSelectorRequirement) Size() (n int) {
return n
}
func (m *FieldsV1) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
if m.Raw != nil {
l = len(m.Raw)
n += 1 + l + sovGenerated(uint64(l))
}
return n
}
func (m *GetOptions) Size() (n int) {
if m == nil {
return 0
@@ -2585,6 +2589,10 @@ func (m *ListMeta) Size() (n int) {
if m.RemainingItemCount != nil {
n += 1 + sovGenerated(uint64(*m.RemainingItemCount))
}
if m.ShardInfo != nil {
l = m.ShardInfo.Size()
n += 1 + l + sovGenerated(uint64(l))
}
return n
}
@@ -2613,6 +2621,8 @@ func (m *ListOptions) Size() (n int) {
if m.SendInitialEvents != nil {
n += 2
}
l = len(m.ShardSelector)
n += 1 + l + sovGenerated(uint64(l))
return n
}
@@ -2835,6 +2845,17 @@ func (m *ServerAddressByClientCIDR) Size() (n int) {
return n
}
func (m *ShardInfo) Size() (n int) {
if m == nil {
return 0
}
var l int
_ = l
l = len(m.Selector)
n += 1 + l + sovGenerated(uint64(l))
return n
}
func (m *Status) Size() (n int) {
if m == nil {
return 0
@@ -3217,6 +3238,7 @@ func (this *ListMeta) String() string {
`ResourceVersion:` + fmt.Sprintf("%v", this.ResourceVersion) + `,`,
`Continue:` + fmt.Sprintf("%v", this.Continue) + `,`,
`RemainingItemCount:` + valueToStringGenerated(this.RemainingItemCount) + `,`,
`ShardInfo:` + strings.Replace(this.ShardInfo.String(), "ShardInfo", "ShardInfo", 1) + `,`,
`}`,
}, "")
return s
@@ -3236,6 +3258,7 @@ func (this *ListOptions) String() string {
`AllowWatchBookmarks:` + fmt.Sprintf("%v", this.AllowWatchBookmarks) + `,`,
`ResourceVersionMatch:` + fmt.Sprintf("%v", this.ResourceVersionMatch) + `,`,
`SendInitialEvents:` + valueToStringGenerated(this.SendInitialEvents) + `,`,
`ShardSelector:` + fmt.Sprintf("%v", this.ShardSelector) + `,`,
`}`,
}, "")
return s
@@ -3405,6 +3428,16 @@ func (this *ServerAddressByClientCIDR) String() string {
}, "")
return s
}
func (this *ShardInfo) String() string {
if this == nil {
return "nil"
}
s := strings.Join([]string{`&ShardInfo{`,
`Selector:` + fmt.Sprintf("%v", this.Selector) + `,`,
`}`,
}, "")
return s
}
func (this *Status) String() string {
if this == nil {
return "nil"
@@ -5314,90 +5347,6 @@ func (m *FieldSelectorRequirement) Unmarshal(dAtA []byte) error {
}
return nil
}
func (m *FieldsV1) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: FieldsV1: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: FieldsV1: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Raw", wireType)
}
var byteLen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
byteLen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if byteLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + byteLen
if postIndex < 0 {
return ErrInvalidLengthGenerated
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Raw = append(m.Raw[:0], dAtA[iNdEx:postIndex]...)
if m.Raw == nil {
m.Raw = []byte{}
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenerated(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *GetOptions) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
@@ -6847,6 +6796,42 @@ func (m *ListMeta) Unmarshal(dAtA []byte) error {
}
}
m.RemainingItemCount = &v
case 5:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ShardInfo", wireType)
}
var msglen int
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
msglen |= int(b&0x7F) << shift
if b < 0x80 {
break
}
}
if msglen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + msglen
if postIndex < 0 {
return ErrInvalidLengthGenerated
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
if m.ShardInfo == nil {
m.ShardInfo = &ShardInfo{}
}
if err := m.ShardInfo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
return err
}
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenerated(dAtA[iNdEx:])
@@ -7157,6 +7142,38 @@ func (m *ListOptions) Unmarshal(dAtA []byte) error {
}
b := bool(v != 0)
m.SendInitialEvents = &b
case 15:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field ShardSelector", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthGenerated
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.ShardSelector = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenerated(dAtA[iNdEx:])
@@ -9113,6 +9130,88 @@ func (m *ServerAddressByClientCIDR) Unmarshal(dAtA []byte) error {
}
return nil
}
func (m *ShardInfo) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
for iNdEx < l {
preIndex := iNdEx
var wire uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
wire |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
fieldNum := int32(wire >> 3)
wireType := int(wire & 0x7)
if wireType == 4 {
return fmt.Errorf("proto: ShardInfo: wiretype end group for non-group")
}
if fieldNum <= 0 {
return fmt.Errorf("proto: ShardInfo: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
}
var stringLen uint64
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
stringLen |= uint64(b&0x7F) << shift
if b < 0x80 {
break
}
}
intStringLen := int(stringLen)
if intStringLen < 0 {
return ErrInvalidLengthGenerated
}
postIndex := iNdEx + intStringLen
if postIndex < 0 {
return ErrInvalidLengthGenerated
}
if postIndex > l {
return io.ErrUnexpectedEOF
}
m.Selector = string(dAtA[iNdEx:postIndex])
iNdEx = postIndex
default:
iNdEx = preIndex
skippy, err := skipGenerated(dAtA[iNdEx:])
if err != nil {
return err
}
if (skippy < 0) || (iNdEx+skippy) < 0 {
return ErrInvalidLengthGenerated
}
if (iNdEx + skippy) > l {
return io.ErrUnexpectedEOF
}
iNdEx += skippy
}
}
if iNdEx > l {
return io.ErrUnexpectedEOF
}
return nil
}
func (m *Status) Unmarshal(dAtA []byte) error {
l := len(dAtA)
iNdEx := 0
+56
View File
@@ -369,9 +369,13 @@ message FieldSelectorRequirement {
// If a key maps to an empty Fields value, the field that key represents is part of the set.
//
// The exact format is defined in sigs.k8s.io/structured-merge-diff
// +k8s:deepcopy-gen=false
// +protobuf.options.marshal=false
// +protobuf.options.(gogoproto.goproto_stringer)=false
message FieldsV1 {
// Raw is the underlying serialization of this object.
//
// Deprecated: Direct access to this field is deprecated. Use GetRawBytes, GetRawString, SetRawBytes, SetRawString, GetRawReader, NewFieldsV1 instead.
optional bytes Raw = 1;
}
@@ -533,6 +537,17 @@ message ListMeta {
// should not rely on the remainingItemCount to be set or to be exact.
// +optional
optional int64 remainingItemCount = 4;
// shardInfo is set when the list is a filtered subset of the full collection,
// as selected by a shard selector on the request. It echoes back the selector
// so clients can verify which shard they received and merge sharded responses.
// Clients should not cache sharded list responses as a full representation
// of the collection.
//
// This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
// +featureGate=ShardedListAndWatch
// +optional
optional ShardInfo shardInfo = 5;
}
// ListOptions is the query options to a standard REST list call.
@@ -643,6 +658,38 @@ message ListOptions {
// compatibility reasons) and to false otherwise.
// +optional
optional bool sendInitialEvents = 11;
// shardSelector restricts the list of returned objects using a CEL-based
// shard selector expression. The format uses the shardRange() function
// combined with || (logical OR) to specify one or more hash ranges:
//
// shardRange(object.metadata.uid, '0x0', '0x8000000000000000')
// shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
//
// Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"),
// NOT the fieldSelector format ("metadata.uid"). Currently supported paths:
// - object.metadata.uid
// - object.metadata.namespace
//
// hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix,
// defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a
// hash space. The full range is [0x0, 0x10000000000000000), where the exclusive
// upper bound equals 2^64.
//
// Examples:
// 2-shard split:
// shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')
// shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
// 4-shard split:
// shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')
// shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')
// shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')
// shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')
//
// This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
// +featureGate=ShardedListAndWatch
// +optional
optional string shardSelector = 15;
}
// ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource
@@ -1009,6 +1056,15 @@ message ServerAddressByClientCIDR {
optional string serverAddress = 2;
}
// ShardInfo describes the shard selector that was applied to produce a list response.
// Its presence on a list response indicates the list is a filtered subset.
message ShardInfo {
// selector is the shard selector string from the request, echoed back so clients
// can verify which shard they received and merge responses from multiple shards.
// +required
optional string selector = 1;
}
// Status is a return value for calls that don't return other objects.
message Status {
// Standard list metadata.
@@ -1,112 +0,0 @@
//go:build kubernetes_protomessage_one_more_release
// +build kubernetes_protomessage_one_more_release
/*
Copyright The Kubernetes Authors.
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.
*/
// Code generated by go-to-protobuf. DO NOT EDIT.
package v1
func (*APIGroup) ProtoMessage() {}
func (*APIGroupList) ProtoMessage() {}
func (*APIResource) ProtoMessage() {}
func (*APIResourceList) ProtoMessage() {}
func (*APIVersions) ProtoMessage() {}
func (*ApplyOptions) ProtoMessage() {}
func (*Condition) ProtoMessage() {}
func (*CreateOptions) ProtoMessage() {}
func (*DeleteOptions) ProtoMessage() {}
func (*Duration) ProtoMessage() {}
func (*FieldSelectorRequirement) ProtoMessage() {}
func (*FieldsV1) ProtoMessage() {}
func (*GetOptions) ProtoMessage() {}
func (*GroupKind) ProtoMessage() {}
func (*GroupResource) ProtoMessage() {}
func (*GroupVersion) ProtoMessage() {}
func (*GroupVersionForDiscovery) ProtoMessage() {}
func (*GroupVersionKind) ProtoMessage() {}
func (*GroupVersionResource) ProtoMessage() {}
func (*LabelSelector) ProtoMessage() {}
func (*LabelSelectorRequirement) ProtoMessage() {}
func (*List) ProtoMessage() {}
func (*ListMeta) ProtoMessage() {}
func (*ListOptions) ProtoMessage() {}
func (*ManagedFieldsEntry) ProtoMessage() {}
func (*MicroTime) ProtoMessage() {}
func (*ObjectMeta) ProtoMessage() {}
func (*OwnerReference) ProtoMessage() {}
func (*PartialObjectMetadata) ProtoMessage() {}
func (*PartialObjectMetadataList) ProtoMessage() {}
func (*Patch) ProtoMessage() {}
func (*PatchOptions) ProtoMessage() {}
func (*Preconditions) ProtoMessage() {}
func (*RootPaths) ProtoMessage() {}
func (*ServerAddressByClientCIDR) ProtoMessage() {}
func (*Status) ProtoMessage() {}
func (*StatusCause) ProtoMessage() {}
func (*StatusDetails) ProtoMessage() {}
func (*TableOptions) ProtoMessage() {}
func (*Time) ProtoMessage() {}
func (*Timestamp) ProtoMessage() {}
func (*TypeMeta) ProtoMessage() {}
func (*UpdateOptions) ProtoMessage() {}
func (*Verbs) ProtoMessage() {}
func (*WatchEvent) ProtoMessage() {}
+17 -10
View File
@@ -279,17 +279,18 @@ func ResetObjectMetaForStatus(meta, existingMeta Object) {
// MarshalJSON may get called on pointers or values, so implement MarshalJSON on value.
// http://stackoverflow.com/questions/21390979/custom-marshaljson-never-gets-called-in-go
func (f FieldsV1) MarshalJSON() ([]byte, error) {
if f.Raw == nil {
raw := f.GetRawBytes()
if len(raw) == 0 {
return []byte("null"), nil
}
if f.getContentType() == fieldsV1InvalidOrValidCBORObject {
var u map[string]interface{}
if err := cbor.Unmarshal(f.Raw, &u); err != nil {
if err := cbor.Unmarshal(raw, &u); err != nil {
return nil, fmt.Errorf("metav1.FieldsV1 cbor invalid: %w", err)
}
return utiljson.Marshal(u)
}
return f.Raw, nil
return raw, nil
}
// UnmarshalJSON implements json.Unmarshaler
@@ -298,7 +299,7 @@ func (f *FieldsV1) UnmarshalJSON(b []byte) error {
return errors.New("metav1.FieldsV1: UnmarshalJSON on nil pointer")
}
if !bytes.Equal(b, []byte("null")) {
f.Raw = append(f.Raw[0:0], b...)
f.SetRawBytes(b)
}
return nil
}
@@ -307,17 +308,18 @@ var _ json.Marshaler = FieldsV1{}
var _ json.Unmarshaler = &FieldsV1{}
func (f FieldsV1) MarshalCBOR() ([]byte, error) {
if f.Raw == nil {
raw := f.GetRawBytes()
if len(raw) == 0 {
return cbor.Marshal(nil)
}
if f.getContentType() == fieldsV1InvalidOrValidJSONObject {
var u map[string]interface{}
if err := utiljson.Unmarshal(f.Raw, &u); err != nil {
if err := utiljson.Unmarshal(raw, &u); err != nil {
return nil, fmt.Errorf("metav1.FieldsV1 json invalid: %w", err)
}
return cbor.Marshal(u)
}
return f.Raw, nil
return raw, nil
}
var cborNull = []byte{0xf6}
@@ -327,7 +329,7 @@ func (f *FieldsV1) UnmarshalCBOR(b []byte) error {
return errors.New("metav1.FieldsV1: UnmarshalCBOR on nil pointer")
}
if !bytes.Equal(b, cborNull) {
f.Raw = append(f.Raw[0:0], b...)
f.SetRawBytes(b)
}
return nil
}
@@ -362,8 +364,13 @@ const (
// or, if a tag-enclosed map, an initial byte with major type "tag" (0xf6, 0xa0...0xbf, or
// 0xc6...0xdb). The two sets of valid initial bytes don't intersect.
func (f FieldsV1) getContentType() int {
if len(f.Raw) > 0 {
p := f.Raw[0]
reader := f.GetRawReader()
if reader.Size() > 0 {
var buf [1]byte
if _, err := reader.Read(buf[:]); err != nil {
return fieldsV1InvalidOrEmpty
}
p := buf[0]
switch p {
case 'n', '{', '\t', '\r', '\n', ' ':
return fieldsV1InvalidOrValidJSONObject
+9
View File
@@ -94,6 +94,13 @@ type ListInterface interface {
SetRemainingItemCount(c *int64)
}
// ShardedListInterface can be implemented by list types to indicate that they
// represent a sharded subset of the full collection rather than the complete list.
type ShardedListInterface interface {
GetShardInfo() *ShardInfo
SetShardInfo(*ShardInfo)
}
// Type exposes the type and APIVersion of versioned or internal API objects.
// TODO: move this, and TypeMeta and ListMeta, to a different package
type Type interface {
@@ -113,6 +120,8 @@ func (meta *ListMeta) GetContinue() string { return meta.Continue
func (meta *ListMeta) SetContinue(c string) { meta.Continue = c }
func (meta *ListMeta) GetRemainingItemCount() *int64 { return meta.RemainingItemCount }
func (meta *ListMeta) SetRemainingItemCount(c *int64) { meta.RemainingItemCount = c }
func (meta *ListMeta) GetShardInfo() *ShardInfo { return meta.ShardInfo }
func (meta *ListMeta) SetShardInfo(s *ShardInfo) { meta.ShardInfo = s }
func (obj *TypeMeta) GetObjectKind() schema.ObjectKind { return obj }
-1
View File
@@ -1,5 +1,4 @@
//go:build !notest
// +build !notest
/*
Copyright 2020 The Kubernetes Authors.
-1
View File
@@ -1,5 +1,4 @@
//go:build !notest
// +build !notest
/*
Copyright 2020 The Kubernetes Authors.
+52 -21
View File
@@ -92,6 +92,26 @@ type ListMeta struct {
// should not rely on the remainingItemCount to be set or to be exact.
// +optional
RemainingItemCount *int64 `json:"remainingItemCount,omitempty" protobuf:"bytes,4,opt,name=remainingItemCount"`
// shardInfo is set when the list is a filtered subset of the full collection,
// as selected by a shard selector on the request. It echoes back the selector
// so clients can verify which shard they received and merge sharded responses.
// Clients should not cache sharded list responses as a full representation
// of the collection.
//
// This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
// +featureGate=ShardedListAndWatch
// +optional
ShardInfo *ShardInfo `json:"shardInfo,omitempty" protobuf:"bytes,5,opt,name=shardInfo"`
}
// ShardInfo describes the shard selector that was applied to produce a list response.
// Its presence on a list response indicates the list is a filtered subset.
type ShardInfo struct {
// selector is the shard selector string from the request, echoed back so clients
// can verify which shard they received and merge responses from multiple shards.
// +required
Selector string `json:"selector" protobuf:"bytes,1,opt,name=selector"`
}
// Field path constants that are specific to the internal API
@@ -430,6 +450,38 @@ type ListOptions struct {
// compatibility reasons) and to false otherwise.
// +optional
SendInitialEvents *bool `json:"sendInitialEvents,omitempty" protobuf:"varint,11,opt,name=sendInitialEvents"`
// shardSelector restricts the list of returned objects using a CEL-based
// shard selector expression. The format uses the shardRange() function
// combined with || (logical OR) to specify one or more hash ranges:
//
// shardRange(object.metadata.uid, '0x0', '0x8000000000000000')
// shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
//
// Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"),
// NOT the fieldSelector format ("metadata.uid"). Currently supported paths:
// - object.metadata.uid
// - object.metadata.namespace
//
// hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix,
// defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a
// hash space. The full range is [0x0, 0x10000000000000000), where the exclusive
// upper bound equals 2^64.
//
// Examples:
// 2-shard split:
// shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')
// shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
// 4-shard split:
// shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')
// shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')
// shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')
// shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')
//
// This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
// +featureGate=ShardedListAndWatch
// +optional
ShardSelector string `json:"shardSelector,omitempty" protobuf:"bytes,15,opt,name=shardSelector"`
}
const (
@@ -1384,27 +1436,6 @@ const (
ManagedFieldsOperationUpdate ManagedFieldsOperationType = "Update"
)
// FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.
//
// Each key is either a '.' representing the field itself, and will always map to an empty set,
// or a string representing a sub-field or item. The string will follow one of these four formats:
// 'f:<name>', where <name> is the name of a field in a struct, or key in a map
// 'v:<value>', where <value> is the exact json formatted value of a list item
// 'i:<index>', where <index> is position of a item in a list
// 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values
// If a key maps to an empty Fields value, the field that key represents is part of the set.
//
// The exact format is defined in sigs.k8s.io/structured-merge-diff
// +protobuf.options.(gogoproto.goproto_stringer)=false
type FieldsV1 struct {
// Raw is the underlying serialization of this object.
Raw []byte `json:"-" protobuf:"bytes,1,opt,name=Raw"`
}
func (f FieldsV1) String() string {
return string(f.Raw)
}
// TODO: Table does not generate to protobuf because of the interface{} - fix protobuf
// generation to support a meta type that can accept any valid JSON. This can be introduced
// in a v1 because clients a) receive an error if they try to access proto today, and b)
+11 -8
View File
@@ -147,14 +147,6 @@ func (FieldSelectorRequirement) SwaggerDoc() map[string]string {
return map_FieldSelectorRequirement
}
var map_FieldsV1 = map[string]string{
"": "FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff",
}
func (FieldsV1) SwaggerDoc() map[string]string {
return map_FieldsV1
}
var map_GetOptions = map[string]string{
"": "GetOptions is the standard query options to the standard REST get call.",
"resourceVersion": "resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details.\n\nDefaults to unset",
@@ -211,6 +203,7 @@ var map_ListMeta = map[string]string{
"resourceVersion": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency",
"continue": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.",
"remainingItemCount": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.",
"shardInfo": "shardInfo is set when the list is a filtered subset of the full collection, as selected by a shard selector on the request. It echoes back the selector so clients can verify which shard they received and merge sharded responses. Clients should not cache sharded list responses as a full representation of the collection.\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.",
}
func (ListMeta) SwaggerDoc() map[string]string {
@@ -229,6 +222,7 @@ var map_ListOptions = map[string]string{
"limit": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.",
"continue": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.",
"sendInitialEvents": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.",
"shardSelector": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.",
}
func (ListOptions) SwaggerDoc() map[string]string {
@@ -355,6 +349,15 @@ func (ServerAddressByClientCIDR) SwaggerDoc() map[string]string {
return map_ServerAddressByClientCIDR
}
var map_ShardInfo = map[string]string{
"": "ShardInfo describes the shard selector that was applied to produce a list response. Its presence on a list response indicates the list is a filtered subset.",
"selector": "selector is the shard selector string from the request, echoed back so clients can verify which shard they received and merge responses from multiple shards.",
}
func (ShardInfo) SwaggerDoc() map[string]string {
return map_ShardInfo
}
var map_Status = map[string]string{
"": "Status is a return value for calls that don't return other objects.",
"metadata": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
@@ -440,6 +440,13 @@ func autoConvert_url_Values_To_v1_ListOptions(in *url.Values, out *ListOptions,
} else {
out.SendInitialEvents = nil
}
if values, ok := map[string][]string(*in)["shardSelector"]; ok && len(values) > 0 {
if err := runtime.Convert_Slice_string_To_string(&values, &out.ShardSelector, s); err != nil {
return err
}
} else {
out.ShardSelector = ""
}
return nil
}
+22 -23
View File
@@ -353,27 +353,6 @@ func (in *FieldSelectorRequirement) DeepCopy() *FieldSelectorRequirement {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *FieldsV1) DeepCopyInto(out *FieldsV1) {
*out = *in
if in.Raw != nil {
in, out := &in.Raw, &out.Raw
*out = make([]byte, len(*in))
copy(*out, *in)
}
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FieldsV1.
func (in *FieldsV1) DeepCopy() *FieldsV1 {
if in == nil {
return nil
}
out := new(FieldsV1)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *GetOptions) DeepCopyInto(out *GetOptions) {
*out = *in
@@ -606,6 +585,11 @@ func (in *ListMeta) DeepCopyInto(out *ListMeta) {
*out = new(int64)
**out = **in
}
if in.ShardInfo != nil {
in, out := &in.ShardInfo, &out.ShardInfo
*out = new(ShardInfo)
**out = **in
}
return
}
@@ -663,8 +647,7 @@ func (in *ManagedFieldsEntry) DeepCopyInto(out *ManagedFieldsEntry) {
}
if in.FieldsV1 != nil {
in, out := &in.FieldsV1, &out.FieldsV1
*out = new(FieldsV1)
(*in).DeepCopyInto(*out)
*out = (*in).DeepCopy()
}
return
}
@@ -947,6 +930,22 @@ func (in *ServerAddressByClientCIDR) DeepCopy() *ServerAddressByClientCIDR {
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ShardInfo) DeepCopyInto(out *ShardInfo) {
*out = *in
return
}
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ShardInfo.
func (in *ShardInfo) DeepCopy() *ShardInfo {
if in == nil {
return nil
}
out := new(ShardInfo)
in.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Status) DeepCopyInto(out *Status) {
*out = *in
@@ -201,6 +201,11 @@ func (in ServerAddressByClientCIDR) OpenAPIModelName() string {
return "io.k8s.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR"
}
// OpenAPIModelName returns the OpenAPI model name for this type.
func (in ShardInfo) OpenAPIModelName() string {
return "io.k8s.apimachinery.pkg.apis.meta.v1.ShardInfo"
}
// OpenAPIModelName returns the OpenAPI model name for this type.
func (in Status) OpenAPIModelName() string {
return "io.k8s.apimachinery.pkg.apis.meta.v1.Status"