2019-01-18 01:50:10 +00:00
|
|
|
/*
|
|
|
|
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 protoc-gen-gogo. DO NOT EDIT.
|
|
|
|
// source: k8s.io/kubernetes/vendor/k8s.io/api/apps/v1/generated.proto
|
|
|
|
|
|
|
|
package v1
|
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
import (
|
|
|
|
fmt "fmt"
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
io "io"
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
proto "github.com/gogo/protobuf/proto"
|
|
|
|
k8s_io_api_core_v1 "k8s.io/api/core/v1"
|
|
|
|
v11 "k8s.io/api/core/v1"
|
|
|
|
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
math "math"
|
|
|
|
math_bits "math/bits"
|
|
|
|
reflect "reflect"
|
|
|
|
strings "strings"
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
intstr "k8s.io/apimachinery/pkg/util/intstr"
|
|
|
|
)
|
2019-01-18 01:50:10 +00:00
|
|
|
|
|
|
|
// 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.
|
2021-05-15 10:08:31 +00:00
|
|
|
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
|
|
|
func (m *ControllerRevision) Reset() { *m = ControllerRevision{} }
|
|
|
|
func (*ControllerRevision) ProtoMessage() {}
|
|
|
|
func (*ControllerRevision) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{0}
|
|
|
|
}
|
|
|
|
func (m *ControllerRevision) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *ControllerRevision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *ControllerRevision) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ControllerRevision.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ControllerRevision) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ControllerRevision) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ControllerRevision.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ControllerRevision proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *ControllerRevisionList) Reset() { *m = ControllerRevisionList{} }
|
|
|
|
func (*ControllerRevisionList) ProtoMessage() {}
|
|
|
|
func (*ControllerRevisionList) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{1}
|
|
|
|
}
|
|
|
|
func (m *ControllerRevisionList) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *ControllerRevisionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *ControllerRevisionList) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ControllerRevisionList.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ControllerRevisionList) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ControllerRevisionList) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ControllerRevisionList.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ControllerRevisionList proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DaemonSet) Reset() { *m = DaemonSet{} }
|
|
|
|
func (*DaemonSet) ProtoMessage() {}
|
|
|
|
func (*DaemonSet) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{2}
|
|
|
|
}
|
|
|
|
func (m *DaemonSet) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *DaemonSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *DaemonSet) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DaemonSet.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DaemonSet) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *DaemonSet) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DaemonSet.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_DaemonSet proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *DaemonSetCondition) Reset() { *m = DaemonSetCondition{} }
|
|
|
|
func (*DaemonSetCondition) ProtoMessage() {}
|
|
|
|
func (*DaemonSetCondition) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{3}
|
|
|
|
}
|
|
|
|
func (m *DaemonSetCondition) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *DaemonSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *DaemonSetCondition) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DaemonSetCondition.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DaemonSetCondition) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *DaemonSetCondition) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DaemonSetCondition.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DaemonSetCondition proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DaemonSetList) Reset() { *m = DaemonSetList{} }
|
|
|
|
func (*DaemonSetList) ProtoMessage() {}
|
|
|
|
func (*DaemonSetList) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{4}
|
|
|
|
}
|
|
|
|
func (m *DaemonSetList) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *DaemonSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *DaemonSetList) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DaemonSetList.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DaemonSetList) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *DaemonSetList) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DaemonSetList.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DaemonSetList proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DaemonSetSpec) Reset() { *m = DaemonSetSpec{} }
|
|
|
|
func (*DaemonSetSpec) ProtoMessage() {}
|
|
|
|
func (*DaemonSetSpec) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{5}
|
|
|
|
}
|
|
|
|
func (m *DaemonSetSpec) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *DaemonSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *DaemonSetSpec) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DaemonSetSpec.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DaemonSetSpec) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *DaemonSetSpec) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DaemonSetSpec.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_DaemonSetSpec proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DaemonSetStatus) Reset() { *m = DaemonSetStatus{} }
|
|
|
|
func (*DaemonSetStatus) ProtoMessage() {}
|
|
|
|
func (*DaemonSetStatus) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{6}
|
|
|
|
}
|
|
|
|
func (m *DaemonSetStatus) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *DaemonSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *DaemonSetStatus) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DaemonSetStatus.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DaemonSetStatus) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *DaemonSetStatus) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DaemonSetStatus.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DaemonSetStatus proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DaemonSetUpdateStrategy) Reset() { *m = DaemonSetUpdateStrategy{} }
|
|
|
|
func (*DaemonSetUpdateStrategy) ProtoMessage() {}
|
|
|
|
func (*DaemonSetUpdateStrategy) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{7}
|
|
|
|
}
|
|
|
|
func (m *DaemonSetUpdateStrategy) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *DaemonSetUpdateStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *DaemonSetUpdateStrategy) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DaemonSetUpdateStrategy.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DaemonSetUpdateStrategy) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *DaemonSetUpdateStrategy) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DaemonSetUpdateStrategy.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DaemonSetUpdateStrategy proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Deployment) Reset() { *m = Deployment{} }
|
|
|
|
func (*Deployment) ProtoMessage() {}
|
|
|
|
func (*Deployment) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{8}
|
|
|
|
}
|
|
|
|
func (m *Deployment) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *Deployment) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Deployment.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Deployment) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *Deployment) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Deployment.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Deployment proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DeploymentCondition) Reset() { *m = DeploymentCondition{} }
|
|
|
|
func (*DeploymentCondition) ProtoMessage() {}
|
|
|
|
func (*DeploymentCondition) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{9}
|
|
|
|
}
|
|
|
|
func (m *DeploymentCondition) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *DeploymentCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *DeploymentCondition) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DeploymentCondition.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DeploymentCondition) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *DeploymentCondition) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DeploymentCondition.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DeploymentCondition proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DeploymentList) Reset() { *m = DeploymentList{} }
|
|
|
|
func (*DeploymentList) ProtoMessage() {}
|
|
|
|
func (*DeploymentList) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{10}
|
|
|
|
}
|
|
|
|
func (m *DeploymentList) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *DeploymentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *DeploymentList) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DeploymentList.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DeploymentList) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *DeploymentList) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DeploymentList.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DeploymentList proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *DeploymentSpec) Reset() { *m = DeploymentSpec{} }
|
|
|
|
func (*DeploymentSpec) ProtoMessage() {}
|
|
|
|
func (*DeploymentSpec) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{11}
|
|
|
|
}
|
|
|
|
func (m *DeploymentSpec) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *DeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *DeploymentSpec) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DeploymentSpec.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DeploymentSpec) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *DeploymentSpec) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DeploymentSpec.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_DeploymentSpec proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *DeploymentStatus) Reset() { *m = DeploymentStatus{} }
|
|
|
|
func (*DeploymentStatus) ProtoMessage() {}
|
|
|
|
func (*DeploymentStatus) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{12}
|
|
|
|
}
|
|
|
|
func (m *DeploymentStatus) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *DeploymentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *DeploymentStatus) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DeploymentStatus.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DeploymentStatus) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *DeploymentStatus) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DeploymentStatus.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_DeploymentStatus proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *DeploymentStrategy) Reset() { *m = DeploymentStrategy{} }
|
|
|
|
func (*DeploymentStrategy) ProtoMessage() {}
|
|
|
|
func (*DeploymentStrategy) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{13}
|
|
|
|
}
|
|
|
|
func (m *DeploymentStrategy) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *DeploymentStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *DeploymentStrategy) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DeploymentStrategy.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DeploymentStrategy) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *DeploymentStrategy) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DeploymentStrategy.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_DeploymentStrategy proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *ReplicaSet) Reset() { *m = ReplicaSet{} }
|
|
|
|
func (*ReplicaSet) ProtoMessage() {}
|
|
|
|
func (*ReplicaSet) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{14}
|
|
|
|
}
|
|
|
|
func (m *ReplicaSet) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *ReplicaSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *ReplicaSet) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ReplicaSet.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ReplicaSet) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ReplicaSet) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ReplicaSet.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_ReplicaSet proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *ReplicaSetCondition) Reset() { *m = ReplicaSetCondition{} }
|
|
|
|
func (*ReplicaSetCondition) ProtoMessage() {}
|
|
|
|
func (*ReplicaSetCondition) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{15}
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetCondition) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetCondition) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ReplicaSetCondition.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetCondition) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetCondition) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ReplicaSetCondition.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_ReplicaSetCondition proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *ReplicaSetList) Reset() { *m = ReplicaSetList{} }
|
|
|
|
func (*ReplicaSetList) ProtoMessage() {}
|
|
|
|
func (*ReplicaSetList) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{16}
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetList) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetList) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ReplicaSetList.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetList) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetList) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ReplicaSetList.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_ReplicaSetList proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *ReplicaSetSpec) Reset() { *m = ReplicaSetSpec{} }
|
|
|
|
func (*ReplicaSetSpec) ProtoMessage() {}
|
|
|
|
func (*ReplicaSetSpec) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{17}
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetSpec) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetSpec) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ReplicaSetSpec.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetSpec) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetSpec) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ReplicaSetSpec.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_ReplicaSetSpec proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *ReplicaSetStatus) Reset() { *m = ReplicaSetStatus{} }
|
|
|
|
func (*ReplicaSetStatus) ProtoMessage() {}
|
|
|
|
func (*ReplicaSetStatus) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{18}
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetStatus) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetStatus) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ReplicaSetStatus.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetStatus) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetStatus) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ReplicaSetStatus.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_ReplicaSetStatus proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *RollingUpdateDaemonSet) Reset() { *m = RollingUpdateDaemonSet{} }
|
|
|
|
func (*RollingUpdateDaemonSet) ProtoMessage() {}
|
|
|
|
func (*RollingUpdateDaemonSet) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{19}
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateDaemonSet) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateDaemonSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateDaemonSet) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RollingUpdateDaemonSet.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateDaemonSet) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateDaemonSet) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RollingUpdateDaemonSet.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_RollingUpdateDaemonSet proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
|
|
|
func (m *RollingUpdateDeployment) Reset() { *m = RollingUpdateDeployment{} }
|
|
|
|
func (*RollingUpdateDeployment) ProtoMessage() {}
|
|
|
|
func (*RollingUpdateDeployment) Descriptor() ([]byte, []int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{20}
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateDeployment) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *RollingUpdateDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateDeployment) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RollingUpdateDeployment.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateDeployment) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateDeployment) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RollingUpdateDeployment.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_RollingUpdateDeployment proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
|
|
|
func (m *RollingUpdateStatefulSetStrategy) Reset() { *m = RollingUpdateStatefulSetStrategy{} }
|
|
|
|
func (*RollingUpdateStatefulSetStrategy) ProtoMessage() {}
|
|
|
|
func (*RollingUpdateStatefulSetStrategy) Descriptor() ([]byte, []int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{21}
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateStatefulSetStrategy) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateStatefulSetStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateStatefulSetStrategy) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_RollingUpdateStatefulSetStrategy.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateStatefulSetStrategy) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateStatefulSetStrategy) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_RollingUpdateStatefulSetStrategy.DiscardUnknown(m)
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_RollingUpdateStatefulSetStrategy proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *StatefulSet) Reset() { *m = StatefulSet{} }
|
|
|
|
func (*StatefulSet) ProtoMessage() {}
|
|
|
|
func (*StatefulSet) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{22}
|
|
|
|
}
|
|
|
|
func (m *StatefulSet) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *StatefulSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *StatefulSet) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatefulSet.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *StatefulSet) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *StatefulSet) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatefulSet.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_StatefulSet proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *StatefulSetCondition) Reset() { *m = StatefulSetCondition{} }
|
|
|
|
func (*StatefulSetCondition) ProtoMessage() {}
|
|
|
|
func (*StatefulSetCondition) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{23}
|
|
|
|
}
|
|
|
|
func (m *StatefulSetCondition) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *StatefulSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *StatefulSetCondition) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatefulSetCondition.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *StatefulSetCondition) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *StatefulSetCondition) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatefulSetCondition.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_StatefulSetCondition proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *StatefulSetList) Reset() { *m = StatefulSetList{} }
|
|
|
|
func (*StatefulSetList) ProtoMessage() {}
|
|
|
|
func (*StatefulSetList) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{24}
|
|
|
|
}
|
|
|
|
func (m *StatefulSetList) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *StatefulSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *StatefulSetList) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatefulSetList.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *StatefulSetList) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *StatefulSetList) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatefulSetList.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_StatefulSetList proto.InternalMessageInfo
|
|
|
|
|
2022-04-23 09:01:19 +00:00
|
|
|
func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) Reset() {
|
|
|
|
*m = StatefulSetPersistentVolumeClaimRetentionPolicy{}
|
|
|
|
}
|
|
|
|
func (*StatefulSetPersistentVolumeClaimRetentionPolicy) ProtoMessage() {}
|
|
|
|
func (*StatefulSetPersistentVolumeClaimRetentionPolicy) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{25}
|
|
|
|
}
|
|
|
|
func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatefulSetPersistentVolumeClaimRetentionPolicy.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatefulSetPersistentVolumeClaimRetentionPolicy.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_StatefulSetPersistentVolumeClaimRetentionPolicy proto.InternalMessageInfo
|
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *StatefulSetSpec) Reset() { *m = StatefulSetSpec{} }
|
|
|
|
func (*StatefulSetSpec) ProtoMessage() {}
|
|
|
|
func (*StatefulSetSpec) Descriptor() ([]byte, []int) {
|
2022-04-23 09:01:19 +00:00
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{26}
|
2021-05-15 10:08:31 +00:00
|
|
|
}
|
|
|
|
func (m *StatefulSetSpec) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *StatefulSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *StatefulSetSpec) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatefulSetSpec.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *StatefulSetSpec) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *StatefulSetSpec) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatefulSetSpec.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_StatefulSetSpec proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *StatefulSetStatus) Reset() { *m = StatefulSetStatus{} }
|
|
|
|
func (*StatefulSetStatus) ProtoMessage() {}
|
|
|
|
func (*StatefulSetStatus) Descriptor() ([]byte, []int) {
|
2022-04-23 09:01:19 +00:00
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{27}
|
2021-05-15 10:08:31 +00:00
|
|
|
}
|
|
|
|
func (m *StatefulSetStatus) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *StatefulSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *StatefulSetStatus) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatefulSetStatus.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *StatefulSetStatus) XXX_Size() int {
|
|
|
|
return m.Size()
|
|
|
|
}
|
|
|
|
func (m *StatefulSetStatus) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatefulSetStatus.DiscardUnknown(m)
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
|
2021-05-15 10:08:31 +00:00
|
|
|
var xxx_messageInfo_StatefulSetStatus proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
|
|
|
func (m *StatefulSetUpdateStrategy) Reset() { *m = StatefulSetUpdateStrategy{} }
|
|
|
|
func (*StatefulSetUpdateStrategy) ProtoMessage() {}
|
|
|
|
func (*StatefulSetUpdateStrategy) Descriptor() ([]byte, []int) {
|
2022-04-23 09:01:19 +00:00
|
|
|
return fileDescriptor_e1014cab6f31e43b, []int{28}
|
2021-05-15 10:08:31 +00:00
|
|
|
}
|
|
|
|
func (m *StatefulSetUpdateStrategy) XXX_Unmarshal(b []byte) error {
|
|
|
|
return m.Unmarshal(b)
|
|
|
|
}
|
|
|
|
func (m *StatefulSetUpdateStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
b = b[:cap(b)]
|
|
|
|
n, err := m.MarshalToSizedBuffer(b)
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return b[:n], nil
|
|
|
|
}
|
|
|
|
func (m *StatefulSetUpdateStrategy) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatefulSetUpdateStrategy.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *StatefulSetUpdateStrategy) XXX_Size() int {
|
|
|
|
return m.Size()
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
func (m *StatefulSetUpdateStrategy) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatefulSetUpdateStrategy.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_StatefulSetUpdateStrategy proto.InternalMessageInfo
|
2019-01-18 01:50:10 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterType((*ControllerRevision)(nil), "k8s.io.api.apps.v1.ControllerRevision")
|
|
|
|
proto.RegisterType((*ControllerRevisionList)(nil), "k8s.io.api.apps.v1.ControllerRevisionList")
|
|
|
|
proto.RegisterType((*DaemonSet)(nil), "k8s.io.api.apps.v1.DaemonSet")
|
|
|
|
proto.RegisterType((*DaemonSetCondition)(nil), "k8s.io.api.apps.v1.DaemonSetCondition")
|
|
|
|
proto.RegisterType((*DaemonSetList)(nil), "k8s.io.api.apps.v1.DaemonSetList")
|
|
|
|
proto.RegisterType((*DaemonSetSpec)(nil), "k8s.io.api.apps.v1.DaemonSetSpec")
|
|
|
|
proto.RegisterType((*DaemonSetStatus)(nil), "k8s.io.api.apps.v1.DaemonSetStatus")
|
|
|
|
proto.RegisterType((*DaemonSetUpdateStrategy)(nil), "k8s.io.api.apps.v1.DaemonSetUpdateStrategy")
|
|
|
|
proto.RegisterType((*Deployment)(nil), "k8s.io.api.apps.v1.Deployment")
|
|
|
|
proto.RegisterType((*DeploymentCondition)(nil), "k8s.io.api.apps.v1.DeploymentCondition")
|
|
|
|
proto.RegisterType((*DeploymentList)(nil), "k8s.io.api.apps.v1.DeploymentList")
|
|
|
|
proto.RegisterType((*DeploymentSpec)(nil), "k8s.io.api.apps.v1.DeploymentSpec")
|
|
|
|
proto.RegisterType((*DeploymentStatus)(nil), "k8s.io.api.apps.v1.DeploymentStatus")
|
|
|
|
proto.RegisterType((*DeploymentStrategy)(nil), "k8s.io.api.apps.v1.DeploymentStrategy")
|
|
|
|
proto.RegisterType((*ReplicaSet)(nil), "k8s.io.api.apps.v1.ReplicaSet")
|
|
|
|
proto.RegisterType((*ReplicaSetCondition)(nil), "k8s.io.api.apps.v1.ReplicaSetCondition")
|
|
|
|
proto.RegisterType((*ReplicaSetList)(nil), "k8s.io.api.apps.v1.ReplicaSetList")
|
|
|
|
proto.RegisterType((*ReplicaSetSpec)(nil), "k8s.io.api.apps.v1.ReplicaSetSpec")
|
|
|
|
proto.RegisterType((*ReplicaSetStatus)(nil), "k8s.io.api.apps.v1.ReplicaSetStatus")
|
|
|
|
proto.RegisterType((*RollingUpdateDaemonSet)(nil), "k8s.io.api.apps.v1.RollingUpdateDaemonSet")
|
|
|
|
proto.RegisterType((*RollingUpdateDeployment)(nil), "k8s.io.api.apps.v1.RollingUpdateDeployment")
|
|
|
|
proto.RegisterType((*RollingUpdateStatefulSetStrategy)(nil), "k8s.io.api.apps.v1.RollingUpdateStatefulSetStrategy")
|
|
|
|
proto.RegisterType((*StatefulSet)(nil), "k8s.io.api.apps.v1.StatefulSet")
|
|
|
|
proto.RegisterType((*StatefulSetCondition)(nil), "k8s.io.api.apps.v1.StatefulSetCondition")
|
|
|
|
proto.RegisterType((*StatefulSetList)(nil), "k8s.io.api.apps.v1.StatefulSetList")
|
2022-04-23 09:01:19 +00:00
|
|
|
proto.RegisterType((*StatefulSetPersistentVolumeClaimRetentionPolicy)(nil), "k8s.io.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy")
|
2019-01-18 01:50:10 +00:00
|
|
|
proto.RegisterType((*StatefulSetSpec)(nil), "k8s.io.api.apps.v1.StatefulSetSpec")
|
|
|
|
proto.RegisterType((*StatefulSetStatus)(nil), "k8s.io.api.apps.v1.StatefulSetStatus")
|
|
|
|
proto.RegisterType((*StatefulSetUpdateStrategy)(nil), "k8s.io.api.apps.v1.StatefulSetUpdateStrategy")
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/apps/v1/generated.proto", fileDescriptor_e1014cab6f31e43b)
|
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptor_e1014cab6f31e43b = []byte{
|
2022-04-23 09:01:19 +00:00
|
|
|
// 2149 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0xcb, 0x6f, 0x1b, 0xc7,
|
|
|
|
0x19, 0xd7, 0xf2, 0x21, 0x51, 0x23, 0x4b, 0xb2, 0x47, 0xaa, 0xc4, 0xd8, 0x0d, 0xe9, 0xb2, 0xae,
|
|
|
|
0xa3, 0xc4, 0x31, 0x59, 0x3b, 0x4e, 0x50, 0xc4, 0x45, 0x02, 0x91, 0x4a, 0xd3, 0x34, 0x7a, 0x75,
|
|
|
|
0x64, 0x39, 0x80, 0x9b, 0x16, 0x1d, 0x2d, 0xc7, 0xd4, 0x46, 0xfb, 0xc2, 0xee, 0x2c, 0x63, 0xa2,
|
|
|
|
0x97, 0xa2, 0x40, 0x6f, 0x3d, 0xf4, 0x3f, 0x29, 0x8a, 0xa2, 0xb9, 0x15, 0x41, 0xd0, 0x8b, 0x2f,
|
|
|
|
0x45, 0x83, 0x5e, 0x9a, 0x13, 0x51, 0x33, 0xa7, 0xa2, 0xe8, 0xad, 0xbd, 0xf8, 0xd2, 0x62, 0x66,
|
|
|
|
0x67, 0xdf, 0xb3, 0x22, 0x25, 0x27, 0xca, 0x03, 0xbe, 0x89, 0x33, 0xbf, 0xef, 0x37, 0xdf, 0xcc,
|
|
|
|
0x7c, 0xdf, 0x7c, 0xbf, 0x99, 0x15, 0xb8, 0x7d, 0xf4, 0x3d, 0xb7, 0xa9, 0x59, 0xad, 0x23, 0xef,
|
|
|
|
0x80, 0x38, 0x26, 0xa1, 0xc4, 0x6d, 0xf5, 0x89, 0xd9, 0xb5, 0x9c, 0x96, 0xe8, 0xc0, 0xb6, 0xd6,
|
|
|
|
0xc2, 0xb6, 0xed, 0xb6, 0xfa, 0x37, 0x5a, 0x3d, 0x62, 0x12, 0x07, 0x53, 0xd2, 0x6d, 0xda, 0x8e,
|
|
|
|
0x45, 0x2d, 0x08, 0x7d, 0x4c, 0x13, 0xdb, 0x5a, 0x93, 0x61, 0x9a, 0xfd, 0x1b, 0x17, 0xaf, 0xf7,
|
|
|
|
0x34, 0x7a, 0xe8, 0x1d, 0x34, 0x55, 0xcb, 0x68, 0xf5, 0xac, 0x9e, 0xd5, 0xe2, 0xd0, 0x03, 0xef,
|
|
|
|
0x3e, 0xff, 0xc5, 0x7f, 0xf0, 0xbf, 0x7c, 0x8a, 0x8b, 0x8d, 0xd8, 0x30, 0xaa, 0xe5, 0x10, 0xc9,
|
|
|
|
0x30, 0x17, 0x6f, 0x45, 0x18, 0x03, 0xab, 0x87, 0x9a, 0x49, 0x9c, 0x41, 0xcb, 0x3e, 0xea, 0xb1,
|
|
|
|
0x06, 0xb7, 0x65, 0x10, 0x8a, 0x65, 0x56, 0xad, 0x3c, 0x2b, 0xc7, 0x33, 0xa9, 0x66, 0x90, 0x8c,
|
|
|
|
0xc1, 0x2b, 0xe3, 0x0c, 0x5c, 0xf5, 0x90, 0x18, 0x38, 0x63, 0xf7, 0x52, 0x9e, 0x9d, 0x47, 0x35,
|
|
|
|
0xbd, 0xa5, 0x99, 0xd4, 0xa5, 0x4e, 0xda, 0xa8, 0xf1, 0x5f, 0x05, 0xc0, 0x8e, 0x65, 0x52, 0xc7,
|
|
|
|
0xd2, 0x75, 0xe2, 0x20, 0xd2, 0xd7, 0x5c, 0xcd, 0x32, 0xe1, 0xcf, 0x41, 0x85, 0xcd, 0xa7, 0x8b,
|
|
|
|
0x29, 0xae, 0x2a, 0x97, 0x95, 0xb5, 0xb9, 0x9b, 0xdf, 0x6d, 0x46, 0x8b, 0x1c, 0xd2, 0x37, 0xed,
|
|
|
|
0xa3, 0x1e, 0x6b, 0x70, 0x9b, 0x0c, 0xdd, 0xec, 0xdf, 0x68, 0xee, 0x1c, 0xbc, 0x47, 0x54, 0xba,
|
|
|
|
0x45, 0x28, 0x6e, 0xc3, 0x87, 0xc3, 0xfa, 0xd4, 0x68, 0x58, 0x07, 0x51, 0x1b, 0x0a, 0x59, 0xe1,
|
|
|
|
0x0e, 0x28, 0x71, 0xf6, 0x02, 0x67, 0xbf, 0x9e, 0xcb, 0x2e, 0x26, 0xdd, 0x44, 0xf8, 0xfd, 0x37,
|
|
|
|
0x1e, 0x50, 0x62, 0x32, 0xf7, 0xda, 0xe7, 0x04, 0x75, 0x69, 0x03, 0x53, 0x8c, 0x38, 0x11, 0x7c,
|
|
|
|
0x11, 0x54, 0x1c, 0xe1, 0x7e, 0xb5, 0x78, 0x59, 0x59, 0x2b, 0xb6, 0xcf, 0x0b, 0x54, 0x25, 0x98,
|
|
|
|
0x16, 0x0a, 0x11, 0x8d, 0x3f, 0x2b, 0x60, 0x25, 0x3b, 0xef, 0x4d, 0xcd, 0xa5, 0xf0, 0xdd, 0xcc,
|
|
|
|
0xdc, 0x9b, 0x93, 0xcd, 0x9d, 0x59, 0xf3, 0x99, 0x87, 0x03, 0x07, 0x2d, 0xb1, 0x79, 0xbf, 0x0d,
|
|
|
|
0xca, 0x1a, 0x25, 0x86, 0x5b, 0x2d, 0x5c, 0x2e, 0xae, 0xcd, 0xdd, 0xbc, 0xda, 0xcc, 0xc6, 0x6e,
|
|
|
|
0x33, 0xeb, 0x58, 0x7b, 0x5e, 0x50, 0x96, 0xdf, 0x62, 0xc6, 0xc8, 0xe7, 0x68, 0xfc, 0x4f, 0x01,
|
|
|
|
0xb3, 0x1b, 0x98, 0x18, 0x96, 0xb9, 0x47, 0xe8, 0x19, 0x6c, 0x5a, 0x07, 0x94, 0x5c, 0x9b, 0xa8,
|
|
|
|
0x62, 0xd3, 0xbe, 0x25, 0xf3, 0x3d, 0x74, 0x67, 0xcf, 0x26, 0x6a, 0xb4, 0x51, 0xec, 0x17, 0xe2,
|
|
|
|
0xc6, 0xf0, 0x6d, 0x30, 0xed, 0x52, 0x4c, 0x3d, 0x97, 0x6f, 0xd3, 0xdc, 0xcd, 0x6f, 0x1f, 0x4f,
|
|
|
|
0xc3, 0xa1, 0xed, 0x05, 0x41, 0x34, 0xed, 0xff, 0x46, 0x82, 0xa2, 0xf1, 0xcf, 0x02, 0x80, 0x21,
|
|
|
|
0xb6, 0x63, 0x99, 0x5d, 0x8d, 0xb2, 0xf8, 0x7d, 0x15, 0x94, 0xe8, 0xc0, 0x26, 0x7c, 0x19, 0x66,
|
|
|
|
0xdb, 0x57, 0x03, 0x2f, 0xee, 0x0c, 0x6c, 0xf2, 0x78, 0x58, 0x5f, 0xc9, 0x5a, 0xb0, 0x1e, 0xc4,
|
|
|
|
0x6d, 0xe0, 0x66, 0xe8, 0x5f, 0x81, 0x5b, 0xdf, 0x4a, 0x0e, 0xfd, 0x78, 0x58, 0x97, 0x1c, 0x16,
|
|
|
|
0xcd, 0x90, 0x29, 0xe9, 0x20, 0xec, 0x03, 0xa8, 0x63, 0x97, 0xde, 0x71, 0xb0, 0xe9, 0xfa, 0x23,
|
|
|
|
0x69, 0x06, 0x11, 0x33, 0x7f, 0x61, 0xb2, 0xed, 0x61, 0x16, 0xed, 0x8b, 0xc2, 0x0b, 0xb8, 0x99,
|
|
|
|
0x61, 0x43, 0x92, 0x11, 0xe0, 0x55, 0x30, 0xed, 0x10, 0xec, 0x5a, 0x66, 0xb5, 0xc4, 0x67, 0x11,
|
|
|
|
0x2e, 0x20, 0xe2, 0xad, 0x48, 0xf4, 0xc2, 0xe7, 0xc1, 0x8c, 0x41, 0x5c, 0x17, 0xf7, 0x48, 0xb5,
|
|
|
|
0xcc, 0x81, 0x8b, 0x02, 0x38, 0xb3, 0xe5, 0x37, 0xa3, 0xa0, 0xbf, 0xf1, 0x7b, 0x05, 0xcc, 0x87,
|
|
|
|
0x2b, 0x77, 0x06, 0xa9, 0xd2, 0x4e, 0xa6, 0xca, 0xb3, 0xc7, 0xc6, 0x49, 0x4e, 0x86, 0x7c, 0x58,
|
|
|
|
0x8c, 0xf9, 0xcc, 0x82, 0x10, 0xfe, 0x14, 0x54, 0x5c, 0xa2, 0x13, 0x95, 0x5a, 0x8e, 0xf0, 0xf9,
|
|
|
|
0xa5, 0x09, 0x7d, 0xc6, 0x07, 0x44, 0xdf, 0x13, 0xa6, 0xed, 0x73, 0xcc, 0xe9, 0xe0, 0x17, 0x0a,
|
|
|
|
0x29, 0xe1, 0x8f, 0x41, 0x85, 0x12, 0xc3, 0xd6, 0x31, 0x25, 0x22, 0x4d, 0x12, 0xf1, 0xcd, 0xc2,
|
|
|
|
0x85, 0x91, 0xed, 0x5a, 0xdd, 0x3b, 0x02, 0xc6, 0x13, 0x25, 0x5c, 0x87, 0xa0, 0x15, 0x85, 0x34,
|
|
|
|
0xf0, 0x08, 0x2c, 0x78, 0x76, 0x97, 0x21, 0x29, 0x3b, 0xba, 0x7b, 0x03, 0x11, 0x3e, 0xd7, 0x8e,
|
|
|
|
0x5d, 0x90, 0xfd, 0x84, 0x49, 0x7b, 0x45, 0x0c, 0xb0, 0x90, 0x6c, 0x47, 0x29, 0x6a, 0xb8, 0x0e,
|
|
|
|
0x16, 0x0d, 0xcd, 0x44, 0x04, 0x77, 0x07, 0x7b, 0x44, 0xb5, 0xcc, 0xae, 0xcb, 0x03, 0xa8, 0xdc,
|
|
|
|
0x5e, 0x15, 0x04, 0x8b, 0x5b, 0xc9, 0x6e, 0x94, 0xc6, 0xc3, 0x4d, 0xb0, 0x1c, 0x9c, 0xb3, 0x3f,
|
|
|
|
0xd4, 0x5c, 0x6a, 0x39, 0x83, 0x4d, 0xcd, 0xd0, 0x68, 0x75, 0x9a, 0xf3, 0x54, 0x47, 0xc3, 0xfa,
|
|
|
|
0x32, 0x92, 0xf4, 0x23, 0xa9, 0x55, 0xe3, 0x37, 0xd3, 0x60, 0x31, 0x75, 0x1a, 0xc0, 0xbb, 0x60,
|
|
|
|
0x45, 0xf5, 0x1c, 0x87, 0x98, 0x74, 0xdb, 0x33, 0x0e, 0x88, 0xb3, 0xa7, 0x1e, 0x92, 0xae, 0xa7,
|
|
|
|
0x93, 0x2e, 0xdf, 0xd1, 0x72, 0xbb, 0x26, 0x7c, 0x5d, 0xe9, 0x48, 0x51, 0x28, 0xc7, 0x1a, 0xfe,
|
|
|
|
0x08, 0x40, 0x93, 0x37, 0x6d, 0x69, 0xae, 0x1b, 0x72, 0x16, 0x38, 0x67, 0x98, 0x80, 0xdb, 0x19,
|
|
|
|
0x04, 0x92, 0x58, 0x31, 0x1f, 0xbb, 0xc4, 0xd5, 0x1c, 0xd2, 0x4d, 0xfb, 0x58, 0x4c, 0xfa, 0xb8,
|
|
|
|
0x21, 0x45, 0xa1, 0x1c, 0x6b, 0xf8, 0x32, 0x98, 0xf3, 0x47, 0xe3, 0x6b, 0x2e, 0x36, 0x67, 0x49,
|
|
|
|
0x90, 0xcd, 0x6d, 0x47, 0x5d, 0x28, 0x8e, 0x63, 0x53, 0xb3, 0x0e, 0x5c, 0xe2, 0xf4, 0x49, 0xf7,
|
|
|
|
0x4d, 0x5f, 0x03, 0xb0, 0x42, 0x59, 0xe6, 0x85, 0x32, 0x9c, 0xda, 0x4e, 0x06, 0x81, 0x24, 0x56,
|
|
|
|
0x6c, 0x6a, 0x7e, 0xd4, 0x64, 0xa6, 0x36, 0x9d, 0x9c, 0xda, 0xbe, 0x14, 0x85, 0x72, 0xac, 0x59,
|
|
|
|
0xec, 0xf9, 0x2e, 0xaf, 0xf7, 0xb1, 0xa6, 0xe3, 0x03, 0x9d, 0x54, 0x67, 0x92, 0xb1, 0xb7, 0x9d,
|
|
|
|
0xec, 0x46, 0x69, 0x3c, 0x7c, 0x13, 0x5c, 0xf0, 0x9b, 0xf6, 0x4d, 0x1c, 0x92, 0x54, 0x38, 0xc9,
|
|
|
|
0x33, 0x82, 0xe4, 0xc2, 0x76, 0x1a, 0x80, 0xb2, 0x36, 0xf0, 0x55, 0xb0, 0xa0, 0x5a, 0xba, 0xce,
|
|
|
|
0xe3, 0xb1, 0x63, 0x79, 0x26, 0xad, 0xce, 0x72, 0x16, 0xc8, 0x72, 0xa8, 0x93, 0xe8, 0x41, 0x29,
|
|
|
|
0x24, 0xbc, 0x07, 0x80, 0x1a, 0x94, 0x03, 0xb7, 0x0a, 0xf2, 0x0b, 0x7d, 0xb6, 0x0e, 0x45, 0x05,
|
|
|
|
0x38, 0x6c, 0x72, 0x51, 0x8c, 0xad, 0xf1, 0xa1, 0x02, 0x56, 0x73, 0x72, 0x1c, 0xbe, 0x9e, 0xa8,
|
|
|
|
0x7a, 0xd7, 0x52, 0x55, 0xef, 0x52, 0x8e, 0x59, 0xac, 0xf4, 0xa9, 0x60, 0x9e, 0xe9, 0x0e, 0xcd,
|
|
|
|
0xec, 0xf9, 0x10, 0x71, 0x82, 0xbd, 0x20, 0xf3, 0x1d, 0xc5, 0x81, 0xd1, 0x31, 0x7c, 0x61, 0x34,
|
|
|
|
0xac, 0xcf, 0x27, 0xfa, 0x50, 0x92, 0xb3, 0xf1, 0xab, 0x02, 0x00, 0x1b, 0xc4, 0xd6, 0xad, 0x81,
|
|
|
|
0x41, 0xcc, 0xb3, 0x50, 0x2d, 0x1b, 0x09, 0xd5, 0xd2, 0x90, 0x6e, 0x44, 0xe8, 0x4f, 0xae, 0x6c,
|
|
|
|
0xd9, 0x4c, 0xc9, 0x96, 0x2b, 0x63, 0x78, 0x8e, 0xd7, 0x2d, 0x7f, 0x2f, 0x82, 0xa5, 0x08, 0x1c,
|
|
|
|
0x09, 0x97, 0xdb, 0x89, 0x2d, 0x7c, 0x2e, 0xb5, 0x85, 0xab, 0x12, 0x93, 0xcf, 0x4d, 0xb9, 0xbc,
|
|
|
|
0x07, 0x16, 0x98, 0xae, 0xf0, 0x77, 0x8d, 0xab, 0x96, 0xe9, 0x13, 0xab, 0x96, 0xb0, 0xea, 0x6c,
|
|
|
|
0x26, 0x98, 0x50, 0x8a, 0x39, 0x47, 0x25, 0xcd, 0x7c, 0x15, 0x55, 0xd2, 0x1f, 0x14, 0xb0, 0x10,
|
|
|
|
0x6d, 0xd3, 0x19, 0xc8, 0xa4, 0x4e, 0x52, 0x26, 0xd5, 0x8e, 0x8f, 0xcb, 0x1c, 0x9d, 0xf4, 0xb7,
|
|
|
|
0x52, 0xdc, 0x6b, 0x2e, 0x94, 0xd6, 0xd8, 0x85, 0xca, 0xd6, 0x35, 0x15, 0xbb, 0xa2, 0xac, 0x9e,
|
|
|
|
0xf3, 0x2f, 0x53, 0x7e, 0x1b, 0x0a, 0x7b, 0x13, 0x92, 0xaa, 0xf0, 0xf9, 0x4a, 0xaa, 0xe2, 0x67,
|
|
|
|
0x23, 0xa9, 0xee, 0x80, 0x8a, 0x1b, 0x88, 0xa9, 0x12, 0xa7, 0xbc, 0x3a, 0x2e, 0x9d, 0x85, 0x8e,
|
|
|
|
0x0a, 0x59, 0x43, 0x05, 0x15, 0x32, 0xc9, 0xb4, 0x53, 0xf9, 0x8b, 0xd4, 0x4e, 0x2c, 0xbc, 0x6d,
|
|
|
|
0xec, 0xb9, 0xa4, 0xcb, 0x53, 0xa9, 0x12, 0x85, 0xf7, 0x2e, 0x6f, 0x45, 0xa2, 0x17, 0xee, 0x83,
|
|
|
|
0x55, 0xdb, 0xb1, 0x7a, 0x0e, 0x71, 0xdd, 0x0d, 0x82, 0xbb, 0xba, 0x66, 0x92, 0x60, 0x02, 0x7e,
|
|
|
|
0xd5, 0xbb, 0x34, 0x1a, 0xd6, 0x57, 0x77, 0xe5, 0x10, 0x94, 0x67, 0xdb, 0xf8, 0x53, 0x09, 0x9c,
|
|
|
|
0x4f, 0x9f, 0x88, 0x39, 0x42, 0x44, 0x39, 0x95, 0x10, 0x79, 0x31, 0x16, 0xa2, 0xbe, 0x4a, 0x8b,
|
|
|
|
0xdd, 0xf9, 0x33, 0x61, 0xba, 0x0e, 0x16, 0x85, 0xf0, 0x08, 0x3a, 0x85, 0x14, 0x0b, 0xb7, 0x67,
|
|
|
|
0x3f, 0xd9, 0x8d, 0xd2, 0x78, 0x78, 0x1b, 0xcc, 0x3b, 0x5c, 0x5b, 0x05, 0x04, 0xbe, 0x3e, 0xf9,
|
|
|
|
0x86, 0x20, 0x98, 0x47, 0xf1, 0x4e, 0x94, 0xc4, 0x32, 0x6d, 0x12, 0x49, 0x8e, 0x80, 0xa0, 0x94,
|
|
|
|
0xd4, 0x26, 0xeb, 0x69, 0x00, 0xca, 0xda, 0xc0, 0x2d, 0xb0, 0xe4, 0x99, 0x59, 0x2a, 0x3f, 0xd6,
|
|
|
|
0x2e, 0x09, 0xaa, 0xa5, 0xfd, 0x2c, 0x04, 0xc9, 0xec, 0xe0, 0x4f, 0x12, 0x72, 0x65, 0x9a, 0x9f,
|
|
|
|
0x22, 0xcf, 0x1d, 0x9f, 0x0e, 0x13, 0xeb, 0x15, 0x89, 0x8e, 0xaa, 0x4c, 0xaa, 0xa3, 0x1a, 0x1f,
|
|
|
|
0x28, 0x00, 0x66, 0x53, 0x70, 0xec, 0xe5, 0x3e, 0x63, 0x11, 0x2b, 0x91, 0x5d, 0xb9, 0xc2, 0xb9,
|
|
|
|
0x36, 0x5e, 0xe1, 0x44, 0x27, 0xe8, 0x64, 0x12, 0x47, 0x2c, 0xef, 0xd9, 0x3c, 0xcc, 0x4c, 0x20,
|
|
|
|
0x71, 0x22, 0x7f, 0x9e, 0x4c, 0xe2, 0xc4, 0x78, 0x8e, 0x97, 0x38, 0xff, 0x2a, 0x80, 0xa5, 0x08,
|
|
|
|
0x3c, 0xb1, 0xc4, 0x91, 0x98, 0x3c, 0x7d, 0x9c, 0x99, 0x4c, 0x76, 0x44, 0x4b, 0xf7, 0x25, 0x91,
|
|
|
|
0x1d, 0x91, 0x43, 0x39, 0xb2, 0xe3, 0x77, 0x85, 0xb8, 0xd7, 0x27, 0x94, 0x1d, 0x9f, 0xc1, 0x53,
|
|
|
|
0xc5, 0x57, 0x4e, 0xb9, 0x34, 0x3e, 0x2a, 0x82, 0xf3, 0xe9, 0x14, 0x4c, 0xd4, 0x41, 0x65, 0x6c,
|
|
|
|
0x1d, 0xdc, 0x05, 0xcb, 0xf7, 0x3d, 0x5d, 0x1f, 0xf0, 0x39, 0xc4, 0x8a, 0xa1, 0x5f, 0x41, 0xbf,
|
|
|
|
0x29, 0x2c, 0x97, 0x7f, 0x20, 0xc1, 0x20, 0xa9, 0x65, 0xb6, 0x2c, 0x96, 0x9e, 0xb4, 0x2c, 0x96,
|
|
|
|
0x4f, 0x51, 0x16, 0xe5, 0xca, 0xa2, 0x78, 0x2a, 0x65, 0x31, 0x71, 0x4d, 0x94, 0x1c, 0x57, 0x63,
|
|
|
|
0xef, 0xf0, 0x23, 0x05, 0xac, 0xc8, 0xaf, 0xcf, 0x50, 0x07, 0x0b, 0x06, 0x7e, 0x10, 0x7f, 0xbc,
|
|
|
|
0x18, 0x57, 0x30, 0x3c, 0xaa, 0xe9, 0x4d, 0xff, 0xeb, 0x4e, 0xf3, 0x2d, 0x93, 0xee, 0x38, 0x7b,
|
|
|
|
0xd4, 0xd1, 0xcc, 0x9e, 0x5f, 0x60, 0xb7, 0x12, 0x5c, 0x28, 0xc5, 0x0d, 0xef, 0x81, 0x8a, 0x81,
|
|
|
|
0x1f, 0xec, 0x79, 0x4e, 0x2f, 0x28, 0x84, 0x27, 0x1f, 0x87, 0xc7, 0xfe, 0x96, 0x60, 0x41, 0x21,
|
|
|
|
0x5f, 0xe3, 0x53, 0x05, 0xac, 0xe6, 0x54, 0xd0, 0xaf, 0xd1, 0x2c, 0x77, 0xc0, 0xe5, 0xc4, 0x24,
|
|
|
|
0x59, 0x42, 0x92, 0xfb, 0x9e, 0xce, 0x73, 0x53, 0xe8, 0x95, 0x6b, 0x60, 0xd6, 0xc6, 0x0e, 0xd5,
|
|
|
|
0x42, 0xa1, 0x5b, 0x6e, 0xcf, 0x8f, 0x86, 0xf5, 0xd9, 0xdd, 0xa0, 0x11, 0x45, 0xfd, 0x8d, 0x5f,
|
|
|
|
0x17, 0xc0, 0x5c, 0x8c, 0xe4, 0x0c, 0xb4, 0xc3, 0x1b, 0x09, 0xed, 0x20, 0xfd, 0x1a, 0x13, 0x9f,
|
|
|
|
0x55, 0x9e, 0x78, 0xd8, 0x4a, 0x89, 0x87, 0xef, 0x8c, 0x23, 0x3a, 0x5e, 0x3d, 0xfc, 0xbb, 0x00,
|
|
|
|
0x96, 0x63, 0xe8, 0x48, 0x3e, 0x7c, 0x3f, 0x21, 0x1f, 0xd6, 0x52, 0xf2, 0xa1, 0x2a, 0xb3, 0x79,
|
|
|
|
0xaa, 0x1f, 0xc6, 0xeb, 0x87, 0x3f, 0x2a, 0x60, 0x31, 0xb6, 0x76, 0x67, 0x20, 0x20, 0x36, 0x92,
|
|
|
|
0x02, 0xa2, 0x3e, 0x26, 0x5e, 0x72, 0x14, 0xc4, 0x7f, 0x14, 0xd0, 0x8a, 0xa1, 0x76, 0x89, 0xe3,
|
|
|
|
0x6a, 0x2e, 0x25, 0x26, 0xbd, 0x6b, 0xe9, 0x9e, 0x41, 0x3a, 0x3a, 0xd6, 0x0c, 0x44, 0x58, 0x83,
|
|
|
|
0x66, 0x99, 0xbb, 0x96, 0xae, 0xa9, 0x03, 0x88, 0xc1, 0xdc, 0xfb, 0x87, 0xc4, 0xdc, 0x20, 0x3a,
|
|
|
|
0xa1, 0xe2, 0x9b, 0xc1, 0x6c, 0xfb, 0xf5, 0xe0, 0x09, 0xfd, 0x9d, 0xa8, 0xeb, 0xf1, 0xb0, 0xbe,
|
|
|
|
0x36, 0x09, 0x23, 0x0f, 0xb0, 0x38, 0x27, 0xfc, 0x19, 0x00, 0xec, 0xe7, 0x9e, 0x8a, 0x83, 0x2f,
|
|
|
|
0x08, 0xb3, 0xed, 0xd7, 0x82, 0x34, 0x7c, 0x27, 0xec, 0x39, 0xd1, 0x00, 0x31, 0xc6, 0xc6, 0x5f,
|
|
|
|
0x67, 0x12, 0xdb, 0xf5, 0xb5, 0x7f, 0xb0, 0xf9, 0x05, 0x58, 0xee, 0x47, 0xab, 0x13, 0x00, 0x98,
|
|
|
|
0xd0, 0x60, 0xb1, 0xf3, 0xbc, 0x94, 0x5e, 0xb6, 0xae, 0x91, 0xbc, 0xb9, 0x2b, 0xa1, 0x43, 0xd2,
|
|
|
|
0x41, 0xe0, 0xcb, 0x60, 0x8e, 0x09, 0x04, 0x4d, 0x25, 0xdb, 0xd8, 0x08, 0x52, 0x29, 0xfc, 0xe4,
|
|
|
|
0xb2, 0x17, 0x75, 0xa1, 0x38, 0x0e, 0x1e, 0x82, 0x25, 0xdb, 0xea, 0x6e, 0x61, 0x13, 0xf7, 0x08,
|
|
|
|
0x2b, 0x7b, 0xfe, 0x56, 0xf2, 0xa7, 0x9c, 0xd9, 0xf6, 0x2b, 0xc1, 0x35, 0x7d, 0x37, 0x0b, 0x61,
|
|
|
|
0xd7, 0x20, 0x49, 0x33, 0x0f, 0x02, 0x19, 0x25, 0x34, 0x32, 0x5f, 0x08, 0x67, 0x32, 0xff, 0x56,
|
|
|
|
0x21, 0xcb, 0xa9, 0x53, 0x7e, 0x23, 0xcc, 0x7b, 0xa4, 0xaa, 0x9c, 0xea, 0x91, 0x4a, 0x22, 0xe3,
|
|
|
|
0x67, 0x4f, 0x28, 0xe3, 0x3f, 0x52, 0xc0, 0x15, 0x7b, 0x82, 0x34, 0xaa, 0x02, 0xbe, 0x2c, 0x9d,
|
|
|
|
0x31, 0xcb, 0x32, 0x49, 0x46, 0xb6, 0xd7, 0x46, 0xc3, 0xfa, 0x95, 0x49, 0x90, 0x68, 0x22, 0xd7,
|
|
|
|
0x1a, 0x1f, 0x94, 0xc1, 0x85, 0x4c, 0x79, 0xfc, 0x02, 0x5f, 0xcb, 0x32, 0x9a, 0xbe, 0x78, 0x02,
|
|
|
|
0x4d, 0xbf, 0x0e, 0x16, 0xc5, 0x27, 0xd6, 0xd4, 0x95, 0x20, 0xdc, 0xd3, 0x4e, 0xb2, 0x1b, 0xa5,
|
|
|
|
0xf1, 0xb2, 0xd7, 0xba, 0xf2, 0x09, 0x5f, 0xeb, 0xe2, 0x5e, 0x88, 0xff, 0x0c, 0xf2, 0x93, 0x2f,
|
|
|
|
0xeb, 0x85, 0xf8, 0x07, 0xa1, 0x34, 0x1e, 0xbe, 0x16, 0x64, 0x56, 0xc8, 0x30, 0xc3, 0x19, 0x52,
|
|
|
|
0xa9, 0x12, 0x12, 0xa4, 0xd0, 0x4f, 0xf4, 0x19, 0xf1, 0x5d, 0xc9, 0x67, 0xc4, 0xb5, 0x31, 0xa1,
|
|
|
|
0x3b, 0xf9, 0xc3, 0x9c, 0xf4, 0xda, 0x35, 0x77, 0xf2, 0x6b, 0x57, 0xe3, 0x2f, 0x0a, 0x78, 0x26,
|
|
|
|
0xf7, 0x4c, 0x81, 0xeb, 0x09, 0xb9, 0x76, 0x3d, 0x25, 0xd7, 0x9e, 0xcd, 0x35, 0x8c, 0x69, 0x36,
|
|
|
|
0x43, 0xfe, 0x66, 0x77, 0x6b, 0xec, 0x9b, 0x9d, 0x44, 0x8c, 0x8f, 0x7f, 0xbc, 0x6b, 0xaf, 0x3d,
|
|
|
|
0x7c, 0x54, 0x9b, 0xfa, 0xf8, 0x51, 0x6d, 0xea, 0x93, 0x47, 0xb5, 0xa9, 0x5f, 0x8e, 0x6a, 0xca,
|
|
|
|
0xc3, 0x51, 0x4d, 0xf9, 0x78, 0x54, 0x53, 0x3e, 0x19, 0xd5, 0x94, 0x7f, 0x8c, 0x6a, 0xca, 0x6f,
|
|
|
|
0x3f, 0xad, 0x4d, 0xdd, 0x2b, 0xf4, 0x6f, 0xfc, 0x3f, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x7f, 0x6b,
|
|
|
|
0xc0, 0xb5, 0x28, 0x00, 0x00,
|
2021-05-15 10:08:31 +00:00
|
|
|
}
|
|
|
|
|
2019-01-18 01:50:10 +00:00
|
|
|
func (m *ControllerRevision) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ControllerRevision) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ControllerRevision) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Revision))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
{
|
|
|
|
size, err := m.Data.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x12
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ControllerRevisionList) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ControllerRevisionList) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ControllerRevisionList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Items) > 0 {
|
2021-05-15 10:08:31 +00:00
|
|
|
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSet) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSet) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSet) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x1a
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetCondition) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetCondition) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= len(m.Message)
|
|
|
|
copy(dAtA[i:], m.Message)
|
2019-01-18 01:50:10 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
i -= len(m.Reason)
|
|
|
|
copy(dAtA[i:], m.Reason)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
{
|
|
|
|
size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i -= len(m.Status)
|
|
|
|
copy(dAtA[i:], m.Status)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i -= len(m.Type)
|
|
|
|
copy(dAtA[i:], m.Type)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetList) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetList) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Items) > 0 {
|
2021-05-15 10:08:31 +00:00
|
|
|
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetSpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetSpec) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.RevisionHistoryLimit != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x30
|
|
|
|
}
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x20
|
|
|
|
{
|
|
|
|
size, err := m.UpdateStrategy.MarshalToSizedBuffer(dAtA[:i])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x1a
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.Template.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
if m.Selector != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetStatus) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Conditions) > 0 {
|
2021-05-15 10:08:31 +00:00
|
|
|
for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x52
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.CollisionCount != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x48
|
|
|
|
}
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.NumberUnavailable))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x40
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.NumberAvailable))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x38
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedNumberScheduled))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x30
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x28
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.NumberReady))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x20
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.DesiredNumberScheduled))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.NumberMisscheduled))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentNumberScheduled))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetUpdateStrategy) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetUpdateStrategy) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetUpdateStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.RollingUpdate != nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= len(m.Type)
|
|
|
|
copy(dAtA[i:], m.Type)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Deployment) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Deployment) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Deployment) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x1a
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentCondition) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
|
|
|
|
func (m *DeploymentCondition) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
{
|
|
|
|
size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x3a
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.LastUpdateTime.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x32
|
|
|
|
i -= len(m.Message)
|
|
|
|
copy(dAtA[i:], m.Message)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
i -= len(m.Reason)
|
|
|
|
copy(dAtA[i:], m.Reason)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
i -= len(m.Status)
|
|
|
|
copy(dAtA[i:], m.Status)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i -= len(m.Type)
|
|
|
|
copy(dAtA[i:], m.Type)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentList) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentList) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Items) > 0 {
|
2021-05-15 10:08:31 +00:00
|
|
|
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentSpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentSpec) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.ProgressDeadlineSeconds != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.ProgressDeadlineSeconds))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x48
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
if m.Paused {
|
|
|
|
dAtA[i] = 1
|
|
|
|
} else {
|
|
|
|
dAtA[i] = 0
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x38
|
|
|
|
if m.RevisionHistoryLimit != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x30
|
|
|
|
}
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x28
|
|
|
|
{
|
|
|
|
size, err := m.Strategy.MarshalToSizedBuffer(dAtA[:i])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x22
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.Template.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
if m.Selector != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.Replicas != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentStatus) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.CollisionCount != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x40
|
|
|
|
}
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x38
|
2019-01-18 01:50:10 +00:00
|
|
|
if len(m.Conditions) > 0 {
|
2021-05-15 10:08:31 +00:00
|
|
|
for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x32
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.UnavailableReplicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x28
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x20
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedReplicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentStrategy) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentStrategy) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.RollingUpdate != nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= len(m.Type)
|
|
|
|
copy(dAtA[i:], m.Type)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSet) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSet) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSet) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x1a
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetCondition) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetCondition) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= len(m.Message)
|
|
|
|
copy(dAtA[i:], m.Message)
|
2019-01-18 01:50:10 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
i -= len(m.Reason)
|
|
|
|
copy(dAtA[i:], m.Reason)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
{
|
|
|
|
size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i -= len(m.Status)
|
|
|
|
copy(dAtA[i:], m.Status)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i -= len(m.Type)
|
|
|
|
copy(dAtA[i:], m.Type)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetList) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetList) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Items) > 0 {
|
2021-05-15 10:08:31 +00:00
|
|
|
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetSpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetSpec) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x20
|
|
|
|
{
|
|
|
|
size, err := m.Template.MarshalToSizedBuffer(dAtA[:i])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x1a
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.Selector != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.Replicas != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
}
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetStatus) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2019-01-18 01:50:10 +00:00
|
|
|
if len(m.Conditions) > 0 {
|
2021-05-15 10:08:31 +00:00
|
|
|
for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x32
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x28
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x20
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.FullyLabeledReplicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RollingUpdateDaemonSet) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RollingUpdateDaemonSet) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RollingUpdateDaemonSet) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.MaxSurge != nil {
|
|
|
|
{
|
|
|
|
size, err := m.MaxSurge.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if m.MaxUnavailable != nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RollingUpdateDeployment) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RollingUpdateDeployment) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RollingUpdateDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.MaxSurge != nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.MaxSurge.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x12
|
2021-05-15 10:08:31 +00:00
|
|
|
}
|
|
|
|
if m.MaxUnavailable != nil {
|
|
|
|
{
|
|
|
|
size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RollingUpdateStatefulSetStrategy) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RollingUpdateStatefulSetStrategy) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RollingUpdateStatefulSetStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Partition != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.Partition))
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSet) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSet) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSet) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.Status.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x1a
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
{
|
|
|
|
size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetCondition) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetCondition) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= len(m.Message)
|
|
|
|
copy(dAtA[i:], m.Message)
|
2019-01-18 01:50:10 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message)))
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x2a
|
|
|
|
i -= len(m.Reason)
|
|
|
|
copy(dAtA[i:], m.Reason)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x22
|
|
|
|
{
|
|
|
|
size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
i -= len(m.Status)
|
|
|
|
copy(dAtA[i:], m.Status)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i -= len(m.Type)
|
|
|
|
copy(dAtA[i:], m.Type)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetList) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetList) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if len(m.Items) > 0 {
|
2021-05-15 10:08:31 +00:00
|
|
|
for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
2022-04-23 09:01:19 +00:00
|
|
|
func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) 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 *StatefulSetPersistentVolumeClaimRetentionPolicy) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
i -= len(m.WhenScaled)
|
|
|
|
copy(dAtA[i:], m.WhenScaled)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.WhenScaled)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
i -= len(m.WhenDeleted)
|
|
|
|
copy(dAtA[i:], m.WhenDeleted)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.WhenDeleted)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
|
|
|
}
|
|
|
|
|
2019-01-18 01:50:10 +00:00
|
|
|
func (m *StatefulSetSpec) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetSpec) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2022-04-23 09:01:19 +00:00
|
|
|
if m.PersistentVolumeClaimRetentionPolicy != nil {
|
|
|
|
{
|
|
|
|
size, err := m.PersistentVolumeClaimRetentionPolicy.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x52
|
|
|
|
}
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x48
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.RevisionHistoryLimit != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x40
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.UpdateStrategy.MarshalToSizedBuffer(dAtA[:i])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x3a
|
|
|
|
i -= len(m.PodManagementPolicy)
|
|
|
|
copy(dAtA[i:], m.PodManagementPolicy)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodManagementPolicy)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x32
|
|
|
|
i -= len(m.ServiceName)
|
|
|
|
copy(dAtA[i:], m.ServiceName)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceName)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x2a
|
2019-01-18 01:50:10 +00:00
|
|
|
if len(m.VolumeClaimTemplates) > 0 {
|
2021-05-15 10:08:31 +00:00
|
|
|
for iNdEx := len(m.VolumeClaimTemplates) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.VolumeClaimTemplates[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
2019-01-18 01:50:10 +00:00
|
|
|
dAtA[i] = 0x22
|
2021-05-15 10:08:31 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
size, err := m.Template.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
|
|
|
}
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x1a
|
|
|
|
if m.Selector != nil {
|
|
|
|
{
|
|
|
|
size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.Replicas != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetStatus) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetStatus) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
2022-04-23 09:01:19 +00:00
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x58
|
2019-01-18 01:50:10 +00:00
|
|
|
if len(m.Conditions) > 0 {
|
2021-05-15 10:08:31 +00:00
|
|
|
for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- {
|
|
|
|
{
|
|
|
|
size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x52
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.CollisionCount != nil {
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x48
|
|
|
|
}
|
|
|
|
i -= len(m.UpdateRevision)
|
|
|
|
copy(dAtA[i:], m.UpdateRevision)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.UpdateRevision)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x3a
|
|
|
|
i -= len(m.CurrentRevision)
|
|
|
|
copy(dAtA[i:], m.CurrentRevision)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.CurrentRevision)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x32
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedReplicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x28
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentReplicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x20
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x18
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x10
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetUpdateStrategy) Marshal() (dAtA []byte, err error) {
|
|
|
|
size := m.Size()
|
|
|
|
dAtA = make([]byte, size)
|
2021-05-15 10:08:31 +00:00
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size])
|
2019-01-18 01:50:10 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return dAtA[:n], nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetUpdateStrategy) MarshalTo(dAtA []byte) (int, error) {
|
2021-05-15 10:08:31 +00:00
|
|
|
size := m.Size()
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size])
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetUpdateStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) {
|
|
|
|
i := len(dAtA)
|
2019-01-18 01:50:10 +00:00
|
|
|
_ = i
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.RollingUpdate != nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
{
|
|
|
|
size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i])
|
|
|
|
if err != nil {
|
|
|
|
return 0, err
|
|
|
|
}
|
|
|
|
i -= size
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(size))
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i--
|
|
|
|
dAtA[i] = 0x12
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
i -= len(m.Type)
|
|
|
|
copy(dAtA[i:], m.Type)
|
|
|
|
i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type)))
|
|
|
|
i--
|
|
|
|
dAtA[i] = 0xa
|
|
|
|
return len(dAtA) - i, nil
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int {
|
2021-05-15 10:08:31 +00:00
|
|
|
offset -= sovGenerated(v)
|
|
|
|
base := offset
|
2019-01-18 01:50:10 +00:00
|
|
|
for v >= 1<<7 {
|
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
|
v >>= 7
|
|
|
|
offset++
|
|
|
|
}
|
|
|
|
dAtA[offset] = uint8(v)
|
2021-05-15 10:08:31 +00:00
|
|
|
return base
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
func (m *ControllerRevision) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Data.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
n += 1 + sovGenerated(uint64(m.Revision))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ControllerRevisionList) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ListMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, e := range m.Items {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSet) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Spec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Status.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetCondition) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Type)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Status)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.LastTransitionTime.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Reason)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Message)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetList) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ListMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, e := range m.Items {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetSpec) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Selector != nil {
|
|
|
|
l = m.Selector.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
l = m.Template.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.UpdateStrategy.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
n += 1 + sovGenerated(uint64(m.MinReadySeconds))
|
|
|
|
if m.RevisionHistoryLimit != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetStatus) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
n += 1 + sovGenerated(uint64(m.CurrentNumberScheduled))
|
|
|
|
n += 1 + sovGenerated(uint64(m.NumberMisscheduled))
|
|
|
|
n += 1 + sovGenerated(uint64(m.DesiredNumberScheduled))
|
|
|
|
n += 1 + sovGenerated(uint64(m.NumberReady))
|
|
|
|
n += 1 + sovGenerated(uint64(m.ObservedGeneration))
|
|
|
|
n += 1 + sovGenerated(uint64(m.UpdatedNumberScheduled))
|
|
|
|
n += 1 + sovGenerated(uint64(m.NumberAvailable))
|
|
|
|
n += 1 + sovGenerated(uint64(m.NumberUnavailable))
|
|
|
|
if m.CollisionCount != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.CollisionCount))
|
|
|
|
}
|
|
|
|
if len(m.Conditions) > 0 {
|
|
|
|
for _, e := range m.Conditions {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DaemonSetUpdateStrategy) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Type)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.RollingUpdate != nil {
|
|
|
|
l = m.RollingUpdate.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Deployment) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Spec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Status.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentCondition) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Type)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Status)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Reason)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Message)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.LastUpdateTime.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.LastTransitionTime.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentList) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ListMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, e := range m.Items {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentSpec) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Replicas != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.Replicas))
|
|
|
|
}
|
|
|
|
if m.Selector != nil {
|
|
|
|
l = m.Selector.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
l = m.Template.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Strategy.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
n += 1 + sovGenerated(uint64(m.MinReadySeconds))
|
|
|
|
if m.RevisionHistoryLimit != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit))
|
|
|
|
}
|
|
|
|
n += 2
|
|
|
|
if m.ProgressDeadlineSeconds != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.ProgressDeadlineSeconds))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentStatus) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
n += 1 + sovGenerated(uint64(m.ObservedGeneration))
|
|
|
|
n += 1 + sovGenerated(uint64(m.Replicas))
|
|
|
|
n += 1 + sovGenerated(uint64(m.UpdatedReplicas))
|
|
|
|
n += 1 + sovGenerated(uint64(m.AvailableReplicas))
|
|
|
|
n += 1 + sovGenerated(uint64(m.UnavailableReplicas))
|
|
|
|
if len(m.Conditions) > 0 {
|
|
|
|
for _, e := range m.Conditions {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
n += 1 + sovGenerated(uint64(m.ReadyReplicas))
|
|
|
|
if m.CollisionCount != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.CollisionCount))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeploymentStrategy) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Type)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.RollingUpdate != nil {
|
|
|
|
l = m.RollingUpdate.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSet) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Spec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Status.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetCondition) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Type)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Status)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.LastTransitionTime.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Reason)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Message)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetList) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ListMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, e := range m.Items {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetSpec) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Replicas != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.Replicas))
|
|
|
|
}
|
|
|
|
if m.Selector != nil {
|
|
|
|
l = m.Selector.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
l = m.Template.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
n += 1 + sovGenerated(uint64(m.MinReadySeconds))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ReplicaSetStatus) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
n += 1 + sovGenerated(uint64(m.Replicas))
|
|
|
|
n += 1 + sovGenerated(uint64(m.FullyLabeledReplicas))
|
|
|
|
n += 1 + sovGenerated(uint64(m.ObservedGeneration))
|
|
|
|
n += 1 + sovGenerated(uint64(m.ReadyReplicas))
|
|
|
|
n += 1 + sovGenerated(uint64(m.AvailableReplicas))
|
|
|
|
if len(m.Conditions) > 0 {
|
|
|
|
for _, e := range m.Conditions {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RollingUpdateDaemonSet) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.MaxUnavailable != nil {
|
|
|
|
l = m.MaxUnavailable.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if m.MaxSurge != nil {
|
|
|
|
l = m.MaxSurge.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RollingUpdateDeployment) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.MaxUnavailable != nil {
|
|
|
|
l = m.MaxUnavailable.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
if m.MaxSurge != nil {
|
|
|
|
l = m.MaxSurge.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *RollingUpdateStatefulSetStrategy) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Partition != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.Partition))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSet) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ObjectMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Spec.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.Status.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetCondition) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Type)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Status)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.LastTransitionTime.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Reason)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.Message)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetList) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = m.ListMeta.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.Items) > 0 {
|
|
|
|
for _, e := range m.Items {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2022-04-23 09:01:19 +00:00
|
|
|
func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) Size() (n int) {
|
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.WhenDeleted)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.WhenScaled)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
2019-01-18 01:50:10 +00:00
|
|
|
func (m *StatefulSetSpec) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
if m.Replicas != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.Replicas))
|
|
|
|
}
|
|
|
|
if m.Selector != nil {
|
|
|
|
l = m.Selector.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
l = m.Template.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if len(m.VolumeClaimTemplates) > 0 {
|
|
|
|
for _, e := range m.VolumeClaimTemplates {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
l = len(m.ServiceName)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.PodManagementPolicy)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = m.UpdateStrategy.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.RevisionHistoryLimit != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit))
|
|
|
|
}
|
2022-04-23 09:01:19 +00:00
|
|
|
n += 1 + sovGenerated(uint64(m.MinReadySeconds))
|
|
|
|
if m.PersistentVolumeClaimRetentionPolicy != nil {
|
|
|
|
l = m.PersistentVolumeClaimRetentionPolicy.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetStatus) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
n += 1 + sovGenerated(uint64(m.ObservedGeneration))
|
|
|
|
n += 1 + sovGenerated(uint64(m.Replicas))
|
|
|
|
n += 1 + sovGenerated(uint64(m.ReadyReplicas))
|
|
|
|
n += 1 + sovGenerated(uint64(m.CurrentReplicas))
|
|
|
|
n += 1 + sovGenerated(uint64(m.UpdatedReplicas))
|
|
|
|
l = len(m.CurrentRevision)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
l = len(m.UpdateRevision)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.CollisionCount != nil {
|
|
|
|
n += 1 + sovGenerated(uint64(*m.CollisionCount))
|
|
|
|
}
|
|
|
|
if len(m.Conditions) > 0 {
|
|
|
|
for _, e := range m.Conditions {
|
|
|
|
l = e.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
}
|
2022-04-23 09:01:19 +00:00
|
|
|
n += 1 + sovGenerated(uint64(m.AvailableReplicas))
|
2019-01-18 01:50:10 +00:00
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatefulSetUpdateStrategy) Size() (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
if m == nil {
|
|
|
|
return 0
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
var l int
|
|
|
|
_ = l
|
|
|
|
l = len(m.Type)
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
if m.RollingUpdate != nil {
|
|
|
|
l = m.RollingUpdate.Size()
|
|
|
|
n += 1 + l + sovGenerated(uint64(l))
|
|
|
|
}
|
|
|
|
return n
|
|
|
|
}
|
|
|
|
|
|
|
|
func sovGenerated(x uint64) (n int) {
|
2021-05-15 10:08:31 +00:00
|
|
|
return (math_bits.Len64(x|1) + 6) / 7
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
func sozGenerated(x uint64) (n int) {
|
|
|
|
return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
|
|
|
|
}
|
|
|
|
func (this *ControllerRevision) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ControllerRevision{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Data:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Data), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`Revision:` + fmt.Sprintf("%v", this.Revision) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ControllerRevisionList) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
repeatedStringForItems := "[]ControllerRevision{"
|
|
|
|
for _, f := range this.Items {
|
|
|
|
repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ControllerRevision", "ControllerRevision", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForItems += "}"
|
2019-01-18 01:50:10 +00:00
|
|
|
s := strings.Join([]string{`&ControllerRevisionList{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Items:` + repeatedStringForItems + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *DaemonSet) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&DaemonSet{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DaemonSetSpec", "DaemonSetSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "DaemonSetStatus", "DaemonSetStatus", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *DaemonSetCondition) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&DaemonSetCondition{`,
|
|
|
|
`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
|
|
|
|
`Status:` + fmt.Sprintf("%v", this.Status) + `,`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
|
|
|
|
`Message:` + fmt.Sprintf("%v", this.Message) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *DaemonSetList) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
repeatedStringForItems := "[]DaemonSet{"
|
|
|
|
for _, f := range this.Items {
|
|
|
|
repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "DaemonSet", "DaemonSet", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForItems += "}"
|
2019-01-18 01:50:10 +00:00
|
|
|
s := strings.Join([]string{`&DaemonSetList{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Items:` + repeatedStringForItems + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *DaemonSetSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&DaemonSetSpec{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
|
|
|
|
`Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`UpdateStrategy:` + strings.Replace(strings.Replace(this.UpdateStrategy.String(), "DaemonSetUpdateStrategy", "DaemonSetUpdateStrategy", 1), `&`, ``, 1) + `,`,
|
|
|
|
`MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`,
|
|
|
|
`RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *DaemonSetStatus) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
repeatedStringForConditions := "[]DaemonSetCondition{"
|
|
|
|
for _, f := range this.Conditions {
|
|
|
|
repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "DaemonSetCondition", "DaemonSetCondition", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForConditions += "}"
|
2019-01-18 01:50:10 +00:00
|
|
|
s := strings.Join([]string{`&DaemonSetStatus{`,
|
|
|
|
`CurrentNumberScheduled:` + fmt.Sprintf("%v", this.CurrentNumberScheduled) + `,`,
|
|
|
|
`NumberMisscheduled:` + fmt.Sprintf("%v", this.NumberMisscheduled) + `,`,
|
|
|
|
`DesiredNumberScheduled:` + fmt.Sprintf("%v", this.DesiredNumberScheduled) + `,`,
|
|
|
|
`NumberReady:` + fmt.Sprintf("%v", this.NumberReady) + `,`,
|
|
|
|
`ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`,
|
|
|
|
`UpdatedNumberScheduled:` + fmt.Sprintf("%v", this.UpdatedNumberScheduled) + `,`,
|
|
|
|
`NumberAvailable:` + fmt.Sprintf("%v", this.NumberAvailable) + `,`,
|
|
|
|
`NumberUnavailable:` + fmt.Sprintf("%v", this.NumberUnavailable) + `,`,
|
|
|
|
`CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`Conditions:` + repeatedStringForConditions + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *DaemonSetUpdateStrategy) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&DaemonSetUpdateStrategy{`,
|
|
|
|
`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateDaemonSet", "RollingUpdateDaemonSet", 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *Deployment) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&Deployment{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DeploymentSpec", "DeploymentSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "DeploymentStatus", "DeploymentStatus", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *DeploymentCondition) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&DeploymentCondition{`,
|
|
|
|
`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
|
|
|
|
`Status:` + fmt.Sprintf("%v", this.Status) + `,`,
|
|
|
|
`Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
|
|
|
|
`Message:` + fmt.Sprintf("%v", this.Message) + `,`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`LastUpdateTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastUpdateTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
|
|
|
|
`LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *DeploymentList) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
repeatedStringForItems := "[]Deployment{"
|
|
|
|
for _, f := range this.Items {
|
|
|
|
repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Deployment", "Deployment", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForItems += "}"
|
2019-01-18 01:50:10 +00:00
|
|
|
s := strings.Join([]string{`&DeploymentList{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Items:` + repeatedStringForItems + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *DeploymentSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&DeploymentSpec{`,
|
|
|
|
`Replicas:` + valueToStringGenerated(this.Replicas) + `,`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
|
|
|
|
`Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`Strategy:` + strings.Replace(strings.Replace(this.Strategy.String(), "DeploymentStrategy", "DeploymentStrategy", 1), `&`, ``, 1) + `,`,
|
|
|
|
`MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`,
|
|
|
|
`RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`,
|
|
|
|
`Paused:` + fmt.Sprintf("%v", this.Paused) + `,`,
|
|
|
|
`ProgressDeadlineSeconds:` + valueToStringGenerated(this.ProgressDeadlineSeconds) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *DeploymentStatus) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
repeatedStringForConditions := "[]DeploymentCondition{"
|
|
|
|
for _, f := range this.Conditions {
|
|
|
|
repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "DeploymentCondition", "DeploymentCondition", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForConditions += "}"
|
2019-01-18 01:50:10 +00:00
|
|
|
s := strings.Join([]string{`&DeploymentStatus{`,
|
|
|
|
`ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`,
|
|
|
|
`Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
|
|
|
|
`UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`,
|
|
|
|
`AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`,
|
|
|
|
`UnavailableReplicas:` + fmt.Sprintf("%v", this.UnavailableReplicas) + `,`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`Conditions:` + repeatedStringForConditions + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`,
|
|
|
|
`CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *DeploymentStrategy) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&DeploymentStrategy{`,
|
|
|
|
`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateDeployment", "RollingUpdateDeployment", 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ReplicaSet) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ReplicaSet{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ReplicaSetSpec", "ReplicaSetSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "ReplicaSetStatus", "ReplicaSetStatus", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ReplicaSetCondition) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ReplicaSetCondition{`,
|
|
|
|
`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
|
|
|
|
`Status:` + fmt.Sprintf("%v", this.Status) + `,`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
|
|
|
|
`Message:` + fmt.Sprintf("%v", this.Message) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ReplicaSetList) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
repeatedStringForItems := "[]ReplicaSet{"
|
|
|
|
for _, f := range this.Items {
|
|
|
|
repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ReplicaSet", "ReplicaSet", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForItems += "}"
|
2019-01-18 01:50:10 +00:00
|
|
|
s := strings.Join([]string{`&ReplicaSetList{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Items:` + repeatedStringForItems + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ReplicaSetSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&ReplicaSetSpec{`,
|
|
|
|
`Replicas:` + valueToStringGenerated(this.Replicas) + `,`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
|
|
|
|
`Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *ReplicaSetStatus) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
repeatedStringForConditions := "[]ReplicaSetCondition{"
|
|
|
|
for _, f := range this.Conditions {
|
|
|
|
repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "ReplicaSetCondition", "ReplicaSetCondition", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForConditions += "}"
|
2019-01-18 01:50:10 +00:00
|
|
|
s := strings.Join([]string{`&ReplicaSetStatus{`,
|
|
|
|
`Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
|
|
|
|
`FullyLabeledReplicas:` + fmt.Sprintf("%v", this.FullyLabeledReplicas) + `,`,
|
|
|
|
`ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`,
|
|
|
|
`ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`,
|
|
|
|
`AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`Conditions:` + repeatedStringForConditions + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *RollingUpdateDaemonSet) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&RollingUpdateDaemonSet{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`,
|
|
|
|
`MaxSurge:` + strings.Replace(fmt.Sprintf("%v", this.MaxSurge), "IntOrString", "intstr.IntOrString", 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *RollingUpdateDeployment) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&RollingUpdateDeployment{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`,
|
|
|
|
`MaxSurge:` + strings.Replace(fmt.Sprintf("%v", this.MaxSurge), "IntOrString", "intstr.IntOrString", 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *RollingUpdateStatefulSetStrategy) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&RollingUpdateStatefulSetStrategy{`,
|
|
|
|
`Partition:` + valueToStringGenerated(this.Partition) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *StatefulSet) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&StatefulSet{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "StatefulSetSpec", "StatefulSetSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Status:` + strings.Replace(strings.Replace(this.Status.String(), "StatefulSetStatus", "StatefulSetStatus", 1), `&`, ``, 1) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *StatefulSetCondition) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&StatefulSetCondition{`,
|
|
|
|
`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
|
|
|
|
`Status:` + fmt.Sprintf("%v", this.Status) + `,`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`Reason:` + fmt.Sprintf("%v", this.Reason) + `,`,
|
|
|
|
`Message:` + fmt.Sprintf("%v", this.Message) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *StatefulSetList) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
repeatedStringForItems := "[]StatefulSet{"
|
|
|
|
for _, f := range this.Items {
|
|
|
|
repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "StatefulSet", "StatefulSet", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForItems += "}"
|
2019-01-18 01:50:10 +00:00
|
|
|
s := strings.Join([]string{`&StatefulSetList{`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`,
|
|
|
|
`Items:` + repeatedStringForItems + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2022-04-23 09:01:19 +00:00
|
|
|
func (this *StatefulSetPersistentVolumeClaimRetentionPolicy) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&StatefulSetPersistentVolumeClaimRetentionPolicy{`,
|
|
|
|
`WhenDeleted:` + fmt.Sprintf("%v", this.WhenDeleted) + `,`,
|
|
|
|
`WhenScaled:` + fmt.Sprintf("%v", this.WhenScaled) + `,`,
|
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
func (this *StatefulSetSpec) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
repeatedStringForVolumeClaimTemplates := "[]PersistentVolumeClaim{"
|
|
|
|
for _, f := range this.VolumeClaimTemplates {
|
|
|
|
repeatedStringForVolumeClaimTemplates += fmt.Sprintf("%v", f) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForVolumeClaimTemplates += "}"
|
2019-01-18 01:50:10 +00:00
|
|
|
s := strings.Join([]string{`&StatefulSetSpec{`,
|
|
|
|
`Replicas:` + valueToStringGenerated(this.Replicas) + `,`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`,
|
|
|
|
`Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`,
|
|
|
|
`VolumeClaimTemplates:` + repeatedStringForVolumeClaimTemplates + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`ServiceName:` + fmt.Sprintf("%v", this.ServiceName) + `,`,
|
|
|
|
`PodManagementPolicy:` + fmt.Sprintf("%v", this.PodManagementPolicy) + `,`,
|
|
|
|
`UpdateStrategy:` + strings.Replace(strings.Replace(this.UpdateStrategy.String(), "StatefulSetUpdateStrategy", "StatefulSetUpdateStrategy", 1), `&`, ``, 1) + `,`,
|
|
|
|
`RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`,
|
2022-04-23 09:01:19 +00:00
|
|
|
`MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`,
|
|
|
|
`PersistentVolumeClaimRetentionPolicy:` + strings.Replace(this.PersistentVolumeClaimRetentionPolicy.String(), "StatefulSetPersistentVolumeClaimRetentionPolicy", "StatefulSetPersistentVolumeClaimRetentionPolicy", 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *StatefulSetStatus) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
repeatedStringForConditions := "[]StatefulSetCondition{"
|
|
|
|
for _, f := range this.Conditions {
|
|
|
|
repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "StatefulSetCondition", "StatefulSetCondition", 1), `&`, ``, 1) + ","
|
|
|
|
}
|
|
|
|
repeatedStringForConditions += "}"
|
2019-01-18 01:50:10 +00:00
|
|
|
s := strings.Join([]string{`&StatefulSetStatus{`,
|
|
|
|
`ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`,
|
|
|
|
`Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`,
|
|
|
|
`ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`,
|
|
|
|
`CurrentReplicas:` + fmt.Sprintf("%v", this.CurrentReplicas) + `,`,
|
|
|
|
`UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`,
|
|
|
|
`CurrentRevision:` + fmt.Sprintf("%v", this.CurrentRevision) + `,`,
|
|
|
|
`UpdateRevision:` + fmt.Sprintf("%v", this.UpdateRevision) + `,`,
|
|
|
|
`CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`Conditions:` + repeatedStringForConditions + `,`,
|
2022-04-23 09:01:19 +00:00
|
|
|
`AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func (this *StatefulSetUpdateStrategy) String() string {
|
|
|
|
if this == nil {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
s := strings.Join([]string{`&StatefulSetUpdateStrategy{`,
|
|
|
|
`Type:` + fmt.Sprintf("%v", this.Type) + `,`,
|
2021-05-15 10:08:31 +00:00
|
|
|
`RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateStatefulSetStrategy", "RollingUpdateStatefulSetStrategy", 1) + `,`,
|
2019-01-18 01:50:10 +00:00
|
|
|
`}`,
|
|
|
|
}, "")
|
|
|
|
return s
|
|
|
|
}
|
|
|
|
func valueToStringGenerated(v interface{}) string {
|
|
|
|
rv := reflect.ValueOf(v)
|
|
|
|
if rv.IsNil() {
|
|
|
|
return "nil"
|
|
|
|
}
|
|
|
|
pv := reflect.Indirect(rv).Interface()
|
|
|
|
return fmt.Sprintf("*%v", pv)
|
|
|
|
}
|
|
|
|
func (m *ControllerRevision) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: ControllerRevision: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ControllerRevision: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Data", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType)
|
|
|
|
}
|
|
|
|
m.Revision = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.Revision |= int64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ControllerRevisionList) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: ControllerRevisionList: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ControllerRevisionList: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Items = append(m.Items, ControllerRevision{})
|
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *DaemonSet) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: DaemonSet: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: DaemonSet: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *DaemonSetCondition) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: DaemonSetCondition: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: DaemonSetCondition: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Type = DaemonSetConditionType(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Reason = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Message", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Message = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *DaemonSetList) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: DaemonSetList: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: DaemonSetList: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Items = append(m.Items, DaemonSet{})
|
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *DaemonSetSpec) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: DaemonSetSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: DaemonSetSpec: 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 msglen int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Selector == nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
m.Selector = &v1.LabelSelector{}
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Template", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UpdateStrategy", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.UpdateStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType)
|
|
|
|
}
|
|
|
|
m.MinReadySeconds = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.MinReadySeconds |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 6:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.RevisionHistoryLimit = &v
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *DaemonSetStatus) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: DaemonSetStatus: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: DaemonSetStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentNumberScheduled", wireType)
|
|
|
|
}
|
|
|
|
m.CurrentNumberScheduled = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.CurrentNumberScheduled |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NumberMisscheduled", wireType)
|
|
|
|
}
|
|
|
|
m.NumberMisscheduled = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.NumberMisscheduled |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field DesiredNumberScheduled", wireType)
|
|
|
|
}
|
|
|
|
m.DesiredNumberScheduled = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.DesiredNumberScheduled |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 4:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NumberReady", wireType)
|
|
|
|
}
|
|
|
|
m.NumberReady = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.NumberReady |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 5:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
|
|
|
|
}
|
|
|
|
m.ObservedGeneration = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.ObservedGeneration |= int64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 6:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UpdatedNumberScheduled", wireType)
|
|
|
|
}
|
|
|
|
m.UpdatedNumberScheduled = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.UpdatedNumberScheduled |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 7:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NumberAvailable", wireType)
|
|
|
|
}
|
|
|
|
m.NumberAvailable = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.NumberAvailable |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 8:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field NumberUnavailable", wireType)
|
|
|
|
}
|
|
|
|
m.NumberUnavailable = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.NumberUnavailable |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 9:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.CollisionCount = &v
|
|
|
|
case 10:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Conditions = append(m.Conditions, DaemonSetCondition{})
|
|
|
|
if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *DaemonSetUpdateStrategy) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: DaemonSetUpdateStrategy: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: DaemonSetUpdateStrategy: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Type = DaemonSetUpdateStrategyType(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.RollingUpdate == nil {
|
|
|
|
m.RollingUpdate = &RollingUpdateDaemonSet{}
|
|
|
|
}
|
|
|
|
if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *Deployment) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: Deployment: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: Deployment: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *DeploymentCondition) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: DeploymentCondition: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: DeploymentCondition: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Type = DeploymentConditionType(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Reason = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Message", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Message = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 6:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.LastUpdateTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 7:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *DeploymentList) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: DeploymentList: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: DeploymentList: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Items = append(m.Items, Deployment{})
|
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *DeploymentSpec) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: DeploymentSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: DeploymentSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.Replicas = &v
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Selector", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Selector == nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
m.Selector = &v1.LabelSelector{}
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Template", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Strategy", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Strategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType)
|
|
|
|
}
|
|
|
|
m.MinReadySeconds = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.MinReadySeconds |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 6:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.RevisionHistoryLimit = &v
|
|
|
|
case 7:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType)
|
|
|
|
}
|
|
|
|
var v int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.Paused = bool(v != 0)
|
|
|
|
case 9:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ProgressDeadlineSeconds", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.ProgressDeadlineSeconds = &v
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *DeploymentStatus) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: DeploymentStatus: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: DeploymentStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
|
|
|
|
}
|
|
|
|
m.ObservedGeneration = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.ObservedGeneration |= int64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
|
|
|
|
}
|
|
|
|
m.Replicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.Replicas |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType)
|
|
|
|
}
|
|
|
|
m.UpdatedReplicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.UpdatedReplicas |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 4:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType)
|
|
|
|
}
|
|
|
|
m.AvailableReplicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.AvailableReplicas |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 5:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UnavailableReplicas", wireType)
|
|
|
|
}
|
|
|
|
m.UnavailableReplicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.UnavailableReplicas |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 6:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Conditions = append(m.Conditions, DeploymentCondition{})
|
|
|
|
if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 7:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType)
|
|
|
|
}
|
|
|
|
m.ReadyReplicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.ReadyReplicas |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 8:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.CollisionCount = &v
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *DeploymentStrategy) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: DeploymentStrategy: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: DeploymentStrategy: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Type = DeploymentStrategyType(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.RollingUpdate == nil {
|
|
|
|
m.RollingUpdate = &RollingUpdateDeployment{}
|
|
|
|
}
|
|
|
|
if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ReplicaSet) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: ReplicaSet: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ReplicaSet: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetCondition) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: ReplicaSetCondition: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ReplicaSetCondition: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Type = ReplicaSetConditionType(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Reason = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Message", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Message = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetList) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: ReplicaSetList: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ReplicaSetList: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Items = append(m.Items, ReplicaSet{})
|
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetSpec) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: ReplicaSetSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ReplicaSetSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.Replicas = &v
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Selector", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Selector == nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
m.Selector = &v1.LabelSelector{}
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Template", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType)
|
|
|
|
}
|
|
|
|
m.MinReadySeconds = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.MinReadySeconds |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *ReplicaSetStatus) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: ReplicaSetStatus: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: ReplicaSetStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
|
|
|
|
}
|
|
|
|
m.Replicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.Replicas |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field FullyLabeledReplicas", wireType)
|
|
|
|
}
|
|
|
|
m.FullyLabeledReplicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.FullyLabeledReplicas |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
|
|
|
|
}
|
|
|
|
m.ObservedGeneration = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.ObservedGeneration |= int64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 4:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType)
|
|
|
|
}
|
|
|
|
m.ReadyReplicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.ReadyReplicas |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 5:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType)
|
|
|
|
}
|
|
|
|
m.AvailableReplicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.AvailableReplicas |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 6:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Conditions = append(m.Conditions, ReplicaSetCondition{})
|
|
|
|
if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateDaemonSet) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: RollingUpdateDaemonSet: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: RollingUpdateDaemonSet: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.MaxUnavailable == nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
m.MaxUnavailable = &intstr.IntOrString{}
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2021-05-15 10:08:31 +00:00
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MaxSurge", 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.MaxSurge == nil {
|
|
|
|
m.MaxSurge = &intstr.IntOrString{}
|
|
|
|
}
|
|
|
|
if err := m.MaxSurge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2019-01-18 01:50:10 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateDeployment) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: RollingUpdateDeployment: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: RollingUpdateDeployment: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.MaxUnavailable == nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
m.MaxUnavailable = &intstr.IntOrString{}
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MaxSurge", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.MaxSurge == nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
m.MaxSurge = &intstr.IntOrString{}
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
if err := m.MaxSurge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *RollingUpdateStatefulSetStrategy) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: RollingUpdateStatefulSetStrategy: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: RollingUpdateStatefulSetStrategy: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.Partition = &v
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *StatefulSet) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: StatefulSet: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: StatefulSet: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Spec", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *StatefulSetCondition) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: StatefulSetCondition: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: StatefulSetCondition: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Type = StatefulSetConditionType(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Status", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Reason", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Reason = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Message", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Message = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *StatefulSetList) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: StatefulSetList: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: StatefulSetList: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Items", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Items = append(m.Items, StatefulSet{})
|
|
|
|
if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
2022-04-23 09:01:19 +00:00
|
|
|
func (m *StatefulSetPersistentVolumeClaimRetentionPolicy) 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: StatefulSetPersistentVolumeClaimRetentionPolicy: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: StatefulSetPersistentVolumeClaimRetentionPolicy: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field WhenDeleted", 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.WhenDeleted = PersistentVolumeClaimRetentionPolicyType(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field WhenScaled", 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.WhenScaled = PersistentVolumeClaimRetentionPolicyType(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
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
func (m *StatefulSetSpec) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: StatefulSetSpec: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: StatefulSetSpec: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.Replicas = &v
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Selector", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.Selector == nil {
|
2021-05-15 10:08:31 +00:00
|
|
|
m.Selector = &v1.LabelSelector{}
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 3:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Template", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 4:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field VolumeClaimTemplates", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
m.VolumeClaimTemplates = append(m.VolumeClaimTemplates, v11.PersistentVolumeClaim{})
|
2019-01-18 01:50:10 +00:00
|
|
|
if err := m.VolumeClaimTemplates[len(m.VolumeClaimTemplates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 5:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.ServiceName = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 6:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PodManagementPolicy", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.PodManagementPolicy = PodManagementPolicyType(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 7:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UpdateStrategy", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if err := m.UpdateStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 8:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.RevisionHistoryLimit = &v
|
2022-04-23 09:01:19 +00:00
|
|
|
case 9:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType)
|
|
|
|
}
|
|
|
|
m.MinReadySeconds = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.MinReadySeconds |= int32(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 10:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field PersistentVolumeClaimRetentionPolicy", 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.PersistentVolumeClaimRetentionPolicy == nil {
|
|
|
|
m.PersistentVolumeClaimRetentionPolicy = &StatefulSetPersistentVolumeClaimRetentionPolicy{}
|
|
|
|
}
|
|
|
|
if err := m.PersistentVolumeClaimRetentionPolicy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2019-01-18 01:50:10 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *StatefulSetStatus) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: StatefulSetStatus: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: StatefulSetStatus: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
|
|
|
|
}
|
|
|
|
m.ObservedGeneration = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.ObservedGeneration |= int64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 2:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType)
|
|
|
|
}
|
|
|
|
m.Replicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.Replicas |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 3:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType)
|
|
|
|
}
|
|
|
|
m.ReadyReplicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.ReadyReplicas |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 4:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType)
|
|
|
|
}
|
|
|
|
m.CurrentReplicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.CurrentReplicas |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 5:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType)
|
|
|
|
}
|
|
|
|
m.UpdatedReplicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
m.UpdatedReplicas |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 6:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CurrentRevision", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.CurrentRevision = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 7:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field UpdateRevision", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.UpdateRevision = string(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 9:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType)
|
|
|
|
}
|
|
|
|
var v int32
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
2021-05-15 10:08:31 +00:00
|
|
|
v |= int32(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m.CollisionCount = &v
|
|
|
|
case 10:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Conditions", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Conditions = append(m.Conditions, StatefulSetCondition{})
|
|
|
|
if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
2022-04-23 09:01:19 +00:00
|
|
|
case 11:
|
|
|
|
if wireType != 0 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType)
|
|
|
|
}
|
|
|
|
m.AvailableReplicas = 0
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
m.AvailableReplicas |= int32(b&0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func (m *StatefulSetUpdateStrategy) 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
wire |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
if wireType == 4 {
|
|
|
|
return fmt.Errorf("proto: StatefulSetUpdateStrategy: wiretype end group for non-group")
|
|
|
|
}
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
return fmt.Errorf("proto: StatefulSetUpdateStrategy: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
}
|
|
|
|
switch fieldNum {
|
|
|
|
case 1:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Type", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
stringLen |= uint64(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
if intStringLen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + intStringLen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
m.Type = StatefulSetUpdateStrategyType(dAtA[iNdEx:postIndex])
|
|
|
|
iNdEx = postIndex
|
|
|
|
case 2:
|
|
|
|
if wireType != 2 {
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", 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++
|
2021-05-15 10:08:31 +00:00
|
|
|
msglen |= int(b&0x7F) << shift
|
2019-01-18 01:50:10 +00:00
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if msglen < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
postIndex := iNdEx + msglen
|
2021-05-15 10:08:31 +00:00
|
|
|
if postIndex < 0 {
|
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
if postIndex > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
if m.RollingUpdate == nil {
|
|
|
|
m.RollingUpdate = &RollingUpdateStatefulSetStrategy{}
|
|
|
|
}
|
|
|
|
if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
iNdEx = postIndex
|
|
|
|
default:
|
|
|
|
iNdEx = preIndex
|
|
|
|
skippy, err := skipGenerated(dAtA[iNdEx:])
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if (skippy < 0) || (iNdEx+skippy) < 0 {
|
2019-01-18 01:50:10 +00:00
|
|
|
return ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx += skippy
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
func skipGenerated(dAtA []byte) (n int, err error) {
|
|
|
|
l := len(dAtA)
|
|
|
|
iNdEx := 0
|
2021-05-15 10:08:31 +00:00
|
|
|
depth := 0
|
2019-01-18 01:50:10 +00:00
|
|
|
for iNdEx < l {
|
|
|
|
var wire uint64
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
switch wireType {
|
|
|
|
case 0:
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
iNdEx++
|
|
|
|
if dAtA[iNdEx-1] < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case 1:
|
|
|
|
iNdEx += 8
|
|
|
|
case 2:
|
|
|
|
var length int
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
if shift >= 64 {
|
|
|
|
return 0, ErrIntOverflowGenerated
|
|
|
|
}
|
|
|
|
if iNdEx >= l {
|
|
|
|
return 0, io.ErrUnexpectedEOF
|
|
|
|
}
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
iNdEx++
|
|
|
|
length |= (int(b) & 0x7F) << shift
|
|
|
|
if b < 0x80 {
|
|
|
|
break
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if length < 0 {
|
|
|
|
return 0, ErrInvalidLengthGenerated
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
iNdEx += length
|
2019-01-18 01:50:10 +00:00
|
|
|
case 3:
|
2021-05-15 10:08:31 +00:00
|
|
|
depth++
|
2019-01-18 01:50:10 +00:00
|
|
|
case 4:
|
2021-05-15 10:08:31 +00:00
|
|
|
if depth == 0 {
|
|
|
|
return 0, ErrUnexpectedEndOfGroupGenerated
|
|
|
|
}
|
|
|
|
depth--
|
2019-01-18 01:50:10 +00:00
|
|
|
case 5:
|
|
|
|
iNdEx += 4
|
|
|
|
default:
|
|
|
|
return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
|
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
if iNdEx < 0 {
|
|
|
|
return 0, ErrInvalidLengthGenerated
|
|
|
|
}
|
|
|
|
if depth == 0 {
|
|
|
|
return iNdEx, nil
|
|
|
|
}
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
2021-05-15 10:08:31 +00:00
|
|
|
return 0, io.ErrUnexpectedEOF
|
2019-01-18 01:50:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2021-05-15 10:08:31 +00:00
|
|
|
ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
|
|
|
|
ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow")
|
|
|
|
ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
|
2019-01-18 01:50:10 +00:00
|
|
|
)
|