Zack Williams | e940c7a | 2019-08-21 14:25:39 -0700 | [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/admissionregistration/v1beta1/generated.proto |
| 19 | |
| 20 | /* |
| 21 | Package v1beta1 is a generated protocol buffer package. |
| 22 | |
| 23 | It is generated from these files: |
| 24 | k8s.io/kubernetes/vendor/k8s.io/api/admissionregistration/v1beta1/generated.proto |
| 25 | |
| 26 | It has these top-level messages: |
| 27 | MutatingWebhook |
| 28 | MutatingWebhookConfiguration |
| 29 | MutatingWebhookConfigurationList |
| 30 | Rule |
| 31 | RuleWithOperations |
| 32 | ServiceReference |
| 33 | ValidatingWebhook |
| 34 | ValidatingWebhookConfiguration |
| 35 | ValidatingWebhookConfigurationList |
| 36 | WebhookClientConfig |
| 37 | */ |
| 38 | package v1beta1 |
| 39 | |
| 40 | import proto "github.com/gogo/protobuf/proto" |
| 41 | import fmt "fmt" |
| 42 | import math "math" |
| 43 | |
| 44 | import k8s_io_apimachinery_pkg_apis_meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1" |
| 45 | |
| 46 | import strings "strings" |
| 47 | import reflect "reflect" |
| 48 | |
| 49 | import io "io" |
| 50 | |
| 51 | // Reference imports to suppress errors if they are not otherwise used. |
| 52 | var _ = proto.Marshal |
| 53 | var _ = fmt.Errorf |
| 54 | var _ = math.Inf |
| 55 | |
| 56 | // This is a compile-time assertion to ensure that this generated file |
| 57 | // is compatible with the proto package it is being compiled against. |
| 58 | // A compilation error at this line likely means your copy of the |
| 59 | // proto package needs to be updated. |
| 60 | const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package |
| 61 | |
| 62 | func (m *MutatingWebhook) Reset() { *m = MutatingWebhook{} } |
| 63 | func (*MutatingWebhook) ProtoMessage() {} |
| 64 | func (*MutatingWebhook) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } |
| 65 | |
| 66 | func (m *MutatingWebhookConfiguration) Reset() { *m = MutatingWebhookConfiguration{} } |
| 67 | func (*MutatingWebhookConfiguration) ProtoMessage() {} |
| 68 | func (*MutatingWebhookConfiguration) Descriptor() ([]byte, []int) { |
| 69 | return fileDescriptorGenerated, []int{1} |
| 70 | } |
| 71 | |
| 72 | func (m *MutatingWebhookConfigurationList) Reset() { *m = MutatingWebhookConfigurationList{} } |
| 73 | func (*MutatingWebhookConfigurationList) ProtoMessage() {} |
| 74 | func (*MutatingWebhookConfigurationList) Descriptor() ([]byte, []int) { |
| 75 | return fileDescriptorGenerated, []int{2} |
| 76 | } |
| 77 | |
| 78 | func (m *Rule) Reset() { *m = Rule{} } |
| 79 | func (*Rule) ProtoMessage() {} |
| 80 | func (*Rule) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } |
| 81 | |
| 82 | func (m *RuleWithOperations) Reset() { *m = RuleWithOperations{} } |
| 83 | func (*RuleWithOperations) ProtoMessage() {} |
| 84 | func (*RuleWithOperations) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } |
| 85 | |
| 86 | func (m *ServiceReference) Reset() { *m = ServiceReference{} } |
| 87 | func (*ServiceReference) ProtoMessage() {} |
| 88 | func (*ServiceReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } |
| 89 | |
| 90 | func (m *ValidatingWebhook) Reset() { *m = ValidatingWebhook{} } |
| 91 | func (*ValidatingWebhook) ProtoMessage() {} |
| 92 | func (*ValidatingWebhook) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } |
| 93 | |
| 94 | func (m *ValidatingWebhookConfiguration) Reset() { *m = ValidatingWebhookConfiguration{} } |
| 95 | func (*ValidatingWebhookConfiguration) ProtoMessage() {} |
| 96 | func (*ValidatingWebhookConfiguration) Descriptor() ([]byte, []int) { |
| 97 | return fileDescriptorGenerated, []int{7} |
| 98 | } |
| 99 | |
| 100 | func (m *ValidatingWebhookConfigurationList) Reset() { *m = ValidatingWebhookConfigurationList{} } |
| 101 | func (*ValidatingWebhookConfigurationList) ProtoMessage() {} |
| 102 | func (*ValidatingWebhookConfigurationList) Descriptor() ([]byte, []int) { |
| 103 | return fileDescriptorGenerated, []int{8} |
| 104 | } |
| 105 | |
| 106 | func (m *WebhookClientConfig) Reset() { *m = WebhookClientConfig{} } |
| 107 | func (*WebhookClientConfig) ProtoMessage() {} |
| 108 | func (*WebhookClientConfig) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } |
| 109 | |
| 110 | func init() { |
| 111 | proto.RegisterType((*MutatingWebhook)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhook") |
| 112 | proto.RegisterType((*MutatingWebhookConfiguration)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfiguration") |
| 113 | proto.RegisterType((*MutatingWebhookConfigurationList)(nil), "k8s.io.api.admissionregistration.v1beta1.MutatingWebhookConfigurationList") |
| 114 | proto.RegisterType((*Rule)(nil), "k8s.io.api.admissionregistration.v1beta1.Rule") |
| 115 | proto.RegisterType((*RuleWithOperations)(nil), "k8s.io.api.admissionregistration.v1beta1.RuleWithOperations") |
| 116 | proto.RegisterType((*ServiceReference)(nil), "k8s.io.api.admissionregistration.v1beta1.ServiceReference") |
| 117 | proto.RegisterType((*ValidatingWebhook)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingWebhook") |
| 118 | proto.RegisterType((*ValidatingWebhookConfiguration)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfiguration") |
| 119 | proto.RegisterType((*ValidatingWebhookConfigurationList)(nil), "k8s.io.api.admissionregistration.v1beta1.ValidatingWebhookConfigurationList") |
| 120 | proto.RegisterType((*WebhookClientConfig)(nil), "k8s.io.api.admissionregistration.v1beta1.WebhookClientConfig") |
| 121 | } |
| 122 | func (m *MutatingWebhook) Marshal() (dAtA []byte, err error) { |
| 123 | size := m.Size() |
| 124 | dAtA = make([]byte, size) |
| 125 | n, err := m.MarshalTo(dAtA) |
| 126 | if err != nil { |
| 127 | return nil, err |
| 128 | } |
| 129 | return dAtA[:n], nil |
| 130 | } |
| 131 | |
| 132 | func (m *MutatingWebhook) MarshalTo(dAtA []byte) (int, error) { |
| 133 | var i int |
| 134 | _ = i |
| 135 | var l int |
| 136 | _ = l |
| 137 | dAtA[i] = 0xa |
| 138 | i++ |
| 139 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 140 | i += copy(dAtA[i:], m.Name) |
| 141 | dAtA[i] = 0x12 |
| 142 | i++ |
| 143 | i = encodeVarintGenerated(dAtA, i, uint64(m.ClientConfig.Size())) |
| 144 | n1, err := m.ClientConfig.MarshalTo(dAtA[i:]) |
| 145 | if err != nil { |
| 146 | return 0, err |
| 147 | } |
| 148 | i += n1 |
| 149 | if len(m.Rules) > 0 { |
| 150 | for _, msg := range m.Rules { |
| 151 | dAtA[i] = 0x1a |
| 152 | i++ |
| 153 | i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| 154 | n, err := msg.MarshalTo(dAtA[i:]) |
| 155 | if err != nil { |
| 156 | return 0, err |
| 157 | } |
| 158 | i += n |
| 159 | } |
| 160 | } |
| 161 | if m.FailurePolicy != nil { |
| 162 | dAtA[i] = 0x22 |
| 163 | i++ |
| 164 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) |
| 165 | i += copy(dAtA[i:], *m.FailurePolicy) |
| 166 | } |
| 167 | if m.NamespaceSelector != nil { |
| 168 | dAtA[i] = 0x2a |
| 169 | i++ |
| 170 | i = encodeVarintGenerated(dAtA, i, uint64(m.NamespaceSelector.Size())) |
| 171 | n2, err := m.NamespaceSelector.MarshalTo(dAtA[i:]) |
| 172 | if err != nil { |
| 173 | return 0, err |
| 174 | } |
| 175 | i += n2 |
| 176 | } |
| 177 | if m.SideEffects != nil { |
| 178 | dAtA[i] = 0x32 |
| 179 | i++ |
| 180 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects))) |
| 181 | i += copy(dAtA[i:], *m.SideEffects) |
| 182 | } |
| 183 | if m.TimeoutSeconds != nil { |
| 184 | dAtA[i] = 0x38 |
| 185 | i++ |
| 186 | i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) |
| 187 | } |
| 188 | if len(m.AdmissionReviewVersions) > 0 { |
| 189 | for _, s := range m.AdmissionReviewVersions { |
| 190 | dAtA[i] = 0x42 |
| 191 | i++ |
| 192 | l = len(s) |
| 193 | for l >= 1<<7 { |
| 194 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 195 | l >>= 7 |
| 196 | i++ |
| 197 | } |
| 198 | dAtA[i] = uint8(l) |
| 199 | i++ |
| 200 | i += copy(dAtA[i:], s) |
| 201 | } |
| 202 | } |
| 203 | if m.MatchPolicy != nil { |
| 204 | dAtA[i] = 0x4a |
| 205 | i++ |
| 206 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy))) |
| 207 | i += copy(dAtA[i:], *m.MatchPolicy) |
| 208 | } |
| 209 | if m.ReinvocationPolicy != nil { |
| 210 | dAtA[i] = 0x52 |
| 211 | i++ |
| 212 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.ReinvocationPolicy))) |
| 213 | i += copy(dAtA[i:], *m.ReinvocationPolicy) |
| 214 | } |
| 215 | if m.ObjectSelector != nil { |
| 216 | dAtA[i] = 0x5a |
| 217 | i++ |
| 218 | i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectSelector.Size())) |
| 219 | n3, err := m.ObjectSelector.MarshalTo(dAtA[i:]) |
| 220 | if err != nil { |
| 221 | return 0, err |
| 222 | } |
| 223 | i += n3 |
| 224 | } |
| 225 | return i, nil |
| 226 | } |
| 227 | |
| 228 | func (m *MutatingWebhookConfiguration) Marshal() (dAtA []byte, err error) { |
| 229 | size := m.Size() |
| 230 | dAtA = make([]byte, size) |
| 231 | n, err := m.MarshalTo(dAtA) |
| 232 | if err != nil { |
| 233 | return nil, err |
| 234 | } |
| 235 | return dAtA[:n], nil |
| 236 | } |
| 237 | |
| 238 | func (m *MutatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) { |
| 239 | var i int |
| 240 | _ = i |
| 241 | var l int |
| 242 | _ = l |
| 243 | dAtA[i] = 0xa |
| 244 | i++ |
| 245 | i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) |
| 246 | n4, err := m.ObjectMeta.MarshalTo(dAtA[i:]) |
| 247 | if err != nil { |
| 248 | return 0, err |
| 249 | } |
| 250 | i += n4 |
| 251 | if len(m.Webhooks) > 0 { |
| 252 | for _, msg := range m.Webhooks { |
| 253 | dAtA[i] = 0x12 |
| 254 | i++ |
| 255 | i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| 256 | n, err := msg.MarshalTo(dAtA[i:]) |
| 257 | if err != nil { |
| 258 | return 0, err |
| 259 | } |
| 260 | i += n |
| 261 | } |
| 262 | } |
| 263 | return i, nil |
| 264 | } |
| 265 | |
| 266 | func (m *MutatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) { |
| 267 | size := m.Size() |
| 268 | dAtA = make([]byte, size) |
| 269 | n, err := m.MarshalTo(dAtA) |
| 270 | if err != nil { |
| 271 | return nil, err |
| 272 | } |
| 273 | return dAtA[:n], nil |
| 274 | } |
| 275 | |
| 276 | func (m *MutatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) { |
| 277 | var i int |
| 278 | _ = i |
| 279 | var l int |
| 280 | _ = l |
| 281 | dAtA[i] = 0xa |
| 282 | i++ |
| 283 | i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) |
| 284 | n5, err := m.ListMeta.MarshalTo(dAtA[i:]) |
| 285 | if err != nil { |
| 286 | return 0, err |
| 287 | } |
| 288 | i += n5 |
| 289 | if len(m.Items) > 0 { |
| 290 | for _, msg := range m.Items { |
| 291 | dAtA[i] = 0x12 |
| 292 | i++ |
| 293 | i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| 294 | n, err := msg.MarshalTo(dAtA[i:]) |
| 295 | if err != nil { |
| 296 | return 0, err |
| 297 | } |
| 298 | i += n |
| 299 | } |
| 300 | } |
| 301 | return i, nil |
| 302 | } |
| 303 | |
| 304 | func (m *Rule) Marshal() (dAtA []byte, err error) { |
| 305 | size := m.Size() |
| 306 | dAtA = make([]byte, size) |
| 307 | n, err := m.MarshalTo(dAtA) |
| 308 | if err != nil { |
| 309 | return nil, err |
| 310 | } |
| 311 | return dAtA[:n], nil |
| 312 | } |
| 313 | |
| 314 | func (m *Rule) MarshalTo(dAtA []byte) (int, error) { |
| 315 | var i int |
| 316 | _ = i |
| 317 | var l int |
| 318 | _ = l |
| 319 | if len(m.APIGroups) > 0 { |
| 320 | for _, s := range m.APIGroups { |
| 321 | dAtA[i] = 0xa |
| 322 | i++ |
| 323 | l = len(s) |
| 324 | for l >= 1<<7 { |
| 325 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 326 | l >>= 7 |
| 327 | i++ |
| 328 | } |
| 329 | dAtA[i] = uint8(l) |
| 330 | i++ |
| 331 | i += copy(dAtA[i:], s) |
| 332 | } |
| 333 | } |
| 334 | if len(m.APIVersions) > 0 { |
| 335 | for _, s := range m.APIVersions { |
| 336 | dAtA[i] = 0x12 |
| 337 | i++ |
| 338 | l = len(s) |
| 339 | for l >= 1<<7 { |
| 340 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 341 | l >>= 7 |
| 342 | i++ |
| 343 | } |
| 344 | dAtA[i] = uint8(l) |
| 345 | i++ |
| 346 | i += copy(dAtA[i:], s) |
| 347 | } |
| 348 | } |
| 349 | if len(m.Resources) > 0 { |
| 350 | for _, s := range m.Resources { |
| 351 | dAtA[i] = 0x1a |
| 352 | i++ |
| 353 | l = len(s) |
| 354 | for l >= 1<<7 { |
| 355 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 356 | l >>= 7 |
| 357 | i++ |
| 358 | } |
| 359 | dAtA[i] = uint8(l) |
| 360 | i++ |
| 361 | i += copy(dAtA[i:], s) |
| 362 | } |
| 363 | } |
| 364 | if m.Scope != nil { |
| 365 | dAtA[i] = 0x22 |
| 366 | i++ |
| 367 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Scope))) |
| 368 | i += copy(dAtA[i:], *m.Scope) |
| 369 | } |
| 370 | return i, nil |
| 371 | } |
| 372 | |
| 373 | func (m *RuleWithOperations) Marshal() (dAtA []byte, err error) { |
| 374 | size := m.Size() |
| 375 | dAtA = make([]byte, size) |
| 376 | n, err := m.MarshalTo(dAtA) |
| 377 | if err != nil { |
| 378 | return nil, err |
| 379 | } |
| 380 | return dAtA[:n], nil |
| 381 | } |
| 382 | |
| 383 | func (m *RuleWithOperations) MarshalTo(dAtA []byte) (int, error) { |
| 384 | var i int |
| 385 | _ = i |
| 386 | var l int |
| 387 | _ = l |
| 388 | if len(m.Operations) > 0 { |
| 389 | for _, s := range m.Operations { |
| 390 | dAtA[i] = 0xa |
| 391 | i++ |
| 392 | l = len(s) |
| 393 | for l >= 1<<7 { |
| 394 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 395 | l >>= 7 |
| 396 | i++ |
| 397 | } |
| 398 | dAtA[i] = uint8(l) |
| 399 | i++ |
| 400 | i += copy(dAtA[i:], s) |
| 401 | } |
| 402 | } |
| 403 | dAtA[i] = 0x12 |
| 404 | i++ |
| 405 | i = encodeVarintGenerated(dAtA, i, uint64(m.Rule.Size())) |
| 406 | n6, err := m.Rule.MarshalTo(dAtA[i:]) |
| 407 | if err != nil { |
| 408 | return 0, err |
| 409 | } |
| 410 | i += n6 |
| 411 | return i, nil |
| 412 | } |
| 413 | |
| 414 | func (m *ServiceReference) Marshal() (dAtA []byte, err error) { |
| 415 | size := m.Size() |
| 416 | dAtA = make([]byte, size) |
| 417 | n, err := m.MarshalTo(dAtA) |
| 418 | if err != nil { |
| 419 | return nil, err |
| 420 | } |
| 421 | return dAtA[:n], nil |
| 422 | } |
| 423 | |
| 424 | func (m *ServiceReference) MarshalTo(dAtA []byte) (int, error) { |
| 425 | var i int |
| 426 | _ = i |
| 427 | var l int |
| 428 | _ = l |
| 429 | dAtA[i] = 0xa |
| 430 | i++ |
| 431 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Namespace))) |
| 432 | i += copy(dAtA[i:], m.Namespace) |
| 433 | dAtA[i] = 0x12 |
| 434 | i++ |
| 435 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 436 | i += copy(dAtA[i:], m.Name) |
| 437 | if m.Path != nil { |
| 438 | dAtA[i] = 0x1a |
| 439 | i++ |
| 440 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.Path))) |
| 441 | i += copy(dAtA[i:], *m.Path) |
| 442 | } |
| 443 | if m.Port != nil { |
| 444 | dAtA[i] = 0x20 |
| 445 | i++ |
| 446 | i = encodeVarintGenerated(dAtA, i, uint64(*m.Port)) |
| 447 | } |
| 448 | return i, nil |
| 449 | } |
| 450 | |
| 451 | func (m *ValidatingWebhook) Marshal() (dAtA []byte, err error) { |
| 452 | size := m.Size() |
| 453 | dAtA = make([]byte, size) |
| 454 | n, err := m.MarshalTo(dAtA) |
| 455 | if err != nil { |
| 456 | return nil, err |
| 457 | } |
| 458 | return dAtA[:n], nil |
| 459 | } |
| 460 | |
| 461 | func (m *ValidatingWebhook) MarshalTo(dAtA []byte) (int, error) { |
| 462 | var i int |
| 463 | _ = i |
| 464 | var l int |
| 465 | _ = l |
| 466 | dAtA[i] = 0xa |
| 467 | i++ |
| 468 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.Name))) |
| 469 | i += copy(dAtA[i:], m.Name) |
| 470 | dAtA[i] = 0x12 |
| 471 | i++ |
| 472 | i = encodeVarintGenerated(dAtA, i, uint64(m.ClientConfig.Size())) |
| 473 | n7, err := m.ClientConfig.MarshalTo(dAtA[i:]) |
| 474 | if err != nil { |
| 475 | return 0, err |
| 476 | } |
| 477 | i += n7 |
| 478 | if len(m.Rules) > 0 { |
| 479 | for _, msg := range m.Rules { |
| 480 | dAtA[i] = 0x1a |
| 481 | i++ |
| 482 | i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| 483 | n, err := msg.MarshalTo(dAtA[i:]) |
| 484 | if err != nil { |
| 485 | return 0, err |
| 486 | } |
| 487 | i += n |
| 488 | } |
| 489 | } |
| 490 | if m.FailurePolicy != nil { |
| 491 | dAtA[i] = 0x22 |
| 492 | i++ |
| 493 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.FailurePolicy))) |
| 494 | i += copy(dAtA[i:], *m.FailurePolicy) |
| 495 | } |
| 496 | if m.NamespaceSelector != nil { |
| 497 | dAtA[i] = 0x2a |
| 498 | i++ |
| 499 | i = encodeVarintGenerated(dAtA, i, uint64(m.NamespaceSelector.Size())) |
| 500 | n8, err := m.NamespaceSelector.MarshalTo(dAtA[i:]) |
| 501 | if err != nil { |
| 502 | return 0, err |
| 503 | } |
| 504 | i += n8 |
| 505 | } |
| 506 | if m.SideEffects != nil { |
| 507 | dAtA[i] = 0x32 |
| 508 | i++ |
| 509 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.SideEffects))) |
| 510 | i += copy(dAtA[i:], *m.SideEffects) |
| 511 | } |
| 512 | if m.TimeoutSeconds != nil { |
| 513 | dAtA[i] = 0x38 |
| 514 | i++ |
| 515 | i = encodeVarintGenerated(dAtA, i, uint64(*m.TimeoutSeconds)) |
| 516 | } |
| 517 | if len(m.AdmissionReviewVersions) > 0 { |
| 518 | for _, s := range m.AdmissionReviewVersions { |
| 519 | dAtA[i] = 0x42 |
| 520 | i++ |
| 521 | l = len(s) |
| 522 | for l >= 1<<7 { |
| 523 | dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
| 524 | l >>= 7 |
| 525 | i++ |
| 526 | } |
| 527 | dAtA[i] = uint8(l) |
| 528 | i++ |
| 529 | i += copy(dAtA[i:], s) |
| 530 | } |
| 531 | } |
| 532 | if m.MatchPolicy != nil { |
| 533 | dAtA[i] = 0x4a |
| 534 | i++ |
| 535 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.MatchPolicy))) |
| 536 | i += copy(dAtA[i:], *m.MatchPolicy) |
| 537 | } |
| 538 | if m.ObjectSelector != nil { |
| 539 | dAtA[i] = 0x52 |
| 540 | i++ |
| 541 | i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectSelector.Size())) |
| 542 | n9, err := m.ObjectSelector.MarshalTo(dAtA[i:]) |
| 543 | if err != nil { |
| 544 | return 0, err |
| 545 | } |
| 546 | i += n9 |
| 547 | } |
| 548 | return i, nil |
| 549 | } |
| 550 | |
| 551 | func (m *ValidatingWebhookConfiguration) Marshal() (dAtA []byte, err error) { |
| 552 | size := m.Size() |
| 553 | dAtA = make([]byte, size) |
| 554 | n, err := m.MarshalTo(dAtA) |
| 555 | if err != nil { |
| 556 | return nil, err |
| 557 | } |
| 558 | return dAtA[:n], nil |
| 559 | } |
| 560 | |
| 561 | func (m *ValidatingWebhookConfiguration) MarshalTo(dAtA []byte) (int, error) { |
| 562 | var i int |
| 563 | _ = i |
| 564 | var l int |
| 565 | _ = l |
| 566 | dAtA[i] = 0xa |
| 567 | i++ |
| 568 | i = encodeVarintGenerated(dAtA, i, uint64(m.ObjectMeta.Size())) |
| 569 | n10, err := m.ObjectMeta.MarshalTo(dAtA[i:]) |
| 570 | if err != nil { |
| 571 | return 0, err |
| 572 | } |
| 573 | i += n10 |
| 574 | if len(m.Webhooks) > 0 { |
| 575 | for _, msg := range m.Webhooks { |
| 576 | dAtA[i] = 0x12 |
| 577 | i++ |
| 578 | i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| 579 | n, err := msg.MarshalTo(dAtA[i:]) |
| 580 | if err != nil { |
| 581 | return 0, err |
| 582 | } |
| 583 | i += n |
| 584 | } |
| 585 | } |
| 586 | return i, nil |
| 587 | } |
| 588 | |
| 589 | func (m *ValidatingWebhookConfigurationList) Marshal() (dAtA []byte, err error) { |
| 590 | size := m.Size() |
| 591 | dAtA = make([]byte, size) |
| 592 | n, err := m.MarshalTo(dAtA) |
| 593 | if err != nil { |
| 594 | return nil, err |
| 595 | } |
| 596 | return dAtA[:n], nil |
| 597 | } |
| 598 | |
| 599 | func (m *ValidatingWebhookConfigurationList) MarshalTo(dAtA []byte) (int, error) { |
| 600 | var i int |
| 601 | _ = i |
| 602 | var l int |
| 603 | _ = l |
| 604 | dAtA[i] = 0xa |
| 605 | i++ |
| 606 | i = encodeVarintGenerated(dAtA, i, uint64(m.ListMeta.Size())) |
| 607 | n11, err := m.ListMeta.MarshalTo(dAtA[i:]) |
| 608 | if err != nil { |
| 609 | return 0, err |
| 610 | } |
| 611 | i += n11 |
| 612 | if len(m.Items) > 0 { |
| 613 | for _, msg := range m.Items { |
| 614 | dAtA[i] = 0x12 |
| 615 | i++ |
| 616 | i = encodeVarintGenerated(dAtA, i, uint64(msg.Size())) |
| 617 | n, err := msg.MarshalTo(dAtA[i:]) |
| 618 | if err != nil { |
| 619 | return 0, err |
| 620 | } |
| 621 | i += n |
| 622 | } |
| 623 | } |
| 624 | return i, nil |
| 625 | } |
| 626 | |
| 627 | func (m *WebhookClientConfig) Marshal() (dAtA []byte, err error) { |
| 628 | size := m.Size() |
| 629 | dAtA = make([]byte, size) |
| 630 | n, err := m.MarshalTo(dAtA) |
| 631 | if err != nil { |
| 632 | return nil, err |
| 633 | } |
| 634 | return dAtA[:n], nil |
| 635 | } |
| 636 | |
| 637 | func (m *WebhookClientConfig) MarshalTo(dAtA []byte) (int, error) { |
| 638 | var i int |
| 639 | _ = i |
| 640 | var l int |
| 641 | _ = l |
| 642 | if m.Service != nil { |
| 643 | dAtA[i] = 0xa |
| 644 | i++ |
| 645 | i = encodeVarintGenerated(dAtA, i, uint64(m.Service.Size())) |
| 646 | n12, err := m.Service.MarshalTo(dAtA[i:]) |
| 647 | if err != nil { |
| 648 | return 0, err |
| 649 | } |
| 650 | i += n12 |
| 651 | } |
| 652 | if m.CABundle != nil { |
| 653 | dAtA[i] = 0x12 |
| 654 | i++ |
| 655 | i = encodeVarintGenerated(dAtA, i, uint64(len(m.CABundle))) |
| 656 | i += copy(dAtA[i:], m.CABundle) |
| 657 | } |
| 658 | if m.URL != nil { |
| 659 | dAtA[i] = 0x1a |
| 660 | i++ |
| 661 | i = encodeVarintGenerated(dAtA, i, uint64(len(*m.URL))) |
| 662 | i += copy(dAtA[i:], *m.URL) |
| 663 | } |
| 664 | return i, nil |
| 665 | } |
| 666 | |
| 667 | func encodeVarintGenerated(dAtA []byte, offset int, v uint64) int { |
| 668 | for v >= 1<<7 { |
| 669 | dAtA[offset] = uint8(v&0x7f | 0x80) |
| 670 | v >>= 7 |
| 671 | offset++ |
| 672 | } |
| 673 | dAtA[offset] = uint8(v) |
| 674 | return offset + 1 |
| 675 | } |
| 676 | func (m *MutatingWebhook) Size() (n int) { |
| 677 | var l int |
| 678 | _ = l |
| 679 | l = len(m.Name) |
| 680 | n += 1 + l + sovGenerated(uint64(l)) |
| 681 | l = m.ClientConfig.Size() |
| 682 | n += 1 + l + sovGenerated(uint64(l)) |
| 683 | if len(m.Rules) > 0 { |
| 684 | for _, e := range m.Rules { |
| 685 | l = e.Size() |
| 686 | n += 1 + l + sovGenerated(uint64(l)) |
| 687 | } |
| 688 | } |
| 689 | if m.FailurePolicy != nil { |
| 690 | l = len(*m.FailurePolicy) |
| 691 | n += 1 + l + sovGenerated(uint64(l)) |
| 692 | } |
| 693 | if m.NamespaceSelector != nil { |
| 694 | l = m.NamespaceSelector.Size() |
| 695 | n += 1 + l + sovGenerated(uint64(l)) |
| 696 | } |
| 697 | if m.SideEffects != nil { |
| 698 | l = len(*m.SideEffects) |
| 699 | n += 1 + l + sovGenerated(uint64(l)) |
| 700 | } |
| 701 | if m.TimeoutSeconds != nil { |
| 702 | n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) |
| 703 | } |
| 704 | if len(m.AdmissionReviewVersions) > 0 { |
| 705 | for _, s := range m.AdmissionReviewVersions { |
| 706 | l = len(s) |
| 707 | n += 1 + l + sovGenerated(uint64(l)) |
| 708 | } |
| 709 | } |
| 710 | if m.MatchPolicy != nil { |
| 711 | l = len(*m.MatchPolicy) |
| 712 | n += 1 + l + sovGenerated(uint64(l)) |
| 713 | } |
| 714 | if m.ReinvocationPolicy != nil { |
| 715 | l = len(*m.ReinvocationPolicy) |
| 716 | n += 1 + l + sovGenerated(uint64(l)) |
| 717 | } |
| 718 | if m.ObjectSelector != nil { |
| 719 | l = m.ObjectSelector.Size() |
| 720 | n += 1 + l + sovGenerated(uint64(l)) |
| 721 | } |
| 722 | return n |
| 723 | } |
| 724 | |
| 725 | func (m *MutatingWebhookConfiguration) Size() (n int) { |
| 726 | var l int |
| 727 | _ = l |
| 728 | l = m.ObjectMeta.Size() |
| 729 | n += 1 + l + sovGenerated(uint64(l)) |
| 730 | if len(m.Webhooks) > 0 { |
| 731 | for _, e := range m.Webhooks { |
| 732 | l = e.Size() |
| 733 | n += 1 + l + sovGenerated(uint64(l)) |
| 734 | } |
| 735 | } |
| 736 | return n |
| 737 | } |
| 738 | |
| 739 | func (m *MutatingWebhookConfigurationList) Size() (n int) { |
| 740 | var l int |
| 741 | _ = l |
| 742 | l = m.ListMeta.Size() |
| 743 | n += 1 + l + sovGenerated(uint64(l)) |
| 744 | if len(m.Items) > 0 { |
| 745 | for _, e := range m.Items { |
| 746 | l = e.Size() |
| 747 | n += 1 + l + sovGenerated(uint64(l)) |
| 748 | } |
| 749 | } |
| 750 | return n |
| 751 | } |
| 752 | |
| 753 | func (m *Rule) Size() (n int) { |
| 754 | var l int |
| 755 | _ = l |
| 756 | if len(m.APIGroups) > 0 { |
| 757 | for _, s := range m.APIGroups { |
| 758 | l = len(s) |
| 759 | n += 1 + l + sovGenerated(uint64(l)) |
| 760 | } |
| 761 | } |
| 762 | if len(m.APIVersions) > 0 { |
| 763 | for _, s := range m.APIVersions { |
| 764 | l = len(s) |
| 765 | n += 1 + l + sovGenerated(uint64(l)) |
| 766 | } |
| 767 | } |
| 768 | if len(m.Resources) > 0 { |
| 769 | for _, s := range m.Resources { |
| 770 | l = len(s) |
| 771 | n += 1 + l + sovGenerated(uint64(l)) |
| 772 | } |
| 773 | } |
| 774 | if m.Scope != nil { |
| 775 | l = len(*m.Scope) |
| 776 | n += 1 + l + sovGenerated(uint64(l)) |
| 777 | } |
| 778 | return n |
| 779 | } |
| 780 | |
| 781 | func (m *RuleWithOperations) Size() (n int) { |
| 782 | var l int |
| 783 | _ = l |
| 784 | if len(m.Operations) > 0 { |
| 785 | for _, s := range m.Operations { |
| 786 | l = len(s) |
| 787 | n += 1 + l + sovGenerated(uint64(l)) |
| 788 | } |
| 789 | } |
| 790 | l = m.Rule.Size() |
| 791 | n += 1 + l + sovGenerated(uint64(l)) |
| 792 | return n |
| 793 | } |
| 794 | |
| 795 | func (m *ServiceReference) Size() (n int) { |
| 796 | var l int |
| 797 | _ = l |
| 798 | l = len(m.Namespace) |
| 799 | n += 1 + l + sovGenerated(uint64(l)) |
| 800 | l = len(m.Name) |
| 801 | n += 1 + l + sovGenerated(uint64(l)) |
| 802 | if m.Path != nil { |
| 803 | l = len(*m.Path) |
| 804 | n += 1 + l + sovGenerated(uint64(l)) |
| 805 | } |
| 806 | if m.Port != nil { |
| 807 | n += 1 + sovGenerated(uint64(*m.Port)) |
| 808 | } |
| 809 | return n |
| 810 | } |
| 811 | |
| 812 | func (m *ValidatingWebhook) Size() (n int) { |
| 813 | var l int |
| 814 | _ = l |
| 815 | l = len(m.Name) |
| 816 | n += 1 + l + sovGenerated(uint64(l)) |
| 817 | l = m.ClientConfig.Size() |
| 818 | n += 1 + l + sovGenerated(uint64(l)) |
| 819 | if len(m.Rules) > 0 { |
| 820 | for _, e := range m.Rules { |
| 821 | l = e.Size() |
| 822 | n += 1 + l + sovGenerated(uint64(l)) |
| 823 | } |
| 824 | } |
| 825 | if m.FailurePolicy != nil { |
| 826 | l = len(*m.FailurePolicy) |
| 827 | n += 1 + l + sovGenerated(uint64(l)) |
| 828 | } |
| 829 | if m.NamespaceSelector != nil { |
| 830 | l = m.NamespaceSelector.Size() |
| 831 | n += 1 + l + sovGenerated(uint64(l)) |
| 832 | } |
| 833 | if m.SideEffects != nil { |
| 834 | l = len(*m.SideEffects) |
| 835 | n += 1 + l + sovGenerated(uint64(l)) |
| 836 | } |
| 837 | if m.TimeoutSeconds != nil { |
| 838 | n += 1 + sovGenerated(uint64(*m.TimeoutSeconds)) |
| 839 | } |
| 840 | if len(m.AdmissionReviewVersions) > 0 { |
| 841 | for _, s := range m.AdmissionReviewVersions { |
| 842 | l = len(s) |
| 843 | n += 1 + l + sovGenerated(uint64(l)) |
| 844 | } |
| 845 | } |
| 846 | if m.MatchPolicy != nil { |
| 847 | l = len(*m.MatchPolicy) |
| 848 | n += 1 + l + sovGenerated(uint64(l)) |
| 849 | } |
| 850 | if m.ObjectSelector != nil { |
| 851 | l = m.ObjectSelector.Size() |
| 852 | n += 1 + l + sovGenerated(uint64(l)) |
| 853 | } |
| 854 | return n |
| 855 | } |
| 856 | |
| 857 | func (m *ValidatingWebhookConfiguration) Size() (n int) { |
| 858 | var l int |
| 859 | _ = l |
| 860 | l = m.ObjectMeta.Size() |
| 861 | n += 1 + l + sovGenerated(uint64(l)) |
| 862 | if len(m.Webhooks) > 0 { |
| 863 | for _, e := range m.Webhooks { |
| 864 | l = e.Size() |
| 865 | n += 1 + l + sovGenerated(uint64(l)) |
| 866 | } |
| 867 | } |
| 868 | return n |
| 869 | } |
| 870 | |
| 871 | func (m *ValidatingWebhookConfigurationList) Size() (n int) { |
| 872 | var l int |
| 873 | _ = l |
| 874 | l = m.ListMeta.Size() |
| 875 | n += 1 + l + sovGenerated(uint64(l)) |
| 876 | if len(m.Items) > 0 { |
| 877 | for _, e := range m.Items { |
| 878 | l = e.Size() |
| 879 | n += 1 + l + sovGenerated(uint64(l)) |
| 880 | } |
| 881 | } |
| 882 | return n |
| 883 | } |
| 884 | |
| 885 | func (m *WebhookClientConfig) Size() (n int) { |
| 886 | var l int |
| 887 | _ = l |
| 888 | if m.Service != nil { |
| 889 | l = m.Service.Size() |
| 890 | n += 1 + l + sovGenerated(uint64(l)) |
| 891 | } |
| 892 | if m.CABundle != nil { |
| 893 | l = len(m.CABundle) |
| 894 | n += 1 + l + sovGenerated(uint64(l)) |
| 895 | } |
| 896 | if m.URL != nil { |
| 897 | l = len(*m.URL) |
| 898 | n += 1 + l + sovGenerated(uint64(l)) |
| 899 | } |
| 900 | return n |
| 901 | } |
| 902 | |
| 903 | func sovGenerated(x uint64) (n int) { |
| 904 | for { |
| 905 | n++ |
| 906 | x >>= 7 |
| 907 | if x == 0 { |
| 908 | break |
| 909 | } |
| 910 | } |
| 911 | return n |
| 912 | } |
| 913 | func sozGenerated(x uint64) (n int) { |
| 914 | return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) |
| 915 | } |
| 916 | func (this *MutatingWebhook) String() string { |
| 917 | if this == nil { |
| 918 | return "nil" |
| 919 | } |
| 920 | s := strings.Join([]string{`&MutatingWebhook{`, |
| 921 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 922 | `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`, |
| 923 | `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "RuleWithOperations", "RuleWithOperations", 1), `&`, ``, 1) + `,`, |
| 924 | `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, |
| 925 | `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`, |
| 926 | `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`, |
| 927 | `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, |
| 928 | `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`, |
| 929 | `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, |
| 930 | `ReinvocationPolicy:` + valueToStringGenerated(this.ReinvocationPolicy) + `,`, |
| 931 | `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`, |
| 932 | `}`, |
| 933 | }, "") |
| 934 | return s |
| 935 | } |
| 936 | func (this *MutatingWebhookConfiguration) String() string { |
| 937 | if this == nil { |
| 938 | return "nil" |
| 939 | } |
| 940 | s := strings.Join([]string{`&MutatingWebhookConfiguration{`, |
| 941 | `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 942 | `Webhooks:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Webhooks), "MutatingWebhook", "MutatingWebhook", 1), `&`, ``, 1) + `,`, |
| 943 | `}`, |
| 944 | }, "") |
| 945 | return s |
| 946 | } |
| 947 | func (this *MutatingWebhookConfigurationList) String() string { |
| 948 | if this == nil { |
| 949 | return "nil" |
| 950 | } |
| 951 | s := strings.Join([]string{`&MutatingWebhookConfigurationList{`, |
| 952 | `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 953 | `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "MutatingWebhookConfiguration", "MutatingWebhookConfiguration", 1), `&`, ``, 1) + `,`, |
| 954 | `}`, |
| 955 | }, "") |
| 956 | return s |
| 957 | } |
| 958 | func (this *Rule) String() string { |
| 959 | if this == nil { |
| 960 | return "nil" |
| 961 | } |
| 962 | s := strings.Join([]string{`&Rule{`, |
| 963 | `APIGroups:` + fmt.Sprintf("%v", this.APIGroups) + `,`, |
| 964 | `APIVersions:` + fmt.Sprintf("%v", this.APIVersions) + `,`, |
| 965 | `Resources:` + fmt.Sprintf("%v", this.Resources) + `,`, |
| 966 | `Scope:` + valueToStringGenerated(this.Scope) + `,`, |
| 967 | `}`, |
| 968 | }, "") |
| 969 | return s |
| 970 | } |
| 971 | func (this *RuleWithOperations) String() string { |
| 972 | if this == nil { |
| 973 | return "nil" |
| 974 | } |
| 975 | s := strings.Join([]string{`&RuleWithOperations{`, |
| 976 | `Operations:` + fmt.Sprintf("%v", this.Operations) + `,`, |
| 977 | `Rule:` + strings.Replace(strings.Replace(this.Rule.String(), "Rule", "Rule", 1), `&`, ``, 1) + `,`, |
| 978 | `}`, |
| 979 | }, "") |
| 980 | return s |
| 981 | } |
| 982 | func (this *ServiceReference) String() string { |
| 983 | if this == nil { |
| 984 | return "nil" |
| 985 | } |
| 986 | s := strings.Join([]string{`&ServiceReference{`, |
| 987 | `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, |
| 988 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 989 | `Path:` + valueToStringGenerated(this.Path) + `,`, |
| 990 | `Port:` + valueToStringGenerated(this.Port) + `,`, |
| 991 | `}`, |
| 992 | }, "") |
| 993 | return s |
| 994 | } |
| 995 | func (this *ValidatingWebhook) String() string { |
| 996 | if this == nil { |
| 997 | return "nil" |
| 998 | } |
| 999 | s := strings.Join([]string{`&ValidatingWebhook{`, |
| 1000 | `Name:` + fmt.Sprintf("%v", this.Name) + `,`, |
| 1001 | `ClientConfig:` + strings.Replace(strings.Replace(this.ClientConfig.String(), "WebhookClientConfig", "WebhookClientConfig", 1), `&`, ``, 1) + `,`, |
| 1002 | `Rules:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Rules), "RuleWithOperations", "RuleWithOperations", 1), `&`, ``, 1) + `,`, |
| 1003 | `FailurePolicy:` + valueToStringGenerated(this.FailurePolicy) + `,`, |
| 1004 | `NamespaceSelector:` + strings.Replace(fmt.Sprintf("%v", this.NamespaceSelector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`, |
| 1005 | `SideEffects:` + valueToStringGenerated(this.SideEffects) + `,`, |
| 1006 | `TimeoutSeconds:` + valueToStringGenerated(this.TimeoutSeconds) + `,`, |
| 1007 | `AdmissionReviewVersions:` + fmt.Sprintf("%v", this.AdmissionReviewVersions) + `,`, |
| 1008 | `MatchPolicy:` + valueToStringGenerated(this.MatchPolicy) + `,`, |
| 1009 | `ObjectSelector:` + strings.Replace(fmt.Sprintf("%v", this.ObjectSelector), "LabelSelector", "k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector", 1) + `,`, |
| 1010 | `}`, |
| 1011 | }, "") |
| 1012 | return s |
| 1013 | } |
| 1014 | func (this *ValidatingWebhookConfiguration) String() string { |
| 1015 | if this == nil { |
| 1016 | return "nil" |
| 1017 | } |
| 1018 | s := strings.Join([]string{`&ValidatingWebhookConfiguration{`, |
| 1019 | `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, |
| 1020 | `Webhooks:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Webhooks), "ValidatingWebhook", "ValidatingWebhook", 1), `&`, ``, 1) + `,`, |
| 1021 | `}`, |
| 1022 | }, "") |
| 1023 | return s |
| 1024 | } |
| 1025 | func (this *ValidatingWebhookConfigurationList) String() string { |
| 1026 | if this == nil { |
| 1027 | return "nil" |
| 1028 | } |
| 1029 | s := strings.Join([]string{`&ValidatingWebhookConfigurationList{`, |
| 1030 | `ListMeta:` + strings.Replace(strings.Replace(this.ListMeta.String(), "ListMeta", "k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta", 1), `&`, ``, 1) + `,`, |
| 1031 | `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "ValidatingWebhookConfiguration", "ValidatingWebhookConfiguration", 1), `&`, ``, 1) + `,`, |
| 1032 | `}`, |
| 1033 | }, "") |
| 1034 | return s |
| 1035 | } |
| 1036 | func (this *WebhookClientConfig) String() string { |
| 1037 | if this == nil { |
| 1038 | return "nil" |
| 1039 | } |
| 1040 | s := strings.Join([]string{`&WebhookClientConfig{`, |
| 1041 | `Service:` + strings.Replace(fmt.Sprintf("%v", this.Service), "ServiceReference", "ServiceReference", 1) + `,`, |
| 1042 | `CABundle:` + valueToStringGenerated(this.CABundle) + `,`, |
| 1043 | `URL:` + valueToStringGenerated(this.URL) + `,`, |
| 1044 | `}`, |
| 1045 | }, "") |
| 1046 | return s |
| 1047 | } |
| 1048 | func valueToStringGenerated(v interface{}) string { |
| 1049 | rv := reflect.ValueOf(v) |
| 1050 | if rv.IsNil() { |
| 1051 | return "nil" |
| 1052 | } |
| 1053 | pv := reflect.Indirect(rv).Interface() |
| 1054 | return fmt.Sprintf("*%v", pv) |
| 1055 | } |
| 1056 | func (m *MutatingWebhook) Unmarshal(dAtA []byte) error { |
| 1057 | l := len(dAtA) |
| 1058 | iNdEx := 0 |
| 1059 | for iNdEx < l { |
| 1060 | preIndex := iNdEx |
| 1061 | var wire uint64 |
| 1062 | for shift := uint(0); ; shift += 7 { |
| 1063 | if shift >= 64 { |
| 1064 | return ErrIntOverflowGenerated |
| 1065 | } |
| 1066 | if iNdEx >= l { |
| 1067 | return io.ErrUnexpectedEOF |
| 1068 | } |
| 1069 | b := dAtA[iNdEx] |
| 1070 | iNdEx++ |
| 1071 | wire |= (uint64(b) & 0x7F) << shift |
| 1072 | if b < 0x80 { |
| 1073 | break |
| 1074 | } |
| 1075 | } |
| 1076 | fieldNum := int32(wire >> 3) |
| 1077 | wireType := int(wire & 0x7) |
| 1078 | if wireType == 4 { |
| 1079 | return fmt.Errorf("proto: MutatingWebhook: wiretype end group for non-group") |
| 1080 | } |
| 1081 | if fieldNum <= 0 { |
| 1082 | return fmt.Errorf("proto: MutatingWebhook: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1083 | } |
| 1084 | switch fieldNum { |
| 1085 | case 1: |
| 1086 | if wireType != 2 { |
| 1087 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 1088 | } |
| 1089 | var stringLen uint64 |
| 1090 | for shift := uint(0); ; shift += 7 { |
| 1091 | if shift >= 64 { |
| 1092 | return ErrIntOverflowGenerated |
| 1093 | } |
| 1094 | if iNdEx >= l { |
| 1095 | return io.ErrUnexpectedEOF |
| 1096 | } |
| 1097 | b := dAtA[iNdEx] |
| 1098 | iNdEx++ |
| 1099 | stringLen |= (uint64(b) & 0x7F) << shift |
| 1100 | if b < 0x80 { |
| 1101 | break |
| 1102 | } |
| 1103 | } |
| 1104 | intStringLen := int(stringLen) |
| 1105 | if intStringLen < 0 { |
| 1106 | return ErrInvalidLengthGenerated |
| 1107 | } |
| 1108 | postIndex := iNdEx + intStringLen |
| 1109 | if postIndex > l { |
| 1110 | return io.ErrUnexpectedEOF |
| 1111 | } |
| 1112 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 1113 | iNdEx = postIndex |
| 1114 | case 2: |
| 1115 | if wireType != 2 { |
| 1116 | return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType) |
| 1117 | } |
| 1118 | var msglen int |
| 1119 | for shift := uint(0); ; shift += 7 { |
| 1120 | if shift >= 64 { |
| 1121 | return ErrIntOverflowGenerated |
| 1122 | } |
| 1123 | if iNdEx >= l { |
| 1124 | return io.ErrUnexpectedEOF |
| 1125 | } |
| 1126 | b := dAtA[iNdEx] |
| 1127 | iNdEx++ |
| 1128 | msglen |= (int(b) & 0x7F) << shift |
| 1129 | if b < 0x80 { |
| 1130 | break |
| 1131 | } |
| 1132 | } |
| 1133 | if msglen < 0 { |
| 1134 | return ErrInvalidLengthGenerated |
| 1135 | } |
| 1136 | postIndex := iNdEx + msglen |
| 1137 | if postIndex > l { |
| 1138 | return io.ErrUnexpectedEOF |
| 1139 | } |
| 1140 | if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1141 | return err |
| 1142 | } |
| 1143 | iNdEx = postIndex |
| 1144 | case 3: |
| 1145 | if wireType != 2 { |
| 1146 | return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) |
| 1147 | } |
| 1148 | var msglen int |
| 1149 | for shift := uint(0); ; shift += 7 { |
| 1150 | if shift >= 64 { |
| 1151 | return ErrIntOverflowGenerated |
| 1152 | } |
| 1153 | if iNdEx >= l { |
| 1154 | return io.ErrUnexpectedEOF |
| 1155 | } |
| 1156 | b := dAtA[iNdEx] |
| 1157 | iNdEx++ |
| 1158 | msglen |= (int(b) & 0x7F) << shift |
| 1159 | if b < 0x80 { |
| 1160 | break |
| 1161 | } |
| 1162 | } |
| 1163 | if msglen < 0 { |
| 1164 | return ErrInvalidLengthGenerated |
| 1165 | } |
| 1166 | postIndex := iNdEx + msglen |
| 1167 | if postIndex > l { |
| 1168 | return io.ErrUnexpectedEOF |
| 1169 | } |
| 1170 | m.Rules = append(m.Rules, RuleWithOperations{}) |
| 1171 | if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1172 | return err |
| 1173 | } |
| 1174 | iNdEx = postIndex |
| 1175 | case 4: |
| 1176 | if wireType != 2 { |
| 1177 | return fmt.Errorf("proto: wrong wireType = %d for field FailurePolicy", wireType) |
| 1178 | } |
| 1179 | var stringLen uint64 |
| 1180 | for shift := uint(0); ; shift += 7 { |
| 1181 | if shift >= 64 { |
| 1182 | return ErrIntOverflowGenerated |
| 1183 | } |
| 1184 | if iNdEx >= l { |
| 1185 | return io.ErrUnexpectedEOF |
| 1186 | } |
| 1187 | b := dAtA[iNdEx] |
| 1188 | iNdEx++ |
| 1189 | stringLen |= (uint64(b) & 0x7F) << shift |
| 1190 | if b < 0x80 { |
| 1191 | break |
| 1192 | } |
| 1193 | } |
| 1194 | intStringLen := int(stringLen) |
| 1195 | if intStringLen < 0 { |
| 1196 | return ErrInvalidLengthGenerated |
| 1197 | } |
| 1198 | postIndex := iNdEx + intStringLen |
| 1199 | if postIndex > l { |
| 1200 | return io.ErrUnexpectedEOF |
| 1201 | } |
| 1202 | s := FailurePolicyType(dAtA[iNdEx:postIndex]) |
| 1203 | m.FailurePolicy = &s |
| 1204 | iNdEx = postIndex |
| 1205 | case 5: |
| 1206 | if wireType != 2 { |
| 1207 | return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) |
| 1208 | } |
| 1209 | var msglen int |
| 1210 | for shift := uint(0); ; shift += 7 { |
| 1211 | if shift >= 64 { |
| 1212 | return ErrIntOverflowGenerated |
| 1213 | } |
| 1214 | if iNdEx >= l { |
| 1215 | return io.ErrUnexpectedEOF |
| 1216 | } |
| 1217 | b := dAtA[iNdEx] |
| 1218 | iNdEx++ |
| 1219 | msglen |= (int(b) & 0x7F) << shift |
| 1220 | if b < 0x80 { |
| 1221 | break |
| 1222 | } |
| 1223 | } |
| 1224 | if msglen < 0 { |
| 1225 | return ErrInvalidLengthGenerated |
| 1226 | } |
| 1227 | postIndex := iNdEx + msglen |
| 1228 | if postIndex > l { |
| 1229 | return io.ErrUnexpectedEOF |
| 1230 | } |
| 1231 | if m.NamespaceSelector == nil { |
| 1232 | m.NamespaceSelector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{} |
| 1233 | } |
| 1234 | if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1235 | return err |
| 1236 | } |
| 1237 | iNdEx = postIndex |
| 1238 | case 6: |
| 1239 | if wireType != 2 { |
| 1240 | return fmt.Errorf("proto: wrong wireType = %d for field SideEffects", wireType) |
| 1241 | } |
| 1242 | var stringLen uint64 |
| 1243 | for shift := uint(0); ; shift += 7 { |
| 1244 | if shift >= 64 { |
| 1245 | return ErrIntOverflowGenerated |
| 1246 | } |
| 1247 | if iNdEx >= l { |
| 1248 | return io.ErrUnexpectedEOF |
| 1249 | } |
| 1250 | b := dAtA[iNdEx] |
| 1251 | iNdEx++ |
| 1252 | stringLen |= (uint64(b) & 0x7F) << shift |
| 1253 | if b < 0x80 { |
| 1254 | break |
| 1255 | } |
| 1256 | } |
| 1257 | intStringLen := int(stringLen) |
| 1258 | if intStringLen < 0 { |
| 1259 | return ErrInvalidLengthGenerated |
| 1260 | } |
| 1261 | postIndex := iNdEx + intStringLen |
| 1262 | if postIndex > l { |
| 1263 | return io.ErrUnexpectedEOF |
| 1264 | } |
| 1265 | s := SideEffectClass(dAtA[iNdEx:postIndex]) |
| 1266 | m.SideEffects = &s |
| 1267 | iNdEx = postIndex |
| 1268 | case 7: |
| 1269 | if wireType != 0 { |
| 1270 | return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) |
| 1271 | } |
| 1272 | var v int32 |
| 1273 | for shift := uint(0); ; shift += 7 { |
| 1274 | if shift >= 64 { |
| 1275 | return ErrIntOverflowGenerated |
| 1276 | } |
| 1277 | if iNdEx >= l { |
| 1278 | return io.ErrUnexpectedEOF |
| 1279 | } |
| 1280 | b := dAtA[iNdEx] |
| 1281 | iNdEx++ |
| 1282 | v |= (int32(b) & 0x7F) << shift |
| 1283 | if b < 0x80 { |
| 1284 | break |
| 1285 | } |
| 1286 | } |
| 1287 | m.TimeoutSeconds = &v |
| 1288 | case 8: |
| 1289 | if wireType != 2 { |
| 1290 | return fmt.Errorf("proto: wrong wireType = %d for field AdmissionReviewVersions", wireType) |
| 1291 | } |
| 1292 | var stringLen uint64 |
| 1293 | for shift := uint(0); ; shift += 7 { |
| 1294 | if shift >= 64 { |
| 1295 | return ErrIntOverflowGenerated |
| 1296 | } |
| 1297 | if iNdEx >= l { |
| 1298 | return io.ErrUnexpectedEOF |
| 1299 | } |
| 1300 | b := dAtA[iNdEx] |
| 1301 | iNdEx++ |
| 1302 | stringLen |= (uint64(b) & 0x7F) << shift |
| 1303 | if b < 0x80 { |
| 1304 | break |
| 1305 | } |
| 1306 | } |
| 1307 | intStringLen := int(stringLen) |
| 1308 | if intStringLen < 0 { |
| 1309 | return ErrInvalidLengthGenerated |
| 1310 | } |
| 1311 | postIndex := iNdEx + intStringLen |
| 1312 | if postIndex > l { |
| 1313 | return io.ErrUnexpectedEOF |
| 1314 | } |
| 1315 | m.AdmissionReviewVersions = append(m.AdmissionReviewVersions, string(dAtA[iNdEx:postIndex])) |
| 1316 | iNdEx = postIndex |
| 1317 | case 9: |
| 1318 | if wireType != 2 { |
| 1319 | return fmt.Errorf("proto: wrong wireType = %d for field MatchPolicy", wireType) |
| 1320 | } |
| 1321 | var stringLen uint64 |
| 1322 | for shift := uint(0); ; shift += 7 { |
| 1323 | if shift >= 64 { |
| 1324 | return ErrIntOverflowGenerated |
| 1325 | } |
| 1326 | if iNdEx >= l { |
| 1327 | return io.ErrUnexpectedEOF |
| 1328 | } |
| 1329 | b := dAtA[iNdEx] |
| 1330 | iNdEx++ |
| 1331 | stringLen |= (uint64(b) & 0x7F) << shift |
| 1332 | if b < 0x80 { |
| 1333 | break |
| 1334 | } |
| 1335 | } |
| 1336 | intStringLen := int(stringLen) |
| 1337 | if intStringLen < 0 { |
| 1338 | return ErrInvalidLengthGenerated |
| 1339 | } |
| 1340 | postIndex := iNdEx + intStringLen |
| 1341 | if postIndex > l { |
| 1342 | return io.ErrUnexpectedEOF |
| 1343 | } |
| 1344 | s := MatchPolicyType(dAtA[iNdEx:postIndex]) |
| 1345 | m.MatchPolicy = &s |
| 1346 | iNdEx = postIndex |
| 1347 | case 10: |
| 1348 | if wireType != 2 { |
| 1349 | return fmt.Errorf("proto: wrong wireType = %d for field ReinvocationPolicy", wireType) |
| 1350 | } |
| 1351 | var stringLen uint64 |
| 1352 | for shift := uint(0); ; shift += 7 { |
| 1353 | if shift >= 64 { |
| 1354 | return ErrIntOverflowGenerated |
| 1355 | } |
| 1356 | if iNdEx >= l { |
| 1357 | return io.ErrUnexpectedEOF |
| 1358 | } |
| 1359 | b := dAtA[iNdEx] |
| 1360 | iNdEx++ |
| 1361 | stringLen |= (uint64(b) & 0x7F) << shift |
| 1362 | if b < 0x80 { |
| 1363 | break |
| 1364 | } |
| 1365 | } |
| 1366 | intStringLen := int(stringLen) |
| 1367 | if intStringLen < 0 { |
| 1368 | return ErrInvalidLengthGenerated |
| 1369 | } |
| 1370 | postIndex := iNdEx + intStringLen |
| 1371 | if postIndex > l { |
| 1372 | return io.ErrUnexpectedEOF |
| 1373 | } |
| 1374 | s := ReinvocationPolicyType(dAtA[iNdEx:postIndex]) |
| 1375 | m.ReinvocationPolicy = &s |
| 1376 | iNdEx = postIndex |
| 1377 | case 11: |
| 1378 | if wireType != 2 { |
| 1379 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectSelector", wireType) |
| 1380 | } |
| 1381 | var msglen int |
| 1382 | for shift := uint(0); ; shift += 7 { |
| 1383 | if shift >= 64 { |
| 1384 | return ErrIntOverflowGenerated |
| 1385 | } |
| 1386 | if iNdEx >= l { |
| 1387 | return io.ErrUnexpectedEOF |
| 1388 | } |
| 1389 | b := dAtA[iNdEx] |
| 1390 | iNdEx++ |
| 1391 | msglen |= (int(b) & 0x7F) << shift |
| 1392 | if b < 0x80 { |
| 1393 | break |
| 1394 | } |
| 1395 | } |
| 1396 | if msglen < 0 { |
| 1397 | return ErrInvalidLengthGenerated |
| 1398 | } |
| 1399 | postIndex := iNdEx + msglen |
| 1400 | if postIndex > l { |
| 1401 | return io.ErrUnexpectedEOF |
| 1402 | } |
| 1403 | if m.ObjectSelector == nil { |
| 1404 | m.ObjectSelector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{} |
| 1405 | } |
| 1406 | if err := m.ObjectSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1407 | return err |
| 1408 | } |
| 1409 | iNdEx = postIndex |
| 1410 | default: |
| 1411 | iNdEx = preIndex |
| 1412 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1413 | if err != nil { |
| 1414 | return err |
| 1415 | } |
| 1416 | if skippy < 0 { |
| 1417 | return ErrInvalidLengthGenerated |
| 1418 | } |
| 1419 | if (iNdEx + skippy) > l { |
| 1420 | return io.ErrUnexpectedEOF |
| 1421 | } |
| 1422 | iNdEx += skippy |
| 1423 | } |
| 1424 | } |
| 1425 | |
| 1426 | if iNdEx > l { |
| 1427 | return io.ErrUnexpectedEOF |
| 1428 | } |
| 1429 | return nil |
| 1430 | } |
| 1431 | func (m *MutatingWebhookConfiguration) Unmarshal(dAtA []byte) error { |
| 1432 | l := len(dAtA) |
| 1433 | iNdEx := 0 |
| 1434 | for iNdEx < l { |
| 1435 | preIndex := iNdEx |
| 1436 | var wire uint64 |
| 1437 | for shift := uint(0); ; shift += 7 { |
| 1438 | if shift >= 64 { |
| 1439 | return ErrIntOverflowGenerated |
| 1440 | } |
| 1441 | if iNdEx >= l { |
| 1442 | return io.ErrUnexpectedEOF |
| 1443 | } |
| 1444 | b := dAtA[iNdEx] |
| 1445 | iNdEx++ |
| 1446 | wire |= (uint64(b) & 0x7F) << shift |
| 1447 | if b < 0x80 { |
| 1448 | break |
| 1449 | } |
| 1450 | } |
| 1451 | fieldNum := int32(wire >> 3) |
| 1452 | wireType := int(wire & 0x7) |
| 1453 | if wireType == 4 { |
| 1454 | return fmt.Errorf("proto: MutatingWebhookConfiguration: wiretype end group for non-group") |
| 1455 | } |
| 1456 | if fieldNum <= 0 { |
| 1457 | return fmt.Errorf("proto: MutatingWebhookConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1458 | } |
| 1459 | switch fieldNum { |
| 1460 | case 1: |
| 1461 | if wireType != 2 { |
| 1462 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 1463 | } |
| 1464 | var msglen int |
| 1465 | for shift := uint(0); ; shift += 7 { |
| 1466 | if shift >= 64 { |
| 1467 | return ErrIntOverflowGenerated |
| 1468 | } |
| 1469 | if iNdEx >= l { |
| 1470 | return io.ErrUnexpectedEOF |
| 1471 | } |
| 1472 | b := dAtA[iNdEx] |
| 1473 | iNdEx++ |
| 1474 | msglen |= (int(b) & 0x7F) << shift |
| 1475 | if b < 0x80 { |
| 1476 | break |
| 1477 | } |
| 1478 | } |
| 1479 | if msglen < 0 { |
| 1480 | return ErrInvalidLengthGenerated |
| 1481 | } |
| 1482 | postIndex := iNdEx + msglen |
| 1483 | if postIndex > l { |
| 1484 | return io.ErrUnexpectedEOF |
| 1485 | } |
| 1486 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1487 | return err |
| 1488 | } |
| 1489 | iNdEx = postIndex |
| 1490 | case 2: |
| 1491 | if wireType != 2 { |
| 1492 | return fmt.Errorf("proto: wrong wireType = %d for field Webhooks", wireType) |
| 1493 | } |
| 1494 | var msglen int |
| 1495 | for shift := uint(0); ; shift += 7 { |
| 1496 | if shift >= 64 { |
| 1497 | return ErrIntOverflowGenerated |
| 1498 | } |
| 1499 | if iNdEx >= l { |
| 1500 | return io.ErrUnexpectedEOF |
| 1501 | } |
| 1502 | b := dAtA[iNdEx] |
| 1503 | iNdEx++ |
| 1504 | msglen |= (int(b) & 0x7F) << shift |
| 1505 | if b < 0x80 { |
| 1506 | break |
| 1507 | } |
| 1508 | } |
| 1509 | if msglen < 0 { |
| 1510 | return ErrInvalidLengthGenerated |
| 1511 | } |
| 1512 | postIndex := iNdEx + msglen |
| 1513 | if postIndex > l { |
| 1514 | return io.ErrUnexpectedEOF |
| 1515 | } |
| 1516 | m.Webhooks = append(m.Webhooks, MutatingWebhook{}) |
| 1517 | if err := m.Webhooks[len(m.Webhooks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1518 | return err |
| 1519 | } |
| 1520 | iNdEx = postIndex |
| 1521 | default: |
| 1522 | iNdEx = preIndex |
| 1523 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1524 | if err != nil { |
| 1525 | return err |
| 1526 | } |
| 1527 | if skippy < 0 { |
| 1528 | return ErrInvalidLengthGenerated |
| 1529 | } |
| 1530 | if (iNdEx + skippy) > l { |
| 1531 | return io.ErrUnexpectedEOF |
| 1532 | } |
| 1533 | iNdEx += skippy |
| 1534 | } |
| 1535 | } |
| 1536 | |
| 1537 | if iNdEx > l { |
| 1538 | return io.ErrUnexpectedEOF |
| 1539 | } |
| 1540 | return nil |
| 1541 | } |
| 1542 | func (m *MutatingWebhookConfigurationList) Unmarshal(dAtA []byte) error { |
| 1543 | l := len(dAtA) |
| 1544 | iNdEx := 0 |
| 1545 | for iNdEx < l { |
| 1546 | preIndex := iNdEx |
| 1547 | var wire uint64 |
| 1548 | for shift := uint(0); ; shift += 7 { |
| 1549 | if shift >= 64 { |
| 1550 | return ErrIntOverflowGenerated |
| 1551 | } |
| 1552 | if iNdEx >= l { |
| 1553 | return io.ErrUnexpectedEOF |
| 1554 | } |
| 1555 | b := dAtA[iNdEx] |
| 1556 | iNdEx++ |
| 1557 | wire |= (uint64(b) & 0x7F) << shift |
| 1558 | if b < 0x80 { |
| 1559 | break |
| 1560 | } |
| 1561 | } |
| 1562 | fieldNum := int32(wire >> 3) |
| 1563 | wireType := int(wire & 0x7) |
| 1564 | if wireType == 4 { |
| 1565 | return fmt.Errorf("proto: MutatingWebhookConfigurationList: wiretype end group for non-group") |
| 1566 | } |
| 1567 | if fieldNum <= 0 { |
| 1568 | return fmt.Errorf("proto: MutatingWebhookConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1569 | } |
| 1570 | switch fieldNum { |
| 1571 | case 1: |
| 1572 | if wireType != 2 { |
| 1573 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 1574 | } |
| 1575 | var msglen int |
| 1576 | for shift := uint(0); ; shift += 7 { |
| 1577 | if shift >= 64 { |
| 1578 | return ErrIntOverflowGenerated |
| 1579 | } |
| 1580 | if iNdEx >= l { |
| 1581 | return io.ErrUnexpectedEOF |
| 1582 | } |
| 1583 | b := dAtA[iNdEx] |
| 1584 | iNdEx++ |
| 1585 | msglen |= (int(b) & 0x7F) << shift |
| 1586 | if b < 0x80 { |
| 1587 | break |
| 1588 | } |
| 1589 | } |
| 1590 | if msglen < 0 { |
| 1591 | return ErrInvalidLengthGenerated |
| 1592 | } |
| 1593 | postIndex := iNdEx + msglen |
| 1594 | if postIndex > l { |
| 1595 | return io.ErrUnexpectedEOF |
| 1596 | } |
| 1597 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1598 | return err |
| 1599 | } |
| 1600 | iNdEx = postIndex |
| 1601 | case 2: |
| 1602 | if wireType != 2 { |
| 1603 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 1604 | } |
| 1605 | var msglen int |
| 1606 | for shift := uint(0); ; shift += 7 { |
| 1607 | if shift >= 64 { |
| 1608 | return ErrIntOverflowGenerated |
| 1609 | } |
| 1610 | if iNdEx >= l { |
| 1611 | return io.ErrUnexpectedEOF |
| 1612 | } |
| 1613 | b := dAtA[iNdEx] |
| 1614 | iNdEx++ |
| 1615 | msglen |= (int(b) & 0x7F) << shift |
| 1616 | if b < 0x80 { |
| 1617 | break |
| 1618 | } |
| 1619 | } |
| 1620 | if msglen < 0 { |
| 1621 | return ErrInvalidLengthGenerated |
| 1622 | } |
| 1623 | postIndex := iNdEx + msglen |
| 1624 | if postIndex > l { |
| 1625 | return io.ErrUnexpectedEOF |
| 1626 | } |
| 1627 | m.Items = append(m.Items, MutatingWebhookConfiguration{}) |
| 1628 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1629 | return err |
| 1630 | } |
| 1631 | iNdEx = postIndex |
| 1632 | default: |
| 1633 | iNdEx = preIndex |
| 1634 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1635 | if err != nil { |
| 1636 | return err |
| 1637 | } |
| 1638 | if skippy < 0 { |
| 1639 | return ErrInvalidLengthGenerated |
| 1640 | } |
| 1641 | if (iNdEx + skippy) > l { |
| 1642 | return io.ErrUnexpectedEOF |
| 1643 | } |
| 1644 | iNdEx += skippy |
| 1645 | } |
| 1646 | } |
| 1647 | |
| 1648 | if iNdEx > l { |
| 1649 | return io.ErrUnexpectedEOF |
| 1650 | } |
| 1651 | return nil |
| 1652 | } |
| 1653 | func (m *Rule) Unmarshal(dAtA []byte) error { |
| 1654 | l := len(dAtA) |
| 1655 | iNdEx := 0 |
| 1656 | for iNdEx < l { |
| 1657 | preIndex := iNdEx |
| 1658 | var wire uint64 |
| 1659 | for shift := uint(0); ; shift += 7 { |
| 1660 | if shift >= 64 { |
| 1661 | return ErrIntOverflowGenerated |
| 1662 | } |
| 1663 | if iNdEx >= l { |
| 1664 | return io.ErrUnexpectedEOF |
| 1665 | } |
| 1666 | b := dAtA[iNdEx] |
| 1667 | iNdEx++ |
| 1668 | wire |= (uint64(b) & 0x7F) << shift |
| 1669 | if b < 0x80 { |
| 1670 | break |
| 1671 | } |
| 1672 | } |
| 1673 | fieldNum := int32(wire >> 3) |
| 1674 | wireType := int(wire & 0x7) |
| 1675 | if wireType == 4 { |
| 1676 | return fmt.Errorf("proto: Rule: wiretype end group for non-group") |
| 1677 | } |
| 1678 | if fieldNum <= 0 { |
| 1679 | return fmt.Errorf("proto: Rule: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1680 | } |
| 1681 | switch fieldNum { |
| 1682 | case 1: |
| 1683 | if wireType != 2 { |
| 1684 | return fmt.Errorf("proto: wrong wireType = %d for field APIGroups", wireType) |
| 1685 | } |
| 1686 | var stringLen uint64 |
| 1687 | for shift := uint(0); ; shift += 7 { |
| 1688 | if shift >= 64 { |
| 1689 | return ErrIntOverflowGenerated |
| 1690 | } |
| 1691 | if iNdEx >= l { |
| 1692 | return io.ErrUnexpectedEOF |
| 1693 | } |
| 1694 | b := dAtA[iNdEx] |
| 1695 | iNdEx++ |
| 1696 | stringLen |= (uint64(b) & 0x7F) << shift |
| 1697 | if b < 0x80 { |
| 1698 | break |
| 1699 | } |
| 1700 | } |
| 1701 | intStringLen := int(stringLen) |
| 1702 | if intStringLen < 0 { |
| 1703 | return ErrInvalidLengthGenerated |
| 1704 | } |
| 1705 | postIndex := iNdEx + intStringLen |
| 1706 | if postIndex > l { |
| 1707 | return io.ErrUnexpectedEOF |
| 1708 | } |
| 1709 | m.APIGroups = append(m.APIGroups, string(dAtA[iNdEx:postIndex])) |
| 1710 | iNdEx = postIndex |
| 1711 | case 2: |
| 1712 | if wireType != 2 { |
| 1713 | return fmt.Errorf("proto: wrong wireType = %d for field APIVersions", wireType) |
| 1714 | } |
| 1715 | var stringLen uint64 |
| 1716 | for shift := uint(0); ; shift += 7 { |
| 1717 | if shift >= 64 { |
| 1718 | return ErrIntOverflowGenerated |
| 1719 | } |
| 1720 | if iNdEx >= l { |
| 1721 | return io.ErrUnexpectedEOF |
| 1722 | } |
| 1723 | b := dAtA[iNdEx] |
| 1724 | iNdEx++ |
| 1725 | stringLen |= (uint64(b) & 0x7F) << shift |
| 1726 | if b < 0x80 { |
| 1727 | break |
| 1728 | } |
| 1729 | } |
| 1730 | intStringLen := int(stringLen) |
| 1731 | if intStringLen < 0 { |
| 1732 | return ErrInvalidLengthGenerated |
| 1733 | } |
| 1734 | postIndex := iNdEx + intStringLen |
| 1735 | if postIndex > l { |
| 1736 | return io.ErrUnexpectedEOF |
| 1737 | } |
| 1738 | m.APIVersions = append(m.APIVersions, string(dAtA[iNdEx:postIndex])) |
| 1739 | iNdEx = postIndex |
| 1740 | case 3: |
| 1741 | if wireType != 2 { |
| 1742 | return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) |
| 1743 | } |
| 1744 | var stringLen uint64 |
| 1745 | for shift := uint(0); ; shift += 7 { |
| 1746 | if shift >= 64 { |
| 1747 | return ErrIntOverflowGenerated |
| 1748 | } |
| 1749 | if iNdEx >= l { |
| 1750 | return io.ErrUnexpectedEOF |
| 1751 | } |
| 1752 | b := dAtA[iNdEx] |
| 1753 | iNdEx++ |
| 1754 | stringLen |= (uint64(b) & 0x7F) << shift |
| 1755 | if b < 0x80 { |
| 1756 | break |
| 1757 | } |
| 1758 | } |
| 1759 | intStringLen := int(stringLen) |
| 1760 | if intStringLen < 0 { |
| 1761 | return ErrInvalidLengthGenerated |
| 1762 | } |
| 1763 | postIndex := iNdEx + intStringLen |
| 1764 | if postIndex > l { |
| 1765 | return io.ErrUnexpectedEOF |
| 1766 | } |
| 1767 | m.Resources = append(m.Resources, string(dAtA[iNdEx:postIndex])) |
| 1768 | iNdEx = postIndex |
| 1769 | case 4: |
| 1770 | if wireType != 2 { |
| 1771 | return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType) |
| 1772 | } |
| 1773 | var stringLen uint64 |
| 1774 | for shift := uint(0); ; shift += 7 { |
| 1775 | if shift >= 64 { |
| 1776 | return ErrIntOverflowGenerated |
| 1777 | } |
| 1778 | if iNdEx >= l { |
| 1779 | return io.ErrUnexpectedEOF |
| 1780 | } |
| 1781 | b := dAtA[iNdEx] |
| 1782 | iNdEx++ |
| 1783 | stringLen |= (uint64(b) & 0x7F) << shift |
| 1784 | if b < 0x80 { |
| 1785 | break |
| 1786 | } |
| 1787 | } |
| 1788 | intStringLen := int(stringLen) |
| 1789 | if intStringLen < 0 { |
| 1790 | return ErrInvalidLengthGenerated |
| 1791 | } |
| 1792 | postIndex := iNdEx + intStringLen |
| 1793 | if postIndex > l { |
| 1794 | return io.ErrUnexpectedEOF |
| 1795 | } |
| 1796 | s := ScopeType(dAtA[iNdEx:postIndex]) |
| 1797 | m.Scope = &s |
| 1798 | iNdEx = postIndex |
| 1799 | default: |
| 1800 | iNdEx = preIndex |
| 1801 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1802 | if err != nil { |
| 1803 | return err |
| 1804 | } |
| 1805 | if skippy < 0 { |
| 1806 | return ErrInvalidLengthGenerated |
| 1807 | } |
| 1808 | if (iNdEx + skippy) > l { |
| 1809 | return io.ErrUnexpectedEOF |
| 1810 | } |
| 1811 | iNdEx += skippy |
| 1812 | } |
| 1813 | } |
| 1814 | |
| 1815 | if iNdEx > l { |
| 1816 | return io.ErrUnexpectedEOF |
| 1817 | } |
| 1818 | return nil |
| 1819 | } |
| 1820 | func (m *RuleWithOperations) Unmarshal(dAtA []byte) error { |
| 1821 | l := len(dAtA) |
| 1822 | iNdEx := 0 |
| 1823 | for iNdEx < l { |
| 1824 | preIndex := iNdEx |
| 1825 | var wire uint64 |
| 1826 | for shift := uint(0); ; shift += 7 { |
| 1827 | if shift >= 64 { |
| 1828 | return ErrIntOverflowGenerated |
| 1829 | } |
| 1830 | if iNdEx >= l { |
| 1831 | return io.ErrUnexpectedEOF |
| 1832 | } |
| 1833 | b := dAtA[iNdEx] |
| 1834 | iNdEx++ |
| 1835 | wire |= (uint64(b) & 0x7F) << shift |
| 1836 | if b < 0x80 { |
| 1837 | break |
| 1838 | } |
| 1839 | } |
| 1840 | fieldNum := int32(wire >> 3) |
| 1841 | wireType := int(wire & 0x7) |
| 1842 | if wireType == 4 { |
| 1843 | return fmt.Errorf("proto: RuleWithOperations: wiretype end group for non-group") |
| 1844 | } |
| 1845 | if fieldNum <= 0 { |
| 1846 | return fmt.Errorf("proto: RuleWithOperations: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1847 | } |
| 1848 | switch fieldNum { |
| 1849 | case 1: |
| 1850 | if wireType != 2 { |
| 1851 | return fmt.Errorf("proto: wrong wireType = %d for field Operations", wireType) |
| 1852 | } |
| 1853 | var stringLen uint64 |
| 1854 | for shift := uint(0); ; shift += 7 { |
| 1855 | if shift >= 64 { |
| 1856 | return ErrIntOverflowGenerated |
| 1857 | } |
| 1858 | if iNdEx >= l { |
| 1859 | return io.ErrUnexpectedEOF |
| 1860 | } |
| 1861 | b := dAtA[iNdEx] |
| 1862 | iNdEx++ |
| 1863 | stringLen |= (uint64(b) & 0x7F) << shift |
| 1864 | if b < 0x80 { |
| 1865 | break |
| 1866 | } |
| 1867 | } |
| 1868 | intStringLen := int(stringLen) |
| 1869 | if intStringLen < 0 { |
| 1870 | return ErrInvalidLengthGenerated |
| 1871 | } |
| 1872 | postIndex := iNdEx + intStringLen |
| 1873 | if postIndex > l { |
| 1874 | return io.ErrUnexpectedEOF |
| 1875 | } |
| 1876 | m.Operations = append(m.Operations, OperationType(dAtA[iNdEx:postIndex])) |
| 1877 | iNdEx = postIndex |
| 1878 | case 2: |
| 1879 | if wireType != 2 { |
| 1880 | return fmt.Errorf("proto: wrong wireType = %d for field Rule", wireType) |
| 1881 | } |
| 1882 | var msglen int |
| 1883 | for shift := uint(0); ; shift += 7 { |
| 1884 | if shift >= 64 { |
| 1885 | return ErrIntOverflowGenerated |
| 1886 | } |
| 1887 | if iNdEx >= l { |
| 1888 | return io.ErrUnexpectedEOF |
| 1889 | } |
| 1890 | b := dAtA[iNdEx] |
| 1891 | iNdEx++ |
| 1892 | msglen |= (int(b) & 0x7F) << shift |
| 1893 | if b < 0x80 { |
| 1894 | break |
| 1895 | } |
| 1896 | } |
| 1897 | if msglen < 0 { |
| 1898 | return ErrInvalidLengthGenerated |
| 1899 | } |
| 1900 | postIndex := iNdEx + msglen |
| 1901 | if postIndex > l { |
| 1902 | return io.ErrUnexpectedEOF |
| 1903 | } |
| 1904 | if err := m.Rule.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 1905 | return err |
| 1906 | } |
| 1907 | iNdEx = postIndex |
| 1908 | default: |
| 1909 | iNdEx = preIndex |
| 1910 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 1911 | if err != nil { |
| 1912 | return err |
| 1913 | } |
| 1914 | if skippy < 0 { |
| 1915 | return ErrInvalidLengthGenerated |
| 1916 | } |
| 1917 | if (iNdEx + skippy) > l { |
| 1918 | return io.ErrUnexpectedEOF |
| 1919 | } |
| 1920 | iNdEx += skippy |
| 1921 | } |
| 1922 | } |
| 1923 | |
| 1924 | if iNdEx > l { |
| 1925 | return io.ErrUnexpectedEOF |
| 1926 | } |
| 1927 | return nil |
| 1928 | } |
| 1929 | func (m *ServiceReference) Unmarshal(dAtA []byte) error { |
| 1930 | l := len(dAtA) |
| 1931 | iNdEx := 0 |
| 1932 | for iNdEx < l { |
| 1933 | preIndex := iNdEx |
| 1934 | var wire uint64 |
| 1935 | for shift := uint(0); ; shift += 7 { |
| 1936 | if shift >= 64 { |
| 1937 | return ErrIntOverflowGenerated |
| 1938 | } |
| 1939 | if iNdEx >= l { |
| 1940 | return io.ErrUnexpectedEOF |
| 1941 | } |
| 1942 | b := dAtA[iNdEx] |
| 1943 | iNdEx++ |
| 1944 | wire |= (uint64(b) & 0x7F) << shift |
| 1945 | if b < 0x80 { |
| 1946 | break |
| 1947 | } |
| 1948 | } |
| 1949 | fieldNum := int32(wire >> 3) |
| 1950 | wireType := int(wire & 0x7) |
| 1951 | if wireType == 4 { |
| 1952 | return fmt.Errorf("proto: ServiceReference: wiretype end group for non-group") |
| 1953 | } |
| 1954 | if fieldNum <= 0 { |
| 1955 | return fmt.Errorf("proto: ServiceReference: illegal tag %d (wire type %d)", fieldNum, wire) |
| 1956 | } |
| 1957 | switch fieldNum { |
| 1958 | case 1: |
| 1959 | if wireType != 2 { |
| 1960 | return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) |
| 1961 | } |
| 1962 | var stringLen uint64 |
| 1963 | for shift := uint(0); ; shift += 7 { |
| 1964 | if shift >= 64 { |
| 1965 | return ErrIntOverflowGenerated |
| 1966 | } |
| 1967 | if iNdEx >= l { |
| 1968 | return io.ErrUnexpectedEOF |
| 1969 | } |
| 1970 | b := dAtA[iNdEx] |
| 1971 | iNdEx++ |
| 1972 | stringLen |= (uint64(b) & 0x7F) << shift |
| 1973 | if b < 0x80 { |
| 1974 | break |
| 1975 | } |
| 1976 | } |
| 1977 | intStringLen := int(stringLen) |
| 1978 | if intStringLen < 0 { |
| 1979 | return ErrInvalidLengthGenerated |
| 1980 | } |
| 1981 | postIndex := iNdEx + intStringLen |
| 1982 | if postIndex > l { |
| 1983 | return io.ErrUnexpectedEOF |
| 1984 | } |
| 1985 | m.Namespace = string(dAtA[iNdEx:postIndex]) |
| 1986 | iNdEx = postIndex |
| 1987 | case 2: |
| 1988 | if wireType != 2 { |
| 1989 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 1990 | } |
| 1991 | var stringLen uint64 |
| 1992 | for shift := uint(0); ; shift += 7 { |
| 1993 | if shift >= 64 { |
| 1994 | return ErrIntOverflowGenerated |
| 1995 | } |
| 1996 | if iNdEx >= l { |
| 1997 | return io.ErrUnexpectedEOF |
| 1998 | } |
| 1999 | b := dAtA[iNdEx] |
| 2000 | iNdEx++ |
| 2001 | stringLen |= (uint64(b) & 0x7F) << shift |
| 2002 | if b < 0x80 { |
| 2003 | break |
| 2004 | } |
| 2005 | } |
| 2006 | intStringLen := int(stringLen) |
| 2007 | if intStringLen < 0 { |
| 2008 | return ErrInvalidLengthGenerated |
| 2009 | } |
| 2010 | postIndex := iNdEx + intStringLen |
| 2011 | if postIndex > l { |
| 2012 | return io.ErrUnexpectedEOF |
| 2013 | } |
| 2014 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 2015 | iNdEx = postIndex |
| 2016 | case 3: |
| 2017 | if wireType != 2 { |
| 2018 | return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) |
| 2019 | } |
| 2020 | var stringLen uint64 |
| 2021 | for shift := uint(0); ; shift += 7 { |
| 2022 | if shift >= 64 { |
| 2023 | return ErrIntOverflowGenerated |
| 2024 | } |
| 2025 | if iNdEx >= l { |
| 2026 | return io.ErrUnexpectedEOF |
| 2027 | } |
| 2028 | b := dAtA[iNdEx] |
| 2029 | iNdEx++ |
| 2030 | stringLen |= (uint64(b) & 0x7F) << shift |
| 2031 | if b < 0x80 { |
| 2032 | break |
| 2033 | } |
| 2034 | } |
| 2035 | intStringLen := int(stringLen) |
| 2036 | if intStringLen < 0 { |
| 2037 | return ErrInvalidLengthGenerated |
| 2038 | } |
| 2039 | postIndex := iNdEx + intStringLen |
| 2040 | if postIndex > l { |
| 2041 | return io.ErrUnexpectedEOF |
| 2042 | } |
| 2043 | s := string(dAtA[iNdEx:postIndex]) |
| 2044 | m.Path = &s |
| 2045 | iNdEx = postIndex |
| 2046 | case 4: |
| 2047 | if wireType != 0 { |
| 2048 | return fmt.Errorf("proto: wrong wireType = %d for field Port", wireType) |
| 2049 | } |
| 2050 | var v int32 |
| 2051 | for shift := uint(0); ; shift += 7 { |
| 2052 | if shift >= 64 { |
| 2053 | return ErrIntOverflowGenerated |
| 2054 | } |
| 2055 | if iNdEx >= l { |
| 2056 | return io.ErrUnexpectedEOF |
| 2057 | } |
| 2058 | b := dAtA[iNdEx] |
| 2059 | iNdEx++ |
| 2060 | v |= (int32(b) & 0x7F) << shift |
| 2061 | if b < 0x80 { |
| 2062 | break |
| 2063 | } |
| 2064 | } |
| 2065 | m.Port = &v |
| 2066 | default: |
| 2067 | iNdEx = preIndex |
| 2068 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2069 | if err != nil { |
| 2070 | return err |
| 2071 | } |
| 2072 | if skippy < 0 { |
| 2073 | return ErrInvalidLengthGenerated |
| 2074 | } |
| 2075 | if (iNdEx + skippy) > l { |
| 2076 | return io.ErrUnexpectedEOF |
| 2077 | } |
| 2078 | iNdEx += skippy |
| 2079 | } |
| 2080 | } |
| 2081 | |
| 2082 | if iNdEx > l { |
| 2083 | return io.ErrUnexpectedEOF |
| 2084 | } |
| 2085 | return nil |
| 2086 | } |
| 2087 | func (m *ValidatingWebhook) Unmarshal(dAtA []byte) error { |
| 2088 | l := len(dAtA) |
| 2089 | iNdEx := 0 |
| 2090 | for iNdEx < l { |
| 2091 | preIndex := iNdEx |
| 2092 | var wire uint64 |
| 2093 | for shift := uint(0); ; shift += 7 { |
| 2094 | if shift >= 64 { |
| 2095 | return ErrIntOverflowGenerated |
| 2096 | } |
| 2097 | if iNdEx >= l { |
| 2098 | return io.ErrUnexpectedEOF |
| 2099 | } |
| 2100 | b := dAtA[iNdEx] |
| 2101 | iNdEx++ |
| 2102 | wire |= (uint64(b) & 0x7F) << shift |
| 2103 | if b < 0x80 { |
| 2104 | break |
| 2105 | } |
| 2106 | } |
| 2107 | fieldNum := int32(wire >> 3) |
| 2108 | wireType := int(wire & 0x7) |
| 2109 | if wireType == 4 { |
| 2110 | return fmt.Errorf("proto: ValidatingWebhook: wiretype end group for non-group") |
| 2111 | } |
| 2112 | if fieldNum <= 0 { |
| 2113 | return fmt.Errorf("proto: ValidatingWebhook: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2114 | } |
| 2115 | switch fieldNum { |
| 2116 | case 1: |
| 2117 | if wireType != 2 { |
| 2118 | return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) |
| 2119 | } |
| 2120 | var stringLen uint64 |
| 2121 | for shift := uint(0); ; shift += 7 { |
| 2122 | if shift >= 64 { |
| 2123 | return ErrIntOverflowGenerated |
| 2124 | } |
| 2125 | if iNdEx >= l { |
| 2126 | return io.ErrUnexpectedEOF |
| 2127 | } |
| 2128 | b := dAtA[iNdEx] |
| 2129 | iNdEx++ |
| 2130 | stringLen |= (uint64(b) & 0x7F) << shift |
| 2131 | if b < 0x80 { |
| 2132 | break |
| 2133 | } |
| 2134 | } |
| 2135 | intStringLen := int(stringLen) |
| 2136 | if intStringLen < 0 { |
| 2137 | return ErrInvalidLengthGenerated |
| 2138 | } |
| 2139 | postIndex := iNdEx + intStringLen |
| 2140 | if postIndex > l { |
| 2141 | return io.ErrUnexpectedEOF |
| 2142 | } |
| 2143 | m.Name = string(dAtA[iNdEx:postIndex]) |
| 2144 | iNdEx = postIndex |
| 2145 | case 2: |
| 2146 | if wireType != 2 { |
| 2147 | return fmt.Errorf("proto: wrong wireType = %d for field ClientConfig", wireType) |
| 2148 | } |
| 2149 | var msglen int |
| 2150 | for shift := uint(0); ; shift += 7 { |
| 2151 | if shift >= 64 { |
| 2152 | return ErrIntOverflowGenerated |
| 2153 | } |
| 2154 | if iNdEx >= l { |
| 2155 | return io.ErrUnexpectedEOF |
| 2156 | } |
| 2157 | b := dAtA[iNdEx] |
| 2158 | iNdEx++ |
| 2159 | msglen |= (int(b) & 0x7F) << shift |
| 2160 | if b < 0x80 { |
| 2161 | break |
| 2162 | } |
| 2163 | } |
| 2164 | if msglen < 0 { |
| 2165 | return ErrInvalidLengthGenerated |
| 2166 | } |
| 2167 | postIndex := iNdEx + msglen |
| 2168 | if postIndex > l { |
| 2169 | return io.ErrUnexpectedEOF |
| 2170 | } |
| 2171 | if err := m.ClientConfig.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2172 | return err |
| 2173 | } |
| 2174 | iNdEx = postIndex |
| 2175 | case 3: |
| 2176 | if wireType != 2 { |
| 2177 | return fmt.Errorf("proto: wrong wireType = %d for field Rules", wireType) |
| 2178 | } |
| 2179 | var msglen int |
| 2180 | for shift := uint(0); ; shift += 7 { |
| 2181 | if shift >= 64 { |
| 2182 | return ErrIntOverflowGenerated |
| 2183 | } |
| 2184 | if iNdEx >= l { |
| 2185 | return io.ErrUnexpectedEOF |
| 2186 | } |
| 2187 | b := dAtA[iNdEx] |
| 2188 | iNdEx++ |
| 2189 | msglen |= (int(b) & 0x7F) << shift |
| 2190 | if b < 0x80 { |
| 2191 | break |
| 2192 | } |
| 2193 | } |
| 2194 | if msglen < 0 { |
| 2195 | return ErrInvalidLengthGenerated |
| 2196 | } |
| 2197 | postIndex := iNdEx + msglen |
| 2198 | if postIndex > l { |
| 2199 | return io.ErrUnexpectedEOF |
| 2200 | } |
| 2201 | m.Rules = append(m.Rules, RuleWithOperations{}) |
| 2202 | if err := m.Rules[len(m.Rules)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2203 | return err |
| 2204 | } |
| 2205 | iNdEx = postIndex |
| 2206 | case 4: |
| 2207 | if wireType != 2 { |
| 2208 | return fmt.Errorf("proto: wrong wireType = %d for field FailurePolicy", wireType) |
| 2209 | } |
| 2210 | var stringLen uint64 |
| 2211 | for shift := uint(0); ; shift += 7 { |
| 2212 | if shift >= 64 { |
| 2213 | return ErrIntOverflowGenerated |
| 2214 | } |
| 2215 | if iNdEx >= l { |
| 2216 | return io.ErrUnexpectedEOF |
| 2217 | } |
| 2218 | b := dAtA[iNdEx] |
| 2219 | iNdEx++ |
| 2220 | stringLen |= (uint64(b) & 0x7F) << shift |
| 2221 | if b < 0x80 { |
| 2222 | break |
| 2223 | } |
| 2224 | } |
| 2225 | intStringLen := int(stringLen) |
| 2226 | if intStringLen < 0 { |
| 2227 | return ErrInvalidLengthGenerated |
| 2228 | } |
| 2229 | postIndex := iNdEx + intStringLen |
| 2230 | if postIndex > l { |
| 2231 | return io.ErrUnexpectedEOF |
| 2232 | } |
| 2233 | s := FailurePolicyType(dAtA[iNdEx:postIndex]) |
| 2234 | m.FailurePolicy = &s |
| 2235 | iNdEx = postIndex |
| 2236 | case 5: |
| 2237 | if wireType != 2 { |
| 2238 | return fmt.Errorf("proto: wrong wireType = %d for field NamespaceSelector", wireType) |
| 2239 | } |
| 2240 | var msglen int |
| 2241 | for shift := uint(0); ; shift += 7 { |
| 2242 | if shift >= 64 { |
| 2243 | return ErrIntOverflowGenerated |
| 2244 | } |
| 2245 | if iNdEx >= l { |
| 2246 | return io.ErrUnexpectedEOF |
| 2247 | } |
| 2248 | b := dAtA[iNdEx] |
| 2249 | iNdEx++ |
| 2250 | msglen |= (int(b) & 0x7F) << shift |
| 2251 | if b < 0x80 { |
| 2252 | break |
| 2253 | } |
| 2254 | } |
| 2255 | if msglen < 0 { |
| 2256 | return ErrInvalidLengthGenerated |
| 2257 | } |
| 2258 | postIndex := iNdEx + msglen |
| 2259 | if postIndex > l { |
| 2260 | return io.ErrUnexpectedEOF |
| 2261 | } |
| 2262 | if m.NamespaceSelector == nil { |
| 2263 | m.NamespaceSelector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{} |
| 2264 | } |
| 2265 | if err := m.NamespaceSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2266 | return err |
| 2267 | } |
| 2268 | iNdEx = postIndex |
| 2269 | case 6: |
| 2270 | if wireType != 2 { |
| 2271 | return fmt.Errorf("proto: wrong wireType = %d for field SideEffects", wireType) |
| 2272 | } |
| 2273 | var stringLen uint64 |
| 2274 | for shift := uint(0); ; shift += 7 { |
| 2275 | if shift >= 64 { |
| 2276 | return ErrIntOverflowGenerated |
| 2277 | } |
| 2278 | if iNdEx >= l { |
| 2279 | return io.ErrUnexpectedEOF |
| 2280 | } |
| 2281 | b := dAtA[iNdEx] |
| 2282 | iNdEx++ |
| 2283 | stringLen |= (uint64(b) & 0x7F) << shift |
| 2284 | if b < 0x80 { |
| 2285 | break |
| 2286 | } |
| 2287 | } |
| 2288 | intStringLen := int(stringLen) |
| 2289 | if intStringLen < 0 { |
| 2290 | return ErrInvalidLengthGenerated |
| 2291 | } |
| 2292 | postIndex := iNdEx + intStringLen |
| 2293 | if postIndex > l { |
| 2294 | return io.ErrUnexpectedEOF |
| 2295 | } |
| 2296 | s := SideEffectClass(dAtA[iNdEx:postIndex]) |
| 2297 | m.SideEffects = &s |
| 2298 | iNdEx = postIndex |
| 2299 | case 7: |
| 2300 | if wireType != 0 { |
| 2301 | return fmt.Errorf("proto: wrong wireType = %d for field TimeoutSeconds", wireType) |
| 2302 | } |
| 2303 | var v int32 |
| 2304 | for shift := uint(0); ; shift += 7 { |
| 2305 | if shift >= 64 { |
| 2306 | return ErrIntOverflowGenerated |
| 2307 | } |
| 2308 | if iNdEx >= l { |
| 2309 | return io.ErrUnexpectedEOF |
| 2310 | } |
| 2311 | b := dAtA[iNdEx] |
| 2312 | iNdEx++ |
| 2313 | v |= (int32(b) & 0x7F) << shift |
| 2314 | if b < 0x80 { |
| 2315 | break |
| 2316 | } |
| 2317 | } |
| 2318 | m.TimeoutSeconds = &v |
| 2319 | case 8: |
| 2320 | if wireType != 2 { |
| 2321 | return fmt.Errorf("proto: wrong wireType = %d for field AdmissionReviewVersions", wireType) |
| 2322 | } |
| 2323 | var stringLen uint64 |
| 2324 | for shift := uint(0); ; shift += 7 { |
| 2325 | if shift >= 64 { |
| 2326 | return ErrIntOverflowGenerated |
| 2327 | } |
| 2328 | if iNdEx >= l { |
| 2329 | return io.ErrUnexpectedEOF |
| 2330 | } |
| 2331 | b := dAtA[iNdEx] |
| 2332 | iNdEx++ |
| 2333 | stringLen |= (uint64(b) & 0x7F) << shift |
| 2334 | if b < 0x80 { |
| 2335 | break |
| 2336 | } |
| 2337 | } |
| 2338 | intStringLen := int(stringLen) |
| 2339 | if intStringLen < 0 { |
| 2340 | return ErrInvalidLengthGenerated |
| 2341 | } |
| 2342 | postIndex := iNdEx + intStringLen |
| 2343 | if postIndex > l { |
| 2344 | return io.ErrUnexpectedEOF |
| 2345 | } |
| 2346 | m.AdmissionReviewVersions = append(m.AdmissionReviewVersions, string(dAtA[iNdEx:postIndex])) |
| 2347 | iNdEx = postIndex |
| 2348 | case 9: |
| 2349 | if wireType != 2 { |
| 2350 | return fmt.Errorf("proto: wrong wireType = %d for field MatchPolicy", wireType) |
| 2351 | } |
| 2352 | var stringLen uint64 |
| 2353 | for shift := uint(0); ; shift += 7 { |
| 2354 | if shift >= 64 { |
| 2355 | return ErrIntOverflowGenerated |
| 2356 | } |
| 2357 | if iNdEx >= l { |
| 2358 | return io.ErrUnexpectedEOF |
| 2359 | } |
| 2360 | b := dAtA[iNdEx] |
| 2361 | iNdEx++ |
| 2362 | stringLen |= (uint64(b) & 0x7F) << shift |
| 2363 | if b < 0x80 { |
| 2364 | break |
| 2365 | } |
| 2366 | } |
| 2367 | intStringLen := int(stringLen) |
| 2368 | if intStringLen < 0 { |
| 2369 | return ErrInvalidLengthGenerated |
| 2370 | } |
| 2371 | postIndex := iNdEx + intStringLen |
| 2372 | if postIndex > l { |
| 2373 | return io.ErrUnexpectedEOF |
| 2374 | } |
| 2375 | s := MatchPolicyType(dAtA[iNdEx:postIndex]) |
| 2376 | m.MatchPolicy = &s |
| 2377 | iNdEx = postIndex |
| 2378 | case 10: |
| 2379 | if wireType != 2 { |
| 2380 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectSelector", wireType) |
| 2381 | } |
| 2382 | var msglen int |
| 2383 | for shift := uint(0); ; shift += 7 { |
| 2384 | if shift >= 64 { |
| 2385 | return ErrIntOverflowGenerated |
| 2386 | } |
| 2387 | if iNdEx >= l { |
| 2388 | return io.ErrUnexpectedEOF |
| 2389 | } |
| 2390 | b := dAtA[iNdEx] |
| 2391 | iNdEx++ |
| 2392 | msglen |= (int(b) & 0x7F) << shift |
| 2393 | if b < 0x80 { |
| 2394 | break |
| 2395 | } |
| 2396 | } |
| 2397 | if msglen < 0 { |
| 2398 | return ErrInvalidLengthGenerated |
| 2399 | } |
| 2400 | postIndex := iNdEx + msglen |
| 2401 | if postIndex > l { |
| 2402 | return io.ErrUnexpectedEOF |
| 2403 | } |
| 2404 | if m.ObjectSelector == nil { |
| 2405 | m.ObjectSelector = &k8s_io_apimachinery_pkg_apis_meta_v1.LabelSelector{} |
| 2406 | } |
| 2407 | if err := m.ObjectSelector.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2408 | return err |
| 2409 | } |
| 2410 | iNdEx = postIndex |
| 2411 | default: |
| 2412 | iNdEx = preIndex |
| 2413 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2414 | if err != nil { |
| 2415 | return err |
| 2416 | } |
| 2417 | if skippy < 0 { |
| 2418 | return ErrInvalidLengthGenerated |
| 2419 | } |
| 2420 | if (iNdEx + skippy) > l { |
| 2421 | return io.ErrUnexpectedEOF |
| 2422 | } |
| 2423 | iNdEx += skippy |
| 2424 | } |
| 2425 | } |
| 2426 | |
| 2427 | if iNdEx > l { |
| 2428 | return io.ErrUnexpectedEOF |
| 2429 | } |
| 2430 | return nil |
| 2431 | } |
| 2432 | func (m *ValidatingWebhookConfiguration) Unmarshal(dAtA []byte) error { |
| 2433 | l := len(dAtA) |
| 2434 | iNdEx := 0 |
| 2435 | for iNdEx < l { |
| 2436 | preIndex := iNdEx |
| 2437 | var wire uint64 |
| 2438 | for shift := uint(0); ; shift += 7 { |
| 2439 | if shift >= 64 { |
| 2440 | return ErrIntOverflowGenerated |
| 2441 | } |
| 2442 | if iNdEx >= l { |
| 2443 | return io.ErrUnexpectedEOF |
| 2444 | } |
| 2445 | b := dAtA[iNdEx] |
| 2446 | iNdEx++ |
| 2447 | wire |= (uint64(b) & 0x7F) << shift |
| 2448 | if b < 0x80 { |
| 2449 | break |
| 2450 | } |
| 2451 | } |
| 2452 | fieldNum := int32(wire >> 3) |
| 2453 | wireType := int(wire & 0x7) |
| 2454 | if wireType == 4 { |
| 2455 | return fmt.Errorf("proto: ValidatingWebhookConfiguration: wiretype end group for non-group") |
| 2456 | } |
| 2457 | if fieldNum <= 0 { |
| 2458 | return fmt.Errorf("proto: ValidatingWebhookConfiguration: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2459 | } |
| 2460 | switch fieldNum { |
| 2461 | case 1: |
| 2462 | if wireType != 2 { |
| 2463 | return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) |
| 2464 | } |
| 2465 | var msglen int |
| 2466 | for shift := uint(0); ; shift += 7 { |
| 2467 | if shift >= 64 { |
| 2468 | return ErrIntOverflowGenerated |
| 2469 | } |
| 2470 | if iNdEx >= l { |
| 2471 | return io.ErrUnexpectedEOF |
| 2472 | } |
| 2473 | b := dAtA[iNdEx] |
| 2474 | iNdEx++ |
| 2475 | msglen |= (int(b) & 0x7F) << shift |
| 2476 | if b < 0x80 { |
| 2477 | break |
| 2478 | } |
| 2479 | } |
| 2480 | if msglen < 0 { |
| 2481 | return ErrInvalidLengthGenerated |
| 2482 | } |
| 2483 | postIndex := iNdEx + msglen |
| 2484 | if postIndex > l { |
| 2485 | return io.ErrUnexpectedEOF |
| 2486 | } |
| 2487 | if err := m.ObjectMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2488 | return err |
| 2489 | } |
| 2490 | iNdEx = postIndex |
| 2491 | case 2: |
| 2492 | if wireType != 2 { |
| 2493 | return fmt.Errorf("proto: wrong wireType = %d for field Webhooks", wireType) |
| 2494 | } |
| 2495 | var msglen int |
| 2496 | for shift := uint(0); ; shift += 7 { |
| 2497 | if shift >= 64 { |
| 2498 | return ErrIntOverflowGenerated |
| 2499 | } |
| 2500 | if iNdEx >= l { |
| 2501 | return io.ErrUnexpectedEOF |
| 2502 | } |
| 2503 | b := dAtA[iNdEx] |
| 2504 | iNdEx++ |
| 2505 | msglen |= (int(b) & 0x7F) << shift |
| 2506 | if b < 0x80 { |
| 2507 | break |
| 2508 | } |
| 2509 | } |
| 2510 | if msglen < 0 { |
| 2511 | return ErrInvalidLengthGenerated |
| 2512 | } |
| 2513 | postIndex := iNdEx + msglen |
| 2514 | if postIndex > l { |
| 2515 | return io.ErrUnexpectedEOF |
| 2516 | } |
| 2517 | m.Webhooks = append(m.Webhooks, ValidatingWebhook{}) |
| 2518 | if err := m.Webhooks[len(m.Webhooks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2519 | return err |
| 2520 | } |
| 2521 | iNdEx = postIndex |
| 2522 | default: |
| 2523 | iNdEx = preIndex |
| 2524 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2525 | if err != nil { |
| 2526 | return err |
| 2527 | } |
| 2528 | if skippy < 0 { |
| 2529 | return ErrInvalidLengthGenerated |
| 2530 | } |
| 2531 | if (iNdEx + skippy) > l { |
| 2532 | return io.ErrUnexpectedEOF |
| 2533 | } |
| 2534 | iNdEx += skippy |
| 2535 | } |
| 2536 | } |
| 2537 | |
| 2538 | if iNdEx > l { |
| 2539 | return io.ErrUnexpectedEOF |
| 2540 | } |
| 2541 | return nil |
| 2542 | } |
| 2543 | func (m *ValidatingWebhookConfigurationList) Unmarshal(dAtA []byte) error { |
| 2544 | l := len(dAtA) |
| 2545 | iNdEx := 0 |
| 2546 | for iNdEx < l { |
| 2547 | preIndex := iNdEx |
| 2548 | var wire uint64 |
| 2549 | for shift := uint(0); ; shift += 7 { |
| 2550 | if shift >= 64 { |
| 2551 | return ErrIntOverflowGenerated |
| 2552 | } |
| 2553 | if iNdEx >= l { |
| 2554 | return io.ErrUnexpectedEOF |
| 2555 | } |
| 2556 | b := dAtA[iNdEx] |
| 2557 | iNdEx++ |
| 2558 | wire |= (uint64(b) & 0x7F) << shift |
| 2559 | if b < 0x80 { |
| 2560 | break |
| 2561 | } |
| 2562 | } |
| 2563 | fieldNum := int32(wire >> 3) |
| 2564 | wireType := int(wire & 0x7) |
| 2565 | if wireType == 4 { |
| 2566 | return fmt.Errorf("proto: ValidatingWebhookConfigurationList: wiretype end group for non-group") |
| 2567 | } |
| 2568 | if fieldNum <= 0 { |
| 2569 | return fmt.Errorf("proto: ValidatingWebhookConfigurationList: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2570 | } |
| 2571 | switch fieldNum { |
| 2572 | case 1: |
| 2573 | if wireType != 2 { |
| 2574 | return fmt.Errorf("proto: wrong wireType = %d for field ListMeta", wireType) |
| 2575 | } |
| 2576 | var msglen int |
| 2577 | for shift := uint(0); ; shift += 7 { |
| 2578 | if shift >= 64 { |
| 2579 | return ErrIntOverflowGenerated |
| 2580 | } |
| 2581 | if iNdEx >= l { |
| 2582 | return io.ErrUnexpectedEOF |
| 2583 | } |
| 2584 | b := dAtA[iNdEx] |
| 2585 | iNdEx++ |
| 2586 | msglen |= (int(b) & 0x7F) << shift |
| 2587 | if b < 0x80 { |
| 2588 | break |
| 2589 | } |
| 2590 | } |
| 2591 | if msglen < 0 { |
| 2592 | return ErrInvalidLengthGenerated |
| 2593 | } |
| 2594 | postIndex := iNdEx + msglen |
| 2595 | if postIndex > l { |
| 2596 | return io.ErrUnexpectedEOF |
| 2597 | } |
| 2598 | if err := m.ListMeta.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2599 | return err |
| 2600 | } |
| 2601 | iNdEx = postIndex |
| 2602 | case 2: |
| 2603 | if wireType != 2 { |
| 2604 | return fmt.Errorf("proto: wrong wireType = %d for field Items", wireType) |
| 2605 | } |
| 2606 | var msglen int |
| 2607 | for shift := uint(0); ; shift += 7 { |
| 2608 | if shift >= 64 { |
| 2609 | return ErrIntOverflowGenerated |
| 2610 | } |
| 2611 | if iNdEx >= l { |
| 2612 | return io.ErrUnexpectedEOF |
| 2613 | } |
| 2614 | b := dAtA[iNdEx] |
| 2615 | iNdEx++ |
| 2616 | msglen |= (int(b) & 0x7F) << shift |
| 2617 | if b < 0x80 { |
| 2618 | break |
| 2619 | } |
| 2620 | } |
| 2621 | if msglen < 0 { |
| 2622 | return ErrInvalidLengthGenerated |
| 2623 | } |
| 2624 | postIndex := iNdEx + msglen |
| 2625 | if postIndex > l { |
| 2626 | return io.ErrUnexpectedEOF |
| 2627 | } |
| 2628 | m.Items = append(m.Items, ValidatingWebhookConfiguration{}) |
| 2629 | if err := m.Items[len(m.Items)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2630 | return err |
| 2631 | } |
| 2632 | iNdEx = postIndex |
| 2633 | default: |
| 2634 | iNdEx = preIndex |
| 2635 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2636 | if err != nil { |
| 2637 | return err |
| 2638 | } |
| 2639 | if skippy < 0 { |
| 2640 | return ErrInvalidLengthGenerated |
| 2641 | } |
| 2642 | if (iNdEx + skippy) > l { |
| 2643 | return io.ErrUnexpectedEOF |
| 2644 | } |
| 2645 | iNdEx += skippy |
| 2646 | } |
| 2647 | } |
| 2648 | |
| 2649 | if iNdEx > l { |
| 2650 | return io.ErrUnexpectedEOF |
| 2651 | } |
| 2652 | return nil |
| 2653 | } |
| 2654 | func (m *WebhookClientConfig) Unmarshal(dAtA []byte) error { |
| 2655 | l := len(dAtA) |
| 2656 | iNdEx := 0 |
| 2657 | for iNdEx < l { |
| 2658 | preIndex := iNdEx |
| 2659 | var wire uint64 |
| 2660 | for shift := uint(0); ; shift += 7 { |
| 2661 | if shift >= 64 { |
| 2662 | return ErrIntOverflowGenerated |
| 2663 | } |
| 2664 | if iNdEx >= l { |
| 2665 | return io.ErrUnexpectedEOF |
| 2666 | } |
| 2667 | b := dAtA[iNdEx] |
| 2668 | iNdEx++ |
| 2669 | wire |= (uint64(b) & 0x7F) << shift |
| 2670 | if b < 0x80 { |
| 2671 | break |
| 2672 | } |
| 2673 | } |
| 2674 | fieldNum := int32(wire >> 3) |
| 2675 | wireType := int(wire & 0x7) |
| 2676 | if wireType == 4 { |
| 2677 | return fmt.Errorf("proto: WebhookClientConfig: wiretype end group for non-group") |
| 2678 | } |
| 2679 | if fieldNum <= 0 { |
| 2680 | return fmt.Errorf("proto: WebhookClientConfig: illegal tag %d (wire type %d)", fieldNum, wire) |
| 2681 | } |
| 2682 | switch fieldNum { |
| 2683 | case 1: |
| 2684 | if wireType != 2 { |
| 2685 | return fmt.Errorf("proto: wrong wireType = %d for field Service", wireType) |
| 2686 | } |
| 2687 | var msglen int |
| 2688 | for shift := uint(0); ; shift += 7 { |
| 2689 | if shift >= 64 { |
| 2690 | return ErrIntOverflowGenerated |
| 2691 | } |
| 2692 | if iNdEx >= l { |
| 2693 | return io.ErrUnexpectedEOF |
| 2694 | } |
| 2695 | b := dAtA[iNdEx] |
| 2696 | iNdEx++ |
| 2697 | msglen |= (int(b) & 0x7F) << shift |
| 2698 | if b < 0x80 { |
| 2699 | break |
| 2700 | } |
| 2701 | } |
| 2702 | if msglen < 0 { |
| 2703 | return ErrInvalidLengthGenerated |
| 2704 | } |
| 2705 | postIndex := iNdEx + msglen |
| 2706 | if postIndex > l { |
| 2707 | return io.ErrUnexpectedEOF |
| 2708 | } |
| 2709 | if m.Service == nil { |
| 2710 | m.Service = &ServiceReference{} |
| 2711 | } |
| 2712 | if err := m.Service.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
| 2713 | return err |
| 2714 | } |
| 2715 | iNdEx = postIndex |
| 2716 | case 2: |
| 2717 | if wireType != 2 { |
| 2718 | return fmt.Errorf("proto: wrong wireType = %d for field CABundle", wireType) |
| 2719 | } |
| 2720 | var byteLen int |
| 2721 | for shift := uint(0); ; shift += 7 { |
| 2722 | if shift >= 64 { |
| 2723 | return ErrIntOverflowGenerated |
| 2724 | } |
| 2725 | if iNdEx >= l { |
| 2726 | return io.ErrUnexpectedEOF |
| 2727 | } |
| 2728 | b := dAtA[iNdEx] |
| 2729 | iNdEx++ |
| 2730 | byteLen |= (int(b) & 0x7F) << shift |
| 2731 | if b < 0x80 { |
| 2732 | break |
| 2733 | } |
| 2734 | } |
| 2735 | if byteLen < 0 { |
| 2736 | return ErrInvalidLengthGenerated |
| 2737 | } |
| 2738 | postIndex := iNdEx + byteLen |
| 2739 | if postIndex > l { |
| 2740 | return io.ErrUnexpectedEOF |
| 2741 | } |
| 2742 | m.CABundle = append(m.CABundle[:0], dAtA[iNdEx:postIndex]...) |
| 2743 | if m.CABundle == nil { |
| 2744 | m.CABundle = []byte{} |
| 2745 | } |
| 2746 | iNdEx = postIndex |
| 2747 | case 3: |
| 2748 | if wireType != 2 { |
| 2749 | return fmt.Errorf("proto: wrong wireType = %d for field URL", wireType) |
| 2750 | } |
| 2751 | var stringLen uint64 |
| 2752 | for shift := uint(0); ; shift += 7 { |
| 2753 | if shift >= 64 { |
| 2754 | return ErrIntOverflowGenerated |
| 2755 | } |
| 2756 | if iNdEx >= l { |
| 2757 | return io.ErrUnexpectedEOF |
| 2758 | } |
| 2759 | b := dAtA[iNdEx] |
| 2760 | iNdEx++ |
| 2761 | stringLen |= (uint64(b) & 0x7F) << shift |
| 2762 | if b < 0x80 { |
| 2763 | break |
| 2764 | } |
| 2765 | } |
| 2766 | intStringLen := int(stringLen) |
| 2767 | if intStringLen < 0 { |
| 2768 | return ErrInvalidLengthGenerated |
| 2769 | } |
| 2770 | postIndex := iNdEx + intStringLen |
| 2771 | if postIndex > l { |
| 2772 | return io.ErrUnexpectedEOF |
| 2773 | } |
| 2774 | s := string(dAtA[iNdEx:postIndex]) |
| 2775 | m.URL = &s |
| 2776 | iNdEx = postIndex |
| 2777 | default: |
| 2778 | iNdEx = preIndex |
| 2779 | skippy, err := skipGenerated(dAtA[iNdEx:]) |
| 2780 | if err != nil { |
| 2781 | return err |
| 2782 | } |
| 2783 | if skippy < 0 { |
| 2784 | return ErrInvalidLengthGenerated |
| 2785 | } |
| 2786 | if (iNdEx + skippy) > l { |
| 2787 | return io.ErrUnexpectedEOF |
| 2788 | } |
| 2789 | iNdEx += skippy |
| 2790 | } |
| 2791 | } |
| 2792 | |
| 2793 | if iNdEx > l { |
| 2794 | return io.ErrUnexpectedEOF |
| 2795 | } |
| 2796 | return nil |
| 2797 | } |
| 2798 | func skipGenerated(dAtA []byte) (n int, err error) { |
| 2799 | l := len(dAtA) |
| 2800 | iNdEx := 0 |
| 2801 | for iNdEx < l { |
| 2802 | var wire uint64 |
| 2803 | for shift := uint(0); ; shift += 7 { |
| 2804 | if shift >= 64 { |
| 2805 | return 0, ErrIntOverflowGenerated |
| 2806 | } |
| 2807 | if iNdEx >= l { |
| 2808 | return 0, io.ErrUnexpectedEOF |
| 2809 | } |
| 2810 | b := dAtA[iNdEx] |
| 2811 | iNdEx++ |
| 2812 | wire |= (uint64(b) & 0x7F) << shift |
| 2813 | if b < 0x80 { |
| 2814 | break |
| 2815 | } |
| 2816 | } |
| 2817 | wireType := int(wire & 0x7) |
| 2818 | switch wireType { |
| 2819 | case 0: |
| 2820 | for shift := uint(0); ; shift += 7 { |
| 2821 | if shift >= 64 { |
| 2822 | return 0, ErrIntOverflowGenerated |
| 2823 | } |
| 2824 | if iNdEx >= l { |
| 2825 | return 0, io.ErrUnexpectedEOF |
| 2826 | } |
| 2827 | iNdEx++ |
| 2828 | if dAtA[iNdEx-1] < 0x80 { |
| 2829 | break |
| 2830 | } |
| 2831 | } |
| 2832 | return iNdEx, nil |
| 2833 | case 1: |
| 2834 | iNdEx += 8 |
| 2835 | return iNdEx, nil |
| 2836 | case 2: |
| 2837 | var length int |
| 2838 | for shift := uint(0); ; shift += 7 { |
| 2839 | if shift >= 64 { |
| 2840 | return 0, ErrIntOverflowGenerated |
| 2841 | } |
| 2842 | if iNdEx >= l { |
| 2843 | return 0, io.ErrUnexpectedEOF |
| 2844 | } |
| 2845 | b := dAtA[iNdEx] |
| 2846 | iNdEx++ |
| 2847 | length |= (int(b) & 0x7F) << shift |
| 2848 | if b < 0x80 { |
| 2849 | break |
| 2850 | } |
| 2851 | } |
| 2852 | iNdEx += length |
| 2853 | if length < 0 { |
| 2854 | return 0, ErrInvalidLengthGenerated |
| 2855 | } |
| 2856 | return iNdEx, nil |
| 2857 | case 3: |
| 2858 | for { |
| 2859 | var innerWire uint64 |
| 2860 | var start int = iNdEx |
| 2861 | for shift := uint(0); ; shift += 7 { |
| 2862 | if shift >= 64 { |
| 2863 | return 0, ErrIntOverflowGenerated |
| 2864 | } |
| 2865 | if iNdEx >= l { |
| 2866 | return 0, io.ErrUnexpectedEOF |
| 2867 | } |
| 2868 | b := dAtA[iNdEx] |
| 2869 | iNdEx++ |
| 2870 | innerWire |= (uint64(b) & 0x7F) << shift |
| 2871 | if b < 0x80 { |
| 2872 | break |
| 2873 | } |
| 2874 | } |
| 2875 | innerWireType := int(innerWire & 0x7) |
| 2876 | if innerWireType == 4 { |
| 2877 | break |
| 2878 | } |
| 2879 | next, err := skipGenerated(dAtA[start:]) |
| 2880 | if err != nil { |
| 2881 | return 0, err |
| 2882 | } |
| 2883 | iNdEx = start + next |
| 2884 | } |
| 2885 | return iNdEx, nil |
| 2886 | case 4: |
| 2887 | return iNdEx, nil |
| 2888 | case 5: |
| 2889 | iNdEx += 4 |
| 2890 | return iNdEx, nil |
| 2891 | default: |
| 2892 | return 0, fmt.Errorf("proto: illegal wireType %d", wireType) |
| 2893 | } |
| 2894 | } |
| 2895 | panic("unreachable") |
| 2896 | } |
| 2897 | |
| 2898 | var ( |
| 2899 | ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") |
| 2900 | ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") |
| 2901 | ) |
| 2902 | |
| 2903 | func init() { |
| 2904 | proto.RegisterFile("k8s.io/kubernetes/vendor/k8s.io/api/admissionregistration/v1beta1/generated.proto", fileDescriptorGenerated) |
| 2905 | } |
| 2906 | |
| 2907 | var fileDescriptorGenerated = []byte{ |
| 2908 | // 1113 bytes of a gzipped FileDescriptorProto |
| 2909 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x55, 0x4d, 0x6f, 0x1b, 0xc5, |
| 2910 | 0x1b, 0xcf, 0xc6, 0x76, 0x6d, 0x8f, 0x93, 0xa6, 0x99, 0xff, 0x9f, 0xd6, 0x84, 0xca, 0x6b, 0xf9, |
| 2911 | 0x80, 0x2c, 0x41, 0x77, 0x9b, 0x80, 0x10, 0x14, 0x10, 0xca, 0x06, 0x0a, 0x91, 0x92, 0x36, 0x4c, |
| 2912 | 0xfa, 0x22, 0xf1, 0x22, 0x75, 0xbc, 0x1e, 0xdb, 0x83, 0xed, 0x9d, 0xd5, 0xce, 0xac, 0x43, 0x6e, |
| 2913 | 0x7c, 0x04, 0xbe, 0x02, 0x27, 0x3e, 0x05, 0x07, 0x6e, 0xe1, 0xd6, 0x63, 0x2f, 0xac, 0xc8, 0x72, |
| 2914 | 0xe2, 0xc0, 0x81, 0x6b, 0x4e, 0x68, 0x66, 0xc7, 0xeb, 0x97, 0x4d, 0x8a, 0x29, 0xa2, 0x17, 0x7a, |
| 2915 | 0xdb, 0xf9, 0x3d, 0xf3, 0xfc, 0x9e, 0x97, 0xd9, 0xe7, 0xf9, 0x81, 0x4f, 0xfb, 0x6f, 0x73, 0x8b, |
| 2916 | 0x32, 0xbb, 0x1f, 0xb6, 0x48, 0xe0, 0x11, 0x41, 0xb8, 0x3d, 0x22, 0x5e, 0x9b, 0x05, 0xb6, 0x36, |
| 2917 | 0x60, 0x9f, 0xda, 0xb8, 0x3d, 0xa4, 0x9c, 0x53, 0xe6, 0x05, 0xa4, 0x4b, 0xb9, 0x08, 0xb0, 0xa0, |
| 2918 | 0xcc, 0xb3, 0x47, 0x9b, 0x2d, 0x22, 0xf0, 0xa6, 0xdd, 0x25, 0x1e, 0x09, 0xb0, 0x20, 0x6d, 0xcb, |
| 2919 | 0x0f, 0x98, 0x60, 0xb0, 0x99, 0x78, 0x5a, 0xd8, 0xa7, 0xd6, 0xb9, 0x9e, 0x96, 0xf6, 0xdc, 0xb8, |
| 2920 | 0xd1, 0xa5, 0xa2, 0x17, 0xb6, 0x2c, 0x97, 0x0d, 0xed, 0x2e, 0xeb, 0x32, 0x5b, 0x11, 0xb4, 0xc2, |
| 2921 | 0x8e, 0x3a, 0xa9, 0x83, 0xfa, 0x4a, 0x88, 0x37, 0xde, 0x9c, 0xa4, 0x34, 0xc4, 0x6e, 0x8f, 0x7a, |
| 2922 | 0x24, 0x38, 0xb6, 0xfd, 0x7e, 0x57, 0x02, 0xdc, 0x1e, 0x12, 0x81, 0xed, 0x51, 0x26, 0x9d, 0x0d, |
| 2923 | 0xfb, 0x22, 0xaf, 0x20, 0xf4, 0x04, 0x1d, 0x92, 0x8c, 0xc3, 0x5b, 0x7f, 0xe5, 0xc0, 0xdd, 0x1e, |
| 2924 | 0x19, 0xe2, 0x79, 0xbf, 0xc6, 0x4f, 0x45, 0xb0, 0xb6, 0x1f, 0x0a, 0x2c, 0xa8, 0xd7, 0x7d, 0x48, |
| 2925 | 0x5a, 0x3d, 0xc6, 0xfa, 0xb0, 0x0e, 0xf2, 0x1e, 0x1e, 0x92, 0xaa, 0x51, 0x37, 0x9a, 0x65, 0x67, |
| 2926 | 0xe5, 0x24, 0x32, 0x97, 0xe2, 0xc8, 0xcc, 0xdf, 0xc1, 0x43, 0x82, 0x94, 0x05, 0x1e, 0x81, 0x15, |
| 2927 | 0x77, 0x40, 0x89, 0x27, 0x76, 0x98, 0xd7, 0xa1, 0xdd, 0xea, 0x72, 0xdd, 0x68, 0x56, 0xb6, 0xde, |
| 2928 | 0xb7, 0x16, 0x6d, 0xa2, 0xa5, 0x43, 0xed, 0x4c, 0x91, 0x38, 0xff, 0xd7, 0x81, 0x56, 0xa6, 0x51, |
| 2929 | 0x34, 0x13, 0x08, 0x62, 0x50, 0x08, 0xc2, 0x01, 0xe1, 0xd5, 0x5c, 0x3d, 0xd7, 0xac, 0x6c, 0xbd, |
| 2930 | 0xb7, 0x78, 0x44, 0x14, 0x0e, 0xc8, 0x43, 0x2a, 0x7a, 0x77, 0x7d, 0x92, 0x58, 0xb8, 0xb3, 0xaa, |
| 2931 | 0x03, 0x16, 0xa4, 0x8d, 0xa3, 0x84, 0x19, 0xee, 0x81, 0xd5, 0x0e, 0xa6, 0x83, 0x30, 0x20, 0x07, |
| 2932 | 0x6c, 0x40, 0xdd, 0xe3, 0x6a, 0x5e, 0xb5, 0xe1, 0xd5, 0x38, 0x32, 0x57, 0x6f, 0x4f, 0x1b, 0xce, |
| 2933 | 0x22, 0x73, 0x7d, 0x06, 0xb8, 0x77, 0xec, 0x13, 0x34, 0xeb, 0x0c, 0xbf, 0x06, 0xeb, 0xb2, 0x63, |
| 2934 | 0xdc, 0xc7, 0x2e, 0x39, 0x24, 0x03, 0xe2, 0x0a, 0x16, 0x54, 0x0b, 0xaa, 0x5d, 0x6f, 0x4c, 0x25, |
| 2935 | 0x9f, 0xbe, 0x99, 0xe5, 0xf7, 0xbb, 0x12, 0xe0, 0x96, 0xfc, 0x35, 0xac, 0xd1, 0xa6, 0xb5, 0x87, |
| 2936 | 0x5b, 0x64, 0x30, 0x76, 0x75, 0x5e, 0x8a, 0x23, 0x73, 0xfd, 0xce, 0x3c, 0x23, 0xca, 0x06, 0x81, |
| 2937 | 0x1f, 0x82, 0x0a, 0xa7, 0x6d, 0xf2, 0x51, 0xa7, 0x43, 0x5c, 0xc1, 0xab, 0x97, 0x54, 0x15, 0x8d, |
| 2938 | 0x38, 0x32, 0x2b, 0x87, 0x13, 0xf8, 0x2c, 0x32, 0xd7, 0x26, 0xc7, 0x9d, 0x01, 0xe6, 0x1c, 0x4d, |
| 2939 | 0xbb, 0xc1, 0x5b, 0xe0, 0xb2, 0xfc, 0x7d, 0x58, 0x28, 0x0e, 0x89, 0xcb, 0xbc, 0x36, 0xaf, 0x16, |
| 2940 | 0xeb, 0x46, 0xb3, 0xe0, 0xc0, 0x38, 0x32, 0x2f, 0xdf, 0x9b, 0xb1, 0xa0, 0xb9, 0x9b, 0xf0, 0x3e, |
| 2941 | 0xb8, 0x96, 0xbe, 0x09, 0x22, 0x23, 0x4a, 0x8e, 0x1e, 0x90, 0x40, 0x1e, 0x78, 0xb5, 0x54, 0xcf, |
| 2942 | 0x35, 0xcb, 0xce, 0x2b, 0x71, 0x64, 0x5e, 0xdb, 0x3e, 0xff, 0x0a, 0xba, 0xc8, 0x57, 0x16, 0x36, |
| 2943 | 0xc4, 0xc2, 0xed, 0xe9, 0xe7, 0x29, 0x4f, 0x0a, 0xdb, 0x9f, 0xc0, 0xb2, 0xb0, 0xa9, 0xa3, 0x7a, |
| 2944 | 0x9a, 0x69, 0x37, 0xf8, 0x08, 0xc0, 0x80, 0x50, 0x6f, 0xc4, 0x5c, 0xf5, 0x37, 0x68, 0x32, 0xa0, |
| 2945 | 0xc8, 0x6e, 0xc6, 0x91, 0x09, 0x51, 0xc6, 0x7a, 0x16, 0x99, 0x57, 0xb3, 0xa8, 0xa2, 0x3e, 0x87, |
| 2946 | 0x0b, 0x32, 0x70, 0x99, 0xb5, 0xbe, 0x22, 0xae, 0x48, 0xdf, 0xbd, 0xf2, 0xec, 0xef, 0xae, 0xfa, |
| 2947 | 0x7d, 0x77, 0x86, 0x0e, 0xcd, 0xd1, 0x37, 0x7e, 0x36, 0xc0, 0xf5, 0xb9, 0x59, 0x4e, 0xc6, 0x26, |
| 2948 | 0x4c, 0xfe, 0x78, 0xf8, 0x08, 0x94, 0x24, 0x7b, 0x1b, 0x0b, 0xac, 0x86, 0xbb, 0xb2, 0x75, 0x73, |
| 2949 | 0xb1, 0x5c, 0x92, 0xc0, 0xfb, 0x44, 0x60, 0x07, 0xea, 0xa1, 0x01, 0x13, 0x0c, 0xa5, 0xac, 0xf0, |
| 2950 | 0x73, 0x50, 0xd2, 0x91, 0x79, 0x75, 0x59, 0x8d, 0xe8, 0x3b, 0x8b, 0x8f, 0xe8, 0x5c, 0xee, 0x4e, |
| 2951 | 0x5e, 0x86, 0x42, 0xa5, 0x23, 0x4d, 0xd8, 0xf8, 0xdd, 0x00, 0xf5, 0xa7, 0xd5, 0xb7, 0x47, 0xb9, |
| 2952 | 0x80, 0x5f, 0x64, 0x6a, 0xb4, 0x16, 0xec, 0x37, 0xe5, 0x49, 0x85, 0x57, 0x74, 0x85, 0xa5, 0x31, |
| 2953 | 0x32, 0x55, 0x5f, 0x1f, 0x14, 0xa8, 0x20, 0xc3, 0x71, 0x71, 0xb7, 0x9f, 0xb9, 0xb8, 0x99, 0xc4, |
| 2954 | 0x27, 0x9b, 0x68, 0x57, 0x92, 0xa3, 0x24, 0x46, 0xe3, 0x47, 0x03, 0xe4, 0xe5, 0x6a, 0x82, 0xaf, |
| 2955 | 0x81, 0x32, 0xf6, 0xe9, 0xc7, 0x01, 0x0b, 0x7d, 0x5e, 0x35, 0xd4, 0xe8, 0xac, 0xc6, 0x91, 0x59, |
| 2956 | 0xde, 0x3e, 0xd8, 0x4d, 0x40, 0x34, 0xb1, 0xc3, 0x4d, 0x50, 0xc1, 0x3e, 0x4d, 0x27, 0x6d, 0x59, |
| 2957 | 0x5d, 0x5f, 0x93, 0xe3, 0xb1, 0x7d, 0xb0, 0x9b, 0x4e, 0xd7, 0xf4, 0x1d, 0xc9, 0x1f, 0x10, 0xce, |
| 2958 | 0xc2, 0xc0, 0xd5, 0x9b, 0x55, 0xf3, 0xa3, 0x31, 0x88, 0x26, 0x76, 0xf8, 0x3a, 0x28, 0x70, 0x97, |
| 2959 | 0xf9, 0x44, 0xef, 0xc5, 0xab, 0x32, 0xed, 0x43, 0x09, 0x9c, 0x45, 0x66, 0x59, 0x7d, 0xa8, 0x89, |
| 2960 | 0x48, 0x2e, 0x35, 0xbe, 0x37, 0x00, 0xcc, 0xae, 0x5e, 0xf8, 0x01, 0x00, 0x2c, 0x3d, 0xe9, 0x92, |
| 2961 | 0x4c, 0xf5, 0x57, 0xa5, 0xe8, 0x59, 0x64, 0xae, 0xa6, 0x27, 0x45, 0x39, 0xe5, 0x02, 0x0f, 0x40, |
| 2962 | 0x5e, 0xae, 0x6b, 0xad, 0x3c, 0xd6, 0xdf, 0xd3, 0x81, 0x89, 0xa6, 0xc9, 0x13, 0x52, 0x4c, 0x8d, |
| 2963 | 0xef, 0x0c, 0x70, 0xe5, 0x90, 0x04, 0x23, 0xea, 0x12, 0x44, 0x3a, 0x24, 0x20, 0x9e, 0x4b, 0xa0, |
| 2964 | 0x0d, 0xca, 0xe9, 0x66, 0xd5, 0x7a, 0xb8, 0xae, 0x7d, 0xcb, 0xe9, 0x16, 0x46, 0x93, 0x3b, 0xa9, |
| 2965 | 0x76, 0x2e, 0x5f, 0xa8, 0x9d, 0xd7, 0x41, 0xde, 0xc7, 0xa2, 0x57, 0xcd, 0xa9, 0x1b, 0x25, 0x69, |
| 2966 | 0x3d, 0xc0, 0xa2, 0x87, 0x14, 0xaa, 0xac, 0x2c, 0x10, 0xaa, 0xb9, 0x05, 0x6d, 0x65, 0x81, 0x40, |
| 2967 | 0x0a, 0x6d, 0xfc, 0x76, 0x09, 0xac, 0x3f, 0xc0, 0x03, 0xda, 0x7e, 0xa1, 0xd7, 0x2f, 0xf4, 0xfa, |
| 2968 | 0xbf, 0xa5, 0xd7, 0x59, 0x35, 0x05, 0xff, 0xae, 0x9a, 0x9e, 0x1a, 0xa0, 0x96, 0x99, 0xb5, 0xe7, |
| 2969 | 0xad, 0xa7, 0x5f, 0x66, 0xf4, 0xf4, 0xdd, 0xc5, 0x47, 0x28, 0x93, 0x7d, 0x46, 0x51, 0xff, 0x30, |
| 2970 | 0x40, 0xe3, 0xe9, 0x35, 0x3e, 0x07, 0x4d, 0x1d, 0xce, 0x6a, 0xea, 0x27, 0xff, 0xa0, 0xc0, 0x45, |
| 2971 | 0x54, 0xf5, 0x07, 0x03, 0xfc, 0xef, 0x9c, 0x75, 0x06, 0x31, 0x28, 0xf2, 0x64, 0xfd, 0xeb, 0x1a, |
| 2972 | 0x6f, 0x2d, 0x9e, 0xc8, 0xbc, 0x6e, 0x38, 0x95, 0x38, 0x32, 0x8b, 0x63, 0x74, 0xcc, 0x0b, 0x9b, |
| 2973 | 0xa0, 0xe4, 0x62, 0x27, 0xf4, 0xda, 0x5a, 0xb8, 0x56, 0x9c, 0x15, 0xd9, 0x93, 0x9d, 0xed, 0x04, |
| 2974 | 0x43, 0xa9, 0x15, 0xbe, 0x0c, 0x72, 0x61, 0x30, 0xd0, 0x1a, 0x51, 0x8c, 0x23, 0x33, 0x77, 0x1f, |
| 2975 | 0xed, 0x21, 0x89, 0x39, 0x37, 0x4e, 0x4e, 0x6b, 0x4b, 0x8f, 0x4f, 0x6b, 0x4b, 0x4f, 0x4e, 0x6b, |
| 2976 | 0x4b, 0xdf, 0xc4, 0x35, 0xe3, 0x24, 0xae, 0x19, 0x8f, 0xe3, 0x9a, 0xf1, 0x24, 0xae, 0x19, 0xbf, |
| 2977 | 0xc4, 0x35, 0xe3, 0xdb, 0x5f, 0x6b, 0x4b, 0x9f, 0x15, 0x75, 0x6a, 0x7f, 0x06, 0x00, 0x00, 0xff, |
| 2978 | 0xff, 0xc3, 0x6f, 0x8b, 0x7e, 0x2c, 0x0f, 0x00, 0x00, |
| 2979 | } |