Matteo Scandolo | a428586 | 2020-12-01 18:10:10 -0800 | [diff] [blame^] | 1 | /* |
| 2 | Copyright The Kubernetes Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | // Code generated by protoc-gen-gogo. DO NOT EDIT. |
| 18 | // source: k8s.io/kubernetes/vendor/k8s.io/api/apps/v1beta1/generated.proto |
| 19 | |
| 20 | package v1beta1 |
| 21 | |
| 22 | import ( |
| 23 | fmt "fmt" |
| 24 | |
| 25 | io "io" |
| 26 | |
| 27 | proto "github.com/gogo/protobuf/proto" |
| 28 | github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" |
| 29 | k8s_io_api_core_v1 "k8s.io/api/core/v1" |
| 30 | v11 "k8s.io/api/core/v1" |
| 31 | v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 32 | |
| 33 | math "math" |
| 34 | math_bits "math/bits" |
| 35 | reflect "reflect" |
| 36 | strings "strings" |
| 37 | |
| 38 | intstr "k8s.io/apimachinery/pkg/util/intstr" |
| 39 | ) |
| 40 | |
| 41 | // Reference imports to suppress errors if they are not otherwise used. |
| 42 | var _ = proto.Marshal |
| 43 | var _ = fmt.Errorf |
| 44 | var _ = math.Inf |
| 45 | |
| 46 | // This is a compile-time assertion to ensure that this generated file |
| 47 | // is compatible with the proto package it is being compiled against. |
| 48 | // A compilation error at this line likely means your copy of the |
| 49 | // proto package needs to be updated. |
| 50 | const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package |
| 51 | |
| 52 | func (m *ControllerRevision) Reset() { *m = ControllerRevision{} } |
| 53 | func (*ControllerRevision) ProtoMessage() {} |
| 54 | func (*ControllerRevision) Descriptor() ([]byte, []int) { |
| 55 | return fileDescriptor_2a07313e8f66e805, []int{0} |
| 56 | } |
| 57 | func (m *ControllerRevision) XXX_Unmarshal(b []byte) error { |
| 58 | return m.Unmarshal(b) |
| 59 | } |
| 60 | func (m *ControllerRevision) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 61 | b = b[:cap(b)] |
| 62 | n, err := m.MarshalToSizedBuffer(b) |
| 63 | if err != nil { |
| 64 | return nil, err |
| 65 | } |
| 66 | return b[:n], nil |
| 67 | } |
| 68 | func (m *ControllerRevision) XXX_Merge(src proto.Message) { |
| 69 | xxx_messageInfo_ControllerRevision.Merge(m, src) |
| 70 | } |
| 71 | func (m *ControllerRevision) XXX_Size() int { |
| 72 | return m.Size() |
| 73 | } |
| 74 | func (m *ControllerRevision) XXX_DiscardUnknown() { |
| 75 | xxx_messageInfo_ControllerRevision.DiscardUnknown(m) |
| 76 | } |
| 77 | |
| 78 | var xxx_messageInfo_ControllerRevision proto.InternalMessageInfo |
| 79 | |
| 80 | func (m *ControllerRevisionList) Reset() { *m = ControllerRevisionList{} } |
| 81 | func (*ControllerRevisionList) ProtoMessage() {} |
| 82 | func (*ControllerRevisionList) Descriptor() ([]byte, []int) { |
| 83 | return fileDescriptor_2a07313e8f66e805, []int{1} |
| 84 | } |
| 85 | func (m *ControllerRevisionList) XXX_Unmarshal(b []byte) error { |
| 86 | return m.Unmarshal(b) |
| 87 | } |
| 88 | func (m *ControllerRevisionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 89 | b = b[:cap(b)] |
| 90 | n, err := m.MarshalToSizedBuffer(b) |
| 91 | if err != nil { |
| 92 | return nil, err |
| 93 | } |
| 94 | return b[:n], nil |
| 95 | } |
| 96 | func (m *ControllerRevisionList) XXX_Merge(src proto.Message) { |
| 97 | xxx_messageInfo_ControllerRevisionList.Merge(m, src) |
| 98 | } |
| 99 | func (m *ControllerRevisionList) XXX_Size() int { |
| 100 | return m.Size() |
| 101 | } |
| 102 | func (m *ControllerRevisionList) XXX_DiscardUnknown() { |
| 103 | xxx_messageInfo_ControllerRevisionList.DiscardUnknown(m) |
| 104 | } |
| 105 | |
| 106 | var xxx_messageInfo_ControllerRevisionList proto.InternalMessageInfo |
| 107 | |
| 108 | func (m *Deployment) Reset() { *m = Deployment{} } |
| 109 | func (*Deployment) ProtoMessage() {} |
| 110 | func (*Deployment) Descriptor() ([]byte, []int) { |
| 111 | return fileDescriptor_2a07313e8f66e805, []int{2} |
| 112 | } |
| 113 | func (m *Deployment) XXX_Unmarshal(b []byte) error { |
| 114 | return m.Unmarshal(b) |
| 115 | } |
| 116 | func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 117 | b = b[:cap(b)] |
| 118 | n, err := m.MarshalToSizedBuffer(b) |
| 119 | if err != nil { |
| 120 | return nil, err |
| 121 | } |
| 122 | return b[:n], nil |
| 123 | } |
| 124 | func (m *Deployment) XXX_Merge(src proto.Message) { |
| 125 | xxx_messageInfo_Deployment.Merge(m, src) |
| 126 | } |
| 127 | func (m *Deployment) XXX_Size() int { |
| 128 | return m.Size() |
| 129 | } |
| 130 | func (m *Deployment) XXX_DiscardUnknown() { |
| 131 | xxx_messageInfo_Deployment.DiscardUnknown(m) |
| 132 | } |
| 133 | |
| 134 | var xxx_messageInfo_Deployment proto.InternalMessageInfo |
| 135 | |
| 136 | func (m *DeploymentCondition) Reset() { *m = DeploymentCondition{} } |
| 137 | func (*DeploymentCondition) ProtoMessage() {} |
| 138 | func (*DeploymentCondition) Descriptor() ([]byte, []int) { |
| 139 | return fileDescriptor_2a07313e8f66e805, []int{3} |
| 140 | } |
| 141 | func (m *DeploymentCondition) XXX_Unmarshal(b []byte) error { |
| 142 | return m.Unmarshal(b) |
| 143 | } |
| 144 | func (m *DeploymentCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 145 | b = b[:cap(b)] |
| 146 | n, err := m.MarshalToSizedBuffer(b) |
| 147 | if err != nil { |
| 148 | return nil, err |
| 149 | } |
| 150 | return b[:n], nil |
| 151 | } |
| 152 | func (m *DeploymentCondition) XXX_Merge(src proto.Message) { |
| 153 | xxx_messageInfo_DeploymentCondition.Merge(m, src) |
| 154 | } |
| 155 | func (m *DeploymentCondition) XXX_Size() int { |
| 156 | return m.Size() |
| 157 | } |
| 158 | func (m *DeploymentCondition) XXX_DiscardUnknown() { |
| 159 | xxx_messageInfo_DeploymentCondition.DiscardUnknown(m) |
| 160 | } |
| 161 | |
| 162 | var xxx_messageInfo_DeploymentCondition proto.InternalMessageInfo |
| 163 | |
| 164 | func (m *DeploymentList) Reset() { *m = DeploymentList{} } |
| 165 | func (*DeploymentList) ProtoMessage() {} |
| 166 | func (*DeploymentList) Descriptor() ([]byte, []int) { |
| 167 | return fileDescriptor_2a07313e8f66e805, []int{4} |
| 168 | } |
| 169 | func (m *DeploymentList) XXX_Unmarshal(b []byte) error { |
| 170 | return m.Unmarshal(b) |
| 171 | } |
| 172 | func (m *DeploymentList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 173 | b = b[:cap(b)] |
| 174 | n, err := m.MarshalToSizedBuffer(b) |
| 175 | if err != nil { |
| 176 | return nil, err |
| 177 | } |
| 178 | return b[:n], nil |
| 179 | } |
| 180 | func (m *DeploymentList) XXX_Merge(src proto.Message) { |
| 181 | xxx_messageInfo_DeploymentList.Merge(m, src) |
| 182 | } |
| 183 | func (m *DeploymentList) XXX_Size() int { |
| 184 | return m.Size() |
| 185 | } |
| 186 | func (m *DeploymentList) XXX_DiscardUnknown() { |
| 187 | xxx_messageInfo_DeploymentList.DiscardUnknown(m) |
| 188 | } |
| 189 | |
| 190 | var xxx_messageInfo_DeploymentList proto.InternalMessageInfo |
| 191 | |
| 192 | func (m *DeploymentRollback) Reset() { *m = DeploymentRollback{} } |
| 193 | func (*DeploymentRollback) ProtoMessage() {} |
| 194 | func (*DeploymentRollback) Descriptor() ([]byte, []int) { |
| 195 | return fileDescriptor_2a07313e8f66e805, []int{5} |
| 196 | } |
| 197 | func (m *DeploymentRollback) XXX_Unmarshal(b []byte) error { |
| 198 | return m.Unmarshal(b) |
| 199 | } |
| 200 | func (m *DeploymentRollback) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 201 | b = b[:cap(b)] |
| 202 | n, err := m.MarshalToSizedBuffer(b) |
| 203 | if err != nil { |
| 204 | return nil, err |
| 205 | } |
| 206 | return b[:n], nil |
| 207 | } |
| 208 | func (m *DeploymentRollback) XXX_Merge(src proto.Message) { |
| 209 | xxx_messageInfo_DeploymentRollback.Merge(m, src) |
| 210 | } |
| 211 | func (m *DeploymentRollback) XXX_Size() int { |
| 212 | return m.Size() |
| 213 | } |
| 214 | func (m *DeploymentRollback) XXX_DiscardUnknown() { |
| 215 | xxx_messageInfo_DeploymentRollback.DiscardUnknown(m) |
| 216 | } |
| 217 | |
| 218 | var xxx_messageInfo_DeploymentRollback proto.InternalMessageInfo |
| 219 | |
| 220 | func (m *DeploymentSpec) Reset() { *m = DeploymentSpec{} } |
| 221 | func (*DeploymentSpec) ProtoMessage() {} |
| 222 | func (*DeploymentSpec) Descriptor() ([]byte, []int) { |
| 223 | return fileDescriptor_2a07313e8f66e805, []int{6} |
| 224 | } |
| 225 | func (m *DeploymentSpec) XXX_Unmarshal(b []byte) error { |
| 226 | return m.Unmarshal(b) |
| 227 | } |
| 228 | func (m *DeploymentSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 229 | b = b[:cap(b)] |
| 230 | n, err := m.MarshalToSizedBuffer(b) |
| 231 | if err != nil { |
| 232 | return nil, err |
| 233 | } |
| 234 | return b[:n], nil |
| 235 | } |
| 236 | func (m *DeploymentSpec) XXX_Merge(src proto.Message) { |
| 237 | xxx_messageInfo_DeploymentSpec.Merge(m, src) |
| 238 | } |
| 239 | func (m *DeploymentSpec) XXX_Size() int { |
| 240 | return m.Size() |
| 241 | } |
| 242 | func (m *DeploymentSpec) XXX_DiscardUnknown() { |
| 243 | xxx_messageInfo_DeploymentSpec.DiscardUnknown(m) |
| 244 | } |
| 245 | |
| 246 | var xxx_messageInfo_DeploymentSpec proto.InternalMessageInfo |
| 247 | |
| 248 | func (m *DeploymentStatus) Reset() { *m = DeploymentStatus{} } |
| 249 | func (*DeploymentStatus) ProtoMessage() {} |
| 250 | func (*DeploymentStatus) Descriptor() ([]byte, []int) { |
| 251 | return fileDescriptor_2a07313e8f66e805, []int{7} |
| 252 | } |
| 253 | func (m *DeploymentStatus) XXX_Unmarshal(b []byte) error { |
| 254 | return m.Unmarshal(b) |
| 255 | } |
| 256 | func (m *DeploymentStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 257 | b = b[:cap(b)] |
| 258 | n, err := m.MarshalToSizedBuffer(b) |
| 259 | if err != nil { |
| 260 | return nil, err |
| 261 | } |
| 262 | return b[:n], nil |
| 263 | } |
| 264 | func (m *DeploymentStatus) XXX_Merge(src proto.Message) { |
| 265 | xxx_messageInfo_DeploymentStatus.Merge(m, src) |
| 266 | } |
| 267 | func (m *DeploymentStatus) XXX_Size() int { |
| 268 | return m.Size() |
| 269 | } |
| 270 | func (m *DeploymentStatus) XXX_DiscardUnknown() { |
| 271 | xxx_messageInfo_DeploymentStatus.DiscardUnknown(m) |
| 272 | } |
| 273 | |
| 274 | var xxx_messageInfo_DeploymentStatus proto.InternalMessageInfo |
| 275 | |
| 276 | func (m *DeploymentStrategy) Reset() { *m = DeploymentStrategy{} } |
| 277 | func (*DeploymentStrategy) ProtoMessage() {} |
| 278 | func (*DeploymentStrategy) Descriptor() ([]byte, []int) { |
| 279 | return fileDescriptor_2a07313e8f66e805, []int{8} |
| 280 | } |
| 281 | func (m *DeploymentStrategy) XXX_Unmarshal(b []byte) error { |
| 282 | return m.Unmarshal(b) |
| 283 | } |
| 284 | func (m *DeploymentStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 285 | b = b[:cap(b)] |
| 286 | n, err := m.MarshalToSizedBuffer(b) |
| 287 | if err != nil { |
| 288 | return nil, err |
| 289 | } |
| 290 | return b[:n], nil |
| 291 | } |
| 292 | func (m *DeploymentStrategy) XXX_Merge(src proto.Message) { |
| 293 | xxx_messageInfo_DeploymentStrategy.Merge(m, src) |
| 294 | } |
| 295 | func (m *DeploymentStrategy) XXX_Size() int { |
| 296 | return m.Size() |
| 297 | } |
| 298 | func (m *DeploymentStrategy) XXX_DiscardUnknown() { |
| 299 | xxx_messageInfo_DeploymentStrategy.DiscardUnknown(m) |
| 300 | } |
| 301 | |
| 302 | var xxx_messageInfo_DeploymentStrategy proto.InternalMessageInfo |
| 303 | |
| 304 | func (m *RollbackConfig) Reset() { *m = RollbackConfig{} } |
| 305 | func (*RollbackConfig) ProtoMessage() {} |
| 306 | func (*RollbackConfig) Descriptor() ([]byte, []int) { |
| 307 | return fileDescriptor_2a07313e8f66e805, []int{9} |
| 308 | } |
| 309 | func (m *RollbackConfig) XXX_Unmarshal(b []byte) error { |
| 310 | return m.Unmarshal(b) |
| 311 | } |
| 312 | func (m *RollbackConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 313 | b = b[:cap(b)] |
| 314 | n, err := m.MarshalToSizedBuffer(b) |
| 315 | if err != nil { |
| 316 | return nil, err |
| 317 | } |
| 318 | return b[:n], nil |
| 319 | } |
| 320 | func (m *RollbackConfig) XXX_Merge(src proto.Message) { |
| 321 | xxx_messageInfo_RollbackConfig.Merge(m, src) |
| 322 | } |
| 323 | func (m *RollbackConfig) XXX_Size() int { |
| 324 | return m.Size() |
| 325 | } |
| 326 | func (m *RollbackConfig) XXX_DiscardUnknown() { |
| 327 | xxx_messageInfo_RollbackConfig.DiscardUnknown(m) |
| 328 | } |
| 329 | |
| 330 | var xxx_messageInfo_RollbackConfig proto.InternalMessageInfo |
| 331 | |
| 332 | func (m *RollingUpdateDeployment) Reset() { *m = RollingUpdateDeployment{} } |
| 333 | func (*RollingUpdateDeployment) ProtoMessage() {} |
| 334 | func (*RollingUpdateDeployment) Descriptor() ([]byte, []int) { |
| 335 | return fileDescriptor_2a07313e8f66e805, []int{10} |
| 336 | } |
| 337 | func (m *RollingUpdateDeployment) XXX_Unmarshal(b []byte) error { |
| 338 | return m.Unmarshal(b) |
| 339 | } |
| 340 | func (m *RollingUpdateDeployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 341 | b = b[:cap(b)] |
| 342 | n, err := m.MarshalToSizedBuffer(b) |
| 343 | if err != nil { |
| 344 | return nil, err |
| 345 | } |
| 346 | return b[:n], nil |
| 347 | } |
| 348 | func (m *RollingUpdateDeployment) XXX_Merge(src proto.Message) { |
| 349 | xxx_messageInfo_RollingUpdateDeployment.Merge(m, src) |
| 350 | } |
| 351 | func (m *RollingUpdateDeployment) XXX_Size() int { |
| 352 | return m.Size() |
| 353 | } |
| 354 | func (m *RollingUpdateDeployment) XXX_DiscardUnknown() { |
| 355 | xxx_messageInfo_RollingUpdateDeployment.DiscardUnknown(m) |
| 356 | } |
| 357 | |
| 358 | var xxx_messageInfo_RollingUpdateDeployment proto.InternalMessageInfo |
| 359 | |
| 360 | func (m *RollingUpdateStatefulSetStrategy) Reset() { *m = RollingUpdateStatefulSetStrategy{} } |
| 361 | func (*RollingUpdateStatefulSetStrategy) ProtoMessage() {} |
| 362 | func (*RollingUpdateStatefulSetStrategy) Descriptor() ([]byte, []int) { |
| 363 | return fileDescriptor_2a07313e8f66e805, []int{11} |
| 364 | } |
| 365 | func (m *RollingUpdateStatefulSetStrategy) XXX_Unmarshal(b []byte) error { |
| 366 | return m.Unmarshal(b) |
| 367 | } |
| 368 | func (m *RollingUpdateStatefulSetStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 369 | b = b[:cap(b)] |
| 370 | n, err := m.MarshalToSizedBuffer(b) |
| 371 | if err != nil { |
| 372 | return nil, err |
| 373 | } |
| 374 | return b[:n], nil |
| 375 | } |
| 376 | func (m *RollingUpdateStatefulSetStrategy) XXX_Merge(src proto.Message) { |
| 377 | xxx_messageInfo_RollingUpdateStatefulSetStrategy.Merge(m, src) |
| 378 | } |
| 379 | func (m *RollingUpdateStatefulSetStrategy) XXX_Size() int { |
| 380 | return m.Size() |
| 381 | } |
| 382 | func (m *RollingUpdateStatefulSetStrategy) XXX_DiscardUnknown() { |
| 383 | xxx_messageInfo_RollingUpdateStatefulSetStrategy.DiscardUnknown(m) |
| 384 | } |
| 385 | |
| 386 | var xxx_messageInfo_RollingUpdateStatefulSetStrategy proto.InternalMessageInfo |
| 387 | |
| 388 | func (m *Scale) Reset() { *m = Scale{} } |
| 389 | func (*Scale) ProtoMessage() {} |
| 390 | func (*Scale) Descriptor() ([]byte, []int) { |
| 391 | return fileDescriptor_2a07313e8f66e805, []int{12} |
| 392 | } |
| 393 | func (m *Scale) XXX_Unmarshal(b []byte) error { |
| 394 | return m.Unmarshal(b) |
| 395 | } |
| 396 | func (m *Scale) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 397 | b = b[:cap(b)] |
| 398 | n, err := m.MarshalToSizedBuffer(b) |
| 399 | if err != nil { |
| 400 | return nil, err |
| 401 | } |
| 402 | return b[:n], nil |
| 403 | } |
| 404 | func (m *Scale) XXX_Merge(src proto.Message) { |
| 405 | xxx_messageInfo_Scale.Merge(m, src) |
| 406 | } |
| 407 | func (m *Scale) XXX_Size() int { |
| 408 | return m.Size() |
| 409 | } |
| 410 | func (m *Scale) XXX_DiscardUnknown() { |
| 411 | xxx_messageInfo_Scale.DiscardUnknown(m) |
| 412 | } |
| 413 | |
| 414 | var xxx_messageInfo_Scale proto.InternalMessageInfo |
| 415 | |
| 416 | func (m *ScaleSpec) Reset() { *m = ScaleSpec{} } |
| 417 | func (*ScaleSpec) ProtoMessage() {} |
| 418 | func (*ScaleSpec) Descriptor() ([]byte, []int) { |
| 419 | return fileDescriptor_2a07313e8f66e805, []int{13} |
| 420 | } |
| 421 | func (m *ScaleSpec) XXX_Unmarshal(b []byte) error { |
| 422 | return m.Unmarshal(b) |
| 423 | } |
| 424 | func (m *ScaleSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 425 | b = b[:cap(b)] |
| 426 | n, err := m.MarshalToSizedBuffer(b) |
| 427 | if err != nil { |
| 428 | return nil, err |
| 429 | } |
| 430 | return b[:n], nil |
| 431 | } |
| 432 | func (m *ScaleSpec) XXX_Merge(src proto.Message) { |
| 433 | xxx_messageInfo_ScaleSpec.Merge(m, src) |
| 434 | } |
| 435 | func (m *ScaleSpec) XXX_Size() int { |
| 436 | return m.Size() |
| 437 | } |
| 438 | func (m *ScaleSpec) XXX_DiscardUnknown() { |
| 439 | xxx_messageInfo_ScaleSpec.DiscardUnknown(m) |
| 440 | } |
| 441 | |
| 442 | var xxx_messageInfo_ScaleSpec proto.InternalMessageInfo |
| 443 | |
| 444 | func (m *ScaleStatus) Reset() { *m = ScaleStatus{} } |
| 445 | func (*ScaleStatus) ProtoMessage() {} |
| 446 | func (*ScaleStatus) Descriptor() ([]byte, []int) { |
| 447 | return fileDescriptor_2a07313e8f66e805, []int{14} |
| 448 | } |
| 449 | func (m *ScaleStatus) XXX_Unmarshal(b []byte) error { |
| 450 | return m.Unmarshal(b) |
| 451 | } |
| 452 | func (m *ScaleStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 453 | b = b[:cap(b)] |
| 454 | n, err := m.MarshalToSizedBuffer(b) |
| 455 | if err != nil { |
| 456 | return nil, err |
| 457 | } |
| 458 | return b[:n], nil |
| 459 | } |
| 460 | func (m *ScaleStatus) XXX_Merge(src proto.Message) { |
| 461 | xxx_messageInfo_ScaleStatus.Merge(m, src) |
| 462 | } |
| 463 | func (m *ScaleStatus) XXX_Size() int { |
| 464 | return m.Size() |
| 465 | } |
| 466 | func (m *ScaleStatus) XXX_DiscardUnknown() { |
| 467 | xxx_messageInfo_ScaleStatus.DiscardUnknown(m) |
| 468 | } |
| 469 | |
| 470 | var xxx_messageInfo_ScaleStatus proto.InternalMessageInfo |
| 471 | |
| 472 | func (m *StatefulSet) Reset() { *m = StatefulSet{} } |
| 473 | func (*StatefulSet) ProtoMessage() {} |
| 474 | func (*StatefulSet) Descriptor() ([]byte, []int) { |
| 475 | return fileDescriptor_2a07313e8f66e805, []int{15} |
| 476 | } |
| 477 | func (m *StatefulSet) XXX_Unmarshal(b []byte) error { |
| 478 | return m.Unmarshal(b) |
| 479 | } |
| 480 | func (m *StatefulSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 481 | b = b[:cap(b)] |
| 482 | n, err := m.MarshalToSizedBuffer(b) |
| 483 | if err != nil { |
| 484 | return nil, err |
| 485 | } |
| 486 | return b[:n], nil |
| 487 | } |
| 488 | func (m *StatefulSet) XXX_Merge(src proto.Message) { |
| 489 | xxx_messageInfo_StatefulSet.Merge(m, src) |
| 490 | } |
| 491 | func (m *StatefulSet) XXX_Size() int { |
| 492 | return m.Size() |
| 493 | } |
| 494 | func (m *StatefulSet) XXX_DiscardUnknown() { |
| 495 | xxx_messageInfo_StatefulSet.DiscardUnknown(m) |
| 496 | } |
| 497 | |
| 498 | var xxx_messageInfo_StatefulSet proto.InternalMessageInfo |
| 499 | |
| 500 | func (m *StatefulSetCondition) Reset() { *m = StatefulSetCondition{} } |
| 501 | func (*StatefulSetCondition) ProtoMessage() {} |
| 502 | func (*StatefulSetCondition) Descriptor() ([]byte, []int) { |
| 503 | return fileDescriptor_2a07313e8f66e805, []int{16} |
| 504 | } |
| 505 | func (m *StatefulSetCondition) XXX_Unmarshal(b []byte) error { |
| 506 | return m.Unmarshal(b) |
| 507 | } |
| 508 | func (m *StatefulSetCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 509 | b = b[:cap(b)] |
| 510 | n, err := m.MarshalToSizedBuffer(b) |
| 511 | if err != nil { |
| 512 | return nil, err |
| 513 | } |
| 514 | return b[:n], nil |
| 515 | } |
| 516 | func (m *StatefulSetCondition) XXX_Merge(src proto.Message) { |
| 517 | xxx_messageInfo_StatefulSetCondition.Merge(m, src) |
| 518 | } |
| 519 | func (m *StatefulSetCondition) XXX_Size() int { |
| 520 | return m.Size() |
| 521 | } |
| 522 | func (m *StatefulSetCondition) XXX_DiscardUnknown() { |
| 523 | xxx_messageInfo_StatefulSetCondition.DiscardUnknown(m) |
| 524 | } |
| 525 | |
| 526 | var xxx_messageInfo_StatefulSetCondition proto.InternalMessageInfo |
| 527 | |
| 528 | func (m *StatefulSetList) Reset() { *m = StatefulSetList{} } |
| 529 | func (*StatefulSetList) ProtoMessage() {} |
| 530 | func (*StatefulSetList) Descriptor() ([]byte, []int) { |
| 531 | return fileDescriptor_2a07313e8f66e805, []int{17} |
| 532 | } |
| 533 | func (m *StatefulSetList) XXX_Unmarshal(b []byte) error { |
| 534 | return m.Unmarshal(b) |
| 535 | } |
| 536 | func (m *StatefulSetList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 537 | b = b[:cap(b)] |
| 538 | n, err := m.MarshalToSizedBuffer(b) |
| 539 | if err != nil { |
| 540 | return nil, err |
| 541 | } |
| 542 | return b[:n], nil |
| 543 | } |
| 544 | func (m *StatefulSetList) XXX_Merge(src proto.Message) { |
| 545 | xxx_messageInfo_StatefulSetList.Merge(m, src) |
| 546 | } |
| 547 | func (m *StatefulSetList) XXX_Size() int { |
| 548 | return m.Size() |
| 549 | } |
| 550 | func (m *StatefulSetList) XXX_DiscardUnknown() { |
| 551 | xxx_messageInfo_StatefulSetList.DiscardUnknown(m) |
| 552 | } |
| 553 | |
| 554 | var xxx_messageInfo_StatefulSetList proto.InternalMessageInfo |
| 555 | |
| 556 | func (m *StatefulSetSpec) Reset() { *m = StatefulSetSpec{} } |
| 557 | func (*StatefulSetSpec) ProtoMessage() {} |
| 558 | func (*StatefulSetSpec) Descriptor() ([]byte, []int) { |
| 559 | return fileDescriptor_2a07313e8f66e805, []int{18} |
| 560 | } |
| 561 | func (m *StatefulSetSpec) XXX_Unmarshal(b []byte) error { |
| 562 | return m.Unmarshal(b) |
| 563 | } |
| 564 | func (m *StatefulSetSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 565 | b = b[:cap(b)] |
| 566 | n, err := m.MarshalToSizedBuffer(b) |
| 567 | if err != nil { |
| 568 | return nil, err |
| 569 | } |
| 570 | return b[:n], nil |
| 571 | } |
| 572 | func (m *StatefulSetSpec) XXX_Merge(src proto.Message) { |
| 573 | xxx_messageInfo_StatefulSetSpec.Merge(m, src) |
| 574 | } |
| 575 | func (m *StatefulSetSpec) XXX_Size() int { |
| 576 | return m.Size() |
| 577 | } |
| 578 | func (m *StatefulSetSpec) XXX_DiscardUnknown() { |
| 579 | xxx_messageInfo_StatefulSetSpec.DiscardUnknown(m) |
| 580 | } |
| 581 | |
| 582 | var xxx_messageInfo_StatefulSetSpec proto.InternalMessageInfo |
| 583 | |
| 584 | func (m *StatefulSetStatus) Reset() { *m = StatefulSetStatus{} } |
| 585 | func (*StatefulSetStatus) ProtoMessage() {} |
| 586 | func (*StatefulSetStatus) Descriptor() ([]byte, []int) { |
| 587 | return fileDescriptor_2a07313e8f66e805, []int{19} |
| 588 | } |
| 589 | func (m *StatefulSetStatus) XXX_Unmarshal(b []byte) error { |
| 590 | return m.Unmarshal(b) |
| 591 | } |
| 592 | func (m *StatefulSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 593 | b = b[:cap(b)] |
| 594 | n, err := m.MarshalToSizedBuffer(b) |
| 595 | if err != nil { |
| 596 | return nil, err |
| 597 | } |
| 598 | return b[:n], nil |
| 599 | } |
| 600 | func (m *StatefulSetStatus) XXX_Merge(src proto.Message) { |
| 601 | xxx_messageInfo_StatefulSetStatus.Merge(m, src) |
| 602 | } |
| 603 | func (m *StatefulSetStatus) XXX_Size() int { |
| 604 | return m.Size() |
| 605 | } |
| 606 | func (m *StatefulSetStatus) XXX_DiscardUnknown() { |
| 607 | xxx_messageInfo_StatefulSetStatus.DiscardUnknown(m) |
| 608 | } |
| 609 | |
| 610 | var xxx_messageInfo_StatefulSetStatus proto.InternalMessageInfo |
| 611 | |
| 612 | func (m *StatefulSetUpdateStrategy) Reset() { *m = StatefulSetUpdateStrategy{} } |
| 613 | func (*StatefulSetUpdateStrategy) ProtoMessage() {} |
| 614 | func (*StatefulSetUpdateStrategy) Descriptor() ([]byte, []int) { |
| 615 | return fileDescriptor_2a07313e8f66e805, []int{20} |
| 616 | } |
| 617 | func (m *StatefulSetUpdateStrategy) XXX_Unmarshal(b []byte) error { |
| 618 | return m.Unmarshal(b) |
| 619 | } |
| 620 | func (m *StatefulSetUpdateStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 621 | b = b[:cap(b)] |
| 622 | n, err := m.MarshalToSizedBuffer(b) |
| 623 | if err != nil { |
| 624 | return nil, err |
| 625 | } |
| 626 | return b[:n], nil |
| 627 | } |
| 628 | func (m *StatefulSetUpdateStrategy) XXX_Merge(src proto.Message) { |
| 629 | xxx_messageInfo_StatefulSetUpdateStrategy.Merge(m, src) |
| 630 | } |
| 631 | func (m *StatefulSetUpdateStrategy) XXX_Size() int { |
| 632 | return m.Size() |
| 633 | } |
| 634 | func (m *StatefulSetUpdateStrategy) XXX_DiscardUnknown() { |
| 635 | xxx_messageInfo_StatefulSetUpdateStrategy.DiscardUnknown(m) |
| 636 | } |
| 637 | |
| 638 | var xxx_messageInfo_StatefulSetUpdateStrategy proto.InternalMessageInfo |
| 639 | |
| 640 | func init() { |
| 641 | proto.RegisterType((*ControllerRevision)(nil), "k8s.io.api.apps.v1beta1.ControllerRevision") |
| 642 | proto.RegisterType((*ControllerRevisionList)(nil), "k8s.io.api.apps.v1beta1.ControllerRevisionList") |
| 643 | proto.RegisterType((*Deployment)(nil), "k8s.io.api.apps.v1beta1.Deployment") |
| 644 | proto.RegisterType((*DeploymentCondition)(nil), "k8s.io.api.apps.v1beta1.DeploymentCondition") |
| 645 | proto.RegisterType((*DeploymentList)(nil), "k8s.io.api.apps.v1beta1.DeploymentList") |
| 646 | proto.RegisterType((*DeploymentRollback)(nil), "k8s.io.api.apps.v1beta1.DeploymentRollback") |
| 647 | proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.apps.v1beta1.DeploymentRollback.UpdatedAnnotationsEntry") |
| 648 | proto.RegisterType((*DeploymentSpec)(nil), "k8s.io.api.apps.v1beta1.DeploymentSpec") |
| 649 | proto.RegisterType((*DeploymentStatus)(nil), "k8s.io.api.apps.v1beta1.DeploymentStatus") |
| 650 | proto.RegisterType((*DeploymentStrategy)(nil), "k8s.io.api.apps.v1beta1.DeploymentStrategy") |
| 651 | proto.RegisterType((*RollbackConfig)(nil), "k8s.io.api.apps.v1beta1.RollbackConfig") |
| 652 | proto.RegisterType((*RollingUpdateDeployment)(nil), "k8s.io.api.apps.v1beta1.RollingUpdateDeployment") |
| 653 | proto.RegisterType((*RollingUpdateStatefulSetStrategy)(nil), "k8s.io.api.apps.v1beta1.RollingUpdateStatefulSetStrategy") |
| 654 | proto.RegisterType((*Scale)(nil), "k8s.io.api.apps.v1beta1.Scale") |
| 655 | proto.RegisterType((*ScaleSpec)(nil), "k8s.io.api.apps.v1beta1.ScaleSpec") |
| 656 | proto.RegisterType((*ScaleStatus)(nil), "k8s.io.api.apps.v1beta1.ScaleStatus") |
| 657 | proto.RegisterMapType((map[string]string)(nil), "k8s.io.api.apps.v1beta1.ScaleStatus.SelectorEntry") |
| 658 | proto.RegisterType((*StatefulSet)(nil), "k8s.io.api.apps.v1beta1.StatefulSet") |
| 659 | proto.RegisterType((*StatefulSetCondition)(nil), "k8s.io.api.apps.v1beta1.StatefulSetCondition") |
| 660 | proto.RegisterType((*StatefulSetList)(nil), "k8s.io.api.apps.v1beta1.StatefulSetList") |
| 661 | proto.RegisterType((*StatefulSetSpec)(nil), "k8s.io.api.apps.v1beta1.StatefulSetSpec") |
| 662 | proto.RegisterType((*StatefulSetStatus)(nil), "k8s.io.api.apps.v1beta1.StatefulSetStatus") |
| 663 | proto.RegisterType((*StatefulSetUpdateStrategy)(nil), "k8s.io.api.apps.v1beta1.StatefulSetUpdateStrategy") |
| 664 | } |
| 665 | |
| 666 | func init() { |
| 667 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/apps/v1beta1/generated.proto", fileDescriptor_2a07313e8f66e805) |
| 668 | } |
| 669 | |
| 670 | var fileDescriptor_2a07313e8f66e805 = []byte{ |
| 671 | // 1855 bytes of a gzipped FileDescriptorProto |
| 672 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x58, 0xcd, 0x6f, 0x24, 0x47, |
| 673 | 0x15, 0x77, 0x8f, 0x67, 0xec, 0xf1, 0x73, 0x3c, 0xde, 0x2d, 0x9b, 0xf5, 0xc4, 0x81, 0xb1, 0x35, |
| 674 | 0x44, 0x89, 0xf3, 0xe1, 0x9e, 0xac, 0x13, 0xa2, 0x64, 0x17, 0x45, 0x78, 0xbc, 0x4b, 0xb2, 0x91, |
| 675 | 0x8d, 0x9d, 0xb2, 0x1d, 0x44, 0x00, 0x29, 0x35, 0x3d, 0xb5, 0xb3, 0x1d, 0xf7, 0x97, 0xba, 0xab, |
| 676 | 0x87, 0x1d, 0x71, 0xe1, 0x0f, 0x40, 0x0a, 0x67, 0xfe, 0x0a, 0x8e, 0x08, 0x6e, 0x9c, 0xf6, 0x82, |
| 677 | 0x14, 0x71, 0x21, 0x27, 0x8b, 0x9d, 0x5c, 0x81, 0x1b, 0x97, 0x95, 0x90, 0x50, 0x55, 0x57, 0x7f, |
| 678 | 0x77, 0xdb, 0x6d, 0xa4, 0xb5, 0x04, 0xb7, 0xe9, 0x7a, 0xef, 0xfd, 0x5e, 0x7d, 0xbc, 0xaf, 0xdf, |
| 679 | 0xc0, 0x0f, 0xce, 0xde, 0xf3, 0x54, 0xdd, 0xee, 0x9d, 0xf9, 0x03, 0xea, 0x5a, 0x94, 0x51, 0xaf, |
| 680 | 0x37, 0xa6, 0xd6, 0xd0, 0x76, 0x7b, 0x52, 0x40, 0x1c, 0xbd, 0x47, 0x1c, 0xc7, 0xeb, 0x8d, 0x6f, |
| 681 | 0x0f, 0x28, 0x23, 0xb7, 0x7b, 0x23, 0x6a, 0x51, 0x97, 0x30, 0x3a, 0x54, 0x1d, 0xd7, 0x66, 0x36, |
| 682 | 0x5a, 0x0b, 0x14, 0x55, 0xe2, 0xe8, 0x2a, 0x57, 0x54, 0xa5, 0xe2, 0xfa, 0xf6, 0x48, 0x67, 0x8f, |
| 683 | 0xfc, 0x81, 0xaa, 0xd9, 0x66, 0x6f, 0x64, 0x8f, 0xec, 0x9e, 0xd0, 0x1f, 0xf8, 0x0f, 0xc5, 0x97, |
| 684 | 0xf8, 0x10, 0xbf, 0x02, 0x9c, 0xf5, 0x6e, 0xc2, 0xa1, 0x66, 0xbb, 0xb4, 0x37, 0xce, 0xf9, 0x5a, |
| 685 | 0x7f, 0x27, 0xd6, 0x31, 0x89, 0xf6, 0x48, 0xb7, 0xa8, 0x3b, 0xe9, 0x39, 0x67, 0x23, 0xbe, 0xe0, |
| 686 | 0xf5, 0x4c, 0xca, 0x48, 0x91, 0x55, 0xaf, 0xcc, 0xca, 0xf5, 0x2d, 0xa6, 0x9b, 0x34, 0x67, 0xf0, |
| 687 | 0xee, 0x65, 0x06, 0x9e, 0xf6, 0x88, 0x9a, 0x24, 0x67, 0xf7, 0x76, 0x99, 0x9d, 0xcf, 0x74, 0xa3, |
| 688 | 0xa7, 0x5b, 0xcc, 0x63, 0x6e, 0xd6, 0xa8, 0xfb, 0x2f, 0x05, 0xd0, 0x9e, 0x6d, 0x31, 0xd7, 0x36, |
| 689 | 0x0c, 0xea, 0x62, 0x3a, 0xd6, 0x3d, 0xdd, 0xb6, 0xd0, 0xe7, 0xd0, 0xe4, 0xe7, 0x19, 0x12, 0x46, |
| 690 | 0xda, 0xca, 0xa6, 0xb2, 0xb5, 0xb8, 0xf3, 0x96, 0x1a, 0xdf, 0x74, 0x04, 0xaf, 0x3a, 0x67, 0x23, |
| 691 | 0xbe, 0xe0, 0xa9, 0x5c, 0x5b, 0x1d, 0xdf, 0x56, 0x0f, 0x07, 0x5f, 0x50, 0x8d, 0x1d, 0x50, 0x46, |
| 692 | 0xfa, 0xe8, 0xc9, 0xf9, 0xc6, 0xcc, 0xf4, 0x7c, 0x03, 0xe2, 0x35, 0x1c, 0xa1, 0xa2, 0x43, 0xa8, |
| 693 | 0x0b, 0xf4, 0x9a, 0x40, 0xdf, 0x2e, 0x45, 0x97, 0x87, 0x56, 0x31, 0xf9, 0xc5, 0xfd, 0xc7, 0x8c, |
| 694 | 0x5a, 0x7c, 0x7b, 0xfd, 0x17, 0x24, 0x74, 0xfd, 0x1e, 0x61, 0x04, 0x0b, 0x20, 0xf4, 0x26, 0x34, |
| 695 | 0x5d, 0xb9, 0xfd, 0xf6, 0xec, 0xa6, 0xb2, 0x35, 0xdb, 0xbf, 0x21, 0xb5, 0x9a, 0xe1, 0xb1, 0x70, |
| 696 | 0xa4, 0xd1, 0x7d, 0xa2, 0xc0, 0xad, 0xfc, 0xb9, 0xf7, 0x75, 0x8f, 0xa1, 0x9f, 0xe5, 0xce, 0xae, |
| 697 | 0x56, 0x3b, 0x3b, 0xb7, 0x16, 0x27, 0x8f, 0x1c, 0x87, 0x2b, 0x89, 0x73, 0x1f, 0x41, 0x43, 0x67, |
| 698 | 0xd4, 0xf4, 0xda, 0xb5, 0xcd, 0xd9, 0xad, 0xc5, 0x9d, 0x37, 0xd4, 0x92, 0x00, 0x56, 0xf3, 0xbb, |
| 699 | 0xeb, 0x2f, 0x49, 0xdc, 0xc6, 0x03, 0x8e, 0x80, 0x03, 0xa0, 0xee, 0xaf, 0x6b, 0x00, 0xf7, 0xa8, |
| 700 | 0x63, 0xd8, 0x13, 0x93, 0x5a, 0xec, 0x1a, 0x9e, 0xee, 0x01, 0xd4, 0x3d, 0x87, 0x6a, 0xf2, 0xe9, |
| 701 | 0x5e, 0x2d, 0x3d, 0x41, 0xbc, 0xa9, 0x63, 0x87, 0x6a, 0xf1, 0xa3, 0xf1, 0x2f, 0x2c, 0x20, 0xd0, |
| 702 | 0x27, 0x30, 0xe7, 0x31, 0xc2, 0x7c, 0x4f, 0x3c, 0xd9, 0xe2, 0xce, 0x6b, 0x55, 0xc0, 0x84, 0x41, |
| 703 | 0xbf, 0x25, 0xe1, 0xe6, 0x82, 0x6f, 0x2c, 0x81, 0xba, 0x7f, 0x9d, 0x85, 0x95, 0x58, 0x79, 0xcf, |
| 704 | 0xb6, 0x86, 0x3a, 0xe3, 0x21, 0x7d, 0x17, 0xea, 0x6c, 0xe2, 0x50, 0x71, 0x27, 0x0b, 0xfd, 0x57, |
| 705 | 0xc3, 0xcd, 0x9c, 0x4c, 0x1c, 0xfa, 0xec, 0x7c, 0x63, 0xad, 0xc0, 0x84, 0x8b, 0xb0, 0x30, 0x42, |
| 706 | 0xfb, 0xd1, 0x3e, 0x6b, 0xc2, 0xfc, 0x9d, 0xb4, 0xf3, 0x67, 0xe7, 0x1b, 0x05, 0x05, 0x44, 0x8d, |
| 707 | 0x90, 0xd2, 0x5b, 0x44, 0x5f, 0x40, 0xcb, 0x20, 0x1e, 0x3b, 0x75, 0x86, 0x84, 0xd1, 0x13, 0xdd, |
| 708 | 0xa4, 0xed, 0x39, 0x71, 0xfa, 0xd7, 0xab, 0x3d, 0x14, 0xb7, 0xe8, 0xdf, 0x92, 0x3b, 0x68, 0xed, |
| 709 | 0xa7, 0x90, 0x70, 0x06, 0x19, 0x8d, 0x01, 0xf1, 0x95, 0x13, 0x97, 0x58, 0x5e, 0x70, 0x2a, 0xee, |
| 710 | 0x6f, 0xfe, 0xca, 0xfe, 0xd6, 0xa5, 0x3f, 0xb4, 0x9f, 0x43, 0xc3, 0x05, 0x1e, 0xd0, 0x2b, 0x30, |
| 711 | 0xe7, 0x52, 0xe2, 0xd9, 0x56, 0xbb, 0x2e, 0x6e, 0x2c, 0x7a, 0x2e, 0x2c, 0x56, 0xb1, 0x94, 0xa2, |
| 712 | 0xd7, 0x60, 0xde, 0xa4, 0x9e, 0x47, 0x46, 0xb4, 0xdd, 0x10, 0x8a, 0xcb, 0x52, 0x71, 0xfe, 0x20, |
| 713 | 0x58, 0xc6, 0xa1, 0xbc, 0xfb, 0x7b, 0x05, 0x5a, 0xf1, 0x33, 0x5d, 0x43, 0xae, 0x7e, 0x94, 0xce, |
| 714 | 0xd5, 0xef, 0x56, 0x08, 0xce, 0x92, 0x1c, 0xfd, 0x7b, 0x0d, 0x50, 0xac, 0x84, 0x6d, 0xc3, 0x18, |
| 715 | 0x10, 0xed, 0x0c, 0x6d, 0x42, 0xdd, 0x22, 0x66, 0x18, 0x93, 0x51, 0x82, 0xfc, 0x88, 0x98, 0x14, |
| 716 | 0x0b, 0x09, 0xfa, 0x52, 0x01, 0xe4, 0x8b, 0xd7, 0x1c, 0xee, 0x5a, 0x96, 0xcd, 0x08, 0xbf, 0xe0, |
| 717 | 0x70, 0x43, 0x7b, 0x15, 0x36, 0x14, 0xfa, 0x52, 0x4f, 0x73, 0x28, 0xf7, 0x2d, 0xe6, 0x4e, 0xe2, |
| 718 | 0x87, 0xcd, 0x2b, 0xe0, 0x02, 0xd7, 0xe8, 0xa7, 0x00, 0xae, 0xc4, 0x3c, 0xb1, 0x65, 0xda, 0x96, |
| 719 | 0xd7, 0x80, 0xd0, 0xfd, 0x9e, 0x6d, 0x3d, 0xd4, 0x47, 0x71, 0x61, 0xc1, 0x11, 0x04, 0x4e, 0xc0, |
| 720 | 0xad, 0xdf, 0x87, 0xb5, 0x92, 0x7d, 0xa2, 0x1b, 0x30, 0x7b, 0x46, 0x27, 0xc1, 0x55, 0x61, 0xfe, |
| 721 | 0x13, 0xad, 0x42, 0x63, 0x4c, 0x0c, 0x9f, 0x06, 0x39, 0x89, 0x83, 0x8f, 0x3b, 0xb5, 0xf7, 0x94, |
| 722 | 0xee, 0xef, 0x1a, 0xc9, 0x48, 0xe1, 0xf5, 0x06, 0x6d, 0xf1, 0xf6, 0xe0, 0x18, 0xba, 0x46, 0x3c, |
| 723 | 0x81, 0xd1, 0xe8, 0xbf, 0x10, 0xb4, 0x86, 0x60, 0x0d, 0x47, 0x52, 0xf4, 0x73, 0x68, 0x7a, 0xd4, |
| 724 | 0xa0, 0x1a, 0xb3, 0x5d, 0x59, 0xe2, 0xde, 0xae, 0x18, 0x53, 0x64, 0x40, 0x8d, 0x63, 0x69, 0x1a, |
| 725 | 0xc0, 0x87, 0x5f, 0x38, 0x82, 0x44, 0x9f, 0x40, 0x93, 0x51, 0xd3, 0x31, 0x08, 0xa3, 0xf2, 0xf6, |
| 726 | 0x52, 0x71, 0xc5, 0x6b, 0x07, 0x07, 0x3b, 0xb2, 0x87, 0x27, 0x52, 0x4d, 0x54, 0xcf, 0x28, 0x4e, |
| 727 | 0xc3, 0x55, 0x1c, 0xc1, 0xa0, 0x9f, 0x40, 0xd3, 0x63, 0xbc, 0xab, 0x8f, 0x26, 0x22, 0xdb, 0x2e, |
| 728 | 0x6a, 0x2b, 0xc9, 0x3a, 0x1a, 0x98, 0xc4, 0xd0, 0xe1, 0x0a, 0x8e, 0xe0, 0xd0, 0x2e, 0x2c, 0x9b, |
| 729 | 0xba, 0x85, 0x29, 0x19, 0x4e, 0x8e, 0xa9, 0x66, 0x5b, 0x43, 0x4f, 0xa4, 0x69, 0xa3, 0xbf, 0x26, |
| 730 | 0x8d, 0x96, 0x0f, 0xd2, 0x62, 0x9c, 0xd5, 0x47, 0xfb, 0xb0, 0x1a, 0xb6, 0xdd, 0x8f, 0x74, 0x8f, |
| 731 | 0xd9, 0xee, 0x64, 0x5f, 0x37, 0x75, 0x26, 0x6a, 0x5e, 0xa3, 0xdf, 0x9e, 0x9e, 0x6f, 0xac, 0xe2, |
| 732 | 0x02, 0x39, 0x2e, 0xb4, 0xe2, 0x75, 0xc5, 0x21, 0xbe, 0x47, 0x87, 0xa2, 0x86, 0x35, 0xe3, 0xba, |
| 733 | 0x72, 0x24, 0x56, 0xb1, 0x94, 0xa2, 0x1f, 0xa7, 0xc2, 0xb4, 0x79, 0xb5, 0x30, 0x6d, 0x95, 0x87, |
| 734 | 0x28, 0x3a, 0x85, 0x35, 0xc7, 0xb5, 0x47, 0x2e, 0xf5, 0xbc, 0x7b, 0x94, 0x0c, 0x0d, 0xdd, 0xa2, |
| 735 | 0xe1, 0xcd, 0x2c, 0x88, 0x13, 0xbd, 0x34, 0x3d, 0xdf, 0x58, 0x3b, 0x2a, 0x56, 0xc1, 0x65, 0xb6, |
| 736 | 0xdd, 0x3f, 0xd5, 0xe1, 0x46, 0xb6, 0xc7, 0xa1, 0x8f, 0x01, 0xd9, 0x03, 0x8f, 0xba, 0x63, 0x3a, |
| 737 | 0xfc, 0x30, 0x18, 0xdc, 0xf8, 0x74, 0xa3, 0x88, 0xe9, 0x26, 0xca, 0xdb, 0xc3, 0x9c, 0x06, 0x2e, |
| 738 | 0xb0, 0x0a, 0xe6, 0x23, 0x99, 0x00, 0x35, 0xb1, 0xd1, 0xc4, 0x7c, 0x94, 0x4b, 0x82, 0x5d, 0x58, |
| 739 | 0x96, 0xb9, 0x1f, 0x0a, 0x45, 0xb0, 0x26, 0xde, 0xfd, 0x34, 0x2d, 0xc6, 0x59, 0x7d, 0x74, 0x17, |
| 740 | 0x96, 0x5c, 0x1e, 0x07, 0x11, 0xc0, 0xbc, 0x00, 0xf8, 0x96, 0x04, 0x58, 0xc2, 0x49, 0x21, 0x4e, |
| 741 | 0xeb, 0xa2, 0x0f, 0xe1, 0x26, 0x19, 0x13, 0xdd, 0x20, 0x03, 0x83, 0x46, 0x00, 0x75, 0x01, 0xf0, |
| 742 | 0xa2, 0x04, 0xb8, 0xb9, 0x9b, 0x55, 0xc0, 0x79, 0x1b, 0x74, 0x00, 0x2b, 0xbe, 0x95, 0x87, 0x0a, |
| 743 | 0x82, 0xf8, 0x25, 0x09, 0xb5, 0x72, 0x9a, 0x57, 0xc1, 0x45, 0x76, 0xe8, 0x73, 0x00, 0x2d, 0xec, |
| 744 | 0xea, 0x5e, 0x7b, 0x4e, 0x94, 0xe1, 0x37, 0x2b, 0x24, 0x5b, 0x34, 0x0a, 0xc4, 0x25, 0x30, 0x5a, |
| 745 | 0xf2, 0x70, 0x02, 0x13, 0xdd, 0x81, 0x96, 0x66, 0x1b, 0x86, 0x88, 0xfc, 0x3d, 0xdb, 0xb7, 0x98, |
| 746 | 0x08, 0xde, 0x46, 0x1f, 0xf1, 0x66, 0xbf, 0x97, 0x92, 0xe0, 0x8c, 0x66, 0xf7, 0x8f, 0x4a, 0xb2, |
| 747 | 0xcd, 0x84, 0xe9, 0x8c, 0xee, 0xa4, 0x46, 0x9f, 0x57, 0x32, 0xa3, 0xcf, 0xad, 0xbc, 0x45, 0x62, |
| 748 | 0xf2, 0xd1, 0x61, 0x89, 0x07, 0xbf, 0x6e, 0x8d, 0x82, 0x07, 0x97, 0x25, 0xf1, 0xad, 0x0b, 0x53, |
| 749 | 0x29, 0xd2, 0x4e, 0x34, 0xc6, 0x9b, 0xe2, 0xcd, 0x93, 0x42, 0x9c, 0x46, 0xee, 0x7e, 0x00, 0xad, |
| 750 | 0x74, 0x1e, 0xa6, 0x66, 0x7a, 0xe5, 0xd2, 0x99, 0xfe, 0x1b, 0x05, 0xd6, 0x4a, 0xbc, 0x23, 0x03, |
| 751 | 0x5a, 0x26, 0x79, 0x9c, 0x78, 0xe6, 0x4b, 0x67, 0x63, 0xce, 0x9a, 0xd4, 0x80, 0x35, 0xa9, 0x0f, |
| 752 | 0x2c, 0x76, 0xe8, 0x1e, 0x33, 0x57, 0xb7, 0x46, 0xc1, 0x3b, 0x1c, 0xa4, 0xb0, 0x70, 0x06, 0x1b, |
| 753 | 0x7d, 0x06, 0x4d, 0x93, 0x3c, 0x3e, 0xf6, 0xdd, 0x51, 0xd1, 0x7d, 0x55, 0xf3, 0x23, 0xfa, 0xc7, |
| 754 | 0x81, 0x44, 0xc1, 0x11, 0x5e, 0xf7, 0x10, 0x36, 0x53, 0x87, 0xe4, 0xa5, 0x82, 0x3e, 0xf4, 0x8d, |
| 755 | 0x63, 0x1a, 0x3f, 0xf8, 0x1b, 0xb0, 0xe0, 0x10, 0x97, 0xe9, 0x51, 0xb9, 0x68, 0xf4, 0x97, 0xa6, |
| 756 | 0xe7, 0x1b, 0x0b, 0x47, 0xe1, 0x22, 0x8e, 0xe5, 0xdd, 0x7f, 0x2b, 0xd0, 0x38, 0xd6, 0x88, 0x41, |
| 757 | 0xaf, 0x81, 0x3a, 0xdc, 0x4b, 0x51, 0x87, 0x6e, 0x69, 0x10, 0x89, 0xfd, 0x94, 0xb2, 0x86, 0xfd, |
| 758 | 0x0c, 0x6b, 0x78, 0xf9, 0x12, 0x9c, 0x8b, 0x09, 0xc3, 0xfb, 0xb0, 0x10, 0xb9, 0x4b, 0x55, 0x49, |
| 759 | 0xe5, 0xb2, 0x2a, 0xd9, 0xfd, 0x6d, 0x0d, 0x16, 0x13, 0x2e, 0xae, 0x66, 0xcd, 0xaf, 0x3b, 0x31, |
| 760 | 0x68, 0xf0, 0x4a, 0xb2, 0x53, 0xe5, 0x20, 0x6a, 0x38, 0x54, 0x04, 0xf3, 0x5b, 0xdc, 0xbd, 0xf3, |
| 761 | 0xb3, 0xc6, 0x07, 0xd0, 0x62, 0xc4, 0x1d, 0x51, 0x16, 0xca, 0xc4, 0x85, 0x2d, 0xc4, 0xe4, 0xe1, |
| 762 | 0x24, 0x25, 0xc5, 0x19, 0xed, 0xf5, 0xbb, 0xb0, 0x94, 0x72, 0x76, 0xa5, 0x21, 0xec, 0x4b, 0x7e, |
| 763 | 0x39, 0x71, 0x70, 0x5e, 0x43, 0x74, 0x7d, 0x9c, 0x8a, 0xae, 0xad, 0xf2, 0xcb, 0x4c, 0xa4, 0x4c, |
| 764 | 0x59, 0x8c, 0xe1, 0x4c, 0x8c, 0xbd, 0x5e, 0x09, 0xed, 0xe2, 0x48, 0xfb, 0x47, 0x0d, 0x56, 0x13, |
| 765 | 0xda, 0x31, 0x37, 0xfd, 0x7e, 0xaa, 0x40, 0x6f, 0x65, 0x0a, 0x74, 0xbb, 0xc8, 0xe6, 0xb9, 0x91, |
| 766 | 0xd3, 0x62, 0xc2, 0x38, 0xfb, 0xbf, 0x48, 0x18, 0xff, 0xa0, 0xc0, 0x72, 0xe2, 0xee, 0xae, 0x81, |
| 767 | 0x31, 0x3e, 0x48, 0x33, 0xc6, 0x97, 0xab, 0x04, 0x4d, 0x09, 0x65, 0xfc, 0x73, 0x23, 0xb5, 0xf9, |
| 768 | 0xff, 0x7b, 0x12, 0xf3, 0x4b, 0x58, 0x1d, 0xdb, 0x86, 0x6f, 0xd2, 0x3d, 0x83, 0xe8, 0x66, 0xa8, |
| 769 | 0xc0, 0x87, 0xbe, 0xd9, 0xec, 0x1f, 0x43, 0x11, 0x3c, 0x75, 0x3d, 0xdd, 0x63, 0xd4, 0x62, 0x9f, |
| 770 | 0xc6, 0x96, 0xfd, 0x6f, 0x4b, 0x27, 0xab, 0x9f, 0x16, 0xc0, 0xe1, 0x42, 0x27, 0xe8, 0x7b, 0xb0, |
| 771 | 0xc8, 0x07, 0x66, 0x5d, 0xa3, 0x9c, 0x7b, 0xcb, 0xc0, 0x5a, 0x91, 0x40, 0x8b, 0xc7, 0xb1, 0x08, |
| 772 | 0x27, 0xf5, 0xd0, 0x23, 0x58, 0x71, 0xec, 0xe1, 0x01, 0xb1, 0xc8, 0x88, 0xf2, 0x31, 0xe3, 0xc8, |
| 773 | 0x36, 0x74, 0x6d, 0x22, 0x98, 0xcd, 0x42, 0xff, 0xdd, 0x70, 0xb8, 0x3c, 0xca, 0xab, 0x3c, 0xe3, |
| 774 | 0x14, 0x21, 0xbf, 0x2c, 0x92, 0xba, 0x08, 0x12, 0xb9, 0xd0, 0xf2, 0x65, 0xbb, 0x97, 0x44, 0x2f, |
| 775 | 0xf8, 0x0b, 0x67, 0xa7, 0x4a, 0x84, 0x9d, 0xa6, 0x2c, 0xe3, 0xea, 0x9f, 0x5e, 0xc7, 0x19, 0x0f, |
| 776 | 0xa5, 0xc4, 0xad, 0xf9, 0xdf, 0x10, 0xb7, 0xee, 0x3f, 0xeb, 0x70, 0x33, 0x57, 0x2a, 0xd1, 0x0f, |
| 777 | 0x2f, 0x60, 0x38, 0xb7, 0x9e, 0x1b, 0xbb, 0xc9, 0x51, 0x93, 0xd9, 0x2b, 0x50, 0x93, 0x5d, 0x58, |
| 778 | 0xd6, 0x7c, 0xd7, 0xa5, 0x16, 0xcb, 0x10, 0x93, 0x88, 0x1a, 0xed, 0xa5, 0xc5, 0x38, 0xab, 0x5f, |
| 779 | 0xc4, 0xae, 0x1a, 0x57, 0x64, 0x57, 0xc9, 0x5d, 0xc8, 0x09, 0x39, 0x08, 0xbb, 0xfc, 0x2e, 0xe4, |
| 780 | 0xa0, 0x9c, 0xd5, 0xe7, 0xd3, 0x41, 0x80, 0x1a, 0x21, 0xcc, 0xa7, 0xa7, 0x83, 0xd3, 0x94, 0x14, |
| 781 | 0x67, 0xb4, 0x0b, 0x98, 0xca, 0x42, 0x55, 0xa6, 0x82, 0x48, 0x8a, 0x47, 0x81, 0xc8, 0xf1, 0xed, |
| 782 | 0x2a, 0xb1, 0x5c, 0x99, 0x48, 0x75, 0xff, 0xa2, 0xc0, 0x8b, 0xa5, 0x49, 0x80, 0x76, 0x53, 0x2d, |
| 783 | 0x77, 0x3b, 0xd3, 0x72, 0xbf, 0x53, 0x6a, 0x98, 0xe8, 0xbb, 0x6e, 0x31, 0x35, 0x7a, 0xbf, 0x1a, |
| 784 | 0x35, 0x2a, 0x98, 0xdb, 0x2f, 0xe7, 0x48, 0xfd, 0xed, 0x27, 0x4f, 0x3b, 0x33, 0x5f, 0x3d, 0xed, |
| 785 | 0xcc, 0x7c, 0xfd, 0xb4, 0x33, 0xf3, 0xab, 0x69, 0x47, 0x79, 0x32, 0xed, 0x28, 0x5f, 0x4d, 0x3b, |
| 786 | 0xca, 0xd7, 0xd3, 0x8e, 0xf2, 0xb7, 0x69, 0x47, 0xf9, 0xcd, 0x37, 0x9d, 0x99, 0xcf, 0xe6, 0xa5, |
| 787 | 0xc7, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0x99, 0x8d, 0x1e, 0xaf, 0x61, 0x1b, 0x00, 0x00, |
| 788 | } |
| 789 | |
| 790 | func (m *ControllerRevision) Marshal() (dAtA []byte, err error) { |
| 791 | size := m.Size() |
| 792 | dAtA = make([]byte, size) |
| 793 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 794 | if err != nil { |
| 795 | return nil, err |
| 796 | } |
| 797 | return dAtA[:n], nil |
| 798 | } |
| 799 | |
| 800 | func (m *ControllerRevision) MarshalTo(dAtA []byte) (int, error) { |
| 801 | size := m.Size() |
| 802 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 803 | } |
| 804 | |
| 805 | func (m *ControllerRevision) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 806 | i := len(dAtA) |
| 807 | _ = i |
| 808 | var l int |
| 809 | _ = l |
| 810 | i = encodeVarintGenerated(dAtA, i, uint64(m.Revision)) |
| 811 | i-- |
| 812 | dAtA[i] = 0x18 |
| 813 | { |
| 814 | size, err := m.Data.MarshalToSizedBuffer(dAtA[:i]) |
| 815 | if err != nil { |
| 816 | return 0, err |
| 817 | } |
| 818 | i -= size |
| 819 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 820 | } |
| 821 | i-- |
| 822 | dAtA[i] = 0x12 |
| 823 | { |
| 824 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 825 | if err != nil { |
| 826 | return 0, err |
| 827 | } |
| 828 | i -= size |
| 829 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 830 | } |
| 831 | i-- |
| 832 | dAtA[i] = 0xa |
| 833 | return len(dAtA) - i, nil |
| 834 | } |
| 835 | |
| 836 | func (m *ControllerRevisionList) Marshal() (dAtA []byte, err error) { |
| 837 | size := m.Size() |
| 838 | dAtA = make([]byte, size) |
| 839 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 840 | if err != nil { |
| 841 | return nil, err |
| 842 | } |
| 843 | return dAtA[:n], nil |
| 844 | } |
| 845 | |
| 846 | func (m *ControllerRevisionList) MarshalTo(dAtA []byte) (int, error) { |
| 847 | size := m.Size() |
| 848 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 849 | } |
| 850 | |
| 851 | func (m *ControllerRevisionList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 852 | i := len(dAtA) |
| 853 | _ = i |
| 854 | var l int |
| 855 | _ = l |
| 856 | if len(m.Items) > 0 { |
| 857 | for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 858 | { |
| 859 | size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 860 | if err != nil { |
| 861 | return 0, err |
| 862 | } |
| 863 | i -= size |
| 864 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 865 | } |
| 866 | i-- |
| 867 | dAtA[i] = 0x12 |
| 868 | } |
| 869 | } |
| 870 | { |
| 871 | size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 872 | if err != nil { |
| 873 | return 0, err |
| 874 | } |
| 875 | i -= size |
| 876 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 877 | } |
| 878 | i-- |
| 879 | dAtA[i] = 0xa |
| 880 | return len(dAtA) - i, nil |
| 881 | } |
| 882 | |
| 883 | func (m *Deployment) Marshal() (dAtA []byte, err error) { |
| 884 | size := m.Size() |
| 885 | dAtA = make([]byte, size) |
| 886 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 887 | if err != nil { |
| 888 | return nil, err |
| 889 | } |
| 890 | return dAtA[:n], nil |
| 891 | } |
| 892 | |
| 893 | func (m *Deployment) MarshalTo(dAtA []byte) (int, error) { |
| 894 | size := m.Size() |
| 895 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 896 | } |
| 897 | |
| 898 | func (m *Deployment) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 899 | i := len(dAtA) |
| 900 | _ = i |
| 901 | var l int |
| 902 | _ = l |
| 903 | { |
| 904 | size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) |
| 905 | if err != nil { |
| 906 | return 0, err |
| 907 | } |
| 908 | i -= size |
| 909 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 910 | } |
| 911 | i-- |
| 912 | dAtA[i] = 0x1a |
| 913 | { |
| 914 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 915 | if err != nil { |
| 916 | return 0, err |
| 917 | } |
| 918 | i -= size |
| 919 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 920 | } |
| 921 | i-- |
| 922 | dAtA[i] = 0x12 |
| 923 | { |
| 924 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 925 | if err != nil { |
| 926 | return 0, err |
| 927 | } |
| 928 | i -= size |
| 929 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 930 | } |
| 931 | i-- |
| 932 | dAtA[i] = 0xa |
| 933 | return len(dAtA) - i, nil |
| 934 | } |
| 935 | |
| 936 | func (m *DeploymentCondition) Marshal() (dAtA []byte, err error) { |
| 937 | size := m.Size() |
| 938 | dAtA = make([]byte, size) |
| 939 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 940 | if err != nil { |
| 941 | return nil, err |
| 942 | } |
| 943 | return dAtA[:n], nil |
| 944 | } |
| 945 | |
| 946 | func (m *DeploymentCondition) MarshalTo(dAtA []byte) (int, error) { |
| 947 | size := m.Size() |
| 948 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 949 | } |
| 950 | |
| 951 | func (m *DeploymentCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 952 | i := len(dAtA) |
| 953 | _ = i |
| 954 | var l int |
| 955 | _ = l |
| 956 | { |
| 957 | size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) |
| 958 | if err != nil { |
| 959 | return 0, err |
| 960 | } |
| 961 | i -= size |
| 962 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 963 | } |
| 964 | i-- |
| 965 | dAtA[i] = 0x3a |
| 966 | { |
| 967 | size, err := m.LastUpdateTime.MarshalToSizedBuffer(dAtA[:i]) |
| 968 | if err != nil { |
| 969 | return 0, err |
| 970 | } |
| 971 | i -= size |
| 972 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 973 | } |
| 974 | i-- |
| 975 | dAtA[i] = 0x32 |
| 976 | i -= len(m.Message) |
| 977 | copy(dAtA[i:], m.Message) |
| 978 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) |
| 979 | i-- |
| 980 | dAtA[i] = 0x2a |
| 981 | i -= len(m.Reason) |
| 982 | copy(dAtA[i:], m.Reason) |
| 983 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) |
| 984 | i-- |
| 985 | dAtA[i] = 0x22 |
| 986 | i -= len(m.Status) |
| 987 | copy(dAtA[i:], m.Status) |
| 988 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) |
| 989 | i-- |
| 990 | dAtA[i] = 0x12 |
| 991 | i -= len(m.Type) |
| 992 | copy(dAtA[i:], m.Type) |
| 993 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) |
| 994 | i-- |
| 995 | dAtA[i] = 0xa |
| 996 | return len(dAtA) - i, nil |
| 997 | } |
| 998 | |
| 999 | func (m *DeploymentList) Marshal() (dAtA []byte, err error) { |
| 1000 | size := m.Size() |
| 1001 | dAtA = make([]byte, size) |
| 1002 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1003 | if err != nil { |
| 1004 | return nil, err |
| 1005 | } |
| 1006 | return dAtA[:n], nil |
| 1007 | } |
| 1008 | |
| 1009 | func (m *DeploymentList) MarshalTo(dAtA []byte) (int, error) { |
| 1010 | size := m.Size() |
| 1011 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1012 | } |
| 1013 | |
| 1014 | func (m *DeploymentList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1015 | i := len(dAtA) |
| 1016 | _ = i |
| 1017 | var l int |
| 1018 | _ = l |
| 1019 | if len(m.Items) > 0 { |
| 1020 | for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 1021 | { |
| 1022 | size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1023 | if err != nil { |
| 1024 | return 0, err |
| 1025 | } |
| 1026 | i -= size |
| 1027 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1028 | } |
| 1029 | i-- |
| 1030 | dAtA[i] = 0x12 |
| 1031 | } |
| 1032 | } |
| 1033 | { |
| 1034 | size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 1035 | if err != nil { |
| 1036 | return 0, err |
| 1037 | } |
| 1038 | i -= size |
| 1039 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1040 | } |
| 1041 | i-- |
| 1042 | dAtA[i] = 0xa |
| 1043 | return len(dAtA) - i, nil |
| 1044 | } |
| 1045 | |
| 1046 | func (m *DeploymentRollback) Marshal() (dAtA []byte, err error) { |
| 1047 | size := m.Size() |
| 1048 | dAtA = make([]byte, size) |
| 1049 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1050 | if err != nil { |
| 1051 | return nil, err |
| 1052 | } |
| 1053 | return dAtA[:n], nil |
| 1054 | } |
| 1055 | |
| 1056 | func (m *DeploymentRollback) MarshalTo(dAtA []byte) (int, error) { |
| 1057 | size := m.Size() |
| 1058 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1059 | } |
| 1060 | |
| 1061 | func (m *DeploymentRollback) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1062 | i := len(dAtA) |
| 1063 | _ = i |
| 1064 | var l int |
| 1065 | _ = l |
| 1066 | { |
| 1067 | size, err := m.RollbackTo.MarshalToSizedBuffer(dAtA[:i]) |
| 1068 | if err != nil { |
| 1069 | return 0, err |
| 1070 | } |
| 1071 | i -= size |
| 1072 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1073 | } |
| 1074 | i-- |
| 1075 | dAtA[i] = 0x1a |
| 1076 | if len(m.UpdatedAnnotations) > 0 { |
| 1077 | keysForUpdatedAnnotations := make([]string, 0, len(m.UpdatedAnnotations)) |
| 1078 | for k := range m.UpdatedAnnotations { |
| 1079 | keysForUpdatedAnnotations = append(keysForUpdatedAnnotations, string(k)) |
| 1080 | } |
| 1081 | github_com_gogo_protobuf_sortkeys.Strings(keysForUpdatedAnnotations) |
| 1082 | for iNdEx := len(keysForUpdatedAnnotations) - 1; iNdEx >= 0; iNdEx-- { |
| 1083 | v := m.UpdatedAnnotations[string(keysForUpdatedAnnotations[iNdEx])] |
| 1084 | baseI := i |
| 1085 | i -= len(v) |
| 1086 | copy(dAtA[i:], v) |
| 1087 | i = encodeVarintGenerated(dAtA, i, uint64(len(v))) |
| 1088 | i-- |
| 1089 | dAtA[i] = 0x12 |
| 1090 | i -= len(keysForUpdatedAnnotations[iNdEx]) |
| 1091 | copy(dAtA[i:], keysForUpdatedAnnotations[iNdEx]) |
| 1092 | i = encodeVarintGenerated(dAtA, i, uint64(len(keysForUpdatedAnnotations[iNdEx]))) |
| 1093 | i-- |
| 1094 | dAtA[i] = 0xa |
| 1095 | i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) |
| 1096 | i-- |
| 1097 | dAtA[i] = 0x12 |
| 1098 | } |
| 1099 | } |
| 1100 | i -= len(m.Name) |
| 1101 | copy(dAtA[i:], m.Name) |
| 1102 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 1103 | i-- |
| 1104 | dAtA[i] = 0xa |
| 1105 | return len(dAtA) - i, nil |
| 1106 | } |
| 1107 | |
| 1108 | func (m *DeploymentSpec) Marshal() (dAtA []byte, err error) { |
| 1109 | size := m.Size() |
| 1110 | dAtA = make([]byte, size) |
| 1111 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1112 | if err != nil { |
| 1113 | return nil, err |
| 1114 | } |
| 1115 | return dAtA[:n], nil |
| 1116 | } |
| 1117 | |
| 1118 | func (m *DeploymentSpec) MarshalTo(dAtA []byte) (int, error) { |
| 1119 | size := m.Size() |
| 1120 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1121 | } |
| 1122 | |
| 1123 | func (m *DeploymentSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1124 | i := len(dAtA) |
| 1125 | _ = i |
| 1126 | var l int |
| 1127 | _ = l |
| 1128 | if m.ProgressDeadlineSeconds != nil { |
| 1129 | i = encodeVarintGenerated(dAtA, i, uint64(*m.ProgressDeadlineSeconds)) |
| 1130 | i-- |
| 1131 | dAtA[i] = 0x48 |
| 1132 | } |
| 1133 | if m.RollbackTo != nil { |
| 1134 | { |
| 1135 | size, err := m.RollbackTo.MarshalToSizedBuffer(dAtA[:i]) |
| 1136 | if err != nil { |
| 1137 | return 0, err |
| 1138 | } |
| 1139 | i -= size |
| 1140 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1141 | } |
| 1142 | i-- |
| 1143 | dAtA[i] = 0x42 |
| 1144 | } |
| 1145 | i-- |
| 1146 | if m.Paused { |
| 1147 | dAtA[i] = 1 |
| 1148 | } else { |
| 1149 | dAtA[i] = 0 |
| 1150 | } |
| 1151 | i-- |
| 1152 | dAtA[i] = 0x38 |
| 1153 | if m.RevisionHistoryLimit != nil { |
| 1154 | i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit)) |
| 1155 | i-- |
| 1156 | dAtA[i] = 0x30 |
| 1157 | } |
| 1158 | i = encodeVarintGenerated(dAtA, i, uint64(m.MinReadySeconds)) |
| 1159 | i-- |
| 1160 | dAtA[i] = 0x28 |
| 1161 | { |
| 1162 | size, err := m.Strategy.MarshalToSizedBuffer(dAtA[:i]) |
| 1163 | if err != nil { |
| 1164 | return 0, err |
| 1165 | } |
| 1166 | i -= size |
| 1167 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1168 | } |
| 1169 | i-- |
| 1170 | dAtA[i] = 0x22 |
| 1171 | { |
| 1172 | size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) |
| 1173 | if err != nil { |
| 1174 | return 0, err |
| 1175 | } |
| 1176 | i -= size |
| 1177 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1178 | } |
| 1179 | i-- |
| 1180 | dAtA[i] = 0x1a |
| 1181 | if m.Selector != nil { |
| 1182 | { |
| 1183 | size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) |
| 1184 | if err != nil { |
| 1185 | return 0, err |
| 1186 | } |
| 1187 | i -= size |
| 1188 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1189 | } |
| 1190 | i-- |
| 1191 | dAtA[i] = 0x12 |
| 1192 | } |
| 1193 | if m.Replicas != nil { |
| 1194 | i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) |
| 1195 | i-- |
| 1196 | dAtA[i] = 0x8 |
| 1197 | } |
| 1198 | return len(dAtA) - i, nil |
| 1199 | } |
| 1200 | |
| 1201 | func (m *DeploymentStatus) Marshal() (dAtA []byte, err error) { |
| 1202 | size := m.Size() |
| 1203 | dAtA = make([]byte, size) |
| 1204 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1205 | if err != nil { |
| 1206 | return nil, err |
| 1207 | } |
| 1208 | return dAtA[:n], nil |
| 1209 | } |
| 1210 | |
| 1211 | func (m *DeploymentStatus) MarshalTo(dAtA []byte) (int, error) { |
| 1212 | size := m.Size() |
| 1213 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1214 | } |
| 1215 | |
| 1216 | func (m *DeploymentStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1217 | i := len(dAtA) |
| 1218 | _ = i |
| 1219 | var l int |
| 1220 | _ = l |
| 1221 | if m.CollisionCount != nil { |
| 1222 | i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount)) |
| 1223 | i-- |
| 1224 | dAtA[i] = 0x40 |
| 1225 | } |
| 1226 | i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas)) |
| 1227 | i-- |
| 1228 | dAtA[i] = 0x38 |
| 1229 | if len(m.Conditions) > 0 { |
| 1230 | for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { |
| 1231 | { |
| 1232 | size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1233 | if err != nil { |
| 1234 | return 0, err |
| 1235 | } |
| 1236 | i -= size |
| 1237 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1238 | } |
| 1239 | i-- |
| 1240 | dAtA[i] = 0x32 |
| 1241 | } |
| 1242 | } |
| 1243 | i = encodeVarintGenerated(dAtA, i, uint64(m.UnavailableReplicas)) |
| 1244 | i-- |
| 1245 | dAtA[i] = 0x28 |
| 1246 | i = encodeVarintGenerated(dAtA, i, uint64(m.AvailableReplicas)) |
| 1247 | i-- |
| 1248 | dAtA[i] = 0x20 |
| 1249 | i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedReplicas)) |
| 1250 | i-- |
| 1251 | dAtA[i] = 0x18 |
| 1252 | i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) |
| 1253 | i-- |
| 1254 | dAtA[i] = 0x10 |
| 1255 | i = encodeVarintGenerated(dAtA, i, uint64(m.ObservedGeneration)) |
| 1256 | i-- |
| 1257 | dAtA[i] = 0x8 |
| 1258 | return len(dAtA) - i, nil |
| 1259 | } |
| 1260 | |
| 1261 | func (m *DeploymentStrategy) Marshal() (dAtA []byte, err error) { |
| 1262 | size := m.Size() |
| 1263 | dAtA = make([]byte, size) |
| 1264 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1265 | if err != nil { |
| 1266 | return nil, err |
| 1267 | } |
| 1268 | return dAtA[:n], nil |
| 1269 | } |
| 1270 | |
| 1271 | func (m *DeploymentStrategy) MarshalTo(dAtA []byte) (int, error) { |
| 1272 | size := m.Size() |
| 1273 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1274 | } |
| 1275 | |
| 1276 | func (m *DeploymentStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1277 | i := len(dAtA) |
| 1278 | _ = i |
| 1279 | var l int |
| 1280 | _ = l |
| 1281 | if m.RollingUpdate != nil { |
| 1282 | { |
| 1283 | size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i]) |
| 1284 | if err != nil { |
| 1285 | return 0, err |
| 1286 | } |
| 1287 | i -= size |
| 1288 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1289 | } |
| 1290 | i-- |
| 1291 | dAtA[i] = 0x12 |
| 1292 | } |
| 1293 | i -= len(m.Type) |
| 1294 | copy(dAtA[i:], m.Type) |
| 1295 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) |
| 1296 | i-- |
| 1297 | dAtA[i] = 0xa |
| 1298 | return len(dAtA) - i, nil |
| 1299 | } |
| 1300 | |
| 1301 | func (m *RollbackConfig) Marshal() (dAtA []byte, err error) { |
| 1302 | size := m.Size() |
| 1303 | dAtA = make([]byte, size) |
| 1304 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1305 | if err != nil { |
| 1306 | return nil, err |
| 1307 | } |
| 1308 | return dAtA[:n], nil |
| 1309 | } |
| 1310 | |
| 1311 | func (m *RollbackConfig) MarshalTo(dAtA []byte) (int, error) { |
| 1312 | size := m.Size() |
| 1313 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1314 | } |
| 1315 | |
| 1316 | func (m *RollbackConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1317 | i := len(dAtA) |
| 1318 | _ = i |
| 1319 | var l int |
| 1320 | _ = l |
| 1321 | i = encodeVarintGenerated(dAtA, i, uint64(m.Revision)) |
| 1322 | i-- |
| 1323 | dAtA[i] = 0x8 |
| 1324 | return len(dAtA) - i, nil |
| 1325 | } |
| 1326 | |
| 1327 | func (m *RollingUpdateDeployment) Marshal() (dAtA []byte, err error) { |
| 1328 | size := m.Size() |
| 1329 | dAtA = make([]byte, size) |
| 1330 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1331 | if err != nil { |
| 1332 | return nil, err |
| 1333 | } |
| 1334 | return dAtA[:n], nil |
| 1335 | } |
| 1336 | |
| 1337 | func (m *RollingUpdateDeployment) MarshalTo(dAtA []byte) (int, error) { |
| 1338 | size := m.Size() |
| 1339 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1340 | } |
| 1341 | |
| 1342 | func (m *RollingUpdateDeployment) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1343 | i := len(dAtA) |
| 1344 | _ = i |
| 1345 | var l int |
| 1346 | _ = l |
| 1347 | if m.MaxSurge != nil { |
| 1348 | { |
| 1349 | size, err := m.MaxSurge.MarshalToSizedBuffer(dAtA[:i]) |
| 1350 | if err != nil { |
| 1351 | return 0, err |
| 1352 | } |
| 1353 | i -= size |
| 1354 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1355 | } |
| 1356 | i-- |
| 1357 | dAtA[i] = 0x12 |
| 1358 | } |
| 1359 | if m.MaxUnavailable != nil { |
| 1360 | { |
| 1361 | size, err := m.MaxUnavailable.MarshalToSizedBuffer(dAtA[:i]) |
| 1362 | if err != nil { |
| 1363 | return 0, err |
| 1364 | } |
| 1365 | i -= size |
| 1366 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1367 | } |
| 1368 | i-- |
| 1369 | dAtA[i] = 0xa |
| 1370 | } |
| 1371 | return len(dAtA) - i, nil |
| 1372 | } |
| 1373 | |
| 1374 | func (m *RollingUpdateStatefulSetStrategy) Marshal() (dAtA []byte, err error) { |
| 1375 | size := m.Size() |
| 1376 | dAtA = make([]byte, size) |
| 1377 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1378 | if err != nil { |
| 1379 | return nil, err |
| 1380 | } |
| 1381 | return dAtA[:n], nil |
| 1382 | } |
| 1383 | |
| 1384 | func (m *RollingUpdateStatefulSetStrategy) MarshalTo(dAtA []byte) (int, error) { |
| 1385 | size := m.Size() |
| 1386 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1387 | } |
| 1388 | |
| 1389 | func (m *RollingUpdateStatefulSetStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1390 | i := len(dAtA) |
| 1391 | _ = i |
| 1392 | var l int |
| 1393 | _ = l |
| 1394 | if m.Partition != nil { |
| 1395 | i = encodeVarintGenerated(dAtA, i, uint64(*m.Partition)) |
| 1396 | i-- |
| 1397 | dAtA[i] = 0x8 |
| 1398 | } |
| 1399 | return len(dAtA) - i, nil |
| 1400 | } |
| 1401 | |
| 1402 | func (m *Scale) Marshal() (dAtA []byte, err error) { |
| 1403 | size := m.Size() |
| 1404 | dAtA = make([]byte, size) |
| 1405 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1406 | if err != nil { |
| 1407 | return nil, err |
| 1408 | } |
| 1409 | return dAtA[:n], nil |
| 1410 | } |
| 1411 | |
| 1412 | func (m *Scale) MarshalTo(dAtA []byte) (int, error) { |
| 1413 | size := m.Size() |
| 1414 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1415 | } |
| 1416 | |
| 1417 | func (m *Scale) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1418 | i := len(dAtA) |
| 1419 | _ = i |
| 1420 | var l int |
| 1421 | _ = l |
| 1422 | { |
| 1423 | size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) |
| 1424 | if err != nil { |
| 1425 | return 0, err |
| 1426 | } |
| 1427 | i -= size |
| 1428 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1429 | } |
| 1430 | i-- |
| 1431 | dAtA[i] = 0x1a |
| 1432 | { |
| 1433 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 1434 | if err != nil { |
| 1435 | return 0, err |
| 1436 | } |
| 1437 | i -= size |
| 1438 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1439 | } |
| 1440 | i-- |
| 1441 | dAtA[i] = 0x12 |
| 1442 | { |
| 1443 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 1444 | if err != nil { |
| 1445 | return 0, err |
| 1446 | } |
| 1447 | i -= size |
| 1448 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1449 | } |
| 1450 | i-- |
| 1451 | dAtA[i] = 0xa |
| 1452 | return len(dAtA) - i, nil |
| 1453 | } |
| 1454 | |
| 1455 | func (m *ScaleSpec) Marshal() (dAtA []byte, err error) { |
| 1456 | size := m.Size() |
| 1457 | dAtA = make([]byte, size) |
| 1458 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1459 | if err != nil { |
| 1460 | return nil, err |
| 1461 | } |
| 1462 | return dAtA[:n], nil |
| 1463 | } |
| 1464 | |
| 1465 | func (m *ScaleSpec) MarshalTo(dAtA []byte) (int, error) { |
| 1466 | size := m.Size() |
| 1467 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1468 | } |
| 1469 | |
| 1470 | func (m *ScaleSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1471 | i := len(dAtA) |
| 1472 | _ = i |
| 1473 | var l int |
| 1474 | _ = l |
| 1475 | i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) |
| 1476 | i-- |
| 1477 | dAtA[i] = 0x8 |
| 1478 | return len(dAtA) - i, nil |
| 1479 | } |
| 1480 | |
| 1481 | func (m *ScaleStatus) Marshal() (dAtA []byte, err error) { |
| 1482 | size := m.Size() |
| 1483 | dAtA = make([]byte, size) |
| 1484 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1485 | if err != nil { |
| 1486 | return nil, err |
| 1487 | } |
| 1488 | return dAtA[:n], nil |
| 1489 | } |
| 1490 | |
| 1491 | func (m *ScaleStatus) MarshalTo(dAtA []byte) (int, error) { |
| 1492 | size := m.Size() |
| 1493 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1494 | } |
| 1495 | |
| 1496 | func (m *ScaleStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1497 | i := len(dAtA) |
| 1498 | _ = i |
| 1499 | var l int |
| 1500 | _ = l |
| 1501 | i -= len(m.TargetSelector) |
| 1502 | copy(dAtA[i:], m.TargetSelector) |
| 1503 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.TargetSelector))) |
| 1504 | i-- |
| 1505 | dAtA[i] = 0x1a |
| 1506 | if len(m.Selector) > 0 { |
| 1507 | keysForSelector := make([]string, 0, len(m.Selector)) |
| 1508 | for k := range m.Selector { |
| 1509 | keysForSelector = append(keysForSelector, string(k)) |
| 1510 | } |
| 1511 | github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) |
| 1512 | for iNdEx := len(keysForSelector) - 1; iNdEx >= 0; iNdEx-- { |
| 1513 | v := m.Selector[string(keysForSelector[iNdEx])] |
| 1514 | baseI := i |
| 1515 | i -= len(v) |
| 1516 | copy(dAtA[i:], v) |
| 1517 | i = encodeVarintGenerated(dAtA, i, uint64(len(v))) |
| 1518 | i-- |
| 1519 | dAtA[i] = 0x12 |
| 1520 | i -= len(keysForSelector[iNdEx]) |
| 1521 | copy(dAtA[i:], keysForSelector[iNdEx]) |
| 1522 | i = encodeVarintGenerated(dAtA, i, uint64(len(keysForSelector[iNdEx]))) |
| 1523 | i-- |
| 1524 | dAtA[i] = 0xa |
| 1525 | i = encodeVarintGenerated(dAtA, i, uint64(baseI-i)) |
| 1526 | i-- |
| 1527 | dAtA[i] = 0x12 |
| 1528 | } |
| 1529 | } |
| 1530 | i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) |
| 1531 | i-- |
| 1532 | dAtA[i] = 0x8 |
| 1533 | return len(dAtA) - i, nil |
| 1534 | } |
| 1535 | |
| 1536 | func (m *StatefulSet) Marshal() (dAtA []byte, err error) { |
| 1537 | size := m.Size() |
| 1538 | dAtA = make([]byte, size) |
| 1539 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1540 | if err != nil { |
| 1541 | return nil, err |
| 1542 | } |
| 1543 | return dAtA[:n], nil |
| 1544 | } |
| 1545 | |
| 1546 | func (m *StatefulSet) MarshalTo(dAtA []byte) (int, error) { |
| 1547 | size := m.Size() |
| 1548 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1549 | } |
| 1550 | |
| 1551 | func (m *StatefulSet) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1552 | i := len(dAtA) |
| 1553 | _ = i |
| 1554 | var l int |
| 1555 | _ = l |
| 1556 | { |
| 1557 | size, err := m.Status.MarshalToSizedBuffer(dAtA[:i]) |
| 1558 | if err != nil { |
| 1559 | return 0, err |
| 1560 | } |
| 1561 | i -= size |
| 1562 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1563 | } |
| 1564 | i-- |
| 1565 | dAtA[i] = 0x1a |
| 1566 | { |
| 1567 | size, err := m.Spec.MarshalToSizedBuffer(dAtA[:i]) |
| 1568 | if err != nil { |
| 1569 | return 0, err |
| 1570 | } |
| 1571 | i -= size |
| 1572 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1573 | } |
| 1574 | i-- |
| 1575 | dAtA[i] = 0x12 |
| 1576 | { |
| 1577 | size, err := m.ObjectMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 1578 | if err != nil { |
| 1579 | return 0, err |
| 1580 | } |
| 1581 | i -= size |
| 1582 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1583 | } |
| 1584 | i-- |
| 1585 | dAtA[i] = 0xa |
| 1586 | return len(dAtA) - i, nil |
| 1587 | } |
| 1588 | |
| 1589 | func (m *StatefulSetCondition) Marshal() (dAtA []byte, err error) { |
| 1590 | size := m.Size() |
| 1591 | dAtA = make([]byte, size) |
| 1592 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1593 | if err != nil { |
| 1594 | return nil, err |
| 1595 | } |
| 1596 | return dAtA[:n], nil |
| 1597 | } |
| 1598 | |
| 1599 | func (m *StatefulSetCondition) MarshalTo(dAtA []byte) (int, error) { |
| 1600 | size := m.Size() |
| 1601 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1602 | } |
| 1603 | |
| 1604 | func (m *StatefulSetCondition) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1605 | i := len(dAtA) |
| 1606 | _ = i |
| 1607 | var l int |
| 1608 | _ = l |
| 1609 | i -= len(m.Message) |
| 1610 | copy(dAtA[i:], m.Message) |
| 1611 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Message))) |
| 1612 | i-- |
| 1613 | dAtA[i] = 0x2a |
| 1614 | i -= len(m.Reason) |
| 1615 | copy(dAtA[i:], m.Reason) |
| 1616 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Reason))) |
| 1617 | i-- |
| 1618 | dAtA[i] = 0x22 |
| 1619 | { |
| 1620 | size, err := m.LastTransitionTime.MarshalToSizedBuffer(dAtA[:i]) |
| 1621 | if err != nil { |
| 1622 | return 0, err |
| 1623 | } |
| 1624 | i -= size |
| 1625 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1626 | } |
| 1627 | i-- |
| 1628 | dAtA[i] = 0x1a |
| 1629 | i -= len(m.Status) |
| 1630 | copy(dAtA[i:], m.Status) |
| 1631 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Status))) |
| 1632 | i-- |
| 1633 | dAtA[i] = 0x12 |
| 1634 | i -= len(m.Type) |
| 1635 | copy(dAtA[i:], m.Type) |
| 1636 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) |
| 1637 | i-- |
| 1638 | dAtA[i] = 0xa |
| 1639 | return len(dAtA) - i, nil |
| 1640 | } |
| 1641 | |
| 1642 | func (m *StatefulSetList) Marshal() (dAtA []byte, err error) { |
| 1643 | size := m.Size() |
| 1644 | dAtA = make([]byte, size) |
| 1645 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1646 | if err != nil { |
| 1647 | return nil, err |
| 1648 | } |
| 1649 | return dAtA[:n], nil |
| 1650 | } |
| 1651 | |
| 1652 | func (m *StatefulSetList) MarshalTo(dAtA []byte) (int, error) { |
| 1653 | size := m.Size() |
| 1654 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1655 | } |
| 1656 | |
| 1657 | func (m *StatefulSetList) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1658 | i := len(dAtA) |
| 1659 | _ = i |
| 1660 | var l int |
| 1661 | _ = l |
| 1662 | if len(m.Items) > 0 { |
| 1663 | for iNdEx := len(m.Items) - 1; iNdEx >= 0; iNdEx-- { |
| 1664 | { |
| 1665 | size, err := m.Items[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1666 | if err != nil { |
| 1667 | return 0, err |
| 1668 | } |
| 1669 | i -= size |
| 1670 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1671 | } |
| 1672 | i-- |
| 1673 | dAtA[i] = 0x12 |
| 1674 | } |
| 1675 | } |
| 1676 | { |
| 1677 | size, err := m.ListMeta.MarshalToSizedBuffer(dAtA[:i]) |
| 1678 | if err != nil { |
| 1679 | return 0, err |
| 1680 | } |
| 1681 | i -= size |
| 1682 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1683 | } |
| 1684 | i-- |
| 1685 | dAtA[i] = 0xa |
| 1686 | return len(dAtA) - i, nil |
| 1687 | } |
| 1688 | |
| 1689 | func (m *StatefulSetSpec) Marshal() (dAtA []byte, err error) { |
| 1690 | size := m.Size() |
| 1691 | dAtA = make([]byte, size) |
| 1692 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1693 | if err != nil { |
| 1694 | return nil, err |
| 1695 | } |
| 1696 | return dAtA[:n], nil |
| 1697 | } |
| 1698 | |
| 1699 | func (m *StatefulSetSpec) MarshalTo(dAtA []byte) (int, error) { |
| 1700 | size := m.Size() |
| 1701 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1702 | } |
| 1703 | |
| 1704 | func (m *StatefulSetSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1705 | i := len(dAtA) |
| 1706 | _ = i |
| 1707 | var l int |
| 1708 | _ = l |
| 1709 | if m.RevisionHistoryLimit != nil { |
| 1710 | i = encodeVarintGenerated(dAtA, i, uint64(*m.RevisionHistoryLimit)) |
| 1711 | i-- |
| 1712 | dAtA[i] = 0x40 |
| 1713 | } |
| 1714 | { |
| 1715 | size, err := m.UpdateStrategy.MarshalToSizedBuffer(dAtA[:i]) |
| 1716 | if err != nil { |
| 1717 | return 0, err |
| 1718 | } |
| 1719 | i -= size |
| 1720 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1721 | } |
| 1722 | i-- |
| 1723 | dAtA[i] = 0x3a |
| 1724 | i -= len(m.PodManagementPolicy) |
| 1725 | copy(dAtA[i:], m.PodManagementPolicy) |
| 1726 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.PodManagementPolicy))) |
| 1727 | i-- |
| 1728 | dAtA[i] = 0x32 |
| 1729 | i -= len(m.ServiceName) |
| 1730 | copy(dAtA[i:], m.ServiceName) |
| 1731 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.ServiceName))) |
| 1732 | i-- |
| 1733 | dAtA[i] = 0x2a |
| 1734 | if len(m.VolumeClaimTemplates) > 0 { |
| 1735 | for iNdEx := len(m.VolumeClaimTemplates) - 1; iNdEx >= 0; iNdEx-- { |
| 1736 | { |
| 1737 | size, err := m.VolumeClaimTemplates[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1738 | if err != nil { |
| 1739 | return 0, err |
| 1740 | } |
| 1741 | i -= size |
| 1742 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1743 | } |
| 1744 | i-- |
| 1745 | dAtA[i] = 0x22 |
| 1746 | } |
| 1747 | } |
| 1748 | { |
| 1749 | size, err := m.Template.MarshalToSizedBuffer(dAtA[:i]) |
| 1750 | if err != nil { |
| 1751 | return 0, err |
| 1752 | } |
| 1753 | i -= size |
| 1754 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1755 | } |
| 1756 | i-- |
| 1757 | dAtA[i] = 0x1a |
| 1758 | if m.Selector != nil { |
| 1759 | { |
| 1760 | size, err := m.Selector.MarshalToSizedBuffer(dAtA[:i]) |
| 1761 | if err != nil { |
| 1762 | return 0, err |
| 1763 | } |
| 1764 | i -= size |
| 1765 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1766 | } |
| 1767 | i-- |
| 1768 | dAtA[i] = 0x12 |
| 1769 | } |
| 1770 | if m.Replicas != nil { |
| 1771 | i = encodeVarintGenerated(dAtA, i, uint64(*m.Replicas)) |
| 1772 | i-- |
| 1773 | dAtA[i] = 0x8 |
| 1774 | } |
| 1775 | return len(dAtA) - i, nil |
| 1776 | } |
| 1777 | |
| 1778 | func (m *StatefulSetStatus) Marshal() (dAtA []byte, err error) { |
| 1779 | size := m.Size() |
| 1780 | dAtA = make([]byte, size) |
| 1781 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1782 | if err != nil { |
| 1783 | return nil, err |
| 1784 | } |
| 1785 | return dAtA[:n], nil |
| 1786 | } |
| 1787 | |
| 1788 | func (m *StatefulSetStatus) MarshalTo(dAtA []byte) (int, error) { |
| 1789 | size := m.Size() |
| 1790 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1791 | } |
| 1792 | |
| 1793 | func (m *StatefulSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1794 | i := len(dAtA) |
| 1795 | _ = i |
| 1796 | var l int |
| 1797 | _ = l |
| 1798 | if len(m.Conditions) > 0 { |
| 1799 | for iNdEx := len(m.Conditions) - 1; iNdEx >= 0; iNdEx-- { |
| 1800 | { |
| 1801 | size, err := m.Conditions[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
| 1802 | if err != nil { |
| 1803 | return 0, err |
| 1804 | } |
| 1805 | i -= size |
| 1806 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1807 | } |
| 1808 | i-- |
| 1809 | dAtA[i] = 0x52 |
| 1810 | } |
| 1811 | } |
| 1812 | if m.CollisionCount != nil { |
| 1813 | i = encodeVarintGenerated(dAtA, i, uint64(*m.CollisionCount)) |
| 1814 | i-- |
| 1815 | dAtA[i] = 0x48 |
| 1816 | } |
| 1817 | i -= len(m.UpdateRevision) |
| 1818 | copy(dAtA[i:], m.UpdateRevision) |
| 1819 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.UpdateRevision))) |
| 1820 | i-- |
| 1821 | dAtA[i] = 0x3a |
| 1822 | i -= len(m.CurrentRevision) |
| 1823 | copy(dAtA[i:], m.CurrentRevision) |
| 1824 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.CurrentRevision))) |
| 1825 | i-- |
| 1826 | dAtA[i] = 0x32 |
| 1827 | i = encodeVarintGenerated(dAtA, i, uint64(m.UpdatedReplicas)) |
| 1828 | i-- |
| 1829 | dAtA[i] = 0x28 |
| 1830 | i = encodeVarintGenerated(dAtA, i, uint64(m.CurrentReplicas)) |
| 1831 | i-- |
| 1832 | dAtA[i] = 0x20 |
| 1833 | i = encodeVarintGenerated(dAtA, i, uint64(m.ReadyReplicas)) |
| 1834 | i-- |
| 1835 | dAtA[i] = 0x18 |
| 1836 | i = encodeVarintGenerated(dAtA, i, uint64(m.Replicas)) |
| 1837 | i-- |
| 1838 | dAtA[i] = 0x10 |
| 1839 | if m.ObservedGeneration != nil { |
| 1840 | i = encodeVarintGenerated(dAtA, i, uint64(*m.ObservedGeneration)) |
| 1841 | i-- |
| 1842 | dAtA[i] = 0x8 |
| 1843 | } |
| 1844 | return len(dAtA) - i, nil |
| 1845 | } |
| 1846 | |
| 1847 | func (m *StatefulSetUpdateStrategy) Marshal() (dAtA []byte, err error) { |
| 1848 | size := m.Size() |
| 1849 | dAtA = make([]byte, size) |
| 1850 | n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
| 1851 | if err != nil { |
| 1852 | return nil, err |
| 1853 | } |
| 1854 | return dAtA[:n], nil |
| 1855 | } |
| 1856 | |
| 1857 | func (m *StatefulSetUpdateStrategy) MarshalTo(dAtA []byte) (int, error) { |
| 1858 | size := m.Size() |
| 1859 | return m.MarshalToSizedBuffer(dAtA[:size]) |
| 1860 | } |
| 1861 | |
| 1862 | func (m *StatefulSetUpdateStrategy) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
| 1863 | i := len(dAtA) |
| 1864 | _ = i |
| 1865 | var l int |
| 1866 | _ = l |
| 1867 | if m.RollingUpdate != nil { |
| 1868 | { |
| 1869 | size, err := m.RollingUpdate.MarshalToSizedBuffer(dAtA[:i]) |
| 1870 | if err != nil { |
| 1871 | return 0, err |
| 1872 | } |
| 1873 | i -= size |
| 1874 | i = encodeVarintGenerated(dAtA, i, uint64(size)) |
| 1875 | } |
| 1876 | i-- |
| 1877 | dAtA[i] = 0x12 |
| 1878 | } |
| 1879 | i -= len(m.Type) |
| 1880 | copy(dAtA[i:], m.Type) |
| 1881 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Type))) |
| 1882 | i-- |
| 1883 | dAtA[i] = 0xa |
| 1884 | return len(dAtA) - i, nil |
| 1885 | } |
| 1886 | |
| 1887 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 1888 | offset -= sovGenerated(v) |
| 1889 | base := offset |
| 1890 | for v >= 1<<7 { |
| 1891 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 1892 | v >>= 7 |
| 1893 | offset++ |
| 1894 | } |
| 1895 | dAtA[offset] = uint8(v) |
| 1896 | return base |
| 1897 | } |
| 1898 | func (m *ControllerRevision) Size() (n int) { |
| 1899 | if m == nil { |
| 1900 | return 0 |
| 1901 | } |
| 1902 | var l int |
| 1903 | _ = l |
| 1904 | l = m.ObjectMeta.Size() |
| 1905 | n += 1 + l + sovGenerated(uint64(l)) |
| 1906 | l = m.Data.Size() |
| 1907 | n += 1 + l + sovGenerated(uint64(l)) |
| 1908 | n += 1 + sovGenerated(uint64(m.Revision)) |
| 1909 | return n |
| 1910 | } |
| 1911 | |
| 1912 | func (m *ControllerRevisionList) Size() (n int) { |
| 1913 | if m == nil { |
| 1914 | return 0 |
| 1915 | } |
| 1916 | var l int |
| 1917 | _ = l |
| 1918 | l = m.ListMeta.Size() |
| 1919 | n += 1 + l + sovGenerated(uint64(l)) |
| 1920 | if len(m.Items) > 0 { |
| 1921 | for _, e := range m.Items { |
| 1922 | l = e.Size() |
| 1923 | n += 1 + l + sovGenerated(uint64(l)) |
| 1924 | } |
| 1925 | } |
| 1926 | return n |
| 1927 | } |
| 1928 | |
| 1929 | func (m *Deployment) Size() (n int) { |
| 1930 | if m == nil { |
| 1931 | return 0 |
| 1932 | } |
| 1933 | var l int |
| 1934 | _ = l |
| 1935 | l = m.ObjectMeta.Size() |
| 1936 | n += 1 + l + sovGenerated(uint64(l)) |
| 1937 | l = m.Spec.Size() |
| 1938 | n += 1 + l + sovGenerated(uint64(l)) |
| 1939 | l = m.Status.Size() |
| 1940 | n += 1 + l + sovGenerated(uint64(l)) |
| 1941 | return n |
| 1942 | } |
| 1943 | |
| 1944 | func (m *DeploymentCondition) Size() (n int) { |
| 1945 | if m == nil { |
| 1946 | return 0 |
| 1947 | } |
| 1948 | var l int |
| 1949 | _ = l |
| 1950 | l = len(m.Type) |
| 1951 | n += 1 + l + sovGenerated(uint64(l)) |
| 1952 | l = len(m.Status) |
| 1953 | n += 1 + l + sovGenerated(uint64(l)) |
| 1954 | l = len(m.Reason) |
| 1955 | n += 1 + l + sovGenerated(uint64(l)) |
| 1956 | l = len(m.Message) |
| 1957 | n += 1 + l + sovGenerated(uint64(l)) |
| 1958 | l = m.LastUpdateTime.Size() |
| 1959 | n += 1 + l + sovGenerated(uint64(l)) |
| 1960 | l = m.LastTransitionTime.Size() |
| 1961 | n += 1 + l + sovGenerated(uint64(l)) |
| 1962 | return n |
| 1963 | } |
| 1964 | |
| 1965 | func (m *DeploymentList) Size() (n int) { |
| 1966 | if m == nil { |
| 1967 | return 0 |
| 1968 | } |
| 1969 | var l int |
| 1970 | _ = l |
| 1971 | l = m.ListMeta.Size() |
| 1972 | n += 1 + l + sovGenerated(uint64(l)) |
| 1973 | if len(m.Items) > 0 { |
| 1974 | for _, e := range m.Items { |
| 1975 | l = e.Size() |
| 1976 | n += 1 + l + sovGenerated(uint64(l)) |
| 1977 | } |
| 1978 | } |
| 1979 | return n |
| 1980 | } |
| 1981 | |
| 1982 | func (m *DeploymentRollback) Size() (n int) { |
| 1983 | if m == nil { |
| 1984 | return 0 |
| 1985 | } |
| 1986 | var l int |
| 1987 | _ = l |
| 1988 | l = len(m.Name) |
| 1989 | n += 1 + l + sovGenerated(uint64(l)) |
| 1990 | if len(m.UpdatedAnnotations) > 0 { |
| 1991 | for k, v := range m.UpdatedAnnotations { |
| 1992 | _ = k |
| 1993 | _ = v |
| 1994 | mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) |
| 1995 | n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) |
| 1996 | } |
| 1997 | } |
| 1998 | l = m.RollbackTo.Size() |
| 1999 | n += 1 + l + sovGenerated(uint64(l)) |
| 2000 | return n |
| 2001 | } |
| 2002 | |
| 2003 | func (m *DeploymentSpec) Size() (n int) { |
| 2004 | if m == nil { |
| 2005 | return 0 |
| 2006 | } |
| 2007 | var l int |
| 2008 | _ = l |
| 2009 | if m.Replicas != nil { |
| 2010 | n += 1 + sovGenerated(uint64(*m.Replicas)) |
| 2011 | } |
| 2012 | if m.Selector != nil { |
| 2013 | l = m.Selector.Size() |
| 2014 | n += 1 + l + sovGenerated(uint64(l)) |
| 2015 | } |
| 2016 | l = m.Template.Size() |
| 2017 | n += 1 + l + sovGenerated(uint64(l)) |
| 2018 | l = m.Strategy.Size() |
| 2019 | n += 1 + l + sovGenerated(uint64(l)) |
| 2020 | n += 1 + sovGenerated(uint64(m.MinReadySeconds)) |
| 2021 | if m.RevisionHistoryLimit != nil { |
| 2022 | n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit)) |
| 2023 | } |
| 2024 | n += 2 |
| 2025 | if m.RollbackTo != nil { |
| 2026 | l = m.RollbackTo.Size() |
| 2027 | n += 1 + l + sovGenerated(uint64(l)) |
| 2028 | } |
| 2029 | if m.ProgressDeadlineSeconds != nil { |
| 2030 | n += 1 + sovGenerated(uint64(*m.ProgressDeadlineSeconds)) |
| 2031 | } |
| 2032 | return n |
| 2033 | } |
| 2034 | |
| 2035 | func (m *DeploymentStatus) Size() (n int) { |
| 2036 | if m == nil { |
| 2037 | return 0 |
| 2038 | } |
| 2039 | var l int |
| 2040 | _ = l |
| 2041 | n += 1 + sovGenerated(uint64(m.ObservedGeneration)) |
| 2042 | n += 1 + sovGenerated(uint64(m.Replicas)) |
| 2043 | n += 1 + sovGenerated(uint64(m.UpdatedReplicas)) |
| 2044 | n += 1 + sovGenerated(uint64(m.AvailableReplicas)) |
| 2045 | n += 1 + sovGenerated(uint64(m.UnavailableReplicas)) |
| 2046 | if len(m.Conditions) > 0 { |
| 2047 | for _, e := range m.Conditions { |
| 2048 | l = e.Size() |
| 2049 | n += 1 + l + sovGenerated(uint64(l)) |
| 2050 | } |
| 2051 | } |
| 2052 | n += 1 + sovGenerated(uint64(m.ReadyReplicas)) |
| 2053 | if m.CollisionCount != nil { |
| 2054 | n += 1 + sovGenerated(uint64(*m.CollisionCount)) |
| 2055 | } |
| 2056 | return n |
| 2057 | } |
| 2058 | |
| 2059 | func (m *DeploymentStrategy) Size() (n int) { |
| 2060 | if m == nil { |
| 2061 | return 0 |
| 2062 | } |
| 2063 | var l int |
| 2064 | _ = l |
| 2065 | l = len(m.Type) |
| 2066 | n += 1 + l + sovGenerated(uint64(l)) |
| 2067 | if m.RollingUpdate != nil { |
| 2068 | l = m.RollingUpdate.Size() |
| 2069 | n += 1 + l + sovGenerated(uint64(l)) |
| 2070 | } |
| 2071 | return n |
| 2072 | } |
| 2073 | |
| 2074 | func (m *RollbackConfig) Size() (n int) { |
| 2075 | if m == nil { |
| 2076 | return 0 |
| 2077 | } |
| 2078 | var l int |
| 2079 | _ = l |
| 2080 | n += 1 + sovGenerated(uint64(m.Revision)) |
| 2081 | return n |
| 2082 | } |
| 2083 | |
| 2084 | func (m *RollingUpdateDeployment) Size() (n int) { |
| 2085 | if m == nil { |
| 2086 | return 0 |
| 2087 | } |
| 2088 | var l int |
| 2089 | _ = l |
| 2090 | if m.MaxUnavailable != nil { |
| 2091 | l = m.MaxUnavailable.Size() |
| 2092 | n += 1 + l + sovGenerated(uint64(l)) |
| 2093 | } |
| 2094 | if m.MaxSurge != nil { |
| 2095 | l = m.MaxSurge.Size() |
| 2096 | n += 1 + l + sovGenerated(uint64(l)) |
| 2097 | } |
| 2098 | return n |
| 2099 | } |
| 2100 | |
| 2101 | func (m *RollingUpdateStatefulSetStrategy) Size() (n int) { |
| 2102 | if m == nil { |
| 2103 | return 0 |
| 2104 | } |
| 2105 | var l int |
| 2106 | _ = l |
| 2107 | if m.Partition != nil { |
| 2108 | n += 1 + sovGenerated(uint64(*m.Partition)) |
| 2109 | } |
| 2110 | return n |
| 2111 | } |
| 2112 | |
| 2113 | func (m *Scale) Size() (n int) { |
| 2114 | if m == nil { |
| 2115 | return 0 |
| 2116 | } |
| 2117 | var l int |
| 2118 | _ = l |
| 2119 | l = m.ObjectMeta.Size() |
| 2120 | n += 1 + l + sovGenerated(uint64(l)) |
| 2121 | l = m.Spec.Size() |
| 2122 | n += 1 + l + sovGenerated(uint64(l)) |
| 2123 | l = m.Status.Size() |
| 2124 | n += 1 + l + sovGenerated(uint64(l)) |
| 2125 | return n |
| 2126 | } |
| 2127 | |
| 2128 | func (m *ScaleSpec) Size() (n int) { |
| 2129 | if m == nil { |
| 2130 | return 0 |
| 2131 | } |
| 2132 | var l int |
| 2133 | _ = l |
| 2134 | n += 1 + sovGenerated(uint64(m.Replicas)) |
| 2135 | return n |
| 2136 | } |
| 2137 | |
| 2138 | func (m *ScaleStatus) Size() (n int) { |
| 2139 | if m == nil { |
| 2140 | return 0 |
| 2141 | } |
| 2142 | var l int |
| 2143 | _ = l |
| 2144 | n += 1 + sovGenerated(uint64(m.Replicas)) |
| 2145 | if len(m.Selector) > 0 { |
| 2146 | for k, v := range m.Selector { |
| 2147 | _ = k |
| 2148 | _ = v |
| 2149 | mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) |
| 2150 | n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) |
| 2151 | } |
| 2152 | } |
| 2153 | l = len(m.TargetSelector) |
| 2154 | n += 1 + l + sovGenerated(uint64(l)) |
| 2155 | return n |
| 2156 | } |
| 2157 | |
| 2158 | func (m *StatefulSet) Size() (n int) { |
| 2159 | if m == nil { |
| 2160 | return 0 |
| 2161 | } |
| 2162 | var l int |
| 2163 | _ = l |
| 2164 | l = m.ObjectMeta.Size() |
| 2165 | n += 1 + l + sovGenerated(uint64(l)) |
| 2166 | l = m.Spec.Size() |
| 2167 | n += 1 + l + sovGenerated(uint64(l)) |
| 2168 | l = m.Status.Size() |
| 2169 | n += 1 + l + sovGenerated(uint64(l)) |
| 2170 | return n |
| 2171 | } |
| 2172 | |
| 2173 | func (m *StatefulSetCondition) Size() (n int) { |
| 2174 | if m == nil { |
| 2175 | return 0 |
| 2176 | } |
| 2177 | var l int |
| 2178 | _ = l |
| 2179 | l = len(m.Type) |
| 2180 | n += 1 + l + sovGenerated(uint64(l)) |
| 2181 | l = len(m.Status) |
| 2182 | n += 1 + l + sovGenerated(uint64(l)) |
| 2183 | l = m.LastTransitionTime.Size() |
| 2184 | n += 1 + l + sovGenerated(uint64(l)) |
| 2185 | l = len(m.Reason) |
| 2186 | n += 1 + l + sovGenerated(uint64(l)) |
| 2187 | l = len(m.Message) |
| 2188 | n += 1 + l + sovGenerated(uint64(l)) |
| 2189 | return n |
| 2190 | } |
| 2191 | |
| 2192 | func (m *StatefulSetList) Size() (n int) { |
| 2193 | if m == nil { |
| 2194 | return 0 |
| 2195 | } |
| 2196 | var l int |
| 2197 | _ = l |
| 2198 | l = m.ListMeta.Size() |
| 2199 | n += 1 + l + sovGenerated(uint64(l)) |
| 2200 | if len(m.Items) > 0 { |
| 2201 | for _, e := range m.Items { |
| 2202 | l = e.Size() |
| 2203 | n += 1 + l + sovGenerated(uint64(l)) |
| 2204 | } |
| 2205 | } |
| 2206 | return n |
| 2207 | } |
| 2208 | |
| 2209 | func (m *StatefulSetSpec) Size() (n int) { |
| 2210 | if m == nil { |
| 2211 | return 0 |
| 2212 | } |
| 2213 | var l int |
| 2214 | _ = l |
| 2215 | if m.Replicas != nil { |
| 2216 | n += 1 + sovGenerated(uint64(*m.Replicas)) |
| 2217 | } |
| 2218 | if m.Selector != nil { |
| 2219 | l = m.Selector.Size() |
| 2220 | n += 1 + l + sovGenerated(uint64(l)) |
| 2221 | } |
| 2222 | l = m.Template.Size() |
| 2223 | n += 1 + l + sovGenerated(uint64(l)) |
| 2224 | if len(m.VolumeClaimTemplates) > 0 { |
| 2225 | for _, e := range m.VolumeClaimTemplates { |
| 2226 | l = e.Size() |
| 2227 | n += 1 + l + sovGenerated(uint64(l)) |
| 2228 | } |
| 2229 | } |
| 2230 | l = len(m.ServiceName) |
| 2231 | n += 1 + l + sovGenerated(uint64(l)) |
| 2232 | l = len(m.PodManagementPolicy) |
| 2233 | n += 1 + l + sovGenerated(uint64(l)) |
| 2234 | l = m.UpdateStrategy.Size() |
| 2235 | n += 1 + l + sovGenerated(uint64(l)) |
| 2236 | if m.RevisionHistoryLimit != nil { |
| 2237 | n += 1 + sovGenerated(uint64(*m.RevisionHistoryLimit)) |
| 2238 | } |
| 2239 | return n |
| 2240 | } |
| 2241 | |
| 2242 | func (m *StatefulSetStatus) Size() (n int) { |
| 2243 | if m == nil { |
| 2244 | return 0 |
| 2245 | } |
| 2246 | var l int |
| 2247 | _ = l |
| 2248 | if m.ObservedGeneration != nil { |
| 2249 | n += 1 + sovGenerated(uint64(*m.ObservedGeneration)) |
| 2250 | } |
| 2251 | n += 1 + sovGenerated(uint64(m.Replicas)) |
| 2252 | n += 1 + sovGenerated(uint64(m.ReadyReplicas)) |
| 2253 | n += 1 + sovGenerated(uint64(m.CurrentReplicas)) |
| 2254 | n += 1 + sovGenerated(uint64(m.UpdatedReplicas)) |
| 2255 | l = len(m.CurrentRevision) |
| 2256 | n += 1 + l + sovGenerated(uint64(l)) |
| 2257 | l = len(m.UpdateRevision) |
| 2258 | n += 1 + l + sovGenerated(uint64(l)) |
| 2259 | if m.CollisionCount != nil { |
| 2260 | n += 1 + sovGenerated(uint64(*m.CollisionCount)) |
| 2261 | } |
| 2262 | if len(m.Conditions) > 0 { |
| 2263 | for _, e := range m.Conditions { |
| 2264 | l = e.Size() |
| 2265 | n += 1 + l + sovGenerated(uint64(l)) |
| 2266 | } |
| 2267 | } |
| 2268 | return n |
| 2269 | } |
| 2270 | |
| 2271 | func (m *StatefulSetUpdateStrategy) Size() (n int) { |
| 2272 | if m == nil { |
| 2273 | return 0 |
| 2274 | } |
| 2275 | var l int |
| 2276 | _ = l |
| 2277 | l = len(m.Type) |
| 2278 | n += 1 + l + sovGenerated(uint64(l)) |
| 2279 | if m.RollingUpdate != nil { |
| 2280 | l = m.RollingUpdate.Size() |
| 2281 | n += 1 + l + sovGenerated(uint64(l)) |
| 2282 | } |
| 2283 | return n |
| 2284 | } |
| 2285 | |
| 2286 | func sovGenerated(x uint64) (n int) { |
| 2287 | return (math_bits.Len64(x|1) + 6) / 7 |
| 2288 | } |
| 2289 | func sozGenerated(x uint64) (n int) { |
| 2290 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 2291 | } |
| 2292 | func (this *ControllerRevision) String() string { |
| 2293 | if this == nil { |
| 2294 | return "nil" |
| 2295 | } |
| 2296 | s := strings.Join([]string{`&ControllerRevision{`, |
| 2297 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 2298 | `Data:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Data), "RawExtension", "runtime.RawExtension", 1), `&`, ``, 1) + `,`, |
| 2299 | `Revision:` + fmt.Sprintf("%v", this.Revision) + `,`, |
| 2300 | `}`, |
| 2301 | }, "") |
| 2302 | return s |
| 2303 | } |
| 2304 | func (this *ControllerRevisionList) String() string { |
| 2305 | if this == nil { |
| 2306 | return "nil" |
| 2307 | } |
| 2308 | repeatedStringForItems := "[]ControllerRevision{" |
| 2309 | for _, f := range this.Items { |
| 2310 | repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "ControllerRevision", "ControllerRevision", 1), `&`, ``, 1) + "," |
| 2311 | } |
| 2312 | repeatedStringForItems += "}" |
| 2313 | s := strings.Join([]string{`&ControllerRevisionList{`, |
| 2314 | `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 2315 | `Items:` + repeatedStringForItems + `,`, |
| 2316 | `}`, |
| 2317 | }, "") |
| 2318 | return s |
| 2319 | } |
| 2320 | func (this *Deployment) String() string { |
| 2321 | if this == nil { |
| 2322 | return "nil" |
| 2323 | } |
| 2324 | s := strings.Join([]string{`&Deployment{`, |
| 2325 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 2326 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "DeploymentSpec", "DeploymentSpec", 1), `&`, ``, 1) + `,`, |
| 2327 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "DeploymentStatus", "DeploymentStatus", 1), `&`, ``, 1) + `,`, |
| 2328 | `}`, |
| 2329 | }, "") |
| 2330 | return s |
| 2331 | } |
| 2332 | func (this *DeploymentCondition) String() string { |
| 2333 | if this == nil { |
| 2334 | return "nil" |
| 2335 | } |
| 2336 | s := strings.Join([]string{`&DeploymentCondition{`, |
| 2337 | `Type:` + fmt.Sprintf("%v", this.Type) + `,`, |
| 2338 | `Status:` + fmt.Sprintf("%v", this.Status) + `,`, |
| 2339 | `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, |
| 2340 | `Message:` + fmt.Sprintf("%v", this.Message) + `,`, |
| 2341 | `LastUpdateTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastUpdateTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, |
| 2342 | `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, |
| 2343 | `}`, |
| 2344 | }, "") |
| 2345 | return s |
| 2346 | } |
| 2347 | func (this *DeploymentList) String() string { |
| 2348 | if this == nil { |
| 2349 | return "nil" |
| 2350 | } |
| 2351 | repeatedStringForItems := "[]Deployment{" |
| 2352 | for _, f := range this.Items { |
| 2353 | repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "Deployment", "Deployment", 1), `&`, ``, 1) + "," |
| 2354 | } |
| 2355 | repeatedStringForItems += "}" |
| 2356 | s := strings.Join([]string{`&DeploymentList{`, |
| 2357 | `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 2358 | `Items:` + repeatedStringForItems + `,`, |
| 2359 | `}`, |
| 2360 | }, "") |
| 2361 | return s |
| 2362 | } |
| 2363 | func (this *DeploymentRollback) String() string { |
| 2364 | if this == nil { |
| 2365 | return "nil" |
| 2366 | } |
| 2367 | keysForUpdatedAnnotations := make([]string, 0, len(this.UpdatedAnnotations)) |
| 2368 | for k := range this.UpdatedAnnotations { |
| 2369 | keysForUpdatedAnnotations = append(keysForUpdatedAnnotations, k) |
| 2370 | } |
| 2371 | github_com_gogo_protobuf_sortkeys.Strings(keysForUpdatedAnnotations) |
| 2372 | mapStringForUpdatedAnnotations := "map[string]string{" |
| 2373 | for _, k := range keysForUpdatedAnnotations { |
| 2374 | mapStringForUpdatedAnnotations += fmt.Sprintf("%v: %v,", k, this.UpdatedAnnotations[k]) |
| 2375 | } |
| 2376 | mapStringForUpdatedAnnotations += "}" |
| 2377 | s := strings.Join([]string{`&DeploymentRollback{`, |
| 2378 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 2379 | `UpdatedAnnotations:` + mapStringForUpdatedAnnotations + `,`, |
| 2380 | `RollbackTo:` + strings.Replace(strings.Replace(this.RollbackTo.String(), "RollbackConfig", "RollbackConfig", 1), `&`, ``, 1) + `,`, |
| 2381 | `}`, |
| 2382 | }, "") |
| 2383 | return s |
| 2384 | } |
| 2385 | func (this *DeploymentSpec) String() string { |
| 2386 | if this == nil { |
| 2387 | return "nil" |
| 2388 | } |
| 2389 | s := strings.Join([]string{`&DeploymentSpec{`, |
| 2390 | `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, |
| 2391 | `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, |
| 2392 | `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, |
| 2393 | `Strategy:` + strings.Replace(strings.Replace(this.Strategy.String(), "DeploymentStrategy", "DeploymentStrategy", 1), `&`, ``, 1) + `,`, |
| 2394 | `MinReadySeconds:` + fmt.Sprintf("%v", this.MinReadySeconds) + `,`, |
| 2395 | `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`, |
| 2396 | `Paused:` + fmt.Sprintf("%v", this.Paused) + `,`, |
| 2397 | `RollbackTo:` + strings.Replace(this.RollbackTo.String(), "RollbackConfig", "RollbackConfig", 1) + `,`, |
| 2398 | `ProgressDeadlineSeconds:` + valueToStringGenerated(this.ProgressDeadlineSeconds) + `,`, |
| 2399 | `}`, |
| 2400 | }, "") |
| 2401 | return s |
| 2402 | } |
| 2403 | func (this *DeploymentStatus) String() string { |
| 2404 | if this == nil { |
| 2405 | return "nil" |
| 2406 | } |
| 2407 | repeatedStringForConditions := "[]DeploymentCondition{" |
| 2408 | for _, f := range this.Conditions { |
| 2409 | repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "DeploymentCondition", "DeploymentCondition", 1), `&`, ``, 1) + "," |
| 2410 | } |
| 2411 | repeatedStringForConditions += "}" |
| 2412 | s := strings.Join([]string{`&DeploymentStatus{`, |
| 2413 | `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, |
| 2414 | `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, |
| 2415 | `UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`, |
| 2416 | `AvailableReplicas:` + fmt.Sprintf("%v", this.AvailableReplicas) + `,`, |
| 2417 | `UnavailableReplicas:` + fmt.Sprintf("%v", this.UnavailableReplicas) + `,`, |
| 2418 | `Conditions:` + repeatedStringForConditions + `,`, |
| 2419 | `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, |
| 2420 | `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`, |
| 2421 | `}`, |
| 2422 | }, "") |
| 2423 | return s |
| 2424 | } |
| 2425 | func (this *DeploymentStrategy) String() string { |
| 2426 | if this == nil { |
| 2427 | return "nil" |
| 2428 | } |
| 2429 | s := strings.Join([]string{`&DeploymentStrategy{`, |
| 2430 | `Type:` + fmt.Sprintf("%v", this.Type) + `,`, |
| 2431 | `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateDeployment", "RollingUpdateDeployment", 1) + `,`, |
| 2432 | `}`, |
| 2433 | }, "") |
| 2434 | return s |
| 2435 | } |
| 2436 | func (this *RollbackConfig) String() string { |
| 2437 | if this == nil { |
| 2438 | return "nil" |
| 2439 | } |
| 2440 | s := strings.Join([]string{`&RollbackConfig{`, |
| 2441 | `Revision:` + fmt.Sprintf("%v", this.Revision) + `,`, |
| 2442 | `}`, |
| 2443 | }, "") |
| 2444 | return s |
| 2445 | } |
| 2446 | func (this *RollingUpdateDeployment) String() string { |
| 2447 | if this == nil { |
| 2448 | return "nil" |
| 2449 | } |
| 2450 | s := strings.Join([]string{`&RollingUpdateDeployment{`, |
| 2451 | `MaxUnavailable:` + strings.Replace(fmt.Sprintf("%v", this.MaxUnavailable), "IntOrString", "intstr.IntOrString", 1) + `,`, |
| 2452 | `MaxSurge:` + strings.Replace(fmt.Sprintf("%v", this.MaxSurge), "IntOrString", "intstr.IntOrString", 1) + `,`, |
| 2453 | `}`, |
| 2454 | }, "") |
| 2455 | return s |
| 2456 | } |
| 2457 | func (this *RollingUpdateStatefulSetStrategy) String() string { |
| 2458 | if this == nil { |
| 2459 | return "nil" |
| 2460 | } |
| 2461 | s := strings.Join([]string{`&RollingUpdateStatefulSetStrategy{`, |
| 2462 | `Partition:` + valueToStringGenerated(this.Partition) + `,`, |
| 2463 | `}`, |
| 2464 | }, "") |
| 2465 | return s |
| 2466 | } |
| 2467 | func (this *Scale) String() string { |
| 2468 | if this == nil { |
| 2469 | return "nil" |
| 2470 | } |
| 2471 | s := strings.Join([]string{`&Scale{`, |
| 2472 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 2473 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ScaleSpec", "ScaleSpec", 1), `&`, ``, 1) + `,`, |
| 2474 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ScaleStatus", "ScaleStatus", 1), `&`, ``, 1) + `,`, |
| 2475 | `}`, |
| 2476 | }, "") |
| 2477 | return s |
| 2478 | } |
| 2479 | func (this *ScaleSpec) String() string { |
| 2480 | if this == nil { |
| 2481 | return "nil" |
| 2482 | } |
| 2483 | s := strings.Join([]string{`&ScaleSpec{`, |
| 2484 | `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, |
| 2485 | `}`, |
| 2486 | }, "") |
| 2487 | return s |
| 2488 | } |
| 2489 | func (this *ScaleStatus) String() string { |
| 2490 | if this == nil { |
| 2491 | return "nil" |
| 2492 | } |
| 2493 | keysForSelector := make([]string, 0, len(this.Selector)) |
| 2494 | for k := range this.Selector { |
| 2495 | keysForSelector = append(keysForSelector, k) |
| 2496 | } |
| 2497 | github_com_gogo_protobuf_sortkeys.Strings(keysForSelector) |
| 2498 | mapStringForSelector := "map[string]string{" |
| 2499 | for _, k := range keysForSelector { |
| 2500 | mapStringForSelector += fmt.Sprintf("%v: %v,", k, this.Selector[k]) |
| 2501 | } |
| 2502 | mapStringForSelector += "}" |
| 2503 | s := strings.Join([]string{`&ScaleStatus{`, |
| 2504 | `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, |
| 2505 | `Selector:` + mapStringForSelector + `,`, |
| 2506 | `TargetSelector:` + fmt.Sprintf("%v", this.TargetSelector) + `,`, |
| 2507 | `}`, |
| 2508 | }, "") |
| 2509 | return s |
| 2510 | } |
| 2511 | func (this *StatefulSet) String() string { |
| 2512 | if this == nil { |
| 2513 | return "nil" |
| 2514 | } |
| 2515 | s := strings.Join([]string{`&StatefulSet{`, |
| 2516 | `ObjectMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ObjectMeta), "ObjectMeta", "v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 2517 | `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "StatefulSetSpec", "StatefulSetSpec", 1), `&`, ``, 1) + `,`, |
| 2518 | `Status:` + strings.Replace(strings.Replace(this.Status.String(), "StatefulSetStatus", "StatefulSetStatus", 1), `&`, ``, 1) + `,`, |
| 2519 | `}`, |
| 2520 | }, "") |
| 2521 | return s |
| 2522 | } |
| 2523 | func (this *StatefulSetCondition) String() string { |
| 2524 | if this == nil { |
| 2525 | return "nil" |
| 2526 | } |
| 2527 | s := strings.Join([]string{`&StatefulSetCondition{`, |
| 2528 | `Type:` + fmt.Sprintf("%v", this.Type) + `,`, |
| 2529 | `Status:` + fmt.Sprintf("%v", this.Status) + `,`, |
| 2530 | `LastTransitionTime:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.LastTransitionTime), "Time", "v1.Time", 1), `&`, ``, 1) + `,`, |
| 2531 | `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, |
| 2532 | `Message:` + fmt.Sprintf("%v", this.Message) + `,`, |
| 2533 | `}`, |
| 2534 | }, "") |
| 2535 | return s |
| 2536 | } |
| 2537 | func (this *StatefulSetList) String() string { |
| 2538 | if this == nil { |
| 2539 | return "nil" |
| 2540 | } |
| 2541 | repeatedStringForItems := "[]StatefulSet{" |
| 2542 | for _, f := range this.Items { |
| 2543 | repeatedStringForItems += strings.Replace(strings.Replace(f.String(), "StatefulSet", "StatefulSet", 1), `&`, ``, 1) + "," |
| 2544 | } |
| 2545 | repeatedStringForItems += "}" |
| 2546 | s := strings.Join([]string{`&StatefulSetList{`, |
| 2547 | `ListMeta:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ListMeta), "ListMeta", "v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 2548 | `Items:` + repeatedStringForItems + `,`, |
| 2549 | `}`, |
| 2550 | }, "") |
| 2551 | return s |
| 2552 | } |
| 2553 | func (this *StatefulSetSpec) String() string { |
| 2554 | if this == nil { |
| 2555 | return "nil" |
| 2556 | } |
| 2557 | repeatedStringForVolumeClaimTemplates := "[]PersistentVolumeClaim{" |
| 2558 | for _, f := range this.VolumeClaimTemplates { |
| 2559 | repeatedStringForVolumeClaimTemplates += fmt.Sprintf("%v", f) + "," |
| 2560 | } |
| 2561 | repeatedStringForVolumeClaimTemplates += "}" |
| 2562 | s := strings.Join([]string{`&StatefulSetSpec{`, |
| 2563 | `Replicas:` + valueToStringGenerated(this.Replicas) + `,`, |
| 2564 | `Selector:` + strings.Replace(fmt.Sprintf("%v", this.Selector), "LabelSelector", "v1.LabelSelector", 1) + `,`, |
| 2565 | `Template:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Template), "PodTemplateSpec", "v11.PodTemplateSpec", 1), `&`, ``, 1) + `,`, |
| 2566 | `VolumeClaimTemplates:` + repeatedStringForVolumeClaimTemplates + `,`, |
| 2567 | `ServiceName:` + fmt.Sprintf("%v", this.ServiceName) + `,`, |
| 2568 | `PodManagementPolicy:` + fmt.Sprintf("%v", this.PodManagementPolicy) + `,`, |
| 2569 | `UpdateStrategy:` + strings.Replace(strings.Replace(this.UpdateStrategy.String(), "StatefulSetUpdateStrategy", "StatefulSetUpdateStrategy", 1), `&`, ``, 1) + `,`, |
| 2570 | `RevisionHistoryLimit:` + valueToStringGenerated(this.RevisionHistoryLimit) + `,`, |
| 2571 | `}`, |
| 2572 | }, "") |
| 2573 | return s |
| 2574 | } |
| 2575 | func (this *StatefulSetStatus) String() string { |
| 2576 | if this == nil { |
| 2577 | return "nil" |
| 2578 | } |
| 2579 | repeatedStringForConditions := "[]StatefulSetCondition{" |
| 2580 | for _, f := range this.Conditions { |
| 2581 | repeatedStringForConditions += strings.Replace(strings.Replace(f.String(), "StatefulSetCondition", "StatefulSetCondition", 1), `&`, ``, 1) + "," |
| 2582 | } |
| 2583 | repeatedStringForConditions += "}" |
| 2584 | s := strings.Join([]string{`&StatefulSetStatus{`, |
| 2585 | `ObservedGeneration:` + valueToStringGenerated(this.ObservedGeneration) + `,`, |
| 2586 | `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, |
| 2587 | `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, |
| 2588 | `CurrentReplicas:` + fmt.Sprintf("%v", this.CurrentReplicas) + `,`, |
| 2589 | `UpdatedReplicas:` + fmt.Sprintf("%v", this.UpdatedReplicas) + `,`, |
| 2590 | `CurrentRevision:` + fmt.Sprintf("%v", this.CurrentRevision) + `,`, |
| 2591 | `UpdateRevision:` + fmt.Sprintf("%v", this.UpdateRevision) + `,`, |
| 2592 | `CollisionCount:` + valueToStringGenerated(this.CollisionCount) + `,`, |
| 2593 | `Conditions:` + repeatedStringForConditions + `,`, |
| 2594 | `}`, |
| 2595 | }, "") |
| 2596 | return s |
| 2597 | } |
| 2598 | func (this *StatefulSetUpdateStrategy) String() string { |
| 2599 | if this == nil { |
| 2600 | return "nil" |
| 2601 | } |
| 2602 | s := strings.Join([]string{`&StatefulSetUpdateStrategy{`, |
| 2603 | `Type:` + fmt.Sprintf("%v", this.Type) + `,`, |
| 2604 | `RollingUpdate:` + strings.Replace(this.RollingUpdate.String(), "RollingUpdateStatefulSetStrategy", "RollingUpdateStatefulSetStrategy", 1) + `,`, |
| 2605 | `}`, |
| 2606 | }, "") |
| 2607 | return s |
| 2608 | } |
| 2609 | func valueToStringGenerated(v interface{}) string { |
| 2610 | rv := reflect.ValueOf(v) |
| 2611 | if rv.IsNil() { |
| 2612 | return "nil" |
| 2613 | } |
| 2614 | pv := reflect.Indirect(rv).Interface() |
| 2615 | return fmt.Sprintf("*%v", pv) |
| 2616 | } |
| 2617 | func (m *ControllerRevision) Unmarshal(dAtA []byte) error { |
| 2618 | l := len(dAtA) |
| 2619 | iNdEx := 0 |
| 2620 | for iNdEx < l { |
| 2621 | preIndex := iNdEx |
| 2622 | var wire uint64 |
| 2623 | for shift := uint(0); ; shift += 7 { |
| 2624 | if shift >= 64 { |
| 2625 | return ErrIntOverflowGenerated |
| 2626 | } |
| 2627 | if iNdEx >= l { |
| 2628 | return io.ErrUnexpectedEOF |
| 2629 | } |
| 2630 | b := dAtA[iNdEx] |
| 2631 | iNdEx++ |
| 2632 | wire |= uint64(b&0x7F) << shift |
| 2633 | if b < 0x80 { |
| 2634 | break |
| 2635 | } |
| 2636 | } |
| 2637 | fieldNum := int32(wire >> 3) |
| 2638 | wireType := int(wire & 0x7) |
| 2639 | if wireType == 4 { |
| 2640 | return fmt.Errorf("proto: ControllerRevision: wiretype end group for non-group") |
| 2641 | } |
| 2642 | if fieldNum <= 0 { |
| 2643 | return fmt.Errorf("proto: ControllerRevision: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2644 | } |
| 2645 | switch fieldNum { |
| 2646 | case 1: |
| 2647 | if wireType != 2 { |
| 2648 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 2649 | } |
| 2650 | var msglen int |
| 2651 | for shift := uint(0); ; shift += 7 { |
| 2652 | if shift >= 64 { |
| 2653 | return ErrIntOverflowGenerated |
| 2654 | } |
| 2655 | if iNdEx >= l { |
| 2656 | return io.ErrUnexpectedEOF |
| 2657 | } |
| 2658 | b := dAtA[iNdEx] |
| 2659 | iNdEx++ |
| 2660 | msglen |= int(b&0x7F) << shift |
| 2661 | if b < 0x80 { |
| 2662 | break |
| 2663 | } |
| 2664 | } |
| 2665 | if msglen < 0 { |
| 2666 | return ErrInvalidLengthGenerated |
| 2667 | } |
| 2668 | postIndex := iNdEx + msglen |
| 2669 | if postIndex < 0 { |
| 2670 | return ErrInvalidLengthGenerated |
| 2671 | } |
| 2672 | if postIndex > l { |
| 2673 | return io.ErrUnexpectedEOF |
| 2674 | } |
| 2675 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2676 | return err |
| 2677 | } |
| 2678 | iNdEx = postIndex |
| 2679 | case 2: |
| 2680 | if wireType != 2 { |
| 2681 | return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType) |
| 2682 | } |
| 2683 | var msglen int |
| 2684 | for shift := uint(0); ; shift += 7 { |
| 2685 | if shift >= 64 { |
| 2686 | return ErrIntOverflowGenerated |
| 2687 | } |
| 2688 | if iNdEx >= l { |
| 2689 | return io.ErrUnexpectedEOF |
| 2690 | } |
| 2691 | b := dAtA[iNdEx] |
| 2692 | iNdEx++ |
| 2693 | msglen |= int(b&0x7F) << shift |
| 2694 | if b < 0x80 { |
| 2695 | break |
| 2696 | } |
| 2697 | } |
| 2698 | if msglen < 0 { |
| 2699 | return ErrInvalidLengthGenerated |
| 2700 | } |
| 2701 | postIndex := iNdEx + msglen |
| 2702 | if postIndex < 0 { |
| 2703 | return ErrInvalidLengthGenerated |
| 2704 | } |
| 2705 | if postIndex > l { |
| 2706 | return io.ErrUnexpectedEOF |
| 2707 | } |
| 2708 | if err := m.Data.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2709 | return err |
| 2710 | } |
| 2711 | iNdEx = postIndex |
| 2712 | case 3: |
| 2713 | if wireType != 0 { |
| 2714 | return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) |
| 2715 | } |
| 2716 | m.Revision = 0 |
| 2717 | for shift := uint(0); ; shift += 7 { |
| 2718 | if shift >= 64 { |
| 2719 | return ErrIntOverflowGenerated |
| 2720 | } |
| 2721 | if iNdEx >= l { |
| 2722 | return io.ErrUnexpectedEOF |
| 2723 | } |
| 2724 | b := dAtA[iNdEx] |
| 2725 | iNdEx++ |
| 2726 | m.Revision |= int64(b&0x7F) << shift |
| 2727 | if b < 0x80 { |
| 2728 | break |
| 2729 | } |
| 2730 | } |
| 2731 | default: |
| 2732 | iNdEx = preIndex |
| 2733 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2734 | if err != nil { |
| 2735 | return err |
| 2736 | } |
| 2737 | if skippy < 0 { |
| 2738 | return ErrInvalidLengthGenerated |
| 2739 | } |
| 2740 | if (iNdEx + skippy) < 0 { |
| 2741 | return ErrInvalidLengthGenerated |
| 2742 | } |
| 2743 | if (iNdEx + skippy) > l { |
| 2744 | return io.ErrUnexpectedEOF |
| 2745 | } |
| 2746 | iNdEx += skippy |
| 2747 | } |
| 2748 | } |
| 2749 | |
| 2750 | if iNdEx > l { |
| 2751 | return io.ErrUnexpectedEOF |
| 2752 | } |
| 2753 | return nil |
| 2754 | } |
| 2755 | func (m *ControllerRevisionList) Unmarshal(dAtA []byte) error { |
| 2756 | l := len(dAtA) |
| 2757 | iNdEx := 0 |
| 2758 | for iNdEx < l { |
| 2759 | preIndex := iNdEx |
| 2760 | var wire uint64 |
| 2761 | for shift := uint(0); ; shift += 7 { |
| 2762 | if shift >= 64 { |
| 2763 | return ErrIntOverflowGenerated |
| 2764 | } |
| 2765 | if iNdEx >= l { |
| 2766 | return io.ErrUnexpectedEOF |
| 2767 | } |
| 2768 | b := dAtA[iNdEx] |
| 2769 | iNdEx++ |
| 2770 | wire |= uint64(b&0x7F) << shift |
| 2771 | if b < 0x80 { |
| 2772 | break |
| 2773 | } |
| 2774 | } |
| 2775 | fieldNum := int32(wire >> 3) |
| 2776 | wireType := int(wire & 0x7) |
| 2777 | if wireType == 4 { |
| 2778 | return fmt.Errorf("proto: ControllerRevisionList: wiretype end group for non-group") |
| 2779 | } |
| 2780 | if fieldNum <= 0 { |
| 2781 | return fmt.Errorf("proto: ControllerRevisionList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2782 | } |
| 2783 | switch fieldNum { |
| 2784 | case 1: |
| 2785 | if wireType != 2 { |
| 2786 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 2787 | } |
| 2788 | var msglen int |
| 2789 | for shift := uint(0); ; shift += 7 { |
| 2790 | if shift >= 64 { |
| 2791 | return ErrIntOverflowGenerated |
| 2792 | } |
| 2793 | if iNdEx >= l { |
| 2794 | return io.ErrUnexpectedEOF |
| 2795 | } |
| 2796 | b := dAtA[iNdEx] |
| 2797 | iNdEx++ |
| 2798 | msglen |= int(b&0x7F) << shift |
| 2799 | if b < 0x80 { |
| 2800 | break |
| 2801 | } |
| 2802 | } |
| 2803 | if msglen < 0 { |
| 2804 | return ErrInvalidLengthGenerated |
| 2805 | } |
| 2806 | postIndex := iNdEx + msglen |
| 2807 | if postIndex < 0 { |
| 2808 | return ErrInvalidLengthGenerated |
| 2809 | } |
| 2810 | if postIndex > l { |
| 2811 | return io.ErrUnexpectedEOF |
| 2812 | } |
| 2813 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2814 | return err |
| 2815 | } |
| 2816 | iNdEx = postIndex |
| 2817 | case 2: |
| 2818 | if wireType != 2 { |
| 2819 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 2820 | } |
| 2821 | var msglen int |
| 2822 | for shift := uint(0); ; shift += 7 { |
| 2823 | if shift >= 64 { |
| 2824 | return ErrIntOverflowGenerated |
| 2825 | } |
| 2826 | if iNdEx >= l { |
| 2827 | return io.ErrUnexpectedEOF |
| 2828 | } |
| 2829 | b := dAtA[iNdEx] |
| 2830 | iNdEx++ |
| 2831 | msglen |= int(b&0x7F) << shift |
| 2832 | if b < 0x80 { |
| 2833 | break |
| 2834 | } |
| 2835 | } |
| 2836 | if msglen < 0 { |
| 2837 | return ErrInvalidLengthGenerated |
| 2838 | } |
| 2839 | postIndex := iNdEx + msglen |
| 2840 | if postIndex < 0 { |
| 2841 | return ErrInvalidLengthGenerated |
| 2842 | } |
| 2843 | if postIndex > l { |
| 2844 | return io.ErrUnexpectedEOF |
| 2845 | } |
| 2846 | m.Items = append(m.Items, ControllerRevision{}) |
| 2847 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2848 | return err |
| 2849 | } |
| 2850 | iNdEx = postIndex |
| 2851 | default: |
| 2852 | iNdEx = preIndex |
| 2853 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2854 | if err != nil { |
| 2855 | return err |
| 2856 | } |
| 2857 | if skippy < 0 { |
| 2858 | return ErrInvalidLengthGenerated |
| 2859 | } |
| 2860 | if (iNdEx + skippy) < 0 { |
| 2861 | return ErrInvalidLengthGenerated |
| 2862 | } |
| 2863 | if (iNdEx + skippy) > l { |
| 2864 | return io.ErrUnexpectedEOF |
| 2865 | } |
| 2866 | iNdEx += skippy |
| 2867 | } |
| 2868 | } |
| 2869 | |
| 2870 | if iNdEx > l { |
| 2871 | return io.ErrUnexpectedEOF |
| 2872 | } |
| 2873 | return nil |
| 2874 | } |
| 2875 | func (m *Deployment) Unmarshal(dAtA []byte) error { |
| 2876 | l := len(dAtA) |
| 2877 | iNdEx := 0 |
| 2878 | for iNdEx < l { |
| 2879 | preIndex := iNdEx |
| 2880 | var wire uint64 |
| 2881 | for shift := uint(0); ; shift += 7 { |
| 2882 | if shift >= 64 { |
| 2883 | return ErrIntOverflowGenerated |
| 2884 | } |
| 2885 | if iNdEx >= l { |
| 2886 | return io.ErrUnexpectedEOF |
| 2887 | } |
| 2888 | b := dAtA[iNdEx] |
| 2889 | iNdEx++ |
| 2890 | wire |= uint64(b&0x7F) << shift |
| 2891 | if b < 0x80 { |
| 2892 | break |
| 2893 | } |
| 2894 | } |
| 2895 | fieldNum := int32(wire >> 3) |
| 2896 | wireType := int(wire & 0x7) |
| 2897 | if wireType == 4 { |
| 2898 | return fmt.Errorf("proto: Deployment: wiretype end group for non-group") |
| 2899 | } |
| 2900 | if fieldNum <= 0 { |
| 2901 | return fmt.Errorf("proto: Deployment: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2902 | } |
| 2903 | switch fieldNum { |
| 2904 | case 1: |
| 2905 | if wireType != 2 { |
| 2906 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 2907 | } |
| 2908 | var msglen int |
| 2909 | for shift := uint(0); ; shift += 7 { |
| 2910 | if shift >= 64 { |
| 2911 | return ErrIntOverflowGenerated |
| 2912 | } |
| 2913 | if iNdEx >= l { |
| 2914 | return io.ErrUnexpectedEOF |
| 2915 | } |
| 2916 | b := dAtA[iNdEx] |
| 2917 | iNdEx++ |
| 2918 | msglen |= int(b&0x7F) << shift |
| 2919 | if b < 0x80 { |
| 2920 | break |
| 2921 | } |
| 2922 | } |
| 2923 | if msglen < 0 { |
| 2924 | return ErrInvalidLengthGenerated |
| 2925 | } |
| 2926 | postIndex := iNdEx + msglen |
| 2927 | if postIndex < 0 { |
| 2928 | return ErrInvalidLengthGenerated |
| 2929 | } |
| 2930 | if postIndex > l { |
| 2931 | return io.ErrUnexpectedEOF |
| 2932 | } |
| 2933 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2934 | return err |
| 2935 | } |
| 2936 | iNdEx = postIndex |
| 2937 | case 2: |
| 2938 | if wireType != 2 { |
| 2939 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 2940 | } |
| 2941 | var msglen int |
| 2942 | for shift := uint(0); ; shift += 7 { |
| 2943 | if shift >= 64 { |
| 2944 | return ErrIntOverflowGenerated |
| 2945 | } |
| 2946 | if iNdEx >= l { |
| 2947 | return io.ErrUnexpectedEOF |
| 2948 | } |
| 2949 | b := dAtA[iNdEx] |
| 2950 | iNdEx++ |
| 2951 | msglen |= int(b&0x7F) << shift |
| 2952 | if b < 0x80 { |
| 2953 | break |
| 2954 | } |
| 2955 | } |
| 2956 | if msglen < 0 { |
| 2957 | return ErrInvalidLengthGenerated |
| 2958 | } |
| 2959 | postIndex := iNdEx + msglen |
| 2960 | if postIndex < 0 { |
| 2961 | return ErrInvalidLengthGenerated |
| 2962 | } |
| 2963 | if postIndex > l { |
| 2964 | return io.ErrUnexpectedEOF |
| 2965 | } |
| 2966 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2967 | return err |
| 2968 | } |
| 2969 | iNdEx = postIndex |
| 2970 | case 3: |
| 2971 | if wireType != 2 { |
| 2972 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 2973 | } |
| 2974 | var msglen int |
| 2975 | for shift := uint(0); ; shift += 7 { |
| 2976 | if shift >= 64 { |
| 2977 | return ErrIntOverflowGenerated |
| 2978 | } |
| 2979 | if iNdEx >= l { |
| 2980 | return io.ErrUnexpectedEOF |
| 2981 | } |
| 2982 | b := dAtA[iNdEx] |
| 2983 | iNdEx++ |
| 2984 | msglen |= int(b&0x7F) << shift |
| 2985 | if b < 0x80 { |
| 2986 | break |
| 2987 | } |
| 2988 | } |
| 2989 | if msglen < 0 { |
| 2990 | return ErrInvalidLengthGenerated |
| 2991 | } |
| 2992 | postIndex := iNdEx + msglen |
| 2993 | if postIndex < 0 { |
| 2994 | return ErrInvalidLengthGenerated |
| 2995 | } |
| 2996 | if postIndex > l { |
| 2997 | return io.ErrUnexpectedEOF |
| 2998 | } |
| 2999 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3000 | return err |
| 3001 | } |
| 3002 | iNdEx = postIndex |
| 3003 | default: |
| 3004 | iNdEx = preIndex |
| 3005 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3006 | if err != nil { |
| 3007 | return err |
| 3008 | } |
| 3009 | if skippy < 0 { |
| 3010 | return ErrInvalidLengthGenerated |
| 3011 | } |
| 3012 | if (iNdEx + skippy) < 0 { |
| 3013 | return ErrInvalidLengthGenerated |
| 3014 | } |
| 3015 | if (iNdEx + skippy) > l { |
| 3016 | return io.ErrUnexpectedEOF |
| 3017 | } |
| 3018 | iNdEx += skippy |
| 3019 | } |
| 3020 | } |
| 3021 | |
| 3022 | if iNdEx > l { |
| 3023 | return io.ErrUnexpectedEOF |
| 3024 | } |
| 3025 | return nil |
| 3026 | } |
| 3027 | func (m *DeploymentCondition) Unmarshal(dAtA []byte) error { |
| 3028 | l := len(dAtA) |
| 3029 | iNdEx := 0 |
| 3030 | for iNdEx < l { |
| 3031 | preIndex := iNdEx |
| 3032 | var wire uint64 |
| 3033 | for shift := uint(0); ; shift += 7 { |
| 3034 | if shift >= 64 { |
| 3035 | return ErrIntOverflowGenerated |
| 3036 | } |
| 3037 | if iNdEx >= l { |
| 3038 | return io.ErrUnexpectedEOF |
| 3039 | } |
| 3040 | b := dAtA[iNdEx] |
| 3041 | iNdEx++ |
| 3042 | wire |= uint64(b&0x7F) << shift |
| 3043 | if b < 0x80 { |
| 3044 | break |
| 3045 | } |
| 3046 | } |
| 3047 | fieldNum := int32(wire >> 3) |
| 3048 | wireType := int(wire & 0x7) |
| 3049 | if wireType == 4 { |
| 3050 | return fmt.Errorf("proto: DeploymentCondition: wiretype end group for non-group") |
| 3051 | } |
| 3052 | if fieldNum <= 0 { |
| 3053 | return fmt.Errorf("proto: DeploymentCondition: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3054 | } |
| 3055 | switch fieldNum { |
| 3056 | case 1: |
| 3057 | if wireType != 2 { |
| 3058 | return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) |
| 3059 | } |
| 3060 | var stringLen uint64 |
| 3061 | for shift := uint(0); ; shift += 7 { |
| 3062 | if shift >= 64 { |
| 3063 | return ErrIntOverflowGenerated |
| 3064 | } |
| 3065 | if iNdEx >= l { |
| 3066 | return io.ErrUnexpectedEOF |
| 3067 | } |
| 3068 | b := dAtA[iNdEx] |
| 3069 | iNdEx++ |
| 3070 | stringLen |= uint64(b&0x7F) << shift |
| 3071 | if b < 0x80 { |
| 3072 | break |
| 3073 | } |
| 3074 | } |
| 3075 | intStringLen := int(stringLen) |
| 3076 | if intStringLen < 0 { |
| 3077 | return ErrInvalidLengthGenerated |
| 3078 | } |
| 3079 | postIndex := iNdEx + intStringLen |
| 3080 | if postIndex < 0 { |
| 3081 | return ErrInvalidLengthGenerated |
| 3082 | } |
| 3083 | if postIndex > l { |
| 3084 | return io.ErrUnexpectedEOF |
| 3085 | } |
| 3086 | m.Type = DeploymentConditionType(dAtA[iNdEx:postIndex]) |
| 3087 | iNdEx = postIndex |
| 3088 | case 2: |
| 3089 | if wireType != 2 { |
| 3090 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 3091 | } |
| 3092 | var stringLen uint64 |
| 3093 | for shift := uint(0); ; shift += 7 { |
| 3094 | if shift >= 64 { |
| 3095 | return ErrIntOverflowGenerated |
| 3096 | } |
| 3097 | if iNdEx >= l { |
| 3098 | return io.ErrUnexpectedEOF |
| 3099 | } |
| 3100 | b := dAtA[iNdEx] |
| 3101 | iNdEx++ |
| 3102 | stringLen |= uint64(b&0x7F) << shift |
| 3103 | if b < 0x80 { |
| 3104 | break |
| 3105 | } |
| 3106 | } |
| 3107 | intStringLen := int(stringLen) |
| 3108 | if intStringLen < 0 { |
| 3109 | return ErrInvalidLengthGenerated |
| 3110 | } |
| 3111 | postIndex := iNdEx + intStringLen |
| 3112 | if postIndex < 0 { |
| 3113 | return ErrInvalidLengthGenerated |
| 3114 | } |
| 3115 | if postIndex > l { |
| 3116 | return io.ErrUnexpectedEOF |
| 3117 | } |
| 3118 | m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) |
| 3119 | iNdEx = postIndex |
| 3120 | case 4: |
| 3121 | if wireType != 2 { |
| 3122 | return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) |
| 3123 | } |
| 3124 | var stringLen uint64 |
| 3125 | for shift := uint(0); ; shift += 7 { |
| 3126 | if shift >= 64 { |
| 3127 | return ErrIntOverflowGenerated |
| 3128 | } |
| 3129 | if iNdEx >= l { |
| 3130 | return io.ErrUnexpectedEOF |
| 3131 | } |
| 3132 | b := dAtA[iNdEx] |
| 3133 | iNdEx++ |
| 3134 | stringLen |= uint64(b&0x7F) << shift |
| 3135 | if b < 0x80 { |
| 3136 | break |
| 3137 | } |
| 3138 | } |
| 3139 | intStringLen := int(stringLen) |
| 3140 | if intStringLen < 0 { |
| 3141 | return ErrInvalidLengthGenerated |
| 3142 | } |
| 3143 | postIndex := iNdEx + intStringLen |
| 3144 | if postIndex < 0 { |
| 3145 | return ErrInvalidLengthGenerated |
| 3146 | } |
| 3147 | if postIndex > l { |
| 3148 | return io.ErrUnexpectedEOF |
| 3149 | } |
| 3150 | m.Reason = string(dAtA[iNdEx:postIndex]) |
| 3151 | iNdEx = postIndex |
| 3152 | case 5: |
| 3153 | if wireType != 2 { |
| 3154 | return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) |
| 3155 | } |
| 3156 | var stringLen uint64 |
| 3157 | for shift := uint(0); ; shift += 7 { |
| 3158 | if shift >= 64 { |
| 3159 | return ErrIntOverflowGenerated |
| 3160 | } |
| 3161 | if iNdEx >= l { |
| 3162 | return io.ErrUnexpectedEOF |
| 3163 | } |
| 3164 | b := dAtA[iNdEx] |
| 3165 | iNdEx++ |
| 3166 | stringLen |= uint64(b&0x7F) << shift |
| 3167 | if b < 0x80 { |
| 3168 | break |
| 3169 | } |
| 3170 | } |
| 3171 | intStringLen := int(stringLen) |
| 3172 | if intStringLen < 0 { |
| 3173 | return ErrInvalidLengthGenerated |
| 3174 | } |
| 3175 | postIndex := iNdEx + intStringLen |
| 3176 | if postIndex < 0 { |
| 3177 | return ErrInvalidLengthGenerated |
| 3178 | } |
| 3179 | if postIndex > l { |
| 3180 | return io.ErrUnexpectedEOF |
| 3181 | } |
| 3182 | m.Message = string(dAtA[iNdEx:postIndex]) |
| 3183 | iNdEx = postIndex |
| 3184 | case 6: |
| 3185 | if wireType != 2 { |
| 3186 | return fmt.Errorf("proto: wrong wireType = %d for field LastUpdateTime", wireType) |
| 3187 | } |
| 3188 | var msglen int |
| 3189 | for shift := uint(0); ; shift += 7 { |
| 3190 | if shift >= 64 { |
| 3191 | return ErrIntOverflowGenerated |
| 3192 | } |
| 3193 | if iNdEx >= l { |
| 3194 | return io.ErrUnexpectedEOF |
| 3195 | } |
| 3196 | b := dAtA[iNdEx] |
| 3197 | iNdEx++ |
| 3198 | msglen |= int(b&0x7F) << shift |
| 3199 | if b < 0x80 { |
| 3200 | break |
| 3201 | } |
| 3202 | } |
| 3203 | if msglen < 0 { |
| 3204 | return ErrInvalidLengthGenerated |
| 3205 | } |
| 3206 | postIndex := iNdEx + msglen |
| 3207 | if postIndex < 0 { |
| 3208 | return ErrInvalidLengthGenerated |
| 3209 | } |
| 3210 | if postIndex > l { |
| 3211 | return io.ErrUnexpectedEOF |
| 3212 | } |
| 3213 | if err := m.LastUpdateTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3214 | return err |
| 3215 | } |
| 3216 | iNdEx = postIndex |
| 3217 | case 7: |
| 3218 | if wireType != 2 { |
| 3219 | return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) |
| 3220 | } |
| 3221 | var msglen int |
| 3222 | for shift := uint(0); ; shift += 7 { |
| 3223 | if shift >= 64 { |
| 3224 | return ErrIntOverflowGenerated |
| 3225 | } |
| 3226 | if iNdEx >= l { |
| 3227 | return io.ErrUnexpectedEOF |
| 3228 | } |
| 3229 | b := dAtA[iNdEx] |
| 3230 | iNdEx++ |
| 3231 | msglen |= int(b&0x7F) << shift |
| 3232 | if b < 0x80 { |
| 3233 | break |
| 3234 | } |
| 3235 | } |
| 3236 | if msglen < 0 { |
| 3237 | return ErrInvalidLengthGenerated |
| 3238 | } |
| 3239 | postIndex := iNdEx + msglen |
| 3240 | if postIndex < 0 { |
| 3241 | return ErrInvalidLengthGenerated |
| 3242 | } |
| 3243 | if postIndex > l { |
| 3244 | return io.ErrUnexpectedEOF |
| 3245 | } |
| 3246 | if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3247 | return err |
| 3248 | } |
| 3249 | iNdEx = postIndex |
| 3250 | default: |
| 3251 | iNdEx = preIndex |
| 3252 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3253 | if err != nil { |
| 3254 | return err |
| 3255 | } |
| 3256 | if skippy < 0 { |
| 3257 | return ErrInvalidLengthGenerated |
| 3258 | } |
| 3259 | if (iNdEx + skippy) < 0 { |
| 3260 | return ErrInvalidLengthGenerated |
| 3261 | } |
| 3262 | if (iNdEx + skippy) > l { |
| 3263 | return io.ErrUnexpectedEOF |
| 3264 | } |
| 3265 | iNdEx += skippy |
| 3266 | } |
| 3267 | } |
| 3268 | |
| 3269 | if iNdEx > l { |
| 3270 | return io.ErrUnexpectedEOF |
| 3271 | } |
| 3272 | return nil |
| 3273 | } |
| 3274 | func (m *DeploymentList) Unmarshal(dAtA []byte) error { |
| 3275 | l := len(dAtA) |
| 3276 | iNdEx := 0 |
| 3277 | for iNdEx < l { |
| 3278 | preIndex := iNdEx |
| 3279 | var wire uint64 |
| 3280 | for shift := uint(0); ; shift += 7 { |
| 3281 | if shift >= 64 { |
| 3282 | return ErrIntOverflowGenerated |
| 3283 | } |
| 3284 | if iNdEx >= l { |
| 3285 | return io.ErrUnexpectedEOF |
| 3286 | } |
| 3287 | b := dAtA[iNdEx] |
| 3288 | iNdEx++ |
| 3289 | wire |= uint64(b&0x7F) << shift |
| 3290 | if b < 0x80 { |
| 3291 | break |
| 3292 | } |
| 3293 | } |
| 3294 | fieldNum := int32(wire >> 3) |
| 3295 | wireType := int(wire & 0x7) |
| 3296 | if wireType == 4 { |
| 3297 | return fmt.Errorf("proto: DeploymentList: wiretype end group for non-group") |
| 3298 | } |
| 3299 | if fieldNum <= 0 { |
| 3300 | return fmt.Errorf("proto: DeploymentList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3301 | } |
| 3302 | switch fieldNum { |
| 3303 | case 1: |
| 3304 | if wireType != 2 { |
| 3305 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 3306 | } |
| 3307 | var msglen int |
| 3308 | for shift := uint(0); ; shift += 7 { |
| 3309 | if shift >= 64 { |
| 3310 | return ErrIntOverflowGenerated |
| 3311 | } |
| 3312 | if iNdEx >= l { |
| 3313 | return io.ErrUnexpectedEOF |
| 3314 | } |
| 3315 | b := dAtA[iNdEx] |
| 3316 | iNdEx++ |
| 3317 | msglen |= int(b&0x7F) << shift |
| 3318 | if b < 0x80 { |
| 3319 | break |
| 3320 | } |
| 3321 | } |
| 3322 | if msglen < 0 { |
| 3323 | return ErrInvalidLengthGenerated |
| 3324 | } |
| 3325 | postIndex := iNdEx + msglen |
| 3326 | if postIndex < 0 { |
| 3327 | return ErrInvalidLengthGenerated |
| 3328 | } |
| 3329 | if postIndex > l { |
| 3330 | return io.ErrUnexpectedEOF |
| 3331 | } |
| 3332 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3333 | return err |
| 3334 | } |
| 3335 | iNdEx = postIndex |
| 3336 | case 2: |
| 3337 | if wireType != 2 { |
| 3338 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 3339 | } |
| 3340 | var msglen int |
| 3341 | for shift := uint(0); ; shift += 7 { |
| 3342 | if shift >= 64 { |
| 3343 | return ErrIntOverflowGenerated |
| 3344 | } |
| 3345 | if iNdEx >= l { |
| 3346 | return io.ErrUnexpectedEOF |
| 3347 | } |
| 3348 | b := dAtA[iNdEx] |
| 3349 | iNdEx++ |
| 3350 | msglen |= int(b&0x7F) << shift |
| 3351 | if b < 0x80 { |
| 3352 | break |
| 3353 | } |
| 3354 | } |
| 3355 | if msglen < 0 { |
| 3356 | return ErrInvalidLengthGenerated |
| 3357 | } |
| 3358 | postIndex := iNdEx + msglen |
| 3359 | if postIndex < 0 { |
| 3360 | return ErrInvalidLengthGenerated |
| 3361 | } |
| 3362 | if postIndex > l { |
| 3363 | return io.ErrUnexpectedEOF |
| 3364 | } |
| 3365 | m.Items = append(m.Items, Deployment{}) |
| 3366 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3367 | return err |
| 3368 | } |
| 3369 | iNdEx = postIndex |
| 3370 | default: |
| 3371 | iNdEx = preIndex |
| 3372 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3373 | if err != nil { |
| 3374 | return err |
| 3375 | } |
| 3376 | if skippy < 0 { |
| 3377 | return ErrInvalidLengthGenerated |
| 3378 | } |
| 3379 | if (iNdEx + skippy) < 0 { |
| 3380 | return ErrInvalidLengthGenerated |
| 3381 | } |
| 3382 | if (iNdEx + skippy) > l { |
| 3383 | return io.ErrUnexpectedEOF |
| 3384 | } |
| 3385 | iNdEx += skippy |
| 3386 | } |
| 3387 | } |
| 3388 | |
| 3389 | if iNdEx > l { |
| 3390 | return io.ErrUnexpectedEOF |
| 3391 | } |
| 3392 | return nil |
| 3393 | } |
| 3394 | func (m *DeploymentRollback) Unmarshal(dAtA []byte) error { |
| 3395 | l := len(dAtA) |
| 3396 | iNdEx := 0 |
| 3397 | for iNdEx < l { |
| 3398 | preIndex := iNdEx |
| 3399 | var wire uint64 |
| 3400 | for shift := uint(0); ; shift += 7 { |
| 3401 | if shift >= 64 { |
| 3402 | return ErrIntOverflowGenerated |
| 3403 | } |
| 3404 | if iNdEx >= l { |
| 3405 | return io.ErrUnexpectedEOF |
| 3406 | } |
| 3407 | b := dAtA[iNdEx] |
| 3408 | iNdEx++ |
| 3409 | wire |= uint64(b&0x7F) << shift |
| 3410 | if b < 0x80 { |
| 3411 | break |
| 3412 | } |
| 3413 | } |
| 3414 | fieldNum := int32(wire >> 3) |
| 3415 | wireType := int(wire & 0x7) |
| 3416 | if wireType == 4 { |
| 3417 | return fmt.Errorf("proto: DeploymentRollback: wiretype end group for non-group") |
| 3418 | } |
| 3419 | if fieldNum <= 0 { |
| 3420 | return fmt.Errorf("proto: DeploymentRollback: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3421 | } |
| 3422 | switch fieldNum { |
| 3423 | case 1: |
| 3424 | if wireType != 2 { |
| 3425 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 3426 | } |
| 3427 | var stringLen uint64 |
| 3428 | for shift := uint(0); ; shift += 7 { |
| 3429 | if shift >= 64 { |
| 3430 | return ErrIntOverflowGenerated |
| 3431 | } |
| 3432 | if iNdEx >= l { |
| 3433 | return io.ErrUnexpectedEOF |
| 3434 | } |
| 3435 | b := dAtA[iNdEx] |
| 3436 | iNdEx++ |
| 3437 | stringLen |= uint64(b&0x7F) << shift |
| 3438 | if b < 0x80 { |
| 3439 | break |
| 3440 | } |
| 3441 | } |
| 3442 | intStringLen := int(stringLen) |
| 3443 | if intStringLen < 0 { |
| 3444 | return ErrInvalidLengthGenerated |
| 3445 | } |
| 3446 | postIndex := iNdEx + intStringLen |
| 3447 | if postIndex < 0 { |
| 3448 | return ErrInvalidLengthGenerated |
| 3449 | } |
| 3450 | if postIndex > l { |
| 3451 | return io.ErrUnexpectedEOF |
| 3452 | } |
| 3453 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 3454 | iNdEx = postIndex |
| 3455 | case 2: |
| 3456 | if wireType != 2 { |
| 3457 | return fmt.Errorf("proto: wrong wireType = %d for field UpdatedAnnotations", wireType) |
| 3458 | } |
| 3459 | var msglen int |
| 3460 | for shift := uint(0); ; shift += 7 { |
| 3461 | if shift >= 64 { |
| 3462 | return ErrIntOverflowGenerated |
| 3463 | } |
| 3464 | if iNdEx >= l { |
| 3465 | return io.ErrUnexpectedEOF |
| 3466 | } |
| 3467 | b := dAtA[iNdEx] |
| 3468 | iNdEx++ |
| 3469 | msglen |= int(b&0x7F) << shift |
| 3470 | if b < 0x80 { |
| 3471 | break |
| 3472 | } |
| 3473 | } |
| 3474 | if msglen < 0 { |
| 3475 | return ErrInvalidLengthGenerated |
| 3476 | } |
| 3477 | postIndex := iNdEx + msglen |
| 3478 | if postIndex < 0 { |
| 3479 | return ErrInvalidLengthGenerated |
| 3480 | } |
| 3481 | if postIndex > l { |
| 3482 | return io.ErrUnexpectedEOF |
| 3483 | } |
| 3484 | if m.UpdatedAnnotations == nil { |
| 3485 | m.UpdatedAnnotations = make(map[string]string) |
| 3486 | } |
| 3487 | var mapkey string |
| 3488 | var mapvalue string |
| 3489 | for iNdEx < postIndex { |
| 3490 | entryPreIndex := iNdEx |
| 3491 | var wire uint64 |
| 3492 | for shift := uint(0); ; shift += 7 { |
| 3493 | if shift >= 64 { |
| 3494 | return ErrIntOverflowGenerated |
| 3495 | } |
| 3496 | if iNdEx >= l { |
| 3497 | return io.ErrUnexpectedEOF |
| 3498 | } |
| 3499 | b := dAtA[iNdEx] |
| 3500 | iNdEx++ |
| 3501 | wire |= uint64(b&0x7F) << shift |
| 3502 | if b < 0x80 { |
| 3503 | break |
| 3504 | } |
| 3505 | } |
| 3506 | fieldNum := int32(wire >> 3) |
| 3507 | if fieldNum == 1 { |
| 3508 | var stringLenmapkey uint64 |
| 3509 | for shift := uint(0); ; shift += 7 { |
| 3510 | if shift >= 64 { |
| 3511 | return ErrIntOverflowGenerated |
| 3512 | } |
| 3513 | if iNdEx >= l { |
| 3514 | return io.ErrUnexpectedEOF |
| 3515 | } |
| 3516 | b := dAtA[iNdEx] |
| 3517 | iNdEx++ |
| 3518 | stringLenmapkey |= uint64(b&0x7F) << shift |
| 3519 | if b < 0x80 { |
| 3520 | break |
| 3521 | } |
| 3522 | } |
| 3523 | intStringLenmapkey := int(stringLenmapkey) |
| 3524 | if intStringLenmapkey < 0 { |
| 3525 | return ErrInvalidLengthGenerated |
| 3526 | } |
| 3527 | postStringIndexmapkey := iNdEx + intStringLenmapkey |
| 3528 | if postStringIndexmapkey < 0 { |
| 3529 | return ErrInvalidLengthGenerated |
| 3530 | } |
| 3531 | if postStringIndexmapkey > l { |
| 3532 | return io.ErrUnexpectedEOF |
| 3533 | } |
| 3534 | mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| 3535 | iNdEx = postStringIndexmapkey |
| 3536 | } else if fieldNum == 2 { |
| 3537 | var stringLenmapvalue uint64 |
| 3538 | for shift := uint(0); ; shift += 7 { |
| 3539 | if shift >= 64 { |
| 3540 | return ErrIntOverflowGenerated |
| 3541 | } |
| 3542 | if iNdEx >= l { |
| 3543 | return io.ErrUnexpectedEOF |
| 3544 | } |
| 3545 | b := dAtA[iNdEx] |
| 3546 | iNdEx++ |
| 3547 | stringLenmapvalue |= uint64(b&0x7F) << shift |
| 3548 | if b < 0x80 { |
| 3549 | break |
| 3550 | } |
| 3551 | } |
| 3552 | intStringLenmapvalue := int(stringLenmapvalue) |
| 3553 | if intStringLenmapvalue < 0 { |
| 3554 | return ErrInvalidLengthGenerated |
| 3555 | } |
| 3556 | postStringIndexmapvalue := iNdEx + intStringLenmapvalue |
| 3557 | if postStringIndexmapvalue < 0 { |
| 3558 | return ErrInvalidLengthGenerated |
| 3559 | } |
| 3560 | if postStringIndexmapvalue > l { |
| 3561 | return io.ErrUnexpectedEOF |
| 3562 | } |
| 3563 | mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) |
| 3564 | iNdEx = postStringIndexmapvalue |
| 3565 | } else { |
| 3566 | iNdEx = entryPreIndex |
| 3567 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3568 | if err != nil { |
| 3569 | return err |
| 3570 | } |
| 3571 | if skippy < 0 { |
| 3572 | return ErrInvalidLengthGenerated |
| 3573 | } |
| 3574 | if (iNdEx + skippy) > postIndex { |
| 3575 | return io.ErrUnexpectedEOF |
| 3576 | } |
| 3577 | iNdEx += skippy |
| 3578 | } |
| 3579 | } |
| 3580 | m.UpdatedAnnotations[mapkey] = mapvalue |
| 3581 | iNdEx = postIndex |
| 3582 | case 3: |
| 3583 | if wireType != 2 { |
| 3584 | return fmt.Errorf("proto: wrong wireType = %d for field RollbackTo", wireType) |
| 3585 | } |
| 3586 | var msglen int |
| 3587 | for shift := uint(0); ; shift += 7 { |
| 3588 | if shift >= 64 { |
| 3589 | return ErrIntOverflowGenerated |
| 3590 | } |
| 3591 | if iNdEx >= l { |
| 3592 | return io.ErrUnexpectedEOF |
| 3593 | } |
| 3594 | b := dAtA[iNdEx] |
| 3595 | iNdEx++ |
| 3596 | msglen |= int(b&0x7F) << shift |
| 3597 | if b < 0x80 { |
| 3598 | break |
| 3599 | } |
| 3600 | } |
| 3601 | if msglen < 0 { |
| 3602 | return ErrInvalidLengthGenerated |
| 3603 | } |
| 3604 | postIndex := iNdEx + msglen |
| 3605 | if postIndex < 0 { |
| 3606 | return ErrInvalidLengthGenerated |
| 3607 | } |
| 3608 | if postIndex > l { |
| 3609 | return io.ErrUnexpectedEOF |
| 3610 | } |
| 3611 | if err := m.RollbackTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3612 | return err |
| 3613 | } |
| 3614 | iNdEx = postIndex |
| 3615 | default: |
| 3616 | iNdEx = preIndex |
| 3617 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3618 | if err != nil { |
| 3619 | return err |
| 3620 | } |
| 3621 | if skippy < 0 { |
| 3622 | return ErrInvalidLengthGenerated |
| 3623 | } |
| 3624 | if (iNdEx + skippy) < 0 { |
| 3625 | return ErrInvalidLengthGenerated |
| 3626 | } |
| 3627 | if (iNdEx + skippy) > l { |
| 3628 | return io.ErrUnexpectedEOF |
| 3629 | } |
| 3630 | iNdEx += skippy |
| 3631 | } |
| 3632 | } |
| 3633 | |
| 3634 | if iNdEx > l { |
| 3635 | return io.ErrUnexpectedEOF |
| 3636 | } |
| 3637 | return nil |
| 3638 | } |
| 3639 | func (m *DeploymentSpec) Unmarshal(dAtA []byte) error { |
| 3640 | l := len(dAtA) |
| 3641 | iNdEx := 0 |
| 3642 | for iNdEx < l { |
| 3643 | preIndex := iNdEx |
| 3644 | var wire uint64 |
| 3645 | for shift := uint(0); ; shift += 7 { |
| 3646 | if shift >= 64 { |
| 3647 | return ErrIntOverflowGenerated |
| 3648 | } |
| 3649 | if iNdEx >= l { |
| 3650 | return io.ErrUnexpectedEOF |
| 3651 | } |
| 3652 | b := dAtA[iNdEx] |
| 3653 | iNdEx++ |
| 3654 | wire |= uint64(b&0x7F) << shift |
| 3655 | if b < 0x80 { |
| 3656 | break |
| 3657 | } |
| 3658 | } |
| 3659 | fieldNum := int32(wire >> 3) |
| 3660 | wireType := int(wire & 0x7) |
| 3661 | if wireType == 4 { |
| 3662 | return fmt.Errorf("proto: DeploymentSpec: wiretype end group for non-group") |
| 3663 | } |
| 3664 | if fieldNum <= 0 { |
| 3665 | return fmt.Errorf("proto: DeploymentSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3666 | } |
| 3667 | switch fieldNum { |
| 3668 | case 1: |
| 3669 | if wireType != 0 { |
| 3670 | return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) |
| 3671 | } |
| 3672 | var v int32 |
| 3673 | for shift := uint(0); ; shift += 7 { |
| 3674 | if shift >= 64 { |
| 3675 | return ErrIntOverflowGenerated |
| 3676 | } |
| 3677 | if iNdEx >= l { |
| 3678 | return io.ErrUnexpectedEOF |
| 3679 | } |
| 3680 | b := dAtA[iNdEx] |
| 3681 | iNdEx++ |
| 3682 | v |= int32(b&0x7F) << shift |
| 3683 | if b < 0x80 { |
| 3684 | break |
| 3685 | } |
| 3686 | } |
| 3687 | m.Replicas = &v |
| 3688 | case 2: |
| 3689 | if wireType != 2 { |
| 3690 | return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) |
| 3691 | } |
| 3692 | var msglen int |
| 3693 | for shift := uint(0); ; shift += 7 { |
| 3694 | if shift >= 64 { |
| 3695 | return ErrIntOverflowGenerated |
| 3696 | } |
| 3697 | if iNdEx >= l { |
| 3698 | return io.ErrUnexpectedEOF |
| 3699 | } |
| 3700 | b := dAtA[iNdEx] |
| 3701 | iNdEx++ |
| 3702 | msglen |= int(b&0x7F) << shift |
| 3703 | if b < 0x80 { |
| 3704 | break |
| 3705 | } |
| 3706 | } |
| 3707 | if msglen < 0 { |
| 3708 | return ErrInvalidLengthGenerated |
| 3709 | } |
| 3710 | postIndex := iNdEx + msglen |
| 3711 | if postIndex < 0 { |
| 3712 | return ErrInvalidLengthGenerated |
| 3713 | } |
| 3714 | if postIndex > l { |
| 3715 | return io.ErrUnexpectedEOF |
| 3716 | } |
| 3717 | if m.Selector == nil { |
| 3718 | m.Selector = &v1.LabelSelector{} |
| 3719 | } |
| 3720 | if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3721 | return err |
| 3722 | } |
| 3723 | iNdEx = postIndex |
| 3724 | case 3: |
| 3725 | if wireType != 2 { |
| 3726 | return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) |
| 3727 | } |
| 3728 | var msglen int |
| 3729 | for shift := uint(0); ; shift += 7 { |
| 3730 | if shift >= 64 { |
| 3731 | return ErrIntOverflowGenerated |
| 3732 | } |
| 3733 | if iNdEx >= l { |
| 3734 | return io.ErrUnexpectedEOF |
| 3735 | } |
| 3736 | b := dAtA[iNdEx] |
| 3737 | iNdEx++ |
| 3738 | msglen |= int(b&0x7F) << shift |
| 3739 | if b < 0x80 { |
| 3740 | break |
| 3741 | } |
| 3742 | } |
| 3743 | if msglen < 0 { |
| 3744 | return ErrInvalidLengthGenerated |
| 3745 | } |
| 3746 | postIndex := iNdEx + msglen |
| 3747 | if postIndex < 0 { |
| 3748 | return ErrInvalidLengthGenerated |
| 3749 | } |
| 3750 | if postIndex > l { |
| 3751 | return io.ErrUnexpectedEOF |
| 3752 | } |
| 3753 | if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3754 | return err |
| 3755 | } |
| 3756 | iNdEx = postIndex |
| 3757 | case 4: |
| 3758 | if wireType != 2 { |
| 3759 | return fmt.Errorf("proto: wrong wireType = %d for field Strategy", wireType) |
| 3760 | } |
| 3761 | var msglen int |
| 3762 | for shift := uint(0); ; shift += 7 { |
| 3763 | if shift >= 64 { |
| 3764 | return ErrIntOverflowGenerated |
| 3765 | } |
| 3766 | if iNdEx >= l { |
| 3767 | return io.ErrUnexpectedEOF |
| 3768 | } |
| 3769 | b := dAtA[iNdEx] |
| 3770 | iNdEx++ |
| 3771 | msglen |= int(b&0x7F) << shift |
| 3772 | if b < 0x80 { |
| 3773 | break |
| 3774 | } |
| 3775 | } |
| 3776 | if msglen < 0 { |
| 3777 | return ErrInvalidLengthGenerated |
| 3778 | } |
| 3779 | postIndex := iNdEx + msglen |
| 3780 | if postIndex < 0 { |
| 3781 | return ErrInvalidLengthGenerated |
| 3782 | } |
| 3783 | if postIndex > l { |
| 3784 | return io.ErrUnexpectedEOF |
| 3785 | } |
| 3786 | if err := m.Strategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3787 | return err |
| 3788 | } |
| 3789 | iNdEx = postIndex |
| 3790 | case 5: |
| 3791 | if wireType != 0 { |
| 3792 | return fmt.Errorf("proto: wrong wireType = %d for field MinReadySeconds", wireType) |
| 3793 | } |
| 3794 | m.MinReadySeconds = 0 |
| 3795 | for shift := uint(0); ; shift += 7 { |
| 3796 | if shift >= 64 { |
| 3797 | return ErrIntOverflowGenerated |
| 3798 | } |
| 3799 | if iNdEx >= l { |
| 3800 | return io.ErrUnexpectedEOF |
| 3801 | } |
| 3802 | b := dAtA[iNdEx] |
| 3803 | iNdEx++ |
| 3804 | m.MinReadySeconds |= int32(b&0x7F) << shift |
| 3805 | if b < 0x80 { |
| 3806 | break |
| 3807 | } |
| 3808 | } |
| 3809 | case 6: |
| 3810 | if wireType != 0 { |
| 3811 | return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) |
| 3812 | } |
| 3813 | var v int32 |
| 3814 | for shift := uint(0); ; shift += 7 { |
| 3815 | if shift >= 64 { |
| 3816 | return ErrIntOverflowGenerated |
| 3817 | } |
| 3818 | if iNdEx >= l { |
| 3819 | return io.ErrUnexpectedEOF |
| 3820 | } |
| 3821 | b := dAtA[iNdEx] |
| 3822 | iNdEx++ |
| 3823 | v |= int32(b&0x7F) << shift |
| 3824 | if b < 0x80 { |
| 3825 | break |
| 3826 | } |
| 3827 | } |
| 3828 | m.RevisionHistoryLimit = &v |
| 3829 | case 7: |
| 3830 | if wireType != 0 { |
| 3831 | return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType) |
| 3832 | } |
| 3833 | var v int |
| 3834 | for shift := uint(0); ; shift += 7 { |
| 3835 | if shift >= 64 { |
| 3836 | return ErrIntOverflowGenerated |
| 3837 | } |
| 3838 | if iNdEx >= l { |
| 3839 | return io.ErrUnexpectedEOF |
| 3840 | } |
| 3841 | b := dAtA[iNdEx] |
| 3842 | iNdEx++ |
| 3843 | v |= int(b&0x7F) << shift |
| 3844 | if b < 0x80 { |
| 3845 | break |
| 3846 | } |
| 3847 | } |
| 3848 | m.Paused = bool(v != 0) |
| 3849 | case 8: |
| 3850 | if wireType != 2 { |
| 3851 | return fmt.Errorf("proto: wrong wireType = %d for field RollbackTo", wireType) |
| 3852 | } |
| 3853 | var msglen int |
| 3854 | for shift := uint(0); ; shift += 7 { |
| 3855 | if shift >= 64 { |
| 3856 | return ErrIntOverflowGenerated |
| 3857 | } |
| 3858 | if iNdEx >= l { |
| 3859 | return io.ErrUnexpectedEOF |
| 3860 | } |
| 3861 | b := dAtA[iNdEx] |
| 3862 | iNdEx++ |
| 3863 | msglen |= int(b&0x7F) << shift |
| 3864 | if b < 0x80 { |
| 3865 | break |
| 3866 | } |
| 3867 | } |
| 3868 | if msglen < 0 { |
| 3869 | return ErrInvalidLengthGenerated |
| 3870 | } |
| 3871 | postIndex := iNdEx + msglen |
| 3872 | if postIndex < 0 { |
| 3873 | return ErrInvalidLengthGenerated |
| 3874 | } |
| 3875 | if postIndex > l { |
| 3876 | return io.ErrUnexpectedEOF |
| 3877 | } |
| 3878 | if m.RollbackTo == nil { |
| 3879 | m.RollbackTo = &RollbackConfig{} |
| 3880 | } |
| 3881 | if err := m.RollbackTo.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 3882 | return err |
| 3883 | } |
| 3884 | iNdEx = postIndex |
| 3885 | case 9: |
| 3886 | if wireType != 0 { |
| 3887 | return fmt.Errorf("proto: wrong wireType = %d for field ProgressDeadlineSeconds", wireType) |
| 3888 | } |
| 3889 | var v int32 |
| 3890 | for shift := uint(0); ; shift += 7 { |
| 3891 | if shift >= 64 { |
| 3892 | return ErrIntOverflowGenerated |
| 3893 | } |
| 3894 | if iNdEx >= l { |
| 3895 | return io.ErrUnexpectedEOF |
| 3896 | } |
| 3897 | b := dAtA[iNdEx] |
| 3898 | iNdEx++ |
| 3899 | v |= int32(b&0x7F) << shift |
| 3900 | if b < 0x80 { |
| 3901 | break |
| 3902 | } |
| 3903 | } |
| 3904 | m.ProgressDeadlineSeconds = &v |
| 3905 | default: |
| 3906 | iNdEx = preIndex |
| 3907 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 3908 | if err != nil { |
| 3909 | return err |
| 3910 | } |
| 3911 | if skippy < 0 { |
| 3912 | return ErrInvalidLengthGenerated |
| 3913 | } |
| 3914 | if (iNdEx + skippy) < 0 { |
| 3915 | return ErrInvalidLengthGenerated |
| 3916 | } |
| 3917 | if (iNdEx + skippy) > l { |
| 3918 | return io.ErrUnexpectedEOF |
| 3919 | } |
| 3920 | iNdEx += skippy |
| 3921 | } |
| 3922 | } |
| 3923 | |
| 3924 | if iNdEx > l { |
| 3925 | return io.ErrUnexpectedEOF |
| 3926 | } |
| 3927 | return nil |
| 3928 | } |
| 3929 | func (m *DeploymentStatus) Unmarshal(dAtA []byte) error { |
| 3930 | l := len(dAtA) |
| 3931 | iNdEx := 0 |
| 3932 | for iNdEx < l { |
| 3933 | preIndex := iNdEx |
| 3934 | var wire uint64 |
| 3935 | for shift := uint(0); ; shift += 7 { |
| 3936 | if shift >= 64 { |
| 3937 | return ErrIntOverflowGenerated |
| 3938 | } |
| 3939 | if iNdEx >= l { |
| 3940 | return io.ErrUnexpectedEOF |
| 3941 | } |
| 3942 | b := dAtA[iNdEx] |
| 3943 | iNdEx++ |
| 3944 | wire |= uint64(b&0x7F) << shift |
| 3945 | if b < 0x80 { |
| 3946 | break |
| 3947 | } |
| 3948 | } |
| 3949 | fieldNum := int32(wire >> 3) |
| 3950 | wireType := int(wire & 0x7) |
| 3951 | if wireType == 4 { |
| 3952 | return fmt.Errorf("proto: DeploymentStatus: wiretype end group for non-group") |
| 3953 | } |
| 3954 | if fieldNum <= 0 { |
| 3955 | return fmt.Errorf("proto: DeploymentStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 3956 | } |
| 3957 | switch fieldNum { |
| 3958 | case 1: |
| 3959 | if wireType != 0 { |
| 3960 | return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) |
| 3961 | } |
| 3962 | m.ObservedGeneration = 0 |
| 3963 | for shift := uint(0); ; shift += 7 { |
| 3964 | if shift >= 64 { |
| 3965 | return ErrIntOverflowGenerated |
| 3966 | } |
| 3967 | if iNdEx >= l { |
| 3968 | return io.ErrUnexpectedEOF |
| 3969 | } |
| 3970 | b := dAtA[iNdEx] |
| 3971 | iNdEx++ |
| 3972 | m.ObservedGeneration |= int64(b&0x7F) << shift |
| 3973 | if b < 0x80 { |
| 3974 | break |
| 3975 | } |
| 3976 | } |
| 3977 | case 2: |
| 3978 | if wireType != 0 { |
| 3979 | return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) |
| 3980 | } |
| 3981 | m.Replicas = 0 |
| 3982 | for shift := uint(0); ; shift += 7 { |
| 3983 | if shift >= 64 { |
| 3984 | return ErrIntOverflowGenerated |
| 3985 | } |
| 3986 | if iNdEx >= l { |
| 3987 | return io.ErrUnexpectedEOF |
| 3988 | } |
| 3989 | b := dAtA[iNdEx] |
| 3990 | iNdEx++ |
| 3991 | m.Replicas |= int32(b&0x7F) << shift |
| 3992 | if b < 0x80 { |
| 3993 | break |
| 3994 | } |
| 3995 | } |
| 3996 | case 3: |
| 3997 | if wireType != 0 { |
| 3998 | return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType) |
| 3999 | } |
| 4000 | m.UpdatedReplicas = 0 |
| 4001 | for shift := uint(0); ; shift += 7 { |
| 4002 | if shift >= 64 { |
| 4003 | return ErrIntOverflowGenerated |
| 4004 | } |
| 4005 | if iNdEx >= l { |
| 4006 | return io.ErrUnexpectedEOF |
| 4007 | } |
| 4008 | b := dAtA[iNdEx] |
| 4009 | iNdEx++ |
| 4010 | m.UpdatedReplicas |= int32(b&0x7F) << shift |
| 4011 | if b < 0x80 { |
| 4012 | break |
| 4013 | } |
| 4014 | } |
| 4015 | case 4: |
| 4016 | if wireType != 0 { |
| 4017 | return fmt.Errorf("proto: wrong wireType = %d for field AvailableReplicas", wireType) |
| 4018 | } |
| 4019 | m.AvailableReplicas = 0 |
| 4020 | for shift := uint(0); ; shift += 7 { |
| 4021 | if shift >= 64 { |
| 4022 | return ErrIntOverflowGenerated |
| 4023 | } |
| 4024 | if iNdEx >= l { |
| 4025 | return io.ErrUnexpectedEOF |
| 4026 | } |
| 4027 | b := dAtA[iNdEx] |
| 4028 | iNdEx++ |
| 4029 | m.AvailableReplicas |= int32(b&0x7F) << shift |
| 4030 | if b < 0x80 { |
| 4031 | break |
| 4032 | } |
| 4033 | } |
| 4034 | case 5: |
| 4035 | if wireType != 0 { |
| 4036 | return fmt.Errorf("proto: wrong wireType = %d for field UnavailableReplicas", wireType) |
| 4037 | } |
| 4038 | m.UnavailableReplicas = 0 |
| 4039 | for shift := uint(0); ; shift += 7 { |
| 4040 | if shift >= 64 { |
| 4041 | return ErrIntOverflowGenerated |
| 4042 | } |
| 4043 | if iNdEx >= l { |
| 4044 | return io.ErrUnexpectedEOF |
| 4045 | } |
| 4046 | b := dAtA[iNdEx] |
| 4047 | iNdEx++ |
| 4048 | m.UnavailableReplicas |= int32(b&0x7F) << shift |
| 4049 | if b < 0x80 { |
| 4050 | break |
| 4051 | } |
| 4052 | } |
| 4053 | case 6: |
| 4054 | if wireType != 2 { |
| 4055 | return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) |
| 4056 | } |
| 4057 | var msglen int |
| 4058 | for shift := uint(0); ; shift += 7 { |
| 4059 | if shift >= 64 { |
| 4060 | return ErrIntOverflowGenerated |
| 4061 | } |
| 4062 | if iNdEx >= l { |
| 4063 | return io.ErrUnexpectedEOF |
| 4064 | } |
| 4065 | b := dAtA[iNdEx] |
| 4066 | iNdEx++ |
| 4067 | msglen |= int(b&0x7F) << shift |
| 4068 | if b < 0x80 { |
| 4069 | break |
| 4070 | } |
| 4071 | } |
| 4072 | if msglen < 0 { |
| 4073 | return ErrInvalidLengthGenerated |
| 4074 | } |
| 4075 | postIndex := iNdEx + msglen |
| 4076 | if postIndex < 0 { |
| 4077 | return ErrInvalidLengthGenerated |
| 4078 | } |
| 4079 | if postIndex > l { |
| 4080 | return io.ErrUnexpectedEOF |
| 4081 | } |
| 4082 | m.Conditions = append(m.Conditions, DeploymentCondition{}) |
| 4083 | if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4084 | return err |
| 4085 | } |
| 4086 | iNdEx = postIndex |
| 4087 | case 7: |
| 4088 | if wireType != 0 { |
| 4089 | return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) |
| 4090 | } |
| 4091 | m.ReadyReplicas = 0 |
| 4092 | for shift := uint(0); ; shift += 7 { |
| 4093 | if shift >= 64 { |
| 4094 | return ErrIntOverflowGenerated |
| 4095 | } |
| 4096 | if iNdEx >= l { |
| 4097 | return io.ErrUnexpectedEOF |
| 4098 | } |
| 4099 | b := dAtA[iNdEx] |
| 4100 | iNdEx++ |
| 4101 | m.ReadyReplicas |= int32(b&0x7F) << shift |
| 4102 | if b < 0x80 { |
| 4103 | break |
| 4104 | } |
| 4105 | } |
| 4106 | case 8: |
| 4107 | if wireType != 0 { |
| 4108 | return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType) |
| 4109 | } |
| 4110 | var v int32 |
| 4111 | for shift := uint(0); ; shift += 7 { |
| 4112 | if shift >= 64 { |
| 4113 | return ErrIntOverflowGenerated |
| 4114 | } |
| 4115 | if iNdEx >= l { |
| 4116 | return io.ErrUnexpectedEOF |
| 4117 | } |
| 4118 | b := dAtA[iNdEx] |
| 4119 | iNdEx++ |
| 4120 | v |= int32(b&0x7F) << shift |
| 4121 | if b < 0x80 { |
| 4122 | break |
| 4123 | } |
| 4124 | } |
| 4125 | m.CollisionCount = &v |
| 4126 | default: |
| 4127 | iNdEx = preIndex |
| 4128 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4129 | if err != nil { |
| 4130 | return err |
| 4131 | } |
| 4132 | if skippy < 0 { |
| 4133 | return ErrInvalidLengthGenerated |
| 4134 | } |
| 4135 | if (iNdEx + skippy) < 0 { |
| 4136 | return ErrInvalidLengthGenerated |
| 4137 | } |
| 4138 | if (iNdEx + skippy) > l { |
| 4139 | return io.ErrUnexpectedEOF |
| 4140 | } |
| 4141 | iNdEx += skippy |
| 4142 | } |
| 4143 | } |
| 4144 | |
| 4145 | if iNdEx > l { |
| 4146 | return io.ErrUnexpectedEOF |
| 4147 | } |
| 4148 | return nil |
| 4149 | } |
| 4150 | func (m *DeploymentStrategy) Unmarshal(dAtA []byte) error { |
| 4151 | l := len(dAtA) |
| 4152 | iNdEx := 0 |
| 4153 | for iNdEx < l { |
| 4154 | preIndex := iNdEx |
| 4155 | var wire uint64 |
| 4156 | for shift := uint(0); ; shift += 7 { |
| 4157 | if shift >= 64 { |
| 4158 | return ErrIntOverflowGenerated |
| 4159 | } |
| 4160 | if iNdEx >= l { |
| 4161 | return io.ErrUnexpectedEOF |
| 4162 | } |
| 4163 | b := dAtA[iNdEx] |
| 4164 | iNdEx++ |
| 4165 | wire |= uint64(b&0x7F) << shift |
| 4166 | if b < 0x80 { |
| 4167 | break |
| 4168 | } |
| 4169 | } |
| 4170 | fieldNum := int32(wire >> 3) |
| 4171 | wireType := int(wire & 0x7) |
| 4172 | if wireType == 4 { |
| 4173 | return fmt.Errorf("proto: DeploymentStrategy: wiretype end group for non-group") |
| 4174 | } |
| 4175 | if fieldNum <= 0 { |
| 4176 | return fmt.Errorf("proto: DeploymentStrategy: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4177 | } |
| 4178 | switch fieldNum { |
| 4179 | case 1: |
| 4180 | if wireType != 2 { |
| 4181 | return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) |
| 4182 | } |
| 4183 | var stringLen uint64 |
| 4184 | for shift := uint(0); ; shift += 7 { |
| 4185 | if shift >= 64 { |
| 4186 | return ErrIntOverflowGenerated |
| 4187 | } |
| 4188 | if iNdEx >= l { |
| 4189 | return io.ErrUnexpectedEOF |
| 4190 | } |
| 4191 | b := dAtA[iNdEx] |
| 4192 | iNdEx++ |
| 4193 | stringLen |= uint64(b&0x7F) << shift |
| 4194 | if b < 0x80 { |
| 4195 | break |
| 4196 | } |
| 4197 | } |
| 4198 | intStringLen := int(stringLen) |
| 4199 | if intStringLen < 0 { |
| 4200 | return ErrInvalidLengthGenerated |
| 4201 | } |
| 4202 | postIndex := iNdEx + intStringLen |
| 4203 | if postIndex < 0 { |
| 4204 | return ErrInvalidLengthGenerated |
| 4205 | } |
| 4206 | if postIndex > l { |
| 4207 | return io.ErrUnexpectedEOF |
| 4208 | } |
| 4209 | m.Type = DeploymentStrategyType(dAtA[iNdEx:postIndex]) |
| 4210 | iNdEx = postIndex |
| 4211 | case 2: |
| 4212 | if wireType != 2 { |
| 4213 | return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType) |
| 4214 | } |
| 4215 | var msglen int |
| 4216 | for shift := uint(0); ; shift += 7 { |
| 4217 | if shift >= 64 { |
| 4218 | return ErrIntOverflowGenerated |
| 4219 | } |
| 4220 | if iNdEx >= l { |
| 4221 | return io.ErrUnexpectedEOF |
| 4222 | } |
| 4223 | b := dAtA[iNdEx] |
| 4224 | iNdEx++ |
| 4225 | msglen |= int(b&0x7F) << shift |
| 4226 | if b < 0x80 { |
| 4227 | break |
| 4228 | } |
| 4229 | } |
| 4230 | if msglen < 0 { |
| 4231 | return ErrInvalidLengthGenerated |
| 4232 | } |
| 4233 | postIndex := iNdEx + msglen |
| 4234 | if postIndex < 0 { |
| 4235 | return ErrInvalidLengthGenerated |
| 4236 | } |
| 4237 | if postIndex > l { |
| 4238 | return io.ErrUnexpectedEOF |
| 4239 | } |
| 4240 | if m.RollingUpdate == nil { |
| 4241 | m.RollingUpdate = &RollingUpdateDeployment{} |
| 4242 | } |
| 4243 | if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4244 | return err |
| 4245 | } |
| 4246 | iNdEx = postIndex |
| 4247 | default: |
| 4248 | iNdEx = preIndex |
| 4249 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4250 | if err != nil { |
| 4251 | return err |
| 4252 | } |
| 4253 | if skippy < 0 { |
| 4254 | return ErrInvalidLengthGenerated |
| 4255 | } |
| 4256 | if (iNdEx + skippy) < 0 { |
| 4257 | return ErrInvalidLengthGenerated |
| 4258 | } |
| 4259 | if (iNdEx + skippy) > l { |
| 4260 | return io.ErrUnexpectedEOF |
| 4261 | } |
| 4262 | iNdEx += skippy |
| 4263 | } |
| 4264 | } |
| 4265 | |
| 4266 | if iNdEx > l { |
| 4267 | return io.ErrUnexpectedEOF |
| 4268 | } |
| 4269 | return nil |
| 4270 | } |
| 4271 | func (m *RollbackConfig) Unmarshal(dAtA []byte) error { |
| 4272 | l := len(dAtA) |
| 4273 | iNdEx := 0 |
| 4274 | for iNdEx < l { |
| 4275 | preIndex := iNdEx |
| 4276 | var wire uint64 |
| 4277 | for shift := uint(0); ; shift += 7 { |
| 4278 | if shift >= 64 { |
| 4279 | return ErrIntOverflowGenerated |
| 4280 | } |
| 4281 | if iNdEx >= l { |
| 4282 | return io.ErrUnexpectedEOF |
| 4283 | } |
| 4284 | b := dAtA[iNdEx] |
| 4285 | iNdEx++ |
| 4286 | wire |= uint64(b&0x7F) << shift |
| 4287 | if b < 0x80 { |
| 4288 | break |
| 4289 | } |
| 4290 | } |
| 4291 | fieldNum := int32(wire >> 3) |
| 4292 | wireType := int(wire & 0x7) |
| 4293 | if wireType == 4 { |
| 4294 | return fmt.Errorf("proto: RollbackConfig: wiretype end group for non-group") |
| 4295 | } |
| 4296 | if fieldNum <= 0 { |
| 4297 | return fmt.Errorf("proto: RollbackConfig: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4298 | } |
| 4299 | switch fieldNum { |
| 4300 | case 1: |
| 4301 | if wireType != 0 { |
| 4302 | return fmt.Errorf("proto: wrong wireType = %d for field Revision", wireType) |
| 4303 | } |
| 4304 | m.Revision = 0 |
| 4305 | for shift := uint(0); ; shift += 7 { |
| 4306 | if shift >= 64 { |
| 4307 | return ErrIntOverflowGenerated |
| 4308 | } |
| 4309 | if iNdEx >= l { |
| 4310 | return io.ErrUnexpectedEOF |
| 4311 | } |
| 4312 | b := dAtA[iNdEx] |
| 4313 | iNdEx++ |
| 4314 | m.Revision |= int64(b&0x7F) << shift |
| 4315 | if b < 0x80 { |
| 4316 | break |
| 4317 | } |
| 4318 | } |
| 4319 | default: |
| 4320 | iNdEx = preIndex |
| 4321 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4322 | if err != nil { |
| 4323 | return err |
| 4324 | } |
| 4325 | if skippy < 0 { |
| 4326 | return ErrInvalidLengthGenerated |
| 4327 | } |
| 4328 | if (iNdEx + skippy) < 0 { |
| 4329 | return ErrInvalidLengthGenerated |
| 4330 | } |
| 4331 | if (iNdEx + skippy) > l { |
| 4332 | return io.ErrUnexpectedEOF |
| 4333 | } |
| 4334 | iNdEx += skippy |
| 4335 | } |
| 4336 | } |
| 4337 | |
| 4338 | if iNdEx > l { |
| 4339 | return io.ErrUnexpectedEOF |
| 4340 | } |
| 4341 | return nil |
| 4342 | } |
| 4343 | func (m *RollingUpdateDeployment) Unmarshal(dAtA []byte) error { |
| 4344 | l := len(dAtA) |
| 4345 | iNdEx := 0 |
| 4346 | for iNdEx < l { |
| 4347 | preIndex := iNdEx |
| 4348 | var wire uint64 |
| 4349 | for shift := uint(0); ; shift += 7 { |
| 4350 | if shift >= 64 { |
| 4351 | return ErrIntOverflowGenerated |
| 4352 | } |
| 4353 | if iNdEx >= l { |
| 4354 | return io.ErrUnexpectedEOF |
| 4355 | } |
| 4356 | b := dAtA[iNdEx] |
| 4357 | iNdEx++ |
| 4358 | wire |= uint64(b&0x7F) << shift |
| 4359 | if b < 0x80 { |
| 4360 | break |
| 4361 | } |
| 4362 | } |
| 4363 | fieldNum := int32(wire >> 3) |
| 4364 | wireType := int(wire & 0x7) |
| 4365 | if wireType == 4 { |
| 4366 | return fmt.Errorf("proto: RollingUpdateDeployment: wiretype end group for non-group") |
| 4367 | } |
| 4368 | if fieldNum <= 0 { |
| 4369 | return fmt.Errorf("proto: RollingUpdateDeployment: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4370 | } |
| 4371 | switch fieldNum { |
| 4372 | case 1: |
| 4373 | if wireType != 2 { |
| 4374 | return fmt.Errorf("proto: wrong wireType = %d for field MaxUnavailable", wireType) |
| 4375 | } |
| 4376 | var msglen int |
| 4377 | for shift := uint(0); ; shift += 7 { |
| 4378 | if shift >= 64 { |
| 4379 | return ErrIntOverflowGenerated |
| 4380 | } |
| 4381 | if iNdEx >= l { |
| 4382 | return io.ErrUnexpectedEOF |
| 4383 | } |
| 4384 | b := dAtA[iNdEx] |
| 4385 | iNdEx++ |
| 4386 | msglen |= int(b&0x7F) << shift |
| 4387 | if b < 0x80 { |
| 4388 | break |
| 4389 | } |
| 4390 | } |
| 4391 | if msglen < 0 { |
| 4392 | return ErrInvalidLengthGenerated |
| 4393 | } |
| 4394 | postIndex := iNdEx + msglen |
| 4395 | if postIndex < 0 { |
| 4396 | return ErrInvalidLengthGenerated |
| 4397 | } |
| 4398 | if postIndex > l { |
| 4399 | return io.ErrUnexpectedEOF |
| 4400 | } |
| 4401 | if m.MaxUnavailable == nil { |
| 4402 | m.MaxUnavailable = &intstr.IntOrString{} |
| 4403 | } |
| 4404 | if err := m.MaxUnavailable.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4405 | return err |
| 4406 | } |
| 4407 | iNdEx = postIndex |
| 4408 | case 2: |
| 4409 | if wireType != 2 { |
| 4410 | return fmt.Errorf("proto: wrong wireType = %d for field MaxSurge", wireType) |
| 4411 | } |
| 4412 | var msglen int |
| 4413 | for shift := uint(0); ; shift += 7 { |
| 4414 | if shift >= 64 { |
| 4415 | return ErrIntOverflowGenerated |
| 4416 | } |
| 4417 | if iNdEx >= l { |
| 4418 | return io.ErrUnexpectedEOF |
| 4419 | } |
| 4420 | b := dAtA[iNdEx] |
| 4421 | iNdEx++ |
| 4422 | msglen |= int(b&0x7F) << shift |
| 4423 | if b < 0x80 { |
| 4424 | break |
| 4425 | } |
| 4426 | } |
| 4427 | if msglen < 0 { |
| 4428 | return ErrInvalidLengthGenerated |
| 4429 | } |
| 4430 | postIndex := iNdEx + msglen |
| 4431 | if postIndex < 0 { |
| 4432 | return ErrInvalidLengthGenerated |
| 4433 | } |
| 4434 | if postIndex > l { |
| 4435 | return io.ErrUnexpectedEOF |
| 4436 | } |
| 4437 | if m.MaxSurge == nil { |
| 4438 | m.MaxSurge = &intstr.IntOrString{} |
| 4439 | } |
| 4440 | if err := m.MaxSurge.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4441 | return err |
| 4442 | } |
| 4443 | iNdEx = postIndex |
| 4444 | default: |
| 4445 | iNdEx = preIndex |
| 4446 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4447 | if err != nil { |
| 4448 | return err |
| 4449 | } |
| 4450 | if skippy < 0 { |
| 4451 | return ErrInvalidLengthGenerated |
| 4452 | } |
| 4453 | if (iNdEx + skippy) < 0 { |
| 4454 | return ErrInvalidLengthGenerated |
| 4455 | } |
| 4456 | if (iNdEx + skippy) > l { |
| 4457 | return io.ErrUnexpectedEOF |
| 4458 | } |
| 4459 | iNdEx += skippy |
| 4460 | } |
| 4461 | } |
| 4462 | |
| 4463 | if iNdEx > l { |
| 4464 | return io.ErrUnexpectedEOF |
| 4465 | } |
| 4466 | return nil |
| 4467 | } |
| 4468 | func (m *RollingUpdateStatefulSetStrategy) Unmarshal(dAtA []byte) error { |
| 4469 | l := len(dAtA) |
| 4470 | iNdEx := 0 |
| 4471 | for iNdEx < l { |
| 4472 | preIndex := iNdEx |
| 4473 | var wire uint64 |
| 4474 | for shift := uint(0); ; shift += 7 { |
| 4475 | if shift >= 64 { |
| 4476 | return ErrIntOverflowGenerated |
| 4477 | } |
| 4478 | if iNdEx >= l { |
| 4479 | return io.ErrUnexpectedEOF |
| 4480 | } |
| 4481 | b := dAtA[iNdEx] |
| 4482 | iNdEx++ |
| 4483 | wire |= uint64(b&0x7F) << shift |
| 4484 | if b < 0x80 { |
| 4485 | break |
| 4486 | } |
| 4487 | } |
| 4488 | fieldNum := int32(wire >> 3) |
| 4489 | wireType := int(wire & 0x7) |
| 4490 | if wireType == 4 { |
| 4491 | return fmt.Errorf("proto: RollingUpdateStatefulSetStrategy: wiretype end group for non-group") |
| 4492 | } |
| 4493 | if fieldNum <= 0 { |
| 4494 | return fmt.Errorf("proto: RollingUpdateStatefulSetStrategy: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4495 | } |
| 4496 | switch fieldNum { |
| 4497 | case 1: |
| 4498 | if wireType != 0 { |
| 4499 | return fmt.Errorf("proto: wrong wireType = %d for field Partition", wireType) |
| 4500 | } |
| 4501 | var v int32 |
| 4502 | for shift := uint(0); ; shift += 7 { |
| 4503 | if shift >= 64 { |
| 4504 | return ErrIntOverflowGenerated |
| 4505 | } |
| 4506 | if iNdEx >= l { |
| 4507 | return io.ErrUnexpectedEOF |
| 4508 | } |
| 4509 | b := dAtA[iNdEx] |
| 4510 | iNdEx++ |
| 4511 | v |= int32(b&0x7F) << shift |
| 4512 | if b < 0x80 { |
| 4513 | break |
| 4514 | } |
| 4515 | } |
| 4516 | m.Partition = &v |
| 4517 | default: |
| 4518 | iNdEx = preIndex |
| 4519 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4520 | if err != nil { |
| 4521 | return err |
| 4522 | } |
| 4523 | if skippy < 0 { |
| 4524 | return ErrInvalidLengthGenerated |
| 4525 | } |
| 4526 | if (iNdEx + skippy) < 0 { |
| 4527 | return ErrInvalidLengthGenerated |
| 4528 | } |
| 4529 | if (iNdEx + skippy) > l { |
| 4530 | return io.ErrUnexpectedEOF |
| 4531 | } |
| 4532 | iNdEx += skippy |
| 4533 | } |
| 4534 | } |
| 4535 | |
| 4536 | if iNdEx > l { |
| 4537 | return io.ErrUnexpectedEOF |
| 4538 | } |
| 4539 | return nil |
| 4540 | } |
| 4541 | func (m *Scale) Unmarshal(dAtA []byte) error { |
| 4542 | l := len(dAtA) |
| 4543 | iNdEx := 0 |
| 4544 | for iNdEx < l { |
| 4545 | preIndex := iNdEx |
| 4546 | var wire uint64 |
| 4547 | for shift := uint(0); ; shift += 7 { |
| 4548 | if shift >= 64 { |
| 4549 | return ErrIntOverflowGenerated |
| 4550 | } |
| 4551 | if iNdEx >= l { |
| 4552 | return io.ErrUnexpectedEOF |
| 4553 | } |
| 4554 | b := dAtA[iNdEx] |
| 4555 | iNdEx++ |
| 4556 | wire |= uint64(b&0x7F) << shift |
| 4557 | if b < 0x80 { |
| 4558 | break |
| 4559 | } |
| 4560 | } |
| 4561 | fieldNum := int32(wire >> 3) |
| 4562 | wireType := int(wire & 0x7) |
| 4563 | if wireType == 4 { |
| 4564 | return fmt.Errorf("proto: Scale: wiretype end group for non-group") |
| 4565 | } |
| 4566 | if fieldNum <= 0 { |
| 4567 | return fmt.Errorf("proto: Scale: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4568 | } |
| 4569 | switch fieldNum { |
| 4570 | case 1: |
| 4571 | if wireType != 2 { |
| 4572 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 4573 | } |
| 4574 | var msglen int |
| 4575 | for shift := uint(0); ; shift += 7 { |
| 4576 | if shift >= 64 { |
| 4577 | return ErrIntOverflowGenerated |
| 4578 | } |
| 4579 | if iNdEx >= l { |
| 4580 | return io.ErrUnexpectedEOF |
| 4581 | } |
| 4582 | b := dAtA[iNdEx] |
| 4583 | iNdEx++ |
| 4584 | msglen |= int(b&0x7F) << shift |
| 4585 | if b < 0x80 { |
| 4586 | break |
| 4587 | } |
| 4588 | } |
| 4589 | if msglen < 0 { |
| 4590 | return ErrInvalidLengthGenerated |
| 4591 | } |
| 4592 | postIndex := iNdEx + msglen |
| 4593 | if postIndex < 0 { |
| 4594 | return ErrInvalidLengthGenerated |
| 4595 | } |
| 4596 | if postIndex > l { |
| 4597 | return io.ErrUnexpectedEOF |
| 4598 | } |
| 4599 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4600 | return err |
| 4601 | } |
| 4602 | iNdEx = postIndex |
| 4603 | case 2: |
| 4604 | if wireType != 2 { |
| 4605 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 4606 | } |
| 4607 | var msglen int |
| 4608 | for shift := uint(0); ; shift += 7 { |
| 4609 | if shift >= 64 { |
| 4610 | return ErrIntOverflowGenerated |
| 4611 | } |
| 4612 | if iNdEx >= l { |
| 4613 | return io.ErrUnexpectedEOF |
| 4614 | } |
| 4615 | b := dAtA[iNdEx] |
| 4616 | iNdEx++ |
| 4617 | msglen |= int(b&0x7F) << shift |
| 4618 | if b < 0x80 { |
| 4619 | break |
| 4620 | } |
| 4621 | } |
| 4622 | if msglen < 0 { |
| 4623 | return ErrInvalidLengthGenerated |
| 4624 | } |
| 4625 | postIndex := iNdEx + msglen |
| 4626 | if postIndex < 0 { |
| 4627 | return ErrInvalidLengthGenerated |
| 4628 | } |
| 4629 | if postIndex > l { |
| 4630 | return io.ErrUnexpectedEOF |
| 4631 | } |
| 4632 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4633 | return err |
| 4634 | } |
| 4635 | iNdEx = postIndex |
| 4636 | case 3: |
| 4637 | if wireType != 2 { |
| 4638 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 4639 | } |
| 4640 | var msglen int |
| 4641 | for shift := uint(0); ; shift += 7 { |
| 4642 | if shift >= 64 { |
| 4643 | return ErrIntOverflowGenerated |
| 4644 | } |
| 4645 | if iNdEx >= l { |
| 4646 | return io.ErrUnexpectedEOF |
| 4647 | } |
| 4648 | b := dAtA[iNdEx] |
| 4649 | iNdEx++ |
| 4650 | msglen |= int(b&0x7F) << shift |
| 4651 | if b < 0x80 { |
| 4652 | break |
| 4653 | } |
| 4654 | } |
| 4655 | if msglen < 0 { |
| 4656 | return ErrInvalidLengthGenerated |
| 4657 | } |
| 4658 | postIndex := iNdEx + msglen |
| 4659 | if postIndex < 0 { |
| 4660 | return ErrInvalidLengthGenerated |
| 4661 | } |
| 4662 | if postIndex > l { |
| 4663 | return io.ErrUnexpectedEOF |
| 4664 | } |
| 4665 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 4666 | return err |
| 4667 | } |
| 4668 | iNdEx = postIndex |
| 4669 | default: |
| 4670 | iNdEx = preIndex |
| 4671 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4672 | if err != nil { |
| 4673 | return err |
| 4674 | } |
| 4675 | if skippy < 0 { |
| 4676 | return ErrInvalidLengthGenerated |
| 4677 | } |
| 4678 | if (iNdEx + skippy) < 0 { |
| 4679 | return ErrInvalidLengthGenerated |
| 4680 | } |
| 4681 | if (iNdEx + skippy) > l { |
| 4682 | return io.ErrUnexpectedEOF |
| 4683 | } |
| 4684 | iNdEx += skippy |
| 4685 | } |
| 4686 | } |
| 4687 | |
| 4688 | if iNdEx > l { |
| 4689 | return io.ErrUnexpectedEOF |
| 4690 | } |
| 4691 | return nil |
| 4692 | } |
| 4693 | func (m *ScaleSpec) Unmarshal(dAtA []byte) error { |
| 4694 | l := len(dAtA) |
| 4695 | iNdEx := 0 |
| 4696 | for iNdEx < l { |
| 4697 | preIndex := iNdEx |
| 4698 | var wire uint64 |
| 4699 | for shift := uint(0); ; shift += 7 { |
| 4700 | if shift >= 64 { |
| 4701 | return ErrIntOverflowGenerated |
| 4702 | } |
| 4703 | if iNdEx >= l { |
| 4704 | return io.ErrUnexpectedEOF |
| 4705 | } |
| 4706 | b := dAtA[iNdEx] |
| 4707 | iNdEx++ |
| 4708 | wire |= uint64(b&0x7F) << shift |
| 4709 | if b < 0x80 { |
| 4710 | break |
| 4711 | } |
| 4712 | } |
| 4713 | fieldNum := int32(wire >> 3) |
| 4714 | wireType := int(wire & 0x7) |
| 4715 | if wireType == 4 { |
| 4716 | return fmt.Errorf("proto: ScaleSpec: wiretype end group for non-group") |
| 4717 | } |
| 4718 | if fieldNum <= 0 { |
| 4719 | return fmt.Errorf("proto: ScaleSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4720 | } |
| 4721 | switch fieldNum { |
| 4722 | case 1: |
| 4723 | if wireType != 0 { |
| 4724 | return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) |
| 4725 | } |
| 4726 | m.Replicas = 0 |
| 4727 | for shift := uint(0); ; shift += 7 { |
| 4728 | if shift >= 64 { |
| 4729 | return ErrIntOverflowGenerated |
| 4730 | } |
| 4731 | if iNdEx >= l { |
| 4732 | return io.ErrUnexpectedEOF |
| 4733 | } |
| 4734 | b := dAtA[iNdEx] |
| 4735 | iNdEx++ |
| 4736 | m.Replicas |= int32(b&0x7F) << shift |
| 4737 | if b < 0x80 { |
| 4738 | break |
| 4739 | } |
| 4740 | } |
| 4741 | default: |
| 4742 | iNdEx = preIndex |
| 4743 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4744 | if err != nil { |
| 4745 | return err |
| 4746 | } |
| 4747 | if skippy < 0 { |
| 4748 | return ErrInvalidLengthGenerated |
| 4749 | } |
| 4750 | if (iNdEx + skippy) < 0 { |
| 4751 | return ErrInvalidLengthGenerated |
| 4752 | } |
| 4753 | if (iNdEx + skippy) > l { |
| 4754 | return io.ErrUnexpectedEOF |
| 4755 | } |
| 4756 | iNdEx += skippy |
| 4757 | } |
| 4758 | } |
| 4759 | |
| 4760 | if iNdEx > l { |
| 4761 | return io.ErrUnexpectedEOF |
| 4762 | } |
| 4763 | return nil |
| 4764 | } |
| 4765 | func (m *ScaleStatus) Unmarshal(dAtA []byte) error { |
| 4766 | l := len(dAtA) |
| 4767 | iNdEx := 0 |
| 4768 | for iNdEx < l { |
| 4769 | preIndex := iNdEx |
| 4770 | var wire uint64 |
| 4771 | for shift := uint(0); ; shift += 7 { |
| 4772 | if shift >= 64 { |
| 4773 | return ErrIntOverflowGenerated |
| 4774 | } |
| 4775 | if iNdEx >= l { |
| 4776 | return io.ErrUnexpectedEOF |
| 4777 | } |
| 4778 | b := dAtA[iNdEx] |
| 4779 | iNdEx++ |
| 4780 | wire |= uint64(b&0x7F) << shift |
| 4781 | if b < 0x80 { |
| 4782 | break |
| 4783 | } |
| 4784 | } |
| 4785 | fieldNum := int32(wire >> 3) |
| 4786 | wireType := int(wire & 0x7) |
| 4787 | if wireType == 4 { |
| 4788 | return fmt.Errorf("proto: ScaleStatus: wiretype end group for non-group") |
| 4789 | } |
| 4790 | if fieldNum <= 0 { |
| 4791 | return fmt.Errorf("proto: ScaleStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 4792 | } |
| 4793 | switch fieldNum { |
| 4794 | case 1: |
| 4795 | if wireType != 0 { |
| 4796 | return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) |
| 4797 | } |
| 4798 | m.Replicas = 0 |
| 4799 | for shift := uint(0); ; shift += 7 { |
| 4800 | if shift >= 64 { |
| 4801 | return ErrIntOverflowGenerated |
| 4802 | } |
| 4803 | if iNdEx >= l { |
| 4804 | return io.ErrUnexpectedEOF |
| 4805 | } |
| 4806 | b := dAtA[iNdEx] |
| 4807 | iNdEx++ |
| 4808 | m.Replicas |= int32(b&0x7F) << shift |
| 4809 | if b < 0x80 { |
| 4810 | break |
| 4811 | } |
| 4812 | } |
| 4813 | case 2: |
| 4814 | if wireType != 2 { |
| 4815 | return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) |
| 4816 | } |
| 4817 | var msglen int |
| 4818 | for shift := uint(0); ; shift += 7 { |
| 4819 | if shift >= 64 { |
| 4820 | return ErrIntOverflowGenerated |
| 4821 | } |
| 4822 | if iNdEx >= l { |
| 4823 | return io.ErrUnexpectedEOF |
| 4824 | } |
| 4825 | b := dAtA[iNdEx] |
| 4826 | iNdEx++ |
| 4827 | msglen |= int(b&0x7F) << shift |
| 4828 | if b < 0x80 { |
| 4829 | break |
| 4830 | } |
| 4831 | } |
| 4832 | if msglen < 0 { |
| 4833 | return ErrInvalidLengthGenerated |
| 4834 | } |
| 4835 | postIndex := iNdEx + msglen |
| 4836 | if postIndex < 0 { |
| 4837 | return ErrInvalidLengthGenerated |
| 4838 | } |
| 4839 | if postIndex > l { |
| 4840 | return io.ErrUnexpectedEOF |
| 4841 | } |
| 4842 | if m.Selector == nil { |
| 4843 | m.Selector = make(map[string]string) |
| 4844 | } |
| 4845 | var mapkey string |
| 4846 | var mapvalue string |
| 4847 | for iNdEx < postIndex { |
| 4848 | entryPreIndex := iNdEx |
| 4849 | var wire uint64 |
| 4850 | for shift := uint(0); ; shift += 7 { |
| 4851 | if shift >= 64 { |
| 4852 | return ErrIntOverflowGenerated |
| 4853 | } |
| 4854 | if iNdEx >= l { |
| 4855 | return io.ErrUnexpectedEOF |
| 4856 | } |
| 4857 | b := dAtA[iNdEx] |
| 4858 | iNdEx++ |
| 4859 | wire |= uint64(b&0x7F) << shift |
| 4860 | if b < 0x80 { |
| 4861 | break |
| 4862 | } |
| 4863 | } |
| 4864 | fieldNum := int32(wire >> 3) |
| 4865 | if fieldNum == 1 { |
| 4866 | var stringLenmapkey uint64 |
| 4867 | for shift := uint(0); ; shift += 7 { |
| 4868 | if shift >= 64 { |
| 4869 | return ErrIntOverflowGenerated |
| 4870 | } |
| 4871 | if iNdEx >= l { |
| 4872 | return io.ErrUnexpectedEOF |
| 4873 | } |
| 4874 | b := dAtA[iNdEx] |
| 4875 | iNdEx++ |
| 4876 | stringLenmapkey |= uint64(b&0x7F) << shift |
| 4877 | if b < 0x80 { |
| 4878 | break |
| 4879 | } |
| 4880 | } |
| 4881 | intStringLenmapkey := int(stringLenmapkey) |
| 4882 | if intStringLenmapkey < 0 { |
| 4883 | return ErrInvalidLengthGenerated |
| 4884 | } |
| 4885 | postStringIndexmapkey := iNdEx + intStringLenmapkey |
| 4886 | if postStringIndexmapkey < 0 { |
| 4887 | return ErrInvalidLengthGenerated |
| 4888 | } |
| 4889 | if postStringIndexmapkey > l { |
| 4890 | return io.ErrUnexpectedEOF |
| 4891 | } |
| 4892 | mapkey = string(dAtA[iNdEx:postStringIndexmapkey]) |
| 4893 | iNdEx = postStringIndexmapkey |
| 4894 | } else if fieldNum == 2 { |
| 4895 | var stringLenmapvalue uint64 |
| 4896 | for shift := uint(0); ; shift += 7 { |
| 4897 | if shift >= 64 { |
| 4898 | return ErrIntOverflowGenerated |
| 4899 | } |
| 4900 | if iNdEx >= l { |
| 4901 | return io.ErrUnexpectedEOF |
| 4902 | } |
| 4903 | b := dAtA[iNdEx] |
| 4904 | iNdEx++ |
| 4905 | stringLenmapvalue |= uint64(b&0x7F) << shift |
| 4906 | if b < 0x80 { |
| 4907 | break |
| 4908 | } |
| 4909 | } |
| 4910 | intStringLenmapvalue := int(stringLenmapvalue) |
| 4911 | if intStringLenmapvalue < 0 { |
| 4912 | return ErrInvalidLengthGenerated |
| 4913 | } |
| 4914 | postStringIndexmapvalue := iNdEx + intStringLenmapvalue |
| 4915 | if postStringIndexmapvalue < 0 { |
| 4916 | return ErrInvalidLengthGenerated |
| 4917 | } |
| 4918 | if postStringIndexmapvalue > l { |
| 4919 | return io.ErrUnexpectedEOF |
| 4920 | } |
| 4921 | mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue]) |
| 4922 | iNdEx = postStringIndexmapvalue |
| 4923 | } else { |
| 4924 | iNdEx = entryPreIndex |
| 4925 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4926 | if err != nil { |
| 4927 | return err |
| 4928 | } |
| 4929 | if skippy < 0 { |
| 4930 | return ErrInvalidLengthGenerated |
| 4931 | } |
| 4932 | if (iNdEx + skippy) > postIndex { |
| 4933 | return io.ErrUnexpectedEOF |
| 4934 | } |
| 4935 | iNdEx += skippy |
| 4936 | } |
| 4937 | } |
| 4938 | m.Selector[mapkey] = mapvalue |
| 4939 | iNdEx = postIndex |
| 4940 | case 3: |
| 4941 | if wireType != 2 { |
| 4942 | return fmt.Errorf("proto: wrong wireType = %d for field TargetSelector", wireType) |
| 4943 | } |
| 4944 | var stringLen uint64 |
| 4945 | for shift := uint(0); ; shift += 7 { |
| 4946 | if shift >= 64 { |
| 4947 | return ErrIntOverflowGenerated |
| 4948 | } |
| 4949 | if iNdEx >= l { |
| 4950 | return io.ErrUnexpectedEOF |
| 4951 | } |
| 4952 | b := dAtA[iNdEx] |
| 4953 | iNdEx++ |
| 4954 | stringLen |= uint64(b&0x7F) << shift |
| 4955 | if b < 0x80 { |
| 4956 | break |
| 4957 | } |
| 4958 | } |
| 4959 | intStringLen := int(stringLen) |
| 4960 | if intStringLen < 0 { |
| 4961 | return ErrInvalidLengthGenerated |
| 4962 | } |
| 4963 | postIndex := iNdEx + intStringLen |
| 4964 | if postIndex < 0 { |
| 4965 | return ErrInvalidLengthGenerated |
| 4966 | } |
| 4967 | if postIndex > l { |
| 4968 | return io.ErrUnexpectedEOF |
| 4969 | } |
| 4970 | m.TargetSelector = string(dAtA[iNdEx:postIndex]) |
| 4971 | iNdEx = postIndex |
| 4972 | default: |
| 4973 | iNdEx = preIndex |
| 4974 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 4975 | if err != nil { |
| 4976 | return err |
| 4977 | } |
| 4978 | if skippy < 0 { |
| 4979 | return ErrInvalidLengthGenerated |
| 4980 | } |
| 4981 | if (iNdEx + skippy) < 0 { |
| 4982 | return ErrInvalidLengthGenerated |
| 4983 | } |
| 4984 | if (iNdEx + skippy) > l { |
| 4985 | return io.ErrUnexpectedEOF |
| 4986 | } |
| 4987 | iNdEx += skippy |
| 4988 | } |
| 4989 | } |
| 4990 | |
| 4991 | if iNdEx > l { |
| 4992 | return io.ErrUnexpectedEOF |
| 4993 | } |
| 4994 | return nil |
| 4995 | } |
| 4996 | func (m *StatefulSet) Unmarshal(dAtA []byte) error { |
| 4997 | l := len(dAtA) |
| 4998 | iNdEx := 0 |
| 4999 | for iNdEx < l { |
| 5000 | preIndex := iNdEx |
| 5001 | var wire uint64 |
| 5002 | for shift := uint(0); ; shift += 7 { |
| 5003 | if shift >= 64 { |
| 5004 | return ErrIntOverflowGenerated |
| 5005 | } |
| 5006 | if iNdEx >= l { |
| 5007 | return io.ErrUnexpectedEOF |
| 5008 | } |
| 5009 | b := dAtA[iNdEx] |
| 5010 | iNdEx++ |
| 5011 | wire |= uint64(b&0x7F) << shift |
| 5012 | if b < 0x80 { |
| 5013 | break |
| 5014 | } |
| 5015 | } |
| 5016 | fieldNum := int32(wire >> 3) |
| 5017 | wireType := int(wire & 0x7) |
| 5018 | if wireType == 4 { |
| 5019 | return fmt.Errorf("proto: StatefulSet: wiretype end group for non-group") |
| 5020 | } |
| 5021 | if fieldNum <= 0 { |
| 5022 | return fmt.Errorf("proto: StatefulSet: illegal tag %d (wire type %d)", fieldNum, wire) |
| 5023 | } |
| 5024 | switch fieldNum { |
| 5025 | case 1: |
| 5026 | if wireType != 2 { |
| 5027 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 5028 | } |
| 5029 | var msglen int |
| 5030 | for shift := uint(0); ; shift += 7 { |
| 5031 | if shift >= 64 { |
| 5032 | return ErrIntOverflowGenerated |
| 5033 | } |
| 5034 | if iNdEx >= l { |
| 5035 | return io.ErrUnexpectedEOF |
| 5036 | } |
| 5037 | b := dAtA[iNdEx] |
| 5038 | iNdEx++ |
| 5039 | msglen |= int(b&0x7F) << shift |
| 5040 | if b < 0x80 { |
| 5041 | break |
| 5042 | } |
| 5043 | } |
| 5044 | if msglen < 0 { |
| 5045 | return ErrInvalidLengthGenerated |
| 5046 | } |
| 5047 | postIndex := iNdEx + msglen |
| 5048 | if postIndex < 0 { |
| 5049 | return ErrInvalidLengthGenerated |
| 5050 | } |
| 5051 | if postIndex > l { |
| 5052 | return io.ErrUnexpectedEOF |
| 5053 | } |
| 5054 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5055 | return err |
| 5056 | } |
| 5057 | iNdEx = postIndex |
| 5058 | case 2: |
| 5059 | if wireType != 2 { |
| 5060 | return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) |
| 5061 | } |
| 5062 | var msglen int |
| 5063 | for shift := uint(0); ; shift += 7 { |
| 5064 | if shift >= 64 { |
| 5065 | return ErrIntOverflowGenerated |
| 5066 | } |
| 5067 | if iNdEx >= l { |
| 5068 | return io.ErrUnexpectedEOF |
| 5069 | } |
| 5070 | b := dAtA[iNdEx] |
| 5071 | iNdEx++ |
| 5072 | msglen |= int(b&0x7F) << shift |
| 5073 | if b < 0x80 { |
| 5074 | break |
| 5075 | } |
| 5076 | } |
| 5077 | if msglen < 0 { |
| 5078 | return ErrInvalidLengthGenerated |
| 5079 | } |
| 5080 | postIndex := iNdEx + msglen |
| 5081 | if postIndex < 0 { |
| 5082 | return ErrInvalidLengthGenerated |
| 5083 | } |
| 5084 | if postIndex > l { |
| 5085 | return io.ErrUnexpectedEOF |
| 5086 | } |
| 5087 | if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5088 | return err |
| 5089 | } |
| 5090 | iNdEx = postIndex |
| 5091 | case 3: |
| 5092 | if wireType != 2 { |
| 5093 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 5094 | } |
| 5095 | var msglen int |
| 5096 | for shift := uint(0); ; shift += 7 { |
| 5097 | if shift >= 64 { |
| 5098 | return ErrIntOverflowGenerated |
| 5099 | } |
| 5100 | if iNdEx >= l { |
| 5101 | return io.ErrUnexpectedEOF |
| 5102 | } |
| 5103 | b := dAtA[iNdEx] |
| 5104 | iNdEx++ |
| 5105 | msglen |= int(b&0x7F) << shift |
| 5106 | if b < 0x80 { |
| 5107 | break |
| 5108 | } |
| 5109 | } |
| 5110 | if msglen < 0 { |
| 5111 | return ErrInvalidLengthGenerated |
| 5112 | } |
| 5113 | postIndex := iNdEx + msglen |
| 5114 | if postIndex < 0 { |
| 5115 | return ErrInvalidLengthGenerated |
| 5116 | } |
| 5117 | if postIndex > l { |
| 5118 | return io.ErrUnexpectedEOF |
| 5119 | } |
| 5120 | if err := m.Status.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5121 | return err |
| 5122 | } |
| 5123 | iNdEx = postIndex |
| 5124 | default: |
| 5125 | iNdEx = preIndex |
| 5126 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 5127 | if err != nil { |
| 5128 | return err |
| 5129 | } |
| 5130 | if skippy < 0 { |
| 5131 | return ErrInvalidLengthGenerated |
| 5132 | } |
| 5133 | if (iNdEx + skippy) < 0 { |
| 5134 | return ErrInvalidLengthGenerated |
| 5135 | } |
| 5136 | if (iNdEx + skippy) > l { |
| 5137 | return io.ErrUnexpectedEOF |
| 5138 | } |
| 5139 | iNdEx += skippy |
| 5140 | } |
| 5141 | } |
| 5142 | |
| 5143 | if iNdEx > l { |
| 5144 | return io.ErrUnexpectedEOF |
| 5145 | } |
| 5146 | return nil |
| 5147 | } |
| 5148 | func (m *StatefulSetCondition) Unmarshal(dAtA []byte) error { |
| 5149 | l := len(dAtA) |
| 5150 | iNdEx := 0 |
| 5151 | for iNdEx < l { |
| 5152 | preIndex := iNdEx |
| 5153 | var wire uint64 |
| 5154 | for shift := uint(0); ; shift += 7 { |
| 5155 | if shift >= 64 { |
| 5156 | return ErrIntOverflowGenerated |
| 5157 | } |
| 5158 | if iNdEx >= l { |
| 5159 | return io.ErrUnexpectedEOF |
| 5160 | } |
| 5161 | b := dAtA[iNdEx] |
| 5162 | iNdEx++ |
| 5163 | wire |= uint64(b&0x7F) << shift |
| 5164 | if b < 0x80 { |
| 5165 | break |
| 5166 | } |
| 5167 | } |
| 5168 | fieldNum := int32(wire >> 3) |
| 5169 | wireType := int(wire & 0x7) |
| 5170 | if wireType == 4 { |
| 5171 | return fmt.Errorf("proto: StatefulSetCondition: wiretype end group for non-group") |
| 5172 | } |
| 5173 | if fieldNum <= 0 { |
| 5174 | return fmt.Errorf("proto: StatefulSetCondition: illegal tag %d (wire type %d)", fieldNum, wire) |
| 5175 | } |
| 5176 | switch fieldNum { |
| 5177 | case 1: |
| 5178 | if wireType != 2 { |
| 5179 | return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) |
| 5180 | } |
| 5181 | var stringLen uint64 |
| 5182 | for shift := uint(0); ; shift += 7 { |
| 5183 | if shift >= 64 { |
| 5184 | return ErrIntOverflowGenerated |
| 5185 | } |
| 5186 | if iNdEx >= l { |
| 5187 | return io.ErrUnexpectedEOF |
| 5188 | } |
| 5189 | b := dAtA[iNdEx] |
| 5190 | iNdEx++ |
| 5191 | stringLen |= uint64(b&0x7F) << shift |
| 5192 | if b < 0x80 { |
| 5193 | break |
| 5194 | } |
| 5195 | } |
| 5196 | intStringLen := int(stringLen) |
| 5197 | if intStringLen < 0 { |
| 5198 | return ErrInvalidLengthGenerated |
| 5199 | } |
| 5200 | postIndex := iNdEx + intStringLen |
| 5201 | if postIndex < 0 { |
| 5202 | return ErrInvalidLengthGenerated |
| 5203 | } |
| 5204 | if postIndex > l { |
| 5205 | return io.ErrUnexpectedEOF |
| 5206 | } |
| 5207 | m.Type = StatefulSetConditionType(dAtA[iNdEx:postIndex]) |
| 5208 | iNdEx = postIndex |
| 5209 | case 2: |
| 5210 | if wireType != 2 { |
| 5211 | return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) |
| 5212 | } |
| 5213 | var stringLen uint64 |
| 5214 | for shift := uint(0); ; shift += 7 { |
| 5215 | if shift >= 64 { |
| 5216 | return ErrIntOverflowGenerated |
| 5217 | } |
| 5218 | if iNdEx >= l { |
| 5219 | return io.ErrUnexpectedEOF |
| 5220 | } |
| 5221 | b := dAtA[iNdEx] |
| 5222 | iNdEx++ |
| 5223 | stringLen |= uint64(b&0x7F) << shift |
| 5224 | if b < 0x80 { |
| 5225 | break |
| 5226 | } |
| 5227 | } |
| 5228 | intStringLen := int(stringLen) |
| 5229 | if intStringLen < 0 { |
| 5230 | return ErrInvalidLengthGenerated |
| 5231 | } |
| 5232 | postIndex := iNdEx + intStringLen |
| 5233 | if postIndex < 0 { |
| 5234 | return ErrInvalidLengthGenerated |
| 5235 | } |
| 5236 | if postIndex > l { |
| 5237 | return io.ErrUnexpectedEOF |
| 5238 | } |
| 5239 | m.Status = k8s_io_api_core_v1.ConditionStatus(dAtA[iNdEx:postIndex]) |
| 5240 | iNdEx = postIndex |
| 5241 | case 3: |
| 5242 | if wireType != 2 { |
| 5243 | return fmt.Errorf("proto: wrong wireType = %d for field LastTransitionTime", wireType) |
| 5244 | } |
| 5245 | var msglen int |
| 5246 | for shift := uint(0); ; shift += 7 { |
| 5247 | if shift >= 64 { |
| 5248 | return ErrIntOverflowGenerated |
| 5249 | } |
| 5250 | if iNdEx >= l { |
| 5251 | return io.ErrUnexpectedEOF |
| 5252 | } |
| 5253 | b := dAtA[iNdEx] |
| 5254 | iNdEx++ |
| 5255 | msglen |= int(b&0x7F) << shift |
| 5256 | if b < 0x80 { |
| 5257 | break |
| 5258 | } |
| 5259 | } |
| 5260 | if msglen < 0 { |
| 5261 | return ErrInvalidLengthGenerated |
| 5262 | } |
| 5263 | postIndex := iNdEx + msglen |
| 5264 | if postIndex < 0 { |
| 5265 | return ErrInvalidLengthGenerated |
| 5266 | } |
| 5267 | if postIndex > l { |
| 5268 | return io.ErrUnexpectedEOF |
| 5269 | } |
| 5270 | if err := m.LastTransitionTime.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5271 | return err |
| 5272 | } |
| 5273 | iNdEx = postIndex |
| 5274 | case 4: |
| 5275 | if wireType != 2 { |
| 5276 | return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) |
| 5277 | } |
| 5278 | var stringLen uint64 |
| 5279 | for shift := uint(0); ; shift += 7 { |
| 5280 | if shift >= 64 { |
| 5281 | return ErrIntOverflowGenerated |
| 5282 | } |
| 5283 | if iNdEx >= l { |
| 5284 | return io.ErrUnexpectedEOF |
| 5285 | } |
| 5286 | b := dAtA[iNdEx] |
| 5287 | iNdEx++ |
| 5288 | stringLen |= uint64(b&0x7F) << shift |
| 5289 | if b < 0x80 { |
| 5290 | break |
| 5291 | } |
| 5292 | } |
| 5293 | intStringLen := int(stringLen) |
| 5294 | if intStringLen < 0 { |
| 5295 | return ErrInvalidLengthGenerated |
| 5296 | } |
| 5297 | postIndex := iNdEx + intStringLen |
| 5298 | if postIndex < 0 { |
| 5299 | return ErrInvalidLengthGenerated |
| 5300 | } |
| 5301 | if postIndex > l { |
| 5302 | return io.ErrUnexpectedEOF |
| 5303 | } |
| 5304 | m.Reason = string(dAtA[iNdEx:postIndex]) |
| 5305 | iNdEx = postIndex |
| 5306 | case 5: |
| 5307 | if wireType != 2 { |
| 5308 | return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) |
| 5309 | } |
| 5310 | var stringLen uint64 |
| 5311 | for shift := uint(0); ; shift += 7 { |
| 5312 | if shift >= 64 { |
| 5313 | return ErrIntOverflowGenerated |
| 5314 | } |
| 5315 | if iNdEx >= l { |
| 5316 | return io.ErrUnexpectedEOF |
| 5317 | } |
| 5318 | b := dAtA[iNdEx] |
| 5319 | iNdEx++ |
| 5320 | stringLen |= uint64(b&0x7F) << shift |
| 5321 | if b < 0x80 { |
| 5322 | break |
| 5323 | } |
| 5324 | } |
| 5325 | intStringLen := int(stringLen) |
| 5326 | if intStringLen < 0 { |
| 5327 | return ErrInvalidLengthGenerated |
| 5328 | } |
| 5329 | postIndex := iNdEx + intStringLen |
| 5330 | if postIndex < 0 { |
| 5331 | return ErrInvalidLengthGenerated |
| 5332 | } |
| 5333 | if postIndex > l { |
| 5334 | return io.ErrUnexpectedEOF |
| 5335 | } |
| 5336 | m.Message = string(dAtA[iNdEx:postIndex]) |
| 5337 | iNdEx = postIndex |
| 5338 | default: |
| 5339 | iNdEx = preIndex |
| 5340 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 5341 | if err != nil { |
| 5342 | return err |
| 5343 | } |
| 5344 | if skippy < 0 { |
| 5345 | return ErrInvalidLengthGenerated |
| 5346 | } |
| 5347 | if (iNdEx + skippy) < 0 { |
| 5348 | return ErrInvalidLengthGenerated |
| 5349 | } |
| 5350 | if (iNdEx + skippy) > l { |
| 5351 | return io.ErrUnexpectedEOF |
| 5352 | } |
| 5353 | iNdEx += skippy |
| 5354 | } |
| 5355 | } |
| 5356 | |
| 5357 | if iNdEx > l { |
| 5358 | return io.ErrUnexpectedEOF |
| 5359 | } |
| 5360 | return nil |
| 5361 | } |
| 5362 | func (m *StatefulSetList) Unmarshal(dAtA []byte) error { |
| 5363 | l := len(dAtA) |
| 5364 | iNdEx := 0 |
| 5365 | for iNdEx < l { |
| 5366 | preIndex := iNdEx |
| 5367 | var wire uint64 |
| 5368 | for shift := uint(0); ; shift += 7 { |
| 5369 | if shift >= 64 { |
| 5370 | return ErrIntOverflowGenerated |
| 5371 | } |
| 5372 | if iNdEx >= l { |
| 5373 | return io.ErrUnexpectedEOF |
| 5374 | } |
| 5375 | b := dAtA[iNdEx] |
| 5376 | iNdEx++ |
| 5377 | wire |= uint64(b&0x7F) << shift |
| 5378 | if b < 0x80 { |
| 5379 | break |
| 5380 | } |
| 5381 | } |
| 5382 | fieldNum := int32(wire >> 3) |
| 5383 | wireType := int(wire & 0x7) |
| 5384 | if wireType == 4 { |
| 5385 | return fmt.Errorf("proto: StatefulSetList: wiretype end group for non-group") |
| 5386 | } |
| 5387 | if fieldNum <= 0 { |
| 5388 | return fmt.Errorf("proto: StatefulSetList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 5389 | } |
| 5390 | switch fieldNum { |
| 5391 | case 1: |
| 5392 | if wireType != 2 { |
| 5393 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 5394 | } |
| 5395 | var msglen int |
| 5396 | for shift := uint(0); ; shift += 7 { |
| 5397 | if shift >= 64 { |
| 5398 | return ErrIntOverflowGenerated |
| 5399 | } |
| 5400 | if iNdEx >= l { |
| 5401 | return io.ErrUnexpectedEOF |
| 5402 | } |
| 5403 | b := dAtA[iNdEx] |
| 5404 | iNdEx++ |
| 5405 | msglen |= int(b&0x7F) << shift |
| 5406 | if b < 0x80 { |
| 5407 | break |
| 5408 | } |
| 5409 | } |
| 5410 | if msglen < 0 { |
| 5411 | return ErrInvalidLengthGenerated |
| 5412 | } |
| 5413 | postIndex := iNdEx + msglen |
| 5414 | if postIndex < 0 { |
| 5415 | return ErrInvalidLengthGenerated |
| 5416 | } |
| 5417 | if postIndex > l { |
| 5418 | return io.ErrUnexpectedEOF |
| 5419 | } |
| 5420 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5421 | return err |
| 5422 | } |
| 5423 | iNdEx = postIndex |
| 5424 | case 2: |
| 5425 | if wireType != 2 { |
| 5426 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 5427 | } |
| 5428 | var msglen int |
| 5429 | for shift := uint(0); ; shift += 7 { |
| 5430 | if shift >= 64 { |
| 5431 | return ErrIntOverflowGenerated |
| 5432 | } |
| 5433 | if iNdEx >= l { |
| 5434 | return io.ErrUnexpectedEOF |
| 5435 | } |
| 5436 | b := dAtA[iNdEx] |
| 5437 | iNdEx++ |
| 5438 | msglen |= int(b&0x7F) << shift |
| 5439 | if b < 0x80 { |
| 5440 | break |
| 5441 | } |
| 5442 | } |
| 5443 | if msglen < 0 { |
| 5444 | return ErrInvalidLengthGenerated |
| 5445 | } |
| 5446 | postIndex := iNdEx + msglen |
| 5447 | if postIndex < 0 { |
| 5448 | return ErrInvalidLengthGenerated |
| 5449 | } |
| 5450 | if postIndex > l { |
| 5451 | return io.ErrUnexpectedEOF |
| 5452 | } |
| 5453 | m.Items = append(m.Items, StatefulSet{}) |
| 5454 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5455 | return err |
| 5456 | } |
| 5457 | iNdEx = postIndex |
| 5458 | default: |
| 5459 | iNdEx = preIndex |
| 5460 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 5461 | if err != nil { |
| 5462 | return err |
| 5463 | } |
| 5464 | if skippy < 0 { |
| 5465 | return ErrInvalidLengthGenerated |
| 5466 | } |
| 5467 | if (iNdEx + skippy) < 0 { |
| 5468 | return ErrInvalidLengthGenerated |
| 5469 | } |
| 5470 | if (iNdEx + skippy) > l { |
| 5471 | return io.ErrUnexpectedEOF |
| 5472 | } |
| 5473 | iNdEx += skippy |
| 5474 | } |
| 5475 | } |
| 5476 | |
| 5477 | if iNdEx > l { |
| 5478 | return io.ErrUnexpectedEOF |
| 5479 | } |
| 5480 | return nil |
| 5481 | } |
| 5482 | func (m *StatefulSetSpec) Unmarshal(dAtA []byte) error { |
| 5483 | l := len(dAtA) |
| 5484 | iNdEx := 0 |
| 5485 | for iNdEx < l { |
| 5486 | preIndex := iNdEx |
| 5487 | var wire uint64 |
| 5488 | for shift := uint(0); ; shift += 7 { |
| 5489 | if shift >= 64 { |
| 5490 | return ErrIntOverflowGenerated |
| 5491 | } |
| 5492 | if iNdEx >= l { |
| 5493 | return io.ErrUnexpectedEOF |
| 5494 | } |
| 5495 | b := dAtA[iNdEx] |
| 5496 | iNdEx++ |
| 5497 | wire |= uint64(b&0x7F) << shift |
| 5498 | if b < 0x80 { |
| 5499 | break |
| 5500 | } |
| 5501 | } |
| 5502 | fieldNum := int32(wire >> 3) |
| 5503 | wireType := int(wire & 0x7) |
| 5504 | if wireType == 4 { |
| 5505 | return fmt.Errorf("proto: StatefulSetSpec: wiretype end group for non-group") |
| 5506 | } |
| 5507 | if fieldNum <= 0 { |
| 5508 | return fmt.Errorf("proto: StatefulSetSpec: illegal tag %d (wire type %d)", fieldNum, wire) |
| 5509 | } |
| 5510 | switch fieldNum { |
| 5511 | case 1: |
| 5512 | if wireType != 0 { |
| 5513 | return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) |
| 5514 | } |
| 5515 | var v int32 |
| 5516 | for shift := uint(0); ; shift += 7 { |
| 5517 | if shift >= 64 { |
| 5518 | return ErrIntOverflowGenerated |
| 5519 | } |
| 5520 | if iNdEx >= l { |
| 5521 | return io.ErrUnexpectedEOF |
| 5522 | } |
| 5523 | b := dAtA[iNdEx] |
| 5524 | iNdEx++ |
| 5525 | v |= int32(b&0x7F) << shift |
| 5526 | if b < 0x80 { |
| 5527 | break |
| 5528 | } |
| 5529 | } |
| 5530 | m.Replicas = &v |
| 5531 | case 2: |
| 5532 | if wireType != 2 { |
| 5533 | return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType) |
| 5534 | } |
| 5535 | var msglen int |
| 5536 | for shift := uint(0); ; shift += 7 { |
| 5537 | if shift >= 64 { |
| 5538 | return ErrIntOverflowGenerated |
| 5539 | } |
| 5540 | if iNdEx >= l { |
| 5541 | return io.ErrUnexpectedEOF |
| 5542 | } |
| 5543 | b := dAtA[iNdEx] |
| 5544 | iNdEx++ |
| 5545 | msglen |= int(b&0x7F) << shift |
| 5546 | if b < 0x80 { |
| 5547 | break |
| 5548 | } |
| 5549 | } |
| 5550 | if msglen < 0 { |
| 5551 | return ErrInvalidLengthGenerated |
| 5552 | } |
| 5553 | postIndex := iNdEx + msglen |
| 5554 | if postIndex < 0 { |
| 5555 | return ErrInvalidLengthGenerated |
| 5556 | } |
| 5557 | if postIndex > l { |
| 5558 | return io.ErrUnexpectedEOF |
| 5559 | } |
| 5560 | if m.Selector == nil { |
| 5561 | m.Selector = &v1.LabelSelector{} |
| 5562 | } |
| 5563 | if err := m.Selector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5564 | return err |
| 5565 | } |
| 5566 | iNdEx = postIndex |
| 5567 | case 3: |
| 5568 | if wireType != 2 { |
| 5569 | return fmt.Errorf("proto: wrong wireType = %d for field Template", wireType) |
| 5570 | } |
| 5571 | var msglen int |
| 5572 | for shift := uint(0); ; shift += 7 { |
| 5573 | if shift >= 64 { |
| 5574 | return ErrIntOverflowGenerated |
| 5575 | } |
| 5576 | if iNdEx >= l { |
| 5577 | return io.ErrUnexpectedEOF |
| 5578 | } |
| 5579 | b := dAtA[iNdEx] |
| 5580 | iNdEx++ |
| 5581 | msglen |= int(b&0x7F) << shift |
| 5582 | if b < 0x80 { |
| 5583 | break |
| 5584 | } |
| 5585 | } |
| 5586 | if msglen < 0 { |
| 5587 | return ErrInvalidLengthGenerated |
| 5588 | } |
| 5589 | postIndex := iNdEx + msglen |
| 5590 | if postIndex < 0 { |
| 5591 | return ErrInvalidLengthGenerated |
| 5592 | } |
| 5593 | if postIndex > l { |
| 5594 | return io.ErrUnexpectedEOF |
| 5595 | } |
| 5596 | if err := m.Template.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5597 | return err |
| 5598 | } |
| 5599 | iNdEx = postIndex |
| 5600 | case 4: |
| 5601 | if wireType != 2 { |
| 5602 | return fmt.Errorf("proto: wrong wireType = %d for field VolumeClaimTemplates", wireType) |
| 5603 | } |
| 5604 | var msglen int |
| 5605 | for shift := uint(0); ; shift += 7 { |
| 5606 | if shift >= 64 { |
| 5607 | return ErrIntOverflowGenerated |
| 5608 | } |
| 5609 | if iNdEx >= l { |
| 5610 | return io.ErrUnexpectedEOF |
| 5611 | } |
| 5612 | b := dAtA[iNdEx] |
| 5613 | iNdEx++ |
| 5614 | msglen |= int(b&0x7F) << shift |
| 5615 | if b < 0x80 { |
| 5616 | break |
| 5617 | } |
| 5618 | } |
| 5619 | if msglen < 0 { |
| 5620 | return ErrInvalidLengthGenerated |
| 5621 | } |
| 5622 | postIndex := iNdEx + msglen |
| 5623 | if postIndex < 0 { |
| 5624 | return ErrInvalidLengthGenerated |
| 5625 | } |
| 5626 | if postIndex > l { |
| 5627 | return io.ErrUnexpectedEOF |
| 5628 | } |
| 5629 | m.VolumeClaimTemplates = append(m.VolumeClaimTemplates, v11.PersistentVolumeClaim{}) |
| 5630 | if err := m.VolumeClaimTemplates[len(m.VolumeClaimTemplates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5631 | return err |
| 5632 | } |
| 5633 | iNdEx = postIndex |
| 5634 | case 5: |
| 5635 | if wireType != 2 { |
| 5636 | return fmt.Errorf("proto: wrong wireType = %d for field ServiceName", wireType) |
| 5637 | } |
| 5638 | var stringLen uint64 |
| 5639 | for shift := uint(0); ; shift += 7 { |
| 5640 | if shift >= 64 { |
| 5641 | return ErrIntOverflowGenerated |
| 5642 | } |
| 5643 | if iNdEx >= l { |
| 5644 | return io.ErrUnexpectedEOF |
| 5645 | } |
| 5646 | b := dAtA[iNdEx] |
| 5647 | iNdEx++ |
| 5648 | stringLen |= uint64(b&0x7F) << shift |
| 5649 | if b < 0x80 { |
| 5650 | break |
| 5651 | } |
| 5652 | } |
| 5653 | intStringLen := int(stringLen) |
| 5654 | if intStringLen < 0 { |
| 5655 | return ErrInvalidLengthGenerated |
| 5656 | } |
| 5657 | postIndex := iNdEx + intStringLen |
| 5658 | if postIndex < 0 { |
| 5659 | return ErrInvalidLengthGenerated |
| 5660 | } |
| 5661 | if postIndex > l { |
| 5662 | return io.ErrUnexpectedEOF |
| 5663 | } |
| 5664 | m.ServiceName = string(dAtA[iNdEx:postIndex]) |
| 5665 | iNdEx = postIndex |
| 5666 | case 6: |
| 5667 | if wireType != 2 { |
| 5668 | return fmt.Errorf("proto: wrong wireType = %d for field PodManagementPolicy", wireType) |
| 5669 | } |
| 5670 | var stringLen uint64 |
| 5671 | for shift := uint(0); ; shift += 7 { |
| 5672 | if shift >= 64 { |
| 5673 | return ErrIntOverflowGenerated |
| 5674 | } |
| 5675 | if iNdEx >= l { |
| 5676 | return io.ErrUnexpectedEOF |
| 5677 | } |
| 5678 | b := dAtA[iNdEx] |
| 5679 | iNdEx++ |
| 5680 | stringLen |= uint64(b&0x7F) << shift |
| 5681 | if b < 0x80 { |
| 5682 | break |
| 5683 | } |
| 5684 | } |
| 5685 | intStringLen := int(stringLen) |
| 5686 | if intStringLen < 0 { |
| 5687 | return ErrInvalidLengthGenerated |
| 5688 | } |
| 5689 | postIndex := iNdEx + intStringLen |
| 5690 | if postIndex < 0 { |
| 5691 | return ErrInvalidLengthGenerated |
| 5692 | } |
| 5693 | if postIndex > l { |
| 5694 | return io.ErrUnexpectedEOF |
| 5695 | } |
| 5696 | m.PodManagementPolicy = PodManagementPolicyType(dAtA[iNdEx:postIndex]) |
| 5697 | iNdEx = postIndex |
| 5698 | case 7: |
| 5699 | if wireType != 2 { |
| 5700 | return fmt.Errorf("proto: wrong wireType = %d for field UpdateStrategy", wireType) |
| 5701 | } |
| 5702 | var msglen int |
| 5703 | for shift := uint(0); ; shift += 7 { |
| 5704 | if shift >= 64 { |
| 5705 | return ErrIntOverflowGenerated |
| 5706 | } |
| 5707 | if iNdEx >= l { |
| 5708 | return io.ErrUnexpectedEOF |
| 5709 | } |
| 5710 | b := dAtA[iNdEx] |
| 5711 | iNdEx++ |
| 5712 | msglen |= int(b&0x7F) << shift |
| 5713 | if b < 0x80 { |
| 5714 | break |
| 5715 | } |
| 5716 | } |
| 5717 | if msglen < 0 { |
| 5718 | return ErrInvalidLengthGenerated |
| 5719 | } |
| 5720 | postIndex := iNdEx + msglen |
| 5721 | if postIndex < 0 { |
| 5722 | return ErrInvalidLengthGenerated |
| 5723 | } |
| 5724 | if postIndex > l { |
| 5725 | return io.ErrUnexpectedEOF |
| 5726 | } |
| 5727 | if err := m.UpdateStrategy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 5728 | return err |
| 5729 | } |
| 5730 | iNdEx = postIndex |
| 5731 | case 8: |
| 5732 | if wireType != 0 { |
| 5733 | return fmt.Errorf("proto: wrong wireType = %d for field RevisionHistoryLimit", wireType) |
| 5734 | } |
| 5735 | var v int32 |
| 5736 | for shift := uint(0); ; shift += 7 { |
| 5737 | if shift >= 64 { |
| 5738 | return ErrIntOverflowGenerated |
| 5739 | } |
| 5740 | if iNdEx >= l { |
| 5741 | return io.ErrUnexpectedEOF |
| 5742 | } |
| 5743 | b := dAtA[iNdEx] |
| 5744 | iNdEx++ |
| 5745 | v |= int32(b&0x7F) << shift |
| 5746 | if b < 0x80 { |
| 5747 | break |
| 5748 | } |
| 5749 | } |
| 5750 | m.RevisionHistoryLimit = &v |
| 5751 | default: |
| 5752 | iNdEx = preIndex |
| 5753 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 5754 | if err != nil { |
| 5755 | return err |
| 5756 | } |
| 5757 | if skippy < 0 { |
| 5758 | return ErrInvalidLengthGenerated |
| 5759 | } |
| 5760 | if (iNdEx + skippy) < 0 { |
| 5761 | return ErrInvalidLengthGenerated |
| 5762 | } |
| 5763 | if (iNdEx + skippy) > l { |
| 5764 | return io.ErrUnexpectedEOF |
| 5765 | } |
| 5766 | iNdEx += skippy |
| 5767 | } |
| 5768 | } |
| 5769 | |
| 5770 | if iNdEx > l { |
| 5771 | return io.ErrUnexpectedEOF |
| 5772 | } |
| 5773 | return nil |
| 5774 | } |
| 5775 | func (m *StatefulSetStatus) Unmarshal(dAtA []byte) error { |
| 5776 | l := len(dAtA) |
| 5777 | iNdEx := 0 |
| 5778 | for iNdEx < l { |
| 5779 | preIndex := iNdEx |
| 5780 | var wire uint64 |
| 5781 | for shift := uint(0); ; shift += 7 { |
| 5782 | if shift >= 64 { |
| 5783 | return ErrIntOverflowGenerated |
| 5784 | } |
| 5785 | if iNdEx >= l { |
| 5786 | return io.ErrUnexpectedEOF |
| 5787 | } |
| 5788 | b := dAtA[iNdEx] |
| 5789 | iNdEx++ |
| 5790 | wire |= uint64(b&0x7F) << shift |
| 5791 | if b < 0x80 { |
| 5792 | break |
| 5793 | } |
| 5794 | } |
| 5795 | fieldNum := int32(wire >> 3) |
| 5796 | wireType := int(wire & 0x7) |
| 5797 | if wireType == 4 { |
| 5798 | return fmt.Errorf("proto: StatefulSetStatus: wiretype end group for non-group") |
| 5799 | } |
| 5800 | if fieldNum <= 0 { |
| 5801 | return fmt.Errorf("proto: StatefulSetStatus: illegal tag %d (wire type %d)", fieldNum, wire) |
| 5802 | } |
| 5803 | switch fieldNum { |
| 5804 | case 1: |
| 5805 | if wireType != 0 { |
| 5806 | return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType) |
| 5807 | } |
| 5808 | var v int64 |
| 5809 | for shift := uint(0); ; shift += 7 { |
| 5810 | if shift >= 64 { |
| 5811 | return ErrIntOverflowGenerated |
| 5812 | } |
| 5813 | if iNdEx >= l { |
| 5814 | return io.ErrUnexpectedEOF |
| 5815 | } |
| 5816 | b := dAtA[iNdEx] |
| 5817 | iNdEx++ |
| 5818 | v |= int64(b&0x7F) << shift |
| 5819 | if b < 0x80 { |
| 5820 | break |
| 5821 | } |
| 5822 | } |
| 5823 | m.ObservedGeneration = &v |
| 5824 | case 2: |
| 5825 | if wireType != 0 { |
| 5826 | return fmt.Errorf("proto: wrong wireType = %d for field Replicas", wireType) |
| 5827 | } |
| 5828 | m.Replicas = 0 |
| 5829 | for shift := uint(0); ; shift += 7 { |
| 5830 | if shift >= 64 { |
| 5831 | return ErrIntOverflowGenerated |
| 5832 | } |
| 5833 | if iNdEx >= l { |
| 5834 | return io.ErrUnexpectedEOF |
| 5835 | } |
| 5836 | b := dAtA[iNdEx] |
| 5837 | iNdEx++ |
| 5838 | m.Replicas |= int32(b&0x7F) << shift |
| 5839 | if b < 0x80 { |
| 5840 | break |
| 5841 | } |
| 5842 | } |
| 5843 | case 3: |
| 5844 | if wireType != 0 { |
| 5845 | return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) |
| 5846 | } |
| 5847 | m.ReadyReplicas = 0 |
| 5848 | for shift := uint(0); ; shift += 7 { |
| 5849 | if shift >= 64 { |
| 5850 | return ErrIntOverflowGenerated |
| 5851 | } |
| 5852 | if iNdEx >= l { |
| 5853 | return io.ErrUnexpectedEOF |
| 5854 | } |
| 5855 | b := dAtA[iNdEx] |
| 5856 | iNdEx++ |
| 5857 | m.ReadyReplicas |= int32(b&0x7F) << shift |
| 5858 | if b < 0x80 { |
| 5859 | break |
| 5860 | } |
| 5861 | } |
| 5862 | case 4: |
| 5863 | if wireType != 0 { |
| 5864 | return fmt.Errorf("proto: wrong wireType = %d for field CurrentReplicas", wireType) |
| 5865 | } |
| 5866 | m.CurrentReplicas = 0 |
| 5867 | for shift := uint(0); ; shift += 7 { |
| 5868 | if shift >= 64 { |
| 5869 | return ErrIntOverflowGenerated |
| 5870 | } |
| 5871 | if iNdEx >= l { |
| 5872 | return io.ErrUnexpectedEOF |
| 5873 | } |
| 5874 | b := dAtA[iNdEx] |
| 5875 | iNdEx++ |
| 5876 | m.CurrentReplicas |= int32(b&0x7F) << shift |
| 5877 | if b < 0x80 { |
| 5878 | break |
| 5879 | } |
| 5880 | } |
| 5881 | case 5: |
| 5882 | if wireType != 0 { |
| 5883 | return fmt.Errorf("proto: wrong wireType = %d for field UpdatedReplicas", wireType) |
| 5884 | } |
| 5885 | m.UpdatedReplicas = 0 |
| 5886 | for shift := uint(0); ; shift += 7 { |
| 5887 | if shift >= 64 { |
| 5888 | return ErrIntOverflowGenerated |
| 5889 | } |
| 5890 | if iNdEx >= l { |
| 5891 | return io.ErrUnexpectedEOF |
| 5892 | } |
| 5893 | b := dAtA[iNdEx] |
| 5894 | iNdEx++ |
| 5895 | m.UpdatedReplicas |= int32(b&0x7F) << shift |
| 5896 | if b < 0x80 { |
| 5897 | break |
| 5898 | } |
| 5899 | } |
| 5900 | case 6: |
| 5901 | if wireType != 2 { |
| 5902 | return fmt.Errorf("proto: wrong wireType = %d for field CurrentRevision", wireType) |
| 5903 | } |
| 5904 | var stringLen uint64 |
| 5905 | for shift := uint(0); ; shift += 7 { |
| 5906 | if shift >= 64 { |
| 5907 | return ErrIntOverflowGenerated |
| 5908 | } |
| 5909 | if iNdEx >= l { |
| 5910 | return io.ErrUnexpectedEOF |
| 5911 | } |
| 5912 | b := dAtA[iNdEx] |
| 5913 | iNdEx++ |
| 5914 | stringLen |= uint64(b&0x7F) << shift |
| 5915 | if b < 0x80 { |
| 5916 | break |
| 5917 | } |
| 5918 | } |
| 5919 | intStringLen := int(stringLen) |
| 5920 | if intStringLen < 0 { |
| 5921 | return ErrInvalidLengthGenerated |
| 5922 | } |
| 5923 | postIndex := iNdEx + intStringLen |
| 5924 | if postIndex < 0 { |
| 5925 | return ErrInvalidLengthGenerated |
| 5926 | } |
| 5927 | if postIndex > l { |
| 5928 | return io.ErrUnexpectedEOF |
| 5929 | } |
| 5930 | m.CurrentRevision = string(dAtA[iNdEx:postIndex]) |
| 5931 | iNdEx = postIndex |
| 5932 | case 7: |
| 5933 | if wireType != 2 { |
| 5934 | return fmt.Errorf("proto: wrong wireType = %d for field UpdateRevision", wireType) |
| 5935 | } |
| 5936 | var stringLen uint64 |
| 5937 | for shift := uint(0); ; shift += 7 { |
| 5938 | if shift >= 64 { |
| 5939 | return ErrIntOverflowGenerated |
| 5940 | } |
| 5941 | if iNdEx >= l { |
| 5942 | return io.ErrUnexpectedEOF |
| 5943 | } |
| 5944 | b := dAtA[iNdEx] |
| 5945 | iNdEx++ |
| 5946 | stringLen |= uint64(b&0x7F) << shift |
| 5947 | if b < 0x80 { |
| 5948 | break |
| 5949 | } |
| 5950 | } |
| 5951 | intStringLen := int(stringLen) |
| 5952 | if intStringLen < 0 { |
| 5953 | return ErrInvalidLengthGenerated |
| 5954 | } |
| 5955 | postIndex := iNdEx + intStringLen |
| 5956 | if postIndex < 0 { |
| 5957 | return ErrInvalidLengthGenerated |
| 5958 | } |
| 5959 | if postIndex > l { |
| 5960 | return io.ErrUnexpectedEOF |
| 5961 | } |
| 5962 | m.UpdateRevision = string(dAtA[iNdEx:postIndex]) |
| 5963 | iNdEx = postIndex |
| 5964 | case 9: |
| 5965 | if wireType != 0 { |
| 5966 | return fmt.Errorf("proto: wrong wireType = %d for field CollisionCount", wireType) |
| 5967 | } |
| 5968 | var v int32 |
| 5969 | for shift := uint(0); ; shift += 7 { |
| 5970 | if shift >= 64 { |
| 5971 | return ErrIntOverflowGenerated |
| 5972 | } |
| 5973 | if iNdEx >= l { |
| 5974 | return io.ErrUnexpectedEOF |
| 5975 | } |
| 5976 | b := dAtA[iNdEx] |
| 5977 | iNdEx++ |
| 5978 | v |= int32(b&0x7F) << shift |
| 5979 | if b < 0x80 { |
| 5980 | break |
| 5981 | } |
| 5982 | } |
| 5983 | m.CollisionCount = &v |
| 5984 | case 10: |
| 5985 | if wireType != 2 { |
| 5986 | return fmt.Errorf("proto: wrong wireType = %d for field Conditions", wireType) |
| 5987 | } |
| 5988 | var msglen int |
| 5989 | for shift := uint(0); ; shift += 7 { |
| 5990 | if shift >= 64 { |
| 5991 | return ErrIntOverflowGenerated |
| 5992 | } |
| 5993 | if iNdEx >= l { |
| 5994 | return io.ErrUnexpectedEOF |
| 5995 | } |
| 5996 | b := dAtA[iNdEx] |
| 5997 | iNdEx++ |
| 5998 | msglen |= int(b&0x7F) << shift |
| 5999 | if b < 0x80 { |
| 6000 | break |
| 6001 | } |
| 6002 | } |
| 6003 | if msglen < 0 { |
| 6004 | return ErrInvalidLengthGenerated |
| 6005 | } |
| 6006 | postIndex := iNdEx + msglen |
| 6007 | if postIndex < 0 { |
| 6008 | return ErrInvalidLengthGenerated |
| 6009 | } |
| 6010 | if postIndex > l { |
| 6011 | return io.ErrUnexpectedEOF |
| 6012 | } |
| 6013 | m.Conditions = append(m.Conditions, StatefulSetCondition{}) |
| 6014 | if err := m.Conditions[len(m.Conditions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 6015 | return err |
| 6016 | } |
| 6017 | iNdEx = postIndex |
| 6018 | default: |
| 6019 | iNdEx = preIndex |
| 6020 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 6021 | if err != nil { |
| 6022 | return err |
| 6023 | } |
| 6024 | if skippy < 0 { |
| 6025 | return ErrInvalidLengthGenerated |
| 6026 | } |
| 6027 | if (iNdEx + skippy) < 0 { |
| 6028 | return ErrInvalidLengthGenerated |
| 6029 | } |
| 6030 | if (iNdEx + skippy) > l { |
| 6031 | return io.ErrUnexpectedEOF |
| 6032 | } |
| 6033 | iNdEx += skippy |
| 6034 | } |
| 6035 | } |
| 6036 | |
| 6037 | if iNdEx > l { |
| 6038 | return io.ErrUnexpectedEOF |
| 6039 | } |
| 6040 | return nil |
| 6041 | } |
| 6042 | func (m *StatefulSetUpdateStrategy) Unmarshal(dAtA []byte) error { |
| 6043 | l := len(dAtA) |
| 6044 | iNdEx := 0 |
| 6045 | for iNdEx < l { |
| 6046 | preIndex := iNdEx |
| 6047 | var wire uint64 |
| 6048 | for shift := uint(0); ; shift += 7 { |
| 6049 | if shift >= 64 { |
| 6050 | return ErrIntOverflowGenerated |
| 6051 | } |
| 6052 | if iNdEx >= l { |
| 6053 | return io.ErrUnexpectedEOF |
| 6054 | } |
| 6055 | b := dAtA[iNdEx] |
| 6056 | iNdEx++ |
| 6057 | wire |= uint64(b&0x7F) << shift |
| 6058 | if b < 0x80 { |
| 6059 | break |
| 6060 | } |
| 6061 | } |
| 6062 | fieldNum := int32(wire >> 3) |
| 6063 | wireType := int(wire & 0x7) |
| 6064 | if wireType == 4 { |
| 6065 | return fmt.Errorf("proto: StatefulSetUpdateStrategy: wiretype end group for non-group") |
| 6066 | } |
| 6067 | if fieldNum <= 0 { |
| 6068 | return fmt.Errorf("proto: StatefulSetUpdateStrategy: illegal tag %d (wire type %d)", fieldNum, wire) |
| 6069 | } |
| 6070 | switch fieldNum { |
| 6071 | case 1: |
| 6072 | if wireType != 2 { |
| 6073 | return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType) |
| 6074 | } |
| 6075 | var stringLen uint64 |
| 6076 | for shift := uint(0); ; shift += 7 { |
| 6077 | if shift >= 64 { |
| 6078 | return ErrIntOverflowGenerated |
| 6079 | } |
| 6080 | if iNdEx >= l { |
| 6081 | return io.ErrUnexpectedEOF |
| 6082 | } |
| 6083 | b := dAtA[iNdEx] |
| 6084 | iNdEx++ |
| 6085 | stringLen |= uint64(b&0x7F) << shift |
| 6086 | if b < 0x80 { |
| 6087 | break |
| 6088 | } |
| 6089 | } |
| 6090 | intStringLen := int(stringLen) |
| 6091 | if intStringLen < 0 { |
| 6092 | return ErrInvalidLengthGenerated |
| 6093 | } |
| 6094 | postIndex := iNdEx + intStringLen |
| 6095 | if postIndex < 0 { |
| 6096 | return ErrInvalidLengthGenerated |
| 6097 | } |
| 6098 | if postIndex > l { |
| 6099 | return io.ErrUnexpectedEOF |
| 6100 | } |
| 6101 | m.Type = StatefulSetUpdateStrategyType(dAtA[iNdEx:postIndex]) |
| 6102 | iNdEx = postIndex |
| 6103 | case 2: |
| 6104 | if wireType != 2 { |
| 6105 | return fmt.Errorf("proto: wrong wireType = %d for field RollingUpdate", wireType) |
| 6106 | } |
| 6107 | var msglen int |
| 6108 | for shift := uint(0); ; shift += 7 { |
| 6109 | if shift >= 64 { |
| 6110 | return ErrIntOverflowGenerated |
| 6111 | } |
| 6112 | if iNdEx >= l { |
| 6113 | return io.ErrUnexpectedEOF |
| 6114 | } |
| 6115 | b := dAtA[iNdEx] |
| 6116 | iNdEx++ |
| 6117 | msglen |= int(b&0x7F) << shift |
| 6118 | if b < 0x80 { |
| 6119 | break |
| 6120 | } |
| 6121 | } |
| 6122 | if msglen < 0 { |
| 6123 | return ErrInvalidLengthGenerated |
| 6124 | } |
| 6125 | postIndex := iNdEx + msglen |
| 6126 | if postIndex < 0 { |
| 6127 | return ErrInvalidLengthGenerated |
| 6128 | } |
| 6129 | if postIndex > l { |
| 6130 | return io.ErrUnexpectedEOF |
| 6131 | } |
| 6132 | if m.RollingUpdate == nil { |
| 6133 | m.RollingUpdate = &RollingUpdateStatefulSetStrategy{} |
| 6134 | } |
| 6135 | if err := m.RollingUpdate.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 6136 | return err |
| 6137 | } |
| 6138 | iNdEx = postIndex |
| 6139 | default: |
| 6140 | iNdEx = preIndex |
| 6141 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 6142 | if err != nil { |
| 6143 | return err |
| 6144 | } |
| 6145 | if skippy < 0 { |
| 6146 | return ErrInvalidLengthGenerated |
| 6147 | } |
| 6148 | if (iNdEx + skippy) < 0 { |
| 6149 | return ErrInvalidLengthGenerated |
| 6150 | } |
| 6151 | if (iNdEx + skippy) > l { |
| 6152 | return io.ErrUnexpectedEOF |
| 6153 | } |
| 6154 | iNdEx += skippy |
| 6155 | } |
| 6156 | } |
| 6157 | |
| 6158 | if iNdEx > l { |
| 6159 | return io.ErrUnexpectedEOF |
| 6160 | } |
| 6161 | return nil |
| 6162 | } |
| 6163 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 6164 | l := len(dAtA) |
| 6165 | iNdEx := 0 |
| 6166 | depth := 0 |
| 6167 | for iNdEx < l { |
| 6168 | var wire uint64 |
| 6169 | for shift := uint(0); ; shift += 7 { |
| 6170 | if shift >= 64 { |
| 6171 | return 0, ErrIntOverflowGenerated |
| 6172 | } |
| 6173 | if iNdEx >= l { |
| 6174 | return 0, io.ErrUnexpectedEOF |
| 6175 | } |
| 6176 | b := dAtA[iNdEx] |
| 6177 | iNdEx++ |
| 6178 | wire |= (uint64(b) & 0x7F) << shift |
| 6179 | if b < 0x80 { |
| 6180 | break |
| 6181 | } |
| 6182 | } |
| 6183 | wireType := int(wire & 0x7) |
| 6184 | switch wireType { |
| 6185 | case 0: |
| 6186 | for shift := uint(0); ; shift += 7 { |
| 6187 | if shift >= 64 { |
| 6188 | return 0, ErrIntOverflowGenerated |
| 6189 | } |
| 6190 | if iNdEx >= l { |
| 6191 | return 0, io.ErrUnexpectedEOF |
| 6192 | } |
| 6193 | iNdEx++ |
| 6194 | if dAtA[iNdEx-1] < 0x80 { |
| 6195 | break |
| 6196 | } |
| 6197 | } |
| 6198 | case 1: |
| 6199 | iNdEx += 8 |
| 6200 | case 2: |
| 6201 | var length int |
| 6202 | for shift := uint(0); ; shift += 7 { |
| 6203 | if shift >= 64 { |
| 6204 | return 0, ErrIntOverflowGenerated |
| 6205 | } |
| 6206 | if iNdEx >= l { |
| 6207 | return 0, io.ErrUnexpectedEOF |
| 6208 | } |
| 6209 | b := dAtA[iNdEx] |
| 6210 | iNdEx++ |
| 6211 | length |= (int(b) & 0x7F) << shift |
| 6212 | if b < 0x80 { |
| 6213 | break |
| 6214 | } |
| 6215 | } |
| 6216 | if length < 0 { |
| 6217 | return 0, ErrInvalidLengthGenerated |
| 6218 | } |
| 6219 | iNdEx += length |
| 6220 | case 3: |
| 6221 | depth++ |
| 6222 | case 4: |
| 6223 | if depth == 0 { |
| 6224 | return 0, ErrUnexpectedEndOfGroupGenerated |
| 6225 | } |
| 6226 | depth-- |
| 6227 | case 5: |
| 6228 | iNdEx += 4 |
| 6229 | default: |
| 6230 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 6231 | } |
| 6232 | if iNdEx < 0 { |
| 6233 | return 0, ErrInvalidLengthGenerated |
| 6234 | } |
| 6235 | if depth == 0 { |
| 6236 | return iNdEx, nil |
| 6237 | } |
| 6238 | } |
| 6239 | return 0, io.ErrUnexpectedEOF |
| 6240 | } |
| 6241 | |
| 6242 | var ( |
| 6243 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 6244 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 6245 | ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") |
| 6246 | ) |