From eb638c622f39eaca262e123949a1432f02b2bd70 Mon Sep 17 00:00:00 2001 From: Kubernetes Publisher Date: Wed, 31 Aug 2016 12:54:22 +0000 Subject: [PATCH] published by bot copied from https://github.com/kubernetes/kubernetes.git last commit is ebe733e46983b0201501a23a26d48a73f41fe04c --- 1.4/Godeps/Godeps.json | 766 + 1.4/discovery/discovery_client.go | 2 +- 1.4/discovery/restmapper.go | 2 + 1.4/discovery/unstructured.go | 95 + 1.4/dynamic/client.go | 62 +- 1.4/kubernetes/clientset.go | 17 + 1.4/kubernetes/doc.go | 2 +- 1.4/kubernetes/fake/clientset_generated.go | 7 + 1.4/kubernetes/fake/doc.go | 2 +- 1.4/kubernetes/import_known_versions.go | 1 + .../typed/authorization/v1beta1/doc.go | 2 +- .../typed/authorization/v1beta1/fake/doc.go | 2 +- ... => fake_subjectaccessreview_expansion.go} | 0 .../v1beta1/generated_expansion.go | 19 - .../v1beta1/subjectaccessreview_expansion.go | 36 + 1.4/kubernetes/typed/autoscaling/v1/doc.go | 2 +- .../typed/autoscaling/v1/fake/doc.go | 2 +- 1.4/kubernetes/typed/batch/v1/doc.go | 2 +- 1.4/kubernetes/typed/batch/v1/fake/doc.go | 2 +- 1.4/kubernetes/typed/core/v1/doc.go | 2 +- .../typed/core/v1/event_expansion.go | 162 + 1.4/kubernetes/typed/core/v1/fake/doc.go | 2 +- .../core/v1/fake/fake_event_expansion.go | 89 + .../core/v1/fake/fake_namespace_expansion.go | 37 + .../typed/core/v1/fake/fake_pod_expansion.go | 46 + .../core/v1/fake/fake_service_expansion.go | 26 + .../typed/core/v1/generated_expansion.go | 8 - .../typed/core/v1/namespace_expansion.go | 31 + 1.4/kubernetes/typed/core/v1/pod_expansion.go | 39 + .../typed/core/v1/service_expansion.go | 41 + .../v1beta1/deployment_expansion.go | 29 + .../typed/extensions/v1beta1/doc.go | 2 +- .../extensions/v1beta1/extensions_client.go | 5 - .../typed/extensions/v1beta1/fake/doc.go | 2 +- .../v1beta1/fake/fake_deployment_expansion.go | 33 + .../v1beta1/fake/fake_extensions_client.go | 4 - .../fake/fake_horizontalpodautoscaler.go | 127 - .../v1beta1/fake/fake_scale_expansion.go | 47 + .../extensions/v1beta1/generated_expansion.go | 8 +- .../v1beta1/horizontalpodautoscaler.go | 165 - .../extensions/v1beta1/scale_expansion.go | 65 + 1.4/kubernetes/typed/policy/v1alpha1/doc.go | 20 + .../typed/policy/v1alpha1/fake/doc.go | 20 + .../v1alpha1/fake/fake_poddisruptionbudget.go | 127 + .../v1alpha1/fake/fake_policy_client.go | 37 + .../policy/v1alpha1/generated_expansion.go | 19 + .../policy/v1alpha1/poddisruptionbudget.go | 165 + .../typed/policy/v1alpha1/policy_client.go | 96 + 1.4/pkg/api/errors/errors.go | 4 +- 1.4/pkg/api/helpers.go | 81 +- 1.4/pkg/api/meta.go | 7 + 1.4/pkg/api/meta/interfaces.go | 2 + 1.4/pkg/api/meta/restmapper.go | 4 +- 1.4/pkg/api/meta/unstructured.go | 31 + .../api/replication_controller_example.json | 3 +- 1.4/pkg/api/service/annotations.go | 61 + 1.4/pkg/api/testapi/testapi.go | 20 +- 1.4/pkg/api/types.generated.go | 55176 ++++++++-------- 1.4/pkg/api/types.go | 155 +- 1.4/pkg/api/unversioned/group_version.go | 54 +- 1.4/pkg/api/unversioned/helpers.go | 25 +- 1.4/pkg/api/v1/conversion.go | 44 +- 1.4/pkg/api/v1/defaults.go | 35 + 1.4/pkg/api/v1/generated.pb.go | 2966 +- 1.4/pkg/api/v1/generated.proto | 150 +- 1.4/pkg/api/v1/meta.go | 7 + 1.4/pkg/api/v1/types.generated.go | 54168 +++++++-------- 1.4/pkg/api/v1/types.go | 172 +- 1.4/pkg/api/v1/types_swagger_doc_generated.go | 64 +- 1.4/pkg/api/v1/zz_generated.conversion.go | 160 + 1.4/pkg/api/v1/zz_generated.deepcopy.go | 124 +- 1.4/pkg/api/validation/events.go | 57 +- 1.4/pkg/api/validation/validation.go | 329 +- 1.4/pkg/api/zz_generated.deepcopy.go | 135 +- 1.4/pkg/apimachinery/registered/registered.go | 193 +- 1.4/pkg/apis/apps/register.go | 4 +- 1.4/pkg/apis/apps/types.generated.go | 4 +- 1.4/pkg/apis/apps/v1alpha1/types.generated.go | 4 +- 1.4/pkg/apis/authentication/register.go | 4 +- .../apis/authentication/types.generated.go | 1270 +- 1.4/pkg/apis/authentication/types.go | 15 + 1.4/pkg/apis/authorization/register.go | 4 +- 1.4/pkg/apis/authorization/types.generated.go | 3742 +- 1.4/pkg/apis/autoscaling/register.go | 4 +- 1.4/pkg/apis/autoscaling/types.generated.go | 2 +- .../apis/autoscaling/v1/types.generated.go | 2 +- 1.4/pkg/apis/batch/register.go | 4 +- 1.4/pkg/apis/batch/types.generated.go | 4 +- 1.4/pkg/apis/batch/v1/types.generated.go | 2 +- .../apis/batch/v2alpha1/types.generated.go | 4 +- 1.4/pkg/apis/certificates/register.go | 4 +- 1.4/pkg/apis/certificates/types.generated.go | 2 +- 1.4/pkg/apis/certificates/types.go | 2 +- .../apis/certificates/v1alpha1/conversion.go | 19 +- .../certificates/v1alpha1/generated.proto | 2 +- .../apis/certificates/v1alpha1/register.go | 4 +- .../certificates/v1alpha1/types.generated.go | 2 +- 1.4/pkg/apis/certificates/v1alpha1/types.go | 2 +- .../v1alpha1/types_swagger_doc_generated.go | 2 +- 1.4/pkg/apis/componentconfig/register.go | 4 +- .../apis/componentconfig/types.generated.go | 6007 +- 1.4/pkg/apis/componentconfig/types.go | 43 +- .../apis/componentconfig/v1alpha1/defaults.go | 14 + .../apis/componentconfig/v1alpha1/types.go | 27 +- .../v1alpha1/zz_generated.conversion.go | 26 + .../v1alpha1/zz_generated.deepcopy.go | 31 + .../componentconfig/zz_generated.deepcopy.go | 18 + 1.4/pkg/apis/extensions/helpers.go | 37 + 1.4/pkg/apis/extensions/register.go | 5 +- 1.4/pkg/apis/extensions/types.generated.go | 6478 +- 1.4/pkg/apis/extensions/types.go | 14 +- 1.4/pkg/apis/extensions/v1beta1/conversion.go | 3 +- .../apis/extensions/v1beta1/generated.pb.go | 107 +- .../apis/extensions/v1beta1/generated.proto | 5 +- .../extensions/v1beta1/types.generated.go | 6934 +- 1.4/pkg/apis/extensions/v1beta1/types.go | 9 +- .../v1beta1/types_swagger_doc_generated.go | 3 +- .../v1beta1/zz_generated.conversion.go | 2 + .../v1beta1/zz_generated.deepcopy.go | 1 + .../apis/extensions/zz_generated.deepcopy.go | 1 + 1.4/pkg/apis/imagepolicy/doc.go | 20 + 1.4/pkg/apis/imagepolicy/install/install.go | 123 + 1.4/pkg/apis/imagepolicy/register.go | 56 + 1.4/pkg/apis/imagepolicy/types.generated.go | 2194 + 1.4/pkg/apis/imagepolicy/types.go | 67 + 1.4/pkg/apis/imagepolicy/v1alpha1/doc.go | 21 + .../apis/imagepolicy/v1alpha1/generated.pb.go | 1059 + .../apis/imagepolicy/v1alpha1/generated.proto | 74 + 1.4/pkg/apis/imagepolicy/v1alpha1/register.go | 46 + .../imagepolicy/v1alpha1/types.generated.go | 1208 + 1.4/pkg/apis/imagepolicy/v1alpha1/types.go | 67 + .../v1alpha1/zz_generated.conversion.go | 169 + .../v1alpha1/zz_generated.deepcopy.go | 105 + .../apis/imagepolicy/zz_generated.deepcopy.go | 105 + 1.4/pkg/apis/policy/register.go | 7 +- 1.4/pkg/apis/policy/types.generated.go | 443 +- 1.4/pkg/apis/policy/types.go | 13 + 1.4/pkg/apis/policy/v1alpha1/generated.pb.go | 314 +- 1.4/pkg/apis/policy/v1alpha1/generated.proto | 11 + 1.4/pkg/apis/policy/v1alpha1/register.go | 1 + .../apis/policy/v1alpha1/types.generated.go | 443 +- 1.4/pkg/apis/policy/v1alpha1/types.go | 15 +- .../v1alpha1/types_swagger_doc_generated.go | 10 + .../v1alpha1/zz_generated.conversion.go | 53 + .../policy/v1alpha1/zz_generated.deepcopy.go | 22 + 1.4/pkg/apis/policy/zz_generated.deepcopy.go | 22 + 1.4/pkg/apis/rbac/register.go | 4 +- 1.4/pkg/apis/rbac/types.go | 2 +- 1.4/pkg/apis/rbac/v1alpha1/types.generated.go | 8 +- 1.4/pkg/auth/user/user.go | 2 + 1.4/pkg/conversion/converter.go | 2 + .../apis/federation/types.generated.go | 2 +- .../federation/v1beta1/types.generated.go | 2 +- 1.4/pkg/fields/requirements.go | 30 + 1.4/pkg/fields/selector.go | 31 + 1.4/pkg/labels/labels.go | 9 + 1.4/pkg/labels/selector.go | 142 +- 1.4/pkg/runtime/codec.go | 86 +- 1.4/pkg/runtime/helper.go | 2 +- 1.4/pkg/runtime/interfaces.go | 47 +- 1.4/pkg/runtime/scheme.go | 170 +- 1.4/pkg/runtime/serializer/codec_factory.go | 84 +- .../runtime/serializer/negotiated_codec.go | 5 +- .../serializer/versioning/versioning.go | 207 +- 1.4/pkg/runtime/types.go | 39 + 1.4/pkg/runtime/unstructured.go | 18 +- 1.4/pkg/security/apparmor/helpers.go | 62 + 1.4/pkg/security/apparmor/validate.go | 222 + .../security/apparmor/validate_disabled.go | 24 + 1.4/pkg/selection/operator.go | 33 + 1.4/pkg/types/namespacedname.go | 27 +- 1.4/pkg/util/config/feature_gate.go | 222 + 1.4/pkg/util/crypto/crypto.go | 48 +- 1.4/pkg/util/sets/byte.go | 9 + 1.4/pkg/util/sets/int.go | 9 + 1.4/pkg/util/sets/int64.go | 9 + 1.4/pkg/util/sets/string.go | 9 + 1.4/pkg/util/yaml/decoder.go | 79 +- 1.4/pkg/version/version.go | 16 - 1.4/rest/request.go | 37 +- 1.4/rest/request_test.go | 3 +- 1.4/tools/cache/delta_fifo.go | 39 +- 1.4/tools/cache/listers.go | 197 +- 1.4/tools/cache/listers_test.go | 12 +- 1.4/tools/cache/thread_safe_store.go | 2 +- 1.4/tools/clientcmd/api/latest/latest.go | 4 +- 1.4/tools/clientcmd/api/types.go | 2 + 1.4/tools/clientcmd/api/v1/types.go | 2 + 1.4/tools/clientcmd/client_config.go | 6 + 1.4/tools/clientcmd/client_config_test.go | 76 + 1.4/tools/clientcmd/loader.go | 5 +- 1.4/tools/clientcmd/overrides.go | 2 +- 1.4/tools/metrics/metrics.go | 70 +- .../bitbucket.org/ww/goautoneg/Makefile | 13 - .../bitbucket.org/ww/goautoneg/README.txt | 67 - .../bitbucket.org/ww/goautoneg/autoneg.go | 162 - 1.4/vendor/github.com/beorn7/perks/LICENSE | 20 - .../beorn7/perks/quantile/exampledata.txt | 2388 - .../beorn7/perks/quantile/stream.go | 292 - .../emicklei/go-restful/bench_test.sh | 10 + .../emicklei/go-restful/container.go | 8 +- .../emicklei/go-restful/coverage.sh | 2 + .../github.com/emicklei/go-restful/install.sh | 10 + .../go-restful/swagger/model_builder.go | 13 + .../emicklei/go-restful/swagger/swagger.go | 1 + .../emicklei/go-restful/web_service.go | 14 +- 1.4/vendor/github.com/ghodss/yaml/.travis.yml | 7 + 1.4/vendor/github.com/golang/protobuf/LICENSE | 31 - .../github.com/golang/protobuf/proto/Makefile | 43 - .../github.com/golang/protobuf/proto/clone.go | 229 - .../golang/protobuf/proto/decode.go | 869 - .../golang/protobuf/proto/encode.go | 1363 - .../github.com/golang/protobuf/proto/equal.go | 296 - .../golang/protobuf/proto/extensions.go | 555 - .../github.com/golang/protobuf/proto/lib.go | 898 - .../golang/protobuf/proto/message_set.go | 311 - .../golang/protobuf/proto/pointer_reflect.go | 484 - .../golang/protobuf/proto/pointer_unsafe.go | 270 - .../golang/protobuf/proto/properties.go | 864 - .../github.com/golang/protobuf/proto/text.go | 854 - .../golang/protobuf/proto/text_parser.go | 880 - .../github.com/google/gofuzz/.travis.yml | 13 + .../github.com/imdario/mergo/.travis.yml | 2 + .../golang_protobuf_extensions/LICENSE | 201 - .../pbutil/decode.go | 75 - .../golang_protobuf_extensions/pbutil/doc.go | 16 - .../pbutil/encode.go | 46 - .../prometheus/client_golang/LICENSE | 201 - .../prometheus/client_golang/NOTICE | 28 - .../client_golang/prometheus/.gitignore | 1 - .../client_golang/prometheus/collector.go | 75 - .../client_golang/prometheus/counter.go | 175 - .../client_golang/prometheus/desc.go | 201 - .../client_golang/prometheus/doc.go | 109 - .../client_golang/prometheus/expvar.go | 119 - .../client_golang/prometheus/gauge.go | 147 - .../client_golang/prometheus/go_collector.go | 263 - .../client_golang/prometheus/histogram.go | 450 - .../client_golang/prometheus/http.go | 361 - .../client_golang/prometheus/metric.go | 166 - .../prometheus/process_collector.go | 142 - .../client_golang/prometheus/push.go | 65 - .../client_golang/prometheus/registry.go | 726 - .../client_golang/prometheus/summary.go | 540 - .../client_golang/prometheus/untyped.go | 145 - .../client_golang/prometheus/value.go | 234 - .../client_golang/prometheus/vec.go | 247 - .../prometheus/client_model/LICENSE | 201 - .../github.com/prometheus/client_model/NOTICE | 5 - .../prometheus/client_model/go/metrics.pb.go | 364 - .../github.com/prometheus/common/LICENSE | 201 - .../github.com/prometheus/common/NOTICE | 5 - .../prometheus/common/expfmt/decode.go | 411 - .../prometheus/common/expfmt/encode.go | 88 - .../prometheus/common/expfmt/expfmt.go | 40 - .../prometheus/common/expfmt/fuzz.go | 36 - .../prometheus/common/expfmt/json_decode.go | 162 - .../prometheus/common/expfmt/text_create.go | 305 - .../prometheus/common/expfmt/text_parse.go | 746 - .../prometheus/common/model/alert.go | 109 - .../prometheus/common/model/fingerprinting.go | 105 - .../prometheus/common/model/labels.go | 188 - .../prometheus/common/model/labelset.go | 153 - .../prometheus/common/model/metric.go | 81 - .../prometheus/common/model/model.go | 16 - .../prometheus/common/model/signature.go | 190 - .../prometheus/common/model/silence.go | 60 - .../prometheus/common/model/time.go | 230 - .../prometheus/common/model/value.go | 395 - .../github.com/prometheus/procfs/AUTHORS.md | 20 - .../prometheus/procfs/CONTRIBUTING.md | 18 - .../github.com/prometheus/procfs/LICENSE | 201 - .../github.com/prometheus/procfs/Makefile | 6 - .../github.com/prometheus/procfs/NOTICE | 7 - .../github.com/prometheus/procfs/doc.go | 45 - 1.4/vendor/github.com/prometheus/procfs/fs.go | 40 - .../github.com/prometheus/procfs/ipvs.go | 223 - .../github.com/prometheus/procfs/mdstat.go | 158 - .../github.com/prometheus/procfs/proc.go | 202 - .../github.com/prometheus/procfs/proc_io.go | 54 - .../prometheus/procfs/proc_limits.go | 111 - .../github.com/prometheus/procfs/proc_stat.go | 175 - .../github.com/prometheus/procfs/stat.go | 55 - 1.4/vendor/github.com/spf13/pflag/.travis.yml | 17 + .../github.com/ugorji/go/codec/prebuild.sh | 199 + .../ugorji/go/codec/test-cbor-goldens.json | 639 + .../github.com/ugorji/go/codec/tests.sh | 74 + 287 files changed, 84407 insertions(+), 87997 deletions(-) create mode 100644 1.4/Godeps/Godeps.json create mode 100644 1.4/discovery/unstructured.go rename 1.4/kubernetes/typed/authorization/v1beta1/fake/{fake_generated_expansion.go => fake_subjectaccessreview_expansion.go} (100%) create mode 100644 1.4/kubernetes/typed/authorization/v1beta1/subjectaccessreview_expansion.go create mode 100644 1.4/kubernetes/typed/core/v1/event_expansion.go create mode 100644 1.4/kubernetes/typed/core/v1/fake/fake_event_expansion.go create mode 100644 1.4/kubernetes/typed/core/v1/fake/fake_namespace_expansion.go create mode 100644 1.4/kubernetes/typed/core/v1/fake/fake_pod_expansion.go create mode 100644 1.4/kubernetes/typed/core/v1/fake/fake_service_expansion.go create mode 100644 1.4/kubernetes/typed/core/v1/namespace_expansion.go create mode 100644 1.4/kubernetes/typed/core/v1/pod_expansion.go create mode 100644 1.4/kubernetes/typed/core/v1/service_expansion.go create mode 100644 1.4/kubernetes/typed/extensions/v1beta1/deployment_expansion.go create mode 100644 1.4/kubernetes/typed/extensions/v1beta1/fake/fake_deployment_expansion.go delete mode 100644 1.4/kubernetes/typed/extensions/v1beta1/fake/fake_horizontalpodautoscaler.go create mode 100644 1.4/kubernetes/typed/extensions/v1beta1/fake/fake_scale_expansion.go delete mode 100644 1.4/kubernetes/typed/extensions/v1beta1/horizontalpodautoscaler.go create mode 100644 1.4/kubernetes/typed/extensions/v1beta1/scale_expansion.go create mode 100644 1.4/kubernetes/typed/policy/v1alpha1/doc.go create mode 100644 1.4/kubernetes/typed/policy/v1alpha1/fake/doc.go create mode 100644 1.4/kubernetes/typed/policy/v1alpha1/fake/fake_poddisruptionbudget.go create mode 100644 1.4/kubernetes/typed/policy/v1alpha1/fake/fake_policy_client.go create mode 100644 1.4/kubernetes/typed/policy/v1alpha1/generated_expansion.go create mode 100644 1.4/kubernetes/typed/policy/v1alpha1/poddisruptionbudget.go create mode 100644 1.4/kubernetes/typed/policy/v1alpha1/policy_client.go create mode 100644 1.4/pkg/api/meta/unstructured.go create mode 100644 1.4/pkg/apis/extensions/helpers.go create mode 100644 1.4/pkg/apis/imagepolicy/doc.go create mode 100644 1.4/pkg/apis/imagepolicy/install/install.go create mode 100644 1.4/pkg/apis/imagepolicy/register.go create mode 100644 1.4/pkg/apis/imagepolicy/types.generated.go create mode 100644 1.4/pkg/apis/imagepolicy/types.go create mode 100644 1.4/pkg/apis/imagepolicy/v1alpha1/doc.go create mode 100644 1.4/pkg/apis/imagepolicy/v1alpha1/generated.pb.go create mode 100644 1.4/pkg/apis/imagepolicy/v1alpha1/generated.proto create mode 100644 1.4/pkg/apis/imagepolicy/v1alpha1/register.go create mode 100644 1.4/pkg/apis/imagepolicy/v1alpha1/types.generated.go create mode 100644 1.4/pkg/apis/imagepolicy/v1alpha1/types.go create mode 100644 1.4/pkg/apis/imagepolicy/v1alpha1/zz_generated.conversion.go create mode 100644 1.4/pkg/apis/imagepolicy/v1alpha1/zz_generated.deepcopy.go create mode 100644 1.4/pkg/apis/imagepolicy/zz_generated.deepcopy.go create mode 100644 1.4/pkg/fields/requirements.go create mode 100644 1.4/pkg/security/apparmor/helpers.go create mode 100644 1.4/pkg/security/apparmor/validate.go create mode 100644 1.4/pkg/security/apparmor/validate_disabled.go create mode 100644 1.4/pkg/selection/operator.go create mode 100644 1.4/pkg/util/config/feature_gate.go delete mode 100644 1.4/vendor/bitbucket.org/ww/goautoneg/Makefile delete mode 100644 1.4/vendor/bitbucket.org/ww/goautoneg/README.txt delete mode 100644 1.4/vendor/bitbucket.org/ww/goautoneg/autoneg.go delete mode 100644 1.4/vendor/github.com/beorn7/perks/LICENSE delete mode 100644 1.4/vendor/github.com/beorn7/perks/quantile/exampledata.txt delete mode 100644 1.4/vendor/github.com/beorn7/perks/quantile/stream.go create mode 100644 1.4/vendor/github.com/emicklei/go-restful/bench_test.sh create mode 100644 1.4/vendor/github.com/emicklei/go-restful/coverage.sh create mode 100644 1.4/vendor/github.com/emicklei/go-restful/install.sh create mode 100644 1.4/vendor/github.com/ghodss/yaml/.travis.yml delete mode 100644 1.4/vendor/github.com/golang/protobuf/LICENSE delete mode 100644 1.4/vendor/github.com/golang/protobuf/proto/Makefile delete mode 100644 1.4/vendor/github.com/golang/protobuf/proto/clone.go delete mode 100644 1.4/vendor/github.com/golang/protobuf/proto/decode.go delete mode 100644 1.4/vendor/github.com/golang/protobuf/proto/encode.go delete mode 100644 1.4/vendor/github.com/golang/protobuf/proto/equal.go delete mode 100644 1.4/vendor/github.com/golang/protobuf/proto/extensions.go delete mode 100644 1.4/vendor/github.com/golang/protobuf/proto/lib.go delete mode 100644 1.4/vendor/github.com/golang/protobuf/proto/message_set.go delete mode 100644 1.4/vendor/github.com/golang/protobuf/proto/pointer_reflect.go delete mode 100644 1.4/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go delete mode 100644 1.4/vendor/github.com/golang/protobuf/proto/properties.go delete mode 100644 1.4/vendor/github.com/golang/protobuf/proto/text.go delete mode 100644 1.4/vendor/github.com/golang/protobuf/proto/text_parser.go create mode 100644 1.4/vendor/github.com/google/gofuzz/.travis.yml create mode 100644 1.4/vendor/github.com/imdario/mergo/.travis.yml delete mode 100644 1.4/vendor/github.com/matttproud/golang_protobuf_extensions/LICENSE delete mode 100644 1.4/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/decode.go delete mode 100644 1.4/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/doc.go delete mode 100644 1.4/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/encode.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/LICENSE delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/NOTICE delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/.gitignore delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/collector.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/counter.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/desc.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/doc.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/expvar.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/gauge.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/go_collector.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/histogram.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/http.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/metric.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/process_collector.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/push.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/registry.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/summary.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/untyped.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/value.go delete mode 100644 1.4/vendor/github.com/prometheus/client_golang/prometheus/vec.go delete mode 100644 1.4/vendor/github.com/prometheus/client_model/LICENSE delete mode 100644 1.4/vendor/github.com/prometheus/client_model/NOTICE delete mode 100644 1.4/vendor/github.com/prometheus/client_model/go/metrics.pb.go delete mode 100644 1.4/vendor/github.com/prometheus/common/LICENSE delete mode 100644 1.4/vendor/github.com/prometheus/common/NOTICE delete mode 100644 1.4/vendor/github.com/prometheus/common/expfmt/decode.go delete mode 100644 1.4/vendor/github.com/prometheus/common/expfmt/encode.go delete mode 100644 1.4/vendor/github.com/prometheus/common/expfmt/expfmt.go delete mode 100644 1.4/vendor/github.com/prometheus/common/expfmt/fuzz.go delete mode 100644 1.4/vendor/github.com/prometheus/common/expfmt/json_decode.go delete mode 100644 1.4/vendor/github.com/prometheus/common/expfmt/text_create.go delete mode 100644 1.4/vendor/github.com/prometheus/common/expfmt/text_parse.go delete mode 100644 1.4/vendor/github.com/prometheus/common/model/alert.go delete mode 100644 1.4/vendor/github.com/prometheus/common/model/fingerprinting.go delete mode 100644 1.4/vendor/github.com/prometheus/common/model/labels.go delete mode 100644 1.4/vendor/github.com/prometheus/common/model/labelset.go delete mode 100644 1.4/vendor/github.com/prometheus/common/model/metric.go delete mode 100644 1.4/vendor/github.com/prometheus/common/model/model.go delete mode 100644 1.4/vendor/github.com/prometheus/common/model/signature.go delete mode 100644 1.4/vendor/github.com/prometheus/common/model/silence.go delete mode 100644 1.4/vendor/github.com/prometheus/common/model/time.go delete mode 100644 1.4/vendor/github.com/prometheus/common/model/value.go delete mode 100644 1.4/vendor/github.com/prometheus/procfs/AUTHORS.md delete mode 100644 1.4/vendor/github.com/prometheus/procfs/CONTRIBUTING.md delete mode 100644 1.4/vendor/github.com/prometheus/procfs/LICENSE delete mode 100644 1.4/vendor/github.com/prometheus/procfs/Makefile delete mode 100644 1.4/vendor/github.com/prometheus/procfs/NOTICE delete mode 100644 1.4/vendor/github.com/prometheus/procfs/doc.go delete mode 100644 1.4/vendor/github.com/prometheus/procfs/fs.go delete mode 100644 1.4/vendor/github.com/prometheus/procfs/ipvs.go delete mode 100644 1.4/vendor/github.com/prometheus/procfs/mdstat.go delete mode 100644 1.4/vendor/github.com/prometheus/procfs/proc.go delete mode 100644 1.4/vendor/github.com/prometheus/procfs/proc_io.go delete mode 100644 1.4/vendor/github.com/prometheus/procfs/proc_limits.go delete mode 100644 1.4/vendor/github.com/prometheus/procfs/proc_stat.go delete mode 100644 1.4/vendor/github.com/prometheus/procfs/stat.go create mode 100644 1.4/vendor/github.com/spf13/pflag/.travis.yml create mode 100755 1.4/vendor/github.com/ugorji/go/codec/prebuild.sh create mode 100644 1.4/vendor/github.com/ugorji/go/codec/test-cbor-goldens.json create mode 100755 1.4/vendor/github.com/ugorji/go/codec/tests.sh diff --git a/1.4/Godeps/Godeps.json b/1.4/Godeps/Godeps.json new file mode 100644 index 00000000..d72570dc --- /dev/null +++ b/1.4/Godeps/Godeps.json @@ -0,0 +1,766 @@ +{ + "ImportPath": "k8s.io/kubernetes/staging/src/k8s.io/client-go/1.4/_tmp", + "GoVersion": "go1.7", + "GodepVersion": "v74", + "Packages": [ + "./..." + ], + "Deps": [ + { + "ImportPath": "github.com/blang/semver", + "Comment": "v3.0.1", + "Rev": "31b736133b98f26d5e078ec9eb591666edfd091f" + }, + { + "ImportPath": "github.com/davecgh/go-spew/spew", + "Rev": "5215b55f46b2b919f50a1df0eaa5886afe4e3b3d" + }, + { + "ImportPath": "github.com/docker/distribution/digest", + "Comment": "v2.4.0-rc.1-38-gcd27f17", + "Rev": "cd27f179f2c10c5d300e6d09025b538c475b0d51" + }, + { + "ImportPath": "github.com/docker/distribution/reference", + "Comment": "v2.4.0-rc.1-38-gcd27f17", + "Rev": "cd27f179f2c10c5d300e6d09025b538c475b0d51" + }, + { + "ImportPath": "github.com/emicklei/go-restful", + "Comment": "v1.2-79-g89ef8af", + "Rev": "89ef8af493ab468a45a42bb0d89a06fccdd2fb22" + }, + { + "ImportPath": "github.com/emicklei/go-restful/log", + "Comment": "v1.2-79-g89ef8af", + "Rev": "89ef8af493ab468a45a42bb0d89a06fccdd2fb22" + }, + { + "ImportPath": "github.com/emicklei/go-restful/swagger", + "Comment": "v1.2-79-g89ef8af", + "Rev": "89ef8af493ab468a45a42bb0d89a06fccdd2fb22" + }, + { + "ImportPath": "github.com/ghodss/yaml", + "Rev": "73d445a93680fa1a78ae23a5839bad48f32ba1ee" + }, + { + "ImportPath": "github.com/gogo/protobuf/proto", + "Comment": "v0.2-33-ge18d7aa", + "Rev": "e18d7aa8f8c624c915db340349aad4c49b10d173" + }, + { + "ImportPath": "github.com/gogo/protobuf/sortkeys", + "Comment": "v0.2-33-ge18d7aa", + "Rev": "e18d7aa8f8c624c915db340349aad4c49b10d173" + }, + { + "ImportPath": "github.com/golang/glog", + "Rev": "44145f04b68cf362d9c4df2182967c2275eaefed" + }, + { + "ImportPath": "github.com/golang/groupcache/lru", + "Rev": "02826c3e79038b59d737d3b1c0a1d937f71a4433" + }, + { + "ImportPath": "github.com/google/gofuzz", + "Rev": "bbcb9da2d746f8bdbd6a936686a0a6067ada0ec5" + }, + { + "ImportPath": "github.com/imdario/mergo", + "Comment": "0.1.3-8-g6633656", + "Rev": "6633656539c1639d9d78127b7d47c622b5d7b6dc" + }, + { + "ImportPath": "github.com/juju/ratelimit", + "Rev": "77ed1c8a01217656d2080ad51981f6e99adaa177" + }, + { + "ImportPath": "github.com/pborman/uuid", + "Rev": "ca53cad383cad2479bbba7f7a1a05797ec1386e4" + }, + { + "ImportPath": "github.com/spf13/pflag", + "Rev": "1560c1005499d61b80f865c04d39ca7505bf7f0b" + }, + { + "ImportPath": "github.com/ugorji/go/codec", + "Rev": "f1f1a805ed361a0e078bb537e4ea78cd37dcf065" + }, + { + "ImportPath": "golang.org/x/net/context", + "Rev": "e90d6d0afc4c315a0d87a568ae68577cc15149a0" + }, + { + "ImportPath": "golang.org/x/net/http2", + "Rev": "e90d6d0afc4c315a0d87a568ae68577cc15149a0" + }, + { + "ImportPath": "golang.org/x/net/http2/hpack", + "Rev": "e90d6d0afc4c315a0d87a568ae68577cc15149a0" + }, + { + "ImportPath": "golang.org/x/net/lex/httplex", + "Rev": "e90d6d0afc4c315a0d87a568ae68577cc15149a0" + }, + { + "ImportPath": "gopkg.in/inf.v0", + "Comment": "v0.9.0", + "Rev": "3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4" + }, + { + "ImportPath": "gopkg.in/yaml.v2", + "Rev": "53feefa2559fb8dfa8d81baad31be332c97d6c77" + }, + { + "ImportPath": "k8s.io/kubernetes/federation/apis/federation", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/federation/apis/federation/install", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/federation/apis/federation/v1beta1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api/endpoints", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api/errors", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api/install", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api/meta", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api/meta/metatypes", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api/pod", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api/resource", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api/service", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api/testapi", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api/unversioned", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api/unversioned/validation", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api/util", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api/v1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/api/validation", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apimachinery", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apimachinery/registered", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/apps", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/apps/install", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/apps/v1alpha1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/authentication", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/authentication/install", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/authentication/v1beta1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/authorization", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/authorization/install", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/authorization/v1beta1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/autoscaling", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/autoscaling/install", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/autoscaling/v1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/batch", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/batch/install", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/batch/v1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/batch/v2alpha1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/certificates", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/certificates/install", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/certificates/v1alpha1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/componentconfig", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/componentconfig/install", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/componentconfig/v1alpha1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/extensions", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/extensions/install", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/extensions/v1beta1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/imagepolicy", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/imagepolicy/install", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/policy", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/policy/install", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/policy/v1alpha1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/rbac", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/rbac/install", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/apis/rbac/v1alpha1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/auth/user", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/capabilities", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/authorization/v1beta1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/authorization/v1beta1/fake", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/autoscaling/v1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/autoscaling/v1/fake", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/batch/v1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/batch/v1/fake", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/core/v1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/core/v1/fake", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/extensions/v1beta1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/extensions/v1beta1/fake", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/policy/v1alpha1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/clientset_generated/release_1_4/typed/policy/v1alpha1/fake", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/metrics", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/restclient", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/testing/core", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/transport", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/typed/discovery", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/typed/discovery/fake", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/unversioned/auth", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/latest", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/client/unversioned/clientcmd/api/v1", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/conversion", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/conversion/queryparams", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/fields", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/kubelet/qos", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/kubelet/server/portforward", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/kubelet/types", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/labels", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/master/ports", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/runtime", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/runtime/serializer", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/runtime/serializer/json", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/runtime/serializer/protobuf", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/runtime/serializer/recognizer", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/runtime/serializer/streaming", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/runtime/serializer/versioning", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/security/apparmor", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/selection", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/types", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/clock", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/config", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/crypto", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/diff", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/errors", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/flowcontrol", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/framer", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/hash", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/homedir", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/httpstream", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/integer", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/intstr", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/json", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/labels", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/net", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/net/sets", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/parsers", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/rand", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/runtime", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/sets", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/strategicpatch", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/testing", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/uuid", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/validation", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/validation/field", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/wait", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/util/yaml", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/version", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/watch", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/pkg/watch/versioned", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/third_party/forked/golang/json", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + }, + { + "ImportPath": "k8s.io/kubernetes/third_party/forked/golang/reflect", + "Comment": "v1.4.0-alpha.3-189-g57ef2cc", + "Rev": "57ef2cce04875b7ba50cad2e13ad556a4cc3f30d" + } + ] +} diff --git a/1.4/discovery/discovery_client.go b/1.4/discovery/discovery_client.go index 8e376ca8..a4c729dd 100644 --- a/1.4/discovery/discovery_client.go +++ b/1.4/discovery/discovery_client.go @@ -234,7 +234,7 @@ func (d *DiscoveryClient) ServerVersion() (*version.Info, error) { // SwaggerSchema retrieves and parses the swagger API schema the server supports. func (d *DiscoveryClient) SwaggerSchema(version unversioned.GroupVersion) (*swagger.ApiDeclaration, error) { - if version.IsEmpty() { + if version.Empty() { return nil, fmt.Errorf("groupVersion cannot be empty") } diff --git a/1.4/discovery/restmapper.go b/1.4/discovery/restmapper.go index a45f37c6..78e3b3b3 100644 --- a/1.4/discovery/restmapper.go +++ b/1.4/discovery/restmapper.go @@ -80,6 +80,8 @@ func NewRESTMapper(groupResources []*APIGroupResources, versionInterfaces meta.V // TODO only do this if it supports listing versionMapper.Add(gv.WithKind(resource.Kind+"List"), scope) } + // TODO why is this type not in discovery (at least for "v1") + versionMapper.Add(gv.WithKind("List"), meta.RESTScopeRoot) unionMapper = append(unionMapper, versionMapper) } } diff --git a/1.4/discovery/unstructured.go b/1.4/discovery/unstructured.go new file mode 100644 index 00000000..0c8ef7bd --- /dev/null +++ b/1.4/discovery/unstructured.go @@ -0,0 +1,95 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package discovery + +import ( + "fmt" + + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/runtime" +) + +// UnstructuredObjectTyper provides a runtime.ObjectTyper implmentation for +// runtime.Unstructured object based on discovery information. +type UnstructuredObjectTyper struct { + registered map[unversioned.GroupVersionKind]bool +} + +// NewUnstructuredObjectTyper returns a runtime.ObjectTyper for +// unstructred objects based on discovery information. +func NewUnstructuredObjectTyper(groupResources []*APIGroupResources) *UnstructuredObjectTyper { + dot := &UnstructuredObjectTyper{registered: make(map[unversioned.GroupVersionKind]bool)} + for _, group := range groupResources { + for _, discoveryVersion := range group.Group.Versions { + resources, ok := group.VersionedResources[discoveryVersion.Version] + if !ok { + continue + } + + gv := unversioned.GroupVersion{Group: group.Group.Name, Version: discoveryVersion.Version} + for _, resource := range resources { + dot.registered[gv.WithKind(resource.Kind)] = true + } + } + } + return dot +} + +// ObjectKind returns the group,version,kind of the provided object, or an error +// if the object in not *runtime.Unstructured or has no group,version,kind +// information. +func (d *UnstructuredObjectTyper) ObjectKind(obj runtime.Object) (unversioned.GroupVersionKind, error) { + if _, ok := obj.(*runtime.Unstructured); !ok { + return unversioned.GroupVersionKind{}, fmt.Errorf("type %T is invalid for dynamic object typer", obj) + } + + return obj.GetObjectKind().GroupVersionKind(), nil +} + +// ObjectKinds returns a slice of one element with the group,version,kind of the +// provided object, or an error if the object is not *runtime.Unstructured or +// has no group,version,kind information. unversionedType will always be false +// because runtime.Unstructured object should always have group,version,kind +// information set. +func (d *UnstructuredObjectTyper) ObjectKinds(obj runtime.Object) (gvks []unversioned.GroupVersionKind, unversionedType bool, err error) { + gvk, err := d.ObjectKind(obj) + if err != nil { + return nil, false, err + } + + return []unversioned.GroupVersionKind{gvk}, false, nil +} + +// Recognizes returns true if the provided group,version,kind was in the +// discovery information. +func (d *UnstructuredObjectTyper) Recognizes(gvk unversioned.GroupVersionKind) bool { + return d.registered[gvk] +} + +// IsUnversioned returns false always because *runtime.Unstructured objects +// should always have group,version,kind information set. ok will be true if the +// object's group,version,kind is registered. +func (d *UnstructuredObjectTyper) IsUnversioned(obj runtime.Object) (unversioned bool, ok bool) { + gvk, err := d.ObjectKind(obj) + if err != nil { + return false, false + } + + return false, d.registered[gvk] +} + +var _ runtime.ObjectTyper = &UnstructuredObjectTyper{} diff --git a/1.4/dynamic/client.go b/1.4/dynamic/client.go index c9ac2a93..5b43f351 100644 --- a/1.4/dynamic/client.go +++ b/1.4/dynamic/client.go @@ -40,11 +40,7 @@ import ( // Client is a Kubernetes client that allows you to access metadata // and manipulate metadata of a Kubernetes API group. type Client struct { - cl *rest.RESTClient -} - -type ClientWithParameterCodec struct { - client *Client + cl *rest.RESTClient parameterCodec runtime.ParameterCodec } @@ -55,9 +51,12 @@ func NewClient(conf *rest.Config) (*Client, error) { confCopy := *conf conf = &confCopy - // TODO: it's questionable that this should be using anything other than unstructured schema and JSON - conf.ContentType = runtime.ContentTypeJSON - conf.AcceptContentTypes = runtime.ContentTypeJSON + contentConfig := ContentConfig() + contentConfig.GroupVersion = conf.GroupVersion + if conf.NegotiatedSerializer != nil { + contentConfig.NegotiatedSerializer = conf.NegotiatedSerializer + } + conf.ContentConfig = contentConfig if conf.APIPath == "" { conf.APIPath = "/api" @@ -66,10 +65,6 @@ func NewClient(conf *rest.Config) (*Client, error) { if len(conf.UserAgent) == 0 { conf.UserAgent = rest.DefaultKubernetesUserAgent() } - if conf.NegotiatedSerializer == nil { - streamingInfo, _ := api.Codecs.StreamingSerializerForMediaType("application/json;stream=watch", nil) - conf.NegotiatedSerializer = serializer.NegotiatedSerializerWrapper(runtime.SerializerInfo{Serializer: dynamicCodec{}}, streamingInfo) - } cl, err := rest.RESTClientFor(conf) if err != nil { @@ -86,35 +81,24 @@ func (c *Client) GetRateLimiter() flowcontrol.RateLimiter { // Resource returns an API interface to the specified resource for this client's // group and version. If resource is not a namespaced resource, then namespace -// is ignored. +// is ignored. The ResourceClient inherits the parameter codec of c. func (c *Client) Resource(resource *unversioned.APIResource, namespace string) *ResourceClient { return &ResourceClient{ - cl: c.cl, - resource: resource, - ns: namespace, - } -} - -// ParameterCodec wraps a parameterCodec around the Client. -func (c *Client) ParameterCodec(parameterCodec runtime.ParameterCodec) *ClientWithParameterCodec { - return &ClientWithParameterCodec{ - client: c, - parameterCodec: parameterCodec, - } -} - -// Resource returns an API interface to the specified resource for this client's -// group and version. If resource is not a namespaced resource, then namespace -// is ignored. The ResourceClient inherits the parameter codec of c. -func (c *ClientWithParameterCodec) Resource(resource *unversioned.APIResource, namespace string) *ResourceClient { - return &ResourceClient{ - cl: c.client.cl, + cl: c.cl, resource: resource, ns: namespace, parameterCodec: c.parameterCodec, } } +// ParameterCodec returns a client with the provided parameter codec. +func (c *Client) ParameterCodec(parameterCodec runtime.ParameterCodec) *Client { + return &Client{ + cl: c.cl, + parameterCodec: parameterCodec, + } +} + // ResourceClient is an API interface to a specific resource under a // dynamic client. type ResourceClient struct { @@ -255,6 +239,18 @@ func (dynamicCodec) Encode(obj runtime.Object, w io.Writer) error { return runtime.UnstructuredJSONScheme.Encode(obj, w) } +// ContentConfig returns a rest.ContentConfig for dynamic types. +func ContentConfig() rest.ContentConfig { + // TODO: it's questionable that this should be using anything other than unstructured schema and JSON + codec := dynamicCodec{} + streamingInfo, _ := api.Codecs.StreamingSerializerForMediaType("application/json;stream=watch", nil) + return rest.ContentConfig{ + AcceptContentTypes: runtime.ContentTypeJSON, + ContentType: runtime.ContentTypeJSON, + NegotiatedSerializer: serializer.NegotiatedSerializerWrapper(runtime.SerializerInfo{Serializer: codec}, streamingInfo), + } +} + // paramaterCodec is a codec converts an API object to query // parameters without trying to convert to the target version. type parameterCodec struct{} diff --git a/1.4/kubernetes/clientset.go b/1.4/kubernetes/clientset.go index 3645c210..e28c02ca 100644 --- a/1.4/kubernetes/clientset.go +++ b/1.4/kubernetes/clientset.go @@ -24,6 +24,7 @@ import ( v1batch "k8s.io/client-go/1.4/kubernetes/typed/batch/v1" v1core "k8s.io/client-go/1.4/kubernetes/typed/core/v1" v1beta1extensions "k8s.io/client-go/1.4/kubernetes/typed/extensions/v1beta1" + v1alpha1policy "k8s.io/client-go/1.4/kubernetes/typed/policy/v1alpha1" "k8s.io/client-go/1.4/pkg/util/flowcontrol" rest "k8s.io/client-go/1.4/rest" ) @@ -35,6 +36,7 @@ type Interface interface { Autoscaling() v1autoscaling.AutoscalingInterface Batch() v1batch.BatchInterface Extensions() v1beta1extensions.ExtensionsInterface + Policy() v1alpha1policy.PolicyInterface } // Clientset contains the clients for groups. Each group has exactly one @@ -46,6 +48,7 @@ type Clientset struct { *v1autoscaling.AutoscalingClient *v1batch.BatchClient *v1beta1extensions.ExtensionsClient + *v1alpha1policy.PolicyClient } // Core retrieves the CoreClient @@ -88,6 +91,14 @@ func (c *Clientset) Extensions() v1beta1extensions.ExtensionsInterface { return c.ExtensionsClient } +// Policy retrieves the PolicyClient +func (c *Clientset) Policy() v1alpha1policy.PolicyInterface { + if c == nil { + return nil + } + return c.PolicyClient +} + // Discovery retrieves the DiscoveryClient func (c *Clientset) Discovery() discovery.DiscoveryInterface { return c.DiscoveryClient @@ -121,6 +132,10 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { if err != nil { return nil, err } + clientset.PolicyClient, err = v1alpha1policy.NewForConfig(&configShallowCopy) + if err != nil { + return nil, err + } clientset.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy) if err != nil { @@ -139,6 +154,7 @@ func NewForConfigOrDie(c *rest.Config) *Clientset { clientset.AutoscalingClient = v1autoscaling.NewForConfigOrDie(c) clientset.BatchClient = v1batch.NewForConfigOrDie(c) clientset.ExtensionsClient = v1beta1extensions.NewForConfigOrDie(c) + clientset.PolicyClient = v1alpha1policy.NewForConfigOrDie(c) clientset.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) return &clientset @@ -152,6 +168,7 @@ func New(c *rest.RESTClient) *Clientset { clientset.AutoscalingClient = v1autoscaling.New(c) clientset.BatchClient = v1batch.New(c) clientset.ExtensionsClient = v1beta1extensions.New(c) + clientset.PolicyClient = v1alpha1policy.New(c) clientset.DiscoveryClient = discovery.NewDiscoveryClient(c) return &clientset diff --git a/1.4/kubernetes/doc.go b/1.4/kubernetes/doc.go index dbbbd932..43c96d2e 100644 --- a/1.4/kubernetes/doc.go +++ b/1.4/kubernetes/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1] // This package has the automatically generated clientset. package kubernetes diff --git a/1.4/kubernetes/fake/clientset_generated.go b/1.4/kubernetes/fake/clientset_generated.go index 95a0ac54..5a7c005f 100644 --- a/1.4/kubernetes/fake/clientset_generated.go +++ b/1.4/kubernetes/fake/clientset_generated.go @@ -30,6 +30,8 @@ import ( fakev1core "k8s.io/client-go/1.4/kubernetes/typed/core/v1/fake" v1beta1extensions "k8s.io/client-go/1.4/kubernetes/typed/extensions/v1beta1" fakev1beta1extensions "k8s.io/client-go/1.4/kubernetes/typed/extensions/v1beta1/fake" + v1alpha1policy "k8s.io/client-go/1.4/kubernetes/typed/policy/v1alpha1" + fakev1alpha1policy "k8s.io/client-go/1.4/kubernetes/typed/policy/v1alpha1/fake" "k8s.io/client-go/1.4/pkg/api" "k8s.io/client-go/1.4/pkg/apimachinery/registered" "k8s.io/client-go/1.4/pkg/runtime" @@ -94,3 +96,8 @@ func (c *Clientset) Batch() v1batch.BatchInterface { func (c *Clientset) Extensions() v1beta1extensions.ExtensionsInterface { return &fakev1beta1extensions.FakeExtensions{Fake: &c.Fake} } + +// Policy retrieves the PolicyClient +func (c *Clientset) Policy() v1alpha1policy.PolicyInterface { + return &fakev1alpha1policy.FakePolicy{Fake: &c.Fake} +} diff --git a/1.4/kubernetes/fake/doc.go b/1.4/kubernetes/fake/doc.go index 5960759d..3617f59c 100644 --- a/1.4/kubernetes/fake/doc.go +++ b/1.4/kubernetes/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1] // This package has the automatically generated fake clientset. package fake diff --git a/1.4/kubernetes/import_known_versions.go b/1.4/kubernetes/import_known_versions.go index bbae18bd..a1ae787f 100644 --- a/1.4/kubernetes/import_known_versions.go +++ b/1.4/kubernetes/import_known_versions.go @@ -26,6 +26,7 @@ import ( _ "k8s.io/client-go/1.4/pkg/apis/autoscaling/install" _ "k8s.io/client-go/1.4/pkg/apis/batch/install" _ "k8s.io/client-go/1.4/pkg/apis/extensions/install" + _ "k8s.io/client-go/1.4/pkg/apis/policy/install" ) func init() { diff --git a/1.4/kubernetes/typed/authorization/v1beta1/doc.go b/1.4/kubernetes/typed/authorization/v1beta1/doc.go index cb0c1513..a3af9681 100644 --- a/1.4/kubernetes/typed/authorization/v1beta1/doc.go +++ b/1.4/kubernetes/typed/authorization/v1beta1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1] // This package has the automatically generated typed clients. package v1beta1 diff --git a/1.4/kubernetes/typed/authorization/v1beta1/fake/doc.go b/1.4/kubernetes/typed/authorization/v1beta1/fake/doc.go index e11fe77b..1b806dc9 100644 --- a/1.4/kubernetes/typed/authorization/v1beta1/fake/doc.go +++ b/1.4/kubernetes/typed/authorization/v1beta1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1] // Package fake has the automatically generated clients. package fake diff --git a/1.4/kubernetes/typed/authorization/v1beta1/fake/fake_generated_expansion.go b/1.4/kubernetes/typed/authorization/v1beta1/fake/fake_subjectaccessreview_expansion.go similarity index 100% rename from 1.4/kubernetes/typed/authorization/v1beta1/fake/fake_generated_expansion.go rename to 1.4/kubernetes/typed/authorization/v1beta1/fake/fake_subjectaccessreview_expansion.go diff --git a/1.4/kubernetes/typed/authorization/v1beta1/generated_expansion.go b/1.4/kubernetes/typed/authorization/v1beta1/generated_expansion.go index 3dbc0531..a397b30e 100644 --- a/1.4/kubernetes/typed/authorization/v1beta1/generated_expansion.go +++ b/1.4/kubernetes/typed/authorization/v1beta1/generated_expansion.go @@ -15,22 +15,3 @@ limitations under the License. */ package v1beta1 - -import ( - authorizationapi "k8s.io/client-go/1.4/pkg/apis/authorization/v1beta1" -) - -// The PodExpansion interface allows manually adding extra methods to the PodInterface. -type SubjectAccessReviewExpansion interface { - Create(sar *authorizationapi.SubjectAccessReview) (result *authorizationapi.SubjectAccessReview, err error) -} - -func (c *subjectAccessReviews) Create(sar *authorizationapi.SubjectAccessReview) (result *authorizationapi.SubjectAccessReview, err error) { - result = &authorizationapi.SubjectAccessReview{} - err = c.client.Post(). - Resource("subjectaccessreviews"). - Body(sar). - Do(). - Into(result) - return -} diff --git a/1.4/kubernetes/typed/authorization/v1beta1/subjectaccessreview_expansion.go b/1.4/kubernetes/typed/authorization/v1beta1/subjectaccessreview_expansion.go new file mode 100644 index 00000000..2305253b --- /dev/null +++ b/1.4/kubernetes/typed/authorization/v1beta1/subjectaccessreview_expansion.go @@ -0,0 +1,36 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1beta1 + +import ( + authorizationapi "k8s.io/client-go/1.4/pkg/apis/authorization/v1beta1" +) + +// The SubjectAccessReviewExpansion interface allows manually adding extra methods to the AuthorizationInterface. +type SubjectAccessReviewExpansion interface { + Create(sar *authorizationapi.SubjectAccessReview) (result *authorizationapi.SubjectAccessReview, err error) +} + +func (c *subjectAccessReviews) Create(sar *authorizationapi.SubjectAccessReview) (result *authorizationapi.SubjectAccessReview, err error) { + result = &authorizationapi.SubjectAccessReview{} + err = c.client.Post(). + Resource("subjectaccessreviews"). + Body(sar). + Do(). + Into(result) + return +} diff --git a/1.4/kubernetes/typed/autoscaling/v1/doc.go b/1.4/kubernetes/typed/autoscaling/v1/doc.go index 94c71806..446dcdd0 100644 --- a/1.4/kubernetes/typed/autoscaling/v1/doc.go +++ b/1.4/kubernetes/typed/autoscaling/v1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1] // This package has the automatically generated typed clients. package v1 diff --git a/1.4/kubernetes/typed/autoscaling/v1/fake/doc.go b/1.4/kubernetes/typed/autoscaling/v1/fake/doc.go index e11fe77b..1b806dc9 100644 --- a/1.4/kubernetes/typed/autoscaling/v1/fake/doc.go +++ b/1.4/kubernetes/typed/autoscaling/v1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1] // Package fake has the automatically generated clients. package fake diff --git a/1.4/kubernetes/typed/batch/v1/doc.go b/1.4/kubernetes/typed/batch/v1/doc.go index 94c71806..446dcdd0 100644 --- a/1.4/kubernetes/typed/batch/v1/doc.go +++ b/1.4/kubernetes/typed/batch/v1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1] // This package has the automatically generated typed clients. package v1 diff --git a/1.4/kubernetes/typed/batch/v1/fake/doc.go b/1.4/kubernetes/typed/batch/v1/fake/doc.go index e11fe77b..1b806dc9 100644 --- a/1.4/kubernetes/typed/batch/v1/fake/doc.go +++ b/1.4/kubernetes/typed/batch/v1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1] // Package fake has the automatically generated clients. package fake diff --git a/1.4/kubernetes/typed/core/v1/doc.go b/1.4/kubernetes/typed/core/v1/doc.go index 94c71806..446dcdd0 100644 --- a/1.4/kubernetes/typed/core/v1/doc.go +++ b/1.4/kubernetes/typed/core/v1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1] // This package has the automatically generated typed clients. package v1 diff --git a/1.4/kubernetes/typed/core/v1/event_expansion.go b/1.4/kubernetes/typed/core/v1/event_expansion.go new file mode 100644 index 00000000..74ff4e52 --- /dev/null +++ b/1.4/kubernetes/typed/core/v1/event_expansion.go @@ -0,0 +1,162 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1 + +import ( + "fmt" + + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/api/v1" + "k8s.io/client-go/1.4/pkg/fields" + "k8s.io/client-go/1.4/pkg/runtime" +) + +// The EventExpansion interface allows manually adding extra methods to the EventInterface. +type EventExpansion interface { + // CreateWithEventNamespace is the same as a Create, except that it sends the request to the event.Namespace. + CreateWithEventNamespace(event *v1.Event) (*v1.Event, error) + // UpdateWithEventNamespace is the same as a Update, except that it sends the request to the event.Namespace. + UpdateWithEventNamespace(event *v1.Event) (*v1.Event, error) + PatchWithEventNamespace(event *v1.Event, data []byte) (*v1.Event, error) + // Search finds events about the specified object + Search(objOrRef runtime.Object) (*v1.EventList, error) + // Returns the appropriate field selector based on the API version being used to communicate with the server. + // The returned field selector can be used with List and Watch to filter desired events. + GetFieldSelector(involvedObjectName, involvedObjectNamespace, involvedObjectKind, involvedObjectUID *string) fields.Selector +} + +// CreateWithEventNamespace makes a new event. Returns the copy of the event the server returns, +// or an error. The namespace to create the event within is deduced from the +// event; it must either match this event client's namespace, or this event +// client must have been created with the "" namespace. +func (e *events) CreateWithEventNamespace(event *v1.Event) (*v1.Event, error) { + if e.ns != "" && event.Namespace != e.ns { + return nil, fmt.Errorf("can't create an event with namespace '%v' in namespace '%v'", event.Namespace, e.ns) + } + result := &v1.Event{} + err := e.client.Post(). + NamespaceIfScoped(event.Namespace, len(event.Namespace) > 0). + Resource("events"). + Body(event). + Do(). + Into(result) + return result, err +} + +// UpdateWithEventNamespace modifies an existing event. It returns the copy of the event that the server returns, +// or an error. The namespace and key to update the event within is deduced from the event. The +// namespace must either match this event client's namespace, or this event client must have been +// created with the "" namespace. Update also requires the ResourceVersion to be set in the event +// object. +func (e *events) UpdateWithEventNamespace(event *v1.Event) (*v1.Event, error) { + result := &v1.Event{} + err := e.client.Put(). + NamespaceIfScoped(event.Namespace, len(event.Namespace) > 0). + Resource("events"). + Name(event.Name). + Body(event). + Do(). + Into(result) + return result, err +} + +// PatchWithEventNamespace modifies an existing event. It returns the copy of +// the event that the server returns, or an error. The namespace and name of the +// target event is deduced from the incompleteEvent. The namespace must either +// match this event client's namespace, or this event client must have been +// created with the "" namespace. +func (e *events) PatchWithEventNamespace(incompleteEvent *v1.Event, data []byte) (*v1.Event, error) { + if e.ns != "" && incompleteEvent.Namespace != e.ns { + return nil, fmt.Errorf("can't patch an event with namespace '%v' in namespace '%v'", incompleteEvent.Namespace, e.ns) + } + result := &v1.Event{} + err := e.client.Patch(api.StrategicMergePatchType). + NamespaceIfScoped(incompleteEvent.Namespace, len(incompleteEvent.Namespace) > 0). + Resource("events"). + Name(incompleteEvent.Name). + Body(data). + Do(). + Into(result) + return result, err +} + +// Search finds events about the specified object. The namespace of the +// object must match this event's client namespace unless the event client +// was made with the "" namespace. +func (e *events) Search(objOrRef runtime.Object) (*v1.EventList, error) { + ref, err := api.GetReference(objOrRef) + if err != nil { + return nil, err + } + if e.ns != "" && ref.Namespace != e.ns { + return nil, fmt.Errorf("won't be able to find any events of namespace '%v' in namespace '%v'", ref.Namespace, e.ns) + } + stringRefKind := string(ref.Kind) + var refKind *string + if stringRefKind != "" { + refKind = &stringRefKind + } + stringRefUID := string(ref.UID) + var refUID *string + if stringRefUID != "" { + refUID = &stringRefUID + } + fieldSelector := e.GetFieldSelector(&ref.Name, &ref.Namespace, refKind, refUID) + return e.List(api.ListOptions{FieldSelector: fieldSelector}) +} + +// Returns the appropriate field selector based on the API version being used to communicate with the server. +// The returned field selector can be used with List and Watch to filter desired events. +func (e *events) GetFieldSelector(involvedObjectName, involvedObjectNamespace, involvedObjectKind, involvedObjectUID *string) fields.Selector { + apiVersion := e.client.APIVersion().String() + field := fields.Set{} + if involvedObjectName != nil { + field[GetInvolvedObjectNameFieldLabel(apiVersion)] = *involvedObjectName + } + if involvedObjectNamespace != nil { + field["involvedObject.namespace"] = *involvedObjectNamespace + } + if involvedObjectKind != nil { + field["involvedObject.kind"] = *involvedObjectKind + } + if involvedObjectUID != nil { + field["involvedObject.uid"] = *involvedObjectUID + } + return field.AsSelector() +} + +// Returns the appropriate field label to use for name of the involved object as per the given API version. +func GetInvolvedObjectNameFieldLabel(version string) string { + return "involvedObject.name" +} + +// TODO: This is a temporary arrangement and will be removed once all clients are moved to use the clientset. +type EventSinkImpl struct { + Interface EventInterface +} + +func (e *EventSinkImpl) Create(event *v1.Event) (*v1.Event, error) { + return e.Interface.CreateWithEventNamespace(event) +} + +func (e *EventSinkImpl) Update(event *v1.Event) (*v1.Event, error) { + return e.Interface.UpdateWithEventNamespace(event) +} + +func (e *EventSinkImpl) Patch(event *v1.Event, data []byte) (*v1.Event, error) { + return e.Interface.PatchWithEventNamespace(event, data) +} diff --git a/1.4/kubernetes/typed/core/v1/fake/doc.go b/1.4/kubernetes/typed/core/v1/fake/doc.go index e11fe77b..1b806dc9 100644 --- a/1.4/kubernetes/typed/core/v1/fake/doc.go +++ b/1.4/kubernetes/typed/core/v1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1] // Package fake has the automatically generated clients. package fake diff --git a/1.4/kubernetes/typed/core/v1/fake/fake_event_expansion.go b/1.4/kubernetes/typed/core/v1/fake/fake_event_expansion.go new file mode 100644 index 00000000..f5478c12 --- /dev/null +++ b/1.4/kubernetes/typed/core/v1/fake/fake_event_expansion.go @@ -0,0 +1,89 @@ +/* +Copyright 2014 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package fake + +import ( + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/api/v1" + "k8s.io/client-go/1.4/pkg/fields" + "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/testing" +) + +func (c *FakeEvents) CreateWithEventNamespace(event *v1.Event) (*v1.Event, error) { + action := testing.NewRootCreateAction(eventsResource, event) + if c.ns != "" { + action = testing.NewCreateAction(eventsResource, c.ns, event) + } + obj, err := c.Fake.Invokes(action, event) + if obj == nil { + return nil, err + } + + return obj.(*v1.Event), err +} + +// Update replaces an existing event. Returns the copy of the event the server returns, or an error. +func (c *FakeEvents) UpdateWithEventNamespace(event *v1.Event) (*v1.Event, error) { + action := testing.NewRootUpdateAction(eventsResource, event) + if c.ns != "" { + action = testing.NewUpdateAction(eventsResource, c.ns, event) + } + obj, err := c.Fake.Invokes(action, event) + if obj == nil { + return nil, err + } + + return obj.(*v1.Event), err +} + +// PatchWithEventNamespace patches an existing event. Returns the copy of the event the server returns, or an error. +func (c *FakeEvents) PatchWithEventNamespace(event *v1.Event, data []byte) (*v1.Event, error) { + action := testing.NewRootPatchAction(eventsResource, event.Name, data) + if c.ns != "" { + action = testing.NewPatchAction(eventsResource, c.ns, event.Name, data) + } + obj, err := c.Fake.Invokes(action, event) + if obj == nil { + return nil, err + } + + return obj.(*v1.Event), err +} + +// Search returns a list of events matching the specified object. +func (c *FakeEvents) Search(objOrRef runtime.Object) (*v1.EventList, error) { + action := testing.NewRootListAction(eventsResource, api.ListOptions{}) + if c.ns != "" { + action = testing.NewListAction(eventsResource, c.ns, api.ListOptions{}) + } + obj, err := c.Fake.Invokes(action, &v1.EventList{}) + if obj == nil { + return nil, err + } + + return obj.(*v1.EventList), err +} + +func (c *FakeEvents) GetFieldSelector(involvedObjectName, involvedObjectNamespace, involvedObjectKind, involvedObjectUID *string) fields.Selector { + action := testing.GenericActionImpl{} + action.Verb = "get-field-selector" + action.Resource = eventsResource + + c.Fake.Invokes(action, nil) + return fields.Everything() +} diff --git a/1.4/kubernetes/typed/core/v1/fake/fake_namespace_expansion.go b/1.4/kubernetes/typed/core/v1/fake/fake_namespace_expansion.go new file mode 100644 index 00000000..1c913c7c --- /dev/null +++ b/1.4/kubernetes/typed/core/v1/fake/fake_namespace_expansion.go @@ -0,0 +1,37 @@ +/* +Copyright 2014 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package fake + +import ( + "k8s.io/client-go/1.4/pkg/api/v1" + "k8s.io/client-go/1.4/testing" +) + +func (c *FakeNamespaces) Finalize(namespace *v1.Namespace) (*v1.Namespace, error) { + action := testing.CreateActionImpl{} + action.Verb = "create" + action.Resource = namespacesResource + action.Subresource = "finalize" + action.Object = namespace + + obj, err := c.Fake.Invokes(action, namespace) + if obj == nil { + return nil, err + } + + return obj.(*v1.Namespace), err +} diff --git a/1.4/kubernetes/typed/core/v1/fake/fake_pod_expansion.go b/1.4/kubernetes/typed/core/v1/fake/fake_pod_expansion.go new file mode 100644 index 00000000..91e539f4 --- /dev/null +++ b/1.4/kubernetes/typed/core/v1/fake/fake_pod_expansion.go @@ -0,0 +1,46 @@ +/* +Copyright 2014 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package fake + +import ( + "k8s.io/client-go/1.4/pkg/api/v1" + "k8s.io/client-go/1.4/rest" + "k8s.io/client-go/1.4/testing" +) + +func (c *FakePods) Bind(binding *v1.Binding) error { + action := testing.CreateActionImpl{} + action.Verb = "create" + action.Resource = podsResource + action.Subresource = "bindings" + action.Object = binding + + _, err := c.Fake.Invokes(action, binding) + return err +} + +func (c *FakePods) GetLogs(name string, opts *v1.PodLogOptions) *rest.Request { + action := testing.GenericActionImpl{} + action.Verb = "get" + action.Namespace = c.ns + action.Resource = podsResource + action.Subresource = "logs" + action.Value = opts + + _, _ = c.Fake.Invokes(action, &v1.Pod{}) + return &rest.Request{} +} diff --git a/1.4/kubernetes/typed/core/v1/fake/fake_service_expansion.go b/1.4/kubernetes/typed/core/v1/fake/fake_service_expansion.go new file mode 100644 index 00000000..8dfcd205 --- /dev/null +++ b/1.4/kubernetes/typed/core/v1/fake/fake_service_expansion.go @@ -0,0 +1,26 @@ +/* +Copyright 2014 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package fake + +import ( + "k8s.io/client-go/1.4/rest" + "k8s.io/client-go/1.4/testing" +) + +func (c *FakeServices) ProxyGet(scheme, name, port, path string, params map[string]string) rest.ResponseWrapper { + return c.Fake.InvokesProxy(testing.NewProxyGetAction(servicesResource, c.ns, scheme, name, port, path, params)) +} diff --git a/1.4/kubernetes/typed/core/v1/generated_expansion.go b/1.4/kubernetes/typed/core/v1/generated_expansion.go index 88037070..ed8385aa 100644 --- a/1.4/kubernetes/typed/core/v1/generated_expansion.go +++ b/1.4/kubernetes/typed/core/v1/generated_expansion.go @@ -22,18 +22,12 @@ type ConfigMapExpansion interface{} type EndpointsExpansion interface{} -type EventExpansion interface{} - type LimitRangeExpansion interface{} -type NamespaceExpansion interface{} - type NodeExpansion interface{} type PersistentVolumeExpansion interface{} -type PodExpansion interface{} - type PodTemplateExpansion interface{} type ReplicationControllerExpansion interface{} @@ -42,6 +36,4 @@ type ResourceQuotaExpansion interface{} type SecretExpansion interface{} -type ServiceExpansion interface{} - type ServiceAccountExpansion interface{} diff --git a/1.4/kubernetes/typed/core/v1/namespace_expansion.go b/1.4/kubernetes/typed/core/v1/namespace_expansion.go new file mode 100644 index 00000000..2ca0e5bb --- /dev/null +++ b/1.4/kubernetes/typed/core/v1/namespace_expansion.go @@ -0,0 +1,31 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1 + +import "k8s.io/client-go/1.4/pkg/api/v1" + +// The NamespaceExpansion interface allows manually adding extra methods to the NamespaceInterface. +type NamespaceExpansion interface { + Finalize(item *v1.Namespace) (*v1.Namespace, error) +} + +// Finalize takes the representation of a namespace to update. Returns the server's representation of the namespace, and an error, if it occurs. +func (c *namespaces) Finalize(namespace *v1.Namespace) (result *v1.Namespace, err error) { + result = &v1.Namespace{} + err = c.client.Put().Resource("namespaces").Name(namespace.Name).SubResource("finalize").Body(namespace).Do().Into(result) + return +} diff --git a/1.4/kubernetes/typed/core/v1/pod_expansion.go b/1.4/kubernetes/typed/core/v1/pod_expansion.go new file mode 100644 index 00000000..8ece7798 --- /dev/null +++ b/1.4/kubernetes/typed/core/v1/pod_expansion.go @@ -0,0 +1,39 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1 + +import ( + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/api/v1" + "k8s.io/client-go/1.4/rest" +) + +// The PodExpansion interface allows manually adding extra methods to the PodInterface. +type PodExpansion interface { + Bind(binding *v1.Binding) error + GetLogs(name string, opts *v1.PodLogOptions) *rest.Request +} + +// Bind applies the provided binding to the named pod in the current namespace (binding.Namespace is ignored). +func (c *pods) Bind(binding *v1.Binding) error { + return c.client.Post().Namespace(c.ns).Resource("pods").Name(binding.Name).SubResource("binding").Body(binding).Do().Error() +} + +// Get constructs a request for getting the logs for a pod +func (c *pods) GetLogs(name string, opts *v1.PodLogOptions) *rest.Request { + return c.client.Get().Namespace(c.ns).Name(name).Resource("pods").SubResource("log").VersionedParams(opts, api.ParameterCodec) +} diff --git a/1.4/kubernetes/typed/core/v1/service_expansion.go b/1.4/kubernetes/typed/core/v1/service_expansion.go new file mode 100644 index 00000000..8702c95f --- /dev/null +++ b/1.4/kubernetes/typed/core/v1/service_expansion.go @@ -0,0 +1,41 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1 + +import ( + "k8s.io/client-go/1.4/pkg/util/net" + "k8s.io/client-go/1.4/rest" +) + +// The ServiceExpansion interface allows manually adding extra methods to the ServiceInterface. +type ServiceExpansion interface { + ProxyGet(scheme, name, port, path string, params map[string]string) rest.ResponseWrapper +} + +// ProxyGet returns a response of the service by calling it through the proxy. +func (c *services) ProxyGet(scheme, name, port, path string, params map[string]string) rest.ResponseWrapper { + request := c.client.Get(). + Prefix("proxy"). + Namespace(c.ns). + Resource("services"). + Name(net.JoinSchemeNamePort(scheme, name, port)). + Suffix(path) + for k, v := range params { + request = request.Param(k, v) + } + return request +} diff --git a/1.4/kubernetes/typed/extensions/v1beta1/deployment_expansion.go b/1.4/kubernetes/typed/extensions/v1beta1/deployment_expansion.go new file mode 100644 index 00000000..b111e503 --- /dev/null +++ b/1.4/kubernetes/typed/extensions/v1beta1/deployment_expansion.go @@ -0,0 +1,29 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1beta1 + +import "k8s.io/client-go/1.4/pkg/apis/extensions/v1beta1" + +// The DeploymentExpansion interface allows manually adding extra methods to the DeploymentInterface. +type DeploymentExpansion interface { + Rollback(*v1beta1.DeploymentRollback) error +} + +// Rollback applied the provided DeploymentRollback to the named deployment in the current namespace. +func (c *deployments) Rollback(deploymentRollback *v1beta1.DeploymentRollback) error { + return c.client.Post().Namespace(c.ns).Resource("deployments").Name(deploymentRollback.Name).SubResource("rollback").Body(deploymentRollback).Do().Error() +} diff --git a/1.4/kubernetes/typed/extensions/v1beta1/doc.go b/1.4/kubernetes/typed/extensions/v1beta1/doc.go index cb0c1513..a3af9681 100644 --- a/1.4/kubernetes/typed/extensions/v1beta1/doc.go +++ b/1.4/kubernetes/typed/extensions/v1beta1/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1] // This package has the automatically generated typed clients. package v1beta1 diff --git a/1.4/kubernetes/typed/extensions/v1beta1/extensions_client.go b/1.4/kubernetes/typed/extensions/v1beta1/extensions_client.go index 2c6c58ea..1dfb3ed1 100644 --- a/1.4/kubernetes/typed/extensions/v1beta1/extensions_client.go +++ b/1.4/kubernetes/typed/extensions/v1beta1/extensions_client.go @@ -27,7 +27,6 @@ type ExtensionsInterface interface { GetRESTClient() *rest.RESTClient DaemonSetsGetter DeploymentsGetter - HorizontalPodAutoscalersGetter IngressesGetter JobsGetter PodSecurityPoliciesGetter @@ -50,10 +49,6 @@ func (c *ExtensionsClient) Deployments(namespace string) DeploymentInterface { return newDeployments(c, namespace) } -func (c *ExtensionsClient) HorizontalPodAutoscalers(namespace string) HorizontalPodAutoscalerInterface { - return newHorizontalPodAutoscalers(c, namespace) -} - func (c *ExtensionsClient) Ingresses(namespace string) IngressInterface { return newIngresses(c, namespace) } diff --git a/1.4/kubernetes/typed/extensions/v1beta1/fake/doc.go b/1.4/kubernetes/typed/extensions/v1beta1/fake/doc.go index e11fe77b..1b806dc9 100644 --- a/1.4/kubernetes/typed/extensions/v1beta1/fake/doc.go +++ b/1.4/kubernetes/typed/extensions/v1beta1/fake/doc.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1] +// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1] // Package fake has the automatically generated clients. package fake diff --git a/1.4/kubernetes/typed/extensions/v1beta1/fake/fake_deployment_expansion.go b/1.4/kubernetes/typed/extensions/v1beta1/fake/fake_deployment_expansion.go new file mode 100644 index 00000000..e13131dc --- /dev/null +++ b/1.4/kubernetes/typed/extensions/v1beta1/fake/fake_deployment_expansion.go @@ -0,0 +1,33 @@ +/* +Copyright 2014 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package fake + +import ( + "k8s.io/client-go/1.4/pkg/apis/extensions/v1beta1" + "k8s.io/client-go/1.4/testing" +) + +func (c *FakeDeployments) Rollback(deploymentRollback *v1beta1.DeploymentRollback) error { + action := testing.CreateActionImpl{} + action.Verb = "create" + action.Resource = deploymentsResource + action.Subresource = "rollback" + action.Object = deploymentRollback + + _, err := c.Fake.Invokes(action, deploymentRollback) + return err +} diff --git a/1.4/kubernetes/typed/extensions/v1beta1/fake/fake_extensions_client.go b/1.4/kubernetes/typed/extensions/v1beta1/fake/fake_extensions_client.go index 85a868b2..8d2c7047 100644 --- a/1.4/kubernetes/typed/extensions/v1beta1/fake/fake_extensions_client.go +++ b/1.4/kubernetes/typed/extensions/v1beta1/fake/fake_extensions_client.go @@ -34,10 +34,6 @@ func (c *FakeExtensions) Deployments(namespace string) v1beta1.DeploymentInterfa return &FakeDeployments{c, namespace} } -func (c *FakeExtensions) HorizontalPodAutoscalers(namespace string) v1beta1.HorizontalPodAutoscalerInterface { - return &FakeHorizontalPodAutoscalers{c, namespace} -} - func (c *FakeExtensions) Ingresses(namespace string) v1beta1.IngressInterface { return &FakeIngresses{c, namespace} } diff --git a/1.4/kubernetes/typed/extensions/v1beta1/fake/fake_horizontalpodautoscaler.go b/1.4/kubernetes/typed/extensions/v1beta1/fake/fake_horizontalpodautoscaler.go deleted file mode 100644 index fac297ea..00000000 --- a/1.4/kubernetes/typed/extensions/v1beta1/fake/fake_horizontalpodautoscaler.go +++ /dev/null @@ -1,127 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package fake - -import ( - api "k8s.io/client-go/1.4/pkg/api" - unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" - v1beta1 "k8s.io/client-go/1.4/pkg/apis/extensions/v1beta1" - labels "k8s.io/client-go/1.4/pkg/labels" - watch "k8s.io/client-go/1.4/pkg/watch" - testing "k8s.io/client-go/1.4/testing" -) - -// FakeHorizontalPodAutoscalers implements HorizontalPodAutoscalerInterface -type FakeHorizontalPodAutoscalers struct { - Fake *FakeExtensions - ns string -} - -var horizontalpodautoscalersResource = unversioned.GroupVersionResource{Group: "extensions", Version: "v1beta1", Resource: "horizontalpodautoscalers"} - -func (c *FakeHorizontalPodAutoscalers) Create(horizontalPodAutoscaler *v1beta1.HorizontalPodAutoscaler) (result *v1beta1.HorizontalPodAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewCreateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &v1beta1.HorizontalPodAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.HorizontalPodAutoscaler), err -} - -func (c *FakeHorizontalPodAutoscalers) Update(horizontalPodAutoscaler *v1beta1.HorizontalPodAutoscaler) (result *v1beta1.HorizontalPodAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateAction(horizontalpodautoscalersResource, c.ns, horizontalPodAutoscaler), &v1beta1.HorizontalPodAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.HorizontalPodAutoscaler), err -} - -func (c *FakeHorizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *v1beta1.HorizontalPodAutoscaler) (*v1beta1.HorizontalPodAutoscaler, error) { - obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(horizontalpodautoscalersResource, "status", c.ns, horizontalPodAutoscaler), &v1beta1.HorizontalPodAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.HorizontalPodAutoscaler), err -} - -func (c *FakeHorizontalPodAutoscalers) Delete(name string, options *api.DeleteOptions) error { - _, err := c.Fake. - Invokes(testing.NewDeleteAction(horizontalpodautoscalersResource, c.ns, name), &v1beta1.HorizontalPodAutoscaler{}) - - return err -} - -func (c *FakeHorizontalPodAutoscalers) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { - action := testing.NewDeleteCollectionAction(horizontalpodautoscalersResource, c.ns, listOptions) - - _, err := c.Fake.Invokes(action, &v1beta1.HorizontalPodAutoscalerList{}) - return err -} - -func (c *FakeHorizontalPodAutoscalers) Get(name string) (result *v1beta1.HorizontalPodAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewGetAction(horizontalpodautoscalersResource, c.ns, name), &v1beta1.HorizontalPodAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.HorizontalPodAutoscaler), err -} - -func (c *FakeHorizontalPodAutoscalers) List(opts api.ListOptions) (result *v1beta1.HorizontalPodAutoscalerList, err error) { - obj, err := c.Fake. - Invokes(testing.NewListAction(horizontalpodautoscalersResource, c.ns, opts), &v1beta1.HorizontalPodAutoscalerList{}) - - if obj == nil { - return nil, err - } - - label := opts.LabelSelector - if label == nil { - label = labels.Everything() - } - list := &v1beta1.HorizontalPodAutoscalerList{} - for _, item := range obj.(*v1beta1.HorizontalPodAutoscalerList).Items { - if label.Matches(labels.Set(item.Labels)) { - list.Items = append(list.Items, item) - } - } - return list, err -} - -// Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. -func (c *FakeHorizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface, error) { - return c.Fake. - InvokesWatch(testing.NewWatchAction(horizontalpodautoscalersResource, c.ns, opts)) - -} - -// Patch applies the patch and returns the patched horizontalPodAutoscaler. -func (c *FakeHorizontalPodAutoscalers) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.HorizontalPodAutoscaler, err error) { - obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(horizontalpodautoscalersResource, c.ns, name, data, subresources...), &v1beta1.HorizontalPodAutoscaler{}) - - if obj == nil { - return nil, err - } - return obj.(*v1beta1.HorizontalPodAutoscaler), err -} diff --git a/1.4/kubernetes/typed/extensions/v1beta1/fake/fake_scale_expansion.go b/1.4/kubernetes/typed/extensions/v1beta1/fake/fake_scale_expansion.go new file mode 100644 index 00000000..fbe63f3a --- /dev/null +++ b/1.4/kubernetes/typed/extensions/v1beta1/fake/fake_scale_expansion.go @@ -0,0 +1,47 @@ +/* +Copyright 2015 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package fake + +import ( + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/apis/extensions/v1beta1" + "k8s.io/client-go/1.4/testing" +) + +func (c *FakeScales) Get(kind string, name string) (result *v1beta1.Scale, err error) { + action := testing.GetActionImpl{} + action.Verb = "get" + action.Namespace = c.ns + action.Resource = unversioned.GroupVersionResource{Resource: kind} + action.Subresource = "scale" + action.Name = name + obj, err := c.Fake.Invokes(action, &v1beta1.Scale{}) + result = obj.(*v1beta1.Scale) + return +} + +func (c *FakeScales) Update(kind string, scale *v1beta1.Scale) (result *v1beta1.Scale, err error) { + action := testing.UpdateActionImpl{} + action.Verb = "update" + action.Namespace = c.ns + action.Resource = unversioned.GroupVersionResource{Resource: kind} + action.Subresource = "scale" + action.Object = scale + obj, err := c.Fake.Invokes(action, scale) + result = obj.(*v1beta1.Scale) + return +} diff --git a/1.4/kubernetes/typed/extensions/v1beta1/generated_expansion.go b/1.4/kubernetes/typed/extensions/v1beta1/generated_expansion.go index 4fde737d..ece8b6c7 100644 --- a/1.4/kubernetes/typed/extensions/v1beta1/generated_expansion.go +++ b/1.4/kubernetes/typed/extensions/v1beta1/generated_expansion.go @@ -18,10 +18,6 @@ package v1beta1 type DaemonSetExpansion interface{} -type DeploymentExpansion interface{} - -type HorizontalPodAutoscalerExpansion interface{} - type IngressExpansion interface{} type JobExpansion interface{} @@ -30,8 +26,6 @@ type PodSecurityPolicyExpansion interface{} type ReplicaSetExpansion interface{} -type ScaleExpansion interface{} +type StorageClassExpansion interface{} type ThirdPartyResourceExpansion interface{} - -type StorageClassExpansion interface{} diff --git a/1.4/kubernetes/typed/extensions/v1beta1/horizontalpodautoscaler.go b/1.4/kubernetes/typed/extensions/v1beta1/horizontalpodautoscaler.go deleted file mode 100644 index a1235842..00000000 --- a/1.4/kubernetes/typed/extensions/v1beta1/horizontalpodautoscaler.go +++ /dev/null @@ -1,165 +0,0 @@ -/* -Copyright 2016 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -package v1beta1 - -import ( - api "k8s.io/client-go/1.4/pkg/api" - v1beta1 "k8s.io/client-go/1.4/pkg/apis/extensions/v1beta1" - watch "k8s.io/client-go/1.4/pkg/watch" -) - -// HorizontalPodAutoscalersGetter has a method to return a HorizontalPodAutoscalerInterface. -// A group's client should implement this interface. -type HorizontalPodAutoscalersGetter interface { - HorizontalPodAutoscalers(namespace string) HorizontalPodAutoscalerInterface -} - -// HorizontalPodAutoscalerInterface has methods to work with HorizontalPodAutoscaler resources. -type HorizontalPodAutoscalerInterface interface { - Create(*v1beta1.HorizontalPodAutoscaler) (*v1beta1.HorizontalPodAutoscaler, error) - Update(*v1beta1.HorizontalPodAutoscaler) (*v1beta1.HorizontalPodAutoscaler, error) - UpdateStatus(*v1beta1.HorizontalPodAutoscaler) (*v1beta1.HorizontalPodAutoscaler, error) - Delete(name string, options *api.DeleteOptions) error - DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error - Get(name string) (*v1beta1.HorizontalPodAutoscaler, error) - List(opts api.ListOptions) (*v1beta1.HorizontalPodAutoscalerList, error) - Watch(opts api.ListOptions) (watch.Interface, error) - Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.HorizontalPodAutoscaler, err error) - HorizontalPodAutoscalerExpansion -} - -// horizontalPodAutoscalers implements HorizontalPodAutoscalerInterface -type horizontalPodAutoscalers struct { - client *ExtensionsClient - ns string -} - -// newHorizontalPodAutoscalers returns a HorizontalPodAutoscalers -func newHorizontalPodAutoscalers(c *ExtensionsClient, namespace string) *horizontalPodAutoscalers { - return &horizontalPodAutoscalers{ - client: c, - ns: namespace, - } -} - -// Create takes the representation of a horizontalPodAutoscaler and creates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. -func (c *horizontalPodAutoscalers) Create(horizontalPodAutoscaler *v1beta1.HorizontalPodAutoscaler) (result *v1beta1.HorizontalPodAutoscaler, err error) { - result = &v1beta1.HorizontalPodAutoscaler{} - err = c.client.Post(). - Namespace(c.ns). - Resource("horizontalpodautoscalers"). - Body(horizontalPodAutoscaler). - Do(). - Into(result) - return -} - -// Update takes the representation of a horizontalPodAutoscaler and updates it. Returns the server's representation of the horizontalPodAutoscaler, and an error, if there is any. -func (c *horizontalPodAutoscalers) Update(horizontalPodAutoscaler *v1beta1.HorizontalPodAutoscaler) (result *v1beta1.HorizontalPodAutoscaler, err error) { - result = &v1beta1.HorizontalPodAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("horizontalpodautoscalers"). - Name(horizontalPodAutoscaler.Name). - Body(horizontalPodAutoscaler). - Do(). - Into(result) - return -} - -func (c *horizontalPodAutoscalers) UpdateStatus(horizontalPodAutoscaler *v1beta1.HorizontalPodAutoscaler) (result *v1beta1.HorizontalPodAutoscaler, err error) { - result = &v1beta1.HorizontalPodAutoscaler{} - err = c.client.Put(). - Namespace(c.ns). - Resource("horizontalpodautoscalers"). - Name(horizontalPodAutoscaler.Name). - SubResource("status"). - Body(horizontalPodAutoscaler). - Do(). - Into(result) - return -} - -// Delete takes name of the horizontalPodAutoscaler and deletes it. Returns an error if one occurs. -func (c *horizontalPodAutoscalers) Delete(name string, options *api.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("horizontalpodautoscalers"). - Name(name). - Body(options). - Do(). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *horizontalPodAutoscalers) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("horizontalpodautoscalers"). - VersionedParams(&listOptions, api.ParameterCodec). - Body(options). - Do(). - Error() -} - -// Get takes name of the horizontalPodAutoscaler, and returns the corresponding horizontalPodAutoscaler object, and an error if there is any. -func (c *horizontalPodAutoscalers) Get(name string) (result *v1beta1.HorizontalPodAutoscaler, err error) { - result = &v1beta1.HorizontalPodAutoscaler{} - err = c.client.Get(). - Namespace(c.ns). - Resource("horizontalpodautoscalers"). - Name(name). - Do(). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of HorizontalPodAutoscalers that match those selectors. -func (c *horizontalPodAutoscalers) List(opts api.ListOptions) (result *v1beta1.HorizontalPodAutoscalerList, err error) { - result = &v1beta1.HorizontalPodAutoscalerList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("horizontalpodautoscalers"). - VersionedParams(&opts, api.ParameterCodec). - Do(). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested horizontalPodAutoscalers. -func (c *horizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface, error) { - return c.client.Get(). - Prefix("watch"). - Namespace(c.ns). - Resource("horizontalpodautoscalers"). - VersionedParams(&opts, api.ParameterCodec). - Watch() -} - -// Patch applies the patch and returns the patched horizontalPodAutoscaler. -func (c *horizontalPodAutoscalers) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1beta1.HorizontalPodAutoscaler, err error) { - result = &v1beta1.HorizontalPodAutoscaler{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("horizontalpodautoscalers"). - SubResource(subresources...). - Name(name). - Body(data). - Do(). - Into(result) - return -} diff --git a/1.4/kubernetes/typed/extensions/v1beta1/scale_expansion.go b/1.4/kubernetes/typed/extensions/v1beta1/scale_expansion.go new file mode 100644 index 00000000..b2d61182 --- /dev/null +++ b/1.4/kubernetes/typed/extensions/v1beta1/scale_expansion.go @@ -0,0 +1,65 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1beta1 + +import ( + "k8s.io/client-go/1.4/pkg/api/meta" + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/apis/extensions/v1beta1" +) + +// The ScaleExpansion interface allows manually adding extra methods to the ScaleInterface. +type ScaleExpansion interface { + Get(kind string, name string) (*v1beta1.Scale, error) + Update(kind string, scale *v1beta1.Scale) (*v1beta1.Scale, error) +} + +// Get takes the reference to scale subresource and returns the subresource or error, if one occurs. +func (c *scales) Get(kind string, name string) (result *v1beta1.Scale, err error) { + result = &v1beta1.Scale{} + + // TODO this method needs to take a proper unambiguous kind + fullyQualifiedKind := unversioned.GroupVersionKind{Kind: kind} + resource, _ := meta.KindToResource(fullyQualifiedKind) + + err = c.client.Get(). + Namespace(c.ns). + Resource(resource.Resource). + Name(name). + SubResource("scale"). + Do(). + Into(result) + return +} + +func (c *scales) Update(kind string, scale *v1beta1.Scale) (result *v1beta1.Scale, err error) { + result = &v1beta1.Scale{} + + // TODO this method needs to take a proper unambiguous kind + fullyQualifiedKind := unversioned.GroupVersionKind{Kind: kind} + resource, _ := meta.KindToResource(fullyQualifiedKind) + + err = c.client.Put(). + Namespace(scale.Namespace). + Resource(resource.Resource). + Name(scale.Name). + SubResource("scale"). + Body(scale). + Do(). + Into(result) + return +} diff --git a/1.4/kubernetes/typed/policy/v1alpha1/doc.go b/1.4/kubernetes/typed/policy/v1alpha1/doc.go new file mode 100644 index 00000000..b38e8275 --- /dev/null +++ b/1.4/kubernetes/typed/policy/v1alpha1/doc.go @@ -0,0 +1,20 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1] + +// This package has the automatically generated typed clients. +package v1alpha1 diff --git a/1.4/kubernetes/typed/policy/v1alpha1/fake/doc.go b/1.4/kubernetes/typed/policy/v1alpha1/fake/doc.go new file mode 100644 index 00000000..1b806dc9 --- /dev/null +++ b/1.4/kubernetes/typed/policy/v1alpha1/fake/doc.go @@ -0,0 +1,20 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This package is generated by client-gen with arguments: --clientset-name=release_1_4 --input=[api/v1,authorization/v1beta1,autoscaling/v1,batch/v1,extensions/v1beta1,policy/v1alpha1] + +// Package fake has the automatically generated clients. +package fake diff --git a/1.4/kubernetes/typed/policy/v1alpha1/fake/fake_poddisruptionbudget.go b/1.4/kubernetes/typed/policy/v1alpha1/fake/fake_poddisruptionbudget.go new file mode 100644 index 00000000..4b2c55a2 --- /dev/null +++ b/1.4/kubernetes/typed/policy/v1alpha1/fake/fake_poddisruptionbudget.go @@ -0,0 +1,127 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package fake + +import ( + api "k8s.io/client-go/1.4/pkg/api" + unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" + v1alpha1 "k8s.io/client-go/1.4/pkg/apis/policy/v1alpha1" + labels "k8s.io/client-go/1.4/pkg/labels" + watch "k8s.io/client-go/1.4/pkg/watch" + testing "k8s.io/client-go/1.4/testing" +) + +// FakePodDisruptionBudgets implements PodDisruptionBudgetInterface +type FakePodDisruptionBudgets struct { + Fake *FakePolicy + ns string +} + +var poddisruptionbudgetsResource = unversioned.GroupVersionResource{Group: "policy", Version: "v1alpha1", Resource: "poddisruptionbudgets"} + +func (c *FakePodDisruptionBudgets) Create(podDisruptionBudget *v1alpha1.PodDisruptionBudget) (result *v1alpha1.PodDisruptionBudget, err error) { + obj, err := c.Fake. + Invokes(testing.NewCreateAction(poddisruptionbudgetsResource, c.ns, podDisruptionBudget), &v1alpha1.PodDisruptionBudget{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.PodDisruptionBudget), err +} + +func (c *FakePodDisruptionBudgets) Update(podDisruptionBudget *v1alpha1.PodDisruptionBudget) (result *v1alpha1.PodDisruptionBudget, err error) { + obj, err := c.Fake. + Invokes(testing.NewUpdateAction(poddisruptionbudgetsResource, c.ns, podDisruptionBudget), &v1alpha1.PodDisruptionBudget{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.PodDisruptionBudget), err +} + +func (c *FakePodDisruptionBudgets) UpdateStatus(podDisruptionBudget *v1alpha1.PodDisruptionBudget) (*v1alpha1.PodDisruptionBudget, error) { + obj, err := c.Fake. + Invokes(testing.NewUpdateSubresourceAction(poddisruptionbudgetsResource, "status", c.ns, podDisruptionBudget), &v1alpha1.PodDisruptionBudget{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.PodDisruptionBudget), err +} + +func (c *FakePodDisruptionBudgets) Delete(name string, options *api.DeleteOptions) error { + _, err := c.Fake. + Invokes(testing.NewDeleteAction(poddisruptionbudgetsResource, c.ns, name), &v1alpha1.PodDisruptionBudget{}) + + return err +} + +func (c *FakePodDisruptionBudgets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { + action := testing.NewDeleteCollectionAction(poddisruptionbudgetsResource, c.ns, listOptions) + + _, err := c.Fake.Invokes(action, &v1alpha1.PodDisruptionBudgetList{}) + return err +} + +func (c *FakePodDisruptionBudgets) Get(name string) (result *v1alpha1.PodDisruptionBudget, err error) { + obj, err := c.Fake. + Invokes(testing.NewGetAction(poddisruptionbudgetsResource, c.ns, name), &v1alpha1.PodDisruptionBudget{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.PodDisruptionBudget), err +} + +func (c *FakePodDisruptionBudgets) List(opts api.ListOptions) (result *v1alpha1.PodDisruptionBudgetList, err error) { + obj, err := c.Fake. + Invokes(testing.NewListAction(poddisruptionbudgetsResource, c.ns, opts), &v1alpha1.PodDisruptionBudgetList{}) + + if obj == nil { + return nil, err + } + + label := opts.LabelSelector + if label == nil { + label = labels.Everything() + } + list := &v1alpha1.PodDisruptionBudgetList{} + for _, item := range obj.(*v1alpha1.PodDisruptionBudgetList).Items { + if label.Matches(labels.Set(item.Labels)) { + list.Items = append(list.Items, item) + } + } + return list, err +} + +// Watch returns a watch.Interface that watches the requested podDisruptionBudgets. +func (c *FakePodDisruptionBudgets) Watch(opts api.ListOptions) (watch.Interface, error) { + return c.Fake. + InvokesWatch(testing.NewWatchAction(poddisruptionbudgetsResource, c.ns, opts)) + +} + +// Patch applies the patch and returns the patched podDisruptionBudget. +func (c *FakePodDisruptionBudgets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.PodDisruptionBudget, err error) { + obj, err := c.Fake. + Invokes(testing.NewPatchSubresourceAction(poddisruptionbudgetsResource, c.ns, name, data, subresources...), &v1alpha1.PodDisruptionBudget{}) + + if obj == nil { + return nil, err + } + return obj.(*v1alpha1.PodDisruptionBudget), err +} diff --git a/1.4/kubernetes/typed/policy/v1alpha1/fake/fake_policy_client.go b/1.4/kubernetes/typed/policy/v1alpha1/fake/fake_policy_client.go new file mode 100644 index 00000000..e4c93739 --- /dev/null +++ b/1.4/kubernetes/typed/policy/v1alpha1/fake/fake_policy_client.go @@ -0,0 +1,37 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package fake + +import ( + v1alpha1 "k8s.io/client-go/1.4/kubernetes/typed/policy/v1alpha1" + rest "k8s.io/client-go/1.4/rest" + testing "k8s.io/client-go/1.4/testing" +) + +type FakePolicy struct { + *testing.Fake +} + +func (c *FakePolicy) PodDisruptionBudgets(namespace string) v1alpha1.PodDisruptionBudgetInterface { + return &FakePodDisruptionBudgets{c, namespace} +} + +// GetRESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *FakePolicy) GetRESTClient() *rest.RESTClient { + return nil +} diff --git a/1.4/kubernetes/typed/policy/v1alpha1/generated_expansion.go b/1.4/kubernetes/typed/policy/v1alpha1/generated_expansion.go new file mode 100644 index 00000000..a2e74c84 --- /dev/null +++ b/1.4/kubernetes/typed/policy/v1alpha1/generated_expansion.go @@ -0,0 +1,19 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +type PodDisruptionBudgetExpansion interface{} diff --git a/1.4/kubernetes/typed/policy/v1alpha1/poddisruptionbudget.go b/1.4/kubernetes/typed/policy/v1alpha1/poddisruptionbudget.go new file mode 100644 index 00000000..28578c2e --- /dev/null +++ b/1.4/kubernetes/typed/policy/v1alpha1/poddisruptionbudget.go @@ -0,0 +1,165 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + api "k8s.io/client-go/1.4/pkg/api" + v1alpha1 "k8s.io/client-go/1.4/pkg/apis/policy/v1alpha1" + watch "k8s.io/client-go/1.4/pkg/watch" +) + +// PodDisruptionBudgetsGetter has a method to return a PodDisruptionBudgetInterface. +// A group's client should implement this interface. +type PodDisruptionBudgetsGetter interface { + PodDisruptionBudgets(namespace string) PodDisruptionBudgetInterface +} + +// PodDisruptionBudgetInterface has methods to work with PodDisruptionBudget resources. +type PodDisruptionBudgetInterface interface { + Create(*v1alpha1.PodDisruptionBudget) (*v1alpha1.PodDisruptionBudget, error) + Update(*v1alpha1.PodDisruptionBudget) (*v1alpha1.PodDisruptionBudget, error) + UpdateStatus(*v1alpha1.PodDisruptionBudget) (*v1alpha1.PodDisruptionBudget, error) + Delete(name string, options *api.DeleteOptions) error + DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error + Get(name string) (*v1alpha1.PodDisruptionBudget, error) + List(opts api.ListOptions) (*v1alpha1.PodDisruptionBudgetList, error) + Watch(opts api.ListOptions) (watch.Interface, error) + Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.PodDisruptionBudget, err error) + PodDisruptionBudgetExpansion +} + +// podDisruptionBudgets implements PodDisruptionBudgetInterface +type podDisruptionBudgets struct { + client *PolicyClient + ns string +} + +// newPodDisruptionBudgets returns a PodDisruptionBudgets +func newPodDisruptionBudgets(c *PolicyClient, namespace string) *podDisruptionBudgets { + return &podDisruptionBudgets{ + client: c, + ns: namespace, + } +} + +// Create takes the representation of a podDisruptionBudget and creates it. Returns the server's representation of the podDisruptionBudget, and an error, if there is any. +func (c *podDisruptionBudgets) Create(podDisruptionBudget *v1alpha1.PodDisruptionBudget) (result *v1alpha1.PodDisruptionBudget, err error) { + result = &v1alpha1.PodDisruptionBudget{} + err = c.client.Post(). + Namespace(c.ns). + Resource("poddisruptionbudgets"). + Body(podDisruptionBudget). + Do(). + Into(result) + return +} + +// Update takes the representation of a podDisruptionBudget and updates it. Returns the server's representation of the podDisruptionBudget, and an error, if there is any. +func (c *podDisruptionBudgets) Update(podDisruptionBudget *v1alpha1.PodDisruptionBudget) (result *v1alpha1.PodDisruptionBudget, err error) { + result = &v1alpha1.PodDisruptionBudget{} + err = c.client.Put(). + Namespace(c.ns). + Resource("poddisruptionbudgets"). + Name(podDisruptionBudget.Name). + Body(podDisruptionBudget). + Do(). + Into(result) + return +} + +func (c *podDisruptionBudgets) UpdateStatus(podDisruptionBudget *v1alpha1.PodDisruptionBudget) (result *v1alpha1.PodDisruptionBudget, err error) { + result = &v1alpha1.PodDisruptionBudget{} + err = c.client.Put(). + Namespace(c.ns). + Resource("poddisruptionbudgets"). + Name(podDisruptionBudget.Name). + SubResource("status"). + Body(podDisruptionBudget). + Do(). + Into(result) + return +} + +// Delete takes name of the podDisruptionBudget and deletes it. Returns an error if one occurs. +func (c *podDisruptionBudgets) Delete(name string, options *api.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("poddisruptionbudgets"). + Name(name). + Body(options). + Do(). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *podDisruptionBudgets) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("poddisruptionbudgets"). + VersionedParams(&listOptions, api.ParameterCodec). + Body(options). + Do(). + Error() +} + +// Get takes name of the podDisruptionBudget, and returns the corresponding podDisruptionBudget object, and an error if there is any. +func (c *podDisruptionBudgets) Get(name string) (result *v1alpha1.PodDisruptionBudget, err error) { + result = &v1alpha1.PodDisruptionBudget{} + err = c.client.Get(). + Namespace(c.ns). + Resource("poddisruptionbudgets"). + Name(name). + Do(). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of PodDisruptionBudgets that match those selectors. +func (c *podDisruptionBudgets) List(opts api.ListOptions) (result *v1alpha1.PodDisruptionBudgetList, err error) { + result = &v1alpha1.PodDisruptionBudgetList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("poddisruptionbudgets"). + VersionedParams(&opts, api.ParameterCodec). + Do(). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested podDisruptionBudgets. +func (c *podDisruptionBudgets) Watch(opts api.ListOptions) (watch.Interface, error) { + return c.client.Get(). + Prefix("watch"). + Namespace(c.ns). + Resource("poddisruptionbudgets"). + VersionedParams(&opts, api.ParameterCodec). + Watch() +} + +// Patch applies the patch and returns the patched podDisruptionBudget. +func (c *podDisruptionBudgets) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1alpha1.PodDisruptionBudget, err error) { + result = &v1alpha1.PodDisruptionBudget{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("poddisruptionbudgets"). + SubResource(subresources...). + Name(name). + Body(data). + Do(). + Into(result) + return +} diff --git a/1.4/kubernetes/typed/policy/v1alpha1/policy_client.go b/1.4/kubernetes/typed/policy/v1alpha1/policy_client.go new file mode 100644 index 00000000..a8509028 --- /dev/null +++ b/1.4/kubernetes/typed/policy/v1alpha1/policy_client.go @@ -0,0 +1,96 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + api "k8s.io/client-go/1.4/pkg/api" + registered "k8s.io/client-go/1.4/pkg/apimachinery/registered" + serializer "k8s.io/client-go/1.4/pkg/runtime/serializer" + rest "k8s.io/client-go/1.4/rest" +) + +type PolicyInterface interface { + GetRESTClient() *rest.RESTClient + PodDisruptionBudgetsGetter +} + +// PolicyClient is used to interact with features provided by the Policy group. +type PolicyClient struct { + *rest.RESTClient +} + +func (c *PolicyClient) PodDisruptionBudgets(namespace string) PodDisruptionBudgetInterface { + return newPodDisruptionBudgets(c, namespace) +} + +// NewForConfig creates a new PolicyClient for the given config. +func NewForConfig(c *rest.Config) (*PolicyClient, error) { + config := *c + if err := setConfigDefaults(&config); err != nil { + return nil, err + } + client, err := rest.RESTClientFor(&config) + if err != nil { + return nil, err + } + return &PolicyClient{client}, nil +} + +// NewForConfigOrDie creates a new PolicyClient for the given config and +// panics if there is an error in the config. +func NewForConfigOrDie(c *rest.Config) *PolicyClient { + client, err := NewForConfig(c) + if err != nil { + panic(err) + } + return client +} + +// New creates a new PolicyClient for the given RESTClient. +func New(c *rest.RESTClient) *PolicyClient { + return &PolicyClient{c} +} + +func setConfigDefaults(config *rest.Config) error { + // if policy group is not registered, return an error + g, err := registered.Group("policy") + if err != nil { + return err + } + config.APIPath = "/apis" + if config.UserAgent == "" { + config.UserAgent = rest.DefaultKubernetesUserAgent() + } + // TODO: Unconditionally set the config.Version, until we fix the config. + //if config.Version == "" { + copyGroupVersion := g.GroupVersion + config.GroupVersion = ©GroupVersion + //} + + config.NegotiatedSerializer = serializer.DirectCodecFactory{CodecFactory: api.Codecs} + + return nil +} + +// GetRESTClient returns a RESTClient that is used to communicate +// with API server by this client implementation. +func (c *PolicyClient) GetRESTClient() *rest.RESTClient { + if c == nil { + return nil + } + return c.RESTClient +} diff --git a/1.4/pkg/api/errors/errors.go b/1.4/pkg/api/errors/errors.go index 5f1abe31..f88c610f 100644 --- a/1.4/pkg/api/errors/errors.go +++ b/1.4/pkg/api/errors/errors.go @@ -329,9 +329,9 @@ func NewGenericServerResponse(code int, verb string, qualifiedResource unversion } } switch { - case !qualifiedResource.IsEmpty() && len(name) > 0: + case !qualifiedResource.Empty() && len(name) > 0: message = fmt.Sprintf("%s (%s %s %s)", message, strings.ToLower(verb), qualifiedResource.String(), name) - case !qualifiedResource.IsEmpty(): + case !qualifiedResource.Empty(): message = fmt.Sprintf("%s (%s %s)", message, strings.ToLower(verb), qualifiedResource.String()) } var causes []unversioned.StatusCause diff --git a/1.4/pkg/api/helpers.go b/1.4/pkg/api/helpers.go index 41920202..96086b0c 100644 --- a/1.4/pkg/api/helpers.go +++ b/1.4/pkg/api/helpers.go @@ -30,6 +30,7 @@ import ( "k8s.io/client-go/1.4/pkg/fields" "k8s.io/client-go/1.4/pkg/labels" "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/pkg/selection" "k8s.io/client-go/1.4/pkg/types" "k8s.io/client-go/1.4/pkg/util/sets" @@ -222,6 +223,10 @@ func IsServiceIPSet(service *Service) bool { // this function aims to check if the service's cluster IP is requested or not func IsServiceIPRequested(service *Service) bool { + // ExternalName services are CNAME aliases to external ones. Ignore the IP. + if service.Spec.Type == ServiceTypeExternalName { + return false + } return service.Spec.ClusterIP == "" } @@ -379,20 +384,20 @@ func NodeSelectorRequirementsAsSelector(nsm []NodeSelectorRequirement) (labels.S } selector := labels.NewSelector() for _, expr := range nsm { - var op labels.Operator + var op selection.Operator switch expr.Operator { case NodeSelectorOpIn: - op = labels.InOperator + op = selection.In case NodeSelectorOpNotIn: - op = labels.NotInOperator + op = selection.NotIn case NodeSelectorOpExists: - op = labels.ExistsOperator + op = selection.Exists case NodeSelectorOpDoesNotExist: - op = labels.DoesNotExistOperator + op = selection.DoesNotExist case NodeSelectorOpGt: - op = labels.GreaterThanOperator + op = selection.GreaterThan case NodeSelectorOpLt: - op = labels.LessThanOperator + op = selection.LessThan default: return nil, fmt.Errorf("%q is not a valid node selector operator", expr.Operator) } @@ -433,6 +438,20 @@ const ( // PreferAvoidPodsAnnotationKey represents the key of preferAvoidPods data (json serialized) // in the Annotations of a Node. PreferAvoidPodsAnnotationKey string = "scheduler.alpha.kubernetes.io/preferAvoidPods" + + // SysctlsPodAnnotationKey represents the key of sysctls which are set for the infrastructure + // container of a pod. The annotation value is a comma separated list of sysctl_name=value + // key-value pairs. Only a limited set of whitelisted and isolated sysctls is supported by + // the kubelet. Pods with other sysctls will fail to launch. + SysctlsPodAnnotationKey string = "security.alpha.kubernetes.io/sysctls" + + // UnsafeSysctlsPodAnnotationKey represents the key of sysctls which are set for the infrastructure + // container of a pod. The annotation value is a comma separated list of sysctl_name=value + // key-value pairs. Unsafe sysctls must be explicitly enabled for a kubelet. They are properly + // namespaced to a pod or a container, but their isolation is usually unclear or weak. Their use + // is at-your-own-risk. Pods that attempt to set an unsafe sysctl that is not enabled for a kubelet + // will fail to launch. + UnsafeSysctlsPodAnnotationKey string = "security.alpha.kubernetes.io/unsafe-sysctls" ) // GetAffinityFromPod gets the json serialized affinity data from Pod.Annotations @@ -517,3 +536,51 @@ func GetAvoidPodsFromNodeAnnotations(annotations map[string]string) (AvoidPods, } return avoidPods, nil } + +// SysctlsFromPodAnnotations parses the sysctl annotations into a slice of safe Sysctls +// and a slice of unsafe Sysctls. This is only a convenience wrapper around +// SysctlsFromPodAnnotation. +func SysctlsFromPodAnnotations(a map[string]string) ([]Sysctl, []Sysctl, error) { + safe, err := SysctlsFromPodAnnotation(a[SysctlsPodAnnotationKey]) + if err != nil { + return nil, nil, err + } + unsafe, err := SysctlsFromPodAnnotation(a[UnsafeSysctlsPodAnnotationKey]) + if err != nil { + return nil, nil, err + } + + return safe, unsafe, nil +} + +// SysctlsFromPodAnnotation parses an annotation value into a slice of Sysctls. +func SysctlsFromPodAnnotation(annotation string) ([]Sysctl, error) { + if len(annotation) == 0 { + return nil, nil + } + + kvs := strings.Split(annotation, ",") + sysctls := make([]Sysctl, len(kvs)) + for i, kv := range kvs { + cs := strings.Split(kv, "=") + if len(cs) != 2 { + return nil, fmt.Errorf("sysctl %q not of the format sysctl_name=value", kv) + } + sysctls[i].Name = cs[0] + sysctls[i].Value = cs[1] + } + return sysctls, nil +} + +// PodAnnotationsFromSysctls creates an annotation value for a slice of Sysctls. +func PodAnnotationsFromSysctls(sysctls []Sysctl) string { + if len(sysctls) == 0 { + return "" + } + + kvs := make([]string, len(sysctls)) + for i := range sysctls { + kvs[i] = fmt.Sprintf("%s=%s", sysctls[i].Name, sysctls[i].Value) + } + return strings.Join(kvs, ",") +} diff --git a/1.4/pkg/api/meta.go b/1.4/pkg/api/meta.go index 85b2329c..7647679d 100644 --- a/1.4/pkg/api/meta.go +++ b/1.4/pkg/api/meta.go @@ -131,3 +131,10 @@ func (meta *ObjectMeta) SetOwnerReferences(references []metatypes.OwnerReference } meta.OwnerReferences = newReferences } + +func (meta *ObjectMeta) GetClusterName() string { + return meta.ClusterName +} +func (meta *ObjectMeta) SetClusterName(clusterName string) { + meta.ClusterName = clusterName +} diff --git a/1.4/pkg/api/meta/interfaces.go b/1.4/pkg/api/meta/interfaces.go index aed814a9..e7dab402 100644 --- a/1.4/pkg/api/meta/interfaces.go +++ b/1.4/pkg/api/meta/interfaces.go @@ -62,6 +62,8 @@ type Object interface { SetFinalizers(finalizers []string) GetOwnerReferences() []metatypes.OwnerReference SetOwnerReferences([]metatypes.OwnerReference) + GetClusterName() string + SetClusterName(clusterName string) } var _ Object = &runtime.Unstructured{} diff --git a/1.4/pkg/api/meta/restmapper.go b/1.4/pkg/api/meta/restmapper.go index 148072c4..75b33ac7 100644 --- a/1.4/pkg/api/meta/restmapper.go +++ b/1.4/pkg/api/meta/restmapper.go @@ -183,7 +183,7 @@ func (m *DefaultRESTMapper) ResourceSingularizer(resourceType string) (string, e if !ok { continue } - if singular.IsEmpty() { + if singular.Empty() { singular = currSingular continue } @@ -193,7 +193,7 @@ func (m *DefaultRESTMapper) ResourceSingularizer(resourceType string) (string, e } } - if singular.IsEmpty() { + if singular.Empty() { return resourceType, fmt.Errorf("no singular of resource %v has been defined", resourceType) } diff --git a/1.4/pkg/api/meta/unstructured.go b/1.4/pkg/api/meta/unstructured.go new file mode 100644 index 00000000..7b905496 --- /dev/null +++ b/1.4/pkg/api/meta/unstructured.go @@ -0,0 +1,31 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package meta + +import ( + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/runtime" +) + +// InterfacesForUnstructured returns VersionInterfaces suitable for +// dealing with runtime.Unstructured objects. +func InterfacesForUnstructured(unversioned.GroupVersion) (*VersionInterfaces, error) { + return &VersionInterfaces{ + ObjectConvertor: &runtime.UnstructuredObjectConverter{}, + MetadataAccessor: NewAccessor(), + }, nil +} diff --git a/1.4/pkg/api/replication_controller_example.json b/1.4/pkg/api/replication_controller_example.json index 5c3c4fe7..70eef1cf 100644 --- a/1.4/pkg/api/replication_controller_example.json +++ b/1.4/pkg/api/replication_controller_example.json @@ -40,7 +40,8 @@ "secret": null, "nfs": null, "iscsi": null, - "glusterfs": null + "glusterfs": null, + "quobyte": null } ], "containers": [ diff --git a/1.4/pkg/api/service/annotations.go b/1.4/pkg/api/service/annotations.go index ee275d3c..8cf38247 100644 --- a/1.4/pkg/api/service/annotations.go +++ b/1.4/pkg/api/service/annotations.go @@ -16,6 +16,13 @@ limitations under the License. package service +import ( + "strconv" + + "github.com/golang/glog" + "k8s.io/client-go/1.4/pkg/api" +) + const ( // AnnotationLoadBalancerSourceRangesKey is the key of the annotation on a service to set allowed ingress ranges on their LoadBalancers // @@ -25,4 +32,58 @@ const ( // // Not all cloud providers support this annotation, though AWS & GCE do. AnnotationLoadBalancerSourceRangesKey = "service.beta.kubernetes.io/load-balancer-source-ranges" + + // AnnotationExternalTraffic An annotation that denotes if this Service desires to route external traffic to local + // endpoints only. This preserves Source IP and avoids a second hop. + AnnotationExternalTraffic = "service.alpha.kubernetes.io/external-traffic" + // AnnotationValueExternalTrafficLocal Value of annotation to specify local endpoints behaviour + AnnotationValueExternalTrafficLocal = "OnlyLocal" + // AnnotationValueExternalTrafficGlobal Value of annotation to specify global (legacy) behaviour + AnnotationValueExternalTrafficGlobal = "Global" + // AnnotationHealthCheckNodePort Annotation specifying the healthcheck nodePort for the service + // If not specified, annotation is created by the service api backend with the allocated nodePort + // Will use user-specified nodePort value if specified by the client + AnnotationHealthCheckNodePort = "service.alpha.kubernetes.io/healthcheck-nodeport" ) + +// NeedsHealthCheck Check service for health check annotations +func NeedsHealthCheck(service *api.Service) bool { + if l, ok := service.Annotations[AnnotationExternalTraffic]; ok { + if l == AnnotationValueExternalTrafficLocal { + return true + } else if l == AnnotationValueExternalTrafficGlobal { + return false + } else { + glog.Errorf("Invalid value for annotation %v", AnnotationExternalTraffic) + return false + } + } + return false +} + +// GetServiceHealthCheckNodePort Return health check node port annotation for service, if one exists +func GetServiceHealthCheckNodePort(service *api.Service) int32 { + if NeedsHealthCheck(service) { + if l, ok := service.Annotations[AnnotationHealthCheckNodePort]; ok { + p, err := strconv.Atoi(l) + if err != nil { + glog.Errorf("Failed to parse annotation %v: %v", AnnotationHealthCheckNodePort, err) + return 0 + } + return int32(p) + } + } + return 0 +} + +// GetServiceHealthCheckPathPort Return the path and nodePort programmed into the Cloud LB Health Check +func GetServiceHealthCheckPathPort(service *api.Service) (string, int32) { + if !NeedsHealthCheck(service) { + return "", 0 + } + port := GetServiceHealthCheckNodePort(service) + if port == 0 { + return "", 0 + } + return "/healthz", port +} diff --git a/1.4/pkg/api/testapi/testapi.go b/1.4/pkg/api/testapi/testapi.go index eee94e6f..23bc7fc6 100644 --- a/1.4/pkg/api/testapi/testapi.go +++ b/1.4/pkg/api/testapi/testapi.go @@ -33,6 +33,7 @@ import ( "k8s.io/client-go/1.4/pkg/apis/batch" "k8s.io/client-go/1.4/pkg/apis/certificates" "k8s.io/client-go/1.4/pkg/apis/extensions" + "k8s.io/client-go/1.4/pkg/apis/imagepolicy" "k8s.io/client-go/1.4/pkg/apis/policy" "k8s.io/client-go/1.4/pkg/apis/rbac" "k8s.io/client-go/1.4/pkg/federation/apis/federation" @@ -48,6 +49,7 @@ import ( _ "k8s.io/client-go/1.4/pkg/apis/certificates/install" _ "k8s.io/client-go/1.4/pkg/apis/componentconfig/install" _ "k8s.io/client-go/1.4/pkg/apis/extensions/install" + _ "k8s.io/client-go/1.4/pkg/apis/imagepolicy/install" _ "k8s.io/client-go/1.4/pkg/apis/policy/install" _ "k8s.io/client-go/1.4/pkg/apis/rbac/install" _ "k8s.io/client-go/1.4/pkg/federation/apis/federation/install" @@ -64,6 +66,7 @@ var ( Federation TestGroup Rbac TestGroup Certificates TestGroup + ImagePolicy TestGroup serializer runtime.SerializerInfo storageSerializer runtime.SerializerInfo @@ -225,6 +228,16 @@ func init() { } } + if _, ok := Groups[imagepolicy.GroupName]; !ok { + externalGroupVersion := unversioned.GroupVersion{Group: imagepolicy.GroupName, Version: registered.GroupOrDie(imagepolicy.GroupName).GroupVersion.Version} + Groups[imagepolicy.GroupName] = TestGroup{ + externalGroupVersion: externalGroupVersion, + internalGroupVersion: imagepolicy.SchemeGroupVersion, + internalTypes: api.Scheme.KnownTypes(imagepolicy.SchemeGroupVersion), + externalTypes: api.Scheme.KnownTypes(externalGroupVersion), + } + } + Default = Groups[api.GroupName] Autoscaling = Groups[autoscaling.GroupName] Batch = Groups[batch.GroupName] @@ -234,6 +247,7 @@ func init() { Extensions = Groups[extensions.GroupName] Federation = Groups[federation.GroupName] Rbac = Groups[rbac.GroupName] + ImagePolicy = Groups[imagepolicy.GroupName] } func (g TestGroup) ContentConfig() (string, *unversioned.GroupVersion, runtime.Codec) { @@ -267,7 +281,7 @@ func (g TestGroup) Codec() runtime.Codec { if serializer.Serializer == nil { return api.Codecs.LegacyCodec(g.externalGroupVersion) } - return api.Codecs.CodecForVersions(serializer, api.Codecs.UniversalDeserializer(), []unversioned.GroupVersion{g.externalGroupVersion}, nil) + return api.Codecs.CodecForVersions(serializer, api.Codecs.UniversalDeserializer(), unversioned.GroupVersions{g.externalGroupVersion}, nil) } // NegotiatedSerializer returns the negotiated serializer for the server. @@ -295,7 +309,7 @@ func (g TestGroup) StorageCodec() runtime.Codec { } ds := recognizer.NewDecoder(s, api.Codecs.UniversalDeserializer()) - return api.Codecs.CodecForVersions(s, ds, []unversioned.GroupVersion{g.externalGroupVersion}, nil) + return api.Codecs.CodecForVersions(s, ds, unversioned.GroupVersions{g.externalGroupVersion}, nil) } // Converter returns the api.Scheme for the API version to test against, as set by the @@ -379,7 +393,7 @@ func (g TestGroup) RESTMapper() meta.RESTMapper { } // ExternalGroupVersions returns all external group versions allowed for the server. -func ExternalGroupVersions() []unversioned.GroupVersion { +func ExternalGroupVersions() unversioned.GroupVersions { versions := []unversioned.GroupVersion{} for _, g := range Groups { gv := g.GroupVersion() diff --git a/1.4/pkg/api/types.generated.go b/1.4/pkg/api/types.generated.go index c942b9f0..15601840 100644 --- a/1.4/pkg/api/types.generated.go +++ b/1.4/pkg/api/types.generated.go @@ -93,7 +93,7 @@ func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [14]bool + var yyq2 [15]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false yyq2[0] = x.Name != "" @@ -110,9 +110,10 @@ func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) { yyq2[11] = len(x.Annotations) != 0 yyq2[12] = len(x.OwnerReferences) != 0 yyq2[13] = len(x.Finalizers) != 0 + yyq2[14] = x.ClusterName != "" var yynn2 int if yyr2 || yy2arr2 { - r.EncodeArrayStart(14) + r.EncodeArrayStart(15) } else { yynn2 = 0 for _, b := range yyq2 { @@ -547,6 +548,31 @@ func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) { } } } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[14] { + yym50 := z.EncBinary() + _ = yym50 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym51 := z.EncBinary() + _ = yym51 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } + } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { @@ -560,25 +586,25 @@ func (x *ObjectMeta) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym49 := z.DecBinary() - _ = yym49 + yym52 := z.DecBinary() + _ = yym52 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct50 := r.ContainerType() - if yyct50 == codecSelferValueTypeMap1234 { - yyl50 := r.ReadMapStart() - if yyl50 == 0 { + yyct53 := r.ContainerType() + if yyct53 == codecSelferValueTypeMap1234 { + yyl53 := r.ReadMapStart() + if yyl53 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl50, d) + x.codecDecodeSelfFromMap(yyl53, d) } - } else if yyct50 == codecSelferValueTypeArray1234 { - yyl50 := r.ReadArrayStart() - if yyl50 == 0 { + } else if yyct53 == codecSelferValueTypeArray1234 { + yyl53 := r.ReadArrayStart() + if yyl53 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl50, d) + x.codecDecodeSelfFromArray(yyl53, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -590,12 +616,12 @@ func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys51Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys51Slc - var yyhl51 bool = l >= 0 - for yyj51 := 0; ; yyj51++ { - if yyhl51 { - if yyj51 >= l { + var yys54Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys54Slc + var yyhl54 bool = l >= 0 + for yyj54 := 0; ; yyj54++ { + if yyhl54 { + if yyj54 >= l { break } } else { @@ -604,10 +630,10 @@ func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys51Slc = r.DecodeBytes(yys51Slc, true, true) - yys51 := string(yys51Slc) + yys54Slc = r.DecodeBytes(yys54Slc, true, true) + yys54 := string(yys54Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys51 { + switch yys54 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -654,17 +680,17 @@ func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.CreationTimestamp = pkg2_unversioned.Time{} } else { - yyv59 := &x.CreationTimestamp - yym60 := z.DecBinary() - _ = yym60 + yyv62 := &x.CreationTimestamp + yym63 := z.DecBinary() + _ = yym63 if false { - } else if z.HasExtensions() && z.DecExt(yyv59) { - } else if yym60 { - z.DecBinaryUnmarshal(yyv59) - } else if !yym60 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv59) + } else if z.HasExtensions() && z.DecExt(yyv62) { + } else if yym63 { + z.DecBinaryUnmarshal(yyv62) + } else if !yym63 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv62) } else { - z.DecFallback(yyv59, false) + z.DecFallback(yyv62, false) } } case "deletionTimestamp": @@ -676,13 +702,13 @@ func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg2_unversioned.Time) } - yym62 := z.DecBinary() - _ = yym62 + yym65 := z.DecBinary() + _ = yym65 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym62 { + } else if yym65 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym62 && z.IsJSONHandle() { + } else if !yym65 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) @@ -697,8 +723,8 @@ func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } - yym64 := z.DecBinary() - _ = yym64 + yym67 := z.DecBinary() + _ = yym67 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -708,54 +734,60 @@ func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Labels = nil } else { - yyv65 := &x.Labels - yym66 := z.DecBinary() - _ = yym66 + yyv68 := &x.Labels + yym69 := z.DecBinary() + _ = yym69 if false { } else { - z.F.DecMapStringStringX(yyv65, false, d) + z.F.DecMapStringStringX(yyv68, false, d) } } case "annotations": if r.TryDecodeAsNil() { x.Annotations = nil } else { - yyv67 := &x.Annotations - yym68 := z.DecBinary() - _ = yym68 + yyv70 := &x.Annotations + yym71 := z.DecBinary() + _ = yym71 if false { } else { - z.F.DecMapStringStringX(yyv67, false, d) + z.F.DecMapStringStringX(yyv70, false, d) } } case "ownerReferences": if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { - yyv69 := &x.OwnerReferences - yym70 := z.DecBinary() - _ = yym70 + yyv72 := &x.OwnerReferences + yym73 := z.DecBinary() + _ = yym73 if false { } else { - h.decSliceOwnerReference((*[]OwnerReference)(yyv69), d) + h.decSliceOwnerReference((*[]OwnerReference)(yyv72), d) } } case "finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv71 := &x.Finalizers - yym72 := z.DecBinary() - _ = yym72 + yyv74 := &x.Finalizers + yym75 := z.DecBinary() + _ = yym75 if false { } else { - z.F.DecSliceStringX(yyv71, false, d) + z.F.DecSliceStringX(yyv74, false, d) } } + case "clusterName": + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys51) - } // end switch yys51 - } // end for yyj51 + z.DecStructFieldNotFound(-1, yys54) + } // end switch yys54 + } // end for yyj54 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -763,16 +795,16 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj73 int - var yyb73 bool - var yyhl73 bool = l >= 0 - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + var yyj77 int + var yyb77 bool + var yyhl77 bool = l >= 0 + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -782,13 +814,13 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -798,13 +830,13 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.GenerateName = string(r.DecodeString()) } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -814,13 +846,13 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Namespace = string(r.DecodeString()) } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -830,13 +862,13 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SelfLink = string(r.DecodeString()) } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -846,13 +878,13 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -862,13 +894,13 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ResourceVersion = string(r.DecodeString()) } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -878,13 +910,13 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Generation = int64(r.DecodeInt(64)) } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -892,26 +924,26 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.CreationTimestamp = pkg2_unversioned.Time{} } else { - yyv81 := &x.CreationTimestamp - yym82 := z.DecBinary() - _ = yym82 + yyv85 := &x.CreationTimestamp + yym86 := z.DecBinary() + _ = yym86 if false { - } else if z.HasExtensions() && z.DecExt(yyv81) { - } else if yym82 { - z.DecBinaryUnmarshal(yyv81) - } else if !yym82 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv81) + } else if z.HasExtensions() && z.DecExt(yyv85) { + } else if yym86 { + z.DecBinaryUnmarshal(yyv85) + } else if !yym86 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv85) } else { - z.DecFallback(yyv81, false) + z.DecFallback(yyv85, false) } } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -924,25 +956,25 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg2_unversioned.Time) } - yym84 := z.DecBinary() - _ = yym84 + yym88 := z.DecBinary() + _ = yym88 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym84 { + } else if yym88 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym84 && z.IsJSONHandle() { + } else if !yym88 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) } } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -955,20 +987,20 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } - yym86 := z.DecBinary() - _ = yym86 + yym90 := z.DecBinary() + _ = yym90 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -976,21 +1008,21 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Labels = nil } else { - yyv87 := &x.Labels - yym88 := z.DecBinary() - _ = yym88 + yyv91 := &x.Labels + yym92 := z.DecBinary() + _ = yym92 if false { } else { - z.F.DecMapStringStringX(yyv87, false, d) + z.F.DecMapStringStringX(yyv91, false, d) } } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -998,21 +1030,21 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Annotations = nil } else { - yyv89 := &x.Annotations - yym90 := z.DecBinary() - _ = yym90 + yyv93 := &x.Annotations + yym94 := z.DecBinary() + _ = yym94 if false { } else { - z.F.DecMapStringStringX(yyv89, false, d) + z.F.DecMapStringStringX(yyv93, false, d) } } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1020,21 +1052,21 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { - yyv91 := &x.OwnerReferences - yym92 := z.DecBinary() - _ = yym92 + yyv95 := &x.OwnerReferences + yym96 := z.DecBinary() + _ = yym96 if false { } else { - h.decSliceOwnerReference((*[]OwnerReference)(yyv91), d) + h.decSliceOwnerReference((*[]OwnerReference)(yyv95), d) } } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1042,26 +1074,42 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv93 := &x.Finalizers - yym94 := z.DecBinary() - _ = yym94 + yyv97 := &x.Finalizers + yym98 := z.DecBinary() + _ = yym98 if false { } else { - z.F.DecSliceStringX(yyv93, false, d) + z.F.DecSliceStringX(yyv97, false, d) } } + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l + } else { + yyb77 = r.CheckBreak() + } + if yyb77 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } for { - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj73-1, "") + z.DecStructFieldNotFound(yyj77-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1073,53 +1121,55 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym95 := z.EncBinary() - _ = yym95 + yym100 := z.EncBinary() + _ = yym100 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep96 := !z.EncBinary() - yy2arr96 := z.EncBasicHandle().StructToArray - var yyq96 [21]bool - _, _, _ = yysep96, yyq96, yy2arr96 - const yyr96 bool = false - yyq96[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil - yyq96[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil - yyq96[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil - yyq96[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil - yyq96[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil - yyq96[6] = x.VolumeSource.Secret != nil && x.Secret != nil - yyq96[7] = x.VolumeSource.NFS != nil && x.NFS != nil - yyq96[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil - yyq96[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil - yyq96[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil - yyq96[11] = x.VolumeSource.RBD != nil && x.RBD != nil - yyq96[12] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil - yyq96[13] = x.VolumeSource.Cinder != nil && x.Cinder != nil - yyq96[14] = x.VolumeSource.CephFS != nil && x.CephFS != nil - yyq96[15] = x.VolumeSource.Flocker != nil && x.Flocker != nil - yyq96[16] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil - yyq96[17] = x.VolumeSource.FC != nil && x.FC != nil - yyq96[18] = x.VolumeSource.AzureFile != nil && x.AzureFile != nil - yyq96[19] = x.VolumeSource.ConfigMap != nil && x.ConfigMap != nil - yyq96[20] = x.VolumeSource.VsphereVolume != nil && x.VsphereVolume != nil - var yynn96 int - if yyr96 || yy2arr96 { - r.EncodeArrayStart(21) + yysep101 := !z.EncBinary() + yy2arr101 := z.EncBasicHandle().StructToArray + var yyq101 [23]bool + _, _, _ = yysep101, yyq101, yy2arr101 + const yyr101 bool = false + yyq101[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil + yyq101[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil + yyq101[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil + yyq101[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil + yyq101[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil + yyq101[6] = x.VolumeSource.Secret != nil && x.Secret != nil + yyq101[7] = x.VolumeSource.NFS != nil && x.NFS != nil + yyq101[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil + yyq101[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil + yyq101[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil + yyq101[11] = x.VolumeSource.RBD != nil && x.RBD != nil + yyq101[12] = x.VolumeSource.Quobyte != nil && x.Quobyte != nil + yyq101[13] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil + yyq101[14] = x.VolumeSource.Cinder != nil && x.Cinder != nil + yyq101[15] = x.VolumeSource.CephFS != nil && x.CephFS != nil + yyq101[16] = x.VolumeSource.Flocker != nil && x.Flocker != nil + yyq101[17] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil + yyq101[18] = x.VolumeSource.FC != nil && x.FC != nil + yyq101[19] = x.VolumeSource.AzureFile != nil && x.AzureFile != nil + yyq101[20] = x.VolumeSource.ConfigMap != nil && x.ConfigMap != nil + yyq101[21] = x.VolumeSource.VsphereVolume != nil && x.VsphereVolume != nil + yyq101[22] = x.VolumeSource.AzureDisk != nil && x.AzureDisk != nil + var yynn101 int + if yyr101 || yy2arr101 { + r.EncodeArrayStart(23) } else { - yynn96 = 1 - for _, b := range yyq96 { + yynn101 = 1 + for _, b := range yyq101 { if b { - yynn96++ + yynn101++ } } - r.EncodeMapStart(yynn96) - yynn96 = 0 + r.EncodeMapStart(yynn101) + yynn101 = 0 } - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym98 := z.EncBinary() - _ = yym98 + yym103 := z.EncBinary() + _ = yym103 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -1128,728 +1178,765 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym99 := z.EncBinary() - _ = yym99 + yym104 := z.EncBinary() + _ = yym104 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - var yyn100 bool - if x.VolumeSource.HostPath == nil { - yyn100 = true - goto LABEL100 - } - LABEL100: - if yyr96 || yy2arr96 { - if yyn100 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[1] { - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq96[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn100 { - r.EncodeNil() - } else { - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } - } - } - var yyn101 bool - if x.VolumeSource.EmptyDir == nil { - yyn101 = true - goto LABEL101 - } - LABEL101: - if yyr96 || yy2arr96 { - if yyn101 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[2] { - if x.EmptyDir == nil { - r.EncodeNil() - } else { - x.EmptyDir.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq96[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn101 { - r.EncodeNil() - } else { - if x.EmptyDir == nil { - r.EncodeNil() - } else { - x.EmptyDir.CodecEncodeSelf(e) - } - } - } - } - var yyn102 bool - if x.VolumeSource.GCEPersistentDisk == nil { - yyn102 = true - goto LABEL102 - } - LABEL102: - if yyr96 || yy2arr96 { - if yyn102 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[3] { - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq96[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn102 { - r.EncodeNil() - } else { - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } - } - } - var yyn103 bool - if x.VolumeSource.AWSElasticBlockStore == nil { - yyn103 = true - goto LABEL103 - } - LABEL103: - if yyr96 || yy2arr96 { - if yyn103 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[4] { - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq96[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn103 { - r.EncodeNil() - } else { - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } - } - } - var yyn104 bool - if x.VolumeSource.GitRepo == nil { - yyn104 = true - goto LABEL104 - } - LABEL104: - if yyr96 || yy2arr96 { - if yyn104 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[5] { - if x.GitRepo == nil { - r.EncodeNil() - } else { - x.GitRepo.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq96[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn104 { - r.EncodeNil() - } else { - if x.GitRepo == nil { - r.EncodeNil() - } else { - x.GitRepo.CodecEncodeSelf(e) - } - } - } - } var yyn105 bool - if x.VolumeSource.Secret == nil { + if x.VolumeSource.HostPath == nil { yyn105 = true goto LABEL105 } LABEL105: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn105 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[6] { - if x.Secret == nil { + if yyq101[1] { + if x.HostPath == nil { r.EncodeNil() } else { - x.Secret.CodecEncodeSelf(e) + x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[6] { + if yyq101[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secret")) + r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn105 { r.EncodeNil() } else { - if x.Secret == nil { + if x.HostPath == nil { r.EncodeNil() } else { - x.Secret.CodecEncodeSelf(e) + x.HostPath.CodecEncodeSelf(e) } } } } var yyn106 bool - if x.VolumeSource.NFS == nil { + if x.VolumeSource.EmptyDir == nil { yyn106 = true goto LABEL106 } LABEL106: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn106 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[7] { - if x.NFS == nil { + if yyq101[2] { + if x.EmptyDir == nil { r.EncodeNil() } else { - x.NFS.CodecEncodeSelf(e) + x.EmptyDir.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[7] { + if yyq101[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nfs")) + r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn106 { r.EncodeNil() } else { - if x.NFS == nil { + if x.EmptyDir == nil { r.EncodeNil() } else { - x.NFS.CodecEncodeSelf(e) + x.EmptyDir.CodecEncodeSelf(e) } } } } var yyn107 bool - if x.VolumeSource.ISCSI == nil { + if x.VolumeSource.GCEPersistentDisk == nil { yyn107 = true goto LABEL107 } LABEL107: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn107 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[8] { - if x.ISCSI == nil { + if yyq101[3] { + if x.GCEPersistentDisk == nil { r.EncodeNil() } else { - x.ISCSI.CodecEncodeSelf(e) + x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[8] { + if yyq101[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iscsi")) + r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn107 { r.EncodeNil() } else { - if x.ISCSI == nil { + if x.GCEPersistentDisk == nil { r.EncodeNil() } else { - x.ISCSI.CodecEncodeSelf(e) + x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn108 bool - if x.VolumeSource.Glusterfs == nil { + if x.VolumeSource.AWSElasticBlockStore == nil { yyn108 = true goto LABEL108 } LABEL108: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn108 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[9] { - if x.Glusterfs == nil { + if yyq101[4] { + if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { - x.Glusterfs.CodecEncodeSelf(e) + x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[9] { + if yyq101[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) + r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn108 { r.EncodeNil() } else { - if x.Glusterfs == nil { + if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { - x.Glusterfs.CodecEncodeSelf(e) + x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn109 bool - if x.VolumeSource.PersistentVolumeClaim == nil { + if x.VolumeSource.GitRepo == nil { yyn109 = true goto LABEL109 } LABEL109: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn109 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[10] { - if x.PersistentVolumeClaim == nil { + if yyq101[5] { + if x.GitRepo == nil { r.EncodeNil() } else { - x.PersistentVolumeClaim.CodecEncodeSelf(e) + x.GitRepo.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[10] { + if yyq101[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) + r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn109 { r.EncodeNil() } else { - if x.PersistentVolumeClaim == nil { + if x.GitRepo == nil { r.EncodeNil() } else { - x.PersistentVolumeClaim.CodecEncodeSelf(e) + x.GitRepo.CodecEncodeSelf(e) } } } } var yyn110 bool - if x.VolumeSource.RBD == nil { + if x.VolumeSource.Secret == nil { yyn110 = true goto LABEL110 } LABEL110: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn110 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[11] { - if x.RBD == nil { + if yyq101[6] { + if x.Secret == nil { r.EncodeNil() } else { - x.RBD.CodecEncodeSelf(e) + x.Secret.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[11] { + if yyq101[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rbd")) + r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn110 { r.EncodeNil() } else { - if x.RBD == nil { + if x.Secret == nil { r.EncodeNil() } else { - x.RBD.CodecEncodeSelf(e) + x.Secret.CodecEncodeSelf(e) } } } } var yyn111 bool - if x.VolumeSource.FlexVolume == nil { + if x.VolumeSource.NFS == nil { yyn111 = true goto LABEL111 } LABEL111: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn111 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[12] { - if x.FlexVolume == nil { + if yyq101[7] { + if x.NFS == nil { r.EncodeNil() } else { - x.FlexVolume.CodecEncodeSelf(e) + x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[12] { + if yyq101[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) + r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn111 { r.EncodeNil() } else { - if x.FlexVolume == nil { + if x.NFS == nil { r.EncodeNil() } else { - x.FlexVolume.CodecEncodeSelf(e) + x.NFS.CodecEncodeSelf(e) } } } } var yyn112 bool - if x.VolumeSource.Cinder == nil { + if x.VolumeSource.ISCSI == nil { yyn112 = true goto LABEL112 } LABEL112: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn112 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[13] { - if x.Cinder == nil { + if yyq101[8] { + if x.ISCSI == nil { r.EncodeNil() } else { - x.Cinder.CodecEncodeSelf(e) + x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[13] { + if yyq101[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cinder")) + r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn112 { r.EncodeNil() } else { - if x.Cinder == nil { + if x.ISCSI == nil { r.EncodeNil() } else { - x.Cinder.CodecEncodeSelf(e) + x.ISCSI.CodecEncodeSelf(e) } } } } var yyn113 bool - if x.VolumeSource.CephFS == nil { + if x.VolumeSource.Glusterfs == nil { yyn113 = true goto LABEL113 } LABEL113: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn113 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[14] { - if x.CephFS == nil { + if yyq101[9] { + if x.Glusterfs == nil { r.EncodeNil() } else { - x.CephFS.CodecEncodeSelf(e) + x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[14] { + if yyq101[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cephfs")) + r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn113 { r.EncodeNil() } else { - if x.CephFS == nil { + if x.Glusterfs == nil { r.EncodeNil() } else { - x.CephFS.CodecEncodeSelf(e) + x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn114 bool - if x.VolumeSource.Flocker == nil { + if x.VolumeSource.PersistentVolumeClaim == nil { yyn114 = true goto LABEL114 } LABEL114: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn114 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[15] { - if x.Flocker == nil { + if yyq101[10] { + if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { - x.Flocker.CodecEncodeSelf(e) + x.PersistentVolumeClaim.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[15] { + if yyq101[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flocker")) + r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn114 { r.EncodeNil() } else { - if x.Flocker == nil { + if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { - x.Flocker.CodecEncodeSelf(e) + x.PersistentVolumeClaim.CodecEncodeSelf(e) } } } } var yyn115 bool - if x.VolumeSource.DownwardAPI == nil { + if x.VolumeSource.RBD == nil { yyn115 = true goto LABEL115 } LABEL115: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn115 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[16] { - if x.DownwardAPI == nil { + if yyq101[11] { + if x.RBD == nil { r.EncodeNil() } else { - x.DownwardAPI.CodecEncodeSelf(e) + x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[16] { + if yyq101[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) + r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn115 { r.EncodeNil() } else { - if x.DownwardAPI == nil { + if x.RBD == nil { r.EncodeNil() } else { - x.DownwardAPI.CodecEncodeSelf(e) + x.RBD.CodecEncodeSelf(e) } } } } var yyn116 bool - if x.VolumeSource.FC == nil { + if x.VolumeSource.Quobyte == nil { yyn116 = true goto LABEL116 } LABEL116: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn116 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[17] { - if x.FC == nil { + if yyq101[12] { + if x.Quobyte == nil { r.EncodeNil() } else { - x.FC.CodecEncodeSelf(e) + x.Quobyte.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[17] { + if yyq101[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fc")) + r.EncodeString(codecSelferC_UTF81234, string("quobyte")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn116 { r.EncodeNil() } else { - if x.FC == nil { + if x.Quobyte == nil { r.EncodeNil() } else { - x.FC.CodecEncodeSelf(e) + x.Quobyte.CodecEncodeSelf(e) } } } } var yyn117 bool - if x.VolumeSource.AzureFile == nil { + if x.VolumeSource.FlexVolume == nil { yyn117 = true goto LABEL117 } LABEL117: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn117 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[18] { - if x.AzureFile == nil { + if yyq101[13] { + if x.FlexVolume == nil { r.EncodeNil() } else { - x.AzureFile.CodecEncodeSelf(e) + x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[18] { + if yyq101[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn117 { r.EncodeNil() } else { - if x.AzureFile == nil { + if x.FlexVolume == nil { r.EncodeNil() } else { - x.AzureFile.CodecEncodeSelf(e) + x.FlexVolume.CodecEncodeSelf(e) } } } } var yyn118 bool - if x.VolumeSource.ConfigMap == nil { + if x.VolumeSource.Cinder == nil { yyn118 = true goto LABEL118 } LABEL118: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn118 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[19] { - if x.ConfigMap == nil { + if yyq101[14] { + if x.Cinder == nil { r.EncodeNil() } else { - x.ConfigMap.CodecEncodeSelf(e) + x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[19] { + if yyq101[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("configMap")) + r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn118 { r.EncodeNil() } else { - if x.ConfigMap == nil { + if x.Cinder == nil { r.EncodeNil() } else { - x.ConfigMap.CodecEncodeSelf(e) + x.Cinder.CodecEncodeSelf(e) } } } } var yyn119 bool - if x.VolumeSource.VsphereVolume == nil { + if x.VolumeSource.CephFS == nil { yyn119 = true goto LABEL119 } LABEL119: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn119 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[20] { + if yyq101[15] { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cephfs")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn119 { + r.EncodeNil() + } else { + if x.CephFS == nil { + r.EncodeNil() + } else { + x.CephFS.CodecEncodeSelf(e) + } + } + } + } + var yyn120 bool + if x.VolumeSource.Flocker == nil { + yyn120 = true + goto LABEL120 + } + LABEL120: + if yyr101 || yy2arr101 { + if yyn120 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[16] { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flocker")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn120 { + r.EncodeNil() + } else { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } + } + } + var yyn121 bool + if x.VolumeSource.DownwardAPI == nil { + yyn121 = true + goto LABEL121 + } + LABEL121: + if yyr101 || yy2arr101 { + if yyn121 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[17] { + if x.DownwardAPI == nil { + r.EncodeNil() + } else { + x.DownwardAPI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn121 { + r.EncodeNil() + } else { + if x.DownwardAPI == nil { + r.EncodeNil() + } else { + x.DownwardAPI.CodecEncodeSelf(e) + } + } + } + } + var yyn122 bool + if x.VolumeSource.FC == nil { + yyn122 = true + goto LABEL122 + } + LABEL122: + if yyr101 || yy2arr101 { + if yyn122 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[18] { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[18] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fc")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn122 { + r.EncodeNil() + } else { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } + } + } + var yyn123 bool + if x.VolumeSource.AzureFile == nil { + yyn123 = true + goto LABEL123 + } + LABEL123: + if yyr101 || yy2arr101 { + if yyn123 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[19] { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[19] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn123 { + r.EncodeNil() + } else { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } + } + } + var yyn124 bool + if x.VolumeSource.ConfigMap == nil { + yyn124 = true + goto LABEL124 + } + LABEL124: + if yyr101 || yy2arr101 { + if yyn124 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[20] { + if x.ConfigMap == nil { + r.EncodeNil() + } else { + x.ConfigMap.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[20] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("configMap")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn124 { + r.EncodeNil() + } else { + if x.ConfigMap == nil { + r.EncodeNil() + } else { + x.ConfigMap.CodecEncodeSelf(e) + } + } + } + } + var yyn125 bool + if x.VolumeSource.VsphereVolume == nil { + yyn125 = true + goto LABEL125 + } + LABEL125: + if yyr101 || yy2arr101 { + if yyn125 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[21] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -1860,11 +1947,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq96[20] { + if yyq101[21] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn119 { + if yyn125 { r.EncodeNil() } else { if x.VsphereVolume == nil { @@ -1875,7 +1962,44 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr96 || yy2arr96 { + var yyn126 bool + if x.VolumeSource.AzureDisk == nil { + yyn126 = true + goto LABEL126 + } + LABEL126: + if yyr101 || yy2arr101 { + if yyn126 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[22] { + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[22] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn126 { + r.EncodeNil() + } else { + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } + } + } + if yyr101 || yy2arr101 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1888,25 +2012,25 @@ func (x *Volume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym120 := z.DecBinary() - _ = yym120 + yym127 := z.DecBinary() + _ = yym127 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct121 := r.ContainerType() - if yyct121 == codecSelferValueTypeMap1234 { - yyl121 := r.ReadMapStart() - if yyl121 == 0 { + yyct128 := r.ContainerType() + if yyct128 == codecSelferValueTypeMap1234 { + yyl128 := r.ReadMapStart() + if yyl128 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl121, d) + x.codecDecodeSelfFromMap(yyl128, d) } - } else if yyct121 == codecSelferValueTypeArray1234 { - yyl121 := r.ReadArrayStart() - if yyl121 == 0 { + } else if yyct128 == codecSelferValueTypeArray1234 { + yyl128 := r.ReadArrayStart() + if yyl128 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl121, d) + x.codecDecodeSelfFromArray(yyl128, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1918,12 +2042,12 @@ func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys122Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys122Slc - var yyhl122 bool = l >= 0 - for yyj122 := 0; ; yyj122++ { - if yyhl122 { - if yyj122 >= l { + var yys129Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys129Slc + var yyhl129 bool = l >= 0 + for yyj129 := 0; ; yyj129++ { + if yyhl129 { + if yyj129 >= l { break } } else { @@ -1932,10 +2056,10 @@ func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys122Slc = r.DecodeBytes(yys122Slc, true, true) - yys122 := string(yys122Slc) + yys129Slc = r.DecodeBytes(yys129Slc, true, true) + yys129 := string(yys129Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys122 { + switch yys129 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -2096,6 +2220,20 @@ func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } x.RBD.CodecDecodeSelf(d) } + case "quobyte": + if x.VolumeSource.Quobyte == nil { + x.VolumeSource.Quobyte = new(QuobyteVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil + } + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } case "flexVolume": if x.VolumeSource.FlexVolume == nil { x.VolumeSource.FlexVolume = new(FlexVolumeSource) @@ -2222,10 +2360,24 @@ func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } x.VsphereVolume.CodecDecodeSelf(d) } + case "azureDisk": + if x.VolumeSource.AzureDisk == nil { + x.VolumeSource.AzureDisk = new(AzureDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil + } + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys122) - } // end switch yys122 - } // end for yyj122 + z.DecStructFieldNotFound(-1, yys129) + } // end switch yys129 + } // end for yyj129 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2233,16 +2385,16 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj144 int - var yyb144 bool - var yyhl144 bool = l >= 0 - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + var yyj153 int + var yyb153 bool + var yyhl153 bool = l >= 0 + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2255,13 +2407,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.HostPath == nil { x.VolumeSource.HostPath = new(HostPathVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2279,13 +2431,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.EmptyDir == nil { x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2303,13 +2455,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.GCEPersistentDisk == nil { x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2327,13 +2479,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.AWSElasticBlockStore == nil { x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2351,13 +2503,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.GitRepo == nil { x.VolumeSource.GitRepo = new(GitRepoVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2375,13 +2527,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Secret == nil { x.VolumeSource.Secret = new(SecretVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2399,13 +2551,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.NFS == nil { x.VolumeSource.NFS = new(NFSVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2423,13 +2575,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.ISCSI == nil { x.VolumeSource.ISCSI = new(ISCSIVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2447,13 +2599,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Glusterfs == nil { x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2471,13 +2623,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.PersistentVolumeClaim == nil { x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2495,13 +2647,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.RBD == nil { x.VolumeSource.RBD = new(RBDVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2516,16 +2668,40 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RBD.CodecDecodeSelf(d) } + if x.VolumeSource.Quobyte == nil { + x.VolumeSource.Quobyte = new(QuobyteVolumeSource) + } + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l + } else { + yyb153 = r.CheckBreak() + } + if yyb153 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil + } + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } if x.VolumeSource.FlexVolume == nil { x.VolumeSource.FlexVolume = new(FlexVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2543,13 +2719,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Cinder == nil { x.VolumeSource.Cinder = new(CinderVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2567,13 +2743,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.CephFS == nil { x.VolumeSource.CephFS = new(CephFSVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2591,13 +2767,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Flocker == nil { x.VolumeSource.Flocker = new(FlockerVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2615,13 +2791,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.DownwardAPI == nil { x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2639,13 +2815,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.FC == nil { x.VolumeSource.FC = new(FCVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2663,13 +2839,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.AzureFile == nil { x.VolumeSource.AzureFile = new(AzureFileVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2687,13 +2863,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.ConfigMap == nil { x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2711,13 +2887,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.VsphereVolume == nil { x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2732,18 +2908,42 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.VsphereVolume.CodecDecodeSelf(d) } - for { - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l - } else { - yyb144 = r.CheckBreak() + if x.VolumeSource.AzureDisk == nil { + x.VolumeSource.AzureDisk = new(AzureDiskVolumeSource) + } + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l + } else { + yyb153 = r.CheckBreak() + } + if yyb153 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil } - if yyb144 { + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } + for { + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l + } else { + yyb153 = r.CheckBreak() + } + if yyb153 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj144-1, "") + z.DecStructFieldNotFound(yyj153-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2755,52 +2955,54 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym166 := z.EncBinary() - _ = yym166 + yym177 := z.EncBinary() + _ = yym177 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep167 := !z.EncBinary() - yy2arr167 := z.EncBasicHandle().StructToArray - var yyq167 [20]bool - _, _, _ = yysep167, yyq167, yy2arr167 - const yyr167 bool = false - yyq167[0] = x.HostPath != nil - yyq167[1] = x.EmptyDir != nil - yyq167[2] = x.GCEPersistentDisk != nil - yyq167[3] = x.AWSElasticBlockStore != nil - yyq167[4] = x.GitRepo != nil - yyq167[5] = x.Secret != nil - yyq167[6] = x.NFS != nil - yyq167[7] = x.ISCSI != nil - yyq167[8] = x.Glusterfs != nil - yyq167[9] = x.PersistentVolumeClaim != nil - yyq167[10] = x.RBD != nil - yyq167[11] = x.FlexVolume != nil - yyq167[12] = x.Cinder != nil - yyq167[13] = x.CephFS != nil - yyq167[14] = x.Flocker != nil - yyq167[15] = x.DownwardAPI != nil - yyq167[16] = x.FC != nil - yyq167[17] = x.AzureFile != nil - yyq167[18] = x.ConfigMap != nil - yyq167[19] = x.VsphereVolume != nil - var yynn167 int - if yyr167 || yy2arr167 { - r.EncodeArrayStart(20) + yysep178 := !z.EncBinary() + yy2arr178 := z.EncBasicHandle().StructToArray + var yyq178 [22]bool + _, _, _ = yysep178, yyq178, yy2arr178 + const yyr178 bool = false + yyq178[0] = x.HostPath != nil + yyq178[1] = x.EmptyDir != nil + yyq178[2] = x.GCEPersistentDisk != nil + yyq178[3] = x.AWSElasticBlockStore != nil + yyq178[4] = x.GitRepo != nil + yyq178[5] = x.Secret != nil + yyq178[6] = x.NFS != nil + yyq178[7] = x.ISCSI != nil + yyq178[8] = x.Glusterfs != nil + yyq178[9] = x.PersistentVolumeClaim != nil + yyq178[10] = x.RBD != nil + yyq178[11] = x.Quobyte != nil + yyq178[12] = x.FlexVolume != nil + yyq178[13] = x.Cinder != nil + yyq178[14] = x.CephFS != nil + yyq178[15] = x.Flocker != nil + yyq178[16] = x.DownwardAPI != nil + yyq178[17] = x.FC != nil + yyq178[18] = x.AzureFile != nil + yyq178[19] = x.ConfigMap != nil + yyq178[20] = x.VsphereVolume != nil + yyq178[21] = x.AzureDisk != nil + var yynn178 int + if yyr178 || yy2arr178 { + r.EncodeArrayStart(22) } else { - yynn167 = 0 - for _, b := range yyq167 { + yynn178 = 0 + for _, b := range yyq178 { if b { - yynn167++ + yynn178++ } } - r.EncodeMapStart(yynn167) - yynn167 = 0 + r.EncodeMapStart(yynn178) + yynn178 = 0 } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[0] { + if yyq178[0] { if x.HostPath == nil { r.EncodeNil() } else { @@ -2810,7 +3012,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[0] { + if yyq178[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2821,9 +3023,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[1] { + if yyq178[1] { if x.EmptyDir == nil { r.EncodeNil() } else { @@ -2833,7 +3035,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[1] { + if yyq178[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2844,9 +3046,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[2] { + if yyq178[2] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { @@ -2856,7 +3058,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[2] { + if yyq178[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2867,9 +3069,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[3] { + if yyq178[3] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { @@ -2879,7 +3081,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[3] { + if yyq178[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2890,9 +3092,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[4] { + if yyq178[4] { if x.GitRepo == nil { r.EncodeNil() } else { @@ -2902,7 +3104,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[4] { + if yyq178[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2913,9 +3115,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[5] { + if yyq178[5] { if x.Secret == nil { r.EncodeNil() } else { @@ -2925,7 +3127,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[5] { + if yyq178[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2936,9 +3138,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[6] { + if yyq178[6] { if x.NFS == nil { r.EncodeNil() } else { @@ -2948,7 +3150,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[6] { + if yyq178[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2959,9 +3161,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[7] { + if yyq178[7] { if x.ISCSI == nil { r.EncodeNil() } else { @@ -2971,7 +3173,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[7] { + if yyq178[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2982,9 +3184,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[8] { + if yyq178[8] { if x.Glusterfs == nil { r.EncodeNil() } else { @@ -2994,7 +3196,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[8] { + if yyq178[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3005,9 +3207,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[9] { + if yyq178[9] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { @@ -3017,7 +3219,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[9] { + if yyq178[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3028,9 +3230,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[10] { + if yyq178[10] { if x.RBD == nil { r.EncodeNil() } else { @@ -3040,7 +3242,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[10] { + if yyq178[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3051,9 +3253,32 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[11] { + if yyq178[11] { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq178[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("quobyte")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } + } + if yyr178 || yy2arr178 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq178[12] { if x.FlexVolume == nil { r.EncodeNil() } else { @@ -3063,7 +3288,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[11] { + if yyq178[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3074,9 +3299,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[12] { + if yyq178[13] { if x.Cinder == nil { r.EncodeNil() } else { @@ -3086,7 +3311,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[12] { + if yyq178[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3097,9 +3322,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[13] { + if yyq178[14] { if x.CephFS == nil { r.EncodeNil() } else { @@ -3109,7 +3334,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[13] { + if yyq178[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3120,9 +3345,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[14] { + if yyq178[15] { if x.Flocker == nil { r.EncodeNil() } else { @@ -3132,7 +3357,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[14] { + if yyq178[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3143,9 +3368,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[15] { + if yyq178[16] { if x.DownwardAPI == nil { r.EncodeNil() } else { @@ -3155,7 +3380,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[15] { + if yyq178[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3166,9 +3391,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[16] { + if yyq178[17] { if x.FC == nil { r.EncodeNil() } else { @@ -3178,7 +3403,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[16] { + if yyq178[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3189,9 +3414,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[17] { + if yyq178[18] { if x.AzureFile == nil { r.EncodeNil() } else { @@ -3201,7 +3426,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[17] { + if yyq178[18] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3212,9 +3437,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[18] { + if yyq178[19] { if x.ConfigMap == nil { r.EncodeNil() } else { @@ -3224,7 +3449,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[18] { + if yyq178[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMap")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3235,9 +3460,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[19] { + if yyq178[20] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -3247,7 +3472,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[19] { + if yyq178[20] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3258,7 +3483,30 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq178[21] { + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq178[21] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } + } + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3271,25 +3519,25 @@ func (x *VolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym188 := z.DecBinary() - _ = yym188 + yym201 := z.DecBinary() + _ = yym201 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct189 := r.ContainerType() - if yyct189 == codecSelferValueTypeMap1234 { - yyl189 := r.ReadMapStart() - if yyl189 == 0 { + yyct202 := r.ContainerType() + if yyct202 == codecSelferValueTypeMap1234 { + yyl202 := r.ReadMapStart() + if yyl202 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl189, d) + x.codecDecodeSelfFromMap(yyl202, d) } - } else if yyct189 == codecSelferValueTypeArray1234 { - yyl189 := r.ReadArrayStart() - if yyl189 == 0 { + } else if yyct202 == codecSelferValueTypeArray1234 { + yyl202 := r.ReadArrayStart() + if yyl202 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl189, d) + x.codecDecodeSelfFromArray(yyl202, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3301,12 +3549,12 @@ func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys190Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys190Slc - var yyhl190 bool = l >= 0 - for yyj190 := 0; ; yyj190++ { - if yyhl190 { - if yyj190 >= l { + var yys203Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys203Slc + var yyhl203 bool = l >= 0 + for yyj203 := 0; ; yyj203++ { + if yyhl203 { + if yyj203 >= l { break } } else { @@ -3315,10 +3563,10 @@ func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys190Slc = r.DecodeBytes(yys190Slc, true, true) - yys190 := string(yys190Slc) + yys203Slc = r.DecodeBytes(yys203Slc, true, true) + yys203 := string(yys203Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys190 { + switch yys203 { case "hostPath": if r.TryDecodeAsNil() { if x.HostPath != nil { @@ -3440,6 +3688,17 @@ func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } x.RBD.CodecDecodeSelf(d) } + case "quobyte": + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil + } + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } case "flexVolume": if r.TryDecodeAsNil() { if x.FlexVolume != nil { @@ -3539,10 +3798,21 @@ func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } x.VsphereVolume.CodecDecodeSelf(d) } + case "azureDisk": + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil + } + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys190) - } // end switch yys190 - } // end for yyj190 + z.DecStructFieldNotFound(-1, yys203) + } // end switch yys203 + } // end for yyj203 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3550,16 +3820,16 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj211 int - var yyb211 bool - var yyhl211 bool = l >= 0 - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + var yyj226 int + var yyb226 bool + var yyhl226 bool = l >= 0 + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3574,13 +3844,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.HostPath.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3595,13 +3865,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.EmptyDir.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3616,13 +3886,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.GCEPersistentDisk.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3637,13 +3907,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AWSElasticBlockStore.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3658,13 +3928,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.GitRepo.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3679,13 +3949,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Secret.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3700,13 +3970,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.NFS.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3721,13 +3991,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ISCSI.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3742,13 +4012,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Glusterfs.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3763,13 +4033,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PersistentVolumeClaim.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3784,13 +4054,34 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RBD.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil + } + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l + } else { + yyb226 = r.CheckBreak() + } + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3805,13 +4096,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FlexVolume.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3826,13 +4117,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Cinder.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3847,13 +4138,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.CephFS.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3868,13 +4159,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Flocker.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3889,13 +4180,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.DownwardAPI.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3910,13 +4201,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FC.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3931,13 +4222,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AzureFile.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3952,13 +4243,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ConfigMap.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3973,18 +4264,39 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.VsphereVolume.CodecDecodeSelf(d) } - for { - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l - } else { - yyb211 = r.CheckBreak() + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l + } else { + yyb226 = r.CheckBreak() + } + if yyb226 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil } - if yyb211 { + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } + for { + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l + } else { + yyb226 = r.CheckBreak() + } + if yyb226 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj211-1, "") + z.DecStructFieldNotFound(yyj226-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3996,46 +4308,48 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym232 := z.EncBinary() - _ = yym232 + yym249 := z.EncBinary() + _ = yym249 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep233 := !z.EncBinary() - yy2arr233 := z.EncBasicHandle().StructToArray - var yyq233 [14]bool - _, _, _ = yysep233, yyq233, yy2arr233 - const yyr233 bool = false - yyq233[0] = x.GCEPersistentDisk != nil - yyq233[1] = x.AWSElasticBlockStore != nil - yyq233[2] = x.HostPath != nil - yyq233[3] = x.Glusterfs != nil - yyq233[4] = x.NFS != nil - yyq233[5] = x.RBD != nil - yyq233[6] = x.ISCSI != nil - yyq233[7] = x.FlexVolume != nil - yyq233[8] = x.Cinder != nil - yyq233[9] = x.CephFS != nil - yyq233[10] = x.FC != nil - yyq233[11] = x.Flocker != nil - yyq233[12] = x.AzureFile != nil - yyq233[13] = x.VsphereVolume != nil - var yynn233 int - if yyr233 || yy2arr233 { - r.EncodeArrayStart(14) + yysep250 := !z.EncBinary() + yy2arr250 := z.EncBasicHandle().StructToArray + var yyq250 [16]bool + _, _, _ = yysep250, yyq250, yy2arr250 + const yyr250 bool = false + yyq250[0] = x.GCEPersistentDisk != nil + yyq250[1] = x.AWSElasticBlockStore != nil + yyq250[2] = x.HostPath != nil + yyq250[3] = x.Glusterfs != nil + yyq250[4] = x.NFS != nil + yyq250[5] = x.RBD != nil + yyq250[6] = x.Quobyte != nil + yyq250[7] = x.ISCSI != nil + yyq250[8] = x.FlexVolume != nil + yyq250[9] = x.Cinder != nil + yyq250[10] = x.CephFS != nil + yyq250[11] = x.FC != nil + yyq250[12] = x.Flocker != nil + yyq250[13] = x.AzureFile != nil + yyq250[14] = x.VsphereVolume != nil + yyq250[15] = x.AzureDisk != nil + var yynn250 int + if yyr250 || yy2arr250 { + r.EncodeArrayStart(16) } else { - yynn233 = 0 - for _, b := range yyq233 { + yynn250 = 0 + for _, b := range yyq250 { if b { - yynn233++ + yynn250++ } } - r.EncodeMapStart(yynn233) - yynn233 = 0 + r.EncodeMapStart(yynn250) + yynn250 = 0 } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[0] { + if yyq250[0] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { @@ -4045,7 +4359,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq233[0] { + if yyq250[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4056,9 +4370,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[1] { + if yyq250[1] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { @@ -4068,7 +4382,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq233[1] { + if yyq250[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4079,9 +4393,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[2] { + if yyq250[2] { if x.HostPath == nil { r.EncodeNil() } else { @@ -4091,7 +4405,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq233[2] { + if yyq250[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4102,9 +4416,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[3] { + if yyq250[3] { if x.Glusterfs == nil { r.EncodeNil() } else { @@ -4114,7 +4428,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq233[3] { + if yyq250[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4125,9 +4439,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[4] { + if yyq250[4] { if x.NFS == nil { r.EncodeNil() } else { @@ -4137,7 +4451,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq233[4] { + if yyq250[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4148,9 +4462,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[5] { + if yyq250[5] { if x.RBD == nil { r.EncodeNil() } else { @@ -4160,7 +4474,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq233[5] { + if yyq250[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4171,9 +4485,32 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[6] { + if yyq250[6] { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq250[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("quobyte")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } + } + if yyr250 || yy2arr250 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq250[7] { if x.ISCSI == nil { r.EncodeNil() } else { @@ -4183,7 +4520,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq233[6] { + if yyq250[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4194,9 +4531,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[7] { + if yyq250[8] { if x.FlexVolume == nil { r.EncodeNil() } else { @@ -4206,7 +4543,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq233[7] { + if yyq250[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4217,9 +4554,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[8] { + if yyq250[9] { if x.Cinder == nil { r.EncodeNil() } else { @@ -4229,7 +4566,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq233[8] { + if yyq250[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4240,9 +4577,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[9] { + if yyq250[10] { if x.CephFS == nil { r.EncodeNil() } else { @@ -4252,7 +4589,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq233[9] { + if yyq250[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4263,9 +4600,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[10] { + if yyq250[11] { if x.FC == nil { r.EncodeNil() } else { @@ -4275,7 +4612,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq233[10] { + if yyq250[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4286,9 +4623,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[11] { + if yyq250[12] { if x.Flocker == nil { r.EncodeNil() } else { @@ -4298,7 +4635,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq233[11] { + if yyq250[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4309,9 +4646,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[12] { + if yyq250[13] { if x.AzureFile == nil { r.EncodeNil() } else { @@ -4321,7 +4658,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq233[12] { + if yyq250[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4332,9 +4669,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[13] { + if yyq250[14] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -4344,7 +4681,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq233[13] { + if yyq250[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4355,7 +4692,30 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq250[15] { + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq250[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } + } + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4368,25 +4728,25 @@ func (x *PersistentVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym248 := z.DecBinary() - _ = yym248 + yym267 := z.DecBinary() + _ = yym267 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct249 := r.ContainerType() - if yyct249 == codecSelferValueTypeMap1234 { - yyl249 := r.ReadMapStart() - if yyl249 == 0 { + yyct268 := r.ContainerType() + if yyct268 == codecSelferValueTypeMap1234 { + yyl268 := r.ReadMapStart() + if yyl268 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl249, d) + x.codecDecodeSelfFromMap(yyl268, d) } - } else if yyct249 == codecSelferValueTypeArray1234 { - yyl249 := r.ReadArrayStart() - if yyl249 == 0 { + } else if yyct268 == codecSelferValueTypeArray1234 { + yyl268 := r.ReadArrayStart() + if yyl268 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl249, d) + x.codecDecodeSelfFromArray(yyl268, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4398,12 +4758,12 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys250Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys250Slc - var yyhl250 bool = l >= 0 - for yyj250 := 0; ; yyj250++ { - if yyhl250 { - if yyj250 >= l { + var yys269Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys269Slc + var yyhl269 bool = l >= 0 + for yyj269 := 0; ; yyj269++ { + if yyhl269 { + if yyj269 >= l { break } } else { @@ -4412,10 +4772,10 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys250Slc = r.DecodeBytes(yys250Slc, true, true) - yys250 := string(yys250Slc) + yys269Slc = r.DecodeBytes(yys269Slc, true, true) + yys269 := string(yys269Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys250 { + switch yys269 { case "gcePersistentDisk": if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { @@ -4482,6 +4842,17 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Deco } x.RBD.CodecDecodeSelf(d) } + case "quobyte": + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil + } + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } case "iscsi": if r.TryDecodeAsNil() { if x.ISCSI != nil { @@ -4570,10 +4941,21 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Deco } x.VsphereVolume.CodecDecodeSelf(d) } + case "azureDisk": + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil + } + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys250) - } // end switch yys250 - } // end for yyj250 + z.DecStructFieldNotFound(-1, yys269) + } // end switch yys269 + } // end for yyj269 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4581,16 +4963,16 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj265 int - var yyb265 bool - var yyhl265 bool = l >= 0 - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l + var yyj286 int + var yyb286 bool + var yyhl286 bool = l >= 0 + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb265 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb265 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4605,13 +4987,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.GCEPersistentDisk.CodecDecodeSelf(d) } - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb265 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb265 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4626,13 +5008,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.AWSElasticBlockStore.CodecDecodeSelf(d) } - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb265 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb265 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4647,13 +5029,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.HostPath.CodecDecodeSelf(d) } - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb265 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb265 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4668,13 +5050,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Glusterfs.CodecDecodeSelf(d) } - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb265 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb265 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4689,13 +5071,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.NFS.CodecDecodeSelf(d) } - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb265 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb265 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4710,13 +5092,34 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.RBD.CodecDecodeSelf(d) } - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb265 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb265 { + if yyb286 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil + } + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l + } else { + yyb286 = r.CheckBreak() + } + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4731,13 +5134,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.ISCSI.CodecDecodeSelf(d) } - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb265 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb265 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4752,13 +5155,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.FlexVolume.CodecDecodeSelf(d) } - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb265 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb265 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4773,13 +5176,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Cinder.CodecDecodeSelf(d) } - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb265 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb265 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4794,13 +5197,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.CephFS.CodecDecodeSelf(d) } - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb265 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb265 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4815,13 +5218,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.FC.CodecDecodeSelf(d) } - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb265 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb265 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4836,13 +5239,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Flocker.CodecDecodeSelf(d) } - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb265 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb265 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4857,13 +5260,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.AzureFile.CodecDecodeSelf(d) } - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l } else { - yyb265 = r.CheckBreak() + yyb286 = r.CheckBreak() } - if yyb265 { + if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4878,18 +5281,39 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.VsphereVolume.CodecDecodeSelf(d) } - for { - yyj265++ - if yyhl265 { - yyb265 = yyj265 > l - } else { - yyb265 = r.CheckBreak() + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l + } else { + yyb286 = r.CheckBreak() + } + if yyb286 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil } - if yyb265 { + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } + for { + yyj286++ + if yyhl286 { + yyb286 = yyj286 > l + } else { + yyb286 = r.CheckBreak() + } + if yyb286 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj265-1, "") + z.DecStructFieldNotFound(yyj286-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4901,34 +5325,34 @@ func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder if x == nil { r.EncodeNil() } else { - yym280 := z.EncBinary() - _ = yym280 + yym303 := z.EncBinary() + _ = yym303 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep281 := !z.EncBinary() - yy2arr281 := z.EncBasicHandle().StructToArray - var yyq281 [2]bool - _, _, _ = yysep281, yyq281, yy2arr281 - const yyr281 bool = false - yyq281[1] = x.ReadOnly != false - var yynn281 int - if yyr281 || yy2arr281 { + yysep304 := !z.EncBinary() + yy2arr304 := z.EncBasicHandle().StructToArray + var yyq304 [2]bool + _, _, _ = yysep304, yyq304, yy2arr304 + const yyr304 bool = false + yyq304[1] = x.ReadOnly != false + var yynn304 int + if yyr304 || yy2arr304 { r.EncodeArrayStart(2) } else { - yynn281 = 1 - for _, b := range yyq281 { + yynn304 = 1 + for _, b := range yyq304 { if b { - yynn281++ + yynn304++ } } - r.EncodeMapStart(yynn281) - yynn281 = 0 + r.EncodeMapStart(yynn304) + yynn304 = 0 } - if yyr281 || yy2arr281 { + if yyr304 || yy2arr304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym283 := z.EncBinary() - _ = yym283 + yym306 := z.EncBinary() + _ = yym306 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) @@ -4937,18 +5361,18 @@ func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("claimName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym284 := z.EncBinary() - _ = yym284 + yym307 := z.EncBinary() + _ = yym307 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) } } - if yyr281 || yy2arr281 { + if yyr304 || yy2arr304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq281[1] { - yym286 := z.EncBinary() - _ = yym286 + if yyq304[1] { + yym309 := z.EncBinary() + _ = yym309 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -4957,19 +5381,19 @@ func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder r.EncodeBool(false) } } else { - if yyq281[1] { + if yyq304[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym287 := z.EncBinary() - _ = yym287 + yym310 := z.EncBinary() + _ = yym310 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr281 || yy2arr281 { + if yyr304 || yy2arr304 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4982,25 +5406,25 @@ func (x *PersistentVolumeClaimVolumeSource) CodecDecodeSelf(d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym288 := z.DecBinary() - _ = yym288 + yym311 := z.DecBinary() + _ = yym311 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct289 := r.ContainerType() - if yyct289 == codecSelferValueTypeMap1234 { - yyl289 := r.ReadMapStart() - if yyl289 == 0 { + yyct312 := r.ContainerType() + if yyct312 == codecSelferValueTypeMap1234 { + yyl312 := r.ReadMapStart() + if yyl312 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl289, d) + x.codecDecodeSelfFromMap(yyl312, d) } - } else if yyct289 == codecSelferValueTypeArray1234 { - yyl289 := r.ReadArrayStart() - if yyl289 == 0 { + } else if yyct312 == codecSelferValueTypeArray1234 { + yyl312 := r.ReadArrayStart() + if yyl312 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl289, d) + x.codecDecodeSelfFromArray(yyl312, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5012,12 +5436,12 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *cod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys290Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys290Slc - var yyhl290 bool = l >= 0 - for yyj290 := 0; ; yyj290++ { - if yyhl290 { - if yyj290 >= l { + var yys313Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys313Slc + var yyhl313 bool = l >= 0 + for yyj313 := 0; ; yyj313++ { + if yyhl313 { + if yyj313 >= l { break } } else { @@ -5026,10 +5450,10 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *cod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys290Slc = r.DecodeBytes(yys290Slc, true, true) - yys290 := string(yys290Slc) + yys313Slc = r.DecodeBytes(yys313Slc, true, true) + yys313 := string(yys313Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys290 { + switch yys313 { case "claimName": if r.TryDecodeAsNil() { x.ClaimName = "" @@ -5043,9 +5467,9 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *cod x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys290) - } // end switch yys290 - } // end for yyj290 + z.DecStructFieldNotFound(-1, yys313) + } // end switch yys313 + } // end for yyj313 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5053,16 +5477,16 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *c var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj293 int - var yyb293 bool - var yyhl293 bool = l >= 0 - yyj293++ - if yyhl293 { - yyb293 = yyj293 > l + var yyj316 int + var yyb316 bool + var yyhl316 bool = l >= 0 + yyj316++ + if yyhl316 { + yyb316 = yyj316 > l } else { - yyb293 = r.CheckBreak() + yyb316 = r.CheckBreak() } - if yyb293 { + if yyb316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5072,13 +5496,13 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *c } else { x.ClaimName = string(r.DecodeString()) } - yyj293++ - if yyhl293 { - yyb293 = yyj293 > l + yyj316++ + if yyhl316 { + yyb316 = yyj316 > l } else { - yyb293 = r.CheckBreak() + yyb316 = r.CheckBreak() } - if yyb293 { + if yyb316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5089,17 +5513,17 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *c x.ReadOnly = bool(r.DecodeBool()) } for { - yyj293++ - if yyhl293 { - yyb293 = yyj293 > l + yyj316++ + if yyhl316 { + yyb316 = yyj316 > l } else { - yyb293 = r.CheckBreak() + yyb316 = r.CheckBreak() } - if yyb293 { + if yyb316 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj293-1, "") + z.DecStructFieldNotFound(yyj316-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5111,39 +5535,39 @@ func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym296 := z.EncBinary() - _ = yym296 + yym319 := z.EncBinary() + _ = yym319 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep297 := !z.EncBinary() - yy2arr297 := z.EncBasicHandle().StructToArray - var yyq297 [5]bool - _, _, _ = yysep297, yyq297, yy2arr297 - const yyr297 bool = false - yyq297[0] = x.Kind != "" - yyq297[1] = x.APIVersion != "" - yyq297[2] = true - yyq297[3] = true - yyq297[4] = true - var yynn297 int - if yyr297 || yy2arr297 { + yysep320 := !z.EncBinary() + yy2arr320 := z.EncBasicHandle().StructToArray + var yyq320 [5]bool + _, _, _ = yysep320, yyq320, yy2arr320 + const yyr320 bool = false + yyq320[0] = x.Kind != "" + yyq320[1] = x.APIVersion != "" + yyq320[2] = true + yyq320[3] = true + yyq320[4] = true + var yynn320 int + if yyr320 || yy2arr320 { r.EncodeArrayStart(5) } else { - yynn297 = 0 - for _, b := range yyq297 { + yynn320 = 0 + for _, b := range yyq320 { if b { - yynn297++ + yynn320++ } } - r.EncodeMapStart(yynn297) - yynn297 = 0 + r.EncodeMapStart(yynn320) + yynn320 = 0 } - if yyr297 || yy2arr297 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq297[0] { - yym299 := z.EncBinary() - _ = yym299 + if yyq320[0] { + yym322 := z.EncBinary() + _ = yym322 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -5152,23 +5576,23 @@ func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq297[0] { + if yyq320[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym300 := z.EncBinary() - _ = yym300 + yym323 := z.EncBinary() + _ = yym323 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr297 || yy2arr297 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq297[1] { - yym302 := z.EncBinary() - _ = yym302 + if yyq320[1] { + yym325 := z.EncBinary() + _ = yym325 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -5177,70 +5601,70 @@ func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq297[1] { + if yyq320[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym303 := z.EncBinary() - _ = yym303 + yym326 := z.EncBinary() + _ = yym326 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr297 || yy2arr297 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq297[2] { - yy305 := &x.ObjectMeta - yy305.CodecEncodeSelf(e) + if yyq320[2] { + yy328 := &x.ObjectMeta + yy328.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq297[2] { + if yyq320[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy306 := &x.ObjectMeta - yy306.CodecEncodeSelf(e) + yy329 := &x.ObjectMeta + yy329.CodecEncodeSelf(e) } } - if yyr297 || yy2arr297 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq297[3] { - yy308 := &x.Spec - yy308.CodecEncodeSelf(e) + if yyq320[3] { + yy331 := &x.Spec + yy331.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq297[3] { + if yyq320[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy309 := &x.Spec - yy309.CodecEncodeSelf(e) + yy332 := &x.Spec + yy332.CodecEncodeSelf(e) } } - if yyr297 || yy2arr297 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq297[4] { - yy311 := &x.Status - yy311.CodecEncodeSelf(e) + if yyq320[4] { + yy334 := &x.Status + yy334.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq297[4] { + if yyq320[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy312 := &x.Status - yy312.CodecEncodeSelf(e) + yy335 := &x.Status + yy335.CodecEncodeSelf(e) } } - if yyr297 || yy2arr297 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -5253,25 +5677,25 @@ func (x *PersistentVolume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym313 := z.DecBinary() - _ = yym313 + yym336 := z.DecBinary() + _ = yym336 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct314 := r.ContainerType() - if yyct314 == codecSelferValueTypeMap1234 { - yyl314 := r.ReadMapStart() - if yyl314 == 0 { + yyct337 := r.ContainerType() + if yyct337 == codecSelferValueTypeMap1234 { + yyl337 := r.ReadMapStart() + if yyl337 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl314, d) + x.codecDecodeSelfFromMap(yyl337, d) } - } else if yyct314 == codecSelferValueTypeArray1234 { - yyl314 := r.ReadArrayStart() - if yyl314 == 0 { + } else if yyct337 == codecSelferValueTypeArray1234 { + yyl337 := r.ReadArrayStart() + if yyl337 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl314, d) + x.codecDecodeSelfFromArray(yyl337, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5283,12 +5707,12 @@ func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys315Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys315Slc - var yyhl315 bool = l >= 0 - for yyj315 := 0; ; yyj315++ { - if yyhl315 { - if yyj315 >= l { + var yys338Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys338Slc + var yyhl338 bool = l >= 0 + for yyj338 := 0; ; yyj338++ { + if yyhl338 { + if yyj338 >= l { break } } else { @@ -5297,10 +5721,10 @@ func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys315Slc = r.DecodeBytes(yys315Slc, true, true) - yys315 := string(yys315Slc) + yys338Slc = r.DecodeBytes(yys338Slc, true, true) + yys338 := string(yys338Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys315 { + switch yys338 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -5317,27 +5741,27 @@ func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv318 := &x.ObjectMeta - yyv318.CodecDecodeSelf(d) + yyv341 := &x.ObjectMeta + yyv341.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { - yyv319 := &x.Spec - yyv319.CodecDecodeSelf(d) + yyv342 := &x.Spec + yyv342.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { - yyv320 := &x.Status - yyv320.CodecDecodeSelf(d) + yyv343 := &x.Status + yyv343.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys315) - } // end switch yys315 - } // end for yyj315 + z.DecStructFieldNotFound(-1, yys338) + } // end switch yys338 + } // end for yyj338 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5345,16 +5769,16 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj321 int - var yyb321 bool - var yyhl321 bool = l >= 0 - yyj321++ - if yyhl321 { - yyb321 = yyj321 > l + var yyj344 int + var yyb344 bool + var yyhl344 bool = l >= 0 + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb321 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb321 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5364,13 +5788,13 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj321++ - if yyhl321 { - yyb321 = yyj321 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb321 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb321 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5380,13 +5804,13 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj321++ - if yyhl321 { - yyb321 = yyj321 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb321 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb321 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5394,16 +5818,16 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv324 := &x.ObjectMeta - yyv324.CodecDecodeSelf(d) + yyv347 := &x.ObjectMeta + yyv347.CodecDecodeSelf(d) } - yyj321++ - if yyhl321 { - yyb321 = yyj321 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb321 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb321 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5411,16 +5835,16 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { - yyv325 := &x.Spec - yyv325.CodecDecodeSelf(d) + yyv348 := &x.Spec + yyv348.CodecDecodeSelf(d) } - yyj321++ - if yyhl321 { - yyb321 = yyj321 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb321 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb321 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5428,21 +5852,21 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { - yyv326 := &x.Status - yyv326.CodecDecodeSelf(d) + yyv349 := &x.Status + yyv349.CodecDecodeSelf(d) } for { - yyj321++ - if yyhl321 { - yyb321 = yyj321 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb321 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb321 { + if yyb344 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj321-1, "") + z.DecStructFieldNotFound(yyj344-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5454,47 +5878,49 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym327 := z.EncBinary() - _ = yym327 + yym350 := z.EncBinary() + _ = yym350 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep328 := !z.EncBinary() - yy2arr328 := z.EncBasicHandle().StructToArray - var yyq328 [18]bool - _, _, _ = yysep328, yyq328, yy2arr328 - const yyr328 bool = false - yyq328[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil - yyq328[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil - yyq328[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil - yyq328[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil - yyq328[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil - yyq328[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil - yyq328[7] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil - yyq328[8] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil - yyq328[9] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil - yyq328[10] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil - yyq328[11] = x.PersistentVolumeSource.FC != nil && x.FC != nil - yyq328[12] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil - yyq328[13] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil - yyq328[14] = x.PersistentVolumeSource.VsphereVolume != nil && x.VsphereVolume != nil - yyq328[15] = len(x.AccessModes) != 0 - yyq328[16] = x.ClaimRef != nil - yyq328[17] = x.PersistentVolumeReclaimPolicy != "" - var yynn328 int - if yyr328 || yy2arr328 { - r.EncodeArrayStart(18) + yysep351 := !z.EncBinary() + yy2arr351 := z.EncBasicHandle().StructToArray + var yyq351 [20]bool + _, _, _ = yysep351, yyq351, yy2arr351 + const yyr351 bool = false + yyq351[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil + yyq351[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil + yyq351[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil + yyq351[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil + yyq351[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil + yyq351[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil + yyq351[7] = x.PersistentVolumeSource.Quobyte != nil && x.Quobyte != nil + yyq351[8] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil + yyq351[9] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil + yyq351[10] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil + yyq351[11] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil + yyq351[12] = x.PersistentVolumeSource.FC != nil && x.FC != nil + yyq351[13] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil + yyq351[14] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil + yyq351[15] = x.PersistentVolumeSource.VsphereVolume != nil && x.VsphereVolume != nil + yyq351[16] = x.PersistentVolumeSource.AzureDisk != nil && x.AzureDisk != nil + yyq351[17] = len(x.AccessModes) != 0 + yyq351[18] = x.ClaimRef != nil + yyq351[19] = x.PersistentVolumeReclaimPolicy != "" + var yynn351 int + if yyr351 || yy2arr351 { + r.EncodeArrayStart(20) } else { - yynn328 = 1 - for _, b := range yyq328 { + yynn351 = 1 + for _, b := range yyq351 { if b { - yynn328++ + yynn351++ } } - r.EncodeMapStart(yynn328) - yynn328 = 0 + r.EncodeMapStart(yynn351) + yynn351 = 0 } - if yyr328 || yy2arr328 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Capacity == nil { r.EncodeNil() @@ -5511,18 +5937,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { x.Capacity.CodecEncodeSelf(e) } } - var yyn330 bool + var yyn353 bool if x.PersistentVolumeSource.GCEPersistentDisk == nil { - yyn330 = true - goto LABEL330 + yyn353 = true + goto LABEL353 } - LABEL330: - if yyr328 || yy2arr328 { - if yyn330 { + LABEL353: + if yyr351 || yy2arr351 { + if yyn353 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[1] { + if yyq351[1] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { @@ -5533,11 +5959,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[1] { + if yyq351[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn330 { + if yyn353 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { @@ -5548,18 +5974,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn331 bool + var yyn354 bool if x.PersistentVolumeSource.AWSElasticBlockStore == nil { - yyn331 = true - goto LABEL331 + yyn354 = true + goto LABEL354 } - LABEL331: - if yyr328 || yy2arr328 { - if yyn331 { + LABEL354: + if yyr351 || yy2arr351 { + if yyn354 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[2] { + if yyq351[2] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { @@ -5570,11 +5996,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[2] { + if yyq351[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn331 { + if yyn354 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { @@ -5585,18 +6011,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn332 bool + var yyn355 bool if x.PersistentVolumeSource.HostPath == nil { - yyn332 = true - goto LABEL332 + yyn355 = true + goto LABEL355 } - LABEL332: - if yyr328 || yy2arr328 { - if yyn332 { + LABEL355: + if yyr351 || yy2arr351 { + if yyn355 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[3] { + if yyq351[3] { if x.HostPath == nil { r.EncodeNil() } else { @@ -5607,11 +6033,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[3] { + if yyq351[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn332 { + if yyn355 { r.EncodeNil() } else { if x.HostPath == nil { @@ -5622,18 +6048,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn333 bool + var yyn356 bool if x.PersistentVolumeSource.Glusterfs == nil { - yyn333 = true - goto LABEL333 + yyn356 = true + goto LABEL356 } - LABEL333: - if yyr328 || yy2arr328 { - if yyn333 { + LABEL356: + if yyr351 || yy2arr351 { + if yyn356 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[4] { + if yyq351[4] { if x.Glusterfs == nil { r.EncodeNil() } else { @@ -5644,11 +6070,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[4] { + if yyq351[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn333 { + if yyn356 { r.EncodeNil() } else { if x.Glusterfs == nil { @@ -5659,18 +6085,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn334 bool + var yyn357 bool if x.PersistentVolumeSource.NFS == nil { - yyn334 = true - goto LABEL334 + yyn357 = true + goto LABEL357 } - LABEL334: - if yyr328 || yy2arr328 { - if yyn334 { + LABEL357: + if yyr351 || yy2arr351 { + if yyn357 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[5] { + if yyq351[5] { if x.NFS == nil { r.EncodeNil() } else { @@ -5681,11 +6107,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[5] { + if yyq351[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn334 { + if yyn357 { r.EncodeNil() } else { if x.NFS == nil { @@ -5696,18 +6122,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn335 bool + var yyn358 bool if x.PersistentVolumeSource.RBD == nil { - yyn335 = true - goto LABEL335 + yyn358 = true + goto LABEL358 } - LABEL335: - if yyr328 || yy2arr328 { - if yyn335 { + LABEL358: + if yyr351 || yy2arr351 { + if yyn358 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[6] { + if yyq351[6] { if x.RBD == nil { r.EncodeNil() } else { @@ -5718,11 +6144,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[6] { + if yyq351[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn335 { + if yyn358 { r.EncodeNil() } else { if x.RBD == nil { @@ -5733,18 +6159,55 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn336 bool - if x.PersistentVolumeSource.ISCSI == nil { - yyn336 = true - goto LABEL336 + var yyn359 bool + if x.PersistentVolumeSource.Quobyte == nil { + yyn359 = true + goto LABEL359 } - LABEL336: - if yyr328 || yy2arr328 { - if yyn336 { + LABEL359: + if yyr351 || yy2arr351 { + if yyn359 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[7] { + if yyq351[7] { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq351[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("quobyte")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn359 { + r.EncodeNil() + } else { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } + } + } + var yyn360 bool + if x.PersistentVolumeSource.ISCSI == nil { + yyn360 = true + goto LABEL360 + } + LABEL360: + if yyr351 || yy2arr351 { + if yyn360 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq351[8] { if x.ISCSI == nil { r.EncodeNil() } else { @@ -5755,11 +6218,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[7] { + if yyq351[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn336 { + if yyn360 { r.EncodeNil() } else { if x.ISCSI == nil { @@ -5770,18 +6233,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn337 bool + var yyn361 bool if x.PersistentVolumeSource.FlexVolume == nil { - yyn337 = true - goto LABEL337 + yyn361 = true + goto LABEL361 } - LABEL337: - if yyr328 || yy2arr328 { - if yyn337 { + LABEL361: + if yyr351 || yy2arr351 { + if yyn361 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[8] { + if yyq351[9] { if x.FlexVolume == nil { r.EncodeNil() } else { @@ -5792,11 +6255,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[8] { + if yyq351[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn337 { + if yyn361 { r.EncodeNil() } else { if x.FlexVolume == nil { @@ -5807,18 +6270,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn338 bool + var yyn362 bool if x.PersistentVolumeSource.Cinder == nil { - yyn338 = true - goto LABEL338 + yyn362 = true + goto LABEL362 } - LABEL338: - if yyr328 || yy2arr328 { - if yyn338 { + LABEL362: + if yyr351 || yy2arr351 { + if yyn362 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[9] { + if yyq351[10] { if x.Cinder == nil { r.EncodeNil() } else { @@ -5829,11 +6292,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[9] { + if yyq351[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn338 { + if yyn362 { r.EncodeNil() } else { if x.Cinder == nil { @@ -5844,18 +6307,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn339 bool + var yyn363 bool if x.PersistentVolumeSource.CephFS == nil { - yyn339 = true - goto LABEL339 + yyn363 = true + goto LABEL363 } - LABEL339: - if yyr328 || yy2arr328 { - if yyn339 { + LABEL363: + if yyr351 || yy2arr351 { + if yyn363 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[10] { + if yyq351[11] { if x.CephFS == nil { r.EncodeNil() } else { @@ -5866,11 +6329,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[10] { + if yyq351[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn339 { + if yyn363 { r.EncodeNil() } else { if x.CephFS == nil { @@ -5881,18 +6344,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn340 bool + var yyn364 bool if x.PersistentVolumeSource.FC == nil { - yyn340 = true - goto LABEL340 + yyn364 = true + goto LABEL364 } - LABEL340: - if yyr328 || yy2arr328 { - if yyn340 { + LABEL364: + if yyr351 || yy2arr351 { + if yyn364 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[11] { + if yyq351[12] { if x.FC == nil { r.EncodeNil() } else { @@ -5903,11 +6366,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[11] { + if yyq351[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn340 { + if yyn364 { r.EncodeNil() } else { if x.FC == nil { @@ -5918,18 +6381,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn341 bool + var yyn365 bool if x.PersistentVolumeSource.Flocker == nil { - yyn341 = true - goto LABEL341 + yyn365 = true + goto LABEL365 } - LABEL341: - if yyr328 || yy2arr328 { - if yyn341 { + LABEL365: + if yyr351 || yy2arr351 { + if yyn365 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[12] { + if yyq351[13] { if x.Flocker == nil { r.EncodeNil() } else { @@ -5940,11 +6403,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[12] { + if yyq351[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn341 { + if yyn365 { r.EncodeNil() } else { if x.Flocker == nil { @@ -5955,18 +6418,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn342 bool + var yyn366 bool if x.PersistentVolumeSource.AzureFile == nil { - yyn342 = true - goto LABEL342 + yyn366 = true + goto LABEL366 } - LABEL342: - if yyr328 || yy2arr328 { - if yyn342 { + LABEL366: + if yyr351 || yy2arr351 { + if yyn366 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[13] { + if yyq351[14] { if x.AzureFile == nil { r.EncodeNil() } else { @@ -5977,11 +6440,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[13] { + if yyq351[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn342 { + if yyn366 { r.EncodeNil() } else { if x.AzureFile == nil { @@ -5992,18 +6455,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn343 bool + var yyn367 bool if x.PersistentVolumeSource.VsphereVolume == nil { - yyn343 = true - goto LABEL343 + yyn367 = true + goto LABEL367 } - LABEL343: - if yyr328 || yy2arr328 { - if yyn343 { + LABEL367: + if yyr351 || yy2arr351 { + if yyn367 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[14] { + if yyq351[15] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -6014,11 +6477,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[14] { + if yyq351[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn343 { + if yyn367 { r.EncodeNil() } else { if x.VsphereVolume == nil { @@ -6029,14 +6492,51 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr328 || yy2arr328 { + var yyn368 bool + if x.PersistentVolumeSource.AzureDisk == nil { + yyn368 = true + goto LABEL368 + } + LABEL368: + if yyr351 || yy2arr351 { + if yyn368 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq351[16] { + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq351[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn368 { + r.EncodeNil() + } else { + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } + } + } + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[15] { + if yyq351[17] { if x.AccessModes == nil { r.EncodeNil() } else { - yym345 := z.EncBinary() - _ = yym345 + yym370 := z.EncBinary() + _ = yym370 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -6046,15 +6546,15 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq328[15] { + if yyq351[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { - yym346 := z.EncBinary() - _ = yym346 + yym371 := z.EncBinary() + _ = yym371 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -6062,9 +6562,9 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr328 || yy2arr328 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[16] { + if yyq351[18] { if x.ClaimRef == nil { r.EncodeNil() } else { @@ -6074,7 +6574,7 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq328[16] { + if yyq351[18] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("claimRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -6085,22 +6585,22 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr328 || yy2arr328 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[17] { + if yyq351[19] { x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq328[17] { + if yyq351[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } } - if yyr328 || yy2arr328 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6113,25 +6613,25 @@ func (x *PersistentVolumeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym349 := z.DecBinary() - _ = yym349 + yym374 := z.DecBinary() + _ = yym374 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct350 := r.ContainerType() - if yyct350 == codecSelferValueTypeMap1234 { - yyl350 := r.ReadMapStart() - if yyl350 == 0 { + yyct375 := r.ContainerType() + if yyct375 == codecSelferValueTypeMap1234 { + yyl375 := r.ReadMapStart() + if yyl375 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl350, d) + x.codecDecodeSelfFromMap(yyl375, d) } - } else if yyct350 == codecSelferValueTypeArray1234 { - yyl350 := r.ReadArrayStart() - if yyl350 == 0 { + } else if yyct375 == codecSelferValueTypeArray1234 { + yyl375 := r.ReadArrayStart() + if yyl375 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl350, d) + x.codecDecodeSelfFromArray(yyl375, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6143,12 +6643,12 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys351Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys351Slc - var yyhl351 bool = l >= 0 - for yyj351 := 0; ; yyj351++ { - if yyhl351 { - if yyj351 >= l { + var yys376Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys376Slc + var yyhl376 bool = l >= 0 + for yyj376 := 0; ; yyj376++ { + if yyhl376 { + if yyj376 >= l { break } } else { @@ -6157,16 +6657,16 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys351Slc = r.DecodeBytes(yys351Slc, true, true) - yys351 := string(yys351Slc) + yys376Slc = r.DecodeBytes(yys376Slc, true, true) + yys376 := string(yys376Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys351 { + switch yys376 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv352 := &x.Capacity - yyv352.CodecDecodeSelf(d) + yyv377 := &x.Capacity + yyv377.CodecDecodeSelf(d) } case "gcePersistentDisk": if x.PersistentVolumeSource.GCEPersistentDisk == nil { @@ -6252,6 +6752,20 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode } x.RBD.CodecDecodeSelf(d) } + case "quobyte": + if x.PersistentVolumeSource.Quobyte == nil { + x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil + } + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } case "iscsi": if x.PersistentVolumeSource.ISCSI == nil { x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) @@ -6364,16 +6878,30 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode } x.VsphereVolume.CodecDecodeSelf(d) } + case "azureDisk": + if x.PersistentVolumeSource.AzureDisk == nil { + x.PersistentVolumeSource.AzureDisk = new(AzureDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil + } + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv367 := &x.AccessModes - yym368 := z.DecBinary() - _ = yym368 + yyv394 := &x.AccessModes + yym395 := z.DecBinary() + _ = yym395 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv367), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv394), d) } } case "claimRef": @@ -6394,9 +6922,9 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys351) - } // end switch yys351 - } // end for yyj351 + z.DecStructFieldNotFound(-1, yys376) + } // end switch yys376 + } // end for yyj376 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6404,16 +6932,16 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj371 int - var yyb371 bool - var yyhl371 bool = l >= 0 - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + var yyj398 int + var yyb398 bool + var yyhl398 bool = l >= 0 + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6421,19 +6949,19 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv372 := &x.Capacity - yyv372.CodecDecodeSelf(d) + yyv399 := &x.Capacity + yyv399.CodecDecodeSelf(d) } if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6451,13 +6979,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.AWSElasticBlockStore == nil { x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6475,13 +7003,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.HostPath == nil { x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6499,13 +7027,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Glusterfs == nil { x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6523,13 +7051,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.NFS == nil { x.PersistentVolumeSource.NFS = new(NFSVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6547,13 +7075,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.RBD == nil { x.PersistentVolumeSource.RBD = new(RBDVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6568,16 +7096,40 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco } x.RBD.CodecDecodeSelf(d) } + if x.PersistentVolumeSource.Quobyte == nil { + x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource) + } + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l + } else { + yyb398 = r.CheckBreak() + } + if yyb398 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil + } + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } if x.PersistentVolumeSource.ISCSI == nil { x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6595,13 +7147,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.FlexVolume == nil { x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6619,13 +7171,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6643,13 +7195,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.CephFS == nil { x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6667,13 +7219,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.FC == nil { x.PersistentVolumeSource.FC = new(FCVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6691,13 +7243,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Flocker == nil { x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6715,13 +7267,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.AzureFile == nil { x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6739,13 +7291,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.VsphereVolume == nil { x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6760,13 +7312,37 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco } x.VsphereVolume.CodecDecodeSelf(d) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l - } else { - yyb371 = r.CheckBreak() + if x.PersistentVolumeSource.AzureDisk == nil { + x.PersistentVolumeSource.AzureDisk = new(AzureDiskVolumeSource) } - if yyb371 { + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l + } else { + yyb398 = r.CheckBreak() + } + if yyb398 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil + } + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l + } else { + yyb398 = r.CheckBreak() + } + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6774,21 +7350,21 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv387 := &x.AccessModes - yym388 := z.DecBinary() - _ = yym388 + yyv416 := &x.AccessModes + yym417 := z.DecBinary() + _ = yym417 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv387), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv416), d) } } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6803,13 +7379,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco } x.ClaimRef.CodecDecodeSelf(d) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6820,17 +7396,17 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } for { - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj371-1, "") + z.DecStructFieldNotFound(yyj398-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6839,8 +7415,8 @@ func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym391 := z.EncBinary() - _ = yym391 + yym420 := z.EncBinary() + _ = yym420 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -6852,8 +7428,8 @@ func (x *PersistentVolumeReclaimPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym392 := z.DecBinary() - _ = yym392 + yym421 := z.DecBinary() + _ = yym421 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -6868,52 +7444,52 @@ func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym393 := z.EncBinary() - _ = yym393 + yym422 := z.EncBinary() + _ = yym422 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep394 := !z.EncBinary() - yy2arr394 := z.EncBasicHandle().StructToArray - var yyq394 [3]bool - _, _, _ = yysep394, yyq394, yy2arr394 - const yyr394 bool = false - yyq394[0] = x.Phase != "" - yyq394[1] = x.Message != "" - yyq394[2] = x.Reason != "" - var yynn394 int - if yyr394 || yy2arr394 { + yysep423 := !z.EncBinary() + yy2arr423 := z.EncBasicHandle().StructToArray + var yyq423 [3]bool + _, _, _ = yysep423, yyq423, yy2arr423 + const yyr423 bool = false + yyq423[0] = x.Phase != "" + yyq423[1] = x.Message != "" + yyq423[2] = x.Reason != "" + var yynn423 int + if yyr423 || yy2arr423 { r.EncodeArrayStart(3) } else { - yynn394 = 0 - for _, b := range yyq394 { + yynn423 = 0 + for _, b := range yyq423 { if b { - yynn394++ + yynn423++ } } - r.EncodeMapStart(yynn394) - yynn394 = 0 + r.EncodeMapStart(yynn423) + yynn423 = 0 } - if yyr394 || yy2arr394 { + if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq394[0] { + if yyq423[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq394[0] { + if yyq423[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr394 || yy2arr394 { + if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq394[1] { - yym397 := z.EncBinary() - _ = yym397 + if yyq423[1] { + yym426 := z.EncBinary() + _ = yym426 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -6922,23 +7498,23 @@ func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq394[1] { + if yyq423[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym398 := z.EncBinary() - _ = yym398 + yym427 := z.EncBinary() + _ = yym427 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr394 || yy2arr394 { + if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq394[2] { - yym400 := z.EncBinary() - _ = yym400 + if yyq423[2] { + yym429 := z.EncBinary() + _ = yym429 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -6947,19 +7523,19 @@ func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq394[2] { + if yyq423[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym401 := z.EncBinary() - _ = yym401 + yym430 := z.EncBinary() + _ = yym430 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr394 || yy2arr394 { + if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6972,25 +7548,25 @@ func (x *PersistentVolumeStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym402 := z.DecBinary() - _ = yym402 + yym431 := z.DecBinary() + _ = yym431 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct403 := r.ContainerType() - if yyct403 == codecSelferValueTypeMap1234 { - yyl403 := r.ReadMapStart() - if yyl403 == 0 { + yyct432 := r.ContainerType() + if yyct432 == codecSelferValueTypeMap1234 { + yyl432 := r.ReadMapStart() + if yyl432 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl403, d) + x.codecDecodeSelfFromMap(yyl432, d) } - } else if yyct403 == codecSelferValueTypeArray1234 { - yyl403 := r.ReadArrayStart() - if yyl403 == 0 { + } else if yyct432 == codecSelferValueTypeArray1234 { + yyl432 := r.ReadArrayStart() + if yyl432 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl403, d) + x.codecDecodeSelfFromArray(yyl432, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7002,12 +7578,12 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys404Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys404Slc - var yyhl404 bool = l >= 0 - for yyj404 := 0; ; yyj404++ { - if yyhl404 { - if yyj404 >= l { + var yys433Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys433Slc + var yyhl433 bool = l >= 0 + for yyj433 := 0; ; yyj433++ { + if yyhl433 { + if yyj433 >= l { break } } else { @@ -7016,10 +7592,10 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys404Slc = r.DecodeBytes(yys404Slc, true, true) - yys404 := string(yys404Slc) + yys433Slc = r.DecodeBytes(yys433Slc, true, true) + yys433 := string(yys433Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys404 { + switch yys433 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -7039,328 +7615,13 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Deco x.Reason = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys404) - } // end switch yys404 - } // end for yyj404 + z.DecStructFieldNotFound(-1, yys433) + } // end switch yys433 + } // end for yyj433 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj408 int - var yyb408 bool - var yyhl408 bool = l >= 0 - yyj408++ - if yyhl408 { - yyb408 = yyj408 > l - } else { - yyb408 = r.CheckBreak() - } - if yyb408 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = PersistentVolumePhase(r.DecodeString()) - } - yyj408++ - if yyhl408 { - yyb408 = yyj408 > l - } else { - yyb408 = r.CheckBreak() - } - if yyb408 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - yyj408++ - if yyhl408 { - yyb408 = yyj408 > l - } else { - yyb408 = r.CheckBreak() - } - if yyb408 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - for { - yyj408++ - if yyhl408 { - yyb408 = yyj408 > l - } else { - yyb408 = r.CheckBreak() - } - if yyb408 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj408-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym412 := z.EncBinary() - _ = yym412 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep413 := !z.EncBinary() - yy2arr413 := z.EncBasicHandle().StructToArray - var yyq413 [4]bool - _, _, _ = yysep413, yyq413, yy2arr413 - const yyr413 bool = false - yyq413[0] = x.Kind != "" - yyq413[1] = x.APIVersion != "" - yyq413[2] = true - var yynn413 int - if yyr413 || yy2arr413 { - r.EncodeArrayStart(4) - } else { - yynn413 = 1 - for _, b := range yyq413 { - if b { - yynn413++ - } - } - r.EncodeMapStart(yynn413) - yynn413 = 0 - } - if yyr413 || yy2arr413 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq413[0] { - yym415 := z.EncBinary() - _ = yym415 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq413[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym416 := z.EncBinary() - _ = yym416 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr413 || yy2arr413 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq413[1] { - yym418 := z.EncBinary() - _ = yym418 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq413[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym419 := z.EncBinary() - _ = yym419 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr413 || yy2arr413 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq413[2] { - yy421 := &x.ListMeta - yym422 := z.EncBinary() - _ = yym422 - if false { - } else if z.HasExtensions() && z.EncExt(yy421) { - } else { - z.EncFallback(yy421) - } - } else { - r.EncodeNil() - } - } else { - if yyq413[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy423 := &x.ListMeta - yym424 := z.EncBinary() - _ = yym424 - if false { - } else if z.HasExtensions() && z.EncExt(yy423) { - } else { - z.EncFallback(yy423) - } - } - } - if yyr413 || yy2arr413 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym426 := z.EncBinary() - _ = yym426 - if false { - } else { - h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym427 := z.EncBinary() - _ = yym427 - if false { - } else { - h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) - } - } - } - if yyr413 || yy2arr413 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PersistentVolumeList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym428 := z.DecBinary() - _ = yym428 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct429 := r.ContainerType() - if yyct429 == codecSelferValueTypeMap1234 { - yyl429 := r.ReadMapStart() - if yyl429 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl429, d) - } - } else if yyct429 == codecSelferValueTypeArray1234 { - yyl429 := r.ReadArrayStart() - if yyl429 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl429, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys430Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys430Slc - var yyhl430 bool = l >= 0 - for yyj430 := 0; ; yyj430++ { - if yyhl430 { - if yyj430 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys430Slc = r.DecodeBytes(yys430Slc, true, true) - yys430 := string(yys430Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys430 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv433 := &x.ListMeta - yym434 := z.DecBinary() - _ = yym434 - if false { - } else if z.HasExtensions() && z.DecExt(yyv433) { - } else { - z.DecFallback(yyv433, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv435 := &x.Items - yym436 := z.DecBinary() - _ = yym436 - if false { - } else { - h.decSlicePersistentVolume((*[]PersistentVolume)(yyv435), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys430) - } // end switch yys430 - } // end for yyj430 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -7379,9 +7640,9 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Phase = "" } else { - x.Kind = string(r.DecodeString()) + x.Phase = PersistentVolumePhase(r.DecodeString()) } yyj437++ if yyhl437 { @@ -7395,9 +7656,9 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Message = "" } else { - x.APIVersion = string(r.DecodeString()) + x.Message = string(r.DecodeString()) } yyj437++ if yyhl437 { @@ -7411,38 +7672,9 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Reason = "" } else { - yyv440 := &x.ListMeta - yym441 := z.DecBinary() - _ = yym441 - if false { - } else if z.HasExtensions() && z.DecExt(yyv440) { - } else { - z.DecFallback(yyv440, false) - } - } - yyj437++ - if yyhl437 { - yyb437 = yyj437 > l - } else { - yyb437 = r.CheckBreak() - } - if yyb437 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv442 := &x.Items - yym443 := z.DecBinary() - _ = yym443 - if false { - } else { - h.decSlicePersistentVolume((*[]PersistentVolume)(yyv442), d) - } + x.Reason = string(r.DecodeString()) } for { yyj437++ @@ -7460,46 +7692,44 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym444 := z.EncBinary() - _ = yym444 + yym441 := z.EncBinary() + _ = yym441 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep445 := !z.EncBinary() - yy2arr445 := z.EncBasicHandle().StructToArray - var yyq445 [5]bool - _, _, _ = yysep445, yyq445, yy2arr445 - const yyr445 bool = false - yyq445[0] = x.Kind != "" - yyq445[1] = x.APIVersion != "" - yyq445[2] = true - yyq445[3] = true - yyq445[4] = true - var yynn445 int - if yyr445 || yy2arr445 { - r.EncodeArrayStart(5) + yysep442 := !z.EncBinary() + yy2arr442 := z.EncBasicHandle().StructToArray + var yyq442 [4]bool + _, _, _ = yysep442, yyq442, yy2arr442 + const yyr442 bool = false + yyq442[0] = x.Kind != "" + yyq442[1] = x.APIVersion != "" + yyq442[2] = true + var yynn442 int + if yyr442 || yy2arr442 { + r.EncodeArrayStart(4) } else { - yynn445 = 0 - for _, b := range yyq445 { + yynn442 = 1 + for _, b := range yyq442 { if b { - yynn445++ + yynn442++ } } - r.EncodeMapStart(yynn445) - yynn445 = 0 + r.EncodeMapStart(yynn442) + yynn442 = 0 } - if yyr445 || yy2arr445 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq445[0] { - yym447 := z.EncBinary() - _ = yym447 + if yyq442[0] { + yym444 := z.EncBinary() + _ = yym444 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -7508,423 +7738,82 @@ func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq445[0] { + if yyq442[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym445 := z.EncBinary() + _ = yym445 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr442 || yy2arr442 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq442[1] { + yym447 := z.EncBinary() + _ = yym447 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq442[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) yym448 := z.EncBinary() _ = yym448 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr445 || yy2arr445 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq445[1] { - yym450 := z.EncBinary() - _ = yym450 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq445[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyq442[2] { + yy450 := &x.ListMeta yym451 := z.EncBinary() _ = yym451 if false { + } else if z.HasExtensions() && z.EncExt(yy450) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + z.EncFallback(yy450) } - } - } - if yyr445 || yy2arr445 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq445[2] { - yy453 := &x.ObjectMeta - yy453.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq445[2] { + if yyq442[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy454 := &x.ObjectMeta - yy454.CodecEncodeSelf(e) - } - } - if yyr445 || yy2arr445 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq445[3] { - yy456 := &x.Spec - yy456.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq445[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy457 := &x.Spec - yy457.CodecEncodeSelf(e) - } - } - if yyr445 || yy2arr445 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq445[4] { - yy459 := &x.Status - yy459.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq445[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy460 := &x.Status - yy460.CodecEncodeSelf(e) - } - } - if yyr445 || yy2arr445 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PersistentVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym461 := z.DecBinary() - _ = yym461 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct462 := r.ContainerType() - if yyct462 == codecSelferValueTypeMap1234 { - yyl462 := r.ReadMapStart() - if yyl462 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl462, d) - } - } else if yyct462 == codecSelferValueTypeArray1234 { - yyl462 := r.ReadArrayStart() - if yyl462 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl462, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys463Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys463Slc - var yyhl463 bool = l >= 0 - for yyj463 := 0; ; yyj463++ { - if yyhl463 { - if yyj463 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys463Slc = r.DecodeBytes(yys463Slc, true, true) - yys463 := string(yys463Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys463 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv466 := &x.ObjectMeta - yyv466.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeClaimSpec{} - } else { - yyv467 := &x.Spec - yyv467.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = PersistentVolumeClaimStatus{} - } else { - yyv468 := &x.Status - yyv468.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys463) - } // end switch yys463 - } // end for yyj463 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj469 int - var yyb469 bool - var yyhl469 bool = l >= 0 - yyj469++ - if yyhl469 { - yyb469 = yyj469 > l - } else { - yyb469 = r.CheckBreak() - } - if yyb469 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj469++ - if yyhl469 { - yyb469 = yyj469 > l - } else { - yyb469 = r.CheckBreak() - } - if yyb469 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj469++ - if yyhl469 { - yyb469 = yyj469 > l - } else { - yyb469 = r.CheckBreak() - } - if yyb469 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv472 := &x.ObjectMeta - yyv472.CodecDecodeSelf(d) - } - yyj469++ - if yyhl469 { - yyb469 = yyj469 > l - } else { - yyb469 = r.CheckBreak() - } - if yyb469 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeClaimSpec{} - } else { - yyv473 := &x.Spec - yyv473.CodecDecodeSelf(d) - } - yyj469++ - if yyhl469 { - yyb469 = yyj469 > l - } else { - yyb469 = r.CheckBreak() - } - if yyb469 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = PersistentVolumeClaimStatus{} - } else { - yyv474 := &x.Status - yyv474.CodecDecodeSelf(d) - } - for { - yyj469++ - if yyhl469 { - yyb469 = yyj469 > l - } else { - yyb469 = r.CheckBreak() - } - if yyb469 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj469-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym475 := z.EncBinary() - _ = yym475 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep476 := !z.EncBinary() - yy2arr476 := z.EncBasicHandle().StructToArray - var yyq476 [4]bool - _, _, _ = yysep476, yyq476, yy2arr476 - const yyr476 bool = false - yyq476[0] = x.Kind != "" - yyq476[1] = x.APIVersion != "" - yyq476[2] = true - var yynn476 int - if yyr476 || yy2arr476 { - r.EncodeArrayStart(4) - } else { - yynn476 = 1 - for _, b := range yyq476 { - if b { - yynn476++ - } - } - r.EncodeMapStart(yynn476) - yynn476 = 0 - } - if yyr476 || yy2arr476 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq476[0] { - yym478 := z.EncBinary() - _ = yym478 + yy452 := &x.ListMeta + yym453 := z.EncBinary() + _ = yym453 if false { + } else if z.HasExtensions() && z.EncExt(yy452) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq476[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym479 := z.EncBinary() - _ = yym479 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy452) } } } - if yyr476 || yy2arr476 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq476[1] { - yym481 := z.EncBinary() - _ = yym481 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq476[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym482 := z.EncBinary() - _ = yym482 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr476 || yy2arr476 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq476[2] { - yy484 := &x.ListMeta - yym485 := z.EncBinary() - _ = yym485 - if false { - } else if z.HasExtensions() && z.EncExt(yy484) { - } else { - z.EncFallback(yy484) - } - } else { - r.EncodeNil() - } - } else { - if yyq476[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy486 := &x.ListMeta - yym487 := z.EncBinary() - _ = yym487 - if false { - } else if z.HasExtensions() && z.EncExt(yy486) { - } else { - z.EncFallback(yy486) - } - } - } - if yyr476 || yy2arr476 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym489 := z.EncBinary() - _ = yym489 + yym455 := z.EncBinary() + _ = yym455 if false { } else { - h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) + h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } else { @@ -7934,15 +7823,15 @@ func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym490 := z.EncBinary() - _ = yym490 + yym456 := z.EncBinary() + _ = yym456 if false { } else { - h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) + h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } - if yyr476 || yy2arr476 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7951,29 +7840,29 @@ func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *PersistentVolumeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym491 := z.DecBinary() - _ = yym491 + yym457 := z.DecBinary() + _ = yym457 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct492 := r.ContainerType() - if yyct492 == codecSelferValueTypeMap1234 { - yyl492 := r.ReadMapStart() - if yyl492 == 0 { + yyct458 := r.ContainerType() + if yyct458 == codecSelferValueTypeMap1234 { + yyl458 := r.ReadMapStart() + if yyl458 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl492, d) + x.codecDecodeSelfFromMap(yyl458, d) } - } else if yyct492 == codecSelferValueTypeArray1234 { - yyl492 := r.ReadArrayStart() - if yyl492 == 0 { + } else if yyct458 == codecSelferValueTypeArray1234 { + yyl458 := r.ReadArrayStart() + if yyl458 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl492, d) + x.codecDecodeSelfFromArray(yyl458, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7981,16 +7870,16 @@ func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys493Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys493Slc - var yyhl493 bool = l >= 0 - for yyj493 := 0; ; yyj493++ { - if yyhl493 { - if yyj493 >= l { + var yys459Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys459Slc + var yyhl459 bool = l >= 0 + for yyj459 := 0; ; yyj459++ { + if yyhl459 { + if yyj459 >= l { break } } else { @@ -7999,10 +7888,10 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys493Slc = r.DecodeBytes(yys493Slc, true, true) - yys493 := string(yys493Slc) + yys459Slc = r.DecodeBytes(yys459Slc, true, true) + yys459 := string(yys459Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys493 { + switch yys459 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -8019,48 +7908,48 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv496 := &x.ListMeta - yym497 := z.DecBinary() - _ = yym497 + yyv462 := &x.ListMeta + yym463 := z.DecBinary() + _ = yym463 if false { - } else if z.HasExtensions() && z.DecExt(yyv496) { + } else if z.HasExtensions() && z.DecExt(yyv462) { } else { - z.DecFallback(yyv496, false) + z.DecFallback(yyv462, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv498 := &x.Items - yym499 := z.DecBinary() - _ = yym499 + yyv464 := &x.Items + yym465 := z.DecBinary() + _ = yym465 if false { } else { - h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv498), d) + h.decSlicePersistentVolume((*[]PersistentVolume)(yyv464), d) } } default: - z.DecStructFieldNotFound(-1, yys493) - } // end switch yys493 - } // end for yyj493 + z.DecStructFieldNotFound(-1, yys459) + } // end switch yys459 + } // end for yyj459 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj500 int - var yyb500 bool - var yyhl500 bool = l >= 0 - yyj500++ - if yyhl500 { - yyb500 = yyj500 > l + var yyj466 int + var yyb466 bool + var yyhl466 bool = l >= 0 + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb500 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb500 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8070,13 +7959,13 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Kind = string(r.DecodeString()) } - yyj500++ - if yyhl500 { - yyb500 = yyj500 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb500 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb500 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8086,13 +7975,13 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.APIVersion = string(r.DecodeString()) } - yyj500++ - if yyhl500 { - yyb500 = yyj500 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb500 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb500 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8100,22 +7989,22 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv503 := &x.ListMeta - yym504 := z.DecBinary() - _ = yym504 + yyv469 := &x.ListMeta + yym470 := z.DecBinary() + _ = yym470 if false { - } else if z.HasExtensions() && z.DecExt(yyv503) { + } else if z.HasExtensions() && z.DecExt(yyv469) { } else { - z.DecFallback(yyv503, false) + z.DecFallback(yyv469, false) } } - yyj500++ - if yyhl500 { - yyb500 = yyj500 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb500 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb500 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8123,26 +8012,713 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Items = nil } else { - yyv505 := &x.Items - yym506 := z.DecBinary() - _ = yym506 + yyv471 := &x.Items + yym472 := z.DecBinary() + _ = yym472 if false { } else { - h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv505), d) + h.decSlicePersistentVolume((*[]PersistentVolume)(yyv471), d) } } for { - yyj500++ - if yyhl500 { - yyb500 = yyj500 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb500 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb500 { + if yyb466 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj500-1, "") + z.DecStructFieldNotFound(yyj466-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym473 := z.EncBinary() + _ = yym473 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep474 := !z.EncBinary() + yy2arr474 := z.EncBasicHandle().StructToArray + var yyq474 [5]bool + _, _, _ = yysep474, yyq474, yy2arr474 + const yyr474 bool = false + yyq474[0] = x.Kind != "" + yyq474[1] = x.APIVersion != "" + yyq474[2] = true + yyq474[3] = true + yyq474[4] = true + var yynn474 int + if yyr474 || yy2arr474 { + r.EncodeArrayStart(5) + } else { + yynn474 = 0 + for _, b := range yyq474 { + if b { + yynn474++ + } + } + r.EncodeMapStart(yynn474) + yynn474 = 0 + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq474[0] { + yym476 := z.EncBinary() + _ = yym476 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq474[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym477 := z.EncBinary() + _ = yym477 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq474[1] { + yym479 := z.EncBinary() + _ = yym479 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq474[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym480 := z.EncBinary() + _ = yym480 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq474[2] { + yy482 := &x.ObjectMeta + yy482.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq474[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy483 := &x.ObjectMeta + yy483.CodecEncodeSelf(e) + } + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq474[3] { + yy485 := &x.Spec + yy485.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq474[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy486 := &x.Spec + yy486.CodecEncodeSelf(e) + } + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq474[4] { + yy488 := &x.Status + yy488.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq474[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy489 := &x.Status + yy489.CodecEncodeSelf(e) + } + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym490 := z.DecBinary() + _ = yym490 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct491 := r.ContainerType() + if yyct491 == codecSelferValueTypeMap1234 { + yyl491 := r.ReadMapStart() + if yyl491 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl491, d) + } + } else if yyct491 == codecSelferValueTypeArray1234 { + yyl491 := r.ReadArrayStart() + if yyl491 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl491, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys492Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys492Slc + var yyhl492 bool = l >= 0 + for yyj492 := 0; ; yyj492++ { + if yyhl492 { + if yyj492 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys492Slc = r.DecodeBytes(yys492Slc, true, true) + yys492 := string(yys492Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys492 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv495 := &x.ObjectMeta + yyv495.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = PersistentVolumeClaimSpec{} + } else { + yyv496 := &x.Spec + yyv496.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = PersistentVolumeClaimStatus{} + } else { + yyv497 := &x.Status + yyv497.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys492) + } // end switch yys492 + } // end for yyj492 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj498 int + var yyb498 bool + var yyhl498 bool = l >= 0 + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l + } else { + yyb498 = r.CheckBreak() + } + if yyb498 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l + } else { + yyb498 = r.CheckBreak() + } + if yyb498 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l + } else { + yyb498 = r.CheckBreak() + } + if yyb498 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv501 := &x.ObjectMeta + yyv501.CodecDecodeSelf(d) + } + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l + } else { + yyb498 = r.CheckBreak() + } + if yyb498 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = PersistentVolumeClaimSpec{} + } else { + yyv502 := &x.Spec + yyv502.CodecDecodeSelf(d) + } + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l + } else { + yyb498 = r.CheckBreak() + } + if yyb498 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = PersistentVolumeClaimStatus{} + } else { + yyv503 := &x.Status + yyv503.CodecDecodeSelf(d) + } + for { + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l + } else { + yyb498 = r.CheckBreak() + } + if yyb498 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj498-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym504 := z.EncBinary() + _ = yym504 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep505 := !z.EncBinary() + yy2arr505 := z.EncBasicHandle().StructToArray + var yyq505 [4]bool + _, _, _ = yysep505, yyq505, yy2arr505 + const yyr505 bool = false + yyq505[0] = x.Kind != "" + yyq505[1] = x.APIVersion != "" + yyq505[2] = true + var yynn505 int + if yyr505 || yy2arr505 { + r.EncodeArrayStart(4) + } else { + yynn505 = 1 + for _, b := range yyq505 { + if b { + yynn505++ + } + } + r.EncodeMapStart(yynn505) + yynn505 = 0 + } + if yyr505 || yy2arr505 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq505[0] { + yym507 := z.EncBinary() + _ = yym507 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq505[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym508 := z.EncBinary() + _ = yym508 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr505 || yy2arr505 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq505[1] { + yym510 := z.EncBinary() + _ = yym510 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq505[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym511 := z.EncBinary() + _ = yym511 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr505 || yy2arr505 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq505[2] { + yy513 := &x.ListMeta + yym514 := z.EncBinary() + _ = yym514 + if false { + } else if z.HasExtensions() && z.EncExt(yy513) { + } else { + z.EncFallback(yy513) + } + } else { + r.EncodeNil() + } + } else { + if yyq505[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy515 := &x.ListMeta + yym516 := z.EncBinary() + _ = yym516 + if false { + } else if z.HasExtensions() && z.EncExt(yy515) { + } else { + z.EncFallback(yy515) + } + } + } + if yyr505 || yy2arr505 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym518 := z.EncBinary() + _ = yym518 + if false { + } else { + h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym519 := z.EncBinary() + _ = yym519 + if false { + } else { + h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) + } + } + } + if yyr505 || yy2arr505 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym520 := z.DecBinary() + _ = yym520 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct521 := r.ContainerType() + if yyct521 == codecSelferValueTypeMap1234 { + yyl521 := r.ReadMapStart() + if yyl521 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl521, d) + } + } else if yyct521 == codecSelferValueTypeArray1234 { + yyl521 := r.ReadArrayStart() + if yyl521 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl521, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys522Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys522Slc + var yyhl522 bool = l >= 0 + for yyj522 := 0; ; yyj522++ { + if yyhl522 { + if yyj522 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys522Slc = r.DecodeBytes(yys522Slc, true, true) + yys522 := string(yys522Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys522 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv525 := &x.ListMeta + yym526 := z.DecBinary() + _ = yym526 + if false { + } else if z.HasExtensions() && z.DecExt(yyv525) { + } else { + z.DecFallback(yyv525, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv527 := &x.Items + yym528 := z.DecBinary() + _ = yym528 + if false { + } else { + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv527), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys522) + } // end switch yys522 + } // end for yyj522 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj529 int + var yyb529 bool + var yyhl529 bool = l >= 0 + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l + } else { + yyb529 = r.CheckBreak() + } + if yyb529 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l + } else { + yyb529 = r.CheckBreak() + } + if yyb529 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l + } else { + yyb529 = r.CheckBreak() + } + if yyb529 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv532 := &x.ListMeta + yym533 := z.DecBinary() + _ = yym533 + if false { + } else if z.HasExtensions() && z.DecExt(yyv532) { + } else { + z.DecFallback(yyv532, false) + } + } + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l + } else { + yyb529 = r.CheckBreak() + } + if yyb529 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv534 := &x.Items + yym535 := z.DecBinary() + _ = yym535 + if false { + } else { + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv534), d) + } + } + for { + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l + } else { + yyb529 = r.CheckBreak() + } + if yyb529 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj529-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8154,41 +8730,41 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym507 := z.EncBinary() - _ = yym507 + yym536 := z.EncBinary() + _ = yym536 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep508 := !z.EncBinary() - yy2arr508 := z.EncBasicHandle().StructToArray - var yyq508 [4]bool - _, _, _ = yysep508, yyq508, yy2arr508 - const yyr508 bool = false - yyq508[0] = len(x.AccessModes) != 0 - yyq508[1] = x.Selector != nil - yyq508[2] = true - yyq508[3] = x.VolumeName != "" - var yynn508 int - if yyr508 || yy2arr508 { + yysep537 := !z.EncBinary() + yy2arr537 := z.EncBasicHandle().StructToArray + var yyq537 [4]bool + _, _, _ = yysep537, yyq537, yy2arr537 + const yyr537 bool = false + yyq537[0] = len(x.AccessModes) != 0 + yyq537[1] = x.Selector != nil + yyq537[2] = true + yyq537[3] = x.VolumeName != "" + var yynn537 int + if yyr537 || yy2arr537 { r.EncodeArrayStart(4) } else { - yynn508 = 0 - for _, b := range yyq508 { + yynn537 = 0 + for _, b := range yyq537 { if b { - yynn508++ + yynn537++ } } - r.EncodeMapStart(yynn508) - yynn508 = 0 + r.EncodeMapStart(yynn537) + yynn537 = 0 } - if yyr508 || yy2arr508 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq508[0] { + if yyq537[0] { if x.AccessModes == nil { r.EncodeNil() } else { - yym510 := z.EncBinary() - _ = yym510 + yym539 := z.EncBinary() + _ = yym539 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -8198,15 +8774,15 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq508[0] { + if yyq537[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { - yym511 := z.EncBinary() - _ = yym511 + yym540 := z.EncBinary() + _ = yym540 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -8214,14 +8790,14 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr508 || yy2arr508 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq508[1] { + if yyq537[1] { if x.Selector == nil { r.EncodeNil() } else { - yym513 := z.EncBinary() - _ = yym513 + yym542 := z.EncBinary() + _ = yym542 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -8232,15 +8808,15 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq508[1] { + if yyq537[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym514 := z.EncBinary() - _ = yym514 + yym543 := z.EncBinary() + _ = yym543 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -8249,28 +8825,28 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr508 || yy2arr508 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq508[2] { - yy516 := &x.Resources - yy516.CodecEncodeSelf(e) + if yyq537[2] { + yy545 := &x.Resources + yy545.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq508[2] { + if yyq537[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy517 := &x.Resources - yy517.CodecEncodeSelf(e) + yy546 := &x.Resources + yy546.CodecEncodeSelf(e) } } - if yyr508 || yy2arr508 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq508[3] { - yym519 := z.EncBinary() - _ = yym519 + if yyq537[3] { + yym548 := z.EncBinary() + _ = yym548 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) @@ -8279,19 +8855,19 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq508[3] { + if yyq537[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym520 := z.EncBinary() - _ = yym520 + yym549 := z.EncBinary() + _ = yym549 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } } - if yyr508 || yy2arr508 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8304,25 +8880,25 @@ func (x *PersistentVolumeClaimSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym521 := z.DecBinary() - _ = yym521 + yym550 := z.DecBinary() + _ = yym550 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct522 := r.ContainerType() - if yyct522 == codecSelferValueTypeMap1234 { - yyl522 := r.ReadMapStart() - if yyl522 == 0 { + yyct551 := r.ContainerType() + if yyct551 == codecSelferValueTypeMap1234 { + yyl551 := r.ReadMapStart() + if yyl551 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl522, d) + x.codecDecodeSelfFromMap(yyl551, d) } - } else if yyct522 == codecSelferValueTypeArray1234 { - yyl522 := r.ReadArrayStart() - if yyl522 == 0 { + } else if yyct551 == codecSelferValueTypeArray1234 { + yyl551 := r.ReadArrayStart() + if yyl551 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl522, d) + x.codecDecodeSelfFromArray(yyl551, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8334,12 +8910,12 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys523Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys523Slc - var yyhl523 bool = l >= 0 - for yyj523 := 0; ; yyj523++ { - if yyhl523 { - if yyj523 >= l { + var yys552Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys552Slc + var yyhl552 bool = l >= 0 + for yyj552 := 0; ; yyj552++ { + if yyhl552 { + if yyj552 >= l { break } } else { @@ -8348,20 +8924,20 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys523Slc = r.DecodeBytes(yys523Slc, true, true) - yys523 := string(yys523Slc) + yys552Slc = r.DecodeBytes(yys552Slc, true, true) + yys552 := string(yys552Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys523 { + switch yys552 { case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv524 := &x.AccessModes - yym525 := z.DecBinary() - _ = yym525 + yyv553 := &x.AccessModes + yym554 := z.DecBinary() + _ = yym554 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv524), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv553), d) } } case "selector": @@ -8373,8 +8949,8 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } - yym527 := z.DecBinary() - _ = yym527 + yym556 := z.DecBinary() + _ = yym556 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -8385,8 +8961,8 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv528 := &x.Resources - yyv528.CodecDecodeSelf(d) + yyv557 := &x.Resources + yyv557.CodecDecodeSelf(d) } case "volumeName": if r.TryDecodeAsNil() { @@ -8395,9 +8971,9 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D x.VolumeName = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys523) - } // end switch yys523 - } // end for yyj523 + z.DecStructFieldNotFound(-1, yys552) + } // end switch yys552 + } // end for yyj552 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8405,16 +8981,16 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj530 int - var yyb530 bool - var yyhl530 bool = l >= 0 - yyj530++ - if yyhl530 { - yyb530 = yyj530 > l + var yyj559 int + var yyb559 bool + var yyhl559 bool = l >= 0 + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb530 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb530 { + if yyb559 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8422,21 +8998,21 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv531 := &x.AccessModes - yym532 := z.DecBinary() - _ = yym532 + yyv560 := &x.AccessModes + yym561 := z.DecBinary() + _ = yym561 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv531), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv560), d) } } - yyj530++ - if yyhl530 { - yyb530 = yyj530 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb530 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb530 { + if yyb559 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8449,21 +9025,21 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } - yym534 := z.DecBinary() - _ = yym534 + yym563 := z.DecBinary() + _ = yym563 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj530++ - if yyhl530 { - yyb530 = yyj530 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb530 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb530 { + if yyb559 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8471,16 +9047,16 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv535 := &x.Resources - yyv535.CodecDecodeSelf(d) + yyv564 := &x.Resources + yyv564.CodecDecodeSelf(d) } - yyj530++ - if yyhl530 { - yyb530 = yyj530 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb530 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb530 { + if yyb559 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8491,17 +9067,17 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 x.VolumeName = string(r.DecodeString()) } for { - yyj530++ - if yyhl530 { - yyb530 = yyj530 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb530 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb530 { + if yyb559 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj530-1, "") + z.DecStructFieldNotFound(yyj559-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8513,55 +9089,55 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym537 := z.EncBinary() - _ = yym537 + yym566 := z.EncBinary() + _ = yym566 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep538 := !z.EncBinary() - yy2arr538 := z.EncBasicHandle().StructToArray - var yyq538 [3]bool - _, _, _ = yysep538, yyq538, yy2arr538 - const yyr538 bool = false - yyq538[0] = x.Phase != "" - yyq538[1] = len(x.AccessModes) != 0 - yyq538[2] = len(x.Capacity) != 0 - var yynn538 int - if yyr538 || yy2arr538 { + yysep567 := !z.EncBinary() + yy2arr567 := z.EncBasicHandle().StructToArray + var yyq567 [3]bool + _, _, _ = yysep567, yyq567, yy2arr567 + const yyr567 bool = false + yyq567[0] = x.Phase != "" + yyq567[1] = len(x.AccessModes) != 0 + yyq567[2] = len(x.Capacity) != 0 + var yynn567 int + if yyr567 || yy2arr567 { r.EncodeArrayStart(3) } else { - yynn538 = 0 - for _, b := range yyq538 { + yynn567 = 0 + for _, b := range yyq567 { if b { - yynn538++ + yynn567++ } } - r.EncodeMapStart(yynn538) - yynn538 = 0 + r.EncodeMapStart(yynn567) + yynn567 = 0 } - if yyr538 || yy2arr538 { + if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq538[0] { + if yyq567[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq538[0] { + if yyq567[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr538 || yy2arr538 { + if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq538[1] { + if yyq567[1] { if x.AccessModes == nil { r.EncodeNil() } else { - yym541 := z.EncBinary() - _ = yym541 + yym570 := z.EncBinary() + _ = yym570 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -8571,15 +9147,15 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq538[1] { + if yyq567[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { - yym542 := z.EncBinary() - _ = yym542 + yym571 := z.EncBinary() + _ = yym571 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -8587,9 +9163,9 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr538 || yy2arr538 { + if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq538[2] { + if yyq567[2] { if x.Capacity == nil { r.EncodeNil() } else { @@ -8599,7 +9175,7 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq538[2] { + if yyq567[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -8610,7 +9186,7 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr538 || yy2arr538 { + if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8623,25 +9199,25 @@ func (x *PersistentVolumeClaimStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym544 := z.DecBinary() - _ = yym544 + yym573 := z.DecBinary() + _ = yym573 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct545 := r.ContainerType() - if yyct545 == codecSelferValueTypeMap1234 { - yyl545 := r.ReadMapStart() - if yyl545 == 0 { + yyct574 := r.ContainerType() + if yyct574 == codecSelferValueTypeMap1234 { + yyl574 := r.ReadMapStart() + if yyl574 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl545, d) + x.codecDecodeSelfFromMap(yyl574, d) } - } else if yyct545 == codecSelferValueTypeArray1234 { - yyl545 := r.ReadArrayStart() - if yyl545 == 0 { + } else if yyct574 == codecSelferValueTypeArray1234 { + yyl574 := r.ReadArrayStart() + if yyl574 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl545, d) + x.codecDecodeSelfFromArray(yyl574, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8653,12 +9229,12 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys546Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys546Slc - var yyhl546 bool = l >= 0 - for yyj546 := 0; ; yyj546++ { - if yyhl546 { - if yyj546 >= l { + var yys575Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys575Slc + var yyhl575 bool = l >= 0 + for yyj575 := 0; ; yyj575++ { + if yyhl575 { + if yyj575 >= l { break } } else { @@ -8667,10 +9243,10 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys546Slc = r.DecodeBytes(yys546Slc, true, true) - yys546 := string(yys546Slc) + yys575Slc = r.DecodeBytes(yys575Slc, true, true) + yys575 := string(yys575Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys546 { + switch yys575 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -8681,467 +9257,29 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978 if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv548 := &x.AccessModes - yym549 := z.DecBinary() - _ = yym549 + yyv577 := &x.AccessModes + yym578 := z.DecBinary() + _ = yym578 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv548), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv577), d) } } case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv550 := &x.Capacity - yyv550.CodecDecodeSelf(d) + yyv579 := &x.Capacity + yyv579.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys546) - } // end switch yys546 - } // end for yyj546 + z.DecStructFieldNotFound(-1, yys575) + } // end switch yys575 + } // end for yyj575 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj551 int - var yyb551 bool - var yyhl551 bool = l >= 0 - yyj551++ - if yyhl551 { - yyb551 = yyj551 > l - } else { - yyb551 = r.CheckBreak() - } - if yyb551 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) - } - yyj551++ - if yyhl551 { - yyb551 = yyj551 > l - } else { - yyb551 = r.CheckBreak() - } - if yyb551 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AccessModes = nil - } else { - yyv553 := &x.AccessModes - yym554 := z.DecBinary() - _ = yym554 - if false { - } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv553), d) - } - } - yyj551++ - if yyhl551 { - yyb551 = yyj551 > l - } else { - yyb551 = r.CheckBreak() - } - if yyb551 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Capacity = nil - } else { - yyv555 := &x.Capacity - yyv555.CodecDecodeSelf(d) - } - for { - yyj551++ - if yyhl551 { - yyb551 = yyj551 > l - } else { - yyb551 = r.CheckBreak() - } - if yyb551 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj551-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym556 := z.EncBinary() - _ = yym556 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *PersistentVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym557 := z.DecBinary() - _ = yym557 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x PersistentVolumePhase) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym558 := z.EncBinary() - _ = yym558 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *PersistentVolumePhase) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym559 := z.DecBinary() - _ = yym559 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x PersistentVolumeClaimPhase) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym560 := z.EncBinary() - _ = yym560 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *PersistentVolumeClaimPhase) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym561 := z.DecBinary() - _ = yym561 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym562 := z.EncBinary() - _ = yym562 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep563 := !z.EncBinary() - yy2arr563 := z.EncBasicHandle().StructToArray - var yyq563 [1]bool - _, _, _ = yysep563, yyq563, yy2arr563 - const yyr563 bool = false - var yynn563 int - if yyr563 || yy2arr563 { - r.EncodeArrayStart(1) - } else { - yynn563 = 1 - for _, b := range yyq563 { - if b { - yynn563++ - } - } - r.EncodeMapStart(yynn563) - yynn563 = 0 - } - if yyr563 || yy2arr563 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym565 := z.EncBinary() - _ = yym565 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("path")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym566 := z.EncBinary() - _ = yym566 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - if yyr563 || yy2arr563 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *HostPathVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym567 := z.DecBinary() - _ = yym567 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct568 := r.ContainerType() - if yyct568 == codecSelferValueTypeMap1234 { - yyl568 := r.ReadMapStart() - if yyl568 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl568, d) - } - } else if yyct568 == codecSelferValueTypeArray1234 { - yyl568 := r.ReadArrayStart() - if yyl568 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl568, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys569Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys569Slc - var yyhl569 bool = l >= 0 - for yyj569 := 0; ; yyj569++ { - if yyhl569 { - if yyj569 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys569Slc = r.DecodeBytes(yys569Slc, true, true) - yys569 := string(yys569Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys569 { - case "path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys569) - } // end switch yys569 - } // end for yyj569 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj571 int - var yyb571 bool - var yyhl571 bool = l >= 0 - yyj571++ - if yyhl571 { - yyb571 = yyj571 > l - } else { - yyb571 = r.CheckBreak() - } - if yyb571 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - for { - yyj571++ - if yyhl571 { - yyb571 = yyj571 > l - } else { - yyb571 = r.CheckBreak() - } - if yyb571 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj571-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EmptyDirVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym573 := z.EncBinary() - _ = yym573 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep574 := !z.EncBinary() - yy2arr574 := z.EncBasicHandle().StructToArray - var yyq574 [1]bool - _, _, _ = yysep574, yyq574, yy2arr574 - const yyr574 bool = false - yyq574[0] = x.Medium != "" - var yynn574 int - if yyr574 || yy2arr574 { - r.EncodeArrayStart(1) - } else { - yynn574 = 0 - for _, b := range yyq574 { - if b { - yynn574++ - } - } - r.EncodeMapStart(yynn574) - yynn574 = 0 - } - if yyr574 || yy2arr574 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq574[0] { - x.Medium.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq574[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("medium")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Medium.CodecEncodeSelf(e) - } - } - if yyr574 || yy2arr574 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EmptyDirVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym576 := z.DecBinary() - _ = yym576 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct577 := r.ContainerType() - if yyct577 == codecSelferValueTypeMap1234 { - yyl577 := r.ReadMapStart() - if yyl577 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl577, d) - } - } else if yyct577 == codecSelferValueTypeArray1234 { - yyl577 := r.ReadArrayStart() - if yyl577 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl577, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys578Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys578Slc - var yyhl578 bool = l >= 0 - for yyj578 := 0; ; yyj578++ { - if yyhl578 { - if yyj578 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys578Slc = r.DecodeBytes(yys578Slc, true, true) - yys578 := string(yys578Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys578 { - case "medium": - if r.TryDecodeAsNil() { - x.Medium = "" - } else { - x.Medium = StorageMedium(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys578) - } // end switch yys578 - } // end for yyj578 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -9160,9 +9298,48 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Medium = "" + x.Phase = "" } else { - x.Medium = StorageMedium(r.DecodeString()) + x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) + } + yyj580++ + if yyhl580 { + yyb580 = yyj580 > l + } else { + yyb580 = r.CheckBreak() + } + if yyb580 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AccessModes = nil + } else { + yyv582 := &x.AccessModes + yym583 := z.DecBinary() + _ = yym583 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv582), d) + } + } + yyj580++ + if yyhl580 { + yyb580 = yyj580 > l + } else { + yyb580 = r.CheckBreak() + } + if yyb580 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv584 := &x.Capacity + yyv584.CodecDecodeSelf(d) } for { yyj580++ @@ -9180,12 +9357,411 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } +func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym585 := z.EncBinary() + _ = yym585 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PersistentVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym586 := z.DecBinary() + _ = yym586 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x PersistentVolumePhase) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym587 := z.EncBinary() + _ = yym587 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PersistentVolumePhase) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym588 := z.DecBinary() + _ = yym588 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x PersistentVolumeClaimPhase) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym589 := z.EncBinary() + _ = yym589 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PersistentVolumeClaimPhase) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym590 := z.DecBinary() + _ = yym590 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym591 := z.EncBinary() + _ = yym591 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep592 := !z.EncBinary() + yy2arr592 := z.EncBasicHandle().StructToArray + var yyq592 [1]bool + _, _, _ = yysep592, yyq592, yy2arr592 + const yyr592 bool = false + var yynn592 int + if yyr592 || yy2arr592 { + r.EncodeArrayStart(1) + } else { + yynn592 = 1 + for _, b := range yyq592 { + if b { + yynn592++ + } + } + r.EncodeMapStart(yynn592) + yynn592 = 0 + } + if yyr592 || yy2arr592 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym594 := z.EncBinary() + _ = yym594 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("path")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym595 := z.EncBinary() + _ = yym595 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr592 || yy2arr592 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *HostPathVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym596 := z.DecBinary() + _ = yym596 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct597 := r.ContainerType() + if yyct597 == codecSelferValueTypeMap1234 { + yyl597 := r.ReadMapStart() + if yyl597 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl597, d) + } + } else if yyct597 == codecSelferValueTypeArray1234 { + yyl597 := r.ReadArrayStart() + if yyl597 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl597, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys598Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys598Slc + var yyhl598 bool = l >= 0 + for yyj598 := 0; ; yyj598++ { + if yyhl598 { + if yyj598 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys598Slc = r.DecodeBytes(yys598Slc, true, true) + yys598 := string(yys598Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys598 { + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys598) + } // end switch yys598 + } // end for yyj598 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj600 int + var yyb600 bool + var yyhl600 bool = l >= 0 + yyj600++ + if yyhl600 { + yyb600 = yyj600 > l + } else { + yyb600 = r.CheckBreak() + } + if yyb600 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + for { + yyj600++ + if yyhl600 { + yyb600 = yyj600 > l + } else { + yyb600 = r.CheckBreak() + } + if yyb600 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj600-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *EmptyDirVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym602 := z.EncBinary() + _ = yym602 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep603 := !z.EncBinary() + yy2arr603 := z.EncBasicHandle().StructToArray + var yyq603 [1]bool + _, _, _ = yysep603, yyq603, yy2arr603 + const yyr603 bool = false + yyq603[0] = x.Medium != "" + var yynn603 int + if yyr603 || yy2arr603 { + r.EncodeArrayStart(1) + } else { + yynn603 = 0 + for _, b := range yyq603 { + if b { + yynn603++ + } + } + r.EncodeMapStart(yynn603) + yynn603 = 0 + } + if yyr603 || yy2arr603 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq603[0] { + x.Medium.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq603[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("medium")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Medium.CodecEncodeSelf(e) + } + } + if yyr603 || yy2arr603 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *EmptyDirVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym605 := z.DecBinary() + _ = yym605 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct606 := r.ContainerType() + if yyct606 == codecSelferValueTypeMap1234 { + yyl606 := r.ReadMapStart() + if yyl606 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl606, d) + } + } else if yyct606 == codecSelferValueTypeArray1234 { + yyl606 := r.ReadArrayStart() + if yyl606 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl606, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys607Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys607Slc + var yyhl607 bool = l >= 0 + for yyj607 := 0; ; yyj607++ { + if yyhl607 { + if yyj607 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys607Slc = r.DecodeBytes(yys607Slc, true, true) + yys607 := string(yys607Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys607 { + case "medium": + if r.TryDecodeAsNil() { + x.Medium = "" + } else { + x.Medium = StorageMedium(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys607) + } // end switch yys607 + } // end for yyj607 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj609 int + var yyb609 bool + var yyhl609 bool = l >= 0 + yyj609++ + if yyhl609 { + yyb609 = yyj609 > l + } else { + yyb609 = r.CheckBreak() + } + if yyb609 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Medium = "" + } else { + x.Medium = StorageMedium(r.DecodeString()) + } + for { + yyj609++ + if yyhl609 { + yyb609 = yyj609 > l + } else { + yyb609 = r.CheckBreak() + } + if yyb609 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj609-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym582 := z.EncBinary() - _ = yym582 + yym611 := z.EncBinary() + _ = yym611 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -9197,8 +9773,8 @@ func (x *StorageMedium) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym583 := z.DecBinary() - _ = yym583 + yym612 := z.DecBinary() + _ = yym612 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -9210,8 +9786,8 @@ func (x Protocol) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym584 := z.EncBinary() - _ = yym584 + yym613 := z.EncBinary() + _ = yym613 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -9223,8 +9799,8 @@ func (x *Protocol) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym585 := z.DecBinary() - _ = yym585 + yym614 := z.DecBinary() + _ = yym614 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -9239,36 +9815,36 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym586 := z.EncBinary() - _ = yym586 + yym615 := z.EncBinary() + _ = yym615 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep587 := !z.EncBinary() - yy2arr587 := z.EncBasicHandle().StructToArray - var yyq587 [4]bool - _, _, _ = yysep587, yyq587, yy2arr587 - const yyr587 bool = false - yyq587[1] = x.FSType != "" - yyq587[2] = x.Partition != 0 - yyq587[3] = x.ReadOnly != false - var yynn587 int - if yyr587 || yy2arr587 { + yysep616 := !z.EncBinary() + yy2arr616 := z.EncBasicHandle().StructToArray + var yyq616 [4]bool + _, _, _ = yysep616, yyq616, yy2arr616 + const yyr616 bool = false + yyq616[1] = x.FSType != "" + yyq616[2] = x.Partition != 0 + yyq616[3] = x.ReadOnly != false + var yynn616 int + if yyr616 || yy2arr616 { r.EncodeArrayStart(4) } else { - yynn587 = 1 - for _, b := range yyq587 { + yynn616 = 1 + for _, b := range yyq616 { if b { - yynn587++ + yynn616++ } } - r.EncodeMapStart(yynn587) - yynn587 = 0 + r.EncodeMapStart(yynn616) + yynn616 = 0 } - if yyr587 || yy2arr587 { + if yyr616 || yy2arr616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym589 := z.EncBinary() - _ = yym589 + yym618 := z.EncBinary() + _ = yym618 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) @@ -9277,18 +9853,18 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pdName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym590 := z.EncBinary() - _ = yym590 + yym619 := z.EncBinary() + _ = yym619 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) } } - if yyr587 || yy2arr587 { + if yyr616 || yy2arr616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq587[1] { - yym592 := z.EncBinary() - _ = yym592 + if yyq616[1] { + yym621 := z.EncBinary() + _ = yym621 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -9297,23 +9873,23 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq587[1] { + if yyq616[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym593 := z.EncBinary() - _ = yym593 + yym622 := z.EncBinary() + _ = yym622 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr587 || yy2arr587 { + if yyr616 || yy2arr616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq587[2] { - yym595 := z.EncBinary() - _ = yym595 + if yyq616[2] { + yym624 := z.EncBinary() + _ = yym624 if false { } else { r.EncodeInt(int64(x.Partition)) @@ -9322,23 +9898,23 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq587[2] { + if yyq616[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym596 := z.EncBinary() - _ = yym596 + yym625 := z.EncBinary() + _ = yym625 if false { } else { r.EncodeInt(int64(x.Partition)) } } } - if yyr587 || yy2arr587 { + if yyr616 || yy2arr616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq587[3] { - yym598 := z.EncBinary() - _ = yym598 + if yyq616[3] { + yym627 := z.EncBinary() + _ = yym627 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -9347,19 +9923,19 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq587[3] { + if yyq616[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym599 := z.EncBinary() - _ = yym599 + yym628 := z.EncBinary() + _ = yym628 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr587 || yy2arr587 { + if yyr616 || yy2arr616 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9372,25 +9948,25 @@ func (x *GCEPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym600 := z.DecBinary() - _ = yym600 + yym629 := z.DecBinary() + _ = yym629 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct601 := r.ContainerType() - if yyct601 == codecSelferValueTypeMap1234 { - yyl601 := r.ReadMapStart() - if yyl601 == 0 { + yyct630 := r.ContainerType() + if yyct630 == codecSelferValueTypeMap1234 { + yyl630 := r.ReadMapStart() + if yyl630 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl601, d) + x.codecDecodeSelfFromMap(yyl630, d) } - } else if yyct601 == codecSelferValueTypeArray1234 { - yyl601 := r.ReadArrayStart() - if yyl601 == 0 { + } else if yyct630 == codecSelferValueTypeArray1234 { + yyl630 := r.ReadArrayStart() + if yyl630 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl601, d) + x.codecDecodeSelfFromArray(yyl630, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9402,12 +9978,12 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys602Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys602Slc - var yyhl602 bool = l >= 0 - for yyj602 := 0; ; yyj602++ { - if yyhl602 { - if yyj602 >= l { + var yys631Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys631Slc + var yyhl631 bool = l >= 0 + for yyj631 := 0; ; yyj631++ { + if yyhl631 { + if yyj631 >= l { break } } else { @@ -9416,10 +9992,10 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec19 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys602Slc = r.DecodeBytes(yys602Slc, true, true) - yys602 := string(yys602Slc) + yys631Slc = r.DecodeBytes(yys631Slc, true, true) + yys631 := string(yys631Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys602 { + switch yys631 { case "pdName": if r.TryDecodeAsNil() { x.PDName = "" @@ -9445,9 +10021,9 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec19 x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys602) - } // end switch yys602 - } // end for yyj602 + z.DecStructFieldNotFound(-1, yys631) + } // end switch yys631 + } // end for yyj631 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9455,16 +10031,16 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj607 int - var yyb607 bool - var yyhl607 bool = l >= 0 - yyj607++ - if yyhl607 { - yyb607 = yyj607 > l + var yyj636 int + var yyb636 bool + var yyhl636 bool = l >= 0 + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb607 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb607 { + if yyb636 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9474,13 +10050,13 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec } else { x.PDName = string(r.DecodeString()) } - yyj607++ - if yyhl607 { - yyb607 = yyj607 > l + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb607 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb607 { + if yyb636 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9490,13 +10066,13 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec } else { x.FSType = string(r.DecodeString()) } - yyj607++ - if yyhl607 { - yyb607 = yyj607 > l + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb607 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb607 { + if yyb636 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9506,13 +10082,13 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec } else { x.Partition = int32(r.DecodeInt(32)) } - yyj607++ - if yyhl607 { - yyb607 = yyj607 > l + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb607 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb607 { + if yyb636 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9523,17 +10099,17 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec x.ReadOnly = bool(r.DecodeBool()) } for { - yyj607++ - if yyhl607 { - yyb607 = yyj607 > l + yyj636++ + if yyhl636 { + yyb636 = yyj636 > l } else { - yyb607 = r.CheckBreak() + yyb636 = r.CheckBreak() } - if yyb607 { + if yyb636 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj607-1, "") + z.DecStructFieldNotFound(yyj636-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9545,40 +10121,40 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym612 := z.EncBinary() - _ = yym612 + yym641 := z.EncBinary() + _ = yym641 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep613 := !z.EncBinary() - yy2arr613 := z.EncBasicHandle().StructToArray - var yyq613 [6]bool - _, _, _ = yysep613, yyq613, yy2arr613 - const yyr613 bool = false - yyq613[0] = x.TargetPortal != "" - yyq613[1] = x.IQN != "" - yyq613[2] = x.Lun != 0 - yyq613[3] = x.ISCSIInterface != "" - yyq613[4] = x.FSType != "" - yyq613[5] = x.ReadOnly != false - var yynn613 int - if yyr613 || yy2arr613 { + yysep642 := !z.EncBinary() + yy2arr642 := z.EncBasicHandle().StructToArray + var yyq642 [6]bool + _, _, _ = yysep642, yyq642, yy2arr642 + const yyr642 bool = false + yyq642[0] = x.TargetPortal != "" + yyq642[1] = x.IQN != "" + yyq642[2] = x.Lun != 0 + yyq642[3] = x.ISCSIInterface != "" + yyq642[4] = x.FSType != "" + yyq642[5] = x.ReadOnly != false + var yynn642 int + if yyr642 || yy2arr642 { r.EncodeArrayStart(6) } else { - yynn613 = 0 - for _, b := range yyq613 { + yynn642 = 0 + for _, b := range yyq642 { if b { - yynn613++ + yynn642++ } } - r.EncodeMapStart(yynn613) - yynn613 = 0 + r.EncodeMapStart(yynn642) + yynn642 = 0 } - if yyr613 || yy2arr613 { + if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq613[0] { - yym615 := z.EncBinary() - _ = yym615 + if yyq642[0] { + yym644 := z.EncBinary() + _ = yym644 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) @@ -9587,23 +10163,23 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq613[0] { + if yyq642[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPortal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym616 := z.EncBinary() - _ = yym616 + yym645 := z.EncBinary() + _ = yym645 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } } - if yyr613 || yy2arr613 { + if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq613[1] { - yym618 := z.EncBinary() - _ = yym618 + if yyq642[1] { + yym647 := z.EncBinary() + _ = yym647 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) @@ -9612,23 +10188,23 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq613[1] { + if yyq642[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iqn")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym619 := z.EncBinary() - _ = yym619 + yym648 := z.EncBinary() + _ = yym648 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } } - if yyr613 || yy2arr613 { + if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq613[2] { - yym621 := z.EncBinary() - _ = yym621 + if yyq642[2] { + yym650 := z.EncBinary() + _ = yym650 if false { } else { r.EncodeInt(int64(x.Lun)) @@ -9637,23 +10213,23 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq613[2] { + if yyq642[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym622 := z.EncBinary() - _ = yym622 + yym651 := z.EncBinary() + _ = yym651 if false { } else { r.EncodeInt(int64(x.Lun)) } } } - if yyr613 || yy2arr613 { + if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq613[3] { - yym624 := z.EncBinary() - _ = yym624 + if yyq642[3] { + yym653 := z.EncBinary() + _ = yym653 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) @@ -9662,23 +10238,23 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq613[3] { + if yyq642[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym625 := z.EncBinary() - _ = yym625 + yym654 := z.EncBinary() + _ = yym654 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) } } } - if yyr613 || yy2arr613 { + if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq613[4] { - yym627 := z.EncBinary() - _ = yym627 + if yyq642[4] { + yym656 := z.EncBinary() + _ = yym656 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -9687,23 +10263,23 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq613[4] { + if yyq642[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym628 := z.EncBinary() - _ = yym628 + yym657 := z.EncBinary() + _ = yym657 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr613 || yy2arr613 { + if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq613[5] { - yym630 := z.EncBinary() - _ = yym630 + if yyq642[5] { + yym659 := z.EncBinary() + _ = yym659 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -9712,19 +10288,19 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq613[5] { + if yyq642[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym631 := z.EncBinary() - _ = yym631 + yym660 := z.EncBinary() + _ = yym660 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr613 || yy2arr613 { + if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9737,25 +10313,25 @@ func (x *ISCSIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym632 := z.DecBinary() - _ = yym632 + yym661 := z.DecBinary() + _ = yym661 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct633 := r.ContainerType() - if yyct633 == codecSelferValueTypeMap1234 { - yyl633 := r.ReadMapStart() - if yyl633 == 0 { + yyct662 := r.ContainerType() + if yyct662 == codecSelferValueTypeMap1234 { + yyl662 := r.ReadMapStart() + if yyl662 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl633, d) + x.codecDecodeSelfFromMap(yyl662, d) } - } else if yyct633 == codecSelferValueTypeArray1234 { - yyl633 := r.ReadArrayStart() - if yyl633 == 0 { + } else if yyct662 == codecSelferValueTypeArray1234 { + yyl662 := r.ReadArrayStart() + if yyl662 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl633, d) + x.codecDecodeSelfFromArray(yyl662, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9767,12 +10343,12 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys634Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys634Slc - var yyhl634 bool = l >= 0 - for yyj634 := 0; ; yyj634++ { - if yyhl634 { - if yyj634 >= l { + var yys663Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys663Slc + var yyhl663 bool = l >= 0 + for yyj663 := 0; ; yyj663++ { + if yyhl663 { + if yyj663 >= l { break } } else { @@ -9781,10 +10357,10 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys634Slc = r.DecodeBytes(yys634Slc, true, true) - yys634 := string(yys634Slc) + yys663Slc = r.DecodeBytes(yys663Slc, true, true) + yys663 := string(yys663Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys634 { + switch yys663 { case "targetPortal": if r.TryDecodeAsNil() { x.TargetPortal = "" @@ -9822,9 +10398,9 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys634) - } // end switch yys634 - } // end for yyj634 + z.DecStructFieldNotFound(-1, yys663) + } // end switch yys663 + } // end for yyj663 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9832,16 +10408,16 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj641 int - var yyb641 bool - var yyhl641 bool = l >= 0 - yyj641++ - if yyhl641 { - yyb641 = yyj641 > l + var yyj670 int + var yyb670 bool + var yyhl670 bool = l >= 0 + yyj670++ + if yyhl670 { + yyb670 = yyj670 > l } else { - yyb641 = r.CheckBreak() + yyb670 = r.CheckBreak() } - if yyb641 { + if yyb670 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9851,13 +10427,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.TargetPortal = string(r.DecodeString()) } - yyj641++ - if yyhl641 { - yyb641 = yyj641 > l + yyj670++ + if yyhl670 { + yyb670 = yyj670 > l } else { - yyb641 = r.CheckBreak() + yyb670 = r.CheckBreak() } - if yyb641 { + if yyb670 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9867,13 +10443,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.IQN = string(r.DecodeString()) } - yyj641++ - if yyhl641 { - yyb641 = yyj641 > l + yyj670++ + if yyhl670 { + yyb670 = yyj670 > l } else { - yyb641 = r.CheckBreak() + yyb670 = r.CheckBreak() } - if yyb641 { + if yyb670 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9883,13 +10459,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Lun = int32(r.DecodeInt(32)) } - yyj641++ - if yyhl641 { - yyb641 = yyj641 > l + yyj670++ + if yyhl670 { + yyb670 = yyj670 > l } else { - yyb641 = r.CheckBreak() + yyb670 = r.CheckBreak() } - if yyb641 { + if yyb670 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9899,13 +10475,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.ISCSIInterface = string(r.DecodeString()) } - yyj641++ - if yyhl641 { - yyb641 = yyj641 > l + yyj670++ + if yyhl670 { + yyb670 = yyj670 > l } else { - yyb641 = r.CheckBreak() + yyb670 = r.CheckBreak() } - if yyb641 { + if yyb670 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9915,13 +10491,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.FSType = string(r.DecodeString()) } - yyj641++ - if yyhl641 { - yyb641 = yyj641 > l + yyj670++ + if yyhl670 { + yyb670 = yyj670 > l } else { - yyb641 = r.CheckBreak() + yyb670 = r.CheckBreak() } - if yyb641 { + if yyb670 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9932,17 +10508,17 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder x.ReadOnly = bool(r.DecodeBool()) } for { - yyj641++ - if yyhl641 { - yyb641 = yyj641 > l + yyj670++ + if yyhl670 { + yyb670 = yyj670 > l } else { - yyb641 = r.CheckBreak() + yyb670 = r.CheckBreak() } - if yyb641 { + if yyb670 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj641-1, "") + z.DecStructFieldNotFound(yyj670-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9954,38 +10530,38 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym648 := z.EncBinary() - _ = yym648 + yym677 := z.EncBinary() + _ = yym677 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep649 := !z.EncBinary() - yy2arr649 := z.EncBasicHandle().StructToArray - var yyq649 [4]bool - _, _, _ = yysep649, yyq649, yy2arr649 - const yyr649 bool = false - yyq649[2] = x.FSType != "" - yyq649[3] = x.ReadOnly != false - var yynn649 int - if yyr649 || yy2arr649 { + yysep678 := !z.EncBinary() + yy2arr678 := z.EncBasicHandle().StructToArray + var yyq678 [4]bool + _, _, _ = yysep678, yyq678, yy2arr678 + const yyr678 bool = false + yyq678[2] = x.FSType != "" + yyq678[3] = x.ReadOnly != false + var yynn678 int + if yyr678 || yy2arr678 { r.EncodeArrayStart(4) } else { - yynn649 = 2 - for _, b := range yyq649 { + yynn678 = 2 + for _, b := range yyq678 { if b { - yynn649++ + yynn678++ } } - r.EncodeMapStart(yynn649) - yynn649 = 0 + r.EncodeMapStart(yynn678) + yynn678 = 0 } - if yyr649 || yy2arr649 { + if yyr678 || yy2arr678 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetWWNs == nil { r.EncodeNil() } else { - yym651 := z.EncBinary() - _ = yym651 + yym680 := z.EncBinary() + _ = yym680 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) @@ -9998,25 +10574,25 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.TargetWWNs == nil { r.EncodeNil() } else { - yym652 := z.EncBinary() - _ = yym652 + yym681 := z.EncBinary() + _ = yym681 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) } } } - if yyr649 || yy2arr649 { + if yyr678 || yy2arr678 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Lun == nil { r.EncodeNil() } else { - yy654 := *x.Lun - yym655 := z.EncBinary() - _ = yym655 + yy683 := *x.Lun + yym684 := z.EncBinary() + _ = yym684 if false { } else { - r.EncodeInt(int64(yy654)) + r.EncodeInt(int64(yy683)) } } } else { @@ -10026,20 +10602,20 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.Lun == nil { r.EncodeNil() } else { - yy656 := *x.Lun - yym657 := z.EncBinary() - _ = yym657 + yy685 := *x.Lun + yym686 := z.EncBinary() + _ = yym686 if false { } else { - r.EncodeInt(int64(yy656)) + r.EncodeInt(int64(yy685)) } } } - if yyr649 || yy2arr649 { + if yyr678 || yy2arr678 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq649[2] { - yym659 := z.EncBinary() - _ = yym659 + if yyq678[2] { + yym688 := z.EncBinary() + _ = yym688 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -10048,23 +10624,23 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq649[2] { + if yyq678[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym660 := z.EncBinary() - _ = yym660 + yym689 := z.EncBinary() + _ = yym689 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr649 || yy2arr649 { + if yyr678 || yy2arr678 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq649[3] { - yym662 := z.EncBinary() - _ = yym662 + if yyq678[3] { + yym691 := z.EncBinary() + _ = yym691 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -10073,19 +10649,19 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq649[3] { + if yyq678[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym663 := z.EncBinary() - _ = yym663 + yym692 := z.EncBinary() + _ = yym692 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr649 || yy2arr649 { + if yyr678 || yy2arr678 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10098,25 +10674,25 @@ func (x *FCVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym664 := z.DecBinary() - _ = yym664 + yym693 := z.DecBinary() + _ = yym693 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct665 := r.ContainerType() - if yyct665 == codecSelferValueTypeMap1234 { - yyl665 := r.ReadMapStart() - if yyl665 == 0 { + yyct694 := r.ContainerType() + if yyct694 == codecSelferValueTypeMap1234 { + yyl694 := r.ReadMapStart() + if yyl694 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl665, d) + x.codecDecodeSelfFromMap(yyl694, d) } - } else if yyct665 == codecSelferValueTypeArray1234 { - yyl665 := r.ReadArrayStart() - if yyl665 == 0 { + } else if yyct694 == codecSelferValueTypeArray1234 { + yyl694 := r.ReadArrayStart() + if yyl694 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl665, d) + x.codecDecodeSelfFromArray(yyl694, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10128,12 +10704,12 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys666Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys666Slc - var yyhl666 bool = l >= 0 - for yyj666 := 0; ; yyj666++ { - if yyhl666 { - if yyj666 >= l { + var yys695Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys695Slc + var yyhl695 bool = l >= 0 + for yyj695 := 0; ; yyj695++ { + if yyhl695 { + if yyj695 >= l { break } } else { @@ -10142,20 +10718,20 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys666Slc = r.DecodeBytes(yys666Slc, true, true) - yys666 := string(yys666Slc) + yys695Slc = r.DecodeBytes(yys695Slc, true, true) + yys695 := string(yys695Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys666 { + switch yys695 { case "targetWWNs": if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { - yyv667 := &x.TargetWWNs - yym668 := z.DecBinary() - _ = yym668 + yyv696 := &x.TargetWWNs + yym697 := z.DecBinary() + _ = yym697 if false { } else { - z.F.DecSliceStringX(yyv667, false, d) + z.F.DecSliceStringX(yyv696, false, d) } } case "lun": @@ -10167,8 +10743,8 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Lun == nil { x.Lun = new(int32) } - yym670 := z.DecBinary() - _ = yym670 + yym699 := z.DecBinary() + _ = yym699 if false { } else { *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) @@ -10187,9 +10763,9 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys666) - } // end switch yys666 - } // end for yyj666 + z.DecStructFieldNotFound(-1, yys695) + } // end switch yys695 + } // end for yyj695 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10197,16 +10773,16 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj673 int - var yyb673 bool - var yyhl673 bool = l >= 0 - yyj673++ - if yyhl673 { - yyb673 = yyj673 > l + var yyj702 int + var yyb702 bool + var yyhl702 bool = l >= 0 + yyj702++ + if yyhl702 { + yyb702 = yyj702 > l } else { - yyb673 = r.CheckBreak() + yyb702 = r.CheckBreak() } - if yyb673 { + if yyb702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10214,21 +10790,21 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { - yyv674 := &x.TargetWWNs - yym675 := z.DecBinary() - _ = yym675 + yyv703 := &x.TargetWWNs + yym704 := z.DecBinary() + _ = yym704 if false { } else { - z.F.DecSliceStringX(yyv674, false, d) + z.F.DecSliceStringX(yyv703, false, d) } } - yyj673++ - if yyhl673 { - yyb673 = yyj673 > l + yyj702++ + if yyhl702 { + yyb702 = yyj702 > l } else { - yyb673 = r.CheckBreak() + yyb702 = r.CheckBreak() } - if yyb673 { + if yyb702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10241,20 +10817,20 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Lun == nil { x.Lun = new(int32) } - yym677 := z.DecBinary() - _ = yym677 + yym706 := z.DecBinary() + _ = yym706 if false { } else { *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) } } - yyj673++ - if yyhl673 { - yyb673 = yyj673 > l + yyj702++ + if yyhl702 { + yyb702 = yyj702 > l } else { - yyb673 = r.CheckBreak() + yyb702 = r.CheckBreak() } - if yyb673 { + if yyb702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10264,13 +10840,13 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.FSType = string(r.DecodeString()) } - yyj673++ - if yyhl673 { - yyb673 = yyj673 > l + yyj702++ + if yyhl702 { + yyb702 = yyj702 > l } else { - yyb673 = r.CheckBreak() + yyb702 = r.CheckBreak() } - if yyb673 { + if yyb702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10281,17 +10857,17 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } for { - yyj673++ - if yyhl673 { - yyb673 = yyj673 > l + yyj702++ + if yyhl702 { + yyb702 = yyj702 > l } else { - yyb673 = r.CheckBreak() + yyb702 = r.CheckBreak() } - if yyb673 { + if yyb702 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj673-1, "") + z.DecStructFieldNotFound(yyj702-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10303,37 +10879,37 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym680 := z.EncBinary() - _ = yym680 + yym709 := z.EncBinary() + _ = yym709 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep681 := !z.EncBinary() - yy2arr681 := z.EncBasicHandle().StructToArray - var yyq681 [5]bool - _, _, _ = yysep681, yyq681, yy2arr681 - const yyr681 bool = false - yyq681[1] = x.FSType != "" - yyq681[2] = x.SecretRef != nil - yyq681[3] = x.ReadOnly != false - yyq681[4] = len(x.Options) != 0 - var yynn681 int - if yyr681 || yy2arr681 { + yysep710 := !z.EncBinary() + yy2arr710 := z.EncBasicHandle().StructToArray + var yyq710 [5]bool + _, _, _ = yysep710, yyq710, yy2arr710 + const yyr710 bool = false + yyq710[1] = x.FSType != "" + yyq710[2] = x.SecretRef != nil + yyq710[3] = x.ReadOnly != false + yyq710[4] = len(x.Options) != 0 + var yynn710 int + if yyr710 || yy2arr710 { r.EncodeArrayStart(5) } else { - yynn681 = 1 - for _, b := range yyq681 { + yynn710 = 1 + for _, b := range yyq710 { if b { - yynn681++ + yynn710++ } } - r.EncodeMapStart(yynn681) - yynn681 = 0 + r.EncodeMapStart(yynn710) + yynn710 = 0 } - if yyr681 || yy2arr681 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym683 := z.EncBinary() - _ = yym683 + yym712 := z.EncBinary() + _ = yym712 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) @@ -10342,18 +10918,18 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("driver")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym684 := z.EncBinary() - _ = yym684 + yym713 := z.EncBinary() + _ = yym713 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) } } - if yyr681 || yy2arr681 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq681[1] { - yym686 := z.EncBinary() - _ = yym686 + if yyq710[1] { + yym715 := z.EncBinary() + _ = yym715 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -10362,21 +10938,21 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq681[1] { + if yyq710[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym687 := z.EncBinary() - _ = yym687 + yym716 := z.EncBinary() + _ = yym716 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr681 || yy2arr681 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq681[2] { + if yyq710[2] { if x.SecretRef == nil { r.EncodeNil() } else { @@ -10386,7 +10962,7 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq681[2] { + if yyq710[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -10397,11 +10973,11 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr681 || yy2arr681 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq681[3] { - yym690 := z.EncBinary() - _ = yym690 + if yyq710[3] { + yym719 := z.EncBinary() + _ = yym719 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -10410,26 +10986,26 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq681[3] { + if yyq710[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym691 := z.EncBinary() - _ = yym691 + yym720 := z.EncBinary() + _ = yym720 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr681 || yy2arr681 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq681[4] { + if yyq710[4] { if x.Options == nil { r.EncodeNil() } else { - yym693 := z.EncBinary() - _ = yym693 + yym722 := z.EncBinary() + _ = yym722 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) @@ -10439,15 +11015,15 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq681[4] { + if yyq710[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("options")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Options == nil { r.EncodeNil() } else { - yym694 := z.EncBinary() - _ = yym694 + yym723 := z.EncBinary() + _ = yym723 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) @@ -10455,7 +11031,7 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr681 || yy2arr681 { + if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10468,25 +11044,25 @@ func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym695 := z.DecBinary() - _ = yym695 + yym724 := z.DecBinary() + _ = yym724 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct696 := r.ContainerType() - if yyct696 == codecSelferValueTypeMap1234 { - yyl696 := r.ReadMapStart() - if yyl696 == 0 { + yyct725 := r.ContainerType() + if yyct725 == codecSelferValueTypeMap1234 { + yyl725 := r.ReadMapStart() + if yyl725 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl696, d) + x.codecDecodeSelfFromMap(yyl725, d) } - } else if yyct696 == codecSelferValueTypeArray1234 { - yyl696 := r.ReadArrayStart() - if yyl696 == 0 { + } else if yyct725 == codecSelferValueTypeArray1234 { + yyl725 := r.ReadArrayStart() + if yyl725 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl696, d) + x.codecDecodeSelfFromArray(yyl725, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10498,12 +11074,12 @@ func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys697Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys697Slc - var yyhl697 bool = l >= 0 - for yyj697 := 0; ; yyj697++ { - if yyhl697 { - if yyj697 >= l { + var yys726Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys726Slc + var yyhl726 bool = l >= 0 + for yyj726 := 0; ; yyj726++ { + if yyhl726 { + if yyj726 >= l { break } } else { @@ -10512,10 +11088,10 @@ func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys697Slc = r.DecodeBytes(yys697Slc, true, true) - yys697 := string(yys697Slc) + yys726Slc = r.DecodeBytes(yys726Slc, true, true) + yys726 := string(yys726Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys697 { + switch yys726 { case "driver": if r.TryDecodeAsNil() { x.Driver = "" @@ -10549,18 +11125,18 @@ func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Options = nil } else { - yyv702 := &x.Options - yym703 := z.DecBinary() - _ = yym703 + yyv731 := &x.Options + yym732 := z.DecBinary() + _ = yym732 if false { } else { - z.F.DecMapStringStringX(yyv702, false, d) + z.F.DecMapStringStringX(yyv731, false, d) } } default: - z.DecStructFieldNotFound(-1, yys697) - } // end switch yys697 - } // end for yyj697 + z.DecStructFieldNotFound(-1, yys726) + } // end switch yys726 + } // end for yyj726 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10568,16 +11144,16 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj704 int - var yyb704 bool - var yyhl704 bool = l >= 0 - yyj704++ - if yyhl704 { - yyb704 = yyj704 > l + var yyj733 int + var yyb733 bool + var yyhl733 bool = l >= 0 + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb704 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb704 { + if yyb733 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10587,13 +11163,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Driver = string(r.DecodeString()) } - yyj704++ - if yyhl704 { - yyb704 = yyj704 > l + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb704 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb704 { + if yyb733 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10603,13 +11179,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.FSType = string(r.DecodeString()) } - yyj704++ - if yyhl704 { - yyb704 = yyj704 > l + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb704 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb704 { + if yyb733 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10624,13 +11200,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SecretRef.CodecDecodeSelf(d) } - yyj704++ - if yyhl704 { - yyb704 = yyj704 > l + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb704 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb704 { + if yyb733 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10640,13 +11216,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ReadOnly = bool(r.DecodeBool()) } - yyj704++ - if yyhl704 { - yyb704 = yyj704 > l + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb704 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb704 { + if yyb733 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10654,26 +11230,26 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Options = nil } else { - yyv709 := &x.Options - yym710 := z.DecBinary() - _ = yym710 + yyv738 := &x.Options + yym739 := z.DecBinary() + _ = yym739 if false { } else { - z.F.DecMapStringStringX(yyv709, false, d) + z.F.DecMapStringStringX(yyv738, false, d) } } for { - yyj704++ - if yyhl704 { - yyb704 = yyj704 > l + yyj733++ + if yyhl733 { + yyb733 = yyj733 > l } else { - yyb704 = r.CheckBreak() + yyb733 = r.CheckBreak() } - if yyb704 { + if yyb733 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj704-1, "") + z.DecStructFieldNotFound(yyj733-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10685,36 +11261,36 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) if x == nil { r.EncodeNil() } else { - yym711 := z.EncBinary() - _ = yym711 + yym740 := z.EncBinary() + _ = yym740 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep712 := !z.EncBinary() - yy2arr712 := z.EncBasicHandle().StructToArray - var yyq712 [4]bool - _, _, _ = yysep712, yyq712, yy2arr712 - const yyr712 bool = false - yyq712[1] = x.FSType != "" - yyq712[2] = x.Partition != 0 - yyq712[3] = x.ReadOnly != false - var yynn712 int - if yyr712 || yy2arr712 { + yysep741 := !z.EncBinary() + yy2arr741 := z.EncBasicHandle().StructToArray + var yyq741 [4]bool + _, _, _ = yysep741, yyq741, yy2arr741 + const yyr741 bool = false + yyq741[1] = x.FSType != "" + yyq741[2] = x.Partition != 0 + yyq741[3] = x.ReadOnly != false + var yynn741 int + if yyr741 || yy2arr741 { r.EncodeArrayStart(4) } else { - yynn712 = 1 - for _, b := range yyq712 { + yynn741 = 1 + for _, b := range yyq741 { if b { - yynn712++ + yynn741++ } } - r.EncodeMapStart(yynn712) - yynn712 = 0 + r.EncodeMapStart(yynn741) + yynn741 = 0 } - if yyr712 || yy2arr712 { + if yyr741 || yy2arr741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym714 := z.EncBinary() - _ = yym714 + yym743 := z.EncBinary() + _ = yym743 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) @@ -10723,18 +11299,18 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym715 := z.EncBinary() - _ = yym715 + yym744 := z.EncBinary() + _ = yym744 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } - if yyr712 || yy2arr712 { + if yyr741 || yy2arr741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq712[1] { - yym717 := z.EncBinary() - _ = yym717 + if yyq741[1] { + yym746 := z.EncBinary() + _ = yym746 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -10743,23 +11319,23 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq712[1] { + if yyq741[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym718 := z.EncBinary() - _ = yym718 + yym747 := z.EncBinary() + _ = yym747 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr712 || yy2arr712 { + if yyr741 || yy2arr741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq712[2] { - yym720 := z.EncBinary() - _ = yym720 + if yyq741[2] { + yym749 := z.EncBinary() + _ = yym749 if false { } else { r.EncodeInt(int64(x.Partition)) @@ -10768,23 +11344,23 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeInt(0) } } else { - if yyq712[2] { + if yyq741[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym721 := z.EncBinary() - _ = yym721 + yym750 := z.EncBinary() + _ = yym750 if false { } else { r.EncodeInt(int64(x.Partition)) } } } - if yyr712 || yy2arr712 { + if yyr741 || yy2arr741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq712[3] { - yym723 := z.EncBinary() - _ = yym723 + if yyq741[3] { + yym752 := z.EncBinary() + _ = yym752 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -10793,19 +11369,19 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeBool(false) } } else { - if yyq712[3] { + if yyq741[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym724 := z.EncBinary() - _ = yym724 + yym753 := z.EncBinary() + _ = yym753 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr712 || yy2arr712 { + if yyr741 || yy2arr741 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10818,25 +11394,25 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym725 := z.DecBinary() - _ = yym725 + yym754 := z.DecBinary() + _ = yym754 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct726 := r.ContainerType() - if yyct726 == codecSelferValueTypeMap1234 { - yyl726 := r.ReadMapStart() - if yyl726 == 0 { + yyct755 := r.ContainerType() + if yyct755 == codecSelferValueTypeMap1234 { + yyl755 := r.ReadMapStart() + if yyl755 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl726, d) + x.codecDecodeSelfFromMap(yyl755, d) } - } else if yyct726 == codecSelferValueTypeArray1234 { - yyl726 := r.ReadArrayStart() - if yyl726 == 0 { + } else if yyct755 == codecSelferValueTypeArray1234 { + yyl755 := r.ReadArrayStart() + if yyl755 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl726, d) + x.codecDecodeSelfFromArray(yyl755, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10848,12 +11424,12 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *code var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys727Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys727Slc - var yyhl727 bool = l >= 0 - for yyj727 := 0; ; yyj727++ { - if yyhl727 { - if yyj727 >= l { + var yys756Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys756Slc + var yyhl756 bool = l >= 0 + for yyj756 := 0; ; yyj756++ { + if yyhl756 { + if yyj756 >= l { break } } else { @@ -10862,10 +11438,10 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *code } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys727Slc = r.DecodeBytes(yys727Slc, true, true) - yys727 := string(yys727Slc) + yys756Slc = r.DecodeBytes(yys756Slc, true, true) + yys756 := string(yys756Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys727 { + switch yys756 { case "volumeID": if r.TryDecodeAsNil() { x.VolumeID = "" @@ -10891,9 +11467,9 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *code x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys727) - } // end switch yys727 - } // end for yyj727 + z.DecStructFieldNotFound(-1, yys756) + } // end switch yys756 + } // end for yyj756 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10901,16 +11477,16 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj732 int - var yyb732 bool - var yyhl732 bool = l >= 0 - yyj732++ - if yyhl732 { - yyb732 = yyj732 > l + var yyj761 int + var yyb761 bool + var yyhl761 bool = l >= 0 + yyj761++ + if yyhl761 { + yyb761 = yyj761 > l } else { - yyb732 = r.CheckBreak() + yyb761 = r.CheckBreak() } - if yyb732 { + if yyb761 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10920,13 +11496,13 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co } else { x.VolumeID = string(r.DecodeString()) } - yyj732++ - if yyhl732 { - yyb732 = yyj732 > l + yyj761++ + if yyhl761 { + yyb761 = yyj761 > l } else { - yyb732 = r.CheckBreak() + yyb761 = r.CheckBreak() } - if yyb732 { + if yyb761 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10936,13 +11512,13 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co } else { x.FSType = string(r.DecodeString()) } - yyj732++ - if yyhl732 { - yyb732 = yyj732 > l + yyj761++ + if yyhl761 { + yyb761 = yyj761 > l } else { - yyb732 = r.CheckBreak() + yyb761 = r.CheckBreak() } - if yyb732 { + if yyb761 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10952,13 +11528,13 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co } else { x.Partition = int32(r.DecodeInt(32)) } - yyj732++ - if yyhl732 { - yyb732 = yyj732 > l + yyj761++ + if yyhl761 { + yyb761 = yyj761 > l } else { - yyb732 = r.CheckBreak() + yyb761 = r.CheckBreak() } - if yyb732 { + if yyb761 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10969,17 +11545,17 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co x.ReadOnly = bool(r.DecodeBool()) } for { - yyj732++ - if yyhl732 { - yyb732 = yyj732 > l + yyj761++ + if yyhl761 { + yyb761 = yyj761 > l } else { - yyb732 = r.CheckBreak() + yyb761 = r.CheckBreak() } - if yyb732 { + if yyb761 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj732-1, "") + z.DecStructFieldNotFound(yyj761-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10991,35 +11567,35 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym737 := z.EncBinary() - _ = yym737 + yym766 := z.EncBinary() + _ = yym766 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep738 := !z.EncBinary() - yy2arr738 := z.EncBasicHandle().StructToArray - var yyq738 [3]bool - _, _, _ = yysep738, yyq738, yy2arr738 - const yyr738 bool = false - yyq738[1] = x.Revision != "" - yyq738[2] = x.Directory != "" - var yynn738 int - if yyr738 || yy2arr738 { + yysep767 := !z.EncBinary() + yy2arr767 := z.EncBasicHandle().StructToArray + var yyq767 [3]bool + _, _, _ = yysep767, yyq767, yy2arr767 + const yyr767 bool = false + yyq767[1] = x.Revision != "" + yyq767[2] = x.Directory != "" + var yynn767 int + if yyr767 || yy2arr767 { r.EncodeArrayStart(3) } else { - yynn738 = 1 - for _, b := range yyq738 { + yynn767 = 1 + for _, b := range yyq767 { if b { - yynn738++ + yynn767++ } } - r.EncodeMapStart(yynn738) - yynn738 = 0 + r.EncodeMapStart(yynn767) + yynn767 = 0 } - if yyr738 || yy2arr738 { + if yyr767 || yy2arr767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym740 := z.EncBinary() - _ = yym740 + yym769 := z.EncBinary() + _ = yym769 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) @@ -11028,18 +11604,18 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("repository")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym741 := z.EncBinary() - _ = yym741 + yym770 := z.EncBinary() + _ = yym770 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) } } - if yyr738 || yy2arr738 { + if yyr767 || yy2arr767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq738[1] { - yym743 := z.EncBinary() - _ = yym743 + if yyq767[1] { + yym772 := z.EncBinary() + _ = yym772 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) @@ -11048,23 +11624,23 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq738[1] { + if yyq767[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym744 := z.EncBinary() - _ = yym744 + yym773 := z.EncBinary() + _ = yym773 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } } - if yyr738 || yy2arr738 { + if yyr767 || yy2arr767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq738[2] { - yym746 := z.EncBinary() - _ = yym746 + if yyq767[2] { + yym775 := z.EncBinary() + _ = yym775 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) @@ -11073,19 +11649,19 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq738[2] { + if yyq767[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("directory")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym747 := z.EncBinary() - _ = yym747 + yym776 := z.EncBinary() + _ = yym776 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) } } } - if yyr738 || yy2arr738 { + if yyr767 || yy2arr767 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11098,25 +11674,25 @@ func (x *GitRepoVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym748 := z.DecBinary() - _ = yym748 + yym777 := z.DecBinary() + _ = yym777 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct749 := r.ContainerType() - if yyct749 == codecSelferValueTypeMap1234 { - yyl749 := r.ReadMapStart() - if yyl749 == 0 { + yyct778 := r.ContainerType() + if yyct778 == codecSelferValueTypeMap1234 { + yyl778 := r.ReadMapStart() + if yyl778 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl749, d) + x.codecDecodeSelfFromMap(yyl778, d) } - } else if yyct749 == codecSelferValueTypeArray1234 { - yyl749 := r.ReadArrayStart() - if yyl749 == 0 { + } else if yyct778 == codecSelferValueTypeArray1234 { + yyl778 := r.ReadArrayStart() + if yyl778 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl749, d) + x.codecDecodeSelfFromArray(yyl778, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11128,12 +11704,12 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys750Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys750Slc - var yyhl750 bool = l >= 0 - for yyj750 := 0; ; yyj750++ { - if yyhl750 { - if yyj750 >= l { + var yys779Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys779Slc + var yyhl779 bool = l >= 0 + for yyj779 := 0; ; yyj779++ { + if yyhl779 { + if yyj779 >= l { break } } else { @@ -11142,10 +11718,10 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys750Slc = r.DecodeBytes(yys750Slc, true, true) - yys750 := string(yys750Slc) + yys779Slc = r.DecodeBytes(yys779Slc, true, true) + yys779 := string(yys779Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys750 { + switch yys779 { case "repository": if r.TryDecodeAsNil() { x.Repository = "" @@ -11165,9 +11741,9 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Directory = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys750) - } // end switch yys750 - } // end for yyj750 + z.DecStructFieldNotFound(-1, yys779) + } // end switch yys779 + } // end for yyj779 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11175,16 +11751,16 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj754 int - var yyb754 bool - var yyhl754 bool = l >= 0 - yyj754++ - if yyhl754 { - yyb754 = yyj754 > l + var yyj783 int + var yyb783 bool + var yyhl783 bool = l >= 0 + yyj783++ + if yyhl783 { + yyb783 = yyj783 > l } else { - yyb754 = r.CheckBreak() + yyb783 = r.CheckBreak() } - if yyb754 { + if yyb783 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11194,13 +11770,13 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Repository = string(r.DecodeString()) } - yyj754++ - if yyhl754 { - yyb754 = yyj754 > l + yyj783++ + if yyhl783 { + yyb783 = yyj783 > l } else { - yyb754 = r.CheckBreak() + yyb783 = r.CheckBreak() } - if yyb754 { + if yyb783 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11210,13 +11786,13 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Revision = string(r.DecodeString()) } - yyj754++ - if yyhl754 { - yyb754 = yyj754 > l + yyj783++ + if yyhl783 { + yyb783 = yyj783 > l } else { - yyb754 = r.CheckBreak() + yyb783 = r.CheckBreak() } - if yyb754 { + if yyb783 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11227,17 +11803,17 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Directory = string(r.DecodeString()) } for { - yyj754++ - if yyhl754 { - yyb754 = yyj754 > l + yyj783++ + if yyhl783 { + yyb783 = yyj783 > l } else { - yyb754 = r.CheckBreak() + yyb783 = r.CheckBreak() } - if yyb754 { + if yyb783 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj754-1, "") + z.DecStructFieldNotFound(yyj783-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11249,36 +11825,37 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym758 := z.EncBinary() - _ = yym758 + yym787 := z.EncBinary() + _ = yym787 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep759 := !z.EncBinary() - yy2arr759 := z.EncBasicHandle().StructToArray - var yyq759 [2]bool - _, _, _ = yysep759, yyq759, yy2arr759 - const yyr759 bool = false - yyq759[0] = x.SecretName != "" - yyq759[1] = len(x.Items) != 0 - var yynn759 int - if yyr759 || yy2arr759 { - r.EncodeArrayStart(2) + yysep788 := !z.EncBinary() + yy2arr788 := z.EncBasicHandle().StructToArray + var yyq788 [3]bool + _, _, _ = yysep788, yyq788, yy2arr788 + const yyr788 bool = false + yyq788[0] = x.SecretName != "" + yyq788[1] = len(x.Items) != 0 + yyq788[2] = x.DefaultMode != nil + var yynn788 int + if yyr788 || yy2arr788 { + r.EncodeArrayStart(3) } else { - yynn759 = 0 - for _, b := range yyq759 { + yynn788 = 0 + for _, b := range yyq788 { if b { - yynn759++ + yynn788++ } } - r.EncodeMapStart(yynn759) - yynn759 = 0 + r.EncodeMapStart(yynn788) + yynn788 = 0 } - if yyr759 || yy2arr759 { + if yyr788 || yy2arr788 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq759[0] { - yym761 := z.EncBinary() - _ = yym761 + if yyq788[0] { + yym790 := z.EncBinary() + _ = yym790 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) @@ -11287,26 +11864,26 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq759[0] { + if yyq788[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym762 := z.EncBinary() - _ = yym762 + yym791 := z.EncBinary() + _ = yym791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } } - if yyr759 || yy2arr759 { + if yyr788 || yy2arr788 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq759[1] { + if yyq788[1] { if x.Items == nil { r.EncodeNil() } else { - yym764 := z.EncBinary() - _ = yym764 + yym793 := z.EncBinary() + _ = yym793 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -11316,15 +11893,15 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq759[1] { + if yyq788[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { - yym765 := z.EncBinary() - _ = yym765 + yym794 := z.EncBinary() + _ = yym794 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -11332,7 +11909,42 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr759 || yy2arr759 { + if yyr788 || yy2arr788 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq788[2] { + if x.DefaultMode == nil { + r.EncodeNil() + } else { + yy796 := *x.DefaultMode + yym797 := z.EncBinary() + _ = yym797 + if false { + } else { + r.EncodeInt(int64(yy796)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq788[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DefaultMode == nil { + r.EncodeNil() + } else { + yy798 := *x.DefaultMode + yym799 := z.EncBinary() + _ = yym799 + if false { + } else { + r.EncodeInt(int64(yy798)) + } + } + } + } + if yyr788 || yy2arr788 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11345,25 +11957,25 @@ func (x *SecretVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym766 := z.DecBinary() - _ = yym766 + yym800 := z.DecBinary() + _ = yym800 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct767 := r.ContainerType() - if yyct767 == codecSelferValueTypeMap1234 { - yyl767 := r.ReadMapStart() - if yyl767 == 0 { + yyct801 := r.ContainerType() + if yyct801 == codecSelferValueTypeMap1234 { + yyl801 := r.ReadMapStart() + if yyl801 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl767, d) + x.codecDecodeSelfFromMap(yyl801, d) } - } else if yyct767 == codecSelferValueTypeArray1234 { - yyl767 := r.ReadArrayStart() - if yyl767 == 0 { + } else if yyct801 == codecSelferValueTypeArray1234 { + yyl801 := r.ReadArrayStart() + if yyl801 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl767, d) + x.codecDecodeSelfFromArray(yyl801, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11375,12 +11987,12 @@ func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys768Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys768Slc - var yyhl768 bool = l >= 0 - for yyj768 := 0; ; yyj768++ { - if yyhl768 { - if yyj768 >= l { + var yys802Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys802Slc + var yyhl802 bool = l >= 0 + for yyj802 := 0; ; yyj802++ { + if yyhl802 { + if yyj802 >= l { break } } else { @@ -11389,10 +12001,10 @@ func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys768Slc = r.DecodeBytes(yys768Slc, true, true) - yys768 := string(yys768Slc) + yys802Slc = r.DecodeBytes(yys802Slc, true, true) + yys802 := string(yys802Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys768 { + switch yys802 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" @@ -11403,18 +12015,34 @@ func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Items = nil } else { - yyv770 := &x.Items - yym771 := z.DecBinary() - _ = yym771 + yyv804 := &x.Items + yym805 := z.DecBinary() + _ = yym805 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv770), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv804), d) + } + } + case "defaultMode": + if r.TryDecodeAsNil() { + if x.DefaultMode != nil { + x.DefaultMode = nil + } + } else { + if x.DefaultMode == nil { + x.DefaultMode = new(int32) + } + yym807 := z.DecBinary() + _ = yym807 + if false { + } else { + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys768) - } // end switch yys768 - } // end for yyj768 + z.DecStructFieldNotFound(-1, yys802) + } // end switch yys802 + } // end for yyj802 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11422,16 +12050,16 @@ func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj772 int - var yyb772 bool - var yyhl772 bool = l >= 0 - yyj772++ - if yyhl772 { - yyb772 = yyj772 > l + var yyj808 int + var yyb808 bool + var yyhl808 bool = l >= 0 + yyj808++ + if yyhl808 { + yyb808 = yyj808 > l } else { - yyb772 = r.CheckBreak() + yyb808 = r.CheckBreak() } - if yyb772 { + if yyb808 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11441,13 +12069,13 @@ func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.SecretName = string(r.DecodeString()) } - yyj772++ - if yyhl772 { - yyb772 = yyj772 > l + yyj808++ + if yyhl808 { + yyb808 = yyj808 > l } else { - yyb772 = r.CheckBreak() + yyb808 = r.CheckBreak() } - if yyb772 { + if yyb808 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11455,26 +12083,52 @@ func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Items = nil } else { - yyv774 := &x.Items - yym775 := z.DecBinary() - _ = yym775 + yyv810 := &x.Items + yym811 := z.DecBinary() + _ = yym811 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv774), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv810), d) + } + } + yyj808++ + if yyhl808 { + yyb808 = yyj808 > l + } else { + yyb808 = r.CheckBreak() + } + if yyb808 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DefaultMode != nil { + x.DefaultMode = nil + } + } else { + if x.DefaultMode == nil { + x.DefaultMode = new(int32) + } + yym813 := z.DecBinary() + _ = yym813 + if false { + } else { + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { - yyj772++ - if yyhl772 { - yyb772 = yyj772 > l + yyj808++ + if yyhl808 { + yyb808 = yyj808 > l } else { - yyb772 = r.CheckBreak() + yyb808 = r.CheckBreak() } - if yyb772 { + if yyb808 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj772-1, "") + z.DecStructFieldNotFound(yyj808-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11486,34 +12140,34 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym776 := z.EncBinary() - _ = yym776 + yym814 := z.EncBinary() + _ = yym814 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep777 := !z.EncBinary() - yy2arr777 := z.EncBasicHandle().StructToArray - var yyq777 [3]bool - _, _, _ = yysep777, yyq777, yy2arr777 - const yyr777 bool = false - yyq777[2] = x.ReadOnly != false - var yynn777 int - if yyr777 || yy2arr777 { + yysep815 := !z.EncBinary() + yy2arr815 := z.EncBasicHandle().StructToArray + var yyq815 [3]bool + _, _, _ = yysep815, yyq815, yy2arr815 + const yyr815 bool = false + yyq815[2] = x.ReadOnly != false + var yynn815 int + if yyr815 || yy2arr815 { r.EncodeArrayStart(3) } else { - yynn777 = 2 - for _, b := range yyq777 { + yynn815 = 2 + for _, b := range yyq815 { if b { - yynn777++ + yynn815++ } } - r.EncodeMapStart(yynn777) - yynn777 = 0 + r.EncodeMapStart(yynn815) + yynn815 = 0 } - if yyr777 || yy2arr777 { + if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym779 := z.EncBinary() - _ = yym779 + yym817 := z.EncBinary() + _ = yym817 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) @@ -11522,17 +12176,17 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("server")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym780 := z.EncBinary() - _ = yym780 + yym818 := z.EncBinary() + _ = yym818 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } - if yyr777 || yy2arr777 { + if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym782 := z.EncBinary() - _ = yym782 + yym820 := z.EncBinary() + _ = yym820 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -11541,18 +12195,18 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym783 := z.EncBinary() - _ = yym783 + yym821 := z.EncBinary() + _ = yym821 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr777 || yy2arr777 { + if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq777[2] { - yym785 := z.EncBinary() - _ = yym785 + if yyq815[2] { + yym823 := z.EncBinary() + _ = yym823 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -11561,19 +12215,19 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq777[2] { + if yyq815[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym786 := z.EncBinary() - _ = yym786 + yym824 := z.EncBinary() + _ = yym824 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr777 || yy2arr777 { + if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11586,25 +12240,25 @@ func (x *NFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym787 := z.DecBinary() - _ = yym787 + yym825 := z.DecBinary() + _ = yym825 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct788 := r.ContainerType() - if yyct788 == codecSelferValueTypeMap1234 { - yyl788 := r.ReadMapStart() - if yyl788 == 0 { + yyct826 := r.ContainerType() + if yyct826 == codecSelferValueTypeMap1234 { + yyl826 := r.ReadMapStart() + if yyl826 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl788, d) + x.codecDecodeSelfFromMap(yyl826, d) } - } else if yyct788 == codecSelferValueTypeArray1234 { - yyl788 := r.ReadArrayStart() - if yyl788 == 0 { + } else if yyct826 == codecSelferValueTypeArray1234 { + yyl826 := r.ReadArrayStart() + if yyl826 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl788, d) + x.codecDecodeSelfFromArray(yyl826, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11616,12 +12270,12 @@ func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys789Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys789Slc - var yyhl789 bool = l >= 0 - for yyj789 := 0; ; yyj789++ { - if yyhl789 { - if yyj789 >= l { + var yys827Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys827Slc + var yyhl827 bool = l >= 0 + for yyj827 := 0; ; yyj827++ { + if yyhl827 { + if yyj827 >= l { break } } else { @@ -11630,10 +12284,10 @@ func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys789Slc = r.DecodeBytes(yys789Slc, true, true) - yys789 := string(yys789Slc) + yys827Slc = r.DecodeBytes(yys827Slc, true, true) + yys827 := string(yys827Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys789 { + switch yys827 { case "server": if r.TryDecodeAsNil() { x.Server = "" @@ -11653,9 +12307,9 @@ func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys789) - } // end switch yys789 - } // end for yyj789 + z.DecStructFieldNotFound(-1, yys827) + } // end switch yys827 + } // end for yyj827 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11663,16 +12317,16 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj793 int - var yyb793 bool - var yyhl793 bool = l >= 0 - yyj793++ - if yyhl793 { - yyb793 = yyj793 > l + var yyj831 int + var yyb831 bool + var yyhl831 bool = l >= 0 + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb793 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb793 { + if yyb831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11682,13 +12336,13 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Server = string(r.DecodeString()) } - yyj793++ - if yyhl793 { - yyb793 = yyj793 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb793 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb793 { + if yyb831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11698,13 +12352,13 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Path = string(r.DecodeString()) } - yyj793++ - if yyhl793 { - yyb793 = yyj793 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb793 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb793 { + if yyb831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11715,17 +12369,364 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } for { - yyj793++ - if yyhl793 { - yyb793 = yyj793 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb793 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb793 { + if yyb831 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj793-1, "") + z.DecStructFieldNotFound(yyj831-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym835 := z.EncBinary() + _ = yym835 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep836 := !z.EncBinary() + yy2arr836 := z.EncBasicHandle().StructToArray + var yyq836 [5]bool + _, _, _ = yysep836, yyq836, yy2arr836 + const yyr836 bool = false + yyq836[2] = x.ReadOnly != false + yyq836[3] = x.User != "" + yyq836[4] = x.Group != "" + var yynn836 int + if yyr836 || yy2arr836 { + r.EncodeArrayStart(5) + } else { + yynn836 = 2 + for _, b := range yyq836 { + if b { + yynn836++ + } + } + r.EncodeMapStart(yynn836) + yynn836 = 0 + } + if yyr836 || yy2arr836 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym838 := z.EncBinary() + _ = yym838 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Registry)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("registry")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym839 := z.EncBinary() + _ = yym839 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Registry)) + } + } + if yyr836 || yy2arr836 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym841 := z.EncBinary() + _ = yym841 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Volume)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym842 := z.EncBinary() + _ = yym842 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Volume)) + } + } + if yyr836 || yy2arr836 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq836[2] { + yym844 := z.EncBinary() + _ = yym844 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq836[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym845 := z.EncBinary() + _ = yym845 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr836 || yy2arr836 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq836[3] { + yym847 := z.EncBinary() + _ = yym847 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq836[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("user")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym848 := z.EncBinary() + _ = yym848 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } + } + if yyr836 || yy2arr836 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq836[4] { + yym850 := z.EncBinary() + _ = yym850 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Group)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq836[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("group")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym851 := z.EncBinary() + _ = yym851 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Group)) + } + } + } + if yyr836 || yy2arr836 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *QuobyteVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym852 := z.DecBinary() + _ = yym852 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct853 := r.ContainerType() + if yyct853 == codecSelferValueTypeMap1234 { + yyl853 := r.ReadMapStart() + if yyl853 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl853, d) + } + } else if yyct853 == codecSelferValueTypeArray1234 { + yyl853 := r.ReadArrayStart() + if yyl853 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl853, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *QuobyteVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys854Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys854Slc + var yyhl854 bool = l >= 0 + for yyj854 := 0; ; yyj854++ { + if yyhl854 { + if yyj854 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys854Slc = r.DecodeBytes(yys854Slc, true, true) + yys854 := string(yys854Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys854 { + case "registry": + if r.TryDecodeAsNil() { + x.Registry = "" + } else { + x.Registry = string(r.DecodeString()) + } + case "volume": + if r.TryDecodeAsNil() { + x.Volume = "" + } else { + x.Volume = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + case "user": + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = string(r.DecodeString()) + } + case "group": + if r.TryDecodeAsNil() { + x.Group = "" + } else { + x.Group = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys854) + } // end switch yys854 + } // end for yyj854 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj860 int + var yyb860 bool + var yyhl860 bool = l >= 0 + yyj860++ + if yyhl860 { + yyb860 = yyj860 > l + } else { + yyb860 = r.CheckBreak() + } + if yyb860 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Registry = "" + } else { + x.Registry = string(r.DecodeString()) + } + yyj860++ + if yyhl860 { + yyb860 = yyj860 > l + } else { + yyb860 = r.CheckBreak() + } + if yyb860 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Volume = "" + } else { + x.Volume = string(r.DecodeString()) + } + yyj860++ + if yyhl860 { + yyb860 = yyj860 > l + } else { + yyb860 = r.CheckBreak() + } + if yyb860 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + yyj860++ + if yyhl860 { + yyb860 = yyj860 > l + } else { + yyb860 = r.CheckBreak() + } + if yyb860 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = string(r.DecodeString()) + } + yyj860++ + if yyhl860 { + yyb860 = yyj860 > l + } else { + yyb860 = r.CheckBreak() + } + if yyb860 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Group = "" + } else { + x.Group = string(r.DecodeString()) + } + for { + yyj860++ + if yyhl860 { + yyb860 = yyj860 > l + } else { + yyb860 = r.CheckBreak() + } + if yyb860 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj860-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11737,34 +12738,34 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym797 := z.EncBinary() - _ = yym797 + yym866 := z.EncBinary() + _ = yym866 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep798 := !z.EncBinary() - yy2arr798 := z.EncBasicHandle().StructToArray - var yyq798 [3]bool - _, _, _ = yysep798, yyq798, yy2arr798 - const yyr798 bool = false - yyq798[2] = x.ReadOnly != false - var yynn798 int - if yyr798 || yy2arr798 { + yysep867 := !z.EncBinary() + yy2arr867 := z.EncBasicHandle().StructToArray + var yyq867 [3]bool + _, _, _ = yysep867, yyq867, yy2arr867 + const yyr867 bool = false + yyq867[2] = x.ReadOnly != false + var yynn867 int + if yyr867 || yy2arr867 { r.EncodeArrayStart(3) } else { - yynn798 = 2 - for _, b := range yyq798 { + yynn867 = 2 + for _, b := range yyq867 { if b { - yynn798++ + yynn867++ } } - r.EncodeMapStart(yynn798) - yynn798 = 0 + r.EncodeMapStart(yynn867) + yynn867 = 0 } - if yyr798 || yy2arr798 { + if yyr867 || yy2arr867 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym800 := z.EncBinary() - _ = yym800 + yym869 := z.EncBinary() + _ = yym869 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) @@ -11773,17 +12774,17 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("endpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym801 := z.EncBinary() - _ = yym801 + yym870 := z.EncBinary() + _ = yym870 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) } } - if yyr798 || yy2arr798 { + if yyr867 || yy2arr867 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym803 := z.EncBinary() - _ = yym803 + yym872 := z.EncBinary() + _ = yym872 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -11792,18 +12793,18 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym804 := z.EncBinary() - _ = yym804 + yym873 := z.EncBinary() + _ = yym873 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr798 || yy2arr798 { + if yyr867 || yy2arr867 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq798[2] { - yym806 := z.EncBinary() - _ = yym806 + if yyq867[2] { + yym875 := z.EncBinary() + _ = yym875 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -11812,19 +12813,19 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq798[2] { + if yyq867[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym807 := z.EncBinary() - _ = yym807 + yym876 := z.EncBinary() + _ = yym876 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr798 || yy2arr798 { + if yyr867 || yy2arr867 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11837,25 +12838,25 @@ func (x *GlusterfsVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym808 := z.DecBinary() - _ = yym808 + yym877 := z.DecBinary() + _ = yym877 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct809 := r.ContainerType() - if yyct809 == codecSelferValueTypeMap1234 { - yyl809 := r.ReadMapStart() - if yyl809 == 0 { + yyct878 := r.ContainerType() + if yyct878 == codecSelferValueTypeMap1234 { + yyl878 := r.ReadMapStart() + if yyl878 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl809, d) + x.codecDecodeSelfFromMap(yyl878, d) } - } else if yyct809 == codecSelferValueTypeArray1234 { - yyl809 := r.ReadArrayStart() - if yyl809 == 0 { + } else if yyct878 == codecSelferValueTypeArray1234 { + yyl878 := r.ReadArrayStart() + if yyl878 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl809, d) + x.codecDecodeSelfFromArray(yyl878, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11867,12 +12868,12 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys810Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys810Slc - var yyhl810 bool = l >= 0 - for yyj810 := 0; ; yyj810++ { - if yyhl810 { - if yyj810 >= l { + var yys879Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys879Slc + var yyhl879 bool = l >= 0 + for yyj879 := 0; ; yyj879++ { + if yyhl879 { + if yyj879 >= l { break } } else { @@ -11881,10 +12882,10 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys810Slc = r.DecodeBytes(yys810Slc, true, true) - yys810 := string(yys810Slc) + yys879Slc = r.DecodeBytes(yys879Slc, true, true) + yys879 := string(yys879Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys810 { + switch yys879 { case "endpoints": if r.TryDecodeAsNil() { x.EndpointsName = "" @@ -11904,9 +12905,9 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys810) - } // end switch yys810 - } // end for yyj810 + z.DecStructFieldNotFound(-1, yys879) + } // end switch yys879 + } // end for yyj879 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11914,16 +12915,16 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj814 int - var yyb814 bool - var yyhl814 bool = l >= 0 - yyj814++ - if yyhl814 { - yyb814 = yyj814 > l + var yyj883 int + var yyb883 bool + var yyhl883 bool = l >= 0 + yyj883++ + if yyhl883 { + yyb883 = yyj883 > l } else { - yyb814 = r.CheckBreak() + yyb883 = r.CheckBreak() } - if yyb814 { + if yyb883 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11933,13 +12934,13 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.EndpointsName = string(r.DecodeString()) } - yyj814++ - if yyhl814 { - yyb814 = yyj814 > l + yyj883++ + if yyhl883 { + yyb883 = yyj883 > l } else { - yyb814 = r.CheckBreak() + yyb883 = r.CheckBreak() } - if yyb814 { + if yyb883 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11949,13 +12950,13 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Path = string(r.DecodeString()) } - yyj814++ - if yyhl814 { - yyb814 = yyj814 > l + yyj883++ + if yyhl883 { + yyb883 = yyj883 > l } else { - yyb814 = r.CheckBreak() + yyb883 = r.CheckBreak() } - if yyb814 { + if yyb883 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11966,17 +12967,17 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.ReadOnly = bool(r.DecodeBool()) } for { - yyj814++ - if yyhl814 { - yyb814 = yyj814 > l + yyj883++ + if yyhl883 { + yyb883 = yyj883 > l } else { - yyb814 = r.CheckBreak() + yyb883 = r.CheckBreak() } - if yyb814 { + if yyb883 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj814-1, "") + z.DecStructFieldNotFound(yyj883-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11988,42 +12989,42 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym818 := z.EncBinary() - _ = yym818 + yym887 := z.EncBinary() + _ = yym887 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep819 := !z.EncBinary() - yy2arr819 := z.EncBasicHandle().StructToArray - var yyq819 [8]bool - _, _, _ = yysep819, yyq819, yy2arr819 - const yyr819 bool = false - yyq819[2] = x.FSType != "" - yyq819[3] = x.RBDPool != "" - yyq819[4] = x.RadosUser != "" - yyq819[5] = x.Keyring != "" - yyq819[6] = x.SecretRef != nil - yyq819[7] = x.ReadOnly != false - var yynn819 int - if yyr819 || yy2arr819 { + yysep888 := !z.EncBinary() + yy2arr888 := z.EncBasicHandle().StructToArray + var yyq888 [8]bool + _, _, _ = yysep888, yyq888, yy2arr888 + const yyr888 bool = false + yyq888[2] = x.FSType != "" + yyq888[3] = x.RBDPool != "" + yyq888[4] = x.RadosUser != "" + yyq888[5] = x.Keyring != "" + yyq888[6] = x.SecretRef != nil + yyq888[7] = x.ReadOnly != false + var yynn888 int + if yyr888 || yy2arr888 { r.EncodeArrayStart(8) } else { - yynn819 = 2 - for _, b := range yyq819 { + yynn888 = 2 + for _, b := range yyq888 { if b { - yynn819++ + yynn888++ } } - r.EncodeMapStart(yynn819) - yynn819 = 0 + r.EncodeMapStart(yynn888) + yynn888 = 0 } - if yyr819 || yy2arr819 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.CephMonitors == nil { r.EncodeNil() } else { - yym821 := z.EncBinary() - _ = yym821 + yym890 := z.EncBinary() + _ = yym890 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) @@ -12036,18 +13037,18 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.CephMonitors == nil { r.EncodeNil() } else { - yym822 := z.EncBinary() - _ = yym822 + yym891 := z.EncBinary() + _ = yym891 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } - if yyr819 || yy2arr819 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym824 := z.EncBinary() - _ = yym824 + yym893 := z.EncBinary() + _ = yym893 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) @@ -12056,18 +13057,18 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym825 := z.EncBinary() - _ = yym825 + yym894 := z.EncBinary() + _ = yym894 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } - if yyr819 || yy2arr819 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq819[2] { - yym827 := z.EncBinary() - _ = yym827 + if yyq888[2] { + yym896 := z.EncBinary() + _ = yym896 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -12076,23 +13077,23 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq819[2] { + if yyq888[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym828 := z.EncBinary() - _ = yym828 + yym897 := z.EncBinary() + _ = yym897 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr819 || yy2arr819 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq819[3] { - yym830 := z.EncBinary() - _ = yym830 + if yyq888[3] { + yym899 := z.EncBinary() + _ = yym899 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) @@ -12101,23 +13102,23 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq819[3] { + if yyq888[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pool")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym831 := z.EncBinary() - _ = yym831 + yym900 := z.EncBinary() + _ = yym900 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } } - if yyr819 || yy2arr819 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq819[4] { - yym833 := z.EncBinary() - _ = yym833 + if yyq888[4] { + yym902 := z.EncBinary() + _ = yym902 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) @@ -12126,23 +13127,23 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq819[4] { + if yyq888[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym834 := z.EncBinary() - _ = yym834 + yym903 := z.EncBinary() + _ = yym903 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } } - if yyr819 || yy2arr819 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq819[5] { - yym836 := z.EncBinary() - _ = yym836 + if yyq888[5] { + yym905 := z.EncBinary() + _ = yym905 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) @@ -12151,21 +13152,21 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq819[5] { + if yyq888[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("keyring")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym837 := z.EncBinary() - _ = yym837 + yym906 := z.EncBinary() + _ = yym906 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } } - if yyr819 || yy2arr819 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq819[6] { + if yyq888[6] { if x.SecretRef == nil { r.EncodeNil() } else { @@ -12175,7 +13176,7 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq819[6] { + if yyq888[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -12186,11 +13187,11 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr819 || yy2arr819 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq819[7] { - yym840 := z.EncBinary() - _ = yym840 + if yyq888[7] { + yym909 := z.EncBinary() + _ = yym909 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -12199,19 +13200,19 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq819[7] { + if yyq888[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym841 := z.EncBinary() - _ = yym841 + yym910 := z.EncBinary() + _ = yym910 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr819 || yy2arr819 { + if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12224,25 +13225,25 @@ func (x *RBDVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym842 := z.DecBinary() - _ = yym842 + yym911 := z.DecBinary() + _ = yym911 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct843 := r.ContainerType() - if yyct843 == codecSelferValueTypeMap1234 { - yyl843 := r.ReadMapStart() - if yyl843 == 0 { + yyct912 := r.ContainerType() + if yyct912 == codecSelferValueTypeMap1234 { + yyl912 := r.ReadMapStart() + if yyl912 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl843, d) + x.codecDecodeSelfFromMap(yyl912, d) } - } else if yyct843 == codecSelferValueTypeArray1234 { - yyl843 := r.ReadArrayStart() - if yyl843 == 0 { + } else if yyct912 == codecSelferValueTypeArray1234 { + yyl912 := r.ReadArrayStart() + if yyl912 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl843, d) + x.codecDecodeSelfFromArray(yyl912, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12254,12 +13255,12 @@ func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys844Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys844Slc - var yyhl844 bool = l >= 0 - for yyj844 := 0; ; yyj844++ { - if yyhl844 { - if yyj844 >= l { + var yys913Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys913Slc + var yyhl913 bool = l >= 0 + for yyj913 := 0; ; yyj913++ { + if yyhl913 { + if yyj913 >= l { break } } else { @@ -12268,20 +13269,20 @@ func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys844Slc = r.DecodeBytes(yys844Slc, true, true) - yys844 := string(yys844Slc) + yys913Slc = r.DecodeBytes(yys913Slc, true, true) + yys913 := string(yys913Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys844 { + switch yys913 { case "monitors": if r.TryDecodeAsNil() { x.CephMonitors = nil } else { - yyv845 := &x.CephMonitors - yym846 := z.DecBinary() - _ = yym846 + yyv914 := &x.CephMonitors + yym915 := z.DecBinary() + _ = yym915 if false { } else { - z.F.DecSliceStringX(yyv845, false, d) + z.F.DecSliceStringX(yyv914, false, d) } } case "image": @@ -12332,9 +13333,9 @@ func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys844) - } // end switch yys844 - } // end for yyj844 + z.DecStructFieldNotFound(-1, yys913) + } // end switch yys913 + } // end for yyj913 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12342,16 +13343,16 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj854 int - var yyb854 bool - var yyhl854 bool = l >= 0 - yyj854++ - if yyhl854 { - yyb854 = yyj854 > l + var yyj923 int + var yyb923 bool + var yyhl923 bool = l >= 0 + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb854 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb854 { + if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12359,21 +13360,21 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.CephMonitors = nil } else { - yyv855 := &x.CephMonitors - yym856 := z.DecBinary() - _ = yym856 + yyv924 := &x.CephMonitors + yym925 := z.DecBinary() + _ = yym925 if false { } else { - z.F.DecSliceStringX(yyv855, false, d) + z.F.DecSliceStringX(yyv924, false, d) } } - yyj854++ - if yyhl854 { - yyb854 = yyj854 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb854 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb854 { + if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12383,13 +13384,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RBDImage = string(r.DecodeString()) } - yyj854++ - if yyhl854 { - yyb854 = yyj854 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb854 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb854 { + if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12399,13 +13400,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.FSType = string(r.DecodeString()) } - yyj854++ - if yyhl854 { - yyb854 = yyj854 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb854 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb854 { + if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12415,13 +13416,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RBDPool = string(r.DecodeString()) } - yyj854++ - if yyhl854 { - yyb854 = yyj854 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb854 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb854 { + if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12431,13 +13432,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RadosUser = string(r.DecodeString()) } - yyj854++ - if yyhl854 { - yyb854 = yyj854 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb854 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb854 { + if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12447,13 +13448,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Keyring = string(r.DecodeString()) } - yyj854++ - if yyhl854 { - yyb854 = yyj854 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb854 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb854 { + if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12468,13 +13469,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SecretRef.CodecDecodeSelf(d) } - yyj854++ - if yyhl854 { - yyb854 = yyj854 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb854 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb854 { + if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12485,17 +13486,17 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } for { - yyj854++ - if yyhl854 { - yyb854 = yyj854 > l + yyj923++ + if yyhl923 { + yyb923 = yyj923 > l } else { - yyb854 = r.CheckBreak() + yyb923 = r.CheckBreak() } - if yyb854 { + if yyb923 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj854-1, "") + z.DecStructFieldNotFound(yyj923-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12507,35 +13508,35 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym864 := z.EncBinary() - _ = yym864 + yym933 := z.EncBinary() + _ = yym933 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep865 := !z.EncBinary() - yy2arr865 := z.EncBasicHandle().StructToArray - var yyq865 [3]bool - _, _, _ = yysep865, yyq865, yy2arr865 - const yyr865 bool = false - yyq865[1] = x.FSType != "" - yyq865[2] = x.ReadOnly != false - var yynn865 int - if yyr865 || yy2arr865 { + yysep934 := !z.EncBinary() + yy2arr934 := z.EncBasicHandle().StructToArray + var yyq934 [3]bool + _, _, _ = yysep934, yyq934, yy2arr934 + const yyr934 bool = false + yyq934[1] = x.FSType != "" + yyq934[2] = x.ReadOnly != false + var yynn934 int + if yyr934 || yy2arr934 { r.EncodeArrayStart(3) } else { - yynn865 = 1 - for _, b := range yyq865 { + yynn934 = 1 + for _, b := range yyq934 { if b { - yynn865++ + yynn934++ } } - r.EncodeMapStart(yynn865) - yynn865 = 0 + r.EncodeMapStart(yynn934) + yynn934 = 0 } - if yyr865 || yy2arr865 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym867 := z.EncBinary() - _ = yym867 + yym936 := z.EncBinary() + _ = yym936 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) @@ -12544,18 +13545,18 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym868 := z.EncBinary() - _ = yym868 + yym937 := z.EncBinary() + _ = yym937 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } - if yyr865 || yy2arr865 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq865[1] { - yym870 := z.EncBinary() - _ = yym870 + if yyq934[1] { + yym939 := z.EncBinary() + _ = yym939 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -12564,23 +13565,23 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq865[1] { + if yyq934[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym871 := z.EncBinary() - _ = yym871 + yym940 := z.EncBinary() + _ = yym940 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr865 || yy2arr865 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq865[2] { - yym873 := z.EncBinary() - _ = yym873 + if yyq934[2] { + yym942 := z.EncBinary() + _ = yym942 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -12589,19 +13590,19 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq865[2] { + if yyq934[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym874 := z.EncBinary() - _ = yym874 + yym943 := z.EncBinary() + _ = yym943 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr865 || yy2arr865 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12614,25 +13615,25 @@ func (x *CinderVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym875 := z.DecBinary() - _ = yym875 + yym944 := z.DecBinary() + _ = yym944 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct876 := r.ContainerType() - if yyct876 == codecSelferValueTypeMap1234 { - yyl876 := r.ReadMapStart() - if yyl876 == 0 { + yyct945 := r.ContainerType() + if yyct945 == codecSelferValueTypeMap1234 { + yyl945 := r.ReadMapStart() + if yyl945 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl876, d) + x.codecDecodeSelfFromMap(yyl945, d) } - } else if yyct876 == codecSelferValueTypeArray1234 { - yyl876 := r.ReadArrayStart() - if yyl876 == 0 { + } else if yyct945 == codecSelferValueTypeArray1234 { + yyl945 := r.ReadArrayStart() + if yyl945 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl876, d) + x.codecDecodeSelfFromArray(yyl945, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12644,12 +13645,12 @@ func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys877Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys877Slc - var yyhl877 bool = l >= 0 - for yyj877 := 0; ; yyj877++ { - if yyhl877 { - if yyj877 >= l { + var yys946Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys946Slc + var yyhl946 bool = l >= 0 + for yyj946 := 0; ; yyj946++ { + if yyhl946 { + if yyj946 >= l { break } } else { @@ -12658,10 +13659,10 @@ func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys877Slc = r.DecodeBytes(yys877Slc, true, true) - yys877 := string(yys877Slc) + yys946Slc = r.DecodeBytes(yys946Slc, true, true) + yys946 := string(yys946Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys877 { + switch yys946 { case "volumeID": if r.TryDecodeAsNil() { x.VolumeID = "" @@ -12681,9 +13682,9 @@ func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys877) - } // end switch yys877 - } // end for yyj877 + z.DecStructFieldNotFound(-1, yys946) + } // end switch yys946 + } // end for yyj946 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12691,16 +13692,16 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj881 int - var yyb881 bool - var yyhl881 bool = l >= 0 - yyj881++ - if yyhl881 { - yyb881 = yyj881 > l + var yyj950 int + var yyb950 bool + var yyhl950 bool = l >= 0 + yyj950++ + if yyhl950 { + yyb950 = yyj950 > l } else { - yyb881 = r.CheckBreak() + yyb950 = r.CheckBreak() } - if yyb881 { + if yyb950 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12710,13 +13711,13 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.VolumeID = string(r.DecodeString()) } - yyj881++ - if yyhl881 { - yyb881 = yyj881 > l + yyj950++ + if yyhl950 { + yyb950 = yyj950 > l } else { - yyb881 = r.CheckBreak() + yyb950 = r.CheckBreak() } - if yyb881 { + if yyb950 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12726,13 +13727,13 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.FSType = string(r.DecodeString()) } - yyj881++ - if yyhl881 { - yyb881 = yyj881 > l + yyj950++ + if yyhl950 { + yyb950 = yyj950 > l } else { - yyb881 = r.CheckBreak() + yyb950 = r.CheckBreak() } - if yyb881 { + if yyb950 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12743,17 +13744,17 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.ReadOnly = bool(r.DecodeBool()) } for { - yyj881++ - if yyhl881 { - yyb881 = yyj881 > l + yyj950++ + if yyhl950 { + yyb950 = yyj950 > l } else { - yyb881 = r.CheckBreak() + yyb950 = r.CheckBreak() } - if yyb881 { + if yyb950 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj881-1, "") + z.DecStructFieldNotFound(yyj950-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12765,41 +13766,41 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym885 := z.EncBinary() - _ = yym885 + yym954 := z.EncBinary() + _ = yym954 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep886 := !z.EncBinary() - yy2arr886 := z.EncBasicHandle().StructToArray - var yyq886 [6]bool - _, _, _ = yysep886, yyq886, yy2arr886 - const yyr886 bool = false - yyq886[1] = x.Path != "" - yyq886[2] = x.User != "" - yyq886[3] = x.SecretFile != "" - yyq886[4] = x.SecretRef != nil - yyq886[5] = x.ReadOnly != false - var yynn886 int - if yyr886 || yy2arr886 { + yysep955 := !z.EncBinary() + yy2arr955 := z.EncBasicHandle().StructToArray + var yyq955 [6]bool + _, _, _ = yysep955, yyq955, yy2arr955 + const yyr955 bool = false + yyq955[1] = x.Path != "" + yyq955[2] = x.User != "" + yyq955[3] = x.SecretFile != "" + yyq955[4] = x.SecretRef != nil + yyq955[5] = x.ReadOnly != false + var yynn955 int + if yyr955 || yy2arr955 { r.EncodeArrayStart(6) } else { - yynn886 = 1 - for _, b := range yyq886 { + yynn955 = 1 + for _, b := range yyq955 { if b { - yynn886++ + yynn955++ } } - r.EncodeMapStart(yynn886) - yynn886 = 0 + r.EncodeMapStart(yynn955) + yynn955 = 0 } - if yyr886 || yy2arr886 { + if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Monitors == nil { r.EncodeNil() } else { - yym888 := z.EncBinary() - _ = yym888 + yym957 := z.EncBinary() + _ = yym957 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) @@ -12812,19 +13813,19 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.Monitors == nil { r.EncodeNil() } else { - yym889 := z.EncBinary() - _ = yym889 + yym958 := z.EncBinary() + _ = yym958 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } - if yyr886 || yy2arr886 { + if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq886[1] { - yym891 := z.EncBinary() - _ = yym891 + if yyq955[1] { + yym960 := z.EncBinary() + _ = yym960 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -12833,23 +13834,23 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq886[1] { + if yyq955[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym892 := z.EncBinary() - _ = yym892 + yym961 := z.EncBinary() + _ = yym961 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr886 || yy2arr886 { + if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq886[2] { - yym894 := z.EncBinary() - _ = yym894 + if yyq955[2] { + yym963 := z.EncBinary() + _ = yym963 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -12858,23 +13859,23 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq886[2] { + if yyq955[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym895 := z.EncBinary() - _ = yym895 + yym964 := z.EncBinary() + _ = yym964 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } - if yyr886 || yy2arr886 { + if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq886[3] { - yym897 := z.EncBinary() - _ = yym897 + if yyq955[3] { + yym966 := z.EncBinary() + _ = yym966 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) @@ -12883,21 +13884,21 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq886[3] { + if yyq955[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym898 := z.EncBinary() - _ = yym898 + yym967 := z.EncBinary() + _ = yym967 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } } - if yyr886 || yy2arr886 { + if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq886[4] { + if yyq955[4] { if x.SecretRef == nil { r.EncodeNil() } else { @@ -12907,7 +13908,7 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq886[4] { + if yyq955[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -12918,11 +13919,11 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr886 || yy2arr886 { + if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq886[5] { - yym901 := z.EncBinary() - _ = yym901 + if yyq955[5] { + yym970 := z.EncBinary() + _ = yym970 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -12931,19 +13932,19 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq886[5] { + if yyq955[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym902 := z.EncBinary() - _ = yym902 + yym971 := z.EncBinary() + _ = yym971 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr886 || yy2arr886 { + if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12956,25 +13957,25 @@ func (x *CephFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym903 := z.DecBinary() - _ = yym903 + yym972 := z.DecBinary() + _ = yym972 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct904 := r.ContainerType() - if yyct904 == codecSelferValueTypeMap1234 { - yyl904 := r.ReadMapStart() - if yyl904 == 0 { + yyct973 := r.ContainerType() + if yyct973 == codecSelferValueTypeMap1234 { + yyl973 := r.ReadMapStart() + if yyl973 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl904, d) + x.codecDecodeSelfFromMap(yyl973, d) } - } else if yyct904 == codecSelferValueTypeArray1234 { - yyl904 := r.ReadArrayStart() - if yyl904 == 0 { + } else if yyct973 == codecSelferValueTypeArray1234 { + yyl973 := r.ReadArrayStart() + if yyl973 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl904, d) + x.codecDecodeSelfFromArray(yyl973, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12986,12 +13987,12 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys905Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys905Slc - var yyhl905 bool = l >= 0 - for yyj905 := 0; ; yyj905++ { - if yyhl905 { - if yyj905 >= l { + var yys974Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys974Slc + var yyhl974 bool = l >= 0 + for yyj974 := 0; ; yyj974++ { + if yyhl974 { + if yyj974 >= l { break } } else { @@ -13000,20 +14001,20 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys905Slc = r.DecodeBytes(yys905Slc, true, true) - yys905 := string(yys905Slc) + yys974Slc = r.DecodeBytes(yys974Slc, true, true) + yys974 := string(yys974Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys905 { + switch yys974 { case "monitors": if r.TryDecodeAsNil() { x.Monitors = nil } else { - yyv906 := &x.Monitors - yym907 := z.DecBinary() - _ = yym907 + yyv975 := &x.Monitors + yym976 := z.DecBinary() + _ = yym976 if false { } else { - z.F.DecSliceStringX(yyv906, false, d) + z.F.DecSliceStringX(yyv975, false, d) } } case "path": @@ -13052,9 +14053,9 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys905) - } // end switch yys905 - } // end for yyj905 + z.DecStructFieldNotFound(-1, yys974) + } // end switch yys974 + } // end for yyj974 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13062,16 +14063,16 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj913 int - var yyb913 bool - var yyhl913 bool = l >= 0 - yyj913++ - if yyhl913 { - yyb913 = yyj913 > l + var yyj982 int + var yyb982 bool + var yyhl982 bool = l >= 0 + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb913 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb913 { + if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13079,21 +14080,21 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Monitors = nil } else { - yyv914 := &x.Monitors - yym915 := z.DecBinary() - _ = yym915 + yyv983 := &x.Monitors + yym984 := z.DecBinary() + _ = yym984 if false { } else { - z.F.DecSliceStringX(yyv914, false, d) + z.F.DecSliceStringX(yyv983, false, d) } } - yyj913++ - if yyhl913 { - yyb913 = yyj913 > l + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb913 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb913 { + if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13103,13 +14104,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Path = string(r.DecodeString()) } - yyj913++ - if yyhl913 { - yyb913 = yyj913 > l + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb913 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb913 { + if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13119,13 +14120,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.User = string(r.DecodeString()) } - yyj913++ - if yyhl913 { - yyb913 = yyj913 > l + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb913 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb913 { + if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13135,13 +14136,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.SecretFile = string(r.DecodeString()) } - yyj913++ - if yyhl913 { - yyb913 = yyj913 > l + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb913 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb913 { + if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13156,13 +14157,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } x.SecretRef.CodecDecodeSelf(d) } - yyj913++ - if yyhl913 { - yyb913 = yyj913 > l + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb913 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb913 { + if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13173,17 +14174,17 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.ReadOnly = bool(r.DecodeBool()) } for { - yyj913++ - if yyhl913 { - yyb913 = yyj913 > l + yyj982++ + if yyhl982 { + yyb982 = yyj982 > l } else { - yyb913 = r.CheckBreak() + yyb982 = r.CheckBreak() } - if yyb913 { + if yyb982 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj913-1, "") + z.DecStructFieldNotFound(yyj982-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13195,33 +14196,33 @@ func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym921 := z.EncBinary() - _ = yym921 + yym990 := z.EncBinary() + _ = yym990 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep922 := !z.EncBinary() - yy2arr922 := z.EncBasicHandle().StructToArray - var yyq922 [1]bool - _, _, _ = yysep922, yyq922, yy2arr922 - const yyr922 bool = false - var yynn922 int - if yyr922 || yy2arr922 { + yysep991 := !z.EncBinary() + yy2arr991 := z.EncBasicHandle().StructToArray + var yyq991 [1]bool + _, _, _ = yysep991, yyq991, yy2arr991 + const yyr991 bool = false + var yynn991 int + if yyr991 || yy2arr991 { r.EncodeArrayStart(1) } else { - yynn922 = 1 - for _, b := range yyq922 { + yynn991 = 1 + for _, b := range yyq991 { if b { - yynn922++ + yynn991++ } } - r.EncodeMapStart(yynn922) - yynn922 = 0 + r.EncodeMapStart(yynn991) + yynn991 = 0 } - if yyr922 || yy2arr922 { + if yyr991 || yy2arr991 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym924 := z.EncBinary() - _ = yym924 + yym993 := z.EncBinary() + _ = yym993 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) @@ -13230,14 +14231,14 @@ func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("datasetName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym925 := z.EncBinary() - _ = yym925 + yym994 := z.EncBinary() + _ = yym994 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) } } - if yyr922 || yy2arr922 { + if yyr991 || yy2arr991 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13250,25 +14251,25 @@ func (x *FlockerVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym926 := z.DecBinary() - _ = yym926 + yym995 := z.DecBinary() + _ = yym995 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct927 := r.ContainerType() - if yyct927 == codecSelferValueTypeMap1234 { - yyl927 := r.ReadMapStart() - if yyl927 == 0 { + yyct996 := r.ContainerType() + if yyct996 == codecSelferValueTypeMap1234 { + yyl996 := r.ReadMapStart() + if yyl996 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl927, d) + x.codecDecodeSelfFromMap(yyl996, d) } - } else if yyct927 == codecSelferValueTypeArray1234 { - yyl927 := r.ReadArrayStart() - if yyl927 == 0 { + } else if yyct996 == codecSelferValueTypeArray1234 { + yyl996 := r.ReadArrayStart() + if yyl996 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl927, d) + x.codecDecodeSelfFromArray(yyl996, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13280,12 +14281,12 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys928Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys928Slc - var yyhl928 bool = l >= 0 - for yyj928 := 0; ; yyj928++ { - if yyhl928 { - if yyj928 >= l { + var yys997Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys997Slc + var yyhl997 bool = l >= 0 + for yyj997 := 0; ; yyj997++ { + if yyhl997 { + if yyj997 >= l { break } } else { @@ -13294,10 +14295,10 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys928Slc = r.DecodeBytes(yys928Slc, true, true) - yys928 := string(yys928Slc) + yys997Slc = r.DecodeBytes(yys997Slc, true, true) + yys997 := string(yys997Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys928 { + switch yys997 { case "datasetName": if r.TryDecodeAsNil() { x.DatasetName = "" @@ -13305,9 +14306,9 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.DatasetName = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys928) - } // end switch yys928 - } // end for yyj928 + z.DecStructFieldNotFound(-1, yys997) + } // end switch yys997 + } // end for yyj997 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13315,16 +14316,16 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj930 int - var yyb930 bool - var yyhl930 bool = l >= 0 - yyj930++ - if yyhl930 { - yyb930 = yyj930 > l + var yyj999 int + var yyb999 bool + var yyhl999 bool = l >= 0 + yyj999++ + if yyhl999 { + yyb999 = yyj999 > l } else { - yyb930 = r.CheckBreak() + yyb999 = r.CheckBreak() } - if yyb930 { + if yyb999 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13335,17 +14336,17 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.DatasetName = string(r.DecodeString()) } for { - yyj930++ - if yyhl930 { - yyb930 = yyj930 > l + yyj999++ + if yyhl999 { + yyb999 = yyj999 > l } else { - yyb930 = r.CheckBreak() + yyb999 = r.CheckBreak() } - if yyb930 { + if yyb999 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj930-1, "") + z.DecStructFieldNotFound(yyj999-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13357,38 +14358,39 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym932 := z.EncBinary() - _ = yym932 + yym1001 := z.EncBinary() + _ = yym1001 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep933 := !z.EncBinary() - yy2arr933 := z.EncBasicHandle().StructToArray - var yyq933 [1]bool - _, _, _ = yysep933, yyq933, yy2arr933 - const yyr933 bool = false - yyq933[0] = len(x.Items) != 0 - var yynn933 int - if yyr933 || yy2arr933 { - r.EncodeArrayStart(1) + yysep1002 := !z.EncBinary() + yy2arr1002 := z.EncBasicHandle().StructToArray + var yyq1002 [2]bool + _, _, _ = yysep1002, yyq1002, yy2arr1002 + const yyr1002 bool = false + yyq1002[0] = len(x.Items) != 0 + yyq1002[1] = x.DefaultMode != nil + var yynn1002 int + if yyr1002 || yy2arr1002 { + r.EncodeArrayStart(2) } else { - yynn933 = 0 - for _, b := range yyq933 { + yynn1002 = 0 + for _, b := range yyq1002 { if b { - yynn933++ + yynn1002++ } } - r.EncodeMapStart(yynn933) - yynn933 = 0 + r.EncodeMapStart(yynn1002) + yynn1002 = 0 } - if yyr933 || yy2arr933 { + if yyr1002 || yy2arr1002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq933[0] { + if yyq1002[0] { if x.Items == nil { r.EncodeNil() } else { - yym935 := z.EncBinary() - _ = yym935 + yym1004 := z.EncBinary() + _ = yym1004 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) @@ -13398,15 +14400,15 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq933[0] { + if yyq1002[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { - yym936 := z.EncBinary() - _ = yym936 + yym1005 := z.EncBinary() + _ = yym1005 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) @@ -13414,7 +14416,42 @@ func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr933 || yy2arr933 { + if yyr1002 || yy2arr1002 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1002[1] { + if x.DefaultMode == nil { + r.EncodeNil() + } else { + yy1007 := *x.DefaultMode + yym1008 := z.EncBinary() + _ = yym1008 + if false { + } else { + r.EncodeInt(int64(yy1007)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1002[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DefaultMode == nil { + r.EncodeNil() + } else { + yy1009 := *x.DefaultMode + yym1010 := z.EncBinary() + _ = yym1010 + if false { + } else { + r.EncodeInt(int64(yy1009)) + } + } + } + } + if yyr1002 || yy2arr1002 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13427,25 +14464,25 @@ func (x *DownwardAPIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym937 := z.DecBinary() - _ = yym937 + yym1011 := z.DecBinary() + _ = yym1011 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct938 := r.ContainerType() - if yyct938 == codecSelferValueTypeMap1234 { - yyl938 := r.ReadMapStart() - if yyl938 == 0 { + yyct1012 := r.ContainerType() + if yyct1012 == codecSelferValueTypeMap1234 { + yyl1012 := r.ReadMapStart() + if yyl1012 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl938, d) + x.codecDecodeSelfFromMap(yyl1012, d) } - } else if yyct938 == codecSelferValueTypeArray1234 { - yyl938 := r.ReadArrayStart() - if yyl938 == 0 { + } else if yyct1012 == codecSelferValueTypeArray1234 { + yyl1012 := r.ReadArrayStart() + if yyl1012 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl938, d) + x.codecDecodeSelfFromArray(yyl1012, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13457,12 +14494,12 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys939Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys939Slc - var yyhl939 bool = l >= 0 - for yyj939 := 0; ; yyj939++ { - if yyhl939 { - if yyj939 >= l { + var yys1013Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1013Slc + var yyhl1013 bool = l >= 0 + for yyj1013 := 0; ; yyj1013++ { + if yyhl1013 { + if yyj1013 >= l { break } } else { @@ -13471,26 +14508,42 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys939Slc = r.DecodeBytes(yys939Slc, true, true) - yys939 := string(yys939Slc) + yys1013Slc = r.DecodeBytes(yys1013Slc, true, true) + yys1013 := string(yys1013Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys939 { + switch yys1013 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv940 := &x.Items - yym941 := z.DecBinary() - _ = yym941 + yyv1014 := &x.Items + yym1015 := z.DecBinary() + _ = yym1015 if false { } else { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv940), d) + h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1014), d) + } + } + case "defaultMode": + if r.TryDecodeAsNil() { + if x.DefaultMode != nil { + x.DefaultMode = nil + } + } else { + if x.DefaultMode == nil { + x.DefaultMode = new(int32) + } + yym1017 := z.DecBinary() + _ = yym1017 + if false { + } else { + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys939) - } // end switch yys939 - } // end for yyj939 + z.DecStructFieldNotFound(-1, yys1013) + } // end switch yys1013 + } // end for yyj1013 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13498,16 +14551,16 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj942 int - var yyb942 bool - var yyhl942 bool = l >= 0 - yyj942++ - if yyhl942 { - yyb942 = yyj942 > l + var yyj1018 int + var yyb1018 bool + var yyhl1018 bool = l >= 0 + yyj1018++ + if yyhl1018 { + yyb1018 = yyj1018 > l } else { - yyb942 = r.CheckBreak() + yyb1018 = r.CheckBreak() } - if yyb942 { + if yyb1018 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13515,26 +14568,52 @@ func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Items = nil } else { - yyv943 := &x.Items - yym944 := z.DecBinary() - _ = yym944 + yyv1019 := &x.Items + yym1020 := z.DecBinary() + _ = yym1020 if false { } else { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv943), d) + h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1019), d) + } + } + yyj1018++ + if yyhl1018 { + yyb1018 = yyj1018 > l + } else { + yyb1018 = r.CheckBreak() + } + if yyb1018 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DefaultMode != nil { + x.DefaultMode = nil + } + } else { + if x.DefaultMode == nil { + x.DefaultMode = new(int32) + } + yym1022 := z.DecBinary() + _ = yym1022 + if false { + } else { + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { - yyj942++ - if yyhl942 { - yyb942 = yyj942 > l + yyj1018++ + if yyhl1018 { + yyb1018 = yyj1018 > l } else { - yyb942 = r.CheckBreak() + yyb1018 = r.CheckBreak() } - if yyb942 { + if yyb1018 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj942-1, "") + z.DecStructFieldNotFound(yyj1018-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13546,35 +14625,36 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym945 := z.EncBinary() - _ = yym945 + yym1023 := z.EncBinary() + _ = yym1023 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep946 := !z.EncBinary() - yy2arr946 := z.EncBasicHandle().StructToArray - var yyq946 [3]bool - _, _, _ = yysep946, yyq946, yy2arr946 - const yyr946 bool = false - yyq946[1] = x.FieldRef != nil - yyq946[2] = x.ResourceFieldRef != nil - var yynn946 int - if yyr946 || yy2arr946 { - r.EncodeArrayStart(3) + yysep1024 := !z.EncBinary() + yy2arr1024 := z.EncBasicHandle().StructToArray + var yyq1024 [4]bool + _, _, _ = yysep1024, yyq1024, yy2arr1024 + const yyr1024 bool = false + yyq1024[1] = x.FieldRef != nil + yyq1024[2] = x.ResourceFieldRef != nil + yyq1024[3] = x.Mode != nil + var yynn1024 int + if yyr1024 || yy2arr1024 { + r.EncodeArrayStart(4) } else { - yynn946 = 1 - for _, b := range yyq946 { + yynn1024 = 1 + for _, b := range yyq1024 { if b { - yynn946++ + yynn1024++ } } - r.EncodeMapStart(yynn946) - yynn946 = 0 + r.EncodeMapStart(yynn1024) + yynn1024 = 0 } - if yyr946 || yy2arr946 { + if yyr1024 || yy2arr1024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym948 := z.EncBinary() - _ = yym948 + yym1026 := z.EncBinary() + _ = yym1026 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -13583,16 +14663,16 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym949 := z.EncBinary() - _ = yym949 + yym1027 := z.EncBinary() + _ = yym1027 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr946 || yy2arr946 { + if yyr1024 || yy2arr1024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq946[1] { + if yyq1024[1] { if x.FieldRef == nil { r.EncodeNil() } else { @@ -13602,7 +14682,7 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq946[1] { + if yyq1024[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -13613,9 +14693,9 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr946 || yy2arr946 { + if yyr1024 || yy2arr1024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq946[2] { + if yyq1024[2] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { @@ -13625,7 +14705,7 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq946[2] { + if yyq1024[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -13636,7 +14716,42 @@ func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr946 || yy2arr946 { + if yyr1024 || yy2arr1024 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1024[3] { + if x.Mode == nil { + r.EncodeNil() + } else { + yy1031 := *x.Mode + yym1032 := z.EncBinary() + _ = yym1032 + if false { + } else { + r.EncodeInt(int64(yy1031)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1024[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("mode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Mode == nil { + r.EncodeNil() + } else { + yy1033 := *x.Mode + yym1034 := z.EncBinary() + _ = yym1034 + if false { + } else { + r.EncodeInt(int64(yy1033)) + } + } + } + } + if yyr1024 || yy2arr1024 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13649,25 +14764,25 @@ func (x *DownwardAPIVolumeFile) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym952 := z.DecBinary() - _ = yym952 + yym1035 := z.DecBinary() + _ = yym1035 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct953 := r.ContainerType() - if yyct953 == codecSelferValueTypeMap1234 { - yyl953 := r.ReadMapStart() - if yyl953 == 0 { + yyct1036 := r.ContainerType() + if yyct1036 == codecSelferValueTypeMap1234 { + yyl1036 := r.ReadMapStart() + if yyl1036 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl953, d) + x.codecDecodeSelfFromMap(yyl1036, d) } - } else if yyct953 == codecSelferValueTypeArray1234 { - yyl953 := r.ReadArrayStart() - if yyl953 == 0 { + } else if yyct1036 == codecSelferValueTypeArray1234 { + yyl1036 := r.ReadArrayStart() + if yyl1036 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl953, d) + x.codecDecodeSelfFromArray(yyl1036, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13679,12 +14794,12 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys954Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys954Slc - var yyhl954 bool = l >= 0 - for yyj954 := 0; ; yyj954++ { - if yyhl954 { - if yyj954 >= l { + var yys1037Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1037Slc + var yyhl1037 bool = l >= 0 + for yyj1037 := 0; ; yyj1037++ { + if yyhl1037 { + if yyj1037 >= l { break } } else { @@ -13693,10 +14808,10 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys954Slc = r.DecodeBytes(yys954Slc, true, true) - yys954 := string(yys954Slc) + yys1037Slc = r.DecodeBytes(yys1037Slc, true, true) + yys1037 := string(yys1037Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys954 { + switch yys1037 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -13725,10 +14840,26 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decod } x.ResourceFieldRef.CodecDecodeSelf(d) } + case "mode": + if r.TryDecodeAsNil() { + if x.Mode != nil { + x.Mode = nil + } + } else { + if x.Mode == nil { + x.Mode = new(int32) + } + yym1042 := z.DecBinary() + _ = yym1042 + if false { + } else { + *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) + } + } default: - z.DecStructFieldNotFound(-1, yys954) - } // end switch yys954 - } // end for yyj954 + z.DecStructFieldNotFound(-1, yys1037) + } // end switch yys1037 + } // end for yyj1037 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13736,16 +14867,16 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj958 int - var yyb958 bool - var yyhl958 bool = l >= 0 - yyj958++ - if yyhl958 { - yyb958 = yyj958 > l + var yyj1043 int + var yyb1043 bool + var yyhl1043 bool = l >= 0 + yyj1043++ + if yyhl1043 { + yyb1043 = yyj1043 > l } else { - yyb958 = r.CheckBreak() + yyb1043 = r.CheckBreak() } - if yyb958 { + if yyb1043 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13755,13 +14886,13 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Path = string(r.DecodeString()) } - yyj958++ - if yyhl958 { - yyb958 = yyj958 > l + yyj1043++ + if yyhl1043 { + yyb1043 = yyj1043 > l } else { - yyb958 = r.CheckBreak() + yyb1043 = r.CheckBreak() } - if yyb958 { + if yyb1043 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13776,13 +14907,13 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } x.FieldRef.CodecDecodeSelf(d) } - yyj958++ - if yyhl958 { - yyb958 = yyj958 > l + yyj1043++ + if yyhl1043 { + yyb1043 = yyj1043 > l } else { - yyb958 = r.CheckBreak() + yyb1043 = r.CheckBreak() } - if yyb958 { + if yyb1043 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13797,18 +14928,44 @@ func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Dec } x.ResourceFieldRef.CodecDecodeSelf(d) } - for { - yyj958++ - if yyhl958 { - yyb958 = yyj958 > l - } else { - yyb958 = r.CheckBreak() + yyj1043++ + if yyhl1043 { + yyb1043 = yyj1043 > l + } else { + yyb1043 = r.CheckBreak() + } + if yyb1043 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Mode != nil { + x.Mode = nil } - if yyb958 { + } else { + if x.Mode == nil { + x.Mode = new(int32) + } + yym1048 := z.DecBinary() + _ = yym1048 + if false { + } else { + *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) + } + } + for { + yyj1043++ + if yyhl1043 { + yyb1043 = yyj1043 > l + } else { + yyb1043 = r.CheckBreak() + } + if yyb1043 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj958-1, "") + z.DecStructFieldNotFound(yyj1043-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13820,34 +14977,34 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym962 := z.EncBinary() - _ = yym962 + yym1049 := z.EncBinary() + _ = yym1049 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep963 := !z.EncBinary() - yy2arr963 := z.EncBasicHandle().StructToArray - var yyq963 [3]bool - _, _, _ = yysep963, yyq963, yy2arr963 - const yyr963 bool = false - yyq963[2] = x.ReadOnly != false - var yynn963 int - if yyr963 || yy2arr963 { + yysep1050 := !z.EncBinary() + yy2arr1050 := z.EncBasicHandle().StructToArray + var yyq1050 [3]bool + _, _, _ = yysep1050, yyq1050, yy2arr1050 + const yyr1050 bool = false + yyq1050[2] = x.ReadOnly != false + var yynn1050 int + if yyr1050 || yy2arr1050 { r.EncodeArrayStart(3) } else { - yynn963 = 2 - for _, b := range yyq963 { + yynn1050 = 2 + for _, b := range yyq1050 { if b { - yynn963++ + yynn1050++ } } - r.EncodeMapStart(yynn963) - yynn963 = 0 + r.EncodeMapStart(yynn1050) + yynn1050 = 0 } - if yyr963 || yy2arr963 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym965 := z.EncBinary() - _ = yym965 + yym1052 := z.EncBinary() + _ = yym1052 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) @@ -13856,17 +15013,17 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym966 := z.EncBinary() - _ = yym966 + yym1053 := z.EncBinary() + _ = yym1053 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } - if yyr963 || yy2arr963 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym968 := z.EncBinary() - _ = yym968 + yym1055 := z.EncBinary() + _ = yym1055 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) @@ -13875,18 +15032,18 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("shareName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym969 := z.EncBinary() - _ = yym969 + yym1056 := z.EncBinary() + _ = yym1056 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) } } - if yyr963 || yy2arr963 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq963[2] { - yym971 := z.EncBinary() - _ = yym971 + if yyq1050[2] { + yym1058 := z.EncBinary() + _ = yym1058 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -13895,19 +15052,19 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq963[2] { + if yyq1050[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym972 := z.EncBinary() - _ = yym972 + yym1059 := z.EncBinary() + _ = yym1059 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr963 || yy2arr963 { + if yyr1050 || yy2arr1050 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13920,25 +15077,25 @@ func (x *AzureFileVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym973 := z.DecBinary() - _ = yym973 + yym1060 := z.DecBinary() + _ = yym1060 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct974 := r.ContainerType() - if yyct974 == codecSelferValueTypeMap1234 { - yyl974 := r.ReadMapStart() - if yyl974 == 0 { + yyct1061 := r.ContainerType() + if yyct1061 == codecSelferValueTypeMap1234 { + yyl1061 := r.ReadMapStart() + if yyl1061 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl974, d) + x.codecDecodeSelfFromMap(yyl1061, d) } - } else if yyct974 == codecSelferValueTypeArray1234 { - yyl974 := r.ReadArrayStart() - if yyl974 == 0 { + } else if yyct1061 == codecSelferValueTypeArray1234 { + yyl1061 := r.ReadArrayStart() + if yyl1061 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl974, d) + x.codecDecodeSelfFromArray(yyl1061, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13950,12 +15107,12 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys975Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys975Slc - var yyhl975 bool = l >= 0 - for yyj975 := 0; ; yyj975++ { - if yyhl975 { - if yyj975 >= l { + var yys1062Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1062Slc + var yyhl1062 bool = l >= 0 + for yyj1062 := 0; ; yyj1062++ { + if yyhl1062 { + if yyj1062 >= l { break } } else { @@ -13964,10 +15121,10 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys975Slc = r.DecodeBytes(yys975Slc, true, true) - yys975 := string(yys975Slc) + yys1062Slc = r.DecodeBytes(yys1062Slc, true, true) + yys1062 := string(yys1062Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys975 { + switch yys1062 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" @@ -13987,9 +15144,9 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys975) - } // end switch yys975 - } // end for yyj975 + z.DecStructFieldNotFound(-1, yys1062) + } // end switch yys1062 + } // end for yyj1062 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13997,16 +15154,16 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj979 int - var yyb979 bool - var yyhl979 bool = l >= 0 - yyj979++ - if yyhl979 { - yyb979 = yyj979 > l + var yyj1066 int + var yyb1066 bool + var yyhl1066 bool = l >= 0 + yyj1066++ + if yyhl1066 { + yyb1066 = yyj1066 > l } else { - yyb979 = r.CheckBreak() + yyb1066 = r.CheckBreak() } - if yyb979 { + if yyb1066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14016,13 +15173,13 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.SecretName = string(r.DecodeString()) } - yyj979++ - if yyhl979 { - yyb979 = yyj979 > l + yyj1066++ + if yyhl1066 { + yyb1066 = yyj1066 > l } else { - yyb979 = r.CheckBreak() + yyb1066 = r.CheckBreak() } - if yyb979 { + if yyb1066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14032,13 +15189,13 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.ShareName = string(r.DecodeString()) } - yyj979++ - if yyhl979 { - yyb979 = yyj979 > l + yyj1066++ + if yyhl1066 { + yyb1066 = yyj1066 > l } else { - yyb979 = r.CheckBreak() + yyb1066 = r.CheckBreak() } - if yyb979 { + if yyb1066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14049,17 +15206,17 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.ReadOnly = bool(r.DecodeBool()) } for { - yyj979++ - if yyhl979 { - yyb979 = yyj979 > l + yyj1066++ + if yyhl1066 { + yyb1066 = yyj1066 > l } else { - yyb979 = r.CheckBreak() + yyb1066 = r.CheckBreak() } - if yyb979 { + if yyb1066 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj979-1, "") + z.DecStructFieldNotFound(yyj1066-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14071,34 +15228,34 @@ func (x *VsphereVirtualDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym983 := z.EncBinary() - _ = yym983 + yym1070 := z.EncBinary() + _ = yym1070 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep984 := !z.EncBinary() - yy2arr984 := z.EncBasicHandle().StructToArray - var yyq984 [2]bool - _, _, _ = yysep984, yyq984, yy2arr984 - const yyr984 bool = false - yyq984[1] = x.FSType != "" - var yynn984 int - if yyr984 || yy2arr984 { + yysep1071 := !z.EncBinary() + yy2arr1071 := z.EncBasicHandle().StructToArray + var yyq1071 [2]bool + _, _, _ = yysep1071, yyq1071, yy2arr1071 + const yyr1071 bool = false + yyq1071[1] = x.FSType != "" + var yynn1071 int + if yyr1071 || yy2arr1071 { r.EncodeArrayStart(2) } else { - yynn984 = 1 - for _, b := range yyq984 { + yynn1071 = 1 + for _, b := range yyq1071 { if b { - yynn984++ + yynn1071++ } } - r.EncodeMapStart(yynn984) - yynn984 = 0 + r.EncodeMapStart(yynn1071) + yynn1071 = 0 } - if yyr984 || yy2arr984 { + if yyr1071 || yy2arr1071 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym986 := z.EncBinary() - _ = yym986 + yym1073 := z.EncBinary() + _ = yym1073 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) @@ -14107,18 +15264,18 @@ func (x *VsphereVirtualDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym987 := z.EncBinary() - _ = yym987 + yym1074 := z.EncBinary() + _ = yym1074 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) } } - if yyr984 || yy2arr984 { + if yyr1071 || yy2arr1071 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq984[1] { - yym989 := z.EncBinary() - _ = yym989 + if yyq1071[1] { + yym1076 := z.EncBinary() + _ = yym1076 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -14127,19 +15284,19 @@ func (x *VsphereVirtualDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq984[1] { + if yyq1071[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym990 := z.EncBinary() - _ = yym990 + yym1077 := z.EncBinary() + _ = yym1077 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr984 || yy2arr984 { + if yyr1071 || yy2arr1071 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14152,25 +15309,25 @@ func (x *VsphereVirtualDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym991 := z.DecBinary() - _ = yym991 + yym1078 := z.DecBinary() + _ = yym1078 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct992 := r.ContainerType() - if yyct992 == codecSelferValueTypeMap1234 { - yyl992 := r.ReadMapStart() - if yyl992 == 0 { + yyct1079 := r.ContainerType() + if yyct1079 == codecSelferValueTypeMap1234 { + yyl1079 := r.ReadMapStart() + if yyl1079 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl992, d) + x.codecDecodeSelfFromMap(yyl1079, d) } - } else if yyct992 == codecSelferValueTypeArray1234 { - yyl992 := r.ReadArrayStart() - if yyl992 == 0 { + } else if yyct1079 == codecSelferValueTypeArray1234 { + yyl1079 := r.ReadArrayStart() + if yyl1079 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl992, d) + x.codecDecodeSelfFromArray(yyl1079, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14182,12 +15339,12 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys993Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys993Slc - var yyhl993 bool = l >= 0 - for yyj993 := 0; ; yyj993++ { - if yyhl993 { - if yyj993 >= l { + var yys1080Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1080Slc + var yyhl1080 bool = l >= 0 + for yyj1080 := 0; ; yyj1080++ { + if yyhl1080 { + if yyj1080 >= l { break } } else { @@ -14196,10 +15353,10 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys993Slc = r.DecodeBytes(yys993Slc, true, true) - yys993 := string(yys993Slc) + yys1080Slc = r.DecodeBytes(yys1080Slc, true, true) + yys1080 := string(yys1080Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys993 { + switch yys1080 { case "volumePath": if r.TryDecodeAsNil() { x.VolumePath = "" @@ -14213,9 +15370,9 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1 x.FSType = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys993) - } // end switch yys993 - } // end for yyj993 + z.DecStructFieldNotFound(-1, yys1080) + } // end switch yys1080 + } // end for yyj1080 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14223,16 +15380,16 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *code var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj996 int - var yyb996 bool - var yyhl996 bool = l >= 0 - yyj996++ - if yyhl996 { - yyb996 = yyj996 > l + var yyj1083 int + var yyb1083 bool + var yyhl1083 bool = l >= 0 + yyj1083++ + if yyhl1083 { + yyb1083 = yyj1083 > l } else { - yyb996 = r.CheckBreak() + yyb1083 = r.CheckBreak() } - if yyb996 { + if yyb1083 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14242,13 +15399,13 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *code } else { x.VolumePath = string(r.DecodeString()) } - yyj996++ - if yyhl996 { - yyb996 = yyj996 > l + yyj1083++ + if yyhl1083 { + yyb1083 = yyj1083 > l } else { - yyb996 = r.CheckBreak() + yyb1083 = r.CheckBreak() } - if yyb996 { + if yyb1083 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14259,17 +15416,460 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *code x.FSType = string(r.DecodeString()) } for { - yyj996++ - if yyhl996 { - yyb996 = yyj996 > l + yyj1083++ + if yyhl1083 { + yyb1083 = yyj1083 > l } else { - yyb996 = r.CheckBreak() + yyb1083 = r.CheckBreak() } - if yyb996 { + if yyb1083 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj996-1, "") + z.DecStructFieldNotFound(yyj1083-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x AzureDataDiskCachingMode) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1086 := z.EncBinary() + _ = yym1086 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *AzureDataDiskCachingMode) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1087 := z.DecBinary() + _ = yym1087 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *AzureDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1088 := z.EncBinary() + _ = yym1088 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1089 := !z.EncBinary() + yy2arr1089 := z.EncBasicHandle().StructToArray + var yyq1089 [5]bool + _, _, _ = yysep1089, yyq1089, yy2arr1089 + const yyr1089 bool = false + yyq1089[2] = x.CachingMode != nil + yyq1089[3] = x.FSType != nil + yyq1089[4] = x.ReadOnly != nil + var yynn1089 int + if yyr1089 || yy2arr1089 { + r.EncodeArrayStart(5) + } else { + yynn1089 = 2 + for _, b := range yyq1089 { + if b { + yynn1089++ + } + } + r.EncodeMapStart(yynn1089) + yynn1089 = 0 + } + if yyr1089 || yy2arr1089 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1091 := z.EncBinary() + _ = yym1091 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DiskName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("diskName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1092 := z.EncBinary() + _ = yym1092 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DiskName)) + } + } + if yyr1089 || yy2arr1089 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1094 := z.EncBinary() + _ = yym1094 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("diskURI")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1095 := z.EncBinary() + _ = yym1095 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI)) + } + } + if yyr1089 || yy2arr1089 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1089[2] { + if x.CachingMode == nil { + r.EncodeNil() + } else { + yy1097 := *x.CachingMode + yy1097.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1089[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cachingMode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.CachingMode == nil { + r.EncodeNil() + } else { + yy1098 := *x.CachingMode + yy1098.CodecEncodeSelf(e) + } + } + } + if yyr1089 || yy2arr1089 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1089[3] { + if x.FSType == nil { + r.EncodeNil() + } else { + yy1100 := *x.FSType + yym1101 := z.EncBinary() + _ = yym1101 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy1100)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1089[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.FSType == nil { + r.EncodeNil() + } else { + yy1102 := *x.FSType + yym1103 := z.EncBinary() + _ = yym1103 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy1102)) + } + } + } + } + if yyr1089 || yy2arr1089 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1089[4] { + if x.ReadOnly == nil { + r.EncodeNil() + } else { + yy1105 := *x.ReadOnly + yym1106 := z.EncBinary() + _ = yym1106 + if false { + } else { + r.EncodeBool(bool(yy1105)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1089[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ReadOnly == nil { + r.EncodeNil() + } else { + yy1107 := *x.ReadOnly + yym1108 := z.EncBinary() + _ = yym1108 + if false { + } else { + r.EncodeBool(bool(yy1107)) + } + } + } + } + if yyr1089 || yy2arr1089 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *AzureDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1109 := z.DecBinary() + _ = yym1109 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1110 := r.ContainerType() + if yyct1110 == codecSelferValueTypeMap1234 { + yyl1110 := r.ReadMapStart() + if yyl1110 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1110, d) + } + } else if yyct1110 == codecSelferValueTypeArray1234 { + yyl1110 := r.ReadArrayStart() + if yyl1110 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1110, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *AzureDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys1111Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1111Slc + var yyhl1111 bool = l >= 0 + for yyj1111 := 0; ; yyj1111++ { + if yyhl1111 { + if yyj1111 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1111Slc = r.DecodeBytes(yys1111Slc, true, true) + yys1111 := string(yys1111Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1111 { + case "diskName": + if r.TryDecodeAsNil() { + x.DiskName = "" + } else { + x.DiskName = string(r.DecodeString()) + } + case "diskURI": + if r.TryDecodeAsNil() { + x.DataDiskURI = "" + } else { + x.DataDiskURI = string(r.DecodeString()) + } + case "cachingMode": + if r.TryDecodeAsNil() { + if x.CachingMode != nil { + x.CachingMode = nil + } + } else { + if x.CachingMode == nil { + x.CachingMode = new(AzureDataDiskCachingMode) + } + x.CachingMode.CodecDecodeSelf(d) + } + case "fsType": + if r.TryDecodeAsNil() { + if x.FSType != nil { + x.FSType = nil + } + } else { + if x.FSType == nil { + x.FSType = new(string) + } + yym1116 := z.DecBinary() + _ = yym1116 + if false { + } else { + *((*string)(x.FSType)) = r.DecodeString() + } + } + case "readOnly": + if r.TryDecodeAsNil() { + if x.ReadOnly != nil { + x.ReadOnly = nil + } + } else { + if x.ReadOnly == nil { + x.ReadOnly = new(bool) + } + yym1118 := z.DecBinary() + _ = yym1118 + if false { + } else { + *((*bool)(x.ReadOnly)) = r.DecodeBool() + } + } + default: + z.DecStructFieldNotFound(-1, yys1111) + } // end switch yys1111 + } // end for yyj1111 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj1119 int + var yyb1119 bool + var yyhl1119 bool = l >= 0 + yyj1119++ + if yyhl1119 { + yyb1119 = yyj1119 > l + } else { + yyb1119 = r.CheckBreak() + } + if yyb1119 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DiskName = "" + } else { + x.DiskName = string(r.DecodeString()) + } + yyj1119++ + if yyhl1119 { + yyb1119 = yyj1119 > l + } else { + yyb1119 = r.CheckBreak() + } + if yyb1119 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DataDiskURI = "" + } else { + x.DataDiskURI = string(r.DecodeString()) + } + yyj1119++ + if yyhl1119 { + yyb1119 = yyj1119 > l + } else { + yyb1119 = r.CheckBreak() + } + if yyb1119 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.CachingMode != nil { + x.CachingMode = nil + } + } else { + if x.CachingMode == nil { + x.CachingMode = new(AzureDataDiskCachingMode) + } + x.CachingMode.CodecDecodeSelf(d) + } + yyj1119++ + if yyhl1119 { + yyb1119 = yyj1119 > l + } else { + yyb1119 = r.CheckBreak() + } + if yyb1119 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FSType != nil { + x.FSType = nil + } + } else { + if x.FSType == nil { + x.FSType = new(string) + } + yym1124 := z.DecBinary() + _ = yym1124 + if false { + } else { + *((*string)(x.FSType)) = r.DecodeString() + } + } + yyj1119++ + if yyhl1119 { + yyb1119 = yyj1119 > l + } else { + yyb1119 = r.CheckBreak() + } + if yyb1119 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ReadOnly != nil { + x.ReadOnly = nil + } + } else { + if x.ReadOnly == nil { + x.ReadOnly = new(bool) + } + yym1126 := z.DecBinary() + _ = yym1126 + if false { + } else { + *((*bool)(x.ReadOnly)) = r.DecodeBool() + } + } + for { + yyj1119++ + if yyhl1119 { + yyb1119 = yyj1119 > l + } else { + yyb1119 = r.CheckBreak() + } + if yyb1119 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1119-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14281,34 +15881,35 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym999 := z.EncBinary() - _ = yym999 + yym1127 := z.EncBinary() + _ = yym1127 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1000 := !z.EncBinary() - yy2arr1000 := z.EncBasicHandle().StructToArray - var yyq1000 [2]bool - _, _, _ = yysep1000, yyq1000, yy2arr1000 - const yyr1000 bool = false - yyq1000[1] = len(x.Items) != 0 - var yynn1000 int - if yyr1000 || yy2arr1000 { - r.EncodeArrayStart(2) + yysep1128 := !z.EncBinary() + yy2arr1128 := z.EncBasicHandle().StructToArray + var yyq1128 [3]bool + _, _, _ = yysep1128, yyq1128, yy2arr1128 + const yyr1128 bool = false + yyq1128[1] = len(x.Items) != 0 + yyq1128[2] = x.DefaultMode != nil + var yynn1128 int + if yyr1128 || yy2arr1128 { + r.EncodeArrayStart(3) } else { - yynn1000 = 1 - for _, b := range yyq1000 { + yynn1128 = 1 + for _, b := range yyq1128 { if b { - yynn1000++ + yynn1128++ } } - r.EncodeMapStart(yynn1000) - yynn1000 = 0 + r.EncodeMapStart(yynn1128) + yynn1128 = 0 } - if yyr1000 || yy2arr1000 { + if yyr1128 || yy2arr1128 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1002 := z.EncBinary() - _ = yym1002 + yym1130 := z.EncBinary() + _ = yym1130 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -14317,21 +15918,21 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1003 := z.EncBinary() - _ = yym1003 + yym1131 := z.EncBinary() + _ = yym1131 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1000 || yy2arr1000 { + if yyr1128 || yy2arr1128 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1000[1] { + if yyq1128[1] { if x.Items == nil { r.EncodeNil() } else { - yym1005 := z.EncBinary() - _ = yym1005 + yym1133 := z.EncBinary() + _ = yym1133 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -14341,15 +15942,15 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1000[1] { + if yyq1128[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { - yym1006 := z.EncBinary() - _ = yym1006 + yym1134 := z.EncBinary() + _ = yym1134 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -14357,7 +15958,42 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1000 || yy2arr1000 { + if yyr1128 || yy2arr1128 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1128[2] { + if x.DefaultMode == nil { + r.EncodeNil() + } else { + yy1136 := *x.DefaultMode + yym1137 := z.EncBinary() + _ = yym1137 + if false { + } else { + r.EncodeInt(int64(yy1136)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1128[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DefaultMode == nil { + r.EncodeNil() + } else { + yy1138 := *x.DefaultMode + yym1139 := z.EncBinary() + _ = yym1139 + if false { + } else { + r.EncodeInt(int64(yy1138)) + } + } + } + } + if yyr1128 || yy2arr1128 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14370,25 +16006,25 @@ func (x *ConfigMapVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1007 := z.DecBinary() - _ = yym1007 + yym1140 := z.DecBinary() + _ = yym1140 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1008 := r.ContainerType() - if yyct1008 == codecSelferValueTypeMap1234 { - yyl1008 := r.ReadMapStart() - if yyl1008 == 0 { + yyct1141 := r.ContainerType() + if yyct1141 == codecSelferValueTypeMap1234 { + yyl1141 := r.ReadMapStart() + if yyl1141 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1008, d) + x.codecDecodeSelfFromMap(yyl1141, d) } - } else if yyct1008 == codecSelferValueTypeArray1234 { - yyl1008 := r.ReadArrayStart() - if yyl1008 == 0 { + } else if yyct1141 == codecSelferValueTypeArray1234 { + yyl1141 := r.ReadArrayStart() + if yyl1141 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1008, d) + x.codecDecodeSelfFromArray(yyl1141, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14400,12 +16036,12 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1009Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1009Slc - var yyhl1009 bool = l >= 0 - for yyj1009 := 0; ; yyj1009++ { - if yyhl1009 { - if yyj1009 >= l { + var yys1142Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1142Slc + var yyhl1142 bool = l >= 0 + for yyj1142 := 0; ; yyj1142++ { + if yyhl1142 { + if yyj1142 >= l { break } } else { @@ -14414,10 +16050,10 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1009Slc = r.DecodeBytes(yys1009Slc, true, true) - yys1009 := string(yys1009Slc) + yys1142Slc = r.DecodeBytes(yys1142Slc, true, true) + yys1142 := string(yys1142Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1009 { + switch yys1142 { case "Name": if r.TryDecodeAsNil() { x.Name = "" @@ -14428,18 +16064,34 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1011 := &x.Items - yym1012 := z.DecBinary() - _ = yym1012 + yyv1144 := &x.Items + yym1145 := z.DecBinary() + _ = yym1145 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv1011), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv1144), d) + } + } + case "defaultMode": + if r.TryDecodeAsNil() { + if x.DefaultMode != nil { + x.DefaultMode = nil + } + } else { + if x.DefaultMode == nil { + x.DefaultMode = new(int32) + } + yym1147 := z.DecBinary() + _ = yym1147 + if false { + } else { + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys1009) - } // end switch yys1009 - } // end for yyj1009 + z.DecStructFieldNotFound(-1, yys1142) + } // end switch yys1142 + } // end for yyj1142 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14447,16 +16099,16 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1013 int - var yyb1013 bool - var yyhl1013 bool = l >= 0 - yyj1013++ - if yyhl1013 { - yyb1013 = yyj1013 > l + var yyj1148 int + var yyb1148 bool + var yyhl1148 bool = l >= 0 + yyj1148++ + if yyhl1148 { + yyb1148 = yyj1148 > l } else { - yyb1013 = r.CheckBreak() + yyb1148 = r.CheckBreak() } - if yyb1013 { + if yyb1148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14466,13 +16118,13 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Name = string(r.DecodeString()) } - yyj1013++ - if yyhl1013 { - yyb1013 = yyj1013 > l + yyj1148++ + if yyhl1148 { + yyb1148 = yyj1148 > l } else { - yyb1013 = r.CheckBreak() + yyb1148 = r.CheckBreak() } - if yyb1013 { + if yyb1148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14480,26 +16132,52 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1015 := &x.Items - yym1016 := z.DecBinary() - _ = yym1016 + yyv1150 := &x.Items + yym1151 := z.DecBinary() + _ = yym1151 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv1015), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv1150), d) + } + } + yyj1148++ + if yyhl1148 { + yyb1148 = yyj1148 > l + } else { + yyb1148 = r.CheckBreak() + } + if yyb1148 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DefaultMode != nil { + x.DefaultMode = nil + } + } else { + if x.DefaultMode == nil { + x.DefaultMode = new(int32) + } + yym1153 := z.DecBinary() + _ = yym1153 + if false { + } else { + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { - yyj1013++ - if yyhl1013 { - yyb1013 = yyj1013 > l + yyj1148++ + if yyhl1148 { + yyb1148 = yyj1148 > l } else { - yyb1013 = r.CheckBreak() + yyb1148 = r.CheckBreak() } - if yyb1013 { + if yyb1148 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1013-1, "") + z.DecStructFieldNotFound(yyj1148-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14511,33 +16189,34 @@ func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1017 := z.EncBinary() - _ = yym1017 + yym1154 := z.EncBinary() + _ = yym1154 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1018 := !z.EncBinary() - yy2arr1018 := z.EncBasicHandle().StructToArray - var yyq1018 [2]bool - _, _, _ = yysep1018, yyq1018, yy2arr1018 - const yyr1018 bool = false - var yynn1018 int - if yyr1018 || yy2arr1018 { - r.EncodeArrayStart(2) + yysep1155 := !z.EncBinary() + yy2arr1155 := z.EncBasicHandle().StructToArray + var yyq1155 [3]bool + _, _, _ = yysep1155, yyq1155, yy2arr1155 + const yyr1155 bool = false + yyq1155[2] = x.Mode != nil + var yynn1155 int + if yyr1155 || yy2arr1155 { + r.EncodeArrayStart(3) } else { - yynn1018 = 2 - for _, b := range yyq1018 { + yynn1155 = 2 + for _, b := range yyq1155 { if b { - yynn1018++ + yynn1155++ } } - r.EncodeMapStart(yynn1018) - yynn1018 = 0 + r.EncodeMapStart(yynn1155) + yynn1155 = 0 } - if yyr1018 || yy2arr1018 { + if yyr1155 || yy2arr1155 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1020 := z.EncBinary() - _ = yym1020 + yym1157 := z.EncBinary() + _ = yym1157 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -14546,17 +16225,17 @@ func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1021 := z.EncBinary() - _ = yym1021 + yym1158 := z.EncBinary() + _ = yym1158 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1018 || yy2arr1018 { + if yyr1155 || yy2arr1155 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1023 := z.EncBinary() - _ = yym1023 + yym1160 := z.EncBinary() + _ = yym1160 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -14565,14 +16244,49 @@ func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1024 := z.EncBinary() - _ = yym1024 + yym1161 := z.EncBinary() + _ = yym1161 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr1018 || yy2arr1018 { + if yyr1155 || yy2arr1155 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1155[2] { + if x.Mode == nil { + r.EncodeNil() + } else { + yy1163 := *x.Mode + yym1164 := z.EncBinary() + _ = yym1164 + if false { + } else { + r.EncodeInt(int64(yy1163)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1155[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("mode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Mode == nil { + r.EncodeNil() + } else { + yy1165 := *x.Mode + yym1166 := z.EncBinary() + _ = yym1166 + if false { + } else { + r.EncodeInt(int64(yy1165)) + } + } + } + } + if yyr1155 || yy2arr1155 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14585,25 +16299,25 @@ func (x *KeyToPath) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1025 := z.DecBinary() - _ = yym1025 + yym1167 := z.DecBinary() + _ = yym1167 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1026 := r.ContainerType() - if yyct1026 == codecSelferValueTypeMap1234 { - yyl1026 := r.ReadMapStart() - if yyl1026 == 0 { + yyct1168 := r.ContainerType() + if yyct1168 == codecSelferValueTypeMap1234 { + yyl1168 := r.ReadMapStart() + if yyl1168 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1026, d) + x.codecDecodeSelfFromMap(yyl1168, d) } - } else if yyct1026 == codecSelferValueTypeArray1234 { - yyl1026 := r.ReadArrayStart() - if yyl1026 == 0 { + } else if yyct1168 == codecSelferValueTypeArray1234 { + yyl1168 := r.ReadArrayStart() + if yyl1168 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1026, d) + x.codecDecodeSelfFromArray(yyl1168, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14615,12 +16329,12 @@ func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1027Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1027Slc - var yyhl1027 bool = l >= 0 - for yyj1027 := 0; ; yyj1027++ { - if yyhl1027 { - if yyj1027 >= l { + var yys1169Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1169Slc + var yyhl1169 bool = l >= 0 + for yyj1169 := 0; ; yyj1169++ { + if yyhl1169 { + if yyj1169 >= l { break } } else { @@ -14629,10 +16343,10 @@ func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1027Slc = r.DecodeBytes(yys1027Slc, true, true) - yys1027 := string(yys1027Slc) + yys1169Slc = r.DecodeBytes(yys1169Slc, true, true) + yys1169 := string(yys1169Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1027 { + switch yys1169 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -14645,10 +16359,26 @@ func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.Path = string(r.DecodeString()) } + case "mode": + if r.TryDecodeAsNil() { + if x.Mode != nil { + x.Mode = nil + } + } else { + if x.Mode == nil { + x.Mode = new(int32) + } + yym1173 := z.DecBinary() + _ = yym1173 + if false { + } else { + *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) + } + } default: - z.DecStructFieldNotFound(-1, yys1027) - } // end switch yys1027 - } // end for yyj1027 + z.DecStructFieldNotFound(-1, yys1169) + } // end switch yys1169 + } // end for yyj1169 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14656,16 +16386,16 @@ func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1030 int - var yyb1030 bool - var yyhl1030 bool = l >= 0 - yyj1030++ - if yyhl1030 { - yyb1030 = yyj1030 > l + var yyj1174 int + var yyb1174 bool + var yyhl1174 bool = l >= 0 + yyj1174++ + if yyhl1174 { + yyb1174 = yyj1174 > l } else { - yyb1030 = r.CheckBreak() + yyb1174 = r.CheckBreak() } - if yyb1030 { + if yyb1174 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14675,13 +16405,13 @@ func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Key = string(r.DecodeString()) } - yyj1030++ - if yyhl1030 { - yyb1030 = yyj1030 > l + yyj1174++ + if yyhl1174 { + yyb1174 = yyj1174 > l } else { - yyb1030 = r.CheckBreak() + yyb1174 = r.CheckBreak() } - if yyb1030 { + if yyb1174 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14691,18 +16421,44 @@ func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Path = string(r.DecodeString()) } - for { - yyj1030++ - if yyhl1030 { - yyb1030 = yyj1030 > l - } else { - yyb1030 = r.CheckBreak() + yyj1174++ + if yyhl1174 { + yyb1174 = yyj1174 > l + } else { + yyb1174 = r.CheckBreak() + } + if yyb1174 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Mode != nil { + x.Mode = nil } - if yyb1030 { + } else { + if x.Mode == nil { + x.Mode = new(int32) + } + yym1178 := z.DecBinary() + _ = yym1178 + if false { + } else { + *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) + } + } + for { + yyj1174++ + if yyhl1174 { + yyb1174 = yyj1174 > l + } else { + yyb1174 = r.CheckBreak() + } + if yyb1174 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1030-1, "") + z.DecStructFieldNotFound(yyj1174-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14714,38 +16470,38 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1033 := z.EncBinary() - _ = yym1033 + yym1179 := z.EncBinary() + _ = yym1179 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1034 := !z.EncBinary() - yy2arr1034 := z.EncBasicHandle().StructToArray - var yyq1034 [5]bool - _, _, _ = yysep1034, yyq1034, yy2arr1034 - const yyr1034 bool = false - yyq1034[0] = x.Name != "" - yyq1034[1] = x.HostPort != 0 - yyq1034[3] = x.Protocol != "" - yyq1034[4] = x.HostIP != "" - var yynn1034 int - if yyr1034 || yy2arr1034 { + yysep1180 := !z.EncBinary() + yy2arr1180 := z.EncBasicHandle().StructToArray + var yyq1180 [5]bool + _, _, _ = yysep1180, yyq1180, yy2arr1180 + const yyr1180 bool = false + yyq1180[0] = x.Name != "" + yyq1180[1] = x.HostPort != 0 + yyq1180[3] = x.Protocol != "" + yyq1180[4] = x.HostIP != "" + var yynn1180 int + if yyr1180 || yy2arr1180 { r.EncodeArrayStart(5) } else { - yynn1034 = 1 - for _, b := range yyq1034 { + yynn1180 = 1 + for _, b := range yyq1180 { if b { - yynn1034++ + yynn1180++ } } - r.EncodeMapStart(yynn1034) - yynn1034 = 0 + r.EncodeMapStart(yynn1180) + yynn1180 = 0 } - if yyr1034 || yy2arr1034 { + if yyr1180 || yy2arr1180 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1034[0] { - yym1036 := z.EncBinary() - _ = yym1036 + if yyq1180[0] { + yym1182 := z.EncBinary() + _ = yym1182 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -14754,23 +16510,23 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1034[0] { + if yyq1180[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1037 := z.EncBinary() - _ = yym1037 + yym1183 := z.EncBinary() + _ = yym1183 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr1034 || yy2arr1034 { + if yyr1180 || yy2arr1180 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1034[1] { - yym1039 := z.EncBinary() - _ = yym1039 + if yyq1180[1] { + yym1185 := z.EncBinary() + _ = yym1185 if false { } else { r.EncodeInt(int64(x.HostPort)) @@ -14779,22 +16535,22 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1034[1] { + if yyq1180[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1040 := z.EncBinary() - _ = yym1040 + yym1186 := z.EncBinary() + _ = yym1186 if false { } else { r.EncodeInt(int64(x.HostPort)) } } } - if yyr1034 || yy2arr1034 { + if yyr1180 || yy2arr1180 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1042 := z.EncBinary() - _ = yym1042 + yym1188 := z.EncBinary() + _ = yym1188 if false { } else { r.EncodeInt(int64(x.ContainerPort)) @@ -14803,33 +16559,33 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1043 := z.EncBinary() - _ = yym1043 + yym1189 := z.EncBinary() + _ = yym1189 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } - if yyr1034 || yy2arr1034 { + if yyr1180 || yy2arr1180 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1034[3] { + if yyq1180[3] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1034[3] { + if yyq1180[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } - if yyr1034 || yy2arr1034 { + if yyr1180 || yy2arr1180 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1034[4] { - yym1046 := z.EncBinary() - _ = yym1046 + if yyq1180[4] { + yym1192 := z.EncBinary() + _ = yym1192 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) @@ -14838,19 +16594,19 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1034[4] { + if yyq1180[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1047 := z.EncBinary() - _ = yym1047 + yym1193 := z.EncBinary() + _ = yym1193 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } - if yyr1034 || yy2arr1034 { + if yyr1180 || yy2arr1180 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14863,25 +16619,25 @@ func (x *ContainerPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1048 := z.DecBinary() - _ = yym1048 + yym1194 := z.DecBinary() + _ = yym1194 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1049 := r.ContainerType() - if yyct1049 == codecSelferValueTypeMap1234 { - yyl1049 := r.ReadMapStart() - if yyl1049 == 0 { + yyct1195 := r.ContainerType() + if yyct1195 == codecSelferValueTypeMap1234 { + yyl1195 := r.ReadMapStart() + if yyl1195 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1049, d) + x.codecDecodeSelfFromMap(yyl1195, d) } - } else if yyct1049 == codecSelferValueTypeArray1234 { - yyl1049 := r.ReadArrayStart() - if yyl1049 == 0 { + } else if yyct1195 == codecSelferValueTypeArray1234 { + yyl1195 := r.ReadArrayStart() + if yyl1195 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1049, d) + x.codecDecodeSelfFromArray(yyl1195, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14893,12 +16649,12 @@ func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1050Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1050Slc - var yyhl1050 bool = l >= 0 - for yyj1050 := 0; ; yyj1050++ { - if yyhl1050 { - if yyj1050 >= l { + var yys1196Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1196Slc + var yyhl1196 bool = l >= 0 + for yyj1196 := 0; ; yyj1196++ { + if yyhl1196 { + if yyj1196 >= l { break } } else { @@ -14907,10 +16663,10 @@ func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1050Slc = r.DecodeBytes(yys1050Slc, true, true) - yys1050 := string(yys1050Slc) + yys1196Slc = r.DecodeBytes(yys1196Slc, true, true) + yys1196 := string(yys1196Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1050 { + switch yys1196 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -14942,9 +16698,9 @@ func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.HostIP = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1050) - } // end switch yys1050 - } // end for yyj1050 + z.DecStructFieldNotFound(-1, yys1196) + } // end switch yys1196 + } // end for yyj1196 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14952,16 +16708,16 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1056 int - var yyb1056 bool - var yyhl1056 bool = l >= 0 - yyj1056++ - if yyhl1056 { - yyb1056 = yyj1056 > l + var yyj1202 int + var yyb1202 bool + var yyhl1202 bool = l >= 0 + yyj1202++ + if yyhl1202 { + yyb1202 = yyj1202 > l } else { - yyb1056 = r.CheckBreak() + yyb1202 = r.CheckBreak() } - if yyb1056 { + if yyb1202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14971,13 +16727,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1056++ - if yyhl1056 { - yyb1056 = yyj1056 > l + yyj1202++ + if yyhl1202 { + yyb1202 = yyj1202 > l } else { - yyb1056 = r.CheckBreak() + yyb1202 = r.CheckBreak() } - if yyb1056 { + if yyb1202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14987,13 +16743,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostPort = int32(r.DecodeInt(32)) } - yyj1056++ - if yyhl1056 { - yyb1056 = yyj1056 > l + yyj1202++ + if yyhl1202 { + yyb1202 = yyj1202 > l } else { - yyb1056 = r.CheckBreak() + yyb1202 = r.CheckBreak() } - if yyb1056 { + if yyb1202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15003,13 +16759,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ContainerPort = int32(r.DecodeInt(32)) } - yyj1056++ - if yyhl1056 { - yyb1056 = yyj1056 > l + yyj1202++ + if yyhl1202 { + yyb1202 = yyj1202 > l } else { - yyb1056 = r.CheckBreak() + yyb1202 = r.CheckBreak() } - if yyb1056 { + if yyb1202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15019,13 +16775,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Protocol = Protocol(r.DecodeString()) } - yyj1056++ - if yyhl1056 { - yyb1056 = yyj1056 > l + yyj1202++ + if yyhl1202 { + yyb1202 = yyj1202 > l } else { - yyb1056 = r.CheckBreak() + yyb1202 = r.CheckBreak() } - if yyb1056 { + if yyb1202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15036,17 +16792,17 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.HostIP = string(r.DecodeString()) } for { - yyj1056++ - if yyhl1056 { - yyb1056 = yyj1056 > l + yyj1202++ + if yyhl1202 { + yyb1202 = yyj1202 > l } else { - yyb1056 = r.CheckBreak() + yyb1202 = r.CheckBreak() } - if yyb1056 { + if yyb1202 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1056-1, "") + z.DecStructFieldNotFound(yyj1202-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15058,35 +16814,35 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1062 := z.EncBinary() - _ = yym1062 + yym1208 := z.EncBinary() + _ = yym1208 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1063 := !z.EncBinary() - yy2arr1063 := z.EncBasicHandle().StructToArray - var yyq1063 [4]bool - _, _, _ = yysep1063, yyq1063, yy2arr1063 - const yyr1063 bool = false - yyq1063[1] = x.ReadOnly != false - yyq1063[3] = x.SubPath != "" - var yynn1063 int - if yyr1063 || yy2arr1063 { + yysep1209 := !z.EncBinary() + yy2arr1209 := z.EncBasicHandle().StructToArray + var yyq1209 [4]bool + _, _, _ = yysep1209, yyq1209, yy2arr1209 + const yyr1209 bool = false + yyq1209[1] = x.ReadOnly != false + yyq1209[3] = x.SubPath != "" + var yynn1209 int + if yyr1209 || yy2arr1209 { r.EncodeArrayStart(4) } else { - yynn1063 = 2 - for _, b := range yyq1063 { + yynn1209 = 2 + for _, b := range yyq1209 { if b { - yynn1063++ + yynn1209++ } } - r.EncodeMapStart(yynn1063) - yynn1063 = 0 + r.EncodeMapStart(yynn1209) + yynn1209 = 0 } - if yyr1063 || yy2arr1063 { + if yyr1209 || yy2arr1209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1065 := z.EncBinary() - _ = yym1065 + yym1211 := z.EncBinary() + _ = yym1211 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -15095,18 +16851,18 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1066 := z.EncBinary() - _ = yym1066 + yym1212 := z.EncBinary() + _ = yym1212 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1063 || yy2arr1063 { + if yyr1209 || yy2arr1209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1063[1] { - yym1068 := z.EncBinary() - _ = yym1068 + if yyq1209[1] { + yym1214 := z.EncBinary() + _ = yym1214 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -15115,22 +16871,22 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1063[1] { + if yyq1209[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1069 := z.EncBinary() - _ = yym1069 + yym1215 := z.EncBinary() + _ = yym1215 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr1063 || yy2arr1063 { + if yyr1209 || yy2arr1209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1071 := z.EncBinary() - _ = yym1071 + yym1217 := z.EncBinary() + _ = yym1217 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) @@ -15139,18 +16895,18 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("mountPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1072 := z.EncBinary() - _ = yym1072 + yym1218 := z.EncBinary() + _ = yym1218 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } - if yyr1063 || yy2arr1063 { + if yyr1209 || yy2arr1209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1063[3] { - yym1074 := z.EncBinary() - _ = yym1074 + if yyq1209[3] { + yym1220 := z.EncBinary() + _ = yym1220 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) @@ -15159,19 +16915,19 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1063[3] { + if yyq1209[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1075 := z.EncBinary() - _ = yym1075 + yym1221 := z.EncBinary() + _ = yym1221 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) } } } - if yyr1063 || yy2arr1063 { + if yyr1209 || yy2arr1209 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15184,25 +16940,25 @@ func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1076 := z.DecBinary() - _ = yym1076 + yym1222 := z.DecBinary() + _ = yym1222 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1077 := r.ContainerType() - if yyct1077 == codecSelferValueTypeMap1234 { - yyl1077 := r.ReadMapStart() - if yyl1077 == 0 { + yyct1223 := r.ContainerType() + if yyct1223 == codecSelferValueTypeMap1234 { + yyl1223 := r.ReadMapStart() + if yyl1223 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1077, d) + x.codecDecodeSelfFromMap(yyl1223, d) } - } else if yyct1077 == codecSelferValueTypeArray1234 { - yyl1077 := r.ReadArrayStart() - if yyl1077 == 0 { + } else if yyct1223 == codecSelferValueTypeArray1234 { + yyl1223 := r.ReadArrayStart() + if yyl1223 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1077, d) + x.codecDecodeSelfFromArray(yyl1223, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15214,12 +16970,12 @@ func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1078Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1078Slc - var yyhl1078 bool = l >= 0 - for yyj1078 := 0; ; yyj1078++ { - if yyhl1078 { - if yyj1078 >= l { + var yys1224Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1224Slc + var yyhl1224 bool = l >= 0 + for yyj1224 := 0; ; yyj1224++ { + if yyhl1224 { + if yyj1224 >= l { break } } else { @@ -15228,10 +16984,10 @@ func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1078Slc = r.DecodeBytes(yys1078Slc, true, true) - yys1078 := string(yys1078Slc) + yys1224Slc = r.DecodeBytes(yys1224Slc, true, true) + yys1224 := string(yys1224Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1078 { + switch yys1224 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -15257,9 +17013,9 @@ func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SubPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1078) - } // end switch yys1078 - } // end for yyj1078 + z.DecStructFieldNotFound(-1, yys1224) + } // end switch yys1224 + } // end for yyj1224 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15267,16 +17023,16 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1083 int - var yyb1083 bool - var yyhl1083 bool = l >= 0 - yyj1083++ - if yyhl1083 { - yyb1083 = yyj1083 > l + var yyj1229 int + var yyb1229 bool + var yyhl1229 bool = l >= 0 + yyj1229++ + if yyhl1229 { + yyb1229 = yyj1229 > l } else { - yyb1083 = r.CheckBreak() + yyb1229 = r.CheckBreak() } - if yyb1083 { + if yyb1229 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15286,13 +17042,13 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1083++ - if yyhl1083 { - yyb1083 = yyj1083 > l + yyj1229++ + if yyhl1229 { + yyb1229 = yyj1229 > l } else { - yyb1083 = r.CheckBreak() + yyb1229 = r.CheckBreak() } - if yyb1083 { + if yyb1229 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15302,13 +17058,13 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ReadOnly = bool(r.DecodeBool()) } - yyj1083++ - if yyhl1083 { - yyb1083 = yyj1083 > l + yyj1229++ + if yyhl1229 { + yyb1229 = yyj1229 > l } else { - yyb1083 = r.CheckBreak() + yyb1229 = r.CheckBreak() } - if yyb1083 { + if yyb1229 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15318,13 +17074,13 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MountPath = string(r.DecodeString()) } - yyj1083++ - if yyhl1083 { - yyb1083 = yyj1083 > l + yyj1229++ + if yyhl1229 { + yyb1229 = yyj1229 > l } else { - yyb1083 = r.CheckBreak() + yyb1229 = r.CheckBreak() } - if yyb1083 { + if yyb1229 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15335,17 +17091,17 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SubPath = string(r.DecodeString()) } for { - yyj1083++ - if yyhl1083 { - yyb1083 = yyj1083 > l + yyj1229++ + if yyhl1229 { + yyb1229 = yyj1229 > l } else { - yyb1083 = r.CheckBreak() + yyb1229 = r.CheckBreak() } - if yyb1083 { + if yyb1229 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1083-1, "") + z.DecStructFieldNotFound(yyj1229-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15357,35 +17113,35 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1088 := z.EncBinary() - _ = yym1088 + yym1234 := z.EncBinary() + _ = yym1234 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1089 := !z.EncBinary() - yy2arr1089 := z.EncBasicHandle().StructToArray - var yyq1089 [3]bool - _, _, _ = yysep1089, yyq1089, yy2arr1089 - const yyr1089 bool = false - yyq1089[1] = x.Value != "" - yyq1089[2] = x.ValueFrom != nil - var yynn1089 int - if yyr1089 || yy2arr1089 { + yysep1235 := !z.EncBinary() + yy2arr1235 := z.EncBasicHandle().StructToArray + var yyq1235 [3]bool + _, _, _ = yysep1235, yyq1235, yy2arr1235 + const yyr1235 bool = false + yyq1235[1] = x.Value != "" + yyq1235[2] = x.ValueFrom != nil + var yynn1235 int + if yyr1235 || yy2arr1235 { r.EncodeArrayStart(3) } else { - yynn1089 = 1 - for _, b := range yyq1089 { + yynn1235 = 1 + for _, b := range yyq1235 { if b { - yynn1089++ + yynn1235++ } } - r.EncodeMapStart(yynn1089) - yynn1089 = 0 + r.EncodeMapStart(yynn1235) + yynn1235 = 0 } - if yyr1089 || yy2arr1089 { + if yyr1235 || yy2arr1235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1091 := z.EncBinary() - _ = yym1091 + yym1237 := z.EncBinary() + _ = yym1237 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -15394,18 +17150,18 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1092 := z.EncBinary() - _ = yym1092 + yym1238 := z.EncBinary() + _ = yym1238 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1089 || yy2arr1089 { + if yyr1235 || yy2arr1235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1089[1] { - yym1094 := z.EncBinary() - _ = yym1094 + if yyq1235[1] { + yym1240 := z.EncBinary() + _ = yym1240 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -15414,21 +17170,21 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1089[1] { + if yyq1235[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1095 := z.EncBinary() - _ = yym1095 + yym1241 := z.EncBinary() + _ = yym1241 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr1089 || yy2arr1089 { + if yyr1235 || yy2arr1235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1089[2] { + if yyq1235[2] { if x.ValueFrom == nil { r.EncodeNil() } else { @@ -15438,7 +17194,7 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1089[2] { + if yyq1235[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("valueFrom")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -15449,7 +17205,7 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1089 || yy2arr1089 { + if yyr1235 || yy2arr1235 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15462,25 +17218,25 @@ func (x *EnvVar) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1097 := z.DecBinary() - _ = yym1097 + yym1243 := z.DecBinary() + _ = yym1243 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1098 := r.ContainerType() - if yyct1098 == codecSelferValueTypeMap1234 { - yyl1098 := r.ReadMapStart() - if yyl1098 == 0 { + yyct1244 := r.ContainerType() + if yyct1244 == codecSelferValueTypeMap1234 { + yyl1244 := r.ReadMapStart() + if yyl1244 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1098, d) + x.codecDecodeSelfFromMap(yyl1244, d) } - } else if yyct1098 == codecSelferValueTypeArray1234 { - yyl1098 := r.ReadArrayStart() - if yyl1098 == 0 { + } else if yyct1244 == codecSelferValueTypeArray1234 { + yyl1244 := r.ReadArrayStart() + if yyl1244 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1098, d) + x.codecDecodeSelfFromArray(yyl1244, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15492,12 +17248,12 @@ func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1099Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1099Slc - var yyhl1099 bool = l >= 0 - for yyj1099 := 0; ; yyj1099++ { - if yyhl1099 { - if yyj1099 >= l { + var yys1245Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1245Slc + var yyhl1245 bool = l >= 0 + for yyj1245 := 0; ; yyj1245++ { + if yyhl1245 { + if yyj1245 >= l { break } } else { @@ -15506,10 +17262,10 @@ func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1099Slc = r.DecodeBytes(yys1099Slc, true, true) - yys1099 := string(yys1099Slc) + yys1245Slc = r.DecodeBytes(yys1245Slc, true, true) + yys1245 := string(yys1245Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1099 { + switch yys1245 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -15534,9 +17290,9 @@ func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ValueFrom.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1099) - } // end switch yys1099 - } // end for yyj1099 + z.DecStructFieldNotFound(-1, yys1245) + } // end switch yys1245 + } // end for yyj1245 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15544,16 +17300,16 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1103 int - var yyb1103 bool - var yyhl1103 bool = l >= 0 - yyj1103++ - if yyhl1103 { - yyb1103 = yyj1103 > l + var yyj1249 int + var yyb1249 bool + var yyhl1249 bool = l >= 0 + yyj1249++ + if yyhl1249 { + yyb1249 = yyj1249 > l } else { - yyb1103 = r.CheckBreak() + yyb1249 = r.CheckBreak() } - if yyb1103 { + if yyb1249 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15563,13 +17319,13 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1103++ - if yyhl1103 { - yyb1103 = yyj1103 > l + yyj1249++ + if yyhl1249 { + yyb1249 = yyj1249 > l } else { - yyb1103 = r.CheckBreak() + yyb1249 = r.CheckBreak() } - if yyb1103 { + if yyb1249 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15579,13 +17335,13 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Value = string(r.DecodeString()) } - yyj1103++ - if yyhl1103 { - yyb1103 = yyj1103 > l + yyj1249++ + if yyhl1249 { + yyb1249 = yyj1249 > l } else { - yyb1103 = r.CheckBreak() + yyb1249 = r.CheckBreak() } - if yyb1103 { + if yyb1249 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15601,17 +17357,17 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.ValueFrom.CodecDecodeSelf(d) } for { - yyj1103++ - if yyhl1103 { - yyb1103 = yyj1103 > l + yyj1249++ + if yyhl1249 { + yyb1249 = yyj1249 > l } else { - yyb1103 = r.CheckBreak() + yyb1249 = r.CheckBreak() } - if yyb1103 { + if yyb1249 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1103-1, "") + z.DecStructFieldNotFound(yyj1249-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15623,36 +17379,36 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1107 := z.EncBinary() - _ = yym1107 + yym1253 := z.EncBinary() + _ = yym1253 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1108 := !z.EncBinary() - yy2arr1108 := z.EncBasicHandle().StructToArray - var yyq1108 [4]bool - _, _, _ = yysep1108, yyq1108, yy2arr1108 - const yyr1108 bool = false - yyq1108[0] = x.FieldRef != nil - yyq1108[1] = x.ResourceFieldRef != nil - yyq1108[2] = x.ConfigMapKeyRef != nil - yyq1108[3] = x.SecretKeyRef != nil - var yynn1108 int - if yyr1108 || yy2arr1108 { + yysep1254 := !z.EncBinary() + yy2arr1254 := z.EncBasicHandle().StructToArray + var yyq1254 [4]bool + _, _, _ = yysep1254, yyq1254, yy2arr1254 + const yyr1254 bool = false + yyq1254[0] = x.FieldRef != nil + yyq1254[1] = x.ResourceFieldRef != nil + yyq1254[2] = x.ConfigMapKeyRef != nil + yyq1254[3] = x.SecretKeyRef != nil + var yynn1254 int + if yyr1254 || yy2arr1254 { r.EncodeArrayStart(4) } else { - yynn1108 = 0 - for _, b := range yyq1108 { + yynn1254 = 0 + for _, b := range yyq1254 { if b { - yynn1108++ + yynn1254++ } } - r.EncodeMapStart(yynn1108) - yynn1108 = 0 + r.EncodeMapStart(yynn1254) + yynn1254 = 0 } - if yyr1108 || yy2arr1108 { + if yyr1254 || yy2arr1254 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1108[0] { + if yyq1254[0] { if x.FieldRef == nil { r.EncodeNil() } else { @@ -15662,7 +17418,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1108[0] { + if yyq1254[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -15673,9 +17429,9 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1108 || yy2arr1108 { + if yyr1254 || yy2arr1254 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1108[1] { + if yyq1254[1] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { @@ -15685,7 +17441,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1108[1] { + if yyq1254[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -15696,9 +17452,9 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1108 || yy2arr1108 { + if yyr1254 || yy2arr1254 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1108[2] { + if yyq1254[2] { if x.ConfigMapKeyRef == nil { r.EncodeNil() } else { @@ -15708,7 +17464,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1108[2] { + if yyq1254[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -15719,9 +17475,9 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1108 || yy2arr1108 { + if yyr1254 || yy2arr1254 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1108[3] { + if yyq1254[3] { if x.SecretKeyRef == nil { r.EncodeNil() } else { @@ -15731,7 +17487,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1108[3] { + if yyq1254[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -15742,7 +17498,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1108 || yy2arr1108 { + if yyr1254 || yy2arr1254 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15755,25 +17511,25 @@ func (x *EnvVarSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1113 := z.DecBinary() - _ = yym1113 + yym1259 := z.DecBinary() + _ = yym1259 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1114 := r.ContainerType() - if yyct1114 == codecSelferValueTypeMap1234 { - yyl1114 := r.ReadMapStart() - if yyl1114 == 0 { + yyct1260 := r.ContainerType() + if yyct1260 == codecSelferValueTypeMap1234 { + yyl1260 := r.ReadMapStart() + if yyl1260 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1114, d) + x.codecDecodeSelfFromMap(yyl1260, d) } - } else if yyct1114 == codecSelferValueTypeArray1234 { - yyl1114 := r.ReadArrayStart() - if yyl1114 == 0 { + } else if yyct1260 == codecSelferValueTypeArray1234 { + yyl1260 := r.ReadArrayStart() + if yyl1260 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1114, d) + x.codecDecodeSelfFromArray(yyl1260, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15785,12 +17541,12 @@ func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1115Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1115Slc - var yyhl1115 bool = l >= 0 - for yyj1115 := 0; ; yyj1115++ { - if yyhl1115 { - if yyj1115 >= l { + var yys1261Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1261Slc + var yyhl1261 bool = l >= 0 + for yyj1261 := 0; ; yyj1261++ { + if yyhl1261 { + if yyj1261 >= l { break } } else { @@ -15799,10 +17555,10 @@ func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1115Slc = r.DecodeBytes(yys1115Slc, true, true) - yys1115 := string(yys1115Slc) + yys1261Slc = r.DecodeBytes(yys1261Slc, true, true) + yys1261 := string(yys1261Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1115 { + switch yys1261 { case "fieldRef": if r.TryDecodeAsNil() { if x.FieldRef != nil { @@ -15848,9 +17604,9 @@ func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SecretKeyRef.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1115) - } // end switch yys1115 - } // end for yyj1115 + z.DecStructFieldNotFound(-1, yys1261) + } // end switch yys1261 + } // end for yyj1261 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15858,16 +17614,16 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1120 int - var yyb1120 bool - var yyhl1120 bool = l >= 0 - yyj1120++ - if yyhl1120 { - yyb1120 = yyj1120 > l + var yyj1266 int + var yyb1266 bool + var yyhl1266 bool = l >= 0 + yyj1266++ + if yyhl1266 { + yyb1266 = yyj1266 > l } else { - yyb1120 = r.CheckBreak() + yyb1266 = r.CheckBreak() } - if yyb1120 { + if yyb1266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15882,13 +17638,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FieldRef.CodecDecodeSelf(d) } - yyj1120++ - if yyhl1120 { - yyb1120 = yyj1120 > l + yyj1266++ + if yyhl1266 { + yyb1266 = yyj1266 > l } else { - yyb1120 = r.CheckBreak() + yyb1266 = r.CheckBreak() } - if yyb1120 { + if yyb1266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15903,13 +17659,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ResourceFieldRef.CodecDecodeSelf(d) } - yyj1120++ - if yyhl1120 { - yyb1120 = yyj1120 > l + yyj1266++ + if yyhl1266 { + yyb1266 = yyj1266 > l } else { - yyb1120 = r.CheckBreak() + yyb1266 = r.CheckBreak() } - if yyb1120 { + if yyb1266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15924,13 +17680,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ConfigMapKeyRef.CodecDecodeSelf(d) } - yyj1120++ - if yyhl1120 { - yyb1120 = yyj1120 > l + yyj1266++ + if yyhl1266 { + yyb1266 = yyj1266 > l } else { - yyb1120 = r.CheckBreak() + yyb1266 = r.CheckBreak() } - if yyb1120 { + if yyb1266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15946,17 +17702,17 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SecretKeyRef.CodecDecodeSelf(d) } for { - yyj1120++ - if yyhl1120 { - yyb1120 = yyj1120 > l + yyj1266++ + if yyhl1266 { + yyb1266 = yyj1266 > l } else { - yyb1120 = r.CheckBreak() + yyb1266 = r.CheckBreak() } - if yyb1120 { + if yyb1266 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1120-1, "") + z.DecStructFieldNotFound(yyj1266-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15968,33 +17724,33 @@ func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1125 := z.EncBinary() - _ = yym1125 + yym1271 := z.EncBinary() + _ = yym1271 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1126 := !z.EncBinary() - yy2arr1126 := z.EncBasicHandle().StructToArray - var yyq1126 [2]bool - _, _, _ = yysep1126, yyq1126, yy2arr1126 - const yyr1126 bool = false - var yynn1126 int - if yyr1126 || yy2arr1126 { + yysep1272 := !z.EncBinary() + yy2arr1272 := z.EncBasicHandle().StructToArray + var yyq1272 [2]bool + _, _, _ = yysep1272, yyq1272, yy2arr1272 + const yyr1272 bool = false + var yynn1272 int + if yyr1272 || yy2arr1272 { r.EncodeArrayStart(2) } else { - yynn1126 = 2 - for _, b := range yyq1126 { + yynn1272 = 2 + for _, b := range yyq1272 { if b { - yynn1126++ + yynn1272++ } } - r.EncodeMapStart(yynn1126) - yynn1126 = 0 + r.EncodeMapStart(yynn1272) + yynn1272 = 0 } - if yyr1126 || yy2arr1126 { + if yyr1272 || yy2arr1272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1128 := z.EncBinary() - _ = yym1128 + yym1274 := z.EncBinary() + _ = yym1274 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -16003,17 +17759,17 @@ func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1129 := z.EncBinary() - _ = yym1129 + yym1275 := z.EncBinary() + _ = yym1275 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } - if yyr1126 || yy2arr1126 { + if yyr1272 || yy2arr1272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1131 := z.EncBinary() - _ = yym1131 + yym1277 := z.EncBinary() + _ = yym1277 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) @@ -16022,14 +17778,14 @@ func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1132 := z.EncBinary() - _ = yym1132 + yym1278 := z.EncBinary() + _ = yym1278 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } - if yyr1126 || yy2arr1126 { + if yyr1272 || yy2arr1272 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16042,25 +17798,25 @@ func (x *ObjectFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1133 := z.DecBinary() - _ = yym1133 + yym1279 := z.DecBinary() + _ = yym1279 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1134 := r.ContainerType() - if yyct1134 == codecSelferValueTypeMap1234 { - yyl1134 := r.ReadMapStart() - if yyl1134 == 0 { + yyct1280 := r.ContainerType() + if yyct1280 == codecSelferValueTypeMap1234 { + yyl1280 := r.ReadMapStart() + if yyl1280 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1134, d) + x.codecDecodeSelfFromMap(yyl1280, d) } - } else if yyct1134 == codecSelferValueTypeArray1234 { - yyl1134 := r.ReadArrayStart() - if yyl1134 == 0 { + } else if yyct1280 == codecSelferValueTypeArray1234 { + yyl1280 := r.ReadArrayStart() + if yyl1280 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1134, d) + x.codecDecodeSelfFromArray(yyl1280, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16072,12 +17828,12 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1135Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1135Slc - var yyhl1135 bool = l >= 0 - for yyj1135 := 0; ; yyj1135++ { - if yyhl1135 { - if yyj1135 >= l { + var yys1281Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1281Slc + var yyhl1281 bool = l >= 0 + for yyj1281 := 0; ; yyj1281++ { + if yyhl1281 { + if yyj1281 >= l { break } } else { @@ -16086,10 +17842,10 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1135Slc = r.DecodeBytes(yys1135Slc, true, true) - yys1135 := string(yys1135Slc) + yys1281Slc = r.DecodeBytes(yys1281Slc, true, true) + yys1281 := string(yys1281Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1135 { + switch yys1281 { case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" @@ -16103,9 +17859,9 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.FieldPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1135) - } // end switch yys1135 - } // end for yyj1135 + z.DecStructFieldNotFound(-1, yys1281) + } // end switch yys1281 + } // end for yyj1281 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16113,16 +17869,16 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1138 int - var yyb1138 bool - var yyhl1138 bool = l >= 0 - yyj1138++ - if yyhl1138 { - yyb1138 = yyj1138 > l + var yyj1284 int + var yyb1284 bool + var yyhl1284 bool = l >= 0 + yyj1284++ + if yyhl1284 { + yyb1284 = yyj1284 > l } else { - yyb1138 = r.CheckBreak() + yyb1284 = r.CheckBreak() } - if yyb1138 { + if yyb1284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16132,13 +17888,13 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj1138++ - if yyhl1138 { - yyb1138 = yyj1138 > l + yyj1284++ + if yyhl1284 { + yyb1284 = yyj1284 > l } else { - yyb1138 = r.CheckBreak() + yyb1284 = r.CheckBreak() } - if yyb1138 { + if yyb1284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16149,17 +17905,17 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.FieldPath = string(r.DecodeString()) } for { - yyj1138++ - if yyhl1138 { - yyb1138 = yyj1138 > l + yyj1284++ + if yyhl1284 { + yyb1284 = yyj1284 > l } else { - yyb1138 = r.CheckBreak() + yyb1284 = r.CheckBreak() } - if yyb1138 { + if yyb1284 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1138-1, "") + z.DecStructFieldNotFound(yyj1284-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16171,36 +17927,36 @@ func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1141 := z.EncBinary() - _ = yym1141 + yym1287 := z.EncBinary() + _ = yym1287 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1142 := !z.EncBinary() - yy2arr1142 := z.EncBasicHandle().StructToArray - var yyq1142 [3]bool - _, _, _ = yysep1142, yyq1142, yy2arr1142 - const yyr1142 bool = false - yyq1142[0] = x.ContainerName != "" - yyq1142[2] = true - var yynn1142 int - if yyr1142 || yy2arr1142 { + yysep1288 := !z.EncBinary() + yy2arr1288 := z.EncBasicHandle().StructToArray + var yyq1288 [3]bool + _, _, _ = yysep1288, yyq1288, yy2arr1288 + const yyr1288 bool = false + yyq1288[0] = x.ContainerName != "" + yyq1288[2] = true + var yynn1288 int + if yyr1288 || yy2arr1288 { r.EncodeArrayStart(3) } else { - yynn1142 = 1 - for _, b := range yyq1142 { + yynn1288 = 1 + for _, b := range yyq1288 { if b { - yynn1142++ + yynn1288++ } } - r.EncodeMapStart(yynn1142) - yynn1142 = 0 + r.EncodeMapStart(yynn1288) + yynn1288 = 0 } - if yyr1142 || yy2arr1142 { + if yyr1288 || yy2arr1288 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1142[0] { - yym1144 := z.EncBinary() - _ = yym1144 + if yyq1288[0] { + yym1290 := z.EncBinary() + _ = yym1290 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) @@ -16209,22 +17965,22 @@ func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1142[0] { + if yyq1288[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1145 := z.EncBinary() - _ = yym1145 + yym1291 := z.EncBinary() + _ = yym1291 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) } } } - if yyr1142 || yy2arr1142 { + if yyr1288 || yy2arr1288 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1147 := z.EncBinary() - _ = yym1147 + yym1293 := z.EncBinary() + _ = yym1293 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) @@ -16233,47 +17989,47 @@ func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resource")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1148 := z.EncBinary() - _ = yym1148 + yym1294 := z.EncBinary() + _ = yym1294 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) } } - if yyr1142 || yy2arr1142 { + if yyr1288 || yy2arr1288 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1142[2] { - yy1150 := &x.Divisor - yym1151 := z.EncBinary() - _ = yym1151 + if yyq1288[2] { + yy1296 := &x.Divisor + yym1297 := z.EncBinary() + _ = yym1297 if false { - } else if z.HasExtensions() && z.EncExt(yy1150) { - } else if !yym1151 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1150) + } else if z.HasExtensions() && z.EncExt(yy1296) { + } else if !yym1297 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1296) } else { - z.EncFallback(yy1150) + z.EncFallback(yy1296) } } else { r.EncodeNil() } } else { - if yyq1142[2] { + if yyq1288[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("divisor")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1152 := &x.Divisor - yym1153 := z.EncBinary() - _ = yym1153 + yy1298 := &x.Divisor + yym1299 := z.EncBinary() + _ = yym1299 if false { - } else if z.HasExtensions() && z.EncExt(yy1152) { - } else if !yym1153 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1152) + } else if z.HasExtensions() && z.EncExt(yy1298) { + } else if !yym1299 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1298) } else { - z.EncFallback(yy1152) + z.EncFallback(yy1298) } } } - if yyr1142 || yy2arr1142 { + if yyr1288 || yy2arr1288 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16286,25 +18042,25 @@ func (x *ResourceFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1154 := z.DecBinary() - _ = yym1154 + yym1300 := z.DecBinary() + _ = yym1300 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1155 := r.ContainerType() - if yyct1155 == codecSelferValueTypeMap1234 { - yyl1155 := r.ReadMapStart() - if yyl1155 == 0 { + yyct1301 := r.ContainerType() + if yyct1301 == codecSelferValueTypeMap1234 { + yyl1301 := r.ReadMapStart() + if yyl1301 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1155, d) + x.codecDecodeSelfFromMap(yyl1301, d) } - } else if yyct1155 == codecSelferValueTypeArray1234 { - yyl1155 := r.ReadArrayStart() - if yyl1155 == 0 { + } else if yyct1301 == codecSelferValueTypeArray1234 { + yyl1301 := r.ReadArrayStart() + if yyl1301 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1155, d) + x.codecDecodeSelfFromArray(yyl1301, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16316,12 +18072,12 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1156Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1156Slc - var yyhl1156 bool = l >= 0 - for yyj1156 := 0; ; yyj1156++ { - if yyhl1156 { - if yyj1156 >= l { + var yys1302Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1302Slc + var yyhl1302 bool = l >= 0 + for yyj1302 := 0; ; yyj1302++ { + if yyhl1302 { + if yyj1302 >= l { break } } else { @@ -16330,10 +18086,10 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1156Slc = r.DecodeBytes(yys1156Slc, true, true) - yys1156 := string(yys1156Slc) + yys1302Slc = r.DecodeBytes(yys1302Slc, true, true) + yys1302 := string(yys1302Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1156 { + switch yys1302 { case "containerName": if r.TryDecodeAsNil() { x.ContainerName = "" @@ -16350,21 +18106,21 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Divisor = pkg3_resource.Quantity{} } else { - yyv1159 := &x.Divisor - yym1160 := z.DecBinary() - _ = yym1160 + yyv1305 := &x.Divisor + yym1306 := z.DecBinary() + _ = yym1306 if false { - } else if z.HasExtensions() && z.DecExt(yyv1159) { - } else if !yym1160 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1159) + } else if z.HasExtensions() && z.DecExt(yyv1305) { + } else if !yym1306 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1305) } else { - z.DecFallback(yyv1159, false) + z.DecFallback(yyv1305, false) } } default: - z.DecStructFieldNotFound(-1, yys1156) - } // end switch yys1156 - } // end for yyj1156 + z.DecStructFieldNotFound(-1, yys1302) + } // end switch yys1302 + } // end for yyj1302 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16372,16 +18128,16 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1161 int - var yyb1161 bool - var yyhl1161 bool = l >= 0 - yyj1161++ - if yyhl1161 { - yyb1161 = yyj1161 > l + var yyj1307 int + var yyb1307 bool + var yyhl1307 bool = l >= 0 + yyj1307++ + if yyhl1307 { + yyb1307 = yyj1307 > l } else { - yyb1161 = r.CheckBreak() + yyb1307 = r.CheckBreak() } - if yyb1161 { + if yyb1307 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16391,13 +18147,13 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.ContainerName = string(r.DecodeString()) } - yyj1161++ - if yyhl1161 { - yyb1161 = yyj1161 > l + yyj1307++ + if yyhl1307 { + yyb1307 = yyj1307 > l } else { - yyb1161 = r.CheckBreak() + yyb1307 = r.CheckBreak() } - if yyb1161 { + if yyb1307 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16407,13 +18163,13 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Resource = string(r.DecodeString()) } - yyj1161++ - if yyhl1161 { - yyb1161 = yyj1161 > l + yyj1307++ + if yyhl1307 { + yyb1307 = yyj1307 > l } else { - yyb1161 = r.CheckBreak() + yyb1307 = r.CheckBreak() } - if yyb1161 { + if yyb1307 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16421,29 +18177,29 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Divisor = pkg3_resource.Quantity{} } else { - yyv1164 := &x.Divisor - yym1165 := z.DecBinary() - _ = yym1165 + yyv1310 := &x.Divisor + yym1311 := z.DecBinary() + _ = yym1311 if false { - } else if z.HasExtensions() && z.DecExt(yyv1164) { - } else if !yym1165 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1164) + } else if z.HasExtensions() && z.DecExt(yyv1310) { + } else if !yym1311 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1310) } else { - z.DecFallback(yyv1164, false) + z.DecFallback(yyv1310, false) } } for { - yyj1161++ - if yyhl1161 { - yyb1161 = yyj1161 > l + yyj1307++ + if yyhl1307 { + yyb1307 = yyj1307 > l } else { - yyb1161 = r.CheckBreak() + yyb1307 = r.CheckBreak() } - if yyb1161 { + if yyb1307 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1161-1, "") + z.DecStructFieldNotFound(yyj1307-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16455,33 +18211,33 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1166 := z.EncBinary() - _ = yym1166 + yym1312 := z.EncBinary() + _ = yym1312 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1167 := !z.EncBinary() - yy2arr1167 := z.EncBasicHandle().StructToArray - var yyq1167 [2]bool - _, _, _ = yysep1167, yyq1167, yy2arr1167 - const yyr1167 bool = false - var yynn1167 int - if yyr1167 || yy2arr1167 { + yysep1313 := !z.EncBinary() + yy2arr1313 := z.EncBasicHandle().StructToArray + var yyq1313 [2]bool + _, _, _ = yysep1313, yyq1313, yy2arr1313 + const yyr1313 bool = false + var yynn1313 int + if yyr1313 || yy2arr1313 { r.EncodeArrayStart(2) } else { - yynn1167 = 2 - for _, b := range yyq1167 { + yynn1313 = 2 + for _, b := range yyq1313 { if b { - yynn1167++ + yynn1313++ } } - r.EncodeMapStart(yynn1167) - yynn1167 = 0 + r.EncodeMapStart(yynn1313) + yynn1313 = 0 } - if yyr1167 || yy2arr1167 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1169 := z.EncBinary() - _ = yym1169 + yym1315 := z.EncBinary() + _ = yym1315 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -16490,17 +18246,17 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1170 := z.EncBinary() - _ = yym1170 + yym1316 := z.EncBinary() + _ = yym1316 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1167 || yy2arr1167 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1172 := z.EncBinary() - _ = yym1172 + yym1318 := z.EncBinary() + _ = yym1318 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -16509,14 +18265,14 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1173 := z.EncBinary() - _ = yym1173 + yym1319 := z.EncBinary() + _ = yym1319 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1167 || yy2arr1167 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16529,25 +18285,25 @@ func (x *ConfigMapKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1174 := z.DecBinary() - _ = yym1174 + yym1320 := z.DecBinary() + _ = yym1320 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1175 := r.ContainerType() - if yyct1175 == codecSelferValueTypeMap1234 { - yyl1175 := r.ReadMapStart() - if yyl1175 == 0 { + yyct1321 := r.ContainerType() + if yyct1321 == codecSelferValueTypeMap1234 { + yyl1321 := r.ReadMapStart() + if yyl1321 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1175, d) + x.codecDecodeSelfFromMap(yyl1321, d) } - } else if yyct1175 == codecSelferValueTypeArray1234 { - yyl1175 := r.ReadArrayStart() - if yyl1175 == 0 { + } else if yyct1321 == codecSelferValueTypeArray1234 { + yyl1321 := r.ReadArrayStart() + if yyl1321 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1175, d) + x.codecDecodeSelfFromArray(yyl1321, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16559,12 +18315,12 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1176Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1176Slc - var yyhl1176 bool = l >= 0 - for yyj1176 := 0; ; yyj1176++ { - if yyhl1176 { - if yyj1176 >= l { + var yys1322Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1322Slc + var yyhl1322 bool = l >= 0 + for yyj1322 := 0; ; yyj1322++ { + if yyhl1322 { + if yyj1322 >= l { break } } else { @@ -16573,10 +18329,10 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1176Slc = r.DecodeBytes(yys1176Slc, true, true) - yys1176 := string(yys1176Slc) + yys1322Slc = r.DecodeBytes(yys1322Slc, true, true) + yys1322 := string(yys1322Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1176 { + switch yys1322 { case "Name": if r.TryDecodeAsNil() { x.Name = "" @@ -16590,9 +18346,9 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Key = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1176) - } // end switch yys1176 - } // end for yyj1176 + z.DecStructFieldNotFound(-1, yys1322) + } // end switch yys1322 + } // end for yyj1322 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16600,16 +18356,16 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1179 int - var yyb1179 bool - var yyhl1179 bool = l >= 0 - yyj1179++ - if yyhl1179 { - yyb1179 = yyj1179 > l + var yyj1325 int + var yyb1325 bool + var yyhl1325 bool = l >= 0 + yyj1325++ + if yyhl1325 { + yyb1325 = yyj1325 > l } else { - yyb1179 = r.CheckBreak() + yyb1325 = r.CheckBreak() } - if yyb1179 { + if yyb1325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16619,13 +18375,13 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Name = string(r.DecodeString()) } - yyj1179++ - if yyhl1179 { - yyb1179 = yyj1179 > l + yyj1325++ + if yyhl1325 { + yyb1325 = yyj1325 > l } else { - yyb1179 = r.CheckBreak() + yyb1325 = r.CheckBreak() } - if yyb1179 { + if yyb1325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16636,17 +18392,17 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Key = string(r.DecodeString()) } for { - yyj1179++ - if yyhl1179 { - yyb1179 = yyj1179 > l + yyj1325++ + if yyhl1325 { + yyb1325 = yyj1325 > l } else { - yyb1179 = r.CheckBreak() + yyb1325 = r.CheckBreak() } - if yyb1179 { + if yyb1325 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1179-1, "") + z.DecStructFieldNotFound(yyj1325-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16658,33 +18414,33 @@ func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1182 := z.EncBinary() - _ = yym1182 + yym1328 := z.EncBinary() + _ = yym1328 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1183 := !z.EncBinary() - yy2arr1183 := z.EncBasicHandle().StructToArray - var yyq1183 [2]bool - _, _, _ = yysep1183, yyq1183, yy2arr1183 - const yyr1183 bool = false - var yynn1183 int - if yyr1183 || yy2arr1183 { + yysep1329 := !z.EncBinary() + yy2arr1329 := z.EncBasicHandle().StructToArray + var yyq1329 [2]bool + _, _, _ = yysep1329, yyq1329, yy2arr1329 + const yyr1329 bool = false + var yynn1329 int + if yyr1329 || yy2arr1329 { r.EncodeArrayStart(2) } else { - yynn1183 = 2 - for _, b := range yyq1183 { + yynn1329 = 2 + for _, b := range yyq1329 { if b { - yynn1183++ + yynn1329++ } } - r.EncodeMapStart(yynn1183) - yynn1183 = 0 + r.EncodeMapStart(yynn1329) + yynn1329 = 0 } - if yyr1183 || yy2arr1183 { + if yyr1329 || yy2arr1329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1185 := z.EncBinary() - _ = yym1185 + yym1331 := z.EncBinary() + _ = yym1331 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -16693,17 +18449,17 @@ func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1186 := z.EncBinary() - _ = yym1186 + yym1332 := z.EncBinary() + _ = yym1332 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1183 || yy2arr1183 { + if yyr1329 || yy2arr1329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1188 := z.EncBinary() - _ = yym1188 + yym1334 := z.EncBinary() + _ = yym1334 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -16712,14 +18468,14 @@ func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1189 := z.EncBinary() - _ = yym1189 + yym1335 := z.EncBinary() + _ = yym1335 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1183 || yy2arr1183 { + if yyr1329 || yy2arr1329 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16732,25 +18488,25 @@ func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1190 := z.DecBinary() - _ = yym1190 + yym1336 := z.DecBinary() + _ = yym1336 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1191 := r.ContainerType() - if yyct1191 == codecSelferValueTypeMap1234 { - yyl1191 := r.ReadMapStart() - if yyl1191 == 0 { + yyct1337 := r.ContainerType() + if yyct1337 == codecSelferValueTypeMap1234 { + yyl1337 := r.ReadMapStart() + if yyl1337 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1191, d) + x.codecDecodeSelfFromMap(yyl1337, d) } - } else if yyct1191 == codecSelferValueTypeArray1234 { - yyl1191 := r.ReadArrayStart() - if yyl1191 == 0 { + } else if yyct1337 == codecSelferValueTypeArray1234 { + yyl1337 := r.ReadArrayStart() + if yyl1337 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1191, d) + x.codecDecodeSelfFromArray(yyl1337, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16762,12 +18518,12 @@ func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1192Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1192Slc - var yyhl1192 bool = l >= 0 - for yyj1192 := 0; ; yyj1192++ { - if yyhl1192 { - if yyj1192 >= l { + var yys1338Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1338Slc + var yyhl1338 bool = l >= 0 + for yyj1338 := 0; ; yyj1338++ { + if yyhl1338 { + if yyj1338 >= l { break } } else { @@ -16776,10 +18532,10 @@ func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1192Slc = r.DecodeBytes(yys1192Slc, true, true) - yys1192 := string(yys1192Slc) + yys1338Slc = r.DecodeBytes(yys1338Slc, true, true) + yys1338 := string(yys1338Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1192 { + switch yys1338 { case "Name": if r.TryDecodeAsNil() { x.Name = "" @@ -16793,9 +18549,9 @@ func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Key = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1192) - } // end switch yys1192 - } // end for yyj1192 + z.DecStructFieldNotFound(-1, yys1338) + } // end switch yys1338 + } // end for yyj1338 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16803,16 +18559,16 @@ func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1195 int - var yyb1195 bool - var yyhl1195 bool = l >= 0 - yyj1195++ - if yyhl1195 { - yyb1195 = yyj1195 > l + var yyj1341 int + var yyb1341 bool + var yyhl1341 bool = l >= 0 + yyj1341++ + if yyhl1341 { + yyb1341 = yyj1341 > l } else { - yyb1195 = r.CheckBreak() + yyb1341 = r.CheckBreak() } - if yyb1195 { + if yyb1341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16822,13 +18578,13 @@ func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Name = string(r.DecodeString()) } - yyj1195++ - if yyhl1195 { - yyb1195 = yyj1195 > l + yyj1341++ + if yyhl1341 { + yyb1341 = yyj1341 > l } else { - yyb1195 = r.CheckBreak() + yyb1341 = r.CheckBreak() } - if yyb1195 { + if yyb1341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16839,17 +18595,17 @@ func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder x.Key = string(r.DecodeString()) } for { - yyj1195++ - if yyhl1195 { - yyb1195 = yyj1195 > l + yyj1341++ + if yyhl1341 { + yyb1341 = yyj1341 > l } else { - yyb1195 = r.CheckBreak() + yyb1341 = r.CheckBreak() } - if yyb1195 { + if yyb1341 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1195-1, "") + z.DecStructFieldNotFound(yyj1341-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16861,33 +18617,33 @@ func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1198 := z.EncBinary() - _ = yym1198 + yym1344 := z.EncBinary() + _ = yym1344 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1199 := !z.EncBinary() - yy2arr1199 := z.EncBasicHandle().StructToArray - var yyq1199 [2]bool - _, _, _ = yysep1199, yyq1199, yy2arr1199 - const yyr1199 bool = false - var yynn1199 int - if yyr1199 || yy2arr1199 { + yysep1345 := !z.EncBinary() + yy2arr1345 := z.EncBasicHandle().StructToArray + var yyq1345 [2]bool + _, _, _ = yysep1345, yyq1345, yy2arr1345 + const yyr1345 bool = false + var yynn1345 int + if yyr1345 || yy2arr1345 { r.EncodeArrayStart(2) } else { - yynn1199 = 2 - for _, b := range yyq1199 { + yynn1345 = 2 + for _, b := range yyq1345 { if b { - yynn1199++ + yynn1345++ } } - r.EncodeMapStart(yynn1199) - yynn1199 = 0 + r.EncodeMapStart(yynn1345) + yynn1345 = 0 } - if yyr1199 || yy2arr1199 { + if yyr1345 || yy2arr1345 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1201 := z.EncBinary() - _ = yym1201 + yym1347 := z.EncBinary() + _ = yym1347 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -16896,17 +18652,17 @@ func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1202 := z.EncBinary() - _ = yym1202 + yym1348 := z.EncBinary() + _ = yym1348 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1199 || yy2arr1199 { + if yyr1345 || yy2arr1345 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1204 := z.EncBinary() - _ = yym1204 + yym1350 := z.EncBinary() + _ = yym1350 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -16915,14 +18671,14 @@ func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1205 := z.EncBinary() - _ = yym1205 + yym1351 := z.EncBinary() + _ = yym1351 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } - if yyr1199 || yy2arr1199 { + if yyr1345 || yy2arr1345 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16935,25 +18691,25 @@ func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1206 := z.DecBinary() - _ = yym1206 + yym1352 := z.DecBinary() + _ = yym1352 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1207 := r.ContainerType() - if yyct1207 == codecSelferValueTypeMap1234 { - yyl1207 := r.ReadMapStart() - if yyl1207 == 0 { + yyct1353 := r.ContainerType() + if yyct1353 == codecSelferValueTypeMap1234 { + yyl1353 := r.ReadMapStart() + if yyl1353 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1207, d) + x.codecDecodeSelfFromMap(yyl1353, d) } - } else if yyct1207 == codecSelferValueTypeArray1234 { - yyl1207 := r.ReadArrayStart() - if yyl1207 == 0 { + } else if yyct1353 == codecSelferValueTypeArray1234 { + yyl1353 := r.ReadArrayStart() + if yyl1353 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1207, d) + x.codecDecodeSelfFromArray(yyl1353, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16965,12 +18721,12 @@ func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1208Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1208Slc - var yyhl1208 bool = l >= 0 - for yyj1208 := 0; ; yyj1208++ { - if yyhl1208 { - if yyj1208 >= l { + var yys1354Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1354Slc + var yyhl1354 bool = l >= 0 + for yyj1354 := 0; ; yyj1354++ { + if yyhl1354 { + if yyj1354 >= l { break } } else { @@ -16979,10 +18735,10 @@ func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1208Slc = r.DecodeBytes(yys1208Slc, true, true) - yys1208 := string(yys1208Slc) + yys1354Slc = r.DecodeBytes(yys1354Slc, true, true) + yys1354 := string(yys1354Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1208 { + switch yys1354 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -16996,9 +18752,9 @@ func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Value = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1208) - } // end switch yys1208 - } // end for yyj1208 + z.DecStructFieldNotFound(-1, yys1354) + } // end switch yys1354 + } // end for yyj1354 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17006,16 +18762,16 @@ func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1211 int - var yyb1211 bool - var yyhl1211 bool = l >= 0 - yyj1211++ - if yyhl1211 { - yyb1211 = yyj1211 > l + var yyj1357 int + var yyb1357 bool + var yyhl1357 bool = l >= 0 + yyj1357++ + if yyhl1357 { + yyb1357 = yyj1357 > l } else { - yyb1211 = r.CheckBreak() + yyb1357 = r.CheckBreak() } - if yyb1211 { + if yyb1357 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17025,13 +18781,13 @@ func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1211++ - if yyhl1211 { - yyb1211 = yyj1211 > l + yyj1357++ + if yyhl1357 { + yyb1357 = yyj1357 > l } else { - yyb1211 = r.CheckBreak() + yyb1357 = r.CheckBreak() } - if yyb1211 { + if yyb1357 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17042,17 +18798,17 @@ func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Value = string(r.DecodeString()) } for { - yyj1211++ - if yyhl1211 { - yyb1211 = yyj1211 > l + yyj1357++ + if yyhl1357 { + yyb1357 = yyj1357 > l } else { - yyb1211 = r.CheckBreak() + yyb1357 = r.CheckBreak() } - if yyb1211 { + if yyb1357 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1211-1, "") + z.DecStructFieldNotFound(yyj1357-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17064,39 +18820,39 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1214 := z.EncBinary() - _ = yym1214 + yym1360 := z.EncBinary() + _ = yym1360 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1215 := !z.EncBinary() - yy2arr1215 := z.EncBasicHandle().StructToArray - var yyq1215 [5]bool - _, _, _ = yysep1215, yyq1215, yy2arr1215 - const yyr1215 bool = false - yyq1215[0] = x.Path != "" - yyq1215[1] = true - yyq1215[2] = x.Host != "" - yyq1215[3] = x.Scheme != "" - yyq1215[4] = len(x.HTTPHeaders) != 0 - var yynn1215 int - if yyr1215 || yy2arr1215 { + yysep1361 := !z.EncBinary() + yy2arr1361 := z.EncBasicHandle().StructToArray + var yyq1361 [5]bool + _, _, _ = yysep1361, yyq1361, yy2arr1361 + const yyr1361 bool = false + yyq1361[0] = x.Path != "" + yyq1361[1] = true + yyq1361[2] = x.Host != "" + yyq1361[3] = x.Scheme != "" + yyq1361[4] = len(x.HTTPHeaders) != 0 + var yynn1361 int + if yyr1361 || yy2arr1361 { r.EncodeArrayStart(5) } else { - yynn1215 = 0 - for _, b := range yyq1215 { + yynn1361 = 0 + for _, b := range yyq1361 { if b { - yynn1215++ + yynn1361++ } } - r.EncodeMapStart(yynn1215) - yynn1215 = 0 + r.EncodeMapStart(yynn1361) + yynn1361 = 0 } - if yyr1215 || yy2arr1215 { + if yyr1361 || yy2arr1361 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1215[0] { - yym1217 := z.EncBinary() - _ = yym1217 + if yyq1361[0] { + yym1363 := z.EncBinary() + _ = yym1363 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -17105,56 +18861,56 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1215[0] { + if yyq1361[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1218 := z.EncBinary() - _ = yym1218 + yym1364 := z.EncBinary() + _ = yym1364 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr1215 || yy2arr1215 { + if yyr1361 || yy2arr1361 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1215[1] { - yy1220 := &x.Port - yym1221 := z.EncBinary() - _ = yym1221 + if yyq1361[1] { + yy1366 := &x.Port + yym1367 := z.EncBinary() + _ = yym1367 if false { - } else if z.HasExtensions() && z.EncExt(yy1220) { - } else if !yym1221 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1220) + } else if z.HasExtensions() && z.EncExt(yy1366) { + } else if !yym1367 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1366) } else { - z.EncFallback(yy1220) + z.EncFallback(yy1366) } } else { r.EncodeNil() } } else { - if yyq1215[1] { + if yyq1361[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1222 := &x.Port - yym1223 := z.EncBinary() - _ = yym1223 + yy1368 := &x.Port + yym1369 := z.EncBinary() + _ = yym1369 if false { - } else if z.HasExtensions() && z.EncExt(yy1222) { - } else if !yym1223 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1222) + } else if z.HasExtensions() && z.EncExt(yy1368) { + } else if !yym1369 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1368) } else { - z.EncFallback(yy1222) + z.EncFallback(yy1368) } } } - if yyr1215 || yy2arr1215 { + if yyr1361 || yy2arr1361 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1215[2] { - yym1225 := z.EncBinary() - _ = yym1225 + if yyq1361[2] { + yym1371 := z.EncBinary() + _ = yym1371 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) @@ -17163,41 +18919,41 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1215[2] { + if yyq1361[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1226 := z.EncBinary() - _ = yym1226 + yym1372 := z.EncBinary() + _ = yym1372 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - if yyr1215 || yy2arr1215 { + if yyr1361 || yy2arr1361 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1215[3] { + if yyq1361[3] { x.Scheme.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1215[3] { + if yyq1361[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scheme")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Scheme.CodecEncodeSelf(e) } } - if yyr1215 || yy2arr1215 { + if yyr1361 || yy2arr1361 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1215[4] { + if yyq1361[4] { if x.HTTPHeaders == nil { r.EncodeNil() } else { - yym1229 := z.EncBinary() - _ = yym1229 + yym1375 := z.EncBinary() + _ = yym1375 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) @@ -17207,15 +18963,15 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1215[4] { + if yyq1361[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpHeaders")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HTTPHeaders == nil { r.EncodeNil() } else { - yym1230 := z.EncBinary() - _ = yym1230 + yym1376 := z.EncBinary() + _ = yym1376 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) @@ -17223,7 +18979,7 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1215 || yy2arr1215 { + if yyr1361 || yy2arr1361 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17236,25 +18992,25 @@ func (x *HTTPGetAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1231 := z.DecBinary() - _ = yym1231 + yym1377 := z.DecBinary() + _ = yym1377 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1232 := r.ContainerType() - if yyct1232 == codecSelferValueTypeMap1234 { - yyl1232 := r.ReadMapStart() - if yyl1232 == 0 { + yyct1378 := r.ContainerType() + if yyct1378 == codecSelferValueTypeMap1234 { + yyl1378 := r.ReadMapStart() + if yyl1378 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1232, d) + x.codecDecodeSelfFromMap(yyl1378, d) } - } else if yyct1232 == codecSelferValueTypeArray1234 { - yyl1232 := r.ReadArrayStart() - if yyl1232 == 0 { + } else if yyct1378 == codecSelferValueTypeArray1234 { + yyl1378 := r.ReadArrayStart() + if yyl1378 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1232, d) + x.codecDecodeSelfFromArray(yyl1378, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17266,12 +19022,12 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1233Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1233Slc - var yyhl1233 bool = l >= 0 - for yyj1233 := 0; ; yyj1233++ { - if yyhl1233 { - if yyj1233 >= l { + var yys1379Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1379Slc + var yyhl1379 bool = l >= 0 + for yyj1379 := 0; ; yyj1379++ { + if yyhl1379 { + if yyj1379 >= l { break } } else { @@ -17280,10 +19036,10 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1233Slc = r.DecodeBytes(yys1233Slc, true, true) - yys1233 := string(yys1233Slc) + yys1379Slc = r.DecodeBytes(yys1379Slc, true, true) + yys1379 := string(yys1379Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1233 { + switch yys1379 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -17294,15 +19050,15 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1235 := &x.Port - yym1236 := z.DecBinary() - _ = yym1236 + yyv1381 := &x.Port + yym1382 := z.DecBinary() + _ = yym1382 if false { - } else if z.HasExtensions() && z.DecExt(yyv1235) { - } else if !yym1236 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1235) + } else if z.HasExtensions() && z.DecExt(yyv1381) { + } else if !yym1382 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1381) } else { - z.DecFallback(yyv1235, false) + z.DecFallback(yyv1381, false) } } case "host": @@ -17321,18 +19077,18 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { - yyv1239 := &x.HTTPHeaders - yym1240 := z.DecBinary() - _ = yym1240 + yyv1385 := &x.HTTPHeaders + yym1386 := z.DecBinary() + _ = yym1386 if false { } else { - h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1239), d) + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1385), d) } } default: - z.DecStructFieldNotFound(-1, yys1233) - } // end switch yys1233 - } // end for yyj1233 + z.DecStructFieldNotFound(-1, yys1379) + } // end switch yys1379 + } // end for yyj1379 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17340,16 +19096,16 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1241 int - var yyb1241 bool - var yyhl1241 bool = l >= 0 - yyj1241++ - if yyhl1241 { - yyb1241 = yyj1241 > l + var yyj1387 int + var yyb1387 bool + var yyhl1387 bool = l >= 0 + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb1241 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb1241 { + if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17359,13 +19115,13 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Path = string(r.DecodeString()) } - yyj1241++ - if yyhl1241 { - yyb1241 = yyj1241 > l + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb1241 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb1241 { + if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17373,24 +19129,24 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1243 := &x.Port - yym1244 := z.DecBinary() - _ = yym1244 + yyv1389 := &x.Port + yym1390 := z.DecBinary() + _ = yym1390 if false { - } else if z.HasExtensions() && z.DecExt(yyv1243) { - } else if !yym1244 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1243) + } else if z.HasExtensions() && z.DecExt(yyv1389) { + } else if !yym1390 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1389) } else { - z.DecFallback(yyv1243, false) + z.DecFallback(yyv1389, false) } } - yyj1241++ - if yyhl1241 { - yyb1241 = yyj1241 > l + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb1241 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb1241 { + if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17400,13 +19156,13 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Host = string(r.DecodeString()) } - yyj1241++ - if yyhl1241 { - yyb1241 = yyj1241 > l + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb1241 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb1241 { + if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17416,13 +19172,13 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Scheme = URIScheme(r.DecodeString()) } - yyj1241++ - if yyhl1241 { - yyb1241 = yyj1241 > l + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb1241 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb1241 { + if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17430,26 +19186,26 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { - yyv1247 := &x.HTTPHeaders - yym1248 := z.DecBinary() - _ = yym1248 + yyv1393 := &x.HTTPHeaders + yym1394 := z.DecBinary() + _ = yym1394 if false { } else { - h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1247), d) + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1393), d) } } for { - yyj1241++ - if yyhl1241 { - yyb1241 = yyj1241 > l + yyj1387++ + if yyhl1387 { + yyb1387 = yyj1387 > l } else { - yyb1241 = r.CheckBreak() + yyb1387 = r.CheckBreak() } - if yyb1241 { + if yyb1387 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1241-1, "") + z.DecStructFieldNotFound(yyj1387-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17458,8 +19214,8 @@ func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1249 := z.EncBinary() - _ = yym1249 + yym1395 := z.EncBinary() + _ = yym1395 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -17471,8 +19227,8 @@ func (x *URIScheme) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1250 := z.DecBinary() - _ = yym1250 + yym1396 := z.DecBinary() + _ = yym1396 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -17487,64 +19243,64 @@ func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1251 := z.EncBinary() - _ = yym1251 + yym1397 := z.EncBinary() + _ = yym1397 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1252 := !z.EncBinary() - yy2arr1252 := z.EncBasicHandle().StructToArray - var yyq1252 [1]bool - _, _, _ = yysep1252, yyq1252, yy2arr1252 - const yyr1252 bool = false - yyq1252[0] = true - var yynn1252 int - if yyr1252 || yy2arr1252 { + yysep1398 := !z.EncBinary() + yy2arr1398 := z.EncBasicHandle().StructToArray + var yyq1398 [1]bool + _, _, _ = yysep1398, yyq1398, yy2arr1398 + const yyr1398 bool = false + yyq1398[0] = true + var yynn1398 int + if yyr1398 || yy2arr1398 { r.EncodeArrayStart(1) } else { - yynn1252 = 0 - for _, b := range yyq1252 { + yynn1398 = 0 + for _, b := range yyq1398 { if b { - yynn1252++ + yynn1398++ } } - r.EncodeMapStart(yynn1252) - yynn1252 = 0 + r.EncodeMapStart(yynn1398) + yynn1398 = 0 } - if yyr1252 || yy2arr1252 { + if yyr1398 || yy2arr1398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1252[0] { - yy1254 := &x.Port - yym1255 := z.EncBinary() - _ = yym1255 + if yyq1398[0] { + yy1400 := &x.Port + yym1401 := z.EncBinary() + _ = yym1401 if false { - } else if z.HasExtensions() && z.EncExt(yy1254) { - } else if !yym1255 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1254) + } else if z.HasExtensions() && z.EncExt(yy1400) { + } else if !yym1401 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1400) } else { - z.EncFallback(yy1254) + z.EncFallback(yy1400) } } else { r.EncodeNil() } } else { - if yyq1252[0] { + if yyq1398[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1256 := &x.Port - yym1257 := z.EncBinary() - _ = yym1257 + yy1402 := &x.Port + yym1403 := z.EncBinary() + _ = yym1403 if false { - } else if z.HasExtensions() && z.EncExt(yy1256) { - } else if !yym1257 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1256) + } else if z.HasExtensions() && z.EncExt(yy1402) { + } else if !yym1403 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1402) } else { - z.EncFallback(yy1256) + z.EncFallback(yy1402) } } } - if yyr1252 || yy2arr1252 { + if yyr1398 || yy2arr1398 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17557,25 +19313,25 @@ func (x *TCPSocketAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1258 := z.DecBinary() - _ = yym1258 + yym1404 := z.DecBinary() + _ = yym1404 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1259 := r.ContainerType() - if yyct1259 == codecSelferValueTypeMap1234 { - yyl1259 := r.ReadMapStart() - if yyl1259 == 0 { + yyct1405 := r.ContainerType() + if yyct1405 == codecSelferValueTypeMap1234 { + yyl1405 := r.ReadMapStart() + if yyl1405 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1259, d) + x.codecDecodeSelfFromMap(yyl1405, d) } - } else if yyct1259 == codecSelferValueTypeArray1234 { - yyl1259 := r.ReadArrayStart() - if yyl1259 == 0 { + } else if yyct1405 == codecSelferValueTypeArray1234 { + yyl1405 := r.ReadArrayStart() + if yyl1405 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1259, d) + x.codecDecodeSelfFromArray(yyl1405, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17587,12 +19343,12 @@ func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1260Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1260Slc - var yyhl1260 bool = l >= 0 - for yyj1260 := 0; ; yyj1260++ { - if yyhl1260 { - if yyj1260 >= l { + var yys1406Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1406Slc + var yyhl1406 bool = l >= 0 + for yyj1406 := 0; ; yyj1406++ { + if yyhl1406 { + if yyj1406 >= l { break } } else { @@ -17601,29 +19357,29 @@ func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1260Slc = r.DecodeBytes(yys1260Slc, true, true) - yys1260 := string(yys1260Slc) + yys1406Slc = r.DecodeBytes(yys1406Slc, true, true) + yys1406 := string(yys1406Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1260 { + switch yys1406 { case "port": if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1261 := &x.Port - yym1262 := z.DecBinary() - _ = yym1262 + yyv1407 := &x.Port + yym1408 := z.DecBinary() + _ = yym1408 if false { - } else if z.HasExtensions() && z.DecExt(yyv1261) { - } else if !yym1262 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1261) + } else if z.HasExtensions() && z.DecExt(yyv1407) { + } else if !yym1408 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1407) } else { - z.DecFallback(yyv1261, false) + z.DecFallback(yyv1407, false) } } default: - z.DecStructFieldNotFound(-1, yys1260) - } // end switch yys1260 - } // end for yyj1260 + z.DecStructFieldNotFound(-1, yys1406) + } // end switch yys1406 + } // end for yyj1406 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17631,16 +19387,16 @@ func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1263 int - var yyb1263 bool - var yyhl1263 bool = l >= 0 - yyj1263++ - if yyhl1263 { - yyb1263 = yyj1263 > l + var yyj1409 int + var yyb1409 bool + var yyhl1409 bool = l >= 0 + yyj1409++ + if yyhl1409 { + yyb1409 = yyj1409 > l } else { - yyb1263 = r.CheckBreak() + yyb1409 = r.CheckBreak() } - if yyb1263 { + if yyb1409 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17648,29 +19404,29 @@ func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1264 := &x.Port - yym1265 := z.DecBinary() - _ = yym1265 + yyv1410 := &x.Port + yym1411 := z.DecBinary() + _ = yym1411 if false { - } else if z.HasExtensions() && z.DecExt(yyv1264) { - } else if !yym1265 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1264) + } else if z.HasExtensions() && z.DecExt(yyv1410) { + } else if !yym1411 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1410) } else { - z.DecFallback(yyv1264, false) + z.DecFallback(yyv1410, false) } } for { - yyj1263++ - if yyhl1263 { - yyb1263 = yyj1263 > l + yyj1409++ + if yyhl1409 { + yyb1409 = yyj1409 > l } else { - yyb1263 = r.CheckBreak() + yyb1409 = r.CheckBreak() } - if yyb1263 { + if yyb1409 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1263-1, "") + z.DecStructFieldNotFound(yyj1409-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17682,38 +19438,38 @@ func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1266 := z.EncBinary() - _ = yym1266 + yym1412 := z.EncBinary() + _ = yym1412 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1267 := !z.EncBinary() - yy2arr1267 := z.EncBasicHandle().StructToArray - var yyq1267 [1]bool - _, _, _ = yysep1267, yyq1267, yy2arr1267 - const yyr1267 bool = false - yyq1267[0] = len(x.Command) != 0 - var yynn1267 int - if yyr1267 || yy2arr1267 { + yysep1413 := !z.EncBinary() + yy2arr1413 := z.EncBasicHandle().StructToArray + var yyq1413 [1]bool + _, _, _ = yysep1413, yyq1413, yy2arr1413 + const yyr1413 bool = false + yyq1413[0] = len(x.Command) != 0 + var yynn1413 int + if yyr1413 || yy2arr1413 { r.EncodeArrayStart(1) } else { - yynn1267 = 0 - for _, b := range yyq1267 { + yynn1413 = 0 + for _, b := range yyq1413 { if b { - yynn1267++ + yynn1413++ } } - r.EncodeMapStart(yynn1267) - yynn1267 = 0 + r.EncodeMapStart(yynn1413) + yynn1413 = 0 } - if yyr1267 || yy2arr1267 { + if yyr1413 || yy2arr1413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1267[0] { + if yyq1413[0] { if x.Command == nil { r.EncodeNil() } else { - yym1269 := z.EncBinary() - _ = yym1269 + yym1415 := z.EncBinary() + _ = yym1415 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -17723,15 +19479,15 @@ func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1267[0] { + if yyq1413[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { - yym1270 := z.EncBinary() - _ = yym1270 + yym1416 := z.EncBinary() + _ = yym1416 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -17739,7 +19495,7 @@ func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1267 || yy2arr1267 { + if yyr1413 || yy2arr1413 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17752,25 +19508,25 @@ func (x *ExecAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1271 := z.DecBinary() - _ = yym1271 + yym1417 := z.DecBinary() + _ = yym1417 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1272 := r.ContainerType() - if yyct1272 == codecSelferValueTypeMap1234 { - yyl1272 := r.ReadMapStart() - if yyl1272 == 0 { + yyct1418 := r.ContainerType() + if yyct1418 == codecSelferValueTypeMap1234 { + yyl1418 := r.ReadMapStart() + if yyl1418 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1272, d) + x.codecDecodeSelfFromMap(yyl1418, d) } - } else if yyct1272 == codecSelferValueTypeArray1234 { - yyl1272 := r.ReadArrayStart() - if yyl1272 == 0 { + } else if yyct1418 == codecSelferValueTypeArray1234 { + yyl1418 := r.ReadArrayStart() + if yyl1418 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1272, d) + x.codecDecodeSelfFromArray(yyl1418, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17782,12 +19538,12 @@ func (x *ExecAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1273Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1273Slc - var yyhl1273 bool = l >= 0 - for yyj1273 := 0; ; yyj1273++ { - if yyhl1273 { - if yyj1273 >= l { + var yys1419Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1419Slc + var yyhl1419 bool = l >= 0 + for yyj1419 := 0; ; yyj1419++ { + if yyhl1419 { + if yyj1419 >= l { break } } else { @@ -17796,26 +19552,26 @@ func (x *ExecAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1273Slc = r.DecodeBytes(yys1273Slc, true, true) - yys1273 := string(yys1273Slc) + yys1419Slc = r.DecodeBytes(yys1419Slc, true, true) + yys1419 := string(yys1419Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1273 { + switch yys1419 { case "command": if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1274 := &x.Command - yym1275 := z.DecBinary() - _ = yym1275 + yyv1420 := &x.Command + yym1421 := z.DecBinary() + _ = yym1421 if false { } else { - z.F.DecSliceStringX(yyv1274, false, d) + z.F.DecSliceStringX(yyv1420, false, d) } } default: - z.DecStructFieldNotFound(-1, yys1273) - } // end switch yys1273 - } // end for yyj1273 + z.DecStructFieldNotFound(-1, yys1419) + } // end switch yys1419 + } // end for yyj1419 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17823,16 +19579,16 @@ func (x *ExecAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1276 int - var yyb1276 bool - var yyhl1276 bool = l >= 0 - yyj1276++ - if yyhl1276 { - yyb1276 = yyj1276 > l + var yyj1422 int + var yyb1422 bool + var yyhl1422 bool = l >= 0 + yyj1422++ + if yyhl1422 { + yyb1422 = yyj1422 > l } else { - yyb1276 = r.CheckBreak() + yyb1422 = r.CheckBreak() } - if yyb1276 { + if yyb1422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17840,26 +19596,26 @@ func (x *ExecAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1277 := &x.Command - yym1278 := z.DecBinary() - _ = yym1278 + yyv1423 := &x.Command + yym1424 := z.DecBinary() + _ = yym1424 if false { } else { - z.F.DecSliceStringX(yyv1277, false, d) + z.F.DecSliceStringX(yyv1423, false, d) } } for { - yyj1276++ - if yyhl1276 { - yyb1276 = yyj1276 > l + yyj1422++ + if yyhl1422 { + yyb1422 = yyj1422 > l } else { - yyb1276 = r.CheckBreak() + yyb1422 = r.CheckBreak() } - if yyb1276 { + if yyb1422 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1276-1, "") + z.DecStructFieldNotFound(yyj1422-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17871,49 +19627,49 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1279 := z.EncBinary() - _ = yym1279 + yym1425 := z.EncBinary() + _ = yym1425 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1280 := !z.EncBinary() - yy2arr1280 := z.EncBasicHandle().StructToArray - var yyq1280 [8]bool - _, _, _ = yysep1280, yyq1280, yy2arr1280 - const yyr1280 bool = false - yyq1280[0] = x.Handler.Exec != nil && x.Exec != nil - yyq1280[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil - yyq1280[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil - yyq1280[3] = x.InitialDelaySeconds != 0 - yyq1280[4] = x.TimeoutSeconds != 0 - yyq1280[5] = x.PeriodSeconds != 0 - yyq1280[6] = x.SuccessThreshold != 0 - yyq1280[7] = x.FailureThreshold != 0 - var yynn1280 int - if yyr1280 || yy2arr1280 { + yysep1426 := !z.EncBinary() + yy2arr1426 := z.EncBasicHandle().StructToArray + var yyq1426 [8]bool + _, _, _ = yysep1426, yyq1426, yy2arr1426 + const yyr1426 bool = false + yyq1426[0] = x.Handler.Exec != nil && x.Exec != nil + yyq1426[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil + yyq1426[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil + yyq1426[3] = x.InitialDelaySeconds != 0 + yyq1426[4] = x.TimeoutSeconds != 0 + yyq1426[5] = x.PeriodSeconds != 0 + yyq1426[6] = x.SuccessThreshold != 0 + yyq1426[7] = x.FailureThreshold != 0 + var yynn1426 int + if yyr1426 || yy2arr1426 { r.EncodeArrayStart(8) } else { - yynn1280 = 0 - for _, b := range yyq1280 { + yynn1426 = 0 + for _, b := range yyq1426 { if b { - yynn1280++ + yynn1426++ } } - r.EncodeMapStart(yynn1280) - yynn1280 = 0 + r.EncodeMapStart(yynn1426) + yynn1426 = 0 } - var yyn1281 bool + var yyn1427 bool if x.Handler.Exec == nil { - yyn1281 = true - goto LABEL1281 + yyn1427 = true + goto LABEL1427 } - LABEL1281: - if yyr1280 || yy2arr1280 { - if yyn1281 { + LABEL1427: + if yyr1426 || yy2arr1426 { + if yyn1427 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1280[0] { + if yyq1426[0] { if x.Exec == nil { r.EncodeNil() } else { @@ -17924,11 +19680,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq1280[0] { + if yyq1426[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1281 { + if yyn1427 { r.EncodeNil() } else { if x.Exec == nil { @@ -17939,18 +19695,18 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn1282 bool + var yyn1428 bool if x.Handler.HTTPGet == nil { - yyn1282 = true - goto LABEL1282 + yyn1428 = true + goto LABEL1428 } - LABEL1282: - if yyr1280 || yy2arr1280 { - if yyn1282 { + LABEL1428: + if yyr1426 || yy2arr1426 { + if yyn1428 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1280[1] { + if yyq1426[1] { if x.HTTPGet == nil { r.EncodeNil() } else { @@ -17961,11 +19717,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq1280[1] { + if yyq1426[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1282 { + if yyn1428 { r.EncodeNil() } else { if x.HTTPGet == nil { @@ -17976,18 +19732,18 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn1283 bool + var yyn1429 bool if x.Handler.TCPSocket == nil { - yyn1283 = true - goto LABEL1283 + yyn1429 = true + goto LABEL1429 } - LABEL1283: - if yyr1280 || yy2arr1280 { - if yyn1283 { + LABEL1429: + if yyr1426 || yy2arr1426 { + if yyn1429 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1280[2] { + if yyq1426[2] { if x.TCPSocket == nil { r.EncodeNil() } else { @@ -17998,11 +19754,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq1280[2] { + if yyq1426[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1283 { + if yyn1429 { r.EncodeNil() } else { if x.TCPSocket == nil { @@ -18013,11 +19769,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1280 || yy2arr1280 { + if yyr1426 || yy2arr1426 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1280[3] { - yym1285 := z.EncBinary() - _ = yym1285 + if yyq1426[3] { + yym1431 := z.EncBinary() + _ = yym1431 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) @@ -18026,23 +19782,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1280[3] { + if yyq1426[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1286 := z.EncBinary() - _ = yym1286 + yym1432 := z.EncBinary() + _ = yym1432 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } } - if yyr1280 || yy2arr1280 { + if yyr1426 || yy2arr1426 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1280[4] { - yym1288 := z.EncBinary() - _ = yym1288 + if yyq1426[4] { + yym1434 := z.EncBinary() + _ = yym1434 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) @@ -18051,23 +19807,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1280[4] { + if yyq1426[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1289 := z.EncBinary() - _ = yym1289 + yym1435 := z.EncBinary() + _ = yym1435 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } } - if yyr1280 || yy2arr1280 { + if yyr1426 || yy2arr1426 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1280[5] { - yym1291 := z.EncBinary() - _ = yym1291 + if yyq1426[5] { + yym1437 := z.EncBinary() + _ = yym1437 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) @@ -18076,23 +19832,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1280[5] { + if yyq1426[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1292 := z.EncBinary() - _ = yym1292 + yym1438 := z.EncBinary() + _ = yym1438 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } } - if yyr1280 || yy2arr1280 { + if yyr1426 || yy2arr1426 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1280[6] { - yym1294 := z.EncBinary() - _ = yym1294 + if yyq1426[6] { + yym1440 := z.EncBinary() + _ = yym1440 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) @@ -18101,23 +19857,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1280[6] { + if yyq1426[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1295 := z.EncBinary() - _ = yym1295 + yym1441 := z.EncBinary() + _ = yym1441 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } } - if yyr1280 || yy2arr1280 { + if yyr1426 || yy2arr1426 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1280[7] { - yym1297 := z.EncBinary() - _ = yym1297 + if yyq1426[7] { + yym1443 := z.EncBinary() + _ = yym1443 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) @@ -18126,19 +19882,19 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1280[7] { + if yyq1426[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1298 := z.EncBinary() - _ = yym1298 + yym1444 := z.EncBinary() + _ = yym1444 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } } - if yyr1280 || yy2arr1280 { + if yyr1426 || yy2arr1426 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18151,25 +19907,25 @@ func (x *Probe) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1299 := z.DecBinary() - _ = yym1299 + yym1445 := z.DecBinary() + _ = yym1445 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1300 := r.ContainerType() - if yyct1300 == codecSelferValueTypeMap1234 { - yyl1300 := r.ReadMapStart() - if yyl1300 == 0 { + yyct1446 := r.ContainerType() + if yyct1446 == codecSelferValueTypeMap1234 { + yyl1446 := r.ReadMapStart() + if yyl1446 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1300, d) + x.codecDecodeSelfFromMap(yyl1446, d) } - } else if yyct1300 == codecSelferValueTypeArray1234 { - yyl1300 := r.ReadArrayStart() - if yyl1300 == 0 { + } else if yyct1446 == codecSelferValueTypeArray1234 { + yyl1446 := r.ReadArrayStart() + if yyl1446 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1300, d) + x.codecDecodeSelfFromArray(yyl1446, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18181,12 +19937,12 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1301Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1301Slc - var yyhl1301 bool = l >= 0 - for yyj1301 := 0; ; yyj1301++ { - if yyhl1301 { - if yyj1301 >= l { + var yys1447Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1447Slc + var yyhl1447 bool = l >= 0 + for yyj1447 := 0; ; yyj1447++ { + if yyhl1447 { + if yyj1447 >= l { break } } else { @@ -18195,10 +19951,10 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1301Slc = r.DecodeBytes(yys1301Slc, true, true) - yys1301 := string(yys1301Slc) + yys1447Slc = r.DecodeBytes(yys1447Slc, true, true) + yys1447 := string(yys1447Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1301 { + switch yys1447 { case "exec": if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) @@ -18272,9 +20028,9 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.FailureThreshold = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys1301) - } // end switch yys1301 - } // end for yyj1301 + z.DecStructFieldNotFound(-1, yys1447) + } // end switch yys1447 + } // end for yyj1447 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18282,19 +20038,19 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1310 int - var yyb1310 bool - var yyhl1310 bool = l >= 0 + var yyj1456 int + var yyb1456 bool + var yyhl1456 bool = l >= 0 if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } - yyj1310++ - if yyhl1310 { - yyb1310 = yyj1310 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb1310 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb1310 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18312,13 +20068,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Handler.HTTPGet == nil { x.Handler.HTTPGet = new(HTTPGetAction) } - yyj1310++ - if yyhl1310 { - yyb1310 = yyj1310 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb1310 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb1310 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18336,13 +20092,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Handler.TCPSocket == nil { x.Handler.TCPSocket = new(TCPSocketAction) } - yyj1310++ - if yyhl1310 { - yyb1310 = yyj1310 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb1310 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb1310 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18357,13 +20113,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.TCPSocket.CodecDecodeSelf(d) } - yyj1310++ - if yyhl1310 { - yyb1310 = yyj1310 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb1310 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb1310 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18373,13 +20129,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.InitialDelaySeconds = int32(r.DecodeInt(32)) } - yyj1310++ - if yyhl1310 { - yyb1310 = yyj1310 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb1310 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb1310 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18389,13 +20145,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.TimeoutSeconds = int32(r.DecodeInt(32)) } - yyj1310++ - if yyhl1310 { - yyb1310 = yyj1310 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb1310 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb1310 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18405,13 +20161,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.PeriodSeconds = int32(r.DecodeInt(32)) } - yyj1310++ - if yyhl1310 { - yyb1310 = yyj1310 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb1310 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb1310 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18421,13 +20177,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SuccessThreshold = int32(r.DecodeInt(32)) } - yyj1310++ - if yyhl1310 { - yyb1310 = yyj1310 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb1310 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb1310 { + if yyb1456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18438,17 +20194,17 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.FailureThreshold = int32(r.DecodeInt(32)) } for { - yyj1310++ - if yyhl1310 { - yyb1310 = yyj1310 > l + yyj1456++ + if yyhl1456 { + yyb1456 = yyj1456 > l } else { - yyb1310 = r.CheckBreak() + yyb1456 = r.CheckBreak() } - if yyb1310 { + if yyb1456 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1310-1, "") + z.DecStructFieldNotFound(yyj1456-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18457,8 +20213,8 @@ func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1319 := z.EncBinary() - _ = yym1319 + yym1465 := z.EncBinary() + _ = yym1465 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18470,8 +20226,8 @@ func (x *PullPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1320 := z.DecBinary() - _ = yym1320 + yym1466 := z.DecBinary() + _ = yym1466 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18483,8 +20239,8 @@ func (x Capability) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1321 := z.EncBinary() - _ = yym1321 + yym1467 := z.EncBinary() + _ = yym1467 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18496,8 +20252,8 @@ func (x *Capability) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1322 := z.DecBinary() - _ = yym1322 + yym1468 := z.DecBinary() + _ = yym1468 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18512,39 +20268,39 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1323 := z.EncBinary() - _ = yym1323 + yym1469 := z.EncBinary() + _ = yym1469 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1324 := !z.EncBinary() - yy2arr1324 := z.EncBasicHandle().StructToArray - var yyq1324 [2]bool - _, _, _ = yysep1324, yyq1324, yy2arr1324 - const yyr1324 bool = false - yyq1324[0] = len(x.Add) != 0 - yyq1324[1] = len(x.Drop) != 0 - var yynn1324 int - if yyr1324 || yy2arr1324 { + yysep1470 := !z.EncBinary() + yy2arr1470 := z.EncBasicHandle().StructToArray + var yyq1470 [2]bool + _, _, _ = yysep1470, yyq1470, yy2arr1470 + const yyr1470 bool = false + yyq1470[0] = len(x.Add) != 0 + yyq1470[1] = len(x.Drop) != 0 + var yynn1470 int + if yyr1470 || yy2arr1470 { r.EncodeArrayStart(2) } else { - yynn1324 = 0 - for _, b := range yyq1324 { + yynn1470 = 0 + for _, b := range yyq1470 { if b { - yynn1324++ + yynn1470++ } } - r.EncodeMapStart(yynn1324) - yynn1324 = 0 + r.EncodeMapStart(yynn1470) + yynn1470 = 0 } - if yyr1324 || yy2arr1324 { + if yyr1470 || yy2arr1470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1324[0] { + if yyq1470[0] { if x.Add == nil { r.EncodeNil() } else { - yym1326 := z.EncBinary() - _ = yym1326 + yym1472 := z.EncBinary() + _ = yym1472 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) @@ -18554,15 +20310,15 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1324[0] { + if yyq1470[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("add")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Add == nil { r.EncodeNil() } else { - yym1327 := z.EncBinary() - _ = yym1327 + yym1473 := z.EncBinary() + _ = yym1473 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) @@ -18570,14 +20326,14 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1324 || yy2arr1324 { + if yyr1470 || yy2arr1470 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1324[1] { + if yyq1470[1] { if x.Drop == nil { r.EncodeNil() } else { - yym1329 := z.EncBinary() - _ = yym1329 + yym1475 := z.EncBinary() + _ = yym1475 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) @@ -18587,15 +20343,15 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1324[1] { + if yyq1470[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("drop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Drop == nil { r.EncodeNil() } else { - yym1330 := z.EncBinary() - _ = yym1330 + yym1476 := z.EncBinary() + _ = yym1476 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) @@ -18603,7 +20359,7 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1324 || yy2arr1324 { + if yyr1470 || yy2arr1470 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18616,25 +20372,25 @@ func (x *Capabilities) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1331 := z.DecBinary() - _ = yym1331 + yym1477 := z.DecBinary() + _ = yym1477 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1332 := r.ContainerType() - if yyct1332 == codecSelferValueTypeMap1234 { - yyl1332 := r.ReadMapStart() - if yyl1332 == 0 { + yyct1478 := r.ContainerType() + if yyct1478 == codecSelferValueTypeMap1234 { + yyl1478 := r.ReadMapStart() + if yyl1478 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1332, d) + x.codecDecodeSelfFromMap(yyl1478, d) } - } else if yyct1332 == codecSelferValueTypeArray1234 { - yyl1332 := r.ReadArrayStart() - if yyl1332 == 0 { + } else if yyct1478 == codecSelferValueTypeArray1234 { + yyl1478 := r.ReadArrayStart() + if yyl1478 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1332, d) + x.codecDecodeSelfFromArray(yyl1478, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18646,12 +20402,12 @@ func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1333Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1333Slc - var yyhl1333 bool = l >= 0 - for yyj1333 := 0; ; yyj1333++ { - if yyhl1333 { - if yyj1333 >= l { + var yys1479Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1479Slc + var yyhl1479 bool = l >= 0 + for yyj1479 := 0; ; yyj1479++ { + if yyhl1479 { + if yyj1479 >= l { break } } else { @@ -18660,38 +20416,38 @@ func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1333Slc = r.DecodeBytes(yys1333Slc, true, true) - yys1333 := string(yys1333Slc) + yys1479Slc = r.DecodeBytes(yys1479Slc, true, true) + yys1479 := string(yys1479Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1333 { + switch yys1479 { case "add": if r.TryDecodeAsNil() { x.Add = nil } else { - yyv1334 := &x.Add - yym1335 := z.DecBinary() - _ = yym1335 + yyv1480 := &x.Add + yym1481 := z.DecBinary() + _ = yym1481 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1334), d) + h.decSliceCapability((*[]Capability)(yyv1480), d) } } case "drop": if r.TryDecodeAsNil() { x.Drop = nil } else { - yyv1336 := &x.Drop - yym1337 := z.DecBinary() - _ = yym1337 + yyv1482 := &x.Drop + yym1483 := z.DecBinary() + _ = yym1483 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1336), d) + h.decSliceCapability((*[]Capability)(yyv1482), d) } } default: - z.DecStructFieldNotFound(-1, yys1333) - } // end switch yys1333 - } // end for yyj1333 + z.DecStructFieldNotFound(-1, yys1479) + } // end switch yys1479 + } // end for yyj1479 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18699,16 +20455,16 @@ func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1338 int - var yyb1338 bool - var yyhl1338 bool = l >= 0 - yyj1338++ - if yyhl1338 { - yyb1338 = yyj1338 > l + var yyj1484 int + var yyb1484 bool + var yyhl1484 bool = l >= 0 + yyj1484++ + if yyhl1484 { + yyb1484 = yyj1484 > l } else { - yyb1338 = r.CheckBreak() + yyb1484 = r.CheckBreak() } - if yyb1338 { + if yyb1484 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18716,21 +20472,21 @@ func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Add = nil } else { - yyv1339 := &x.Add - yym1340 := z.DecBinary() - _ = yym1340 + yyv1485 := &x.Add + yym1486 := z.DecBinary() + _ = yym1486 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1339), d) + h.decSliceCapability((*[]Capability)(yyv1485), d) } } - yyj1338++ - if yyhl1338 { - yyb1338 = yyj1338 > l + yyj1484++ + if yyhl1484 { + yyb1484 = yyj1484 > l } else { - yyb1338 = r.CheckBreak() + yyb1484 = r.CheckBreak() } - if yyb1338 { + if yyb1484 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18738,26 +20494,26 @@ func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Drop = nil } else { - yyv1341 := &x.Drop - yym1342 := z.DecBinary() - _ = yym1342 + yyv1487 := &x.Drop + yym1488 := z.DecBinary() + _ = yym1488 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1341), d) + h.decSliceCapability((*[]Capability)(yyv1487), d) } } for { - yyj1338++ - if yyhl1338 { - yyb1338 = yyj1338 > l + yyj1484++ + if yyhl1484 { + yyb1484 = yyj1484 > l } else { - yyb1338 = r.CheckBreak() + yyb1484 = r.CheckBreak() } - if yyb1338 { + if yyb1484 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1338-1, "") + z.DecStructFieldNotFound(yyj1484-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18769,34 +20525,34 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1343 := z.EncBinary() - _ = yym1343 + yym1489 := z.EncBinary() + _ = yym1489 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1344 := !z.EncBinary() - yy2arr1344 := z.EncBasicHandle().StructToArray - var yyq1344 [2]bool - _, _, _ = yysep1344, yyq1344, yy2arr1344 - const yyr1344 bool = false - yyq1344[0] = len(x.Limits) != 0 - yyq1344[1] = len(x.Requests) != 0 - var yynn1344 int - if yyr1344 || yy2arr1344 { + yysep1490 := !z.EncBinary() + yy2arr1490 := z.EncBasicHandle().StructToArray + var yyq1490 [2]bool + _, _, _ = yysep1490, yyq1490, yy2arr1490 + const yyr1490 bool = false + yyq1490[0] = len(x.Limits) != 0 + yyq1490[1] = len(x.Requests) != 0 + var yynn1490 int + if yyr1490 || yy2arr1490 { r.EncodeArrayStart(2) } else { - yynn1344 = 0 - for _, b := range yyq1344 { + yynn1490 = 0 + for _, b := range yyq1490 { if b { - yynn1344++ + yynn1490++ } } - r.EncodeMapStart(yynn1344) - yynn1344 = 0 + r.EncodeMapStart(yynn1490) + yynn1490 = 0 } - if yyr1344 || yy2arr1344 { + if yyr1490 || yy2arr1490 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1344[0] { + if yyq1490[0] { if x.Limits == nil { r.EncodeNil() } else { @@ -18806,7 +20562,7 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1344[0] { + if yyq1490[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("limits")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -18817,9 +20573,9 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1344 || yy2arr1344 { + if yyr1490 || yy2arr1490 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1344[1] { + if yyq1490[1] { if x.Requests == nil { r.EncodeNil() } else { @@ -18829,7 +20585,7 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1344[1] { + if yyq1490[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requests")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -18840,7 +20596,7 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1344 || yy2arr1344 { + if yyr1490 || yy2arr1490 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18853,25 +20609,25 @@ func (x *ResourceRequirements) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1347 := z.DecBinary() - _ = yym1347 + yym1493 := z.DecBinary() + _ = yym1493 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1348 := r.ContainerType() - if yyct1348 == codecSelferValueTypeMap1234 { - yyl1348 := r.ReadMapStart() - if yyl1348 == 0 { + yyct1494 := r.ContainerType() + if yyct1494 == codecSelferValueTypeMap1234 { + yyl1494 := r.ReadMapStart() + if yyl1494 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1348, d) + x.codecDecodeSelfFromMap(yyl1494, d) } - } else if yyct1348 == codecSelferValueTypeArray1234 { - yyl1348 := r.ReadArrayStart() - if yyl1348 == 0 { + } else if yyct1494 == codecSelferValueTypeArray1234 { + yyl1494 := r.ReadArrayStart() + if yyl1494 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1348, d) + x.codecDecodeSelfFromArray(yyl1494, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18883,12 +20639,12 @@ func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1349Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1349Slc - var yyhl1349 bool = l >= 0 - for yyj1349 := 0; ; yyj1349++ { - if yyhl1349 { - if yyj1349 >= l { + var yys1495Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1495Slc + var yyhl1495 bool = l >= 0 + for yyj1495 := 0; ; yyj1495++ { + if yyhl1495 { + if yyj1495 >= l { break } } else { @@ -18897,28 +20653,28 @@ func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1349Slc = r.DecodeBytes(yys1349Slc, true, true) - yys1349 := string(yys1349Slc) + yys1495Slc = r.DecodeBytes(yys1495Slc, true, true) + yys1495 := string(yys1495Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1349 { + switch yys1495 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv1350 := &x.Limits - yyv1350.CodecDecodeSelf(d) + yyv1496 := &x.Limits + yyv1496.CodecDecodeSelf(d) } case "requests": if r.TryDecodeAsNil() { x.Requests = nil } else { - yyv1351 := &x.Requests - yyv1351.CodecDecodeSelf(d) + yyv1497 := &x.Requests + yyv1497.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1349) - } // end switch yys1349 - } // end for yyj1349 + z.DecStructFieldNotFound(-1, yys1495) + } // end switch yys1495 + } // end for yyj1495 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18926,16 +20682,16 @@ func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1352 int - var yyb1352 bool - var yyhl1352 bool = l >= 0 - yyj1352++ - if yyhl1352 { - yyb1352 = yyj1352 > l + var yyj1498 int + var yyb1498 bool + var yyhl1498 bool = l >= 0 + yyj1498++ + if yyhl1498 { + yyb1498 = yyj1498 > l } else { - yyb1352 = r.CheckBreak() + yyb1498 = r.CheckBreak() } - if yyb1352 { + if yyb1498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18943,16 +20699,16 @@ func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv1353 := &x.Limits - yyv1353.CodecDecodeSelf(d) + yyv1499 := &x.Limits + yyv1499.CodecDecodeSelf(d) } - yyj1352++ - if yyhl1352 { - yyb1352 = yyj1352 > l + yyj1498++ + if yyhl1498 { + yyb1498 = yyj1498 > l } else { - yyb1352 = r.CheckBreak() + yyb1498 = r.CheckBreak() } - if yyb1352 { + if yyb1498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18960,21 +20716,21 @@ func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Requests = nil } else { - yyv1354 := &x.Requests - yyv1354.CodecDecodeSelf(d) + yyv1500 := &x.Requests + yyv1500.CodecDecodeSelf(d) } for { - yyj1352++ - if yyhl1352 { - yyb1352 = yyj1352 > l + yyj1498++ + if yyhl1498 { + yyb1498 = yyj1498 > l } else { - yyb1352 = r.CheckBreak() + yyb1498 = r.CheckBreak() } - if yyb1352 { + if yyb1498 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1352-1, "") + z.DecStructFieldNotFound(yyj1498-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18986,48 +20742,48 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1355 := z.EncBinary() - _ = yym1355 + yym1501 := z.EncBinary() + _ = yym1501 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1356 := !z.EncBinary() - yy2arr1356 := z.EncBasicHandle().StructToArray - var yyq1356 [18]bool - _, _, _ = yysep1356, yyq1356, yy2arr1356 - const yyr1356 bool = false - yyq1356[2] = len(x.Command) != 0 - yyq1356[3] = len(x.Args) != 0 - yyq1356[4] = x.WorkingDir != "" - yyq1356[5] = len(x.Ports) != 0 - yyq1356[6] = len(x.Env) != 0 - yyq1356[7] = true - yyq1356[8] = len(x.VolumeMounts) != 0 - yyq1356[9] = x.LivenessProbe != nil - yyq1356[10] = x.ReadinessProbe != nil - yyq1356[11] = x.Lifecycle != nil - yyq1356[12] = x.TerminationMessagePath != "" - yyq1356[14] = x.SecurityContext != nil - yyq1356[15] = x.Stdin != false - yyq1356[16] = x.StdinOnce != false - yyq1356[17] = x.TTY != false - var yynn1356 int - if yyr1356 || yy2arr1356 { + yysep1502 := !z.EncBinary() + yy2arr1502 := z.EncBasicHandle().StructToArray + var yyq1502 [18]bool + _, _, _ = yysep1502, yyq1502, yy2arr1502 + const yyr1502 bool = false + yyq1502[2] = len(x.Command) != 0 + yyq1502[3] = len(x.Args) != 0 + yyq1502[4] = x.WorkingDir != "" + yyq1502[5] = len(x.Ports) != 0 + yyq1502[6] = len(x.Env) != 0 + yyq1502[7] = true + yyq1502[8] = len(x.VolumeMounts) != 0 + yyq1502[9] = x.LivenessProbe != nil + yyq1502[10] = x.ReadinessProbe != nil + yyq1502[11] = x.Lifecycle != nil + yyq1502[12] = x.TerminationMessagePath != "" + yyq1502[14] = x.SecurityContext != nil + yyq1502[15] = x.Stdin != false + yyq1502[16] = x.StdinOnce != false + yyq1502[17] = x.TTY != false + var yynn1502 int + if yyr1502 || yy2arr1502 { r.EncodeArrayStart(18) } else { - yynn1356 = 3 - for _, b := range yyq1356 { + yynn1502 = 3 + for _, b := range yyq1502 { if b { - yynn1356++ + yynn1502++ } } - r.EncodeMapStart(yynn1356) - yynn1356 = 0 + r.EncodeMapStart(yynn1502) + yynn1502 = 0 } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1358 := z.EncBinary() - _ = yym1358 + yym1504 := z.EncBinary() + _ = yym1504 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -19036,17 +20792,17 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1359 := z.EncBinary() - _ = yym1359 + yym1505 := z.EncBinary() + _ = yym1505 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1361 := z.EncBinary() - _ = yym1361 + yym1507 := z.EncBinary() + _ = yym1507 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) @@ -19055,21 +20811,21 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1362 := z.EncBinary() - _ = yym1362 + yym1508 := z.EncBinary() + _ = yym1508 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[2] { + if yyq1502[2] { if x.Command == nil { r.EncodeNil() } else { - yym1364 := z.EncBinary() - _ = yym1364 + yym1510 := z.EncBinary() + _ = yym1510 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -19079,15 +20835,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1356[2] { + if yyq1502[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { - yym1365 := z.EncBinary() - _ = yym1365 + yym1511 := z.EncBinary() + _ = yym1511 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -19095,14 +20851,14 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[3] { + if yyq1502[3] { if x.Args == nil { r.EncodeNil() } else { - yym1367 := z.EncBinary() - _ = yym1367 + yym1513 := z.EncBinary() + _ = yym1513 if false { } else { z.F.EncSliceStringV(x.Args, false, e) @@ -19112,15 +20868,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1356[3] { + if yyq1502[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("args")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Args == nil { r.EncodeNil() } else { - yym1368 := z.EncBinary() - _ = yym1368 + yym1514 := z.EncBinary() + _ = yym1514 if false { } else { z.F.EncSliceStringV(x.Args, false, e) @@ -19128,11 +20884,11 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[4] { - yym1370 := z.EncBinary() - _ = yym1370 + if yyq1502[4] { + yym1516 := z.EncBinary() + _ = yym1516 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) @@ -19141,26 +20897,26 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1356[4] { + if yyq1502[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("workingDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1371 := z.EncBinary() - _ = yym1371 + yym1517 := z.EncBinary() + _ = yym1517 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[5] { + if yyq1502[5] { if x.Ports == nil { r.EncodeNil() } else { - yym1373 := z.EncBinary() - _ = yym1373 + yym1519 := z.EncBinary() + _ = yym1519 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) @@ -19170,15 +20926,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1356[5] { + if yyq1502[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { - yym1374 := z.EncBinary() - _ = yym1374 + yym1520 := z.EncBinary() + _ = yym1520 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) @@ -19186,14 +20942,14 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[6] { + if yyq1502[6] { if x.Env == nil { r.EncodeNil() } else { - yym1376 := z.EncBinary() - _ = yym1376 + yym1522 := z.EncBinary() + _ = yym1522 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) @@ -19203,15 +20959,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1356[6] { + if yyq1502[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("env")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Env == nil { r.EncodeNil() } else { - yym1377 := z.EncBinary() - _ = yym1377 + yym1523 := z.EncBinary() + _ = yym1523 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) @@ -19219,31 +20975,31 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[7] { - yy1379 := &x.Resources - yy1379.CodecEncodeSelf(e) + if yyq1502[7] { + yy1525 := &x.Resources + yy1525.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1356[7] { + if yyq1502[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1380 := &x.Resources - yy1380.CodecEncodeSelf(e) + yy1526 := &x.Resources + yy1526.CodecEncodeSelf(e) } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[8] { + if yyq1502[8] { if x.VolumeMounts == nil { r.EncodeNil() } else { - yym1382 := z.EncBinary() - _ = yym1382 + yym1528 := z.EncBinary() + _ = yym1528 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) @@ -19253,15 +21009,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1356[8] { + if yyq1502[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeMounts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumeMounts == nil { r.EncodeNil() } else { - yym1383 := z.EncBinary() - _ = yym1383 + yym1529 := z.EncBinary() + _ = yym1529 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) @@ -19269,9 +21025,9 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[9] { + if yyq1502[9] { if x.LivenessProbe == nil { r.EncodeNil() } else { @@ -19281,7 +21037,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1356[9] { + if yyq1502[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("livenessProbe")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -19292,9 +21048,9 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[10] { + if yyq1502[10] { if x.ReadinessProbe == nil { r.EncodeNil() } else { @@ -19304,7 +21060,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1356[10] { + if yyq1502[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readinessProbe")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -19315,9 +21071,9 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[11] { + if yyq1502[11] { if x.Lifecycle == nil { r.EncodeNil() } else { @@ -19327,7 +21083,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1356[11] { + if yyq1502[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lifecycle")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -19338,11 +21094,11 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[12] { - yym1388 := z.EncBinary() - _ = yym1388 + if yyq1502[12] { + yym1534 := z.EncBinary() + _ = yym1534 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) @@ -19351,19 +21107,19 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1356[12] { + if yyq1502[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1389 := z.EncBinary() - _ = yym1389 + yym1535 := z.EncBinary() + _ = yym1535 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.ImagePullPolicy.CodecEncodeSelf(e) } else { @@ -19372,9 +21128,9 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.ImagePullPolicy.CodecEncodeSelf(e) } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[14] { + if yyq1502[14] { if x.SecurityContext == nil { r.EncodeNil() } else { @@ -19384,7 +21140,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1356[14] { + if yyq1502[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("securityContext")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -19395,11 +21151,11 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[15] { - yym1393 := z.EncBinary() - _ = yym1393 + if yyq1502[15] { + yym1539 := z.EncBinary() + _ = yym1539 if false { } else { r.EncodeBool(bool(x.Stdin)) @@ -19408,23 +21164,23 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1356[15] { + if yyq1502[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1394 := z.EncBinary() - _ = yym1394 + yym1540 := z.EncBinary() + _ = yym1540 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[16] { - yym1396 := z.EncBinary() - _ = yym1396 + if yyq1502[16] { + yym1542 := z.EncBinary() + _ = yym1542 if false { } else { r.EncodeBool(bool(x.StdinOnce)) @@ -19433,23 +21189,23 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1356[16] { + if yyq1502[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1397 := z.EncBinary() - _ = yym1397 + yym1543 := z.EncBinary() + _ = yym1543 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1356[17] { - yym1399 := z.EncBinary() - _ = yym1399 + if yyq1502[17] { + yym1545 := z.EncBinary() + _ = yym1545 if false { } else { r.EncodeBool(bool(x.TTY)) @@ -19458,19 +21214,19 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1356[17] { + if yyq1502[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1400 := z.EncBinary() - _ = yym1400 + yym1546 := z.EncBinary() + _ = yym1546 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr1356 || yy2arr1356 { + if yyr1502 || yy2arr1502 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19483,25 +21239,25 @@ func (x *Container) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1401 := z.DecBinary() - _ = yym1401 + yym1547 := z.DecBinary() + _ = yym1547 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1402 := r.ContainerType() - if yyct1402 == codecSelferValueTypeMap1234 { - yyl1402 := r.ReadMapStart() - if yyl1402 == 0 { + yyct1548 := r.ContainerType() + if yyct1548 == codecSelferValueTypeMap1234 { + yyl1548 := r.ReadMapStart() + if yyl1548 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1402, d) + x.codecDecodeSelfFromMap(yyl1548, d) } - } else if yyct1402 == codecSelferValueTypeArray1234 { - yyl1402 := r.ReadArrayStart() - if yyl1402 == 0 { + } else if yyct1548 == codecSelferValueTypeArray1234 { + yyl1548 := r.ReadArrayStart() + if yyl1548 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1402, d) + x.codecDecodeSelfFromArray(yyl1548, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19513,12 +21269,12 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1403Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1403Slc - var yyhl1403 bool = l >= 0 - for yyj1403 := 0; ; yyj1403++ { - if yyhl1403 { - if yyj1403 >= l { + var yys1549Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1549Slc + var yyhl1549 bool = l >= 0 + for yyj1549 := 0; ; yyj1549++ { + if yyhl1549 { + if yyj1549 >= l { break } } else { @@ -19527,10 +21283,10 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1403Slc = r.DecodeBytes(yys1403Slc, true, true) - yys1403 := string(yys1403Slc) + yys1549Slc = r.DecodeBytes(yys1549Slc, true, true) + yys1549 := string(yys1549Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1403 { + switch yys1549 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -19547,24 +21303,24 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1406 := &x.Command - yym1407 := z.DecBinary() - _ = yym1407 + yyv1552 := &x.Command + yym1553 := z.DecBinary() + _ = yym1553 if false { } else { - z.F.DecSliceStringX(yyv1406, false, d) + z.F.DecSliceStringX(yyv1552, false, d) } } case "args": if r.TryDecodeAsNil() { x.Args = nil } else { - yyv1408 := &x.Args - yym1409 := z.DecBinary() - _ = yym1409 + yyv1554 := &x.Args + yym1555 := z.DecBinary() + _ = yym1555 if false { } else { - z.F.DecSliceStringX(yyv1408, false, d) + z.F.DecSliceStringX(yyv1554, false, d) } } case "workingDir": @@ -19577,43 +21333,43 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1411 := &x.Ports - yym1412 := z.DecBinary() - _ = yym1412 + yyv1557 := &x.Ports + yym1558 := z.DecBinary() + _ = yym1558 if false { } else { - h.decSliceContainerPort((*[]ContainerPort)(yyv1411), d) + h.decSliceContainerPort((*[]ContainerPort)(yyv1557), d) } } case "env": if r.TryDecodeAsNil() { x.Env = nil } else { - yyv1413 := &x.Env - yym1414 := z.DecBinary() - _ = yym1414 + yyv1559 := &x.Env + yym1560 := z.DecBinary() + _ = yym1560 if false { } else { - h.decSliceEnvVar((*[]EnvVar)(yyv1413), d) + h.decSliceEnvVar((*[]EnvVar)(yyv1559), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv1415 := &x.Resources - yyv1415.CodecDecodeSelf(d) + yyv1561 := &x.Resources + yyv1561.CodecDecodeSelf(d) } case "volumeMounts": if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { - yyv1416 := &x.VolumeMounts - yym1417 := z.DecBinary() - _ = yym1417 + yyv1562 := &x.VolumeMounts + yym1563 := z.DecBinary() + _ = yym1563 if false { } else { - h.decSliceVolumeMount((*[]VolumeMount)(yyv1416), d) + h.decSliceVolumeMount((*[]VolumeMount)(yyv1562), d) } } case "livenessProbe": @@ -19691,9 +21447,9 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TTY = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys1403) - } // end switch yys1403 - } // end for yyj1403 + z.DecStructFieldNotFound(-1, yys1549) + } // end switch yys1549 + } // end for yyj1549 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19701,16 +21457,16 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1427 int - var yyb1427 bool - var yyhl1427 bool = l >= 0 - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + var yyj1573 int + var yyb1573 bool + var yyhl1573 bool = l >= 0 + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19720,13 +21476,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19736,13 +21492,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Image = string(r.DecodeString()) } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19750,21 +21506,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1430 := &x.Command - yym1431 := z.DecBinary() - _ = yym1431 + yyv1576 := &x.Command + yym1577 := z.DecBinary() + _ = yym1577 if false { } else { - z.F.DecSliceStringX(yyv1430, false, d) + z.F.DecSliceStringX(yyv1576, false, d) } } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19772,21 +21528,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Args = nil } else { - yyv1432 := &x.Args - yym1433 := z.DecBinary() - _ = yym1433 + yyv1578 := &x.Args + yym1579 := z.DecBinary() + _ = yym1579 if false { } else { - z.F.DecSliceStringX(yyv1432, false, d) + z.F.DecSliceStringX(yyv1578, false, d) } } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19796,13 +21552,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.WorkingDir = string(r.DecodeString()) } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19810,21 +21566,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1435 := &x.Ports - yym1436 := z.DecBinary() - _ = yym1436 + yyv1581 := &x.Ports + yym1582 := z.DecBinary() + _ = yym1582 if false { } else { - h.decSliceContainerPort((*[]ContainerPort)(yyv1435), d) + h.decSliceContainerPort((*[]ContainerPort)(yyv1581), d) } } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19832,21 +21588,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Env = nil } else { - yyv1437 := &x.Env - yym1438 := z.DecBinary() - _ = yym1438 + yyv1583 := &x.Env + yym1584 := z.DecBinary() + _ = yym1584 if false { } else { - h.decSliceEnvVar((*[]EnvVar)(yyv1437), d) + h.decSliceEnvVar((*[]EnvVar)(yyv1583), d) } } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19854,16 +21610,16 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv1439 := &x.Resources - yyv1439.CodecDecodeSelf(d) + yyv1585 := &x.Resources + yyv1585.CodecDecodeSelf(d) } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19871,21 +21627,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { - yyv1440 := &x.VolumeMounts - yym1441 := z.DecBinary() - _ = yym1441 + yyv1586 := &x.VolumeMounts + yym1587 := z.DecBinary() + _ = yym1587 if false { } else { - h.decSliceVolumeMount((*[]VolumeMount)(yyv1440), d) + h.decSliceVolumeMount((*[]VolumeMount)(yyv1586), d) } } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19900,13 +21656,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.LivenessProbe.CodecDecodeSelf(d) } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19921,13 +21677,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ReadinessProbe.CodecDecodeSelf(d) } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19942,13 +21698,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Lifecycle.CodecDecodeSelf(d) } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19958,13 +21714,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.TerminationMessagePath = string(r.DecodeString()) } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19974,13 +21730,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ImagePullPolicy = PullPolicy(r.DecodeString()) } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19995,13 +21751,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.SecurityContext.CodecDecodeSelf(d) } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20011,13 +21767,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stdin = bool(r.DecodeBool()) } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20027,13 +21783,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.StdinOnce = bool(r.DecodeBool()) } - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20044,17 +21800,17 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.TTY = bool(r.DecodeBool()) } for { - yyj1427++ - if yyhl1427 { - yyb1427 = yyj1427 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1427 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1427 { + if yyb1573 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1427-1, "") + z.DecStructFieldNotFound(yyj1573-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20066,35 +21822,35 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1451 := z.EncBinary() - _ = yym1451 + yym1597 := z.EncBinary() + _ = yym1597 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1452 := !z.EncBinary() - yy2arr1452 := z.EncBasicHandle().StructToArray - var yyq1452 [3]bool - _, _, _ = yysep1452, yyq1452, yy2arr1452 - const yyr1452 bool = false - yyq1452[0] = x.Exec != nil - yyq1452[1] = x.HTTPGet != nil - yyq1452[2] = x.TCPSocket != nil - var yynn1452 int - if yyr1452 || yy2arr1452 { + yysep1598 := !z.EncBinary() + yy2arr1598 := z.EncBasicHandle().StructToArray + var yyq1598 [3]bool + _, _, _ = yysep1598, yyq1598, yy2arr1598 + const yyr1598 bool = false + yyq1598[0] = x.Exec != nil + yyq1598[1] = x.HTTPGet != nil + yyq1598[2] = x.TCPSocket != nil + var yynn1598 int + if yyr1598 || yy2arr1598 { r.EncodeArrayStart(3) } else { - yynn1452 = 0 - for _, b := range yyq1452 { + yynn1598 = 0 + for _, b := range yyq1598 { if b { - yynn1452++ + yynn1598++ } } - r.EncodeMapStart(yynn1452) - yynn1452 = 0 + r.EncodeMapStart(yynn1598) + yynn1598 = 0 } - if yyr1452 || yy2arr1452 { + if yyr1598 || yy2arr1598 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1452[0] { + if yyq1598[0] { if x.Exec == nil { r.EncodeNil() } else { @@ -20104,7 +21860,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1452[0] { + if yyq1598[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20115,9 +21871,9 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1452 || yy2arr1452 { + if yyr1598 || yy2arr1598 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1452[1] { + if yyq1598[1] { if x.HTTPGet == nil { r.EncodeNil() } else { @@ -20127,7 +21883,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1452[1] { + if yyq1598[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20138,9 +21894,9 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1452 || yy2arr1452 { + if yyr1598 || yy2arr1598 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1452[2] { + if yyq1598[2] { if x.TCPSocket == nil { r.EncodeNil() } else { @@ -20150,7 +21906,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1452[2] { + if yyq1598[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20161,7 +21917,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1452 || yy2arr1452 { + if yyr1598 || yy2arr1598 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20174,25 +21930,25 @@ func (x *Handler) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1456 := z.DecBinary() - _ = yym1456 + yym1602 := z.DecBinary() + _ = yym1602 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1457 := r.ContainerType() - if yyct1457 == codecSelferValueTypeMap1234 { - yyl1457 := r.ReadMapStart() - if yyl1457 == 0 { + yyct1603 := r.ContainerType() + if yyct1603 == codecSelferValueTypeMap1234 { + yyl1603 := r.ReadMapStart() + if yyl1603 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1457, d) + x.codecDecodeSelfFromMap(yyl1603, d) } - } else if yyct1457 == codecSelferValueTypeArray1234 { - yyl1457 := r.ReadArrayStart() - if yyl1457 == 0 { + } else if yyct1603 == codecSelferValueTypeArray1234 { + yyl1603 := r.ReadArrayStart() + if yyl1603 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1457, d) + x.codecDecodeSelfFromArray(yyl1603, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20204,12 +21960,12 @@ func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1458Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1458Slc - var yyhl1458 bool = l >= 0 - for yyj1458 := 0; ; yyj1458++ { - if yyhl1458 { - if yyj1458 >= l { + var yys1604Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1604Slc + var yyhl1604 bool = l >= 0 + for yyj1604 := 0; ; yyj1604++ { + if yyhl1604 { + if yyj1604 >= l { break } } else { @@ -20218,10 +21974,10 @@ func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1458Slc = r.DecodeBytes(yys1458Slc, true, true) - yys1458 := string(yys1458Slc) + yys1604Slc = r.DecodeBytes(yys1604Slc, true, true) + yys1604 := string(yys1604Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1458 { + switch yys1604 { case "exec": if r.TryDecodeAsNil() { if x.Exec != nil { @@ -20256,9 +22012,9 @@ func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TCPSocket.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1458) - } // end switch yys1458 - } // end for yyj1458 + z.DecStructFieldNotFound(-1, yys1604) + } // end switch yys1604 + } // end for yyj1604 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20266,16 +22022,16 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1462 int - var yyb1462 bool - var yyhl1462 bool = l >= 0 - yyj1462++ - if yyhl1462 { - yyb1462 = yyj1462 > l + var yyj1608 int + var yyb1608 bool + var yyhl1608 bool = l >= 0 + yyj1608++ + if yyhl1608 { + yyb1608 = yyj1608 > l } else { - yyb1462 = r.CheckBreak() + yyb1608 = r.CheckBreak() } - if yyb1462 { + if yyb1608 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20290,13 +22046,13 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Exec.CodecDecodeSelf(d) } - yyj1462++ - if yyhl1462 { - yyb1462 = yyj1462 > l + yyj1608++ + if yyhl1608 { + yyb1608 = yyj1608 > l } else { - yyb1462 = r.CheckBreak() + yyb1608 = r.CheckBreak() } - if yyb1462 { + if yyb1608 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20311,13 +22067,13 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.HTTPGet.CodecDecodeSelf(d) } - yyj1462++ - if yyhl1462 { - yyb1462 = yyj1462 > l + yyj1608++ + if yyhl1608 { + yyb1608 = yyj1608 > l } else { - yyb1462 = r.CheckBreak() + yyb1608 = r.CheckBreak() } - if yyb1462 { + if yyb1608 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20333,17 +22089,17 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.TCPSocket.CodecDecodeSelf(d) } for { - yyj1462++ - if yyhl1462 { - yyb1462 = yyj1462 > l + yyj1608++ + if yyhl1608 { + yyb1608 = yyj1608 > l } else { - yyb1462 = r.CheckBreak() + yyb1608 = r.CheckBreak() } - if yyb1462 { + if yyb1608 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1462-1, "") + z.DecStructFieldNotFound(yyj1608-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20355,34 +22111,34 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1466 := z.EncBinary() - _ = yym1466 + yym1612 := z.EncBinary() + _ = yym1612 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1467 := !z.EncBinary() - yy2arr1467 := z.EncBasicHandle().StructToArray - var yyq1467 [2]bool - _, _, _ = yysep1467, yyq1467, yy2arr1467 - const yyr1467 bool = false - yyq1467[0] = x.PostStart != nil - yyq1467[1] = x.PreStop != nil - var yynn1467 int - if yyr1467 || yy2arr1467 { + yysep1613 := !z.EncBinary() + yy2arr1613 := z.EncBasicHandle().StructToArray + var yyq1613 [2]bool + _, _, _ = yysep1613, yyq1613, yy2arr1613 + const yyr1613 bool = false + yyq1613[0] = x.PostStart != nil + yyq1613[1] = x.PreStop != nil + var yynn1613 int + if yyr1613 || yy2arr1613 { r.EncodeArrayStart(2) } else { - yynn1467 = 0 - for _, b := range yyq1467 { + yynn1613 = 0 + for _, b := range yyq1613 { if b { - yynn1467++ + yynn1613++ } } - r.EncodeMapStart(yynn1467) - yynn1467 = 0 + r.EncodeMapStart(yynn1613) + yynn1613 = 0 } - if yyr1467 || yy2arr1467 { + if yyr1613 || yy2arr1613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1467[0] { + if yyq1613[0] { if x.PostStart == nil { r.EncodeNil() } else { @@ -20392,7 +22148,7 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1467[0] { + if yyq1613[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("postStart")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20403,9 +22159,9 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1467 || yy2arr1467 { + if yyr1613 || yy2arr1613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1467[1] { + if yyq1613[1] { if x.PreStop == nil { r.EncodeNil() } else { @@ -20415,7 +22171,7 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1467[1] { + if yyq1613[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preStop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20426,7 +22182,7 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1467 || yy2arr1467 { + if yyr1613 || yy2arr1613 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20439,25 +22195,25 @@ func (x *Lifecycle) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1470 := z.DecBinary() - _ = yym1470 + yym1616 := z.DecBinary() + _ = yym1616 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1471 := r.ContainerType() - if yyct1471 == codecSelferValueTypeMap1234 { - yyl1471 := r.ReadMapStart() - if yyl1471 == 0 { + yyct1617 := r.ContainerType() + if yyct1617 == codecSelferValueTypeMap1234 { + yyl1617 := r.ReadMapStart() + if yyl1617 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1471, d) + x.codecDecodeSelfFromMap(yyl1617, d) } - } else if yyct1471 == codecSelferValueTypeArray1234 { - yyl1471 := r.ReadArrayStart() - if yyl1471 == 0 { + } else if yyct1617 == codecSelferValueTypeArray1234 { + yyl1617 := r.ReadArrayStart() + if yyl1617 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1471, d) + x.codecDecodeSelfFromArray(yyl1617, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20469,12 +22225,12 @@ func (x *Lifecycle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1472Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1472Slc - var yyhl1472 bool = l >= 0 - for yyj1472 := 0; ; yyj1472++ { - if yyhl1472 { - if yyj1472 >= l { + var yys1618Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1618Slc + var yyhl1618 bool = l >= 0 + for yyj1618 := 0; ; yyj1618++ { + if yyhl1618 { + if yyj1618 >= l { break } } else { @@ -20483,10 +22239,10 @@ func (x *Lifecycle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1472Slc = r.DecodeBytes(yys1472Slc, true, true) - yys1472 := string(yys1472Slc) + yys1618Slc = r.DecodeBytes(yys1618Slc, true, true) + yys1618 := string(yys1618Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1472 { + switch yys1618 { case "postStart": if r.TryDecodeAsNil() { if x.PostStart != nil { @@ -20510,9 +22266,9 @@ func (x *Lifecycle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.PreStop.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1472) - } // end switch yys1472 - } // end for yyj1472 + z.DecStructFieldNotFound(-1, yys1618) + } // end switch yys1618 + } // end for yyj1618 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20520,16 +22276,16 @@ func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1475 int - var yyb1475 bool - var yyhl1475 bool = l >= 0 - yyj1475++ - if yyhl1475 { - yyb1475 = yyj1475 > l + var yyj1621 int + var yyb1621 bool + var yyhl1621 bool = l >= 0 + yyj1621++ + if yyhl1621 { + yyb1621 = yyj1621 > l } else { - yyb1475 = r.CheckBreak() + yyb1621 = r.CheckBreak() } - if yyb1475 { + if yyb1621 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20544,13 +22300,13 @@ func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PostStart.CodecDecodeSelf(d) } - yyj1475++ - if yyhl1475 { - yyb1475 = yyj1475 > l + yyj1621++ + if yyhl1621 { + yyb1621 = yyj1621 > l } else { - yyb1475 = r.CheckBreak() + yyb1621 = r.CheckBreak() } - if yyb1475 { + if yyb1621 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20566,17 +22322,17 @@ func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.PreStop.CodecDecodeSelf(d) } for { - yyj1475++ - if yyhl1475 { - yyb1475 = yyj1475 > l + yyj1621++ + if yyhl1621 { + yyb1621 = yyj1621 > l } else { - yyb1475 = r.CheckBreak() + yyb1621 = r.CheckBreak() } - if yyb1475 { + if yyb1621 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1475-1, "") + z.DecStructFieldNotFound(yyj1621-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20585,8 +22341,8 @@ func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1478 := z.EncBinary() - _ = yym1478 + yym1624 := z.EncBinary() + _ = yym1624 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -20598,8 +22354,8 @@ func (x *ConditionStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1479 := z.DecBinary() - _ = yym1479 + yym1625 := z.DecBinary() + _ = yym1625 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -20614,36 +22370,36 @@ func (x *ContainerStateWaiting) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1480 := z.EncBinary() - _ = yym1480 + yym1626 := z.EncBinary() + _ = yym1626 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1481 := !z.EncBinary() - yy2arr1481 := z.EncBasicHandle().StructToArray - var yyq1481 [2]bool - _, _, _ = yysep1481, yyq1481, yy2arr1481 - const yyr1481 bool = false - yyq1481[0] = x.Reason != "" - yyq1481[1] = x.Message != "" - var yynn1481 int - if yyr1481 || yy2arr1481 { + yysep1627 := !z.EncBinary() + yy2arr1627 := z.EncBasicHandle().StructToArray + var yyq1627 [2]bool + _, _, _ = yysep1627, yyq1627, yy2arr1627 + const yyr1627 bool = false + yyq1627[0] = x.Reason != "" + yyq1627[1] = x.Message != "" + var yynn1627 int + if yyr1627 || yy2arr1627 { r.EncodeArrayStart(2) } else { - yynn1481 = 0 - for _, b := range yyq1481 { + yynn1627 = 0 + for _, b := range yyq1627 { if b { - yynn1481++ + yynn1627++ } } - r.EncodeMapStart(yynn1481) - yynn1481 = 0 + r.EncodeMapStart(yynn1627) + yynn1627 = 0 } - if yyr1481 || yy2arr1481 { + if yyr1627 || yy2arr1627 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1481[0] { - yym1483 := z.EncBinary() - _ = yym1483 + if yyq1627[0] { + yym1629 := z.EncBinary() + _ = yym1629 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -20652,23 +22408,23 @@ func (x *ContainerStateWaiting) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1481[0] { + if yyq1627[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1484 := z.EncBinary() - _ = yym1484 + yym1630 := z.EncBinary() + _ = yym1630 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr1481 || yy2arr1481 { + if yyr1627 || yy2arr1627 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1481[1] { - yym1486 := z.EncBinary() - _ = yym1486 + if yyq1627[1] { + yym1632 := z.EncBinary() + _ = yym1632 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -20677,19 +22433,19 @@ func (x *ContainerStateWaiting) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1481[1] { + if yyq1627[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1487 := z.EncBinary() - _ = yym1487 + yym1633 := z.EncBinary() + _ = yym1633 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr1481 || yy2arr1481 { + if yyr1627 || yy2arr1627 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20702,25 +22458,25 @@ func (x *ContainerStateWaiting) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1488 := z.DecBinary() - _ = yym1488 + yym1634 := z.DecBinary() + _ = yym1634 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1489 := r.ContainerType() - if yyct1489 == codecSelferValueTypeMap1234 { - yyl1489 := r.ReadMapStart() - if yyl1489 == 0 { + yyct1635 := r.ContainerType() + if yyct1635 == codecSelferValueTypeMap1234 { + yyl1635 := r.ReadMapStart() + if yyl1635 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1489, d) + x.codecDecodeSelfFromMap(yyl1635, d) } - } else if yyct1489 == codecSelferValueTypeArray1234 { - yyl1489 := r.ReadArrayStart() - if yyl1489 == 0 { + } else if yyct1635 == codecSelferValueTypeArray1234 { + yyl1635 := r.ReadArrayStart() + if yyl1635 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1489, d) + x.codecDecodeSelfFromArray(yyl1635, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20732,12 +22488,12 @@ func (x *ContainerStateWaiting) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1490Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1490Slc - var yyhl1490 bool = l >= 0 - for yyj1490 := 0; ; yyj1490++ { - if yyhl1490 { - if yyj1490 >= l { + var yys1636Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1636Slc + var yyhl1636 bool = l >= 0 + for yyj1636 := 0; ; yyj1636++ { + if yyhl1636 { + if yyj1636 >= l { break } } else { @@ -20746,10 +22502,10 @@ func (x *ContainerStateWaiting) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1490Slc = r.DecodeBytes(yys1490Slc, true, true) - yys1490 := string(yys1490Slc) + yys1636Slc = r.DecodeBytes(yys1636Slc, true, true) + yys1636 := string(yys1636Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1490 { + switch yys1636 { case "reason": if r.TryDecodeAsNil() { x.Reason = "" @@ -20763,9 +22519,9 @@ func (x *ContainerStateWaiting) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1490) - } // end switch yys1490 - } // end for yyj1490 + z.DecStructFieldNotFound(-1, yys1636) + } // end switch yys1636 + } // end for yyj1636 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20773,16 +22529,16 @@ func (x *ContainerStateWaiting) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1493 int - var yyb1493 bool - var yyhl1493 bool = l >= 0 - yyj1493++ - if yyhl1493 { - yyb1493 = yyj1493 > l + var yyj1639 int + var yyb1639 bool + var yyhl1639 bool = l >= 0 + yyj1639++ + if yyhl1639 { + yyb1639 = yyj1639 > l } else { - yyb1493 = r.CheckBreak() + yyb1639 = r.CheckBreak() } - if yyb1493 { + if yyb1639 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20792,13 +22548,13 @@ func (x *ContainerStateWaiting) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Reason = string(r.DecodeString()) } - yyj1493++ - if yyhl1493 { - yyb1493 = yyj1493 > l + yyj1639++ + if yyhl1639 { + yyb1639 = yyj1639 > l } else { - yyb1493 = r.CheckBreak() + yyb1639 = r.CheckBreak() } - if yyb1493 { + if yyb1639 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20809,17 +22565,17 @@ func (x *ContainerStateWaiting) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.Message = string(r.DecodeString()) } for { - yyj1493++ - if yyhl1493 { - yyb1493 = yyj1493 > l + yyj1639++ + if yyhl1639 { + yyb1639 = yyj1639 > l } else { - yyb1493 = r.CheckBreak() + yyb1639 = r.CheckBreak() } - if yyb1493 { + if yyb1639 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1493-1, "") + z.DecStructFieldNotFound(yyj1639-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20831,68 +22587,68 @@ func (x *ContainerStateRunning) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1496 := z.EncBinary() - _ = yym1496 + yym1642 := z.EncBinary() + _ = yym1642 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1497 := !z.EncBinary() - yy2arr1497 := z.EncBasicHandle().StructToArray - var yyq1497 [1]bool - _, _, _ = yysep1497, yyq1497, yy2arr1497 - const yyr1497 bool = false - yyq1497[0] = true - var yynn1497 int - if yyr1497 || yy2arr1497 { + yysep1643 := !z.EncBinary() + yy2arr1643 := z.EncBasicHandle().StructToArray + var yyq1643 [1]bool + _, _, _ = yysep1643, yyq1643, yy2arr1643 + const yyr1643 bool = false + yyq1643[0] = true + var yynn1643 int + if yyr1643 || yy2arr1643 { r.EncodeArrayStart(1) } else { - yynn1497 = 0 - for _, b := range yyq1497 { + yynn1643 = 0 + for _, b := range yyq1643 { if b { - yynn1497++ + yynn1643++ } } - r.EncodeMapStart(yynn1497) - yynn1497 = 0 + r.EncodeMapStart(yynn1643) + yynn1643 = 0 } - if yyr1497 || yy2arr1497 { + if yyr1643 || yy2arr1643 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1497[0] { - yy1499 := &x.StartedAt - yym1500 := z.EncBinary() - _ = yym1500 + if yyq1643[0] { + yy1645 := &x.StartedAt + yym1646 := z.EncBinary() + _ = yym1646 if false { - } else if z.HasExtensions() && z.EncExt(yy1499) { - } else if yym1500 { - z.EncBinaryMarshal(yy1499) - } else if !yym1500 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1499) + } else if z.HasExtensions() && z.EncExt(yy1645) { + } else if yym1646 { + z.EncBinaryMarshal(yy1645) + } else if !yym1646 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1645) } else { - z.EncFallback(yy1499) + z.EncFallback(yy1645) } } else { r.EncodeNil() } } else { - if yyq1497[0] { + if yyq1643[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1501 := &x.StartedAt - yym1502 := z.EncBinary() - _ = yym1502 + yy1647 := &x.StartedAt + yym1648 := z.EncBinary() + _ = yym1648 if false { - } else if z.HasExtensions() && z.EncExt(yy1501) { - } else if yym1502 { - z.EncBinaryMarshal(yy1501) - } else if !yym1502 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1501) + } else if z.HasExtensions() && z.EncExt(yy1647) { + } else if yym1648 { + z.EncBinaryMarshal(yy1647) + } else if !yym1648 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1647) } else { - z.EncFallback(yy1501) + z.EncFallback(yy1647) } } } - if yyr1497 || yy2arr1497 { + if yyr1643 || yy2arr1643 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20905,25 +22661,25 @@ func (x *ContainerStateRunning) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1503 := z.DecBinary() - _ = yym1503 + yym1649 := z.DecBinary() + _ = yym1649 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1504 := r.ContainerType() - if yyct1504 == codecSelferValueTypeMap1234 { - yyl1504 := r.ReadMapStart() - if yyl1504 == 0 { + yyct1650 := r.ContainerType() + if yyct1650 == codecSelferValueTypeMap1234 { + yyl1650 := r.ReadMapStart() + if yyl1650 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1504, d) + x.codecDecodeSelfFromMap(yyl1650, d) } - } else if yyct1504 == codecSelferValueTypeArray1234 { - yyl1504 := r.ReadArrayStart() - if yyl1504 == 0 { + } else if yyct1650 == codecSelferValueTypeArray1234 { + yyl1650 := r.ReadArrayStart() + if yyl1650 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1504, d) + x.codecDecodeSelfFromArray(yyl1650, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20935,12 +22691,12 @@ func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1505Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1505Slc - var yyhl1505 bool = l >= 0 - for yyj1505 := 0; ; yyj1505++ { - if yyhl1505 { - if yyj1505 >= l { + var yys1651Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1651Slc + var yyhl1651 bool = l >= 0 + for yyj1651 := 0; ; yyj1651++ { + if yyhl1651 { + if yyj1651 >= l { break } } else { @@ -20949,31 +22705,31 @@ func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1505Slc = r.DecodeBytes(yys1505Slc, true, true) - yys1505 := string(yys1505Slc) + yys1651Slc = r.DecodeBytes(yys1651Slc, true, true) + yys1651 := string(yys1651Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1505 { + switch yys1651 { case "startedAt": if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { - yyv1506 := &x.StartedAt - yym1507 := z.DecBinary() - _ = yym1507 + yyv1652 := &x.StartedAt + yym1653 := z.DecBinary() + _ = yym1653 if false { - } else if z.HasExtensions() && z.DecExt(yyv1506) { - } else if yym1507 { - z.DecBinaryUnmarshal(yyv1506) - } else if !yym1507 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1506) + } else if z.HasExtensions() && z.DecExt(yyv1652) { + } else if yym1653 { + z.DecBinaryUnmarshal(yyv1652) + } else if !yym1653 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1652) } else { - z.DecFallback(yyv1506, false) + z.DecFallback(yyv1652, false) } } default: - z.DecStructFieldNotFound(-1, yys1505) - } // end switch yys1505 - } // end for yyj1505 + z.DecStructFieldNotFound(-1, yys1651) + } // end switch yys1651 + } // end for yyj1651 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20981,16 +22737,16 @@ func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1508 int - var yyb1508 bool - var yyhl1508 bool = l >= 0 - yyj1508++ - if yyhl1508 { - yyb1508 = yyj1508 > l + var yyj1654 int + var yyb1654 bool + var yyhl1654 bool = l >= 0 + yyj1654++ + if yyhl1654 { + yyb1654 = yyj1654 > l } else { - yyb1508 = r.CheckBreak() + yyb1654 = r.CheckBreak() } - if yyb1508 { + if yyb1654 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20998,31 +22754,31 @@ func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { - yyv1509 := &x.StartedAt - yym1510 := z.DecBinary() - _ = yym1510 + yyv1655 := &x.StartedAt + yym1656 := z.DecBinary() + _ = yym1656 if false { - } else if z.HasExtensions() && z.DecExt(yyv1509) { - } else if yym1510 { - z.DecBinaryUnmarshal(yyv1509) - } else if !yym1510 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1509) + } else if z.HasExtensions() && z.DecExt(yyv1655) { + } else if yym1656 { + z.DecBinaryUnmarshal(yyv1655) + } else if !yym1656 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1655) } else { - z.DecFallback(yyv1509, false) + z.DecFallback(yyv1655, false) } } for { - yyj1508++ - if yyhl1508 { - yyb1508 = yyj1508 > l + yyj1654++ + if yyhl1654 { + yyb1654 = yyj1654 > l } else { - yyb1508 = r.CheckBreak() + yyb1654 = r.CheckBreak() } - if yyb1508 { + if yyb1654 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1508-1, "") + z.DecStructFieldNotFound(yyj1654-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21034,39 +22790,39 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1511 := z.EncBinary() - _ = yym1511 + yym1657 := z.EncBinary() + _ = yym1657 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1512 := !z.EncBinary() - yy2arr1512 := z.EncBasicHandle().StructToArray - var yyq1512 [7]bool - _, _, _ = yysep1512, yyq1512, yy2arr1512 - const yyr1512 bool = false - yyq1512[1] = x.Signal != 0 - yyq1512[2] = x.Reason != "" - yyq1512[3] = x.Message != "" - yyq1512[4] = true - yyq1512[5] = true - yyq1512[6] = x.ContainerID != "" - var yynn1512 int - if yyr1512 || yy2arr1512 { + yysep1658 := !z.EncBinary() + yy2arr1658 := z.EncBasicHandle().StructToArray + var yyq1658 [7]bool + _, _, _ = yysep1658, yyq1658, yy2arr1658 + const yyr1658 bool = false + yyq1658[1] = x.Signal != 0 + yyq1658[2] = x.Reason != "" + yyq1658[3] = x.Message != "" + yyq1658[4] = true + yyq1658[5] = true + yyq1658[6] = x.ContainerID != "" + var yynn1658 int + if yyr1658 || yy2arr1658 { r.EncodeArrayStart(7) } else { - yynn1512 = 1 - for _, b := range yyq1512 { + yynn1658 = 1 + for _, b := range yyq1658 { if b { - yynn1512++ + yynn1658++ } } - r.EncodeMapStart(yynn1512) - yynn1512 = 0 + r.EncodeMapStart(yynn1658) + yynn1658 = 0 } - if yyr1512 || yy2arr1512 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1514 := z.EncBinary() - _ = yym1514 + yym1660 := z.EncBinary() + _ = yym1660 if false { } else { r.EncodeInt(int64(x.ExitCode)) @@ -21075,18 +22831,18 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exitCode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1515 := z.EncBinary() - _ = yym1515 + yym1661 := z.EncBinary() + _ = yym1661 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } - if yyr1512 || yy2arr1512 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1512[1] { - yym1517 := z.EncBinary() - _ = yym1517 + if yyq1658[1] { + yym1663 := z.EncBinary() + _ = yym1663 if false { } else { r.EncodeInt(int64(x.Signal)) @@ -21095,23 +22851,23 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1512[1] { + if yyq1658[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("signal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1518 := z.EncBinary() - _ = yym1518 + yym1664 := z.EncBinary() + _ = yym1664 if false { } else { r.EncodeInt(int64(x.Signal)) } } } - if yyr1512 || yy2arr1512 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1512[2] { - yym1520 := z.EncBinary() - _ = yym1520 + if yyq1658[2] { + yym1666 := z.EncBinary() + _ = yym1666 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -21120,23 +22876,23 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1512[2] { + if yyq1658[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1521 := z.EncBinary() - _ = yym1521 + yym1667 := z.EncBinary() + _ = yym1667 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr1512 || yy2arr1512 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1512[3] { - yym1523 := z.EncBinary() - _ = yym1523 + if yyq1658[3] { + yym1669 := z.EncBinary() + _ = yym1669 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -21145,97 +22901,97 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1512[3] { + if yyq1658[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1524 := z.EncBinary() - _ = yym1524 + yym1670 := z.EncBinary() + _ = yym1670 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr1512 || yy2arr1512 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1512[4] { - yy1526 := &x.StartedAt - yym1527 := z.EncBinary() - _ = yym1527 + if yyq1658[4] { + yy1672 := &x.StartedAt + yym1673 := z.EncBinary() + _ = yym1673 if false { - } else if z.HasExtensions() && z.EncExt(yy1526) { - } else if yym1527 { - z.EncBinaryMarshal(yy1526) - } else if !yym1527 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1526) + } else if z.HasExtensions() && z.EncExt(yy1672) { + } else if yym1673 { + z.EncBinaryMarshal(yy1672) + } else if !yym1673 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1672) } else { - z.EncFallback(yy1526) + z.EncFallback(yy1672) } } else { r.EncodeNil() } } else { - if yyq1512[4] { + if yyq1658[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1528 := &x.StartedAt - yym1529 := z.EncBinary() - _ = yym1529 + yy1674 := &x.StartedAt + yym1675 := z.EncBinary() + _ = yym1675 if false { - } else if z.HasExtensions() && z.EncExt(yy1528) { - } else if yym1529 { - z.EncBinaryMarshal(yy1528) - } else if !yym1529 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1528) + } else if z.HasExtensions() && z.EncExt(yy1674) { + } else if yym1675 { + z.EncBinaryMarshal(yy1674) + } else if !yym1675 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1674) } else { - z.EncFallback(yy1528) + z.EncFallback(yy1674) } } } - if yyr1512 || yy2arr1512 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1512[5] { - yy1531 := &x.FinishedAt - yym1532 := z.EncBinary() - _ = yym1532 + if yyq1658[5] { + yy1677 := &x.FinishedAt + yym1678 := z.EncBinary() + _ = yym1678 if false { - } else if z.HasExtensions() && z.EncExt(yy1531) { - } else if yym1532 { - z.EncBinaryMarshal(yy1531) - } else if !yym1532 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1531) + } else if z.HasExtensions() && z.EncExt(yy1677) { + } else if yym1678 { + z.EncBinaryMarshal(yy1677) + } else if !yym1678 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1677) } else { - z.EncFallback(yy1531) + z.EncFallback(yy1677) } } else { r.EncodeNil() } } else { - if yyq1512[5] { + if yyq1658[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1533 := &x.FinishedAt - yym1534 := z.EncBinary() - _ = yym1534 + yy1679 := &x.FinishedAt + yym1680 := z.EncBinary() + _ = yym1680 if false { - } else if z.HasExtensions() && z.EncExt(yy1533) { - } else if yym1534 { - z.EncBinaryMarshal(yy1533) - } else if !yym1534 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1533) + } else if z.HasExtensions() && z.EncExt(yy1679) { + } else if yym1680 { + z.EncBinaryMarshal(yy1679) + } else if !yym1680 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1679) } else { - z.EncFallback(yy1533) + z.EncFallback(yy1679) } } } - if yyr1512 || yy2arr1512 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1512[6] { - yym1536 := z.EncBinary() - _ = yym1536 + if yyq1658[6] { + yym1682 := z.EncBinary() + _ = yym1682 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) @@ -21244,19 +23000,19 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1512[6] { + if yyq1658[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1537 := z.EncBinary() - _ = yym1537 + yym1683 := z.EncBinary() + _ = yym1683 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } - if yyr1512 || yy2arr1512 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -21269,25 +23025,25 @@ func (x *ContainerStateTerminated) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1538 := z.DecBinary() - _ = yym1538 + yym1684 := z.DecBinary() + _ = yym1684 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1539 := r.ContainerType() - if yyct1539 == codecSelferValueTypeMap1234 { - yyl1539 := r.ReadMapStart() - if yyl1539 == 0 { + yyct1685 := r.ContainerType() + if yyct1685 == codecSelferValueTypeMap1234 { + yyl1685 := r.ReadMapStart() + if yyl1685 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1539, d) + x.codecDecodeSelfFromMap(yyl1685, d) } - } else if yyct1539 == codecSelferValueTypeArray1234 { - yyl1539 := r.ReadArrayStart() - if yyl1539 == 0 { + } else if yyct1685 == codecSelferValueTypeArray1234 { + yyl1685 := r.ReadArrayStart() + if yyl1685 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1539, d) + x.codecDecodeSelfFromArray(yyl1685, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -21299,12 +23055,12 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1540Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1540Slc - var yyhl1540 bool = l >= 0 - for yyj1540 := 0; ; yyj1540++ { - if yyhl1540 { - if yyj1540 >= l { + var yys1686Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1686Slc + var yyhl1686 bool = l >= 0 + for yyj1686 := 0; ; yyj1686++ { + if yyhl1686 { + if yyj1686 >= l { break } } else { @@ -21313,10 +23069,10 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1540Slc = r.DecodeBytes(yys1540Slc, true, true) - yys1540 := string(yys1540Slc) + yys1686Slc = r.DecodeBytes(yys1686Slc, true, true) + yys1686 := string(yys1686Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1540 { + switch yys1686 { case "exitCode": if r.TryDecodeAsNil() { x.ExitCode = 0 @@ -21345,34 +23101,34 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { - yyv1545 := &x.StartedAt - yym1546 := z.DecBinary() - _ = yym1546 + yyv1691 := &x.StartedAt + yym1692 := z.DecBinary() + _ = yym1692 if false { - } else if z.HasExtensions() && z.DecExt(yyv1545) { - } else if yym1546 { - z.DecBinaryUnmarshal(yyv1545) - } else if !yym1546 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1545) + } else if z.HasExtensions() && z.DecExt(yyv1691) { + } else if yym1692 { + z.DecBinaryUnmarshal(yyv1691) + } else if !yym1692 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1691) } else { - z.DecFallback(yyv1545, false) + z.DecFallback(yyv1691, false) } } case "finishedAt": if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { - yyv1547 := &x.FinishedAt - yym1548 := z.DecBinary() - _ = yym1548 + yyv1693 := &x.FinishedAt + yym1694 := z.DecBinary() + _ = yym1694 if false { - } else if z.HasExtensions() && z.DecExt(yyv1547) { - } else if yym1548 { - z.DecBinaryUnmarshal(yyv1547) - } else if !yym1548 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1547) + } else if z.HasExtensions() && z.DecExt(yyv1693) { + } else if yym1694 { + z.DecBinaryUnmarshal(yyv1693) + } else if !yym1694 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1693) } else { - z.DecFallback(yyv1547, false) + z.DecFallback(yyv1693, false) } } case "containerID": @@ -21382,9 +23138,9 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De x.ContainerID = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1540) - } // end switch yys1540 - } // end for yyj1540 + z.DecStructFieldNotFound(-1, yys1686) + } // end switch yys1686 + } // end for yyj1686 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -21392,16 +23148,16 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1550 int - var yyb1550 bool - var yyhl1550 bool = l >= 0 - yyj1550++ - if yyhl1550 { - yyb1550 = yyj1550 > l + var yyj1696 int + var yyb1696 bool + var yyhl1696 bool = l >= 0 + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb1550 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb1550 { + if yyb1696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21411,13 +23167,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.ExitCode = int32(r.DecodeInt(32)) } - yyj1550++ - if yyhl1550 { - yyb1550 = yyj1550 > l + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb1550 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb1550 { + if yyb1696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21427,13 +23183,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Signal = int32(r.DecodeInt(32)) } - yyj1550++ - if yyhl1550 { - yyb1550 = yyj1550 > l + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb1550 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb1550 { + if yyb1696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21443,13 +23199,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Reason = string(r.DecodeString()) } - yyj1550++ - if yyhl1550 { - yyb1550 = yyj1550 > l + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb1550 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb1550 { + if yyb1696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21459,13 +23215,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Message = string(r.DecodeString()) } - yyj1550++ - if yyhl1550 { - yyb1550 = yyj1550 > l + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb1550 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb1550 { + if yyb1696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21473,26 +23229,26 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { - yyv1555 := &x.StartedAt - yym1556 := z.DecBinary() - _ = yym1556 + yyv1701 := &x.StartedAt + yym1702 := z.DecBinary() + _ = yym1702 if false { - } else if z.HasExtensions() && z.DecExt(yyv1555) { - } else if yym1556 { - z.DecBinaryUnmarshal(yyv1555) - } else if !yym1556 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1555) + } else if z.HasExtensions() && z.DecExt(yyv1701) { + } else if yym1702 { + z.DecBinaryUnmarshal(yyv1701) + } else if !yym1702 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1701) } else { - z.DecFallback(yyv1555, false) + z.DecFallback(yyv1701, false) } } - yyj1550++ - if yyhl1550 { - yyb1550 = yyj1550 > l + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb1550 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb1550 { + if yyb1696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21500,26 +23256,26 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { - yyv1557 := &x.FinishedAt - yym1558 := z.DecBinary() - _ = yym1558 + yyv1703 := &x.FinishedAt + yym1704 := z.DecBinary() + _ = yym1704 if false { - } else if z.HasExtensions() && z.DecExt(yyv1557) { - } else if yym1558 { - z.DecBinaryUnmarshal(yyv1557) - } else if !yym1558 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1557) + } else if z.HasExtensions() && z.DecExt(yyv1703) { + } else if yym1704 { + z.DecBinaryUnmarshal(yyv1703) + } else if !yym1704 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1703) } else { - z.DecFallback(yyv1557, false) + z.DecFallback(yyv1703, false) } } - yyj1550++ - if yyhl1550 { - yyb1550 = yyj1550 > l + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb1550 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb1550 { + if yyb1696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21530,17 +23286,17 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. x.ContainerID = string(r.DecodeString()) } for { - yyj1550++ - if yyhl1550 { - yyb1550 = yyj1550 > l + yyj1696++ + if yyhl1696 { + yyb1696 = yyj1696 > l } else { - yyb1550 = r.CheckBreak() + yyb1696 = r.CheckBreak() } - if yyb1550 { + if yyb1696 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1550-1, "") + z.DecStructFieldNotFound(yyj1696-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21552,35 +23308,35 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1560 := z.EncBinary() - _ = yym1560 + yym1706 := z.EncBinary() + _ = yym1706 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1561 := !z.EncBinary() - yy2arr1561 := z.EncBasicHandle().StructToArray - var yyq1561 [3]bool - _, _, _ = yysep1561, yyq1561, yy2arr1561 - const yyr1561 bool = false - yyq1561[0] = x.Waiting != nil - yyq1561[1] = x.Running != nil - yyq1561[2] = x.Terminated != nil - var yynn1561 int - if yyr1561 || yy2arr1561 { + yysep1707 := !z.EncBinary() + yy2arr1707 := z.EncBasicHandle().StructToArray + var yyq1707 [3]bool + _, _, _ = yysep1707, yyq1707, yy2arr1707 + const yyr1707 bool = false + yyq1707[0] = x.Waiting != nil + yyq1707[1] = x.Running != nil + yyq1707[2] = x.Terminated != nil + var yynn1707 int + if yyr1707 || yy2arr1707 { r.EncodeArrayStart(3) } else { - yynn1561 = 0 - for _, b := range yyq1561 { + yynn1707 = 0 + for _, b := range yyq1707 { if b { - yynn1561++ + yynn1707++ } } - r.EncodeMapStart(yynn1561) - yynn1561 = 0 + r.EncodeMapStart(yynn1707) + yynn1707 = 0 } - if yyr1561 || yy2arr1561 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1561[0] { + if yyq1707[0] { if x.Waiting == nil { r.EncodeNil() } else { @@ -21590,7 +23346,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1561[0] { + if yyq1707[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("waiting")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21601,9 +23357,9 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1561 || yy2arr1561 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1561[1] { + if yyq1707[1] { if x.Running == nil { r.EncodeNil() } else { @@ -21613,7 +23369,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1561[1] { + if yyq1707[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("running")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21624,9 +23380,9 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1561 || yy2arr1561 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1561[2] { + if yyq1707[2] { if x.Terminated == nil { r.EncodeNil() } else { @@ -21636,7 +23392,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1561[2] { + if yyq1707[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminated")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21647,7 +23403,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1561 || yy2arr1561 { + if yyr1707 || yy2arr1707 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -21660,25 +23416,25 @@ func (x *ContainerState) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1565 := z.DecBinary() - _ = yym1565 + yym1711 := z.DecBinary() + _ = yym1711 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1566 := r.ContainerType() - if yyct1566 == codecSelferValueTypeMap1234 { - yyl1566 := r.ReadMapStart() - if yyl1566 == 0 { + yyct1712 := r.ContainerType() + if yyct1712 == codecSelferValueTypeMap1234 { + yyl1712 := r.ReadMapStart() + if yyl1712 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1566, d) + x.codecDecodeSelfFromMap(yyl1712, d) } - } else if yyct1566 == codecSelferValueTypeArray1234 { - yyl1566 := r.ReadArrayStart() - if yyl1566 == 0 { + } else if yyct1712 == codecSelferValueTypeArray1234 { + yyl1712 := r.ReadArrayStart() + if yyl1712 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1566, d) + x.codecDecodeSelfFromArray(yyl1712, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -21690,12 +23446,12 @@ func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1567Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1567Slc - var yyhl1567 bool = l >= 0 - for yyj1567 := 0; ; yyj1567++ { - if yyhl1567 { - if yyj1567 >= l { + var yys1713Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1713Slc + var yyhl1713 bool = l >= 0 + for yyj1713 := 0; ; yyj1713++ { + if yyhl1713 { + if yyj1713 >= l { break } } else { @@ -21704,10 +23460,10 @@ func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1567Slc = r.DecodeBytes(yys1567Slc, true, true) - yys1567 := string(yys1567Slc) + yys1713Slc = r.DecodeBytes(yys1713Slc, true, true) + yys1713 := string(yys1713Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1567 { + switch yys1713 { case "waiting": if r.TryDecodeAsNil() { if x.Waiting != nil { @@ -21742,9 +23498,9 @@ func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Terminated.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1567) - } // end switch yys1567 - } // end for yyj1567 + z.DecStructFieldNotFound(-1, yys1713) + } // end switch yys1713 + } // end for yyj1713 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -21752,16 +23508,16 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1571 int - var yyb1571 bool - var yyhl1571 bool = l >= 0 - yyj1571++ - if yyhl1571 { - yyb1571 = yyj1571 > l + var yyj1717 int + var yyb1717 bool + var yyhl1717 bool = l >= 0 + yyj1717++ + if yyhl1717 { + yyb1717 = yyj1717 > l } else { - yyb1571 = r.CheckBreak() + yyb1717 = r.CheckBreak() } - if yyb1571 { + if yyb1717 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21776,13 +23532,13 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Waiting.CodecDecodeSelf(d) } - yyj1571++ - if yyhl1571 { - yyb1571 = yyj1571 > l + yyj1717++ + if yyhl1717 { + yyb1717 = yyj1717 > l } else { - yyb1571 = r.CheckBreak() + yyb1717 = r.CheckBreak() } - if yyb1571 { + if yyb1717 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21797,13 +23553,13 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Running.CodecDecodeSelf(d) } - yyj1571++ - if yyhl1571 { - yyb1571 = yyj1571 > l + yyj1717++ + if yyhl1717 { + yyb1717 = yyj1717 > l } else { - yyb1571 = r.CheckBreak() + yyb1717 = r.CheckBreak() } - if yyb1571 { + if yyb1717 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21819,17 +23575,17 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Terminated.CodecDecodeSelf(d) } for { - yyj1571++ - if yyhl1571 { - yyb1571 = yyj1571 > l + yyj1717++ + if yyhl1717 { + yyb1717 = yyj1717 > l } else { - yyb1571 = r.CheckBreak() + yyb1717 = r.CheckBreak() } - if yyb1571 { + if yyb1717 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1571-1, "") + z.DecStructFieldNotFound(yyj1717-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21841,36 +23597,36 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1575 := z.EncBinary() - _ = yym1575 + yym1721 := z.EncBinary() + _ = yym1721 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1576 := !z.EncBinary() - yy2arr1576 := z.EncBasicHandle().StructToArray - var yyq1576 [8]bool - _, _, _ = yysep1576, yyq1576, yy2arr1576 - const yyr1576 bool = false - yyq1576[1] = true - yyq1576[2] = true - yyq1576[7] = x.ContainerID != "" - var yynn1576 int - if yyr1576 || yy2arr1576 { + yysep1722 := !z.EncBinary() + yy2arr1722 := z.EncBasicHandle().StructToArray + var yyq1722 [8]bool + _, _, _ = yysep1722, yyq1722, yy2arr1722 + const yyr1722 bool = false + yyq1722[1] = true + yyq1722[2] = true + yyq1722[7] = x.ContainerID != "" + var yynn1722 int + if yyr1722 || yy2arr1722 { r.EncodeArrayStart(8) } else { - yynn1576 = 5 - for _, b := range yyq1576 { + yynn1722 = 5 + for _, b := range yyq1722 { if b { - yynn1576++ + yynn1722++ } } - r.EncodeMapStart(yynn1576) - yynn1576 = 0 + r.EncodeMapStart(yynn1722) + yynn1722 = 0 } - if yyr1576 || yy2arr1576 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1578 := z.EncBinary() - _ = yym1578 + yym1724 := z.EncBinary() + _ = yym1724 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -21879,51 +23635,51 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1579 := z.EncBinary() - _ = yym1579 + yym1725 := z.EncBinary() + _ = yym1725 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1576 || yy2arr1576 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1576[1] { - yy1581 := &x.State - yy1581.CodecEncodeSelf(e) + if yyq1722[1] { + yy1727 := &x.State + yy1727.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1576[1] { + if yyq1722[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("state")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1582 := &x.State - yy1582.CodecEncodeSelf(e) + yy1728 := &x.State + yy1728.CodecEncodeSelf(e) } } - if yyr1576 || yy2arr1576 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1576[2] { - yy1584 := &x.LastTerminationState - yy1584.CodecEncodeSelf(e) + if yyq1722[2] { + yy1730 := &x.LastTerminationState + yy1730.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1576[2] { + if yyq1722[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastState")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1585 := &x.LastTerminationState - yy1585.CodecEncodeSelf(e) + yy1731 := &x.LastTerminationState + yy1731.CodecEncodeSelf(e) } } - if yyr1576 || yy2arr1576 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1587 := z.EncBinary() - _ = yym1587 + yym1733 := z.EncBinary() + _ = yym1733 if false { } else { r.EncodeBool(bool(x.Ready)) @@ -21932,17 +23688,17 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ready")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1588 := z.EncBinary() - _ = yym1588 + yym1734 := z.EncBinary() + _ = yym1734 if false { } else { r.EncodeBool(bool(x.Ready)) } } - if yyr1576 || yy2arr1576 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1590 := z.EncBinary() - _ = yym1590 + yym1736 := z.EncBinary() + _ = yym1736 if false { } else { r.EncodeInt(int64(x.RestartCount)) @@ -21951,17 +23707,17 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1591 := z.EncBinary() - _ = yym1591 + yym1737 := z.EncBinary() + _ = yym1737 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } - if yyr1576 || yy2arr1576 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1593 := z.EncBinary() - _ = yym1593 + yym1739 := z.EncBinary() + _ = yym1739 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) @@ -21970,17 +23726,17 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1594 := z.EncBinary() - _ = yym1594 + yym1740 := z.EncBinary() + _ = yym1740 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } - if yyr1576 || yy2arr1576 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1596 := z.EncBinary() - _ = yym1596 + yym1742 := z.EncBinary() + _ = yym1742 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) @@ -21989,18 +23745,18 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imageID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1597 := z.EncBinary() - _ = yym1597 + yym1743 := z.EncBinary() + _ = yym1743 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } - if yyr1576 || yy2arr1576 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1576[7] { - yym1599 := z.EncBinary() - _ = yym1599 + if yyq1722[7] { + yym1745 := z.EncBinary() + _ = yym1745 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) @@ -22009,19 +23765,19 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1576[7] { + if yyq1722[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1600 := z.EncBinary() - _ = yym1600 + yym1746 := z.EncBinary() + _ = yym1746 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } - if yyr1576 || yy2arr1576 { + if yyr1722 || yy2arr1722 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -22034,25 +23790,25 @@ func (x *ContainerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1601 := z.DecBinary() - _ = yym1601 + yym1747 := z.DecBinary() + _ = yym1747 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1602 := r.ContainerType() - if yyct1602 == codecSelferValueTypeMap1234 { - yyl1602 := r.ReadMapStart() - if yyl1602 == 0 { + yyct1748 := r.ContainerType() + if yyct1748 == codecSelferValueTypeMap1234 { + yyl1748 := r.ReadMapStart() + if yyl1748 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1602, d) + x.codecDecodeSelfFromMap(yyl1748, d) } - } else if yyct1602 == codecSelferValueTypeArray1234 { - yyl1602 := r.ReadArrayStart() - if yyl1602 == 0 { + } else if yyct1748 == codecSelferValueTypeArray1234 { + yyl1748 := r.ReadArrayStart() + if yyl1748 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1602, d) + x.codecDecodeSelfFromArray(yyl1748, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -22064,12 +23820,12 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1603Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1603Slc - var yyhl1603 bool = l >= 0 - for yyj1603 := 0; ; yyj1603++ { - if yyhl1603 { - if yyj1603 >= l { + var yys1749Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1749Slc + var yyhl1749 bool = l >= 0 + for yyj1749 := 0; ; yyj1749++ { + if yyhl1749 { + if yyj1749 >= l { break } } else { @@ -22078,10 +23834,10 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1603Slc = r.DecodeBytes(yys1603Slc, true, true) - yys1603 := string(yys1603Slc) + yys1749Slc = r.DecodeBytes(yys1749Slc, true, true) + yys1749 := string(yys1749Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1603 { + switch yys1749 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -22092,15 +23848,15 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.State = ContainerState{} } else { - yyv1605 := &x.State - yyv1605.CodecDecodeSelf(d) + yyv1751 := &x.State + yyv1751.CodecDecodeSelf(d) } case "lastState": if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { - yyv1606 := &x.LastTerminationState - yyv1606.CodecDecodeSelf(d) + yyv1752 := &x.LastTerminationState + yyv1752.CodecDecodeSelf(d) } case "ready": if r.TryDecodeAsNil() { @@ -22133,9 +23889,9 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ContainerID = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1603) - } // end switch yys1603 - } // end for yyj1603 + z.DecStructFieldNotFound(-1, yys1749) + } // end switch yys1749 + } // end for yyj1749 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -22143,16 +23899,16 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1612 int - var yyb1612 bool - var yyhl1612 bool = l >= 0 - yyj1612++ - if yyhl1612 { - yyb1612 = yyj1612 > l + var yyj1758 int + var yyb1758 bool + var yyhl1758 bool = l >= 0 + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb1612 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb1612 { + if yyb1758 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22162,13 +23918,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Name = string(r.DecodeString()) } - yyj1612++ - if yyhl1612 { - yyb1612 = yyj1612 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb1612 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb1612 { + if yyb1758 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22176,16 +23932,16 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.State = ContainerState{} } else { - yyv1614 := &x.State - yyv1614.CodecDecodeSelf(d) + yyv1760 := &x.State + yyv1760.CodecDecodeSelf(d) } - yyj1612++ - if yyhl1612 { - yyb1612 = yyj1612 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb1612 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb1612 { + if yyb1758 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22193,16 +23949,16 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { - yyv1615 := &x.LastTerminationState - yyv1615.CodecDecodeSelf(d) + yyv1761 := &x.LastTerminationState + yyv1761.CodecDecodeSelf(d) } - yyj1612++ - if yyhl1612 { - yyb1612 = yyj1612 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb1612 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb1612 { + if yyb1758 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22212,13 +23968,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Ready = bool(r.DecodeBool()) } - yyj1612++ - if yyhl1612 { - yyb1612 = yyj1612 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb1612 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb1612 { + if yyb1758 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22228,13 +23984,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RestartCount = int32(r.DecodeInt(32)) } - yyj1612++ - if yyhl1612 { - yyb1612 = yyj1612 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb1612 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb1612 { + if yyb1758 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22244,13 +24000,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Image = string(r.DecodeString()) } - yyj1612++ - if yyhl1612 { - yyb1612 = yyj1612 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb1612 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb1612 { + if yyb1758 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22260,13 +24016,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ImageID = string(r.DecodeString()) } - yyj1612++ - if yyhl1612 { - yyb1612 = yyj1612 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb1612 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb1612 { + if yyb1758 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22277,17 +24033,17 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ContainerID = string(r.DecodeString()) } for { - yyj1612++ - if yyhl1612 { - yyb1612 = yyj1612 > l + yyj1758++ + if yyhl1758 { + yyb1758 = yyj1758 > l } else { - yyb1612 = r.CheckBreak() + yyb1758 = r.CheckBreak() } - if yyb1612 { + if yyb1758 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1612-1, "") + z.DecStructFieldNotFound(yyj1758-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22296,8 +24052,8 @@ func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1621 := z.EncBinary() - _ = yym1621 + yym1767 := z.EncBinary() + _ = yym1767 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -22309,8 +24065,8 @@ func (x *PodPhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1622 := z.DecBinary() - _ = yym1622 + yym1768 := z.DecBinary() + _ = yym1768 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -22322,8 +24078,8 @@ func (x PodConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1623 := z.EncBinary() - _ = yym1623 + yym1769 := z.EncBinary() + _ = yym1769 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -22335,8 +24091,8 @@ func (x *PodConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1624 := z.DecBinary() - _ = yym1624 + yym1770 := z.DecBinary() + _ = yym1770 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -22351,34 +24107,34 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1625 := z.EncBinary() - _ = yym1625 + yym1771 := z.EncBinary() + _ = yym1771 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1626 := !z.EncBinary() - yy2arr1626 := z.EncBasicHandle().StructToArray - var yyq1626 [6]bool - _, _, _ = yysep1626, yyq1626, yy2arr1626 - const yyr1626 bool = false - yyq1626[2] = true - yyq1626[3] = true - yyq1626[4] = x.Reason != "" - yyq1626[5] = x.Message != "" - var yynn1626 int - if yyr1626 || yy2arr1626 { + yysep1772 := !z.EncBinary() + yy2arr1772 := z.EncBasicHandle().StructToArray + var yyq1772 [6]bool + _, _, _ = yysep1772, yyq1772, yy2arr1772 + const yyr1772 bool = false + yyq1772[2] = true + yyq1772[3] = true + yyq1772[4] = x.Reason != "" + yyq1772[5] = x.Message != "" + var yynn1772 int + if yyr1772 || yy2arr1772 { r.EncodeArrayStart(6) } else { - yynn1626 = 2 - for _, b := range yyq1626 { + yynn1772 = 2 + for _, b := range yyq1772 { if b { - yynn1626++ + yynn1772++ } } - r.EncodeMapStart(yynn1626) - yynn1626 = 0 + r.EncodeMapStart(yynn1772) + yynn1772 = 0 } - if yyr1626 || yy2arr1626 { + if yyr1772 || yy2arr1772 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -22387,7 +24143,7 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr1626 || yy2arr1626 { + if yyr1772 || yy2arr1772 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -22396,85 +24152,85 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr1626 || yy2arr1626 { + if yyr1772 || yy2arr1772 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1626[2] { - yy1630 := &x.LastProbeTime - yym1631 := z.EncBinary() - _ = yym1631 + if yyq1772[2] { + yy1776 := &x.LastProbeTime + yym1777 := z.EncBinary() + _ = yym1777 if false { - } else if z.HasExtensions() && z.EncExt(yy1630) { - } else if yym1631 { - z.EncBinaryMarshal(yy1630) - } else if !yym1631 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1630) + } else if z.HasExtensions() && z.EncExt(yy1776) { + } else if yym1777 { + z.EncBinaryMarshal(yy1776) + } else if !yym1777 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1776) } else { - z.EncFallback(yy1630) + z.EncFallback(yy1776) } } else { r.EncodeNil() } } else { - if yyq1626[2] { + if yyq1772[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1632 := &x.LastProbeTime - yym1633 := z.EncBinary() - _ = yym1633 + yy1778 := &x.LastProbeTime + yym1779 := z.EncBinary() + _ = yym1779 if false { - } else if z.HasExtensions() && z.EncExt(yy1632) { - } else if yym1633 { - z.EncBinaryMarshal(yy1632) - } else if !yym1633 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1632) + } else if z.HasExtensions() && z.EncExt(yy1778) { + } else if yym1779 { + z.EncBinaryMarshal(yy1778) + } else if !yym1779 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1778) } else { - z.EncFallback(yy1632) + z.EncFallback(yy1778) } } } - if yyr1626 || yy2arr1626 { + if yyr1772 || yy2arr1772 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1626[3] { - yy1635 := &x.LastTransitionTime - yym1636 := z.EncBinary() - _ = yym1636 + if yyq1772[3] { + yy1781 := &x.LastTransitionTime + yym1782 := z.EncBinary() + _ = yym1782 if false { - } else if z.HasExtensions() && z.EncExt(yy1635) { - } else if yym1636 { - z.EncBinaryMarshal(yy1635) - } else if !yym1636 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1635) + } else if z.HasExtensions() && z.EncExt(yy1781) { + } else if yym1782 { + z.EncBinaryMarshal(yy1781) + } else if !yym1782 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1781) } else { - z.EncFallback(yy1635) + z.EncFallback(yy1781) } } else { r.EncodeNil() } } else { - if yyq1626[3] { + if yyq1772[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1637 := &x.LastTransitionTime - yym1638 := z.EncBinary() - _ = yym1638 + yy1783 := &x.LastTransitionTime + yym1784 := z.EncBinary() + _ = yym1784 if false { - } else if z.HasExtensions() && z.EncExt(yy1637) { - } else if yym1638 { - z.EncBinaryMarshal(yy1637) - } else if !yym1638 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1637) + } else if z.HasExtensions() && z.EncExt(yy1783) { + } else if yym1784 { + z.EncBinaryMarshal(yy1783) + } else if !yym1784 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1783) } else { - z.EncFallback(yy1637) + z.EncFallback(yy1783) } } } - if yyr1626 || yy2arr1626 { + if yyr1772 || yy2arr1772 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1626[4] { - yym1640 := z.EncBinary() - _ = yym1640 + if yyq1772[4] { + yym1786 := z.EncBinary() + _ = yym1786 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -22483,23 +24239,23 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1626[4] { + if yyq1772[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1641 := z.EncBinary() - _ = yym1641 + yym1787 := z.EncBinary() + _ = yym1787 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr1626 || yy2arr1626 { + if yyr1772 || yy2arr1772 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1626[5] { - yym1643 := z.EncBinary() - _ = yym1643 + if yyq1772[5] { + yym1789 := z.EncBinary() + _ = yym1789 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -22508,19 +24264,19 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1626[5] { + if yyq1772[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1644 := z.EncBinary() - _ = yym1644 + yym1790 := z.EncBinary() + _ = yym1790 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr1626 || yy2arr1626 { + if yyr1772 || yy2arr1772 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -22533,25 +24289,25 @@ func (x *PodCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1645 := z.DecBinary() - _ = yym1645 + yym1791 := z.DecBinary() + _ = yym1791 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1646 := r.ContainerType() - if yyct1646 == codecSelferValueTypeMap1234 { - yyl1646 := r.ReadMapStart() - if yyl1646 == 0 { + yyct1792 := r.ContainerType() + if yyct1792 == codecSelferValueTypeMap1234 { + yyl1792 := r.ReadMapStart() + if yyl1792 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1646, d) + x.codecDecodeSelfFromMap(yyl1792, d) } - } else if yyct1646 == codecSelferValueTypeArray1234 { - yyl1646 := r.ReadArrayStart() - if yyl1646 == 0 { + } else if yyct1792 == codecSelferValueTypeArray1234 { + yyl1792 := r.ReadArrayStart() + if yyl1792 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1646, d) + x.codecDecodeSelfFromArray(yyl1792, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -22563,12 +24319,12 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1647Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1647Slc - var yyhl1647 bool = l >= 0 - for yyj1647 := 0; ; yyj1647++ { - if yyhl1647 { - if yyj1647 >= l { + var yys1793Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1793Slc + var yyhl1793 bool = l >= 0 + for yyj1793 := 0; ; yyj1793++ { + if yyhl1793 { + if yyj1793 >= l { break } } else { @@ -22577,10 +24333,10 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1647Slc = r.DecodeBytes(yys1647Slc, true, true) - yys1647 := string(yys1647Slc) + yys1793Slc = r.DecodeBytes(yys1793Slc, true, true) + yys1793 := string(yys1793Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1647 { + switch yys1793 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -22597,34 +24353,34 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { - yyv1650 := &x.LastProbeTime - yym1651 := z.DecBinary() - _ = yym1651 + yyv1796 := &x.LastProbeTime + yym1797 := z.DecBinary() + _ = yym1797 if false { - } else if z.HasExtensions() && z.DecExt(yyv1650) { - } else if yym1651 { - z.DecBinaryUnmarshal(yyv1650) - } else if !yym1651 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1650) + } else if z.HasExtensions() && z.DecExt(yyv1796) { + } else if yym1797 { + z.DecBinaryUnmarshal(yyv1796) + } else if !yym1797 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1796) } else { - z.DecFallback(yyv1650, false) + z.DecFallback(yyv1796, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv1652 := &x.LastTransitionTime - yym1653 := z.DecBinary() - _ = yym1653 + yyv1798 := &x.LastTransitionTime + yym1799 := z.DecBinary() + _ = yym1799 if false { - } else if z.HasExtensions() && z.DecExt(yyv1652) { - } else if yym1653 { - z.DecBinaryUnmarshal(yyv1652) - } else if !yym1653 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1652) + } else if z.HasExtensions() && z.DecExt(yyv1798) { + } else if yym1799 { + z.DecBinaryUnmarshal(yyv1798) + } else if !yym1799 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1798) } else { - z.DecFallback(yyv1652, false) + z.DecFallback(yyv1798, false) } } case "reason": @@ -22640,9 +24396,9 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1647) - } // end switch yys1647 - } // end for yyj1647 + z.DecStructFieldNotFound(-1, yys1793) + } // end switch yys1793 + } // end for yyj1793 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -22650,16 +24406,16 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1656 int - var yyb1656 bool - var yyhl1656 bool = l >= 0 - yyj1656++ - if yyhl1656 { - yyb1656 = yyj1656 > l + var yyj1802 int + var yyb1802 bool + var yyhl1802 bool = l >= 0 + yyj1802++ + if yyhl1802 { + yyb1802 = yyj1802 > l } else { - yyb1656 = r.CheckBreak() + yyb1802 = r.CheckBreak() } - if yyb1656 { + if yyb1802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22669,13 +24425,13 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = PodConditionType(r.DecodeString()) } - yyj1656++ - if yyhl1656 { - yyb1656 = yyj1656 > l + yyj1802++ + if yyhl1802 { + yyb1802 = yyj1802 > l } else { - yyb1656 = r.CheckBreak() + yyb1802 = r.CheckBreak() } - if yyb1656 { + if yyb1802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22685,13 +24441,13 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj1656++ - if yyhl1656 { - yyb1656 = yyj1656 > l + yyj1802++ + if yyhl1802 { + yyb1802 = yyj1802 > l } else { - yyb1656 = r.CheckBreak() + yyb1802 = r.CheckBreak() } - if yyb1656 { + if yyb1802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22699,26 +24455,26 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { - yyv1659 := &x.LastProbeTime - yym1660 := z.DecBinary() - _ = yym1660 + yyv1805 := &x.LastProbeTime + yym1806 := z.DecBinary() + _ = yym1806 if false { - } else if z.HasExtensions() && z.DecExt(yyv1659) { - } else if yym1660 { - z.DecBinaryUnmarshal(yyv1659) - } else if !yym1660 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1659) + } else if z.HasExtensions() && z.DecExt(yyv1805) { + } else if yym1806 { + z.DecBinaryUnmarshal(yyv1805) + } else if !yym1806 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1805) } else { - z.DecFallback(yyv1659, false) + z.DecFallback(yyv1805, false) } } - yyj1656++ - if yyhl1656 { - yyb1656 = yyj1656 > l + yyj1802++ + if yyhl1802 { + yyb1802 = yyj1802 > l } else { - yyb1656 = r.CheckBreak() + yyb1802 = r.CheckBreak() } - if yyb1656 { + if yyb1802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22726,26 +24482,26 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv1661 := &x.LastTransitionTime - yym1662 := z.DecBinary() - _ = yym1662 + yyv1807 := &x.LastTransitionTime + yym1808 := z.DecBinary() + _ = yym1808 if false { - } else if z.HasExtensions() && z.DecExt(yyv1661) { - } else if yym1662 { - z.DecBinaryUnmarshal(yyv1661) - } else if !yym1662 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1661) + } else if z.HasExtensions() && z.DecExt(yyv1807) { + } else if yym1808 { + z.DecBinaryUnmarshal(yyv1807) + } else if !yym1808 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1807) } else { - z.DecFallback(yyv1661, false) + z.DecFallback(yyv1807, false) } } - yyj1656++ - if yyhl1656 { - yyb1656 = yyj1656 > l + yyj1802++ + if yyhl1802 { + yyb1802 = yyj1802 > l } else { - yyb1656 = r.CheckBreak() + yyb1802 = r.CheckBreak() } - if yyb1656 { + if yyb1802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22755,13 +24511,13 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj1656++ - if yyhl1656 { - yyb1656 = yyj1656 > l + yyj1802++ + if yyhl1802 { + yyb1802 = yyj1802 > l } else { - yyb1656 = r.CheckBreak() + yyb1802 = r.CheckBreak() } - if yyb1656 { + if yyb1802 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22772,17 +24528,17 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj1656++ - if yyhl1656 { - yyb1656 = yyj1656 > l + yyj1802++ + if yyhl1802 { + yyb1802 = yyj1802 > l } else { - yyb1656 = r.CheckBreak() + yyb1802 = r.CheckBreak() } - if yyb1656 { + if yyb1802 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1656-1, "") + z.DecStructFieldNotFound(yyj1802-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22791,8 +24547,8 @@ func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1665 := z.EncBinary() - _ = yym1665 + yym1811 := z.EncBinary() + _ = yym1811 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -22804,8 +24560,8 @@ func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1666 := z.DecBinary() - _ = yym1666 + yym1812 := z.DecBinary() + _ = yym1812 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -22820,37 +24576,37 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1667 := z.EncBinary() - _ = yym1667 + yym1813 := z.EncBinary() + _ = yym1813 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1668 := !z.EncBinary() - yy2arr1668 := z.EncBasicHandle().StructToArray - var yyq1668 [4]bool - _, _, _ = yysep1668, yyq1668, yy2arr1668 - const yyr1668 bool = false - yyq1668[0] = x.Kind != "" - yyq1668[1] = x.APIVersion != "" - yyq1668[2] = true - var yynn1668 int - if yyr1668 || yy2arr1668 { + yysep1814 := !z.EncBinary() + yy2arr1814 := z.EncBasicHandle().StructToArray + var yyq1814 [4]bool + _, _, _ = yysep1814, yyq1814, yy2arr1814 + const yyr1814 bool = false + yyq1814[0] = x.Kind != "" + yyq1814[1] = x.APIVersion != "" + yyq1814[2] = true + var yynn1814 int + if yyr1814 || yy2arr1814 { r.EncodeArrayStart(4) } else { - yynn1668 = 1 - for _, b := range yyq1668 { + yynn1814 = 1 + for _, b := range yyq1814 { if b { - yynn1668++ + yynn1814++ } } - r.EncodeMapStart(yynn1668) - yynn1668 = 0 + r.EncodeMapStart(yynn1814) + yynn1814 = 0 } - if yyr1668 || yy2arr1668 { + if yyr1814 || yy2arr1814 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1668[0] { - yym1670 := z.EncBinary() - _ = yym1670 + if yyq1814[0] { + yym1816 := z.EncBinary() + _ = yym1816 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -22859,23 +24615,23 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1668[0] { + if yyq1814[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1671 := z.EncBinary() - _ = yym1671 + yym1817 := z.EncBinary() + _ = yym1817 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1668 || yy2arr1668 { + if yyr1814 || yy2arr1814 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1668[1] { - yym1673 := z.EncBinary() - _ = yym1673 + if yyq1814[1] { + yym1819 := z.EncBinary() + _ = yym1819 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -22884,54 +24640,54 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1668[1] { + if yyq1814[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1674 := z.EncBinary() - _ = yym1674 + yym1820 := z.EncBinary() + _ = yym1820 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1668 || yy2arr1668 { + if yyr1814 || yy2arr1814 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1668[2] { - yy1676 := &x.ListMeta - yym1677 := z.EncBinary() - _ = yym1677 + if yyq1814[2] { + yy1822 := &x.ListMeta + yym1823 := z.EncBinary() + _ = yym1823 if false { - } else if z.HasExtensions() && z.EncExt(yy1676) { + } else if z.HasExtensions() && z.EncExt(yy1822) { } else { - z.EncFallback(yy1676) + z.EncFallback(yy1822) } } else { r.EncodeNil() } } else { - if yyq1668[2] { + if yyq1814[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1678 := &x.ListMeta - yym1679 := z.EncBinary() - _ = yym1679 + yy1824 := &x.ListMeta + yym1825 := z.EncBinary() + _ = yym1825 if false { - } else if z.HasExtensions() && z.EncExt(yy1678) { + } else if z.HasExtensions() && z.EncExt(yy1824) { } else { - z.EncFallback(yy1678) + z.EncFallback(yy1824) } } } - if yyr1668 || yy2arr1668 { + if yyr1814 || yy2arr1814 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1681 := z.EncBinary() - _ = yym1681 + yym1827 := z.EncBinary() + _ = yym1827 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) @@ -22944,15 +24700,15 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1682 := z.EncBinary() - _ = yym1682 + yym1828 := z.EncBinary() + _ = yym1828 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } - if yyr1668 || yy2arr1668 { + if yyr1814 || yy2arr1814 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -22965,25 +24721,25 @@ func (x *PodList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1683 := z.DecBinary() - _ = yym1683 + yym1829 := z.DecBinary() + _ = yym1829 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1684 := r.ContainerType() - if yyct1684 == codecSelferValueTypeMap1234 { - yyl1684 := r.ReadMapStart() - if yyl1684 == 0 { + yyct1830 := r.ContainerType() + if yyct1830 == codecSelferValueTypeMap1234 { + yyl1830 := r.ReadMapStart() + if yyl1830 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1684, d) + x.codecDecodeSelfFromMap(yyl1830, d) } - } else if yyct1684 == codecSelferValueTypeArray1234 { - yyl1684 := r.ReadArrayStart() - if yyl1684 == 0 { + } else if yyct1830 == codecSelferValueTypeArray1234 { + yyl1830 := r.ReadArrayStart() + if yyl1830 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1684, d) + x.codecDecodeSelfFromArray(yyl1830, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -22995,12 +24751,12 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1685Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1685Slc - var yyhl1685 bool = l >= 0 - for yyj1685 := 0; ; yyj1685++ { - if yyhl1685 { - if yyj1685 >= l { + var yys1831Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1831Slc + var yyhl1831 bool = l >= 0 + for yyj1831 := 0; ; yyj1831++ { + if yyhl1831 { + if yyj1831 >= l { break } } else { @@ -23009,10 +24765,10 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1685Slc = r.DecodeBytes(yys1685Slc, true, true) - yys1685 := string(yys1685Slc) + yys1831Slc = r.DecodeBytes(yys1831Slc, true, true) + yys1831 := string(yys1831Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1685 { + switch yys1831 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -23029,31 +24785,31 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv1688 := &x.ListMeta - yym1689 := z.DecBinary() - _ = yym1689 + yyv1834 := &x.ListMeta + yym1835 := z.DecBinary() + _ = yym1835 if false { - } else if z.HasExtensions() && z.DecExt(yyv1688) { + } else if z.HasExtensions() && z.DecExt(yyv1834) { } else { - z.DecFallback(yyv1688, false) + z.DecFallback(yyv1834, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1690 := &x.Items - yym1691 := z.DecBinary() - _ = yym1691 + yyv1836 := &x.Items + yym1837 := z.DecBinary() + _ = yym1837 if false { } else { - h.decSlicePod((*[]Pod)(yyv1690), d) + h.decSlicePod((*[]Pod)(yyv1836), d) } } default: - z.DecStructFieldNotFound(-1, yys1685) - } // end switch yys1685 - } // end for yyj1685 + z.DecStructFieldNotFound(-1, yys1831) + } // end switch yys1831 + } // end for yyj1831 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -23061,16 +24817,16 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1692 int - var yyb1692 bool - var yyhl1692 bool = l >= 0 - yyj1692++ - if yyhl1692 { - yyb1692 = yyj1692 > l + var yyj1838 int + var yyb1838 bool + var yyhl1838 bool = l >= 0 + yyj1838++ + if yyhl1838 { + yyb1838 = yyj1838 > l } else { - yyb1692 = r.CheckBreak() + yyb1838 = r.CheckBreak() } - if yyb1692 { + if yyb1838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23080,13 +24836,13 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj1692++ - if yyhl1692 { - yyb1692 = yyj1692 > l + yyj1838++ + if yyhl1838 { + yyb1838 = yyj1838 > l } else { - yyb1692 = r.CheckBreak() + yyb1838 = r.CheckBreak() } - if yyb1692 { + if yyb1838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23096,13 +24852,13 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj1692++ - if yyhl1692 { - yyb1692 = yyj1692 > l + yyj1838++ + if yyhl1838 { + yyb1838 = yyj1838 > l } else { - yyb1692 = r.CheckBreak() + yyb1838 = r.CheckBreak() } - if yyb1692 { + if yyb1838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23110,22 +24866,22 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv1695 := &x.ListMeta - yym1696 := z.DecBinary() - _ = yym1696 + yyv1841 := &x.ListMeta + yym1842 := z.DecBinary() + _ = yym1842 if false { - } else if z.HasExtensions() && z.DecExt(yyv1695) { + } else if z.HasExtensions() && z.DecExt(yyv1841) { } else { - z.DecFallback(yyv1695, false) + z.DecFallback(yyv1841, false) } } - yyj1692++ - if yyhl1692 { - yyb1692 = yyj1692 > l + yyj1838++ + if yyhl1838 { + yyb1838 = yyj1838 > l } else { - yyb1692 = r.CheckBreak() + yyb1838 = r.CheckBreak() } - if yyb1692 { + if yyb1838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23133,26 +24889,26 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1697 := &x.Items - yym1698 := z.DecBinary() - _ = yym1698 + yyv1843 := &x.Items + yym1844 := z.DecBinary() + _ = yym1844 if false { } else { - h.decSlicePod((*[]Pod)(yyv1697), d) + h.decSlicePod((*[]Pod)(yyv1843), d) } } for { - yyj1692++ - if yyhl1692 { - yyb1692 = yyj1692 > l + yyj1838++ + if yyhl1838 { + yyb1838 = yyj1838 > l } else { - yyb1692 = r.CheckBreak() + yyb1838 = r.CheckBreak() } - if yyb1692 { + if yyb1838 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1692-1, "") + z.DecStructFieldNotFound(yyj1838-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23161,8 +24917,8 @@ func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1699 := z.EncBinary() - _ = yym1699 + yym1845 := z.EncBinary() + _ = yym1845 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -23174,8 +24930,8 @@ func (x *DNSPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1700 := z.DecBinary() - _ = yym1700 + yym1846 := z.DecBinary() + _ = yym1846 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -23190,36 +24946,36 @@ func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1701 := z.EncBinary() - _ = yym1701 + yym1847 := z.EncBinary() + _ = yym1847 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1702 := !z.EncBinary() - yy2arr1702 := z.EncBasicHandle().StructToArray - var yyq1702 [1]bool - _, _, _ = yysep1702, yyq1702, yy2arr1702 - const yyr1702 bool = false - var yynn1702 int - if yyr1702 || yy2arr1702 { + yysep1848 := !z.EncBinary() + yy2arr1848 := z.EncBasicHandle().StructToArray + var yyq1848 [1]bool + _, _, _ = yysep1848, yyq1848, yy2arr1848 + const yyr1848 bool = false + var yynn1848 int + if yyr1848 || yy2arr1848 { r.EncodeArrayStart(1) } else { - yynn1702 = 1 - for _, b := range yyq1702 { + yynn1848 = 1 + for _, b := range yyq1848 { if b { - yynn1702++ + yynn1848++ } } - r.EncodeMapStart(yynn1702) - yynn1702 = 0 + r.EncodeMapStart(yynn1848) + yynn1848 = 0 } - if yyr1702 || yy2arr1702 { + if yyr1848 || yy2arr1848 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NodeSelectorTerms == nil { r.EncodeNil() } else { - yym1704 := z.EncBinary() - _ = yym1704 + yym1850 := z.EncBinary() + _ = yym1850 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) @@ -23232,15 +24988,15 @@ func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x.NodeSelectorTerms == nil { r.EncodeNil() } else { - yym1705 := z.EncBinary() - _ = yym1705 + yym1851 := z.EncBinary() + _ = yym1851 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) } } } - if yyr1702 || yy2arr1702 { + if yyr1848 || yy2arr1848 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -23253,25 +25009,25 @@ func (x *NodeSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1706 := z.DecBinary() - _ = yym1706 + yym1852 := z.DecBinary() + _ = yym1852 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1707 := r.ContainerType() - if yyct1707 == codecSelferValueTypeMap1234 { - yyl1707 := r.ReadMapStart() - if yyl1707 == 0 { + yyct1853 := r.ContainerType() + if yyct1853 == codecSelferValueTypeMap1234 { + yyl1853 := r.ReadMapStart() + if yyl1853 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1707, d) + x.codecDecodeSelfFromMap(yyl1853, d) } - } else if yyct1707 == codecSelferValueTypeArray1234 { - yyl1707 := r.ReadArrayStart() - if yyl1707 == 0 { + } else if yyct1853 == codecSelferValueTypeArray1234 { + yyl1853 := r.ReadArrayStart() + if yyl1853 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1707, d) + x.codecDecodeSelfFromArray(yyl1853, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -23283,12 +25039,12 @@ func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1708Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1708Slc - var yyhl1708 bool = l >= 0 - for yyj1708 := 0; ; yyj1708++ { - if yyhl1708 { - if yyj1708 >= l { + var yys1854Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1854Slc + var yyhl1854 bool = l >= 0 + for yyj1854 := 0; ; yyj1854++ { + if yyhl1854 { + if yyj1854 >= l { break } } else { @@ -23297,26 +25053,26 @@ func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1708Slc = r.DecodeBytes(yys1708Slc, true, true) - yys1708 := string(yys1708Slc) + yys1854Slc = r.DecodeBytes(yys1854Slc, true, true) + yys1854 := string(yys1854Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1708 { + switch yys1854 { case "nodeSelectorTerms": if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { - yyv1709 := &x.NodeSelectorTerms - yym1710 := z.DecBinary() - _ = yym1710 + yyv1855 := &x.NodeSelectorTerms + yym1856 := z.DecBinary() + _ = yym1856 if false { } else { - h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1709), d) + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1855), d) } } default: - z.DecStructFieldNotFound(-1, yys1708) - } // end switch yys1708 - } // end for yyj1708 + z.DecStructFieldNotFound(-1, yys1854) + } // end switch yys1854 + } // end for yyj1854 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -23324,16 +25080,16 @@ func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1711 int - var yyb1711 bool - var yyhl1711 bool = l >= 0 - yyj1711++ - if yyhl1711 { - yyb1711 = yyj1711 > l + var yyj1857 int + var yyb1857 bool + var yyhl1857 bool = l >= 0 + yyj1857++ + if yyhl1857 { + yyb1857 = yyj1857 > l } else { - yyb1711 = r.CheckBreak() + yyb1857 = r.CheckBreak() } - if yyb1711 { + if yyb1857 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23341,26 +25097,26 @@ func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { - yyv1712 := &x.NodeSelectorTerms - yym1713 := z.DecBinary() - _ = yym1713 + yyv1858 := &x.NodeSelectorTerms + yym1859 := z.DecBinary() + _ = yym1859 if false { } else { - h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1712), d) + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1858), d) } } for { - yyj1711++ - if yyhl1711 { - yyb1711 = yyj1711 > l + yyj1857++ + if yyhl1857 { + yyb1857 = yyj1857 > l } else { - yyb1711 = r.CheckBreak() + yyb1857 = r.CheckBreak() } - if yyb1711 { + if yyb1857 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1711-1, "") + z.DecStructFieldNotFound(yyj1857-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23372,36 +25128,36 @@ func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1714 := z.EncBinary() - _ = yym1714 + yym1860 := z.EncBinary() + _ = yym1860 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1715 := !z.EncBinary() - yy2arr1715 := z.EncBasicHandle().StructToArray - var yyq1715 [1]bool - _, _, _ = yysep1715, yyq1715, yy2arr1715 - const yyr1715 bool = false - var yynn1715 int - if yyr1715 || yy2arr1715 { + yysep1861 := !z.EncBinary() + yy2arr1861 := z.EncBasicHandle().StructToArray + var yyq1861 [1]bool + _, _, _ = yysep1861, yyq1861, yy2arr1861 + const yyr1861 bool = false + var yynn1861 int + if yyr1861 || yy2arr1861 { r.EncodeArrayStart(1) } else { - yynn1715 = 1 - for _, b := range yyq1715 { + yynn1861 = 1 + for _, b := range yyq1861 { if b { - yynn1715++ + yynn1861++ } } - r.EncodeMapStart(yynn1715) - yynn1715 = 0 + r.EncodeMapStart(yynn1861) + yynn1861 = 0 } - if yyr1715 || yy2arr1715 { + if yyr1861 || yy2arr1861 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.MatchExpressions == nil { r.EncodeNil() } else { - yym1717 := z.EncBinary() - _ = yym1717 + yym1863 := z.EncBinary() + _ = yym1863 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) @@ -23414,15 +25170,15 @@ func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x.MatchExpressions == nil { r.EncodeNil() } else { - yym1718 := z.EncBinary() - _ = yym1718 + yym1864 := z.EncBinary() + _ = yym1864 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) } } } - if yyr1715 || yy2arr1715 { + if yyr1861 || yy2arr1861 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -23435,25 +25191,25 @@ func (x *NodeSelectorTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1719 := z.DecBinary() - _ = yym1719 + yym1865 := z.DecBinary() + _ = yym1865 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1720 := r.ContainerType() - if yyct1720 == codecSelferValueTypeMap1234 { - yyl1720 := r.ReadMapStart() - if yyl1720 == 0 { + yyct1866 := r.ContainerType() + if yyct1866 == codecSelferValueTypeMap1234 { + yyl1866 := r.ReadMapStart() + if yyl1866 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1720, d) + x.codecDecodeSelfFromMap(yyl1866, d) } - } else if yyct1720 == codecSelferValueTypeArray1234 { - yyl1720 := r.ReadArrayStart() - if yyl1720 == 0 { + } else if yyct1866 == codecSelferValueTypeArray1234 { + yyl1866 := r.ReadArrayStart() + if yyl1866 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1720, d) + x.codecDecodeSelfFromArray(yyl1866, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -23465,12 +25221,12 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1721Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1721Slc - var yyhl1721 bool = l >= 0 - for yyj1721 := 0; ; yyj1721++ { - if yyhl1721 { - if yyj1721 >= l { + var yys1867Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1867Slc + var yyhl1867 bool = l >= 0 + for yyj1867 := 0; ; yyj1867++ { + if yyhl1867 { + if yyj1867 >= l { break } } else { @@ -23479,26 +25235,26 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1721Slc = r.DecodeBytes(yys1721Slc, true, true) - yys1721 := string(yys1721Slc) + yys1867Slc = r.DecodeBytes(yys1867Slc, true, true) + yys1867 := string(yys1867Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1721 { + switch yys1867 { case "matchExpressions": if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv1722 := &x.MatchExpressions - yym1723 := z.DecBinary() - _ = yym1723 + yyv1868 := &x.MatchExpressions + yym1869 := z.DecBinary() + _ = yym1869 if false { } else { - h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1722), d) + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1868), d) } } default: - z.DecStructFieldNotFound(-1, yys1721) - } // end switch yys1721 - } // end for yyj1721 + z.DecStructFieldNotFound(-1, yys1867) + } // end switch yys1867 + } // end for yyj1867 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -23506,16 +25262,16 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1724 int - var yyb1724 bool - var yyhl1724 bool = l >= 0 - yyj1724++ - if yyhl1724 { - yyb1724 = yyj1724 > l + var yyj1870 int + var yyb1870 bool + var yyhl1870 bool = l >= 0 + yyj1870++ + if yyhl1870 { + yyb1870 = yyj1870 > l } else { - yyb1724 = r.CheckBreak() + yyb1870 = r.CheckBreak() } - if yyb1724 { + if yyb1870 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23523,26 +25279,26 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv1725 := &x.MatchExpressions - yym1726 := z.DecBinary() - _ = yym1726 + yyv1871 := &x.MatchExpressions + yym1872 := z.DecBinary() + _ = yym1872 if false { } else { - h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1725), d) + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1871), d) } } for { - yyj1724++ - if yyhl1724 { - yyb1724 = yyj1724 > l + yyj1870++ + if yyhl1870 { + yyb1870 = yyj1870 > l } else { - yyb1724 = r.CheckBreak() + yyb1870 = r.CheckBreak() } - if yyb1724 { + if yyb1870 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1724-1, "") + z.DecStructFieldNotFound(yyj1870-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23554,34 +25310,34 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1727 := z.EncBinary() - _ = yym1727 + yym1873 := z.EncBinary() + _ = yym1873 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1728 := !z.EncBinary() - yy2arr1728 := z.EncBasicHandle().StructToArray - var yyq1728 [3]bool - _, _, _ = yysep1728, yyq1728, yy2arr1728 - const yyr1728 bool = false - yyq1728[2] = len(x.Values) != 0 - var yynn1728 int - if yyr1728 || yy2arr1728 { + yysep1874 := !z.EncBinary() + yy2arr1874 := z.EncBasicHandle().StructToArray + var yyq1874 [3]bool + _, _, _ = yysep1874, yyq1874, yy2arr1874 + const yyr1874 bool = false + yyq1874[2] = len(x.Values) != 0 + var yynn1874 int + if yyr1874 || yy2arr1874 { r.EncodeArrayStart(3) } else { - yynn1728 = 2 - for _, b := range yyq1728 { + yynn1874 = 2 + for _, b := range yyq1874 { if b { - yynn1728++ + yynn1874++ } } - r.EncodeMapStart(yynn1728) - yynn1728 = 0 + r.EncodeMapStart(yynn1874) + yynn1874 = 0 } - if yyr1728 || yy2arr1728 { + if yyr1874 || yy2arr1874 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1730 := z.EncBinary() - _ = yym1730 + yym1876 := z.EncBinary() + _ = yym1876 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -23590,14 +25346,14 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1731 := z.EncBinary() - _ = yym1731 + yym1877 := z.EncBinary() + _ = yym1877 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1728 || yy2arr1728 { + if yyr1874 || yy2arr1874 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Operator.CodecEncodeSelf(e) } else { @@ -23606,14 +25362,14 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } - if yyr1728 || yy2arr1728 { + if yyr1874 || yy2arr1874 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1728[2] { + if yyq1874[2] { if x.Values == nil { r.EncodeNil() } else { - yym1734 := z.EncBinary() - _ = yym1734 + yym1880 := z.EncBinary() + _ = yym1880 if false { } else { z.F.EncSliceStringV(x.Values, false, e) @@ -23623,15 +25379,15 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1728[2] { + if yyq1874[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("values")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Values == nil { r.EncodeNil() } else { - yym1735 := z.EncBinary() - _ = yym1735 + yym1881 := z.EncBinary() + _ = yym1881 if false { } else { z.F.EncSliceStringV(x.Values, false, e) @@ -23639,7 +25395,7 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1728 || yy2arr1728 { + if yyr1874 || yy2arr1874 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -23652,25 +25408,25 @@ func (x *NodeSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1736 := z.DecBinary() - _ = yym1736 + yym1882 := z.DecBinary() + _ = yym1882 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1737 := r.ContainerType() - if yyct1737 == codecSelferValueTypeMap1234 { - yyl1737 := r.ReadMapStart() - if yyl1737 == 0 { + yyct1883 := r.ContainerType() + if yyct1883 == codecSelferValueTypeMap1234 { + yyl1883 := r.ReadMapStart() + if yyl1883 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1737, d) + x.codecDecodeSelfFromMap(yyl1883, d) } - } else if yyct1737 == codecSelferValueTypeArray1234 { - yyl1737 := r.ReadArrayStart() - if yyl1737 == 0 { + } else if yyct1883 == codecSelferValueTypeArray1234 { + yyl1883 := r.ReadArrayStart() + if yyl1883 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1737, d) + x.codecDecodeSelfFromArray(yyl1883, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -23682,12 +25438,12 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1738Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1738Slc - var yyhl1738 bool = l >= 0 - for yyj1738 := 0; ; yyj1738++ { - if yyhl1738 { - if yyj1738 >= l { + var yys1884Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1884Slc + var yyhl1884 bool = l >= 0 + for yyj1884 := 0; ; yyj1884++ { + if yyhl1884 { + if yyj1884 >= l { break } } else { @@ -23696,10 +25452,10 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1738Slc = r.DecodeBytes(yys1738Slc, true, true) - yys1738 := string(yys1738Slc) + yys1884Slc = r.DecodeBytes(yys1884Slc, true, true) + yys1884 := string(yys1884Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1738 { + switch yys1884 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -23716,18 +25472,18 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Values = nil } else { - yyv1741 := &x.Values - yym1742 := z.DecBinary() - _ = yym1742 + yyv1887 := &x.Values + yym1888 := z.DecBinary() + _ = yym1888 if false { } else { - z.F.DecSliceStringX(yyv1741, false, d) + z.F.DecSliceStringX(yyv1887, false, d) } } default: - z.DecStructFieldNotFound(-1, yys1738) - } // end switch yys1738 - } // end for yyj1738 + z.DecStructFieldNotFound(-1, yys1884) + } // end switch yys1884 + } // end for yyj1884 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -23735,16 +25491,16 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1743 int - var yyb1743 bool - var yyhl1743 bool = l >= 0 - yyj1743++ - if yyhl1743 { - yyb1743 = yyj1743 > l + var yyj1889 int + var yyb1889 bool + var yyhl1889 bool = l >= 0 + yyj1889++ + if yyhl1889 { + yyb1889 = yyj1889 > l } else { - yyb1743 = r.CheckBreak() + yyb1889 = r.CheckBreak() } - if yyb1743 { + if yyb1889 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23754,13 +25510,13 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Key = string(r.DecodeString()) } - yyj1743++ - if yyhl1743 { - yyb1743 = yyj1743 > l + yyj1889++ + if yyhl1889 { + yyb1889 = yyj1889 > l } else { - yyb1743 = r.CheckBreak() + yyb1889 = r.CheckBreak() } - if yyb1743 { + if yyb1889 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23770,13 +25526,13 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Operator = NodeSelectorOperator(r.DecodeString()) } - yyj1743++ - if yyhl1743 { - yyb1743 = yyj1743 > l + yyj1889++ + if yyhl1889 { + yyb1889 = yyj1889 > l } else { - yyb1743 = r.CheckBreak() + yyb1889 = r.CheckBreak() } - if yyb1743 { + if yyb1889 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23784,26 +25540,26 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Values = nil } else { - yyv1746 := &x.Values - yym1747 := z.DecBinary() - _ = yym1747 + yyv1892 := &x.Values + yym1893 := z.DecBinary() + _ = yym1893 if false { } else { - z.F.DecSliceStringX(yyv1746, false, d) + z.F.DecSliceStringX(yyv1892, false, d) } } for { - yyj1743++ - if yyhl1743 { - yyb1743 = yyj1743 > l + yyj1889++ + if yyhl1889 { + yyb1889 = yyj1889 > l } else { - yyb1743 = r.CheckBreak() + yyb1889 = r.CheckBreak() } - if yyb1743 { + if yyb1889 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1743-1, "") + z.DecStructFieldNotFound(yyj1889-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23812,8 +25568,8 @@ func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1748 := z.EncBinary() - _ = yym1748 + yym1894 := z.EncBinary() + _ = yym1894 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -23825,8 +25581,8 @@ func (x *NodeSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1749 := z.DecBinary() - _ = yym1749 + yym1895 := z.DecBinary() + _ = yym1895 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -23841,35 +25597,35 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1750 := z.EncBinary() - _ = yym1750 + yym1896 := z.EncBinary() + _ = yym1896 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1751 := !z.EncBinary() - yy2arr1751 := z.EncBasicHandle().StructToArray - var yyq1751 [3]bool - _, _, _ = yysep1751, yyq1751, yy2arr1751 - const yyr1751 bool = false - yyq1751[0] = x.NodeAffinity != nil - yyq1751[1] = x.PodAffinity != nil - yyq1751[2] = x.PodAntiAffinity != nil - var yynn1751 int - if yyr1751 || yy2arr1751 { + yysep1897 := !z.EncBinary() + yy2arr1897 := z.EncBasicHandle().StructToArray + var yyq1897 [3]bool + _, _, _ = yysep1897, yyq1897, yy2arr1897 + const yyr1897 bool = false + yyq1897[0] = x.NodeAffinity != nil + yyq1897[1] = x.PodAffinity != nil + yyq1897[2] = x.PodAntiAffinity != nil + var yynn1897 int + if yyr1897 || yy2arr1897 { r.EncodeArrayStart(3) } else { - yynn1751 = 0 - for _, b := range yyq1751 { + yynn1897 = 0 + for _, b := range yyq1897 { if b { - yynn1751++ + yynn1897++ } } - r.EncodeMapStart(yynn1751) - yynn1751 = 0 + r.EncodeMapStart(yynn1897) + yynn1897 = 0 } - if yyr1751 || yy2arr1751 { + if yyr1897 || yy2arr1897 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1751[0] { + if yyq1897[0] { if x.NodeAffinity == nil { r.EncodeNil() } else { @@ -23879,7 +25635,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1751[0] { + if yyq1897[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -23890,9 +25646,9 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1751 || yy2arr1751 { + if yyr1897 || yy2arr1897 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1751[1] { + if yyq1897[1] { if x.PodAffinity == nil { r.EncodeNil() } else { @@ -23902,7 +25658,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1751[1] { + if yyq1897[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -23913,9 +25669,9 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1751 || yy2arr1751 { + if yyr1897 || yy2arr1897 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1751[2] { + if yyq1897[2] { if x.PodAntiAffinity == nil { r.EncodeNil() } else { @@ -23925,7 +25681,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1751[2] { + if yyq1897[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAntiAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -23936,7 +25692,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1751 || yy2arr1751 { + if yyr1897 || yy2arr1897 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -23949,25 +25705,25 @@ func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1755 := z.DecBinary() - _ = yym1755 + yym1901 := z.DecBinary() + _ = yym1901 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1756 := r.ContainerType() - if yyct1756 == codecSelferValueTypeMap1234 { - yyl1756 := r.ReadMapStart() - if yyl1756 == 0 { + yyct1902 := r.ContainerType() + if yyct1902 == codecSelferValueTypeMap1234 { + yyl1902 := r.ReadMapStart() + if yyl1902 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1756, d) + x.codecDecodeSelfFromMap(yyl1902, d) } - } else if yyct1756 == codecSelferValueTypeArray1234 { - yyl1756 := r.ReadArrayStart() - if yyl1756 == 0 { + } else if yyct1902 == codecSelferValueTypeArray1234 { + yyl1902 := r.ReadArrayStart() + if yyl1902 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1756, d) + x.codecDecodeSelfFromArray(yyl1902, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -23979,12 +25735,12 @@ func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1757Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1757Slc - var yyhl1757 bool = l >= 0 - for yyj1757 := 0; ; yyj1757++ { - if yyhl1757 { - if yyj1757 >= l { + var yys1903Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1903Slc + var yyhl1903 bool = l >= 0 + for yyj1903 := 0; ; yyj1903++ { + if yyhl1903 { + if yyj1903 >= l { break } } else { @@ -23993,10 +25749,10 @@ func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1757Slc = r.DecodeBytes(yys1757Slc, true, true) - yys1757 := string(yys1757Slc) + yys1903Slc = r.DecodeBytes(yys1903Slc, true, true) + yys1903 := string(yys1903Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1757 { + switch yys1903 { case "nodeAffinity": if r.TryDecodeAsNil() { if x.NodeAffinity != nil { @@ -24031,9 +25787,9 @@ func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.PodAntiAffinity.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1757) - } // end switch yys1757 - } // end for yyj1757 + z.DecStructFieldNotFound(-1, yys1903) + } // end switch yys1903 + } // end for yyj1903 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -24041,16 +25797,16 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1761 int - var yyb1761 bool - var yyhl1761 bool = l >= 0 - yyj1761++ - if yyhl1761 { - yyb1761 = yyj1761 > l + var yyj1907 int + var yyb1907 bool + var yyhl1907 bool = l >= 0 + yyj1907++ + if yyhl1907 { + yyb1907 = yyj1907 > l } else { - yyb1761 = r.CheckBreak() + yyb1907 = r.CheckBreak() } - if yyb1761 { + if yyb1907 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24065,13 +25821,13 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.NodeAffinity.CodecDecodeSelf(d) } - yyj1761++ - if yyhl1761 { - yyb1761 = yyj1761 > l + yyj1907++ + if yyhl1907 { + yyb1907 = yyj1907 > l } else { - yyb1761 = r.CheckBreak() + yyb1907 = r.CheckBreak() } - if yyb1761 { + if yyb1907 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24086,13 +25842,13 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PodAffinity.CodecDecodeSelf(d) } - yyj1761++ - if yyhl1761 { - yyb1761 = yyj1761 > l + yyj1907++ + if yyhl1907 { + yyb1907 = yyj1907 > l } else { - yyb1761 = r.CheckBreak() + yyb1907 = r.CheckBreak() } - if yyb1761 { + if yyb1907 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24108,17 +25864,17 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.PodAntiAffinity.CodecDecodeSelf(d) } for { - yyj1761++ - if yyhl1761 { - yyb1761 = yyj1761 > l + yyj1907++ + if yyhl1907 { + yyb1907 = yyj1907 > l } else { - yyb1761 = r.CheckBreak() + yyb1907 = r.CheckBreak() } - if yyb1761 { + if yyb1907 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1761-1, "") + z.DecStructFieldNotFound(yyj1907-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24130,39 +25886,39 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1765 := z.EncBinary() - _ = yym1765 + yym1911 := z.EncBinary() + _ = yym1911 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1766 := !z.EncBinary() - yy2arr1766 := z.EncBasicHandle().StructToArray - var yyq1766 [2]bool - _, _, _ = yysep1766, yyq1766, yy2arr1766 - const yyr1766 bool = false - yyq1766[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 - yyq1766[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 - var yynn1766 int - if yyr1766 || yy2arr1766 { + yysep1912 := !z.EncBinary() + yy2arr1912 := z.EncBasicHandle().StructToArray + var yyq1912 [2]bool + _, _, _ = yysep1912, yyq1912, yy2arr1912 + const yyr1912 bool = false + yyq1912[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 + yyq1912[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 + var yynn1912 int + if yyr1912 || yy2arr1912 { r.EncodeArrayStart(2) } else { - yynn1766 = 0 - for _, b := range yyq1766 { + yynn1912 = 0 + for _, b := range yyq1912 { if b { - yynn1766++ + yynn1912++ } } - r.EncodeMapStart(yynn1766) - yynn1766 = 0 + r.EncodeMapStart(yynn1912) + yynn1912 = 0 } - if yyr1766 || yy2arr1766 { + if yyr1912 || yy2arr1912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1766[0] { + if yyq1912[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1768 := z.EncBinary() - _ = yym1768 + yym1914 := z.EncBinary() + _ = yym1914 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -24172,15 +25928,15 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1766[0] { + if yyq1912[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1769 := z.EncBinary() - _ = yym1769 + yym1915 := z.EncBinary() + _ = yym1915 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -24188,14 +25944,14 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1766 || yy2arr1766 { + if yyr1912 || yy2arr1912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1766[1] { + if yyq1912[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1771 := z.EncBinary() - _ = yym1771 + yym1917 := z.EncBinary() + _ = yym1917 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -24205,15 +25961,15 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1766[1] { + if yyq1912[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1772 := z.EncBinary() - _ = yym1772 + yym1918 := z.EncBinary() + _ = yym1918 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -24221,7 +25977,7 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1766 || yy2arr1766 { + if yyr1912 || yy2arr1912 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -24234,25 +25990,25 @@ func (x *PodAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1773 := z.DecBinary() - _ = yym1773 + yym1919 := z.DecBinary() + _ = yym1919 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1774 := r.ContainerType() - if yyct1774 == codecSelferValueTypeMap1234 { - yyl1774 := r.ReadMapStart() - if yyl1774 == 0 { + yyct1920 := r.ContainerType() + if yyct1920 == codecSelferValueTypeMap1234 { + yyl1920 := r.ReadMapStart() + if yyl1920 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1774, d) + x.codecDecodeSelfFromMap(yyl1920, d) } - } else if yyct1774 == codecSelferValueTypeArray1234 { - yyl1774 := r.ReadArrayStart() - if yyl1774 == 0 { + } else if yyct1920 == codecSelferValueTypeArray1234 { + yyl1920 := r.ReadArrayStart() + if yyl1920 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1774, d) + x.codecDecodeSelfFromArray(yyl1920, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -24264,12 +26020,12 @@ func (x *PodAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1775Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1775Slc - var yyhl1775 bool = l >= 0 - for yyj1775 := 0; ; yyj1775++ { - if yyhl1775 { - if yyj1775 >= l { + var yys1921Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1921Slc + var yyhl1921 bool = l >= 0 + for yyj1921 := 0; ; yyj1921++ { + if yyhl1921 { + if yyj1921 >= l { break } } else { @@ -24278,38 +26034,38 @@ func (x *PodAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1775Slc = r.DecodeBytes(yys1775Slc, true, true) - yys1775 := string(yys1775Slc) + yys1921Slc = r.DecodeBytes(yys1921Slc, true, true) + yys1921 := string(yys1921Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1775 { + switch yys1921 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1776 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1777 := z.DecBinary() - _ = yym1777 + yyv1922 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1923 := z.DecBinary() + _ = yym1923 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1776), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1922), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1778 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1779 := z.DecBinary() - _ = yym1779 + yyv1924 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1925 := z.DecBinary() + _ = yym1925 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1778), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1924), d) } } default: - z.DecStructFieldNotFound(-1, yys1775) - } // end switch yys1775 - } // end for yyj1775 + z.DecStructFieldNotFound(-1, yys1921) + } // end switch yys1921 + } // end for yyj1921 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -24317,16 +26073,16 @@ func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1780 int - var yyb1780 bool - var yyhl1780 bool = l >= 0 - yyj1780++ - if yyhl1780 { - yyb1780 = yyj1780 > l + var yyj1926 int + var yyb1926 bool + var yyhl1926 bool = l >= 0 + yyj1926++ + if yyhl1926 { + yyb1926 = yyj1926 > l } else { - yyb1780 = r.CheckBreak() + yyb1926 = r.CheckBreak() } - if yyb1780 { + if yyb1926 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24334,21 +26090,21 @@ func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1781 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1782 := z.DecBinary() - _ = yym1782 + yyv1927 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1928 := z.DecBinary() + _ = yym1928 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1781), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1927), d) } } - yyj1780++ - if yyhl1780 { - yyb1780 = yyj1780 > l + yyj1926++ + if yyhl1926 { + yyb1926 = yyj1926 > l } else { - yyb1780 = r.CheckBreak() + yyb1926 = r.CheckBreak() } - if yyb1780 { + if yyb1926 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24356,26 +26112,26 @@ func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1783 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1784 := z.DecBinary() - _ = yym1784 + yyv1929 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1930 := z.DecBinary() + _ = yym1930 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1783), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1929), d) } } for { - yyj1780++ - if yyhl1780 { - yyb1780 = yyj1780 > l + yyj1926++ + if yyhl1926 { + yyb1926 = yyj1926 > l } else { - yyb1780 = r.CheckBreak() + yyb1926 = r.CheckBreak() } - if yyb1780 { + if yyb1926 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1780-1, "") + z.DecStructFieldNotFound(yyj1926-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24387,39 +26143,39 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1785 := z.EncBinary() - _ = yym1785 + yym1931 := z.EncBinary() + _ = yym1931 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1786 := !z.EncBinary() - yy2arr1786 := z.EncBasicHandle().StructToArray - var yyq1786 [2]bool - _, _, _ = yysep1786, yyq1786, yy2arr1786 - const yyr1786 bool = false - yyq1786[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 - yyq1786[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 - var yynn1786 int - if yyr1786 || yy2arr1786 { + yysep1932 := !z.EncBinary() + yy2arr1932 := z.EncBasicHandle().StructToArray + var yyq1932 [2]bool + _, _, _ = yysep1932, yyq1932, yy2arr1932 + const yyr1932 bool = false + yyq1932[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 + yyq1932[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 + var yynn1932 int + if yyr1932 || yy2arr1932 { r.EncodeArrayStart(2) } else { - yynn1786 = 0 - for _, b := range yyq1786 { + yynn1932 = 0 + for _, b := range yyq1932 { if b { - yynn1786++ + yynn1932++ } } - r.EncodeMapStart(yynn1786) - yynn1786 = 0 + r.EncodeMapStart(yynn1932) + yynn1932 = 0 } - if yyr1786 || yy2arr1786 { + if yyr1932 || yy2arr1932 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1786[0] { + if yyq1932[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1788 := z.EncBinary() - _ = yym1788 + yym1934 := z.EncBinary() + _ = yym1934 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -24429,15 +26185,15 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1786[0] { + if yyq1932[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1789 := z.EncBinary() - _ = yym1789 + yym1935 := z.EncBinary() + _ = yym1935 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -24445,14 +26201,14 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1786 || yy2arr1786 { + if yyr1932 || yy2arr1932 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1786[1] { + if yyq1932[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1791 := z.EncBinary() - _ = yym1791 + yym1937 := z.EncBinary() + _ = yym1937 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -24462,15 +26218,15 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1786[1] { + if yyq1932[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1792 := z.EncBinary() - _ = yym1792 + yym1938 := z.EncBinary() + _ = yym1938 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -24478,7 +26234,7 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1786 || yy2arr1786 { + if yyr1932 || yy2arr1932 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -24491,25 +26247,25 @@ func (x *PodAntiAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1793 := z.DecBinary() - _ = yym1793 + yym1939 := z.DecBinary() + _ = yym1939 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1794 := r.ContainerType() - if yyct1794 == codecSelferValueTypeMap1234 { - yyl1794 := r.ReadMapStart() - if yyl1794 == 0 { + yyct1940 := r.ContainerType() + if yyct1940 == codecSelferValueTypeMap1234 { + yyl1940 := r.ReadMapStart() + if yyl1940 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1794, d) + x.codecDecodeSelfFromMap(yyl1940, d) } - } else if yyct1794 == codecSelferValueTypeArray1234 { - yyl1794 := r.ReadArrayStart() - if yyl1794 == 0 { + } else if yyct1940 == codecSelferValueTypeArray1234 { + yyl1940 := r.ReadArrayStart() + if yyl1940 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1794, d) + x.codecDecodeSelfFromArray(yyl1940, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -24521,12 +26277,12 @@ func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1795Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1795Slc - var yyhl1795 bool = l >= 0 - for yyj1795 := 0; ; yyj1795++ { - if yyhl1795 { - if yyj1795 >= l { + var yys1941Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1941Slc + var yyhl1941 bool = l >= 0 + for yyj1941 := 0; ; yyj1941++ { + if yyhl1941 { + if yyj1941 >= l { break } } else { @@ -24535,38 +26291,38 @@ func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1795Slc = r.DecodeBytes(yys1795Slc, true, true) - yys1795 := string(yys1795Slc) + yys1941Slc = r.DecodeBytes(yys1941Slc, true, true) + yys1941 := string(yys1941Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1795 { + switch yys1941 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1796 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1797 := z.DecBinary() - _ = yym1797 + yyv1942 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1943 := z.DecBinary() + _ = yym1943 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1796), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1942), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1798 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1799 := z.DecBinary() - _ = yym1799 + yyv1944 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1945 := z.DecBinary() + _ = yym1945 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1798), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1944), d) } } default: - z.DecStructFieldNotFound(-1, yys1795) - } // end switch yys1795 - } // end for yyj1795 + z.DecStructFieldNotFound(-1, yys1941) + } // end switch yys1941 + } // end for yyj1941 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -24574,16 +26330,16 @@ func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1800 int - var yyb1800 bool - var yyhl1800 bool = l >= 0 - yyj1800++ - if yyhl1800 { - yyb1800 = yyj1800 > l + var yyj1946 int + var yyb1946 bool + var yyhl1946 bool = l >= 0 + yyj1946++ + if yyhl1946 { + yyb1946 = yyj1946 > l } else { - yyb1800 = r.CheckBreak() + yyb1946 = r.CheckBreak() } - if yyb1800 { + if yyb1946 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24591,21 +26347,21 @@ func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1801 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1802 := z.DecBinary() - _ = yym1802 + yyv1947 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1948 := z.DecBinary() + _ = yym1948 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1801), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1947), d) } } - yyj1800++ - if yyhl1800 { - yyb1800 = yyj1800 > l + yyj1946++ + if yyhl1946 { + yyb1946 = yyj1946 > l } else { - yyb1800 = r.CheckBreak() + yyb1946 = r.CheckBreak() } - if yyb1800 { + if yyb1946 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24613,26 +26369,26 @@ func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1803 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1804 := z.DecBinary() - _ = yym1804 + yyv1949 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1950 := z.DecBinary() + _ = yym1950 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1803), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1949), d) } } for { - yyj1800++ - if yyhl1800 { - yyb1800 = yyj1800 > l + yyj1946++ + if yyhl1946 { + yyb1946 = yyj1946 > l } else { - yyb1800 = r.CheckBreak() + yyb1946 = r.CheckBreak() } - if yyb1800 { + if yyb1946 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1800-1, "") + z.DecStructFieldNotFound(yyj1946-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24644,33 +26400,33 @@ func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1805 := z.EncBinary() - _ = yym1805 + yym1951 := z.EncBinary() + _ = yym1951 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1806 := !z.EncBinary() - yy2arr1806 := z.EncBasicHandle().StructToArray - var yyq1806 [2]bool - _, _, _ = yysep1806, yyq1806, yy2arr1806 - const yyr1806 bool = false - var yynn1806 int - if yyr1806 || yy2arr1806 { + yysep1952 := !z.EncBinary() + yy2arr1952 := z.EncBasicHandle().StructToArray + var yyq1952 [2]bool + _, _, _ = yysep1952, yyq1952, yy2arr1952 + const yyr1952 bool = false + var yynn1952 int + if yyr1952 || yy2arr1952 { r.EncodeArrayStart(2) } else { - yynn1806 = 2 - for _, b := range yyq1806 { + yynn1952 = 2 + for _, b := range yyq1952 { if b { - yynn1806++ + yynn1952++ } } - r.EncodeMapStart(yynn1806) - yynn1806 = 0 + r.EncodeMapStart(yynn1952) + yynn1952 = 0 } - if yyr1806 || yy2arr1806 { + if yyr1952 || yy2arr1952 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1808 := z.EncBinary() - _ = yym1808 + yym1954 := z.EncBinary() + _ = yym1954 if false { } else { r.EncodeInt(int64(x.Weight)) @@ -24679,25 +26435,25 @@ func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1809 := z.EncBinary() - _ = yym1809 + yym1955 := z.EncBinary() + _ = yym1955 if false { } else { r.EncodeInt(int64(x.Weight)) } } - if yyr1806 || yy2arr1806 { + if yyr1952 || yy2arr1952 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1811 := &x.PodAffinityTerm - yy1811.CodecEncodeSelf(e) + yy1957 := &x.PodAffinityTerm + yy1957.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1812 := &x.PodAffinityTerm - yy1812.CodecEncodeSelf(e) + yy1958 := &x.PodAffinityTerm + yy1958.CodecEncodeSelf(e) } - if yyr1806 || yy2arr1806 { + if yyr1952 || yy2arr1952 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -24710,25 +26466,25 @@ func (x *WeightedPodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1813 := z.DecBinary() - _ = yym1813 + yym1959 := z.DecBinary() + _ = yym1959 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1814 := r.ContainerType() - if yyct1814 == codecSelferValueTypeMap1234 { - yyl1814 := r.ReadMapStart() - if yyl1814 == 0 { + yyct1960 := r.ContainerType() + if yyct1960 == codecSelferValueTypeMap1234 { + yyl1960 := r.ReadMapStart() + if yyl1960 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1814, d) + x.codecDecodeSelfFromMap(yyl1960, d) } - } else if yyct1814 == codecSelferValueTypeArray1234 { - yyl1814 := r.ReadArrayStart() - if yyl1814 == 0 { + } else if yyct1960 == codecSelferValueTypeArray1234 { + yyl1960 := r.ReadArrayStart() + if yyl1960 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1814, d) + x.codecDecodeSelfFromArray(yyl1960, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -24740,12 +26496,12 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1815Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1815Slc - var yyhl1815 bool = l >= 0 - for yyj1815 := 0; ; yyj1815++ { - if yyhl1815 { - if yyj1815 >= l { + var yys1961Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1961Slc + var yyhl1961 bool = l >= 0 + for yyj1961 := 0; ; yyj1961++ { + if yyhl1961 { + if yyj1961 >= l { break } } else { @@ -24754,10 +26510,10 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1815Slc = r.DecodeBytes(yys1815Slc, true, true) - yys1815 := string(yys1815Slc) + yys1961Slc = r.DecodeBytes(yys1961Slc, true, true) + yys1961 := string(yys1961Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1815 { + switch yys1961 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 @@ -24768,13 +26524,13 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.PodAffinityTerm = PodAffinityTerm{} } else { - yyv1817 := &x.PodAffinityTerm - yyv1817.CodecDecodeSelf(d) + yyv1963 := &x.PodAffinityTerm + yyv1963.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1815) - } // end switch yys1815 - } // end for yyj1815 + z.DecStructFieldNotFound(-1, yys1961) + } // end switch yys1961 + } // end for yyj1961 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -24782,16 +26538,16 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1818 int - var yyb1818 bool - var yyhl1818 bool = l >= 0 - yyj1818++ - if yyhl1818 { - yyb1818 = yyj1818 > l + var yyj1964 int + var yyb1964 bool + var yyhl1964 bool = l >= 0 + yyj1964++ + if yyhl1964 { + yyb1964 = yyj1964 > l } else { - yyb1818 = r.CheckBreak() + yyb1964 = r.CheckBreak() } - if yyb1818 { + if yyb1964 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24801,13 +26557,13 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) } - yyj1818++ - if yyhl1818 { - yyb1818 = yyj1818 > l + yyj1964++ + if yyhl1964 { + yyb1964 = yyj1964 > l } else { - yyb1818 = r.CheckBreak() + yyb1964 = r.CheckBreak() } - if yyb1818 { + if yyb1964 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24815,21 +26571,21 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.PodAffinityTerm = PodAffinityTerm{} } else { - yyv1820 := &x.PodAffinityTerm - yyv1820.CodecDecodeSelf(d) + yyv1966 := &x.PodAffinityTerm + yyv1966.CodecDecodeSelf(d) } for { - yyj1818++ - if yyhl1818 { - yyb1818 = yyj1818 > l + yyj1964++ + if yyhl1964 { + yyb1964 = yyj1964 > l } else { - yyb1818 = r.CheckBreak() + yyb1964 = r.CheckBreak() } - if yyb1818 { + if yyb1964 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1818-1, "") + z.DecStructFieldNotFound(yyj1964-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24841,39 +26597,39 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1821 := z.EncBinary() - _ = yym1821 + yym1967 := z.EncBinary() + _ = yym1967 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1822 := !z.EncBinary() - yy2arr1822 := z.EncBasicHandle().StructToArray - var yyq1822 [3]bool - _, _, _ = yysep1822, yyq1822, yy2arr1822 - const yyr1822 bool = false - yyq1822[0] = x.LabelSelector != nil - yyq1822[2] = x.TopologyKey != "" - var yynn1822 int - if yyr1822 || yy2arr1822 { + yysep1968 := !z.EncBinary() + yy2arr1968 := z.EncBasicHandle().StructToArray + var yyq1968 [3]bool + _, _, _ = yysep1968, yyq1968, yy2arr1968 + const yyr1968 bool = false + yyq1968[0] = x.LabelSelector != nil + yyq1968[2] = x.TopologyKey != "" + var yynn1968 int + if yyr1968 || yy2arr1968 { r.EncodeArrayStart(3) } else { - yynn1822 = 1 - for _, b := range yyq1822 { + yynn1968 = 1 + for _, b := range yyq1968 { if b { - yynn1822++ + yynn1968++ } } - r.EncodeMapStart(yynn1822) - yynn1822 = 0 + r.EncodeMapStart(yynn1968) + yynn1968 = 0 } - if yyr1822 || yy2arr1822 { + if yyr1968 || yy2arr1968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1822[0] { + if yyq1968[0] { if x.LabelSelector == nil { r.EncodeNil() } else { - yym1824 := z.EncBinary() - _ = yym1824 + yym1970 := z.EncBinary() + _ = yym1970 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { @@ -24884,15 +26640,15 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1822[0] { + if yyq1968[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LabelSelector == nil { r.EncodeNil() } else { - yym1825 := z.EncBinary() - _ = yym1825 + yym1971 := z.EncBinary() + _ = yym1971 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { @@ -24901,13 +26657,13 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1822 || yy2arr1822 { + if yyr1968 || yy2arr1968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Namespaces == nil { r.EncodeNil() } else { - yym1827 := z.EncBinary() - _ = yym1827 + yym1973 := z.EncBinary() + _ = yym1973 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) @@ -24920,19 +26676,19 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x.Namespaces == nil { r.EncodeNil() } else { - yym1828 := z.EncBinary() - _ = yym1828 + yym1974 := z.EncBinary() + _ = yym1974 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) } } } - if yyr1822 || yy2arr1822 { + if yyr1968 || yy2arr1968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1822[2] { - yym1830 := z.EncBinary() - _ = yym1830 + if yyq1968[2] { + yym1976 := z.EncBinary() + _ = yym1976 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) @@ -24941,19 +26697,19 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1822[2] { + if yyq1968[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("topologyKey")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1831 := z.EncBinary() - _ = yym1831 + yym1977 := z.EncBinary() + _ = yym1977 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) } } } - if yyr1822 || yy2arr1822 { + if yyr1968 || yy2arr1968 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -24966,25 +26722,25 @@ func (x *PodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1832 := z.DecBinary() - _ = yym1832 + yym1978 := z.DecBinary() + _ = yym1978 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1833 := r.ContainerType() - if yyct1833 == codecSelferValueTypeMap1234 { - yyl1833 := r.ReadMapStart() - if yyl1833 == 0 { + yyct1979 := r.ContainerType() + if yyct1979 == codecSelferValueTypeMap1234 { + yyl1979 := r.ReadMapStart() + if yyl1979 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1833, d) + x.codecDecodeSelfFromMap(yyl1979, d) } - } else if yyct1833 == codecSelferValueTypeArray1234 { - yyl1833 := r.ReadArrayStart() - if yyl1833 == 0 { + } else if yyct1979 == codecSelferValueTypeArray1234 { + yyl1979 := r.ReadArrayStart() + if yyl1979 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1833, d) + x.codecDecodeSelfFromArray(yyl1979, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -24996,12 +26752,12 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1834Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1834Slc - var yyhl1834 bool = l >= 0 - for yyj1834 := 0; ; yyj1834++ { - if yyhl1834 { - if yyj1834 >= l { + var yys1980Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1980Slc + var yyhl1980 bool = l >= 0 + for yyj1980 := 0; ; yyj1980++ { + if yyhl1980 { + if yyj1980 >= l { break } } else { @@ -25010,10 +26766,10 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1834Slc = r.DecodeBytes(yys1834Slc, true, true) - yys1834 := string(yys1834Slc) + yys1980Slc = r.DecodeBytes(yys1980Slc, true, true) + yys1980 := string(yys1980Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1834 { + switch yys1980 { case "labelSelector": if r.TryDecodeAsNil() { if x.LabelSelector != nil { @@ -25023,8 +26779,8 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.LabelSelector == nil { x.LabelSelector = new(pkg2_unversioned.LabelSelector) } - yym1836 := z.DecBinary() - _ = yym1836 + yym1982 := z.DecBinary() + _ = yym1982 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { @@ -25035,12 +26791,12 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Namespaces = nil } else { - yyv1837 := &x.Namespaces - yym1838 := z.DecBinary() - _ = yym1838 + yyv1983 := &x.Namespaces + yym1984 := z.DecBinary() + _ = yym1984 if false { } else { - z.F.DecSliceStringX(yyv1837, false, d) + z.F.DecSliceStringX(yyv1983, false, d) } } case "topologyKey": @@ -25050,9 +26806,9 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TopologyKey = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1834) - } // end switch yys1834 - } // end for yyj1834 + z.DecStructFieldNotFound(-1, yys1980) + } // end switch yys1980 + } // end for yyj1980 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -25060,16 +26816,16 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1840 int - var yyb1840 bool - var yyhl1840 bool = l >= 0 - yyj1840++ - if yyhl1840 { - yyb1840 = yyj1840 > l + var yyj1986 int + var yyb1986 bool + var yyhl1986 bool = l >= 0 + yyj1986++ + if yyhl1986 { + yyb1986 = yyj1986 > l } else { - yyb1840 = r.CheckBreak() + yyb1986 = r.CheckBreak() } - if yyb1840 { + if yyb1986 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25082,21 +26838,21 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.LabelSelector == nil { x.LabelSelector = new(pkg2_unversioned.LabelSelector) } - yym1842 := z.DecBinary() - _ = yym1842 + yym1988 := z.DecBinary() + _ = yym1988 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { z.DecFallback(x.LabelSelector, false) } } - yyj1840++ - if yyhl1840 { - yyb1840 = yyj1840 > l + yyj1986++ + if yyhl1986 { + yyb1986 = yyj1986 > l } else { - yyb1840 = r.CheckBreak() + yyb1986 = r.CheckBreak() } - if yyb1840 { + if yyb1986 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25104,21 +26860,21 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Namespaces = nil } else { - yyv1843 := &x.Namespaces - yym1844 := z.DecBinary() - _ = yym1844 + yyv1989 := &x.Namespaces + yym1990 := z.DecBinary() + _ = yym1990 if false { } else { - z.F.DecSliceStringX(yyv1843, false, d) + z.F.DecSliceStringX(yyv1989, false, d) } } - yyj1840++ - if yyhl1840 { - yyb1840 = yyj1840 > l + yyj1986++ + if yyhl1986 { + yyb1986 = yyj1986 > l } else { - yyb1840 = r.CheckBreak() + yyb1986 = r.CheckBreak() } - if yyb1840 { + if yyb1986 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25129,17 +26885,17 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.TopologyKey = string(r.DecodeString()) } for { - yyj1840++ - if yyhl1840 { - yyb1840 = yyj1840 > l + yyj1986++ + if yyhl1986 { + yyb1986 = yyj1986 > l } else { - yyb1840 = r.CheckBreak() + yyb1986 = r.CheckBreak() } - if yyb1840 { + if yyb1986 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1840-1, "") + z.DecStructFieldNotFound(yyj1986-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -25151,34 +26907,34 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1846 := z.EncBinary() - _ = yym1846 + yym1992 := z.EncBinary() + _ = yym1992 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1847 := !z.EncBinary() - yy2arr1847 := z.EncBasicHandle().StructToArray - var yyq1847 [2]bool - _, _, _ = yysep1847, yyq1847, yy2arr1847 - const yyr1847 bool = false - yyq1847[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil - yyq1847[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 - var yynn1847 int - if yyr1847 || yy2arr1847 { + yysep1993 := !z.EncBinary() + yy2arr1993 := z.EncBasicHandle().StructToArray + var yyq1993 [2]bool + _, _, _ = yysep1993, yyq1993, yy2arr1993 + const yyr1993 bool = false + yyq1993[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil + yyq1993[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 + var yynn1993 int + if yyr1993 || yy2arr1993 { r.EncodeArrayStart(2) } else { - yynn1847 = 0 - for _, b := range yyq1847 { + yynn1993 = 0 + for _, b := range yyq1993 { if b { - yynn1847++ + yynn1993++ } } - r.EncodeMapStart(yynn1847) - yynn1847 = 0 + r.EncodeMapStart(yynn1993) + yynn1993 = 0 } - if yyr1847 || yy2arr1847 { + if yyr1993 || yy2arr1993 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1847[0] { + if yyq1993[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { @@ -25188,7 +26944,7 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1847[0] { + if yyq1993[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -25199,14 +26955,14 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1847 || yy2arr1847 { + if yyr1993 || yy2arr1993 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1847[1] { + if yyq1993[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1850 := z.EncBinary() - _ = yym1850 + yym1996 := z.EncBinary() + _ = yym1996 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -25216,15 +26972,15 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1847[1] { + if yyq1993[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1851 := z.EncBinary() - _ = yym1851 + yym1997 := z.EncBinary() + _ = yym1997 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -25232,7 +26988,7 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1847 || yy2arr1847 { + if yyr1993 || yy2arr1993 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25245,25 +27001,25 @@ func (x *NodeAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1852 := z.DecBinary() - _ = yym1852 + yym1998 := z.DecBinary() + _ = yym1998 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1853 := r.ContainerType() - if yyct1853 == codecSelferValueTypeMap1234 { - yyl1853 := r.ReadMapStart() - if yyl1853 == 0 { + yyct1999 := r.ContainerType() + if yyct1999 == codecSelferValueTypeMap1234 { + yyl1999 := r.ReadMapStart() + if yyl1999 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1853, d) + x.codecDecodeSelfFromMap(yyl1999, d) } - } else if yyct1853 == codecSelferValueTypeArray1234 { - yyl1853 := r.ReadArrayStart() - if yyl1853 == 0 { + } else if yyct1999 == codecSelferValueTypeArray1234 { + yyl1999 := r.ReadArrayStart() + if yyl1999 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1853, d) + x.codecDecodeSelfFromArray(yyl1999, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -25275,12 +27031,12 @@ func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1854Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1854Slc - var yyhl1854 bool = l >= 0 - for yyj1854 := 0; ; yyj1854++ { - if yyhl1854 { - if yyj1854 >= l { + var yys2000Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2000Slc + var yyhl2000 bool = l >= 0 + for yyj2000 := 0; ; yyj2000++ { + if yyhl2000 { + if yyj2000 >= l { break } } else { @@ -25289,10 +27045,10 @@ func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1854Slc = r.DecodeBytes(yys1854Slc, true, true) - yys1854 := string(yys1854Slc) + yys2000Slc = r.DecodeBytes(yys2000Slc, true, true) + yys2000 := string(yys2000Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1854 { + switch yys2000 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { @@ -25308,18 +27064,18 @@ func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1856 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1857 := z.DecBinary() - _ = yym1857 + yyv2002 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym2003 := z.DecBinary() + _ = yym2003 if false { } else { - h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1856), d) + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2002), d) } } default: - z.DecStructFieldNotFound(-1, yys1854) - } // end switch yys1854 - } // end for yyj1854 + z.DecStructFieldNotFound(-1, yys2000) + } // end switch yys2000 + } // end for yyj2000 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -25327,16 +27083,16 @@ func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1858 int - var yyb1858 bool - var yyhl1858 bool = l >= 0 - yyj1858++ - if yyhl1858 { - yyb1858 = yyj1858 > l + var yyj2004 int + var yyb2004 bool + var yyhl2004 bool = l >= 0 + yyj2004++ + if yyhl2004 { + yyb2004 = yyj2004 > l } else { - yyb1858 = r.CheckBreak() + yyb2004 = r.CheckBreak() } - if yyb1858 { + if yyb2004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25351,13 +27107,13 @@ func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) } - yyj1858++ - if yyhl1858 { - yyb1858 = yyj1858 > l + yyj2004++ + if yyhl2004 { + yyb2004 = yyj2004 > l } else { - yyb1858 = r.CheckBreak() + yyb2004 = r.CheckBreak() } - if yyb1858 { + if yyb2004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25365,26 +27121,26 @@ func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1860 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1861 := z.DecBinary() - _ = yym1861 + yyv2006 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym2007 := z.DecBinary() + _ = yym2007 if false { } else { - h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1860), d) + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2006), d) } } for { - yyj1858++ - if yyhl1858 { - yyb1858 = yyj1858 > l + yyj2004++ + if yyhl2004 { + yyb2004 = yyj2004 > l } else { - yyb1858 = r.CheckBreak() + yyb2004 = r.CheckBreak() } - if yyb1858 { + if yyb2004 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1858-1, "") + z.DecStructFieldNotFound(yyj2004-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -25396,33 +27152,33 @@ func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1862 := z.EncBinary() - _ = yym1862 + yym2008 := z.EncBinary() + _ = yym2008 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1863 := !z.EncBinary() - yy2arr1863 := z.EncBasicHandle().StructToArray - var yyq1863 [2]bool - _, _, _ = yysep1863, yyq1863, yy2arr1863 - const yyr1863 bool = false - var yynn1863 int - if yyr1863 || yy2arr1863 { + yysep2009 := !z.EncBinary() + yy2arr2009 := z.EncBasicHandle().StructToArray + var yyq2009 [2]bool + _, _, _ = yysep2009, yyq2009, yy2arr2009 + const yyr2009 bool = false + var yynn2009 int + if yyr2009 || yy2arr2009 { r.EncodeArrayStart(2) } else { - yynn1863 = 2 - for _, b := range yyq1863 { + yynn2009 = 2 + for _, b := range yyq2009 { if b { - yynn1863++ + yynn2009++ } } - r.EncodeMapStart(yynn1863) - yynn1863 = 0 + r.EncodeMapStart(yynn2009) + yynn2009 = 0 } - if yyr1863 || yy2arr1863 { + if yyr2009 || yy2arr2009 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1865 := z.EncBinary() - _ = yym1865 + yym2011 := z.EncBinary() + _ = yym2011 if false { } else { r.EncodeInt(int64(x.Weight)) @@ -25431,25 +27187,25 @@ func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1866 := z.EncBinary() - _ = yym1866 + yym2012 := z.EncBinary() + _ = yym2012 if false { } else { r.EncodeInt(int64(x.Weight)) } } - if yyr1863 || yy2arr1863 { + if yyr2009 || yy2arr2009 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1868 := &x.Preference - yy1868.CodecEncodeSelf(e) + yy2014 := &x.Preference + yy2014.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1869 := &x.Preference - yy1869.CodecEncodeSelf(e) + yy2015 := &x.Preference + yy2015.CodecEncodeSelf(e) } - if yyr1863 || yy2arr1863 { + if yyr2009 || yy2arr2009 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25462,25 +27218,25 @@ func (x *PreferredSchedulingTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1870 := z.DecBinary() - _ = yym1870 + yym2016 := z.DecBinary() + _ = yym2016 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1871 := r.ContainerType() - if yyct1871 == codecSelferValueTypeMap1234 { - yyl1871 := r.ReadMapStart() - if yyl1871 == 0 { + yyct2017 := r.ContainerType() + if yyct2017 == codecSelferValueTypeMap1234 { + yyl2017 := r.ReadMapStart() + if yyl2017 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1871, d) + x.codecDecodeSelfFromMap(yyl2017, d) } - } else if yyct1871 == codecSelferValueTypeArray1234 { - yyl1871 := r.ReadArrayStart() - if yyl1871 == 0 { + } else if yyct2017 == codecSelferValueTypeArray1234 { + yyl2017 := r.ReadArrayStart() + if yyl2017 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1871, d) + x.codecDecodeSelfFromArray(yyl2017, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -25492,12 +27248,12 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1872Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1872Slc - var yyhl1872 bool = l >= 0 - for yyj1872 := 0; ; yyj1872++ { - if yyhl1872 { - if yyj1872 >= l { + var yys2018Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2018Slc + var yyhl2018 bool = l >= 0 + for yyj2018 := 0; ; yyj2018++ { + if yyhl2018 { + if yyj2018 >= l { break } } else { @@ -25506,10 +27262,10 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1872Slc = r.DecodeBytes(yys1872Slc, true, true) - yys1872 := string(yys1872Slc) + yys2018Slc = r.DecodeBytes(yys2018Slc, true, true) + yys2018 := string(yys2018Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1872 { + switch yys2018 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 @@ -25520,13 +27276,13 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { - yyv1874 := &x.Preference - yyv1874.CodecDecodeSelf(d) + yyv2020 := &x.Preference + yyv2020.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1872) - } // end switch yys1872 - } // end for yyj1872 + z.DecStructFieldNotFound(-1, yys2018) + } // end switch yys2018 + } // end for yyj2018 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -25534,16 +27290,16 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1875 int - var yyb1875 bool - var yyhl1875 bool = l >= 0 - yyj1875++ - if yyhl1875 { - yyb1875 = yyj1875 > l + var yyj2021 int + var yyb2021 bool + var yyhl2021 bool = l >= 0 + yyj2021++ + if yyhl2021 { + yyb2021 = yyj2021 > l } else { - yyb1875 = r.CheckBreak() + yyb2021 = r.CheckBreak() } - if yyb1875 { + if yyb2021 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25553,13 +27309,13 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Weight = int32(r.DecodeInt(32)) } - yyj1875++ - if yyhl1875 { - yyb1875 = yyj1875 > l + yyj2021++ + if yyhl2021 { + yyb2021 = yyj2021 > l } else { - yyb1875 = r.CheckBreak() + yyb2021 = r.CheckBreak() } - if yyb1875 { + if yyb2021 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25567,21 +27323,21 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { - yyv1877 := &x.Preference - yyv1877.CodecDecodeSelf(d) + yyv2023 := &x.Preference + yyv2023.CodecDecodeSelf(d) } for { - yyj1875++ - if yyhl1875 { - yyb1875 = yyj1875 > l + yyj2021++ + if yyhl2021 { + yyb2021 = yyj2021 > l } else { - yyb1875 = r.CheckBreak() + yyb2021 = r.CheckBreak() } - if yyb1875 { + if yyb2021 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1875-1, "") + z.DecStructFieldNotFound(yyj2021-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -25593,34 +27349,34 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1878 := z.EncBinary() - _ = yym1878 + yym2024 := z.EncBinary() + _ = yym2024 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1879 := !z.EncBinary() - yy2arr1879 := z.EncBasicHandle().StructToArray - var yyq1879 [3]bool - _, _, _ = yysep1879, yyq1879, yy2arr1879 - const yyr1879 bool = false - yyq1879[1] = x.Value != "" - var yynn1879 int - if yyr1879 || yy2arr1879 { + yysep2025 := !z.EncBinary() + yy2arr2025 := z.EncBasicHandle().StructToArray + var yyq2025 [3]bool + _, _, _ = yysep2025, yyq2025, yy2arr2025 + const yyr2025 bool = false + yyq2025[1] = x.Value != "" + var yynn2025 int + if yyr2025 || yy2arr2025 { r.EncodeArrayStart(3) } else { - yynn1879 = 2 - for _, b := range yyq1879 { + yynn2025 = 2 + for _, b := range yyq2025 { if b { - yynn1879++ + yynn2025++ } } - r.EncodeMapStart(yynn1879) - yynn1879 = 0 + r.EncodeMapStart(yynn2025) + yynn2025 = 0 } - if yyr1879 || yy2arr1879 { + if yyr2025 || yy2arr2025 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1881 := z.EncBinary() - _ = yym1881 + yym2027 := z.EncBinary() + _ = yym2027 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -25629,18 +27385,18 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1882 := z.EncBinary() - _ = yym1882 + yym2028 := z.EncBinary() + _ = yym2028 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1879 || yy2arr1879 { + if yyr2025 || yy2arr2025 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1879[1] { - yym1884 := z.EncBinary() - _ = yym1884 + if yyq2025[1] { + yym2030 := z.EncBinary() + _ = yym2030 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -25649,19 +27405,19 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1879[1] { + if yyq2025[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1885 := z.EncBinary() - _ = yym1885 + yym2031 := z.EncBinary() + _ = yym2031 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr1879 || yy2arr1879 { + if yyr2025 || yy2arr2025 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Effect.CodecEncodeSelf(e) } else { @@ -25670,7 +27426,7 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } - if yyr1879 || yy2arr1879 { + if yyr2025 || yy2arr2025 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25683,25 +27439,25 @@ func (x *Taint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1887 := z.DecBinary() - _ = yym1887 + yym2033 := z.DecBinary() + _ = yym2033 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1888 := r.ContainerType() - if yyct1888 == codecSelferValueTypeMap1234 { - yyl1888 := r.ReadMapStart() - if yyl1888 == 0 { + yyct2034 := r.ContainerType() + if yyct2034 == codecSelferValueTypeMap1234 { + yyl2034 := r.ReadMapStart() + if yyl2034 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1888, d) + x.codecDecodeSelfFromMap(yyl2034, d) } - } else if yyct1888 == codecSelferValueTypeArray1234 { - yyl1888 := r.ReadArrayStart() - if yyl1888 == 0 { + } else if yyct2034 == codecSelferValueTypeArray1234 { + yyl2034 := r.ReadArrayStart() + if yyl2034 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1888, d) + x.codecDecodeSelfFromArray(yyl2034, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -25713,12 +27469,12 @@ func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1889Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1889Slc - var yyhl1889 bool = l >= 0 - for yyj1889 := 0; ; yyj1889++ { - if yyhl1889 { - if yyj1889 >= l { + var yys2035Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2035Slc + var yyhl2035 bool = l >= 0 + for yyj2035 := 0; ; yyj2035++ { + if yyhl2035 { + if yyj2035 >= l { break } } else { @@ -25727,10 +27483,10 @@ func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1889Slc = r.DecodeBytes(yys1889Slc, true, true) - yys1889 := string(yys1889Slc) + yys2035Slc = r.DecodeBytes(yys2035Slc, true, true) + yys2035 := string(yys2035Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1889 { + switch yys2035 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -25750,9 +27506,9 @@ func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1889) - } // end switch yys1889 - } // end for yyj1889 + z.DecStructFieldNotFound(-1, yys2035) + } // end switch yys2035 + } // end for yyj2035 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -25760,16 +27516,16 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1893 int - var yyb1893 bool - var yyhl1893 bool = l >= 0 - yyj1893++ - if yyhl1893 { - yyb1893 = yyj1893 > l + var yyj2039 int + var yyb2039 bool + var yyhl2039 bool = l >= 0 + yyj2039++ + if yyhl2039 { + yyb2039 = yyj2039 > l } else { - yyb1893 = r.CheckBreak() + yyb2039 = r.CheckBreak() } - if yyb1893 { + if yyb2039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25779,13 +27535,13 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Key = string(r.DecodeString()) } - yyj1893++ - if yyhl1893 { - yyb1893 = yyj1893 > l + yyj2039++ + if yyhl2039 { + yyb2039 = yyj2039 > l } else { - yyb1893 = r.CheckBreak() + yyb2039 = r.CheckBreak() } - if yyb1893 { + if yyb2039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25795,13 +27551,13 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Value = string(r.DecodeString()) } - yyj1893++ - if yyhl1893 { - yyb1893 = yyj1893 > l + yyj2039++ + if yyhl2039 { + yyb2039 = yyj2039 > l } else { - yyb1893 = r.CheckBreak() + yyb2039 = r.CheckBreak() } - if yyb1893 { + if yyb2039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25812,17 +27568,17 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } for { - yyj1893++ - if yyhl1893 { - yyb1893 = yyj1893 > l + yyj2039++ + if yyhl2039 { + yyb2039 = yyj2039 > l } else { - yyb1893 = r.CheckBreak() + yyb2039 = r.CheckBreak() } - if yyb1893 { + if yyb2039 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1893-1, "") + z.DecStructFieldNotFound(yyj2039-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -25831,8 +27587,8 @@ func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1897 := z.EncBinary() - _ = yym1897 + yym2043 := z.EncBinary() + _ = yym2043 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -25844,8 +27600,8 @@ func (x *TaintEffect) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1898 := z.DecBinary() - _ = yym1898 + yym2044 := z.DecBinary() + _ = yym2044 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -25860,38 +27616,38 @@ func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1899 := z.EncBinary() - _ = yym1899 + yym2045 := z.EncBinary() + _ = yym2045 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1900 := !z.EncBinary() - yy2arr1900 := z.EncBasicHandle().StructToArray - var yyq1900 [4]bool - _, _, _ = yysep1900, yyq1900, yy2arr1900 - const yyr1900 bool = false - yyq1900[0] = x.Key != "" - yyq1900[1] = x.Operator != "" - yyq1900[2] = x.Value != "" - yyq1900[3] = x.Effect != "" - var yynn1900 int - if yyr1900 || yy2arr1900 { + yysep2046 := !z.EncBinary() + yy2arr2046 := z.EncBasicHandle().StructToArray + var yyq2046 [4]bool + _, _, _ = yysep2046, yyq2046, yy2arr2046 + const yyr2046 bool = false + yyq2046[0] = x.Key != "" + yyq2046[1] = x.Operator != "" + yyq2046[2] = x.Value != "" + yyq2046[3] = x.Effect != "" + var yynn2046 int + if yyr2046 || yy2arr2046 { r.EncodeArrayStart(4) } else { - yynn1900 = 0 - for _, b := range yyq1900 { + yynn2046 = 0 + for _, b := range yyq2046 { if b { - yynn1900++ + yynn2046++ } } - r.EncodeMapStart(yynn1900) - yynn1900 = 0 + r.EncodeMapStart(yynn2046) + yynn2046 = 0 } - if yyr1900 || yy2arr1900 { + if yyr2046 || yy2arr2046 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1900[0] { - yym1902 := z.EncBinary() - _ = yym1902 + if yyq2046[0] { + yym2048 := z.EncBinary() + _ = yym2048 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -25900,38 +27656,38 @@ func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1900[0] { + if yyq2046[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1903 := z.EncBinary() - _ = yym1903 + yym2049 := z.EncBinary() + _ = yym2049 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } } - if yyr1900 || yy2arr1900 { + if yyr2046 || yy2arr2046 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1900[1] { + if yyq2046[1] { x.Operator.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1900[1] { + if yyq2046[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operator")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } } - if yyr1900 || yy2arr1900 { + if yyr2046 || yy2arr2046 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1900[2] { - yym1906 := z.EncBinary() - _ = yym1906 + if yyq2046[2] { + yym2052 := z.EncBinary() + _ = yym2052 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -25940,34 +27696,34 @@ func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1900[2] { + if yyq2046[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1907 := z.EncBinary() - _ = yym1907 + yym2053 := z.EncBinary() + _ = yym2053 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr1900 || yy2arr1900 { + if yyr2046 || yy2arr2046 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1900[3] { + if yyq2046[3] { x.Effect.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1900[3] { + if yyq2046[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("effect")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } } - if yyr1900 || yy2arr1900 { + if yyr2046 || yy2arr2046 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25980,25 +27736,25 @@ func (x *Toleration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1909 := z.DecBinary() - _ = yym1909 + yym2055 := z.DecBinary() + _ = yym2055 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1910 := r.ContainerType() - if yyct1910 == codecSelferValueTypeMap1234 { - yyl1910 := r.ReadMapStart() - if yyl1910 == 0 { + yyct2056 := r.ContainerType() + if yyct2056 == codecSelferValueTypeMap1234 { + yyl2056 := r.ReadMapStart() + if yyl2056 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1910, d) + x.codecDecodeSelfFromMap(yyl2056, d) } - } else if yyct1910 == codecSelferValueTypeArray1234 { - yyl1910 := r.ReadArrayStart() - if yyl1910 == 0 { + } else if yyct2056 == codecSelferValueTypeArray1234 { + yyl2056 := r.ReadArrayStart() + if yyl2056 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1910, d) + x.codecDecodeSelfFromArray(yyl2056, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -26010,12 +27766,12 @@ func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1911Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1911Slc - var yyhl1911 bool = l >= 0 - for yyj1911 := 0; ; yyj1911++ { - if yyhl1911 { - if yyj1911 >= l { + var yys2057Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2057Slc + var yyhl2057 bool = l >= 0 + for yyj2057 := 0; ; yyj2057++ { + if yyhl2057 { + if yyj2057 >= l { break } } else { @@ -26024,10 +27780,10 @@ func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1911Slc = r.DecodeBytes(yys1911Slc, true, true) - yys1911 := string(yys1911Slc) + yys2057Slc = r.DecodeBytes(yys2057Slc, true, true) + yys2057 := string(yys2057Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1911 { + switch yys2057 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -26053,9 +27809,9 @@ func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1911) - } // end switch yys1911 - } // end for yyj1911 + z.DecStructFieldNotFound(-1, yys2057) + } // end switch yys2057 + } // end for yyj2057 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -26063,16 +27819,16 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1916 int - var yyb1916 bool - var yyhl1916 bool = l >= 0 - yyj1916++ - if yyhl1916 { - yyb1916 = yyj1916 > l + var yyj2062 int + var yyb2062 bool + var yyhl2062 bool = l >= 0 + yyj2062++ + if yyhl2062 { + yyb2062 = yyj2062 > l } else { - yyb1916 = r.CheckBreak() + yyb2062 = r.CheckBreak() } - if yyb1916 { + if yyb2062 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26082,13 +27838,13 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Key = string(r.DecodeString()) } - yyj1916++ - if yyhl1916 { - yyb1916 = yyj1916 > l + yyj2062++ + if yyhl2062 { + yyb2062 = yyj2062 > l } else { - yyb1916 = r.CheckBreak() + yyb2062 = r.CheckBreak() } - if yyb1916 { + if yyb2062 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26098,13 +27854,13 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Operator = TolerationOperator(r.DecodeString()) } - yyj1916++ - if yyhl1916 { - yyb1916 = yyj1916 > l + yyj2062++ + if yyhl2062 { + yyb2062 = yyj2062 > l } else { - yyb1916 = r.CheckBreak() + yyb2062 = r.CheckBreak() } - if yyb1916 { + if yyb2062 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26114,13 +27870,13 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Value = string(r.DecodeString()) } - yyj1916++ - if yyhl1916 { - yyb1916 = yyj1916 > l + yyj2062++ + if yyhl2062 { + yyb2062 = yyj2062 > l } else { - yyb1916 = r.CheckBreak() + yyb2062 = r.CheckBreak() } - if yyb1916 { + if yyb2062 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26131,17 +27887,17 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } for { - yyj1916++ - if yyhl1916 { - yyb1916 = yyj1916 > l + yyj2062++ + if yyhl2062 { + yyb2062 = yyj2062 > l } else { - yyb1916 = r.CheckBreak() + yyb2062 = r.CheckBreak() } - if yyb1916 { + if yyb2062 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1916-1, "") + z.DecStructFieldNotFound(yyj2062-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -26150,8 +27906,8 @@ func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1921 := z.EncBinary() - _ = yym1921 + yym2067 := z.EncBinary() + _ = yym2067 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -26163,8 +27919,8 @@ func (x *TolerationOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1922 := z.DecBinary() - _ = yym1922 + yym2068 := z.DecBinary() + _ = yym2068 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -26179,46 +27935,46 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1923 := z.EncBinary() - _ = yym1923 + yym2069 := z.EncBinary() + _ = yym2069 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1924 := !z.EncBinary() - yy2arr1924 := z.EncBasicHandle().StructToArray - var yyq1924 [13]bool - _, _, _ = yysep1924, yyq1924, yy2arr1924 - const yyr1924 bool = false - yyq1924[2] = x.RestartPolicy != "" - yyq1924[3] = x.TerminationGracePeriodSeconds != nil - yyq1924[4] = x.ActiveDeadlineSeconds != nil - yyq1924[5] = x.DNSPolicy != "" - yyq1924[6] = len(x.NodeSelector) != 0 - yyq1924[8] = x.NodeName != "" - yyq1924[9] = x.SecurityContext != nil - yyq1924[10] = len(x.ImagePullSecrets) != 0 - yyq1924[11] = x.Hostname != "" - yyq1924[12] = x.Subdomain != "" - var yynn1924 int - if yyr1924 || yy2arr1924 { + yysep2070 := !z.EncBinary() + yy2arr2070 := z.EncBasicHandle().StructToArray + var yyq2070 [13]bool + _, _, _ = yysep2070, yyq2070, yy2arr2070 + const yyr2070 bool = false + yyq2070[2] = x.RestartPolicy != "" + yyq2070[3] = x.TerminationGracePeriodSeconds != nil + yyq2070[4] = x.ActiveDeadlineSeconds != nil + yyq2070[5] = x.DNSPolicy != "" + yyq2070[6] = len(x.NodeSelector) != 0 + yyq2070[8] = x.NodeName != "" + yyq2070[9] = x.SecurityContext != nil + yyq2070[10] = len(x.ImagePullSecrets) != 0 + yyq2070[11] = x.Hostname != "" + yyq2070[12] = x.Subdomain != "" + var yynn2070 int + if yyr2070 || yy2arr2070 { r.EncodeArrayStart(13) } else { - yynn1924 = 3 - for _, b := range yyq1924 { + yynn2070 = 3 + for _, b := range yyq2070 { if b { - yynn1924++ + yynn2070++ } } - r.EncodeMapStart(yynn1924) - yynn1924 = 0 + r.EncodeMapStart(yynn2070) + yynn2070 = 0 } - if yyr1924 || yy2arr1924 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Volumes == nil { r.EncodeNil() } else { - yym1926 := z.EncBinary() - _ = yym1926 + yym2072 := z.EncBinary() + _ = yym2072 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) @@ -26231,21 +27987,21 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Volumes == nil { r.EncodeNil() } else { - yym1927 := z.EncBinary() - _ = yym1927 + yym2073 := z.EncBinary() + _ = yym2073 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) } } } - if yyr1924 || yy2arr1924 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Containers == nil { r.EncodeNil() } else { - yym1929 := z.EncBinary() - _ = yym1929 + yym2075 := z.EncBinary() + _ = yym2075 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) @@ -26258,122 +28014,122 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Containers == nil { r.EncodeNil() } else { - yym1930 := z.EncBinary() - _ = yym1930 + yym2076 := z.EncBinary() + _ = yym2076 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } - if yyr1924 || yy2arr1924 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1924[2] { + if yyq2070[2] { x.RestartPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1924[2] { + if yyq2070[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.RestartPolicy.CodecEncodeSelf(e) } } - if yyr1924 || yy2arr1924 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1924[3] { + if yyq2070[3] { if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { - yy1933 := *x.TerminationGracePeriodSeconds - yym1934 := z.EncBinary() - _ = yym1934 + yy2079 := *x.TerminationGracePeriodSeconds + yym2080 := z.EncBinary() + _ = yym2080 if false { } else { - r.EncodeInt(int64(yy1933)) + r.EncodeInt(int64(yy2079)) } } } else { r.EncodeNil() } } else { - if yyq1924[3] { + if yyq2070[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { - yy1935 := *x.TerminationGracePeriodSeconds - yym1936 := z.EncBinary() - _ = yym1936 + yy2081 := *x.TerminationGracePeriodSeconds + yym2082 := z.EncBinary() + _ = yym2082 if false { } else { - r.EncodeInt(int64(yy1935)) + r.EncodeInt(int64(yy2081)) } } } } - if yyr1924 || yy2arr1924 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1924[4] { + if yyq2070[4] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy1938 := *x.ActiveDeadlineSeconds - yym1939 := z.EncBinary() - _ = yym1939 + yy2084 := *x.ActiveDeadlineSeconds + yym2085 := z.EncBinary() + _ = yym2085 if false { } else { - r.EncodeInt(int64(yy1938)) + r.EncodeInt(int64(yy2084)) } } } else { r.EncodeNil() } } else { - if yyq1924[4] { + if yyq2070[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy1940 := *x.ActiveDeadlineSeconds - yym1941 := z.EncBinary() - _ = yym1941 + yy2086 := *x.ActiveDeadlineSeconds + yym2087 := z.EncBinary() + _ = yym2087 if false { } else { - r.EncodeInt(int64(yy1940)) + r.EncodeInt(int64(yy2086)) } } } } - if yyr1924 || yy2arr1924 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1924[5] { + if yyq2070[5] { x.DNSPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1924[5] { + if yyq2070[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.DNSPolicy.CodecEncodeSelf(e) } } - if yyr1924 || yy2arr1924 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1924[6] { + if yyq2070[6] { if x.NodeSelector == nil { r.EncodeNil() } else { - yym1944 := z.EncBinary() - _ = yym1944 + yym2090 := z.EncBinary() + _ = yym2090 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) @@ -26383,15 +28139,15 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1924[6] { + if yyq2070[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelector == nil { r.EncodeNil() } else { - yym1945 := z.EncBinary() - _ = yym1945 + yym2091 := z.EncBinary() + _ = yym2091 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) @@ -26399,10 +28155,10 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1924 || yy2arr1924 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1947 := z.EncBinary() - _ = yym1947 + yym2093 := z.EncBinary() + _ = yym2093 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) @@ -26411,18 +28167,18 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceAccountName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1948 := z.EncBinary() - _ = yym1948 + yym2094 := z.EncBinary() + _ = yym2094 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } - if yyr1924 || yy2arr1924 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1924[8] { - yym1950 := z.EncBinary() - _ = yym1950 + if yyq2070[8] { + yym2096 := z.EncBinary() + _ = yym2096 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) @@ -26431,21 +28187,21 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1924[8] { + if yyq2070[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1951 := z.EncBinary() - _ = yym1951 + yym2097 := z.EncBinary() + _ = yym2097 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } } - if yyr1924 || yy2arr1924 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1924[9] { + if yyq2070[9] { if x.SecurityContext == nil { r.EncodeNil() } else { @@ -26455,7 +28211,7 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1924[9] { + if yyq2070[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("securityContext")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -26466,14 +28222,14 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1924 || yy2arr1924 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1924[10] { + if yyq2070[10] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym1954 := z.EncBinary() - _ = yym1954 + yym2100 := z.EncBinary() + _ = yym2100 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -26483,15 +28239,15 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1924[10] { + if yyq2070[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym1955 := z.EncBinary() - _ = yym1955 + yym2101 := z.EncBinary() + _ = yym2101 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -26499,11 +28255,11 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1924 || yy2arr1924 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1924[11] { - yym1957 := z.EncBinary() - _ = yym1957 + if yyq2070[11] { + yym2103 := z.EncBinary() + _ = yym2103 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -26512,23 +28268,23 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1924[11] { + if yyq2070[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1958 := z.EncBinary() - _ = yym1958 + yym2104 := z.EncBinary() + _ = yym2104 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr1924 || yy2arr1924 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1924[12] { - yym1960 := z.EncBinary() - _ = yym1960 + if yyq2070[12] { + yym2106 := z.EncBinary() + _ = yym2106 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) @@ -26537,19 +28293,19 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1924[12] { + if yyq2070[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subdomain")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1961 := z.EncBinary() - _ = yym1961 + yym2107 := z.EncBinary() + _ = yym2107 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) } } } - if yyr1924 || yy2arr1924 { + if yyr2070 || yy2arr2070 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -26562,25 +28318,25 @@ func (x *PodSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1962 := z.DecBinary() - _ = yym1962 + yym2108 := z.DecBinary() + _ = yym2108 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1963 := r.ContainerType() - if yyct1963 == codecSelferValueTypeMap1234 { - yyl1963 := r.ReadMapStart() - if yyl1963 == 0 { + yyct2109 := r.ContainerType() + if yyct2109 == codecSelferValueTypeMap1234 { + yyl2109 := r.ReadMapStart() + if yyl2109 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1963, d) + x.codecDecodeSelfFromMap(yyl2109, d) } - } else if yyct1963 == codecSelferValueTypeArray1234 { - yyl1963 := r.ReadArrayStart() - if yyl1963 == 0 { + } else if yyct2109 == codecSelferValueTypeArray1234 { + yyl2109 := r.ReadArrayStart() + if yyl2109 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1963, d) + x.codecDecodeSelfFromArray(yyl2109, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -26592,12 +28348,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1964Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1964Slc - var yyhl1964 bool = l >= 0 - for yyj1964 := 0; ; yyj1964++ { - if yyhl1964 { - if yyj1964 >= l { + var yys2110Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2110Slc + var yyhl2110 bool = l >= 0 + for yyj2110 := 0; ; yyj2110++ { + if yyhl2110 { + if yyj2110 >= l { break } } else { @@ -26606,32 +28362,32 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1964Slc = r.DecodeBytes(yys1964Slc, true, true) - yys1964 := string(yys1964Slc) + yys2110Slc = r.DecodeBytes(yys2110Slc, true, true) + yys2110 := string(yys2110Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1964 { + switch yys2110 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv1965 := &x.Volumes - yym1966 := z.DecBinary() - _ = yym1966 + yyv2111 := &x.Volumes + yym2112 := z.DecBinary() + _ = yym2112 if false { } else { - h.decSliceVolume((*[]Volume)(yyv1965), d) + h.decSliceVolume((*[]Volume)(yyv2111), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { - yyv1967 := &x.Containers - yym1968 := z.DecBinary() - _ = yym1968 + yyv2113 := &x.Containers + yym2114 := z.DecBinary() + _ = yym2114 if false { } else { - h.decSliceContainer((*[]Container)(yyv1967), d) + h.decSliceContainer((*[]Container)(yyv2113), d) } } case "restartPolicy": @@ -26649,8 +28405,8 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } - yym1971 := z.DecBinary() - _ = yym1971 + yym2117 := z.DecBinary() + _ = yym2117 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -26665,8 +28421,8 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym1973 := z.DecBinary() - _ = yym1973 + yym2119 := z.DecBinary() + _ = yym2119 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -26682,12 +28438,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeSelector = nil } else { - yyv1975 := &x.NodeSelector - yym1976 := z.DecBinary() - _ = yym1976 + yyv2121 := &x.NodeSelector + yym2122 := z.DecBinary() + _ = yym2122 if false { } else { - z.F.DecMapStringStringX(yyv1975, false, d) + z.F.DecMapStringStringX(yyv2121, false, d) } } case "serviceAccountName": @@ -26717,12 +28473,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv1980 := &x.ImagePullSecrets - yym1981 := z.DecBinary() - _ = yym1981 + yyv2126 := &x.ImagePullSecrets + yym2127 := z.DecBinary() + _ = yym2127 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1980), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2126), d) } } case "hostname": @@ -26738,9 +28494,9 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Subdomain = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1964) - } // end switch yys1964 - } // end for yyj1964 + z.DecStructFieldNotFound(-1, yys2110) + } // end switch yys2110 + } // end for yyj2110 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -26748,16 +28504,16 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1984 int - var yyb1984 bool - var yyhl1984 bool = l >= 0 - yyj1984++ - if yyhl1984 { - yyb1984 = yyj1984 > l + var yyj2130 int + var yyb2130 bool + var yyhl2130 bool = l >= 0 + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb1984 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb1984 { + if yyb2130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26765,21 +28521,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv1985 := &x.Volumes - yym1986 := z.DecBinary() - _ = yym1986 + yyv2131 := &x.Volumes + yym2132 := z.DecBinary() + _ = yym2132 if false { } else { - h.decSliceVolume((*[]Volume)(yyv1985), d) + h.decSliceVolume((*[]Volume)(yyv2131), d) } } - yyj1984++ - if yyhl1984 { - yyb1984 = yyj1984 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb1984 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb1984 { + if yyb2130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26787,21 +28543,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Containers = nil } else { - yyv1987 := &x.Containers - yym1988 := z.DecBinary() - _ = yym1988 + yyv2133 := &x.Containers + yym2134 := z.DecBinary() + _ = yym2134 if false { } else { - h.decSliceContainer((*[]Container)(yyv1987), d) + h.decSliceContainer((*[]Container)(yyv2133), d) } } - yyj1984++ - if yyhl1984 { - yyb1984 = yyj1984 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb1984 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb1984 { + if yyb2130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26811,13 +28567,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.RestartPolicy = RestartPolicy(r.DecodeString()) } - yyj1984++ - if yyhl1984 { - yyb1984 = yyj1984 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb1984 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb1984 { + if yyb2130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26830,20 +28586,20 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } - yym1991 := z.DecBinary() - _ = yym1991 + yym2137 := z.DecBinary() + _ = yym2137 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj1984++ - if yyhl1984 { - yyb1984 = yyj1984 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb1984 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb1984 { + if yyb2130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26856,20 +28612,20 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym1993 := z.DecBinary() - _ = yym1993 + yym2139 := z.DecBinary() + _ = yym2139 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj1984++ - if yyhl1984 { - yyb1984 = yyj1984 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb1984 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb1984 { + if yyb2130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26879,13 +28635,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.DNSPolicy = DNSPolicy(r.DecodeString()) } - yyj1984++ - if yyhl1984 { - yyb1984 = yyj1984 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb1984 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb1984 { + if yyb2130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26893,21 +28649,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeSelector = nil } else { - yyv1995 := &x.NodeSelector - yym1996 := z.DecBinary() - _ = yym1996 + yyv2141 := &x.NodeSelector + yym2142 := z.DecBinary() + _ = yym2142 if false { } else { - z.F.DecMapStringStringX(yyv1995, false, d) + z.F.DecMapStringStringX(yyv2141, false, d) } } - yyj1984++ - if yyhl1984 { - yyb1984 = yyj1984 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb1984 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb1984 { + if yyb2130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26917,13 +28673,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ServiceAccountName = string(r.DecodeString()) } - yyj1984++ - if yyhl1984 { - yyb1984 = yyj1984 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb1984 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb1984 { + if yyb2130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26933,13 +28689,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.NodeName = string(r.DecodeString()) } - yyj1984++ - if yyhl1984 { - yyb1984 = yyj1984 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb1984 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb1984 { + if yyb2130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26954,13 +28710,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.SecurityContext.CodecDecodeSelf(d) } - yyj1984++ - if yyhl1984 { - yyb1984 = yyj1984 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb1984 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb1984 { + if yyb2130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26968,21 +28724,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2000 := &x.ImagePullSecrets - yym2001 := z.DecBinary() - _ = yym2001 + yyv2146 := &x.ImagePullSecrets + yym2147 := z.DecBinary() + _ = yym2147 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2000), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2146), d) } } - yyj1984++ - if yyhl1984 { - yyb1984 = yyj1984 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb1984 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb1984 { + if yyb2130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26992,13 +28748,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Hostname = string(r.DecodeString()) } - yyj1984++ - if yyhl1984 { - yyb1984 = yyj1984 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb1984 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb1984 { + if yyb2130 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27009,17 +28765,220 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Subdomain = string(r.DecodeString()) } for { - yyj1984++ - if yyhl1984 { - yyb1984 = yyj1984 > l + yyj2130++ + if yyhl2130 { + yyb2130 = yyj2130 > l } else { - yyb1984 = r.CheckBreak() + yyb2130 = r.CheckBreak() } - if yyb1984 { + if yyb2130 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1984-1, "") + z.DecStructFieldNotFound(yyj2130-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Sysctl) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2150 := z.EncBinary() + _ = yym2150 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2151 := !z.EncBinary() + yy2arr2151 := z.EncBasicHandle().StructToArray + var yyq2151 [2]bool + _, _, _ = yysep2151, yyq2151, yy2arr2151 + const yyr2151 bool = false + var yynn2151 int + if yyr2151 || yy2arr2151 { + r.EncodeArrayStart(2) + } else { + yynn2151 = 2 + for _, b := range yyq2151 { + if b { + yynn2151++ + } + } + r.EncodeMapStart(yynn2151) + yynn2151 = 0 + } + if yyr2151 || yy2arr2151 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2153 := z.EncBinary() + _ = yym2153 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2154 := z.EncBinary() + _ = yym2154 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + if yyr2151 || yy2arr2151 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2156 := z.EncBinary() + _ = yym2156 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("value")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2157 := z.EncBinary() + _ = yym2157 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Value)) + } + } + if yyr2151 || yy2arr2151 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Sysctl) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2158 := z.DecBinary() + _ = yym2158 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2159 := r.ContainerType() + if yyct2159 == codecSelferValueTypeMap1234 { + yyl2159 := r.ReadMapStart() + if yyl2159 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2159, d) + } + } else if yyct2159 == codecSelferValueTypeArray1234 { + yyl2159 := r.ReadArrayStart() + if yyl2159 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2159, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *Sysctl) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2160Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2160Slc + var yyhl2160 bool = l >= 0 + for yyj2160 := 0; ; yyj2160++ { + if yyhl2160 { + if yyj2160 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2160Slc = r.DecodeBytes(yys2160Slc, true, true) + yys2160 := string(yys2160Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2160 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "value": + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys2160) + } // end switch yys2160 + } // end for yyj2160 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Sysctl) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2163 int + var yyb2163 bool + var yyhl2163 bool = l >= 0 + yyj2163++ + if yyhl2163 { + yyb2163 = yyj2163 > l + } else { + yyb2163 = r.CheckBreak() + } + if yyb2163 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj2163++ + if yyhl2163 { + yyb2163 = yyj2163 > l + } else { + yyb2163 = r.CheckBreak() + } + if yyb2163 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Value = "" + } else { + x.Value = string(r.DecodeString()) + } + for { + yyj2163++ + if yyhl2163 { + yyb2163 = yyj2163 > l + } else { + yyb2163 = r.CheckBreak() + } + if yyb2163 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2163-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -27031,42 +28990,42 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2004 := z.EncBinary() - _ = yym2004 + yym2166 := z.EncBinary() + _ = yym2166 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2005 := !z.EncBinary() - yy2arr2005 := z.EncBasicHandle().StructToArray - var yyq2005 [8]bool - _, _, _ = yysep2005, yyq2005, yy2arr2005 - const yyr2005 bool = false - yyq2005[0] = x.HostNetwork != false - yyq2005[1] = x.HostPID != false - yyq2005[2] = x.HostIPC != false - yyq2005[3] = x.SELinuxOptions != nil - yyq2005[4] = x.RunAsUser != nil - yyq2005[5] = x.RunAsNonRoot != nil - yyq2005[6] = len(x.SupplementalGroups) != 0 - yyq2005[7] = x.FSGroup != nil - var yynn2005 int - if yyr2005 || yy2arr2005 { + yysep2167 := !z.EncBinary() + yy2arr2167 := z.EncBasicHandle().StructToArray + var yyq2167 [8]bool + _, _, _ = yysep2167, yyq2167, yy2arr2167 + const yyr2167 bool = false + yyq2167[0] = x.HostNetwork != false + yyq2167[1] = x.HostPID != false + yyq2167[2] = x.HostIPC != false + yyq2167[3] = x.SELinuxOptions != nil + yyq2167[4] = x.RunAsUser != nil + yyq2167[5] = x.RunAsNonRoot != nil + yyq2167[6] = len(x.SupplementalGroups) != 0 + yyq2167[7] = x.FSGroup != nil + var yynn2167 int + if yyr2167 || yy2arr2167 { r.EncodeArrayStart(8) } else { - yynn2005 = 0 - for _, b := range yyq2005 { + yynn2167 = 0 + for _, b := range yyq2167 { if b { - yynn2005++ + yynn2167++ } } - r.EncodeMapStart(yynn2005) - yynn2005 = 0 + r.EncodeMapStart(yynn2167) + yynn2167 = 0 } - if yyr2005 || yy2arr2005 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2005[0] { - yym2007 := z.EncBinary() - _ = yym2007 + if yyq2167[0] { + yym2169 := z.EncBinary() + _ = yym2169 if false { } else { r.EncodeBool(bool(x.HostNetwork)) @@ -27075,23 +29034,23 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2005[0] { + if yyq2167[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2008 := z.EncBinary() - _ = yym2008 + yym2170 := z.EncBinary() + _ = yym2170 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } - if yyr2005 || yy2arr2005 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2005[1] { - yym2010 := z.EncBinary() - _ = yym2010 + if yyq2167[1] { + yym2172 := z.EncBinary() + _ = yym2172 if false { } else { r.EncodeBool(bool(x.HostPID)) @@ -27100,23 +29059,23 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2005[1] { + if yyq2167[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2011 := z.EncBinary() - _ = yym2011 + yym2173 := z.EncBinary() + _ = yym2173 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } - if yyr2005 || yy2arr2005 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2005[2] { - yym2013 := z.EncBinary() - _ = yym2013 + if yyq2167[2] { + yym2175 := z.EncBinary() + _ = yym2175 if false { } else { r.EncodeBool(bool(x.HostIPC)) @@ -27125,21 +29084,21 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2005[2] { + if yyq2167[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2014 := z.EncBinary() - _ = yym2014 + yym2176 := z.EncBinary() + _ = yym2176 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } - if yyr2005 || yy2arr2005 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2005[3] { + if yyq2167[3] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -27149,7 +29108,7 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2005[3] { + if yyq2167[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -27160,84 +29119,84 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2005 || yy2arr2005 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2005[4] { + if yyq2167[4] { if x.RunAsUser == nil { r.EncodeNil() } else { - yy2017 := *x.RunAsUser - yym2018 := z.EncBinary() - _ = yym2018 + yy2179 := *x.RunAsUser + yym2180 := z.EncBinary() + _ = yym2180 if false { } else { - r.EncodeInt(int64(yy2017)) + r.EncodeInt(int64(yy2179)) } } } else { r.EncodeNil() } } else { - if yyq2005[4] { + if yyq2167[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { - yy2019 := *x.RunAsUser - yym2020 := z.EncBinary() - _ = yym2020 + yy2181 := *x.RunAsUser + yym2182 := z.EncBinary() + _ = yym2182 if false { } else { - r.EncodeInt(int64(yy2019)) + r.EncodeInt(int64(yy2181)) } } } } - if yyr2005 || yy2arr2005 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2005[5] { + if yyq2167[5] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy2022 := *x.RunAsNonRoot - yym2023 := z.EncBinary() - _ = yym2023 + yy2184 := *x.RunAsNonRoot + yym2185 := z.EncBinary() + _ = yym2185 if false { } else { - r.EncodeBool(bool(yy2022)) + r.EncodeBool(bool(yy2184)) } } } else { r.EncodeNil() } } else { - if yyq2005[5] { + if yyq2167[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy2024 := *x.RunAsNonRoot - yym2025 := z.EncBinary() - _ = yym2025 + yy2186 := *x.RunAsNonRoot + yym2187 := z.EncBinary() + _ = yym2187 if false { } else { - r.EncodeBool(bool(yy2024)) + r.EncodeBool(bool(yy2186)) } } } } - if yyr2005 || yy2arr2005 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2005[6] { + if yyq2167[6] { if x.SupplementalGroups == nil { r.EncodeNil() } else { - yym2027 := z.EncBinary() - _ = yym2027 + yym2189 := z.EncBinary() + _ = yym2189 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) @@ -27247,15 +29206,15 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2005[6] { + if yyq2167[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SupplementalGroups == nil { r.EncodeNil() } else { - yym2028 := z.EncBinary() - _ = yym2028 + yym2190 := z.EncBinary() + _ = yym2190 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) @@ -27263,42 +29222,42 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2005 || yy2arr2005 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2005[7] { + if yyq2167[7] { if x.FSGroup == nil { r.EncodeNil() } else { - yy2030 := *x.FSGroup - yym2031 := z.EncBinary() - _ = yym2031 + yy2192 := *x.FSGroup + yym2193 := z.EncBinary() + _ = yym2193 if false { } else { - r.EncodeInt(int64(yy2030)) + r.EncodeInt(int64(yy2192)) } } } else { r.EncodeNil() } } else { - if yyq2005[7] { + if yyq2167[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSGroup == nil { r.EncodeNil() } else { - yy2032 := *x.FSGroup - yym2033 := z.EncBinary() - _ = yym2033 + yy2194 := *x.FSGroup + yym2195 := z.EncBinary() + _ = yym2195 if false { } else { - r.EncodeInt(int64(yy2032)) + r.EncodeInt(int64(yy2194)) } } } } - if yyr2005 || yy2arr2005 { + if yyr2167 || yy2arr2167 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -27311,25 +29270,25 @@ func (x *PodSecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2034 := z.DecBinary() - _ = yym2034 + yym2196 := z.DecBinary() + _ = yym2196 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2035 := r.ContainerType() - if yyct2035 == codecSelferValueTypeMap1234 { - yyl2035 := r.ReadMapStart() - if yyl2035 == 0 { + yyct2197 := r.ContainerType() + if yyct2197 == codecSelferValueTypeMap1234 { + yyl2197 := r.ReadMapStart() + if yyl2197 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2035, d) + x.codecDecodeSelfFromMap(yyl2197, d) } - } else if yyct2035 == codecSelferValueTypeArray1234 { - yyl2035 := r.ReadArrayStart() - if yyl2035 == 0 { + } else if yyct2197 == codecSelferValueTypeArray1234 { + yyl2197 := r.ReadArrayStart() + if yyl2197 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2035, d) + x.codecDecodeSelfFromArray(yyl2197, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -27341,12 +29300,12 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2036Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2036Slc - var yyhl2036 bool = l >= 0 - for yyj2036 := 0; ; yyj2036++ { - if yyhl2036 { - if yyj2036 >= l { + var yys2198Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2198Slc + var yyhl2198 bool = l >= 0 + for yyj2198 := 0; ; yyj2198++ { + if yyhl2198 { + if yyj2198 >= l { break } } else { @@ -27355,10 +29314,10 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2036Slc = r.DecodeBytes(yys2036Slc, true, true) - yys2036 := string(yys2036Slc) + yys2198Slc = r.DecodeBytes(yys2198Slc, true, true) + yys2198 := string(yys2198Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2036 { + switch yys2198 { case "hostNetwork": if r.TryDecodeAsNil() { x.HostNetwork = false @@ -27397,8 +29356,8 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym2042 := z.DecBinary() - _ = yym2042 + yym2204 := z.DecBinary() + _ = yym2204 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) @@ -27413,8 +29372,8 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym2044 := z.DecBinary() - _ = yym2044 + yym2206 := z.DecBinary() + _ = yym2206 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() @@ -27424,12 +29383,12 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { - yyv2045 := &x.SupplementalGroups - yym2046 := z.DecBinary() - _ = yym2046 + yyv2207 := &x.SupplementalGroups + yym2208 := z.DecBinary() + _ = yym2208 if false { } else { - z.F.DecSliceInt64X(yyv2045, false, d) + z.F.DecSliceInt64X(yyv2207, false, d) } } case "fsGroup": @@ -27441,17 +29400,17 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.FSGroup == nil { x.FSGroup = new(int64) } - yym2048 := z.DecBinary() - _ = yym2048 + yym2210 := z.DecBinary() + _ = yym2210 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys2036) - } // end switch yys2036 - } // end for yyj2036 + z.DecStructFieldNotFound(-1, yys2198) + } // end switch yys2198 + } // end for yyj2198 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -27459,16 +29418,16 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2049 int - var yyb2049 bool - var yyhl2049 bool = l >= 0 - yyj2049++ - if yyhl2049 { - yyb2049 = yyj2049 > l + var yyj2211 int + var yyb2211 bool + var yyhl2211 bool = l >= 0 + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2049 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2049 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27478,13 +29437,13 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.HostNetwork = bool(r.DecodeBool()) } - yyj2049++ - if yyhl2049 { - yyb2049 = yyj2049 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2049 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2049 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27494,13 +29453,13 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.HostPID = bool(r.DecodeBool()) } - yyj2049++ - if yyhl2049 { - yyb2049 = yyj2049 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2049 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2049 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27510,13 +29469,13 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.HostIPC = bool(r.DecodeBool()) } - yyj2049++ - if yyhl2049 { - yyb2049 = yyj2049 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2049 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2049 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27531,13 +29490,13 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode } x.SELinuxOptions.CodecDecodeSelf(d) } - yyj2049++ - if yyhl2049 { - yyb2049 = yyj2049 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2049 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2049 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27550,20 +29509,20 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym2055 := z.DecBinary() - _ = yym2055 + yym2217 := z.DecBinary() + _ = yym2217 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } - yyj2049++ - if yyhl2049 { - yyb2049 = yyj2049 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2049 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2049 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27576,20 +29535,20 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym2057 := z.DecBinary() - _ = yym2057 + yym2219 := z.DecBinary() + _ = yym2219 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } - yyj2049++ - if yyhl2049 { - yyb2049 = yyj2049 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2049 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2049 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27597,21 +29556,21 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { - yyv2058 := &x.SupplementalGroups - yym2059 := z.DecBinary() - _ = yym2059 + yyv2220 := &x.SupplementalGroups + yym2221 := z.DecBinary() + _ = yym2221 if false { } else { - z.F.DecSliceInt64X(yyv2058, false, d) + z.F.DecSliceInt64X(yyv2220, false, d) } } - yyj2049++ - if yyhl2049 { - yyb2049 = yyj2049 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2049 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2049 { + if yyb2211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27624,25 +29583,25 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.FSGroup == nil { x.FSGroup = new(int64) } - yym2061 := z.DecBinary() - _ = yym2061 + yym2223 := z.DecBinary() + _ = yym2223 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } for { - yyj2049++ - if yyhl2049 { - yyb2049 = yyj2049 > l + yyj2211++ + if yyhl2211 { + yyb2211 = yyj2211 > l } else { - yyb2049 = r.CheckBreak() + yyb2211 = r.CheckBreak() } - if yyb2049 { + if yyb2211 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2049-1, "") + z.DecStructFieldNotFound(yyj2211-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -27654,60 +29613,60 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2062 := z.EncBinary() - _ = yym2062 + yym2224 := z.EncBinary() + _ = yym2224 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2063 := !z.EncBinary() - yy2arr2063 := z.EncBasicHandle().StructToArray - var yyq2063 [8]bool - _, _, _ = yysep2063, yyq2063, yy2arr2063 - const yyr2063 bool = false - yyq2063[0] = x.Phase != "" - yyq2063[1] = len(x.Conditions) != 0 - yyq2063[2] = x.Message != "" - yyq2063[3] = x.Reason != "" - yyq2063[4] = x.HostIP != "" - yyq2063[5] = x.PodIP != "" - yyq2063[6] = x.StartTime != nil - yyq2063[7] = len(x.ContainerStatuses) != 0 - var yynn2063 int - if yyr2063 || yy2arr2063 { + yysep2225 := !z.EncBinary() + yy2arr2225 := z.EncBasicHandle().StructToArray + var yyq2225 [8]bool + _, _, _ = yysep2225, yyq2225, yy2arr2225 + const yyr2225 bool = false + yyq2225[0] = x.Phase != "" + yyq2225[1] = len(x.Conditions) != 0 + yyq2225[2] = x.Message != "" + yyq2225[3] = x.Reason != "" + yyq2225[4] = x.HostIP != "" + yyq2225[5] = x.PodIP != "" + yyq2225[6] = x.StartTime != nil + yyq2225[7] = len(x.ContainerStatuses) != 0 + var yynn2225 int + if yyr2225 || yy2arr2225 { r.EncodeArrayStart(8) } else { - yynn2063 = 0 - for _, b := range yyq2063 { + yynn2225 = 0 + for _, b := range yyq2225 { if b { - yynn2063++ + yynn2225++ } } - r.EncodeMapStart(yynn2063) - yynn2063 = 0 + r.EncodeMapStart(yynn2225) + yynn2225 = 0 } - if yyr2063 || yy2arr2063 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2063[0] { + if yyq2225[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2063[0] { + if yyq2225[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2063 || yy2arr2063 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2063[1] { + if yyq2225[1] { if x.Conditions == nil { r.EncodeNil() } else { - yym2066 := z.EncBinary() - _ = yym2066 + yym2228 := z.EncBinary() + _ = yym2228 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) @@ -27717,15 +29676,15 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2063[1] { + if yyq2225[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym2067 := z.EncBinary() - _ = yym2067 + yym2229 := z.EncBinary() + _ = yym2229 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) @@ -27733,11 +29692,11 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2063 || yy2arr2063 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2063[2] { - yym2069 := z.EncBinary() - _ = yym2069 + if yyq2225[2] { + yym2231 := z.EncBinary() + _ = yym2231 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -27746,23 +29705,23 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2063[2] { + if yyq2225[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2070 := z.EncBinary() - _ = yym2070 + yym2232 := z.EncBinary() + _ = yym2232 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2063 || yy2arr2063 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2063[3] { - yym2072 := z.EncBinary() - _ = yym2072 + if yyq2225[3] { + yym2234 := z.EncBinary() + _ = yym2234 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -27771,23 +29730,23 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2063[3] { + if yyq2225[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2073 := z.EncBinary() - _ = yym2073 + yym2235 := z.EncBinary() + _ = yym2235 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2063 || yy2arr2063 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2063[4] { - yym2075 := z.EncBinary() - _ = yym2075 + if yyq2225[4] { + yym2237 := z.EncBinary() + _ = yym2237 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) @@ -27796,23 +29755,23 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2063[4] { + if yyq2225[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2076 := z.EncBinary() - _ = yym2076 + yym2238 := z.EncBinary() + _ = yym2238 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } - if yyr2063 || yy2arr2063 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2063[5] { - yym2078 := z.EncBinary() - _ = yym2078 + if yyq2225[5] { + yym2240 := z.EncBinary() + _ = yym2240 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) @@ -27821,31 +29780,31 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2063[5] { + if yyq2225[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2079 := z.EncBinary() - _ = yym2079 + yym2241 := z.EncBinary() + _ = yym2241 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } - if yyr2063 || yy2arr2063 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2063[6] { + if yyq2225[6] { if x.StartTime == nil { r.EncodeNil() } else { - yym2081 := z.EncBinary() - _ = yym2081 + yym2243 := z.EncBinary() + _ = yym2243 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym2081 { + } else if yym2243 { z.EncBinaryMarshal(x.StartTime) - } else if !yym2081 && z.IsJSONHandle() { + } else if !yym2243 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -27855,20 +29814,20 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2063[6] { + if yyq2225[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { - yym2082 := z.EncBinary() - _ = yym2082 + yym2244 := z.EncBinary() + _ = yym2244 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym2082 { + } else if yym2244 { z.EncBinaryMarshal(x.StartTime) - } else if !yym2082 && z.IsJSONHandle() { + } else if !yym2244 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -27876,14 +29835,14 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2063 || yy2arr2063 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2063[7] { + if yyq2225[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { - yym2084 := z.EncBinary() - _ = yym2084 + yym2246 := z.EncBinary() + _ = yym2246 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) @@ -27893,15 +29852,15 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2063[7] { + if yyq2225[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerStatuses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ContainerStatuses == nil { r.EncodeNil() } else { - yym2085 := z.EncBinary() - _ = yym2085 + yym2247 := z.EncBinary() + _ = yym2247 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) @@ -27909,7 +29868,7 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2063 || yy2arr2063 { + if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -27922,25 +29881,25 @@ func (x *PodStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2086 := z.DecBinary() - _ = yym2086 + yym2248 := z.DecBinary() + _ = yym2248 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2087 := r.ContainerType() - if yyct2087 == codecSelferValueTypeMap1234 { - yyl2087 := r.ReadMapStart() - if yyl2087 == 0 { + yyct2249 := r.ContainerType() + if yyct2249 == codecSelferValueTypeMap1234 { + yyl2249 := r.ReadMapStart() + if yyl2249 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2087, d) + x.codecDecodeSelfFromMap(yyl2249, d) } - } else if yyct2087 == codecSelferValueTypeArray1234 { - yyl2087 := r.ReadArrayStart() - if yyl2087 == 0 { + } else if yyct2249 == codecSelferValueTypeArray1234 { + yyl2249 := r.ReadArrayStart() + if yyl2249 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2087, d) + x.codecDecodeSelfFromArray(yyl2249, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -27952,12 +29911,12 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2088Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2088Slc - var yyhl2088 bool = l >= 0 - for yyj2088 := 0; ; yyj2088++ { - if yyhl2088 { - if yyj2088 >= l { + var yys2250Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2250Slc + var yyhl2250 bool = l >= 0 + for yyj2250 := 0; ; yyj2250++ { + if yyhl2250 { + if yyj2250 >= l { break } } else { @@ -27966,10 +29925,10 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2088Slc = r.DecodeBytes(yys2088Slc, true, true) - yys2088 := string(yys2088Slc) + yys2250Slc = r.DecodeBytes(yys2250Slc, true, true) + yys2250 := string(yys2250Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2088 { + switch yys2250 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -27980,12 +29939,12 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv2090 := &x.Conditions - yym2091 := z.DecBinary() - _ = yym2091 + yyv2252 := &x.Conditions + yym2253 := z.DecBinary() + _ = yym2253 if false { } else { - h.decSlicePodCondition((*[]PodCondition)(yyv2090), d) + h.decSlicePodCondition((*[]PodCondition)(yyv2252), d) } } case "message": @@ -28021,13 +29980,13 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg2_unversioned.Time) } - yym2097 := z.DecBinary() - _ = yym2097 + yym2259 := z.DecBinary() + _ = yym2259 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym2097 { + } else if yym2259 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym2097 && z.IsJSONHandle() { + } else if !yym2259 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) @@ -28037,18 +29996,18 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { - yyv2098 := &x.ContainerStatuses - yym2099 := z.DecBinary() - _ = yym2099 + yyv2260 := &x.ContainerStatuses + yym2261 := z.DecBinary() + _ = yym2261 if false { } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv2098), d) + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2260), d) } } default: - z.DecStructFieldNotFound(-1, yys2088) - } // end switch yys2088 - } // end for yyj2088 + z.DecStructFieldNotFound(-1, yys2250) + } // end switch yys2250 + } // end for yyj2250 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28056,16 +30015,16 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2100 int - var yyb2100 bool - var yyhl2100 bool = l >= 0 - yyj2100++ - if yyhl2100 { - yyb2100 = yyj2100 > l + var yyj2262 int + var yyb2262 bool + var yyhl2262 bool = l >= 0 + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb2100 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb2100 { + if yyb2262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28075,13 +30034,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Phase = PodPhase(r.DecodeString()) } - yyj2100++ - if yyhl2100 { - yyb2100 = yyj2100 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb2100 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb2100 { + if yyb2262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28089,21 +30048,21 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv2102 := &x.Conditions - yym2103 := z.DecBinary() - _ = yym2103 + yyv2264 := &x.Conditions + yym2265 := z.DecBinary() + _ = yym2265 if false { } else { - h.decSlicePodCondition((*[]PodCondition)(yyv2102), d) + h.decSlicePodCondition((*[]PodCondition)(yyv2264), d) } } - yyj2100++ - if yyhl2100 { - yyb2100 = yyj2100 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb2100 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb2100 { + if yyb2262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28113,13 +30072,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Message = string(r.DecodeString()) } - yyj2100++ - if yyhl2100 { - yyb2100 = yyj2100 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb2100 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb2100 { + if yyb2262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28129,13 +30088,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj2100++ - if yyhl2100 { - yyb2100 = yyj2100 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb2100 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb2100 { + if yyb2262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28145,13 +30104,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostIP = string(r.DecodeString()) } - yyj2100++ - if yyhl2100 { - yyb2100 = yyj2100 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb2100 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb2100 { + if yyb2262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28161,13 +30120,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.PodIP = string(r.DecodeString()) } - yyj2100++ - if yyhl2100 { - yyb2100 = yyj2100 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb2100 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb2100 { + if yyb2262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28180,25 +30139,25 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg2_unversioned.Time) } - yym2109 := z.DecBinary() - _ = yym2109 + yym2271 := z.DecBinary() + _ = yym2271 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym2109 { + } else if yym2271 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym2109 && z.IsJSONHandle() { + } else if !yym2271 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } - yyj2100++ - if yyhl2100 { - yyb2100 = yyj2100 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb2100 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb2100 { + if yyb2262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28206,26 +30165,26 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { - yyv2110 := &x.ContainerStatuses - yym2111 := z.DecBinary() - _ = yym2111 + yyv2272 := &x.ContainerStatuses + yym2273 := z.DecBinary() + _ = yym2273 if false { } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv2110), d) + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2272), d) } } for { - yyj2100++ - if yyhl2100 { - yyb2100 = yyj2100 > l + yyj2262++ + if yyhl2262 { + yyb2262 = yyj2262 > l } else { - yyb2100 = r.CheckBreak() + yyb2262 = r.CheckBreak() } - if yyb2100 { + if yyb2262 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2100-1, "") + z.DecStructFieldNotFound(yyj2262-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28237,38 +30196,38 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2112 := z.EncBinary() - _ = yym2112 + yym2274 := z.EncBinary() + _ = yym2274 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2113 := !z.EncBinary() - yy2arr2113 := z.EncBasicHandle().StructToArray - var yyq2113 [4]bool - _, _, _ = yysep2113, yyq2113, yy2arr2113 - const yyr2113 bool = false - yyq2113[0] = x.Kind != "" - yyq2113[1] = x.APIVersion != "" - yyq2113[2] = true - yyq2113[3] = true - var yynn2113 int - if yyr2113 || yy2arr2113 { + yysep2275 := !z.EncBinary() + yy2arr2275 := z.EncBasicHandle().StructToArray + var yyq2275 [4]bool + _, _, _ = yysep2275, yyq2275, yy2arr2275 + const yyr2275 bool = false + yyq2275[0] = x.Kind != "" + yyq2275[1] = x.APIVersion != "" + yyq2275[2] = true + yyq2275[3] = true + var yynn2275 int + if yyr2275 || yy2arr2275 { r.EncodeArrayStart(4) } else { - yynn2113 = 0 - for _, b := range yyq2113 { + yynn2275 = 0 + for _, b := range yyq2275 { if b { - yynn2113++ + yynn2275++ } } - r.EncodeMapStart(yynn2113) - yynn2113 = 0 + r.EncodeMapStart(yynn2275) + yynn2275 = 0 } - if yyr2113 || yy2arr2113 { + if yyr2275 || yy2arr2275 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2113[0] { - yym2115 := z.EncBinary() - _ = yym2115 + if yyq2275[0] { + yym2277 := z.EncBinary() + _ = yym2277 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -28277,23 +30236,23 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2113[0] { + if yyq2275[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2116 := z.EncBinary() - _ = yym2116 + yym2278 := z.EncBinary() + _ = yym2278 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2113 || yy2arr2113 { + if yyr2275 || yy2arr2275 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2113[1] { - yym2118 := z.EncBinary() - _ = yym2118 + if yyq2275[1] { + yym2280 := z.EncBinary() + _ = yym2280 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -28302,53 +30261,53 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2113[1] { + if yyq2275[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2119 := z.EncBinary() - _ = yym2119 + yym2281 := z.EncBinary() + _ = yym2281 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2113 || yy2arr2113 { + if yyr2275 || yy2arr2275 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2113[2] { - yy2121 := &x.ObjectMeta - yy2121.CodecEncodeSelf(e) + if yyq2275[2] { + yy2283 := &x.ObjectMeta + yy2283.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2113[2] { + if yyq2275[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2122 := &x.ObjectMeta - yy2122.CodecEncodeSelf(e) + yy2284 := &x.ObjectMeta + yy2284.CodecEncodeSelf(e) } } - if yyr2113 || yy2arr2113 { + if yyr2275 || yy2arr2275 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2113[3] { - yy2124 := &x.Status - yy2124.CodecEncodeSelf(e) + if yyq2275[3] { + yy2286 := &x.Status + yy2286.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2113[3] { + if yyq2275[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2125 := &x.Status - yy2125.CodecEncodeSelf(e) + yy2287 := &x.Status + yy2287.CodecEncodeSelf(e) } } - if yyr2113 || yy2arr2113 { + if yyr2275 || yy2arr2275 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -28361,25 +30320,25 @@ func (x *PodStatusResult) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2126 := z.DecBinary() - _ = yym2126 + yym2288 := z.DecBinary() + _ = yym2288 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2127 := r.ContainerType() - if yyct2127 == codecSelferValueTypeMap1234 { - yyl2127 := r.ReadMapStart() - if yyl2127 == 0 { + yyct2289 := r.ContainerType() + if yyct2289 == codecSelferValueTypeMap1234 { + yyl2289 := r.ReadMapStart() + if yyl2289 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2127, d) + x.codecDecodeSelfFromMap(yyl2289, d) } - } else if yyct2127 == codecSelferValueTypeArray1234 { - yyl2127 := r.ReadArrayStart() - if yyl2127 == 0 { + } else if yyct2289 == codecSelferValueTypeArray1234 { + yyl2289 := r.ReadArrayStart() + if yyl2289 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2127, d) + x.codecDecodeSelfFromArray(yyl2289, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -28391,12 +30350,12 @@ func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2128Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2128Slc - var yyhl2128 bool = l >= 0 - for yyj2128 := 0; ; yyj2128++ { - if yyhl2128 { - if yyj2128 >= l { + var yys2290Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2290Slc + var yyhl2290 bool = l >= 0 + for yyj2290 := 0; ; yyj2290++ { + if yyhl2290 { + if yyj2290 >= l { break } } else { @@ -28405,10 +30364,10 @@ func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2128Slc = r.DecodeBytes(yys2128Slc, true, true) - yys2128 := string(yys2128Slc) + yys2290Slc = r.DecodeBytes(yys2290Slc, true, true) + yys2290 := string(yys2290Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2128 { + switch yys2290 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -28425,20 +30384,20 @@ func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2131 := &x.ObjectMeta - yyv2131.CodecDecodeSelf(d) + yyv2293 := &x.ObjectMeta + yyv2293.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2132 := &x.Status - yyv2132.CodecDecodeSelf(d) + yyv2294 := &x.Status + yyv2294.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2128) - } // end switch yys2128 - } // end for yyj2128 + z.DecStructFieldNotFound(-1, yys2290) + } // end switch yys2290 + } // end for yyj2290 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28446,16 +30405,16 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2133 int - var yyb2133 bool - var yyhl2133 bool = l >= 0 - yyj2133++ - if yyhl2133 { - yyb2133 = yyj2133 > l + var yyj2295 int + var yyb2295 bool + var yyhl2295 bool = l >= 0 + yyj2295++ + if yyhl2295 { + yyb2295 = yyj2295 > l } else { - yyb2133 = r.CheckBreak() + yyb2295 = r.CheckBreak() } - if yyb2133 { + if yyb2295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28465,13 +30424,13 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj2133++ - if yyhl2133 { - yyb2133 = yyj2133 > l + yyj2295++ + if yyhl2295 { + yyb2295 = yyj2295 > l } else { - yyb2133 = r.CheckBreak() + yyb2295 = r.CheckBreak() } - if yyb2133 { + if yyb2295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28481,13 +30440,13 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj2133++ - if yyhl2133 { - yyb2133 = yyj2133 > l + yyj2295++ + if yyhl2295 { + yyb2295 = yyj2295 > l } else { - yyb2133 = r.CheckBreak() + yyb2295 = r.CheckBreak() } - if yyb2133 { + if yyb2295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28495,16 +30454,16 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2136 := &x.ObjectMeta - yyv2136.CodecDecodeSelf(d) + yyv2298 := &x.ObjectMeta + yyv2298.CodecDecodeSelf(d) } - yyj2133++ - if yyhl2133 { - yyb2133 = yyj2133 > l + yyj2295++ + if yyhl2295 { + yyb2295 = yyj2295 > l } else { - yyb2133 = r.CheckBreak() + yyb2295 = r.CheckBreak() } - if yyb2133 { + if yyb2295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28512,21 +30471,21 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2137 := &x.Status - yyv2137.CodecDecodeSelf(d) + yyv2299 := &x.Status + yyv2299.CodecDecodeSelf(d) } for { - yyj2133++ - if yyhl2133 { - yyb2133 = yyj2133 > l + yyj2295++ + if yyhl2295 { + yyb2295 = yyj2295 > l } else { - yyb2133 = r.CheckBreak() + yyb2295 = r.CheckBreak() } - if yyb2133 { + if yyb2295 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2133-1, "") + z.DecStructFieldNotFound(yyj2295-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28538,39 +30497,39 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2138 := z.EncBinary() - _ = yym2138 + yym2300 := z.EncBinary() + _ = yym2300 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2139 := !z.EncBinary() - yy2arr2139 := z.EncBasicHandle().StructToArray - var yyq2139 [5]bool - _, _, _ = yysep2139, yyq2139, yy2arr2139 - const yyr2139 bool = false - yyq2139[0] = x.Kind != "" - yyq2139[1] = x.APIVersion != "" - yyq2139[2] = true - yyq2139[3] = true - yyq2139[4] = true - var yynn2139 int - if yyr2139 || yy2arr2139 { + yysep2301 := !z.EncBinary() + yy2arr2301 := z.EncBasicHandle().StructToArray + var yyq2301 [5]bool + _, _, _ = yysep2301, yyq2301, yy2arr2301 + const yyr2301 bool = false + yyq2301[0] = x.Kind != "" + yyq2301[1] = x.APIVersion != "" + yyq2301[2] = true + yyq2301[3] = true + yyq2301[4] = true + var yynn2301 int + if yyr2301 || yy2arr2301 { r.EncodeArrayStart(5) } else { - yynn2139 = 0 - for _, b := range yyq2139 { + yynn2301 = 0 + for _, b := range yyq2301 { if b { - yynn2139++ + yynn2301++ } } - r.EncodeMapStart(yynn2139) - yynn2139 = 0 + r.EncodeMapStart(yynn2301) + yynn2301 = 0 } - if yyr2139 || yy2arr2139 { + if yyr2301 || yy2arr2301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2139[0] { - yym2141 := z.EncBinary() - _ = yym2141 + if yyq2301[0] { + yym2303 := z.EncBinary() + _ = yym2303 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -28579,23 +30538,23 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2139[0] { + if yyq2301[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2142 := z.EncBinary() - _ = yym2142 + yym2304 := z.EncBinary() + _ = yym2304 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2139 || yy2arr2139 { + if yyr2301 || yy2arr2301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2139[1] { - yym2144 := z.EncBinary() - _ = yym2144 + if yyq2301[1] { + yym2306 := z.EncBinary() + _ = yym2306 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -28604,70 +30563,70 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2139[1] { + if yyq2301[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2145 := z.EncBinary() - _ = yym2145 + yym2307 := z.EncBinary() + _ = yym2307 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2139 || yy2arr2139 { + if yyr2301 || yy2arr2301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2139[2] { - yy2147 := &x.ObjectMeta - yy2147.CodecEncodeSelf(e) + if yyq2301[2] { + yy2309 := &x.ObjectMeta + yy2309.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2139[2] { + if yyq2301[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2148 := &x.ObjectMeta - yy2148.CodecEncodeSelf(e) + yy2310 := &x.ObjectMeta + yy2310.CodecEncodeSelf(e) } } - if yyr2139 || yy2arr2139 { + if yyr2301 || yy2arr2301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2139[3] { - yy2150 := &x.Spec - yy2150.CodecEncodeSelf(e) + if yyq2301[3] { + yy2312 := &x.Spec + yy2312.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2139[3] { + if yyq2301[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2151 := &x.Spec - yy2151.CodecEncodeSelf(e) + yy2313 := &x.Spec + yy2313.CodecEncodeSelf(e) } } - if yyr2139 || yy2arr2139 { + if yyr2301 || yy2arr2301 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2139[4] { - yy2153 := &x.Status - yy2153.CodecEncodeSelf(e) + if yyq2301[4] { + yy2315 := &x.Status + yy2315.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2139[4] { + if yyq2301[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2154 := &x.Status - yy2154.CodecEncodeSelf(e) + yy2316 := &x.Status + yy2316.CodecEncodeSelf(e) } } - if yyr2139 || yy2arr2139 { + if yyr2301 || yy2arr2301 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -28680,25 +30639,25 @@ func (x *Pod) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2155 := z.DecBinary() - _ = yym2155 + yym2317 := z.DecBinary() + _ = yym2317 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2156 := r.ContainerType() - if yyct2156 == codecSelferValueTypeMap1234 { - yyl2156 := r.ReadMapStart() - if yyl2156 == 0 { + yyct2318 := r.ContainerType() + if yyct2318 == codecSelferValueTypeMap1234 { + yyl2318 := r.ReadMapStart() + if yyl2318 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2156, d) + x.codecDecodeSelfFromMap(yyl2318, d) } - } else if yyct2156 == codecSelferValueTypeArray1234 { - yyl2156 := r.ReadArrayStart() - if yyl2156 == 0 { + } else if yyct2318 == codecSelferValueTypeArray1234 { + yyl2318 := r.ReadArrayStart() + if yyl2318 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2156, d) + x.codecDecodeSelfFromArray(yyl2318, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -28710,12 +30669,12 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2157Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2157Slc - var yyhl2157 bool = l >= 0 - for yyj2157 := 0; ; yyj2157++ { - if yyhl2157 { - if yyj2157 >= l { + var yys2319Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2319Slc + var yyhl2319 bool = l >= 0 + for yyj2319 := 0; ; yyj2319++ { + if yyhl2319 { + if yyj2319 >= l { break } } else { @@ -28724,10 +30683,10 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2157Slc = r.DecodeBytes(yys2157Slc, true, true) - yys2157 := string(yys2157Slc) + yys2319Slc = r.DecodeBytes(yys2319Slc, true, true) + yys2319 := string(yys2319Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2157 { + switch yys2319 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -28744,27 +30703,27 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2160 := &x.ObjectMeta - yyv2160.CodecDecodeSelf(d) + yyv2322 := &x.ObjectMeta + yyv2322.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2161 := &x.Spec - yyv2161.CodecDecodeSelf(d) + yyv2323 := &x.Spec + yyv2323.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2162 := &x.Status - yyv2162.CodecDecodeSelf(d) + yyv2324 := &x.Status + yyv2324.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2157) - } // end switch yys2157 - } // end for yyj2157 + z.DecStructFieldNotFound(-1, yys2319) + } // end switch yys2319 + } // end for yyj2319 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28772,16 +30731,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2163 int - var yyb2163 bool - var yyhl2163 bool = l >= 0 - yyj2163++ - if yyhl2163 { - yyb2163 = yyj2163 > l + var yyj2325 int + var yyb2325 bool + var yyhl2325 bool = l >= 0 + yyj2325++ + if yyhl2325 { + yyb2325 = yyj2325 > l } else { - yyb2163 = r.CheckBreak() + yyb2325 = r.CheckBreak() } - if yyb2163 { + if yyb2325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28791,13 +30750,13 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2163++ - if yyhl2163 { - yyb2163 = yyj2163 > l + yyj2325++ + if yyhl2325 { + yyb2325 = yyj2325 > l } else { - yyb2163 = r.CheckBreak() + yyb2325 = r.CheckBreak() } - if yyb2163 { + if yyb2325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28807,13 +30766,13 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2163++ - if yyhl2163 { - yyb2163 = yyj2163 > l + yyj2325++ + if yyhl2325 { + yyb2325 = yyj2325 > l } else { - yyb2163 = r.CheckBreak() + yyb2325 = r.CheckBreak() } - if yyb2163 { + if yyb2325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28821,16 +30780,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2166 := &x.ObjectMeta - yyv2166.CodecDecodeSelf(d) + yyv2328 := &x.ObjectMeta + yyv2328.CodecDecodeSelf(d) } - yyj2163++ - if yyhl2163 { - yyb2163 = yyj2163 > l + yyj2325++ + if yyhl2325 { + yyb2325 = yyj2325 > l } else { - yyb2163 = r.CheckBreak() + yyb2325 = r.CheckBreak() } - if yyb2163 { + if yyb2325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28838,16 +30797,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2167 := &x.Spec - yyv2167.CodecDecodeSelf(d) + yyv2329 := &x.Spec + yyv2329.CodecDecodeSelf(d) } - yyj2163++ - if yyhl2163 { - yyb2163 = yyj2163 > l + yyj2325++ + if yyhl2325 { + yyb2325 = yyj2325 > l } else { - yyb2163 = r.CheckBreak() + yyb2325 = r.CheckBreak() } - if yyb2163 { + if yyb2325 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28855,21 +30814,21 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2168 := &x.Status - yyv2168.CodecDecodeSelf(d) + yyv2330 := &x.Status + yyv2330.CodecDecodeSelf(d) } for { - yyj2163++ - if yyhl2163 { - yyb2163 = yyj2163 > l + yyj2325++ + if yyhl2325 { + yyb2325 = yyj2325 > l } else { - yyb2163 = r.CheckBreak() + yyb2325 = r.CheckBreak() } - if yyb2163 { + if yyb2325 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2163-1, "") + z.DecStructFieldNotFound(yyj2325-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28881,66 +30840,66 @@ func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2169 := z.EncBinary() - _ = yym2169 + yym2331 := z.EncBinary() + _ = yym2331 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2170 := !z.EncBinary() - yy2arr2170 := z.EncBasicHandle().StructToArray - var yyq2170 [2]bool - _, _, _ = yysep2170, yyq2170, yy2arr2170 - const yyr2170 bool = false - yyq2170[0] = true - yyq2170[1] = true - var yynn2170 int - if yyr2170 || yy2arr2170 { + yysep2332 := !z.EncBinary() + yy2arr2332 := z.EncBasicHandle().StructToArray + var yyq2332 [2]bool + _, _, _ = yysep2332, yyq2332, yy2arr2332 + const yyr2332 bool = false + yyq2332[0] = true + yyq2332[1] = true + var yynn2332 int + if yyr2332 || yy2arr2332 { r.EncodeArrayStart(2) } else { - yynn2170 = 0 - for _, b := range yyq2170 { + yynn2332 = 0 + for _, b := range yyq2332 { if b { - yynn2170++ + yynn2332++ } } - r.EncodeMapStart(yynn2170) - yynn2170 = 0 + r.EncodeMapStart(yynn2332) + yynn2332 = 0 } - if yyr2170 || yy2arr2170 { + if yyr2332 || yy2arr2332 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2170[0] { - yy2172 := &x.ObjectMeta - yy2172.CodecEncodeSelf(e) + if yyq2332[0] { + yy2334 := &x.ObjectMeta + yy2334.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2170[0] { + if yyq2332[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2173 := &x.ObjectMeta - yy2173.CodecEncodeSelf(e) + yy2335 := &x.ObjectMeta + yy2335.CodecEncodeSelf(e) } } - if yyr2170 || yy2arr2170 { + if yyr2332 || yy2arr2332 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2170[1] { - yy2175 := &x.Spec - yy2175.CodecEncodeSelf(e) + if yyq2332[1] { + yy2337 := &x.Spec + yy2337.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2170[1] { + if yyq2332[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2176 := &x.Spec - yy2176.CodecEncodeSelf(e) + yy2338 := &x.Spec + yy2338.CodecEncodeSelf(e) } } - if yyr2170 || yy2arr2170 { + if yyr2332 || yy2arr2332 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -28953,25 +30912,25 @@ func (x *PodTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2177 := z.DecBinary() - _ = yym2177 + yym2339 := z.DecBinary() + _ = yym2339 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2178 := r.ContainerType() - if yyct2178 == codecSelferValueTypeMap1234 { - yyl2178 := r.ReadMapStart() - if yyl2178 == 0 { + yyct2340 := r.ContainerType() + if yyct2340 == codecSelferValueTypeMap1234 { + yyl2340 := r.ReadMapStart() + if yyl2340 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2178, d) + x.codecDecodeSelfFromMap(yyl2340, d) } - } else if yyct2178 == codecSelferValueTypeArray1234 { - yyl2178 := r.ReadArrayStart() - if yyl2178 == 0 { + } else if yyct2340 == codecSelferValueTypeArray1234 { + yyl2340 := r.ReadArrayStart() + if yyl2340 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2178, d) + x.codecDecodeSelfFromArray(yyl2340, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -28983,12 +30942,12 @@ func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2179Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2179Slc - var yyhl2179 bool = l >= 0 - for yyj2179 := 0; ; yyj2179++ { - if yyhl2179 { - if yyj2179 >= l { + var yys2341Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2341Slc + var yyhl2341 bool = l >= 0 + for yyj2341 := 0; ; yyj2341++ { + if yyhl2341 { + if yyj2341 >= l { break } } else { @@ -28997,28 +30956,28 @@ func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2179Slc = r.DecodeBytes(yys2179Slc, true, true) - yys2179 := string(yys2179Slc) + yys2341Slc = r.DecodeBytes(yys2341Slc, true, true) + yys2341 := string(yys2341Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2179 { + switch yys2341 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2180 := &x.ObjectMeta - yyv2180.CodecDecodeSelf(d) + yyv2342 := &x.ObjectMeta + yyv2342.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2181 := &x.Spec - yyv2181.CodecDecodeSelf(d) + yyv2343 := &x.Spec + yyv2343.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2179) - } // end switch yys2179 - } // end for yyj2179 + z.DecStructFieldNotFound(-1, yys2341) + } // end switch yys2341 + } // end for yyj2341 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -29026,16 +30985,16 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2182 int - var yyb2182 bool - var yyhl2182 bool = l >= 0 - yyj2182++ - if yyhl2182 { - yyb2182 = yyj2182 > l + var yyj2344 int + var yyb2344 bool + var yyhl2344 bool = l >= 0 + yyj2344++ + if yyhl2344 { + yyb2344 = yyj2344 > l } else { - yyb2182 = r.CheckBreak() + yyb2344 = r.CheckBreak() } - if yyb2182 { + if yyb2344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29043,16 +31002,16 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2183 := &x.ObjectMeta - yyv2183.CodecDecodeSelf(d) + yyv2345 := &x.ObjectMeta + yyv2345.CodecDecodeSelf(d) } - yyj2182++ - if yyhl2182 { - yyb2182 = yyj2182 > l + yyj2344++ + if yyhl2344 { + yyb2344 = yyj2344 > l } else { - yyb2182 = r.CheckBreak() + yyb2344 = r.CheckBreak() } - if yyb2182 { + if yyb2344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29060,21 +31019,21 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2184 := &x.Spec - yyv2184.CodecDecodeSelf(d) + yyv2346 := &x.Spec + yyv2346.CodecDecodeSelf(d) } for { - yyj2182++ - if yyhl2182 { - yyb2182 = yyj2182 > l + yyj2344++ + if yyhl2344 { + yyb2344 = yyj2344 > l } else { - yyb2182 = r.CheckBreak() + yyb2344 = r.CheckBreak() } - if yyb2182 { + if yyb2344 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2182-1, "") + z.DecStructFieldNotFound(yyj2344-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -29086,38 +31045,38 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2185 := z.EncBinary() - _ = yym2185 + yym2347 := z.EncBinary() + _ = yym2347 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2186 := !z.EncBinary() - yy2arr2186 := z.EncBasicHandle().StructToArray - var yyq2186 [4]bool - _, _, _ = yysep2186, yyq2186, yy2arr2186 - const yyr2186 bool = false - yyq2186[0] = x.Kind != "" - yyq2186[1] = x.APIVersion != "" - yyq2186[2] = true - yyq2186[3] = true - var yynn2186 int - if yyr2186 || yy2arr2186 { + yysep2348 := !z.EncBinary() + yy2arr2348 := z.EncBasicHandle().StructToArray + var yyq2348 [4]bool + _, _, _ = yysep2348, yyq2348, yy2arr2348 + const yyr2348 bool = false + yyq2348[0] = x.Kind != "" + yyq2348[1] = x.APIVersion != "" + yyq2348[2] = true + yyq2348[3] = true + var yynn2348 int + if yyr2348 || yy2arr2348 { r.EncodeArrayStart(4) } else { - yynn2186 = 0 - for _, b := range yyq2186 { + yynn2348 = 0 + for _, b := range yyq2348 { if b { - yynn2186++ + yynn2348++ } } - r.EncodeMapStart(yynn2186) - yynn2186 = 0 + r.EncodeMapStart(yynn2348) + yynn2348 = 0 } - if yyr2186 || yy2arr2186 { + if yyr2348 || yy2arr2348 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2186[0] { - yym2188 := z.EncBinary() - _ = yym2188 + if yyq2348[0] { + yym2350 := z.EncBinary() + _ = yym2350 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -29126,23 +31085,23 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2186[0] { + if yyq2348[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2189 := z.EncBinary() - _ = yym2189 + yym2351 := z.EncBinary() + _ = yym2351 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2186 || yy2arr2186 { + if yyr2348 || yy2arr2348 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2186[1] { - yym2191 := z.EncBinary() - _ = yym2191 + if yyq2348[1] { + yym2353 := z.EncBinary() + _ = yym2353 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -29151,53 +31110,53 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2186[1] { + if yyq2348[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2192 := z.EncBinary() - _ = yym2192 + yym2354 := z.EncBinary() + _ = yym2354 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2186 || yy2arr2186 { + if yyr2348 || yy2arr2348 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2186[2] { - yy2194 := &x.ObjectMeta - yy2194.CodecEncodeSelf(e) + if yyq2348[2] { + yy2356 := &x.ObjectMeta + yy2356.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2186[2] { + if yyq2348[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2195 := &x.ObjectMeta - yy2195.CodecEncodeSelf(e) + yy2357 := &x.ObjectMeta + yy2357.CodecEncodeSelf(e) } } - if yyr2186 || yy2arr2186 { + if yyr2348 || yy2arr2348 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2186[3] { - yy2197 := &x.Template - yy2197.CodecEncodeSelf(e) + if yyq2348[3] { + yy2359 := &x.Template + yy2359.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2186[3] { + if yyq2348[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2198 := &x.Template - yy2198.CodecEncodeSelf(e) + yy2360 := &x.Template + yy2360.CodecEncodeSelf(e) } } - if yyr2186 || yy2arr2186 { + if yyr2348 || yy2arr2348 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -29210,25 +31169,25 @@ func (x *PodTemplate) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2199 := z.DecBinary() - _ = yym2199 + yym2361 := z.DecBinary() + _ = yym2361 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2200 := r.ContainerType() - if yyct2200 == codecSelferValueTypeMap1234 { - yyl2200 := r.ReadMapStart() - if yyl2200 == 0 { + yyct2362 := r.ContainerType() + if yyct2362 == codecSelferValueTypeMap1234 { + yyl2362 := r.ReadMapStart() + if yyl2362 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2200, d) + x.codecDecodeSelfFromMap(yyl2362, d) } - } else if yyct2200 == codecSelferValueTypeArray1234 { - yyl2200 := r.ReadArrayStart() - if yyl2200 == 0 { + } else if yyct2362 == codecSelferValueTypeArray1234 { + yyl2362 := r.ReadArrayStart() + if yyl2362 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2200, d) + x.codecDecodeSelfFromArray(yyl2362, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -29240,12 +31199,12 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2201Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2201Slc - var yyhl2201 bool = l >= 0 - for yyj2201 := 0; ; yyj2201++ { - if yyhl2201 { - if yyj2201 >= l { + var yys2363Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2363Slc + var yyhl2363 bool = l >= 0 + for yyj2363 := 0; ; yyj2363++ { + if yyhl2363 { + if yyj2363 >= l { break } } else { @@ -29254,10 +31213,10 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2201Slc = r.DecodeBytes(yys2201Slc, true, true) - yys2201 := string(yys2201Slc) + yys2363Slc = r.DecodeBytes(yys2363Slc, true, true) + yys2363 := string(yys2363Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2201 { + switch yys2363 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -29274,20 +31233,20 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2204 := &x.ObjectMeta - yyv2204.CodecDecodeSelf(d) + yyv2366 := &x.ObjectMeta + yyv2366.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { - yyv2205 := &x.Template - yyv2205.CodecDecodeSelf(d) + yyv2367 := &x.Template + yyv2367.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2201) - } // end switch yys2201 - } // end for yyj2201 + z.DecStructFieldNotFound(-1, yys2363) + } // end switch yys2363 + } // end for yyj2363 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -29295,16 +31254,16 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2206 int - var yyb2206 bool - var yyhl2206 bool = l >= 0 - yyj2206++ - if yyhl2206 { - yyb2206 = yyj2206 > l + var yyj2368 int + var yyb2368 bool + var yyhl2368 bool = l >= 0 + yyj2368++ + if yyhl2368 { + yyb2368 = yyj2368 > l } else { - yyb2206 = r.CheckBreak() + yyb2368 = r.CheckBreak() } - if yyb2206 { + if yyb2368 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29314,13 +31273,13 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2206++ - if yyhl2206 { - yyb2206 = yyj2206 > l + yyj2368++ + if yyhl2368 { + yyb2368 = yyj2368 > l } else { - yyb2206 = r.CheckBreak() + yyb2368 = r.CheckBreak() } - if yyb2206 { + if yyb2368 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29330,13 +31289,13 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2206++ - if yyhl2206 { - yyb2206 = yyj2206 > l + yyj2368++ + if yyhl2368 { + yyb2368 = yyj2368 > l } else { - yyb2206 = r.CheckBreak() + yyb2368 = r.CheckBreak() } - if yyb2206 { + if yyb2368 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29344,16 +31303,16 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2209 := &x.ObjectMeta - yyv2209.CodecDecodeSelf(d) + yyv2371 := &x.ObjectMeta + yyv2371.CodecDecodeSelf(d) } - yyj2206++ - if yyhl2206 { - yyb2206 = yyj2206 > l + yyj2368++ + if yyhl2368 { + yyb2368 = yyj2368 > l } else { - yyb2206 = r.CheckBreak() + yyb2368 = r.CheckBreak() } - if yyb2206 { + if yyb2368 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29361,21 +31320,21 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { - yyv2210 := &x.Template - yyv2210.CodecDecodeSelf(d) + yyv2372 := &x.Template + yyv2372.CodecDecodeSelf(d) } for { - yyj2206++ - if yyhl2206 { - yyb2206 = yyj2206 > l + yyj2368++ + if yyhl2368 { + yyb2368 = yyj2368 > l } else { - yyb2206 = r.CheckBreak() + yyb2368 = r.CheckBreak() } - if yyb2206 { + if yyb2368 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2206-1, "") + z.DecStructFieldNotFound(yyj2368-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -29387,37 +31346,37 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2211 := z.EncBinary() - _ = yym2211 + yym2373 := z.EncBinary() + _ = yym2373 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2212 := !z.EncBinary() - yy2arr2212 := z.EncBasicHandle().StructToArray - var yyq2212 [4]bool - _, _, _ = yysep2212, yyq2212, yy2arr2212 - const yyr2212 bool = false - yyq2212[0] = x.Kind != "" - yyq2212[1] = x.APIVersion != "" - yyq2212[2] = true - var yynn2212 int - if yyr2212 || yy2arr2212 { + yysep2374 := !z.EncBinary() + yy2arr2374 := z.EncBasicHandle().StructToArray + var yyq2374 [4]bool + _, _, _ = yysep2374, yyq2374, yy2arr2374 + const yyr2374 bool = false + yyq2374[0] = x.Kind != "" + yyq2374[1] = x.APIVersion != "" + yyq2374[2] = true + var yynn2374 int + if yyr2374 || yy2arr2374 { r.EncodeArrayStart(4) } else { - yynn2212 = 1 - for _, b := range yyq2212 { + yynn2374 = 1 + for _, b := range yyq2374 { if b { - yynn2212++ + yynn2374++ } } - r.EncodeMapStart(yynn2212) - yynn2212 = 0 + r.EncodeMapStart(yynn2374) + yynn2374 = 0 } - if yyr2212 || yy2arr2212 { + if yyr2374 || yy2arr2374 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2212[0] { - yym2214 := z.EncBinary() - _ = yym2214 + if yyq2374[0] { + yym2376 := z.EncBinary() + _ = yym2376 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -29426,23 +31385,23 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2212[0] { + if yyq2374[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2215 := z.EncBinary() - _ = yym2215 + yym2377 := z.EncBinary() + _ = yym2377 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2212 || yy2arr2212 { + if yyr2374 || yy2arr2374 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2212[1] { - yym2217 := z.EncBinary() - _ = yym2217 + if yyq2374[1] { + yym2379 := z.EncBinary() + _ = yym2379 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -29451,54 +31410,54 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2212[1] { + if yyq2374[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2218 := z.EncBinary() - _ = yym2218 + yym2380 := z.EncBinary() + _ = yym2380 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2212 || yy2arr2212 { + if yyr2374 || yy2arr2374 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2212[2] { - yy2220 := &x.ListMeta - yym2221 := z.EncBinary() - _ = yym2221 + if yyq2374[2] { + yy2382 := &x.ListMeta + yym2383 := z.EncBinary() + _ = yym2383 if false { - } else if z.HasExtensions() && z.EncExt(yy2220) { + } else if z.HasExtensions() && z.EncExt(yy2382) { } else { - z.EncFallback(yy2220) + z.EncFallback(yy2382) } } else { r.EncodeNil() } } else { - if yyq2212[2] { + if yyq2374[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2222 := &x.ListMeta - yym2223 := z.EncBinary() - _ = yym2223 + yy2384 := &x.ListMeta + yym2385 := z.EncBinary() + _ = yym2385 if false { - } else if z.HasExtensions() && z.EncExt(yy2222) { + } else if z.HasExtensions() && z.EncExt(yy2384) { } else { - z.EncFallback(yy2222) + z.EncFallback(yy2384) } } } - if yyr2212 || yy2arr2212 { + if yyr2374 || yy2arr2374 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2225 := z.EncBinary() - _ = yym2225 + yym2387 := z.EncBinary() + _ = yym2387 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) @@ -29511,15 +31470,15 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2226 := z.EncBinary() - _ = yym2226 + yym2388 := z.EncBinary() + _ = yym2388 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } - if yyr2212 || yy2arr2212 { + if yyr2374 || yy2arr2374 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -29529,1879 +31488,6 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { } func (x *PodTemplateList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2227 := z.DecBinary() - _ = yym2227 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2228 := r.ContainerType() - if yyct2228 == codecSelferValueTypeMap1234 { - yyl2228 := r.ReadMapStart() - if yyl2228 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2228, d) - } - } else if yyct2228 == codecSelferValueTypeArray1234 { - yyl2228 := r.ReadArrayStart() - if yyl2228 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2228, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2229Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2229Slc - var yyhl2229 bool = l >= 0 - for yyj2229 := 0; ; yyj2229++ { - if yyhl2229 { - if yyj2229 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2229Slc = r.DecodeBytes(yys2229Slc, true, true) - yys2229 := string(yys2229Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2229 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv2232 := &x.ListMeta - yym2233 := z.DecBinary() - _ = yym2233 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2232) { - } else { - z.DecFallback(yyv2232, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2234 := &x.Items - yym2235 := z.DecBinary() - _ = yym2235 - if false { - } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv2234), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2229) - } // end switch yys2229 - } // end for yyj2229 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2236 int - var yyb2236 bool - var yyhl2236 bool = l >= 0 - yyj2236++ - if yyhl2236 { - yyb2236 = yyj2236 > l - } else { - yyb2236 = r.CheckBreak() - } - if yyb2236 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2236++ - if yyhl2236 { - yyb2236 = yyj2236 > l - } else { - yyb2236 = r.CheckBreak() - } - if yyb2236 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2236++ - if yyhl2236 { - yyb2236 = yyj2236 > l - } else { - yyb2236 = r.CheckBreak() - } - if yyb2236 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv2239 := &x.ListMeta - yym2240 := z.DecBinary() - _ = yym2240 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2239) { - } else { - z.DecFallback(yyv2239, false) - } - } - yyj2236++ - if yyhl2236 { - yyb2236 = yyj2236 > l - } else { - yyb2236 = r.CheckBreak() - } - if yyb2236 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2241 := &x.Items - yym2242 := z.DecBinary() - _ = yym2242 - if false { - } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv2241), d) - } - } - for { - yyj2236++ - if yyhl2236 { - yyb2236 = yyj2236 > l - } else { - yyb2236 = r.CheckBreak() - } - if yyb2236 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2236-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2243 := z.EncBinary() - _ = yym2243 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2244 := !z.EncBinary() - yy2arr2244 := z.EncBasicHandle().StructToArray - var yyq2244 [3]bool - _, _, _ = yysep2244, yyq2244, yy2arr2244 - const yyr2244 bool = false - yyq2244[2] = x.Template != nil - var yynn2244 int - if yyr2244 || yy2arr2244 { - r.EncodeArrayStart(3) - } else { - yynn2244 = 2 - for _, b := range yyq2244 { - if b { - yynn2244++ - } - } - r.EncodeMapStart(yynn2244) - yynn2244 = 0 - } - if yyr2244 || yy2arr2244 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2246 := z.EncBinary() - _ = yym2246 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("replicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2247 := z.EncBinary() - _ = yym2247 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } - if yyr2244 || yy2arr2244 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Selector == nil { - r.EncodeNil() - } else { - yym2249 := z.EncBinary() - _ = yym2249 - if false { - } else { - z.F.EncMapStringStringV(x.Selector, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selector")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Selector == nil { - r.EncodeNil() - } else { - yym2250 := z.EncBinary() - _ = yym2250 - if false { - } else { - z.F.EncMapStringStringV(x.Selector, false, e) - } - } - } - if yyr2244 || yy2arr2244 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2244[2] { - if x.Template == nil { - r.EncodeNil() - } else { - x.Template.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq2244[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("template")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Template == nil { - r.EncodeNil() - } else { - x.Template.CodecEncodeSelf(e) - } - } - } - if yyr2244 || yy2arr2244 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ReplicationControllerSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2252 := z.DecBinary() - _ = yym2252 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2253 := r.ContainerType() - if yyct2253 == codecSelferValueTypeMap1234 { - yyl2253 := r.ReadMapStart() - if yyl2253 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2253, d) - } - } else if yyct2253 == codecSelferValueTypeArray1234 { - yyl2253 := r.ReadArrayStart() - if yyl2253 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2253, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2254Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2254Slc - var yyhl2254 bool = l >= 0 - for yyj2254 := 0; ; yyj2254++ { - if yyhl2254 { - if yyj2254 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2254Slc = r.DecodeBytes(yys2254Slc, true, true) - yys2254 := string(yys2254Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2254 { - case "replicas": - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - case "selector": - if r.TryDecodeAsNil() { - x.Selector = nil - } else { - yyv2256 := &x.Selector - yym2257 := z.DecBinary() - _ = yym2257 - if false { - } else { - z.F.DecMapStringStringX(yyv2256, false, d) - } - } - case "template": - if r.TryDecodeAsNil() { - if x.Template != nil { - x.Template = nil - } - } else { - if x.Template == nil { - x.Template = new(PodTemplateSpec) - } - x.Template.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys2254) - } // end switch yys2254 - } // end for yyj2254 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2259 int - var yyb2259 bool - var yyhl2259 bool = l >= 0 - yyj2259++ - if yyhl2259 { - yyb2259 = yyj2259 > l - } else { - yyb2259 = r.CheckBreak() - } - if yyb2259 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - yyj2259++ - if yyhl2259 { - yyb2259 = yyj2259 > l - } else { - yyb2259 = r.CheckBreak() - } - if yyb2259 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Selector = nil - } else { - yyv2261 := &x.Selector - yym2262 := z.DecBinary() - _ = yym2262 - if false { - } else { - z.F.DecMapStringStringX(yyv2261, false, d) - } - } - yyj2259++ - if yyhl2259 { - yyb2259 = yyj2259 > l - } else { - yyb2259 = r.CheckBreak() - } - if yyb2259 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Template != nil { - x.Template = nil - } - } else { - if x.Template == nil { - x.Template = new(PodTemplateSpec) - } - x.Template.CodecDecodeSelf(d) - } - for { - yyj2259++ - if yyhl2259 { - yyb2259 = yyj2259 > l - } else { - yyb2259 = r.CheckBreak() - } - if yyb2259 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2259-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2264 := z.EncBinary() - _ = yym2264 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2265 := !z.EncBinary() - yy2arr2265 := z.EncBasicHandle().StructToArray - var yyq2265 [3]bool - _, _, _ = yysep2265, yyq2265, yy2arr2265 - const yyr2265 bool = false - yyq2265[1] = x.FullyLabeledReplicas != 0 - yyq2265[2] = x.ObservedGeneration != 0 - var yynn2265 int - if yyr2265 || yy2arr2265 { - r.EncodeArrayStart(3) - } else { - yynn2265 = 1 - for _, b := range yyq2265 { - if b { - yynn2265++ - } - } - r.EncodeMapStart(yynn2265) - yynn2265 = 0 - } - if yyr2265 || yy2arr2265 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2267 := z.EncBinary() - _ = yym2267 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("replicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2268 := z.EncBinary() - _ = yym2268 - if false { - } else { - r.EncodeInt(int64(x.Replicas)) - } - } - if yyr2265 || yy2arr2265 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2265[1] { - yym2270 := z.EncBinary() - _ = yym2270 - if false { - } else { - r.EncodeInt(int64(x.FullyLabeledReplicas)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq2265[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2271 := z.EncBinary() - _ = yym2271 - if false { - } else { - r.EncodeInt(int64(x.FullyLabeledReplicas)) - } - } - } - if yyr2265 || yy2arr2265 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2265[2] { - yym2273 := z.EncBinary() - _ = yym2273 - if false { - } else { - r.EncodeInt(int64(x.ObservedGeneration)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq2265[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2274 := z.EncBinary() - _ = yym2274 - if false { - } else { - r.EncodeInt(int64(x.ObservedGeneration)) - } - } - } - if yyr2265 || yy2arr2265 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ReplicationControllerStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2275 := z.DecBinary() - _ = yym2275 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2276 := r.ContainerType() - if yyct2276 == codecSelferValueTypeMap1234 { - yyl2276 := r.ReadMapStart() - if yyl2276 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2276, d) - } - } else if yyct2276 == codecSelferValueTypeArray1234 { - yyl2276 := r.ReadArrayStart() - if yyl2276 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2276, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2277Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2277Slc - var yyhl2277 bool = l >= 0 - for yyj2277 := 0; ; yyj2277++ { - if yyhl2277 { - if yyj2277 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2277Slc = r.DecodeBytes(yys2277Slc, true, true) - yys2277 := string(yys2277Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2277 { - case "replicas": - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - case "fullyLabeledReplicas": - if r.TryDecodeAsNil() { - x.FullyLabeledReplicas = 0 - } else { - x.FullyLabeledReplicas = int32(r.DecodeInt(32)) - } - case "observedGeneration": - if r.TryDecodeAsNil() { - x.ObservedGeneration = 0 - } else { - x.ObservedGeneration = int64(r.DecodeInt(64)) - } - default: - z.DecStructFieldNotFound(-1, yys2277) - } // end switch yys2277 - } // end for yyj2277 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2281 int - var yyb2281 bool - var yyhl2281 bool = l >= 0 - yyj2281++ - if yyhl2281 { - yyb2281 = yyj2281 > l - } else { - yyb2281 = r.CheckBreak() - } - if yyb2281 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Replicas = 0 - } else { - x.Replicas = int32(r.DecodeInt(32)) - } - yyj2281++ - if yyhl2281 { - yyb2281 = yyj2281 > l - } else { - yyb2281 = r.CheckBreak() - } - if yyb2281 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FullyLabeledReplicas = 0 - } else { - x.FullyLabeledReplicas = int32(r.DecodeInt(32)) - } - yyj2281++ - if yyhl2281 { - yyb2281 = yyj2281 > l - } else { - yyb2281 = r.CheckBreak() - } - if yyb2281 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObservedGeneration = 0 - } else { - x.ObservedGeneration = int64(r.DecodeInt(64)) - } - for { - yyj2281++ - if yyhl2281 { - yyb2281 = yyj2281 > l - } else { - yyb2281 = r.CheckBreak() - } - if yyb2281 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2281-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2285 := z.EncBinary() - _ = yym2285 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2286 := !z.EncBinary() - yy2arr2286 := z.EncBasicHandle().StructToArray - var yyq2286 [5]bool - _, _, _ = yysep2286, yyq2286, yy2arr2286 - const yyr2286 bool = false - yyq2286[0] = x.Kind != "" - yyq2286[1] = x.APIVersion != "" - yyq2286[2] = true - yyq2286[3] = true - yyq2286[4] = true - var yynn2286 int - if yyr2286 || yy2arr2286 { - r.EncodeArrayStart(5) - } else { - yynn2286 = 0 - for _, b := range yyq2286 { - if b { - yynn2286++ - } - } - r.EncodeMapStart(yynn2286) - yynn2286 = 0 - } - if yyr2286 || yy2arr2286 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2286[0] { - yym2288 := z.EncBinary() - _ = yym2288 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2286[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2289 := z.EncBinary() - _ = yym2289 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2286 || yy2arr2286 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2286[1] { - yym2291 := z.EncBinary() - _ = yym2291 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2286[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2292 := z.EncBinary() - _ = yym2292 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2286 || yy2arr2286 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2286[2] { - yy2294 := &x.ObjectMeta - yy2294.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2286[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2295 := &x.ObjectMeta - yy2295.CodecEncodeSelf(e) - } - } - if yyr2286 || yy2arr2286 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2286[3] { - yy2297 := &x.Spec - yy2297.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2286[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2298 := &x.Spec - yy2298.CodecEncodeSelf(e) - } - } - if yyr2286 || yy2arr2286 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2286[4] { - yy2300 := &x.Status - yy2300.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2286[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2301 := &x.Status - yy2301.CodecEncodeSelf(e) - } - } - if yyr2286 || yy2arr2286 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ReplicationController) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2302 := z.DecBinary() - _ = yym2302 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2303 := r.ContainerType() - if yyct2303 == codecSelferValueTypeMap1234 { - yyl2303 := r.ReadMapStart() - if yyl2303 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2303, d) - } - } else if yyct2303 == codecSelferValueTypeArray1234 { - yyl2303 := r.ReadArrayStart() - if yyl2303 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2303, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2304Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2304Slc - var yyhl2304 bool = l >= 0 - for yyj2304 := 0; ; yyj2304++ { - if yyhl2304 { - if yyj2304 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2304Slc = r.DecodeBytes(yys2304Slc, true, true) - yys2304 := string(yys2304Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2304 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv2307 := &x.ObjectMeta - yyv2307.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = ReplicationControllerSpec{} - } else { - yyv2308 := &x.Spec - yyv2308.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = ReplicationControllerStatus{} - } else { - yyv2309 := &x.Status - yyv2309.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys2304) - } // end switch yys2304 - } // end for yyj2304 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2310 int - var yyb2310 bool - var yyhl2310 bool = l >= 0 - yyj2310++ - if yyhl2310 { - yyb2310 = yyj2310 > l - } else { - yyb2310 = r.CheckBreak() - } - if yyb2310 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2310++ - if yyhl2310 { - yyb2310 = yyj2310 > l - } else { - yyb2310 = r.CheckBreak() - } - if yyb2310 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2310++ - if yyhl2310 { - yyb2310 = yyj2310 > l - } else { - yyb2310 = r.CheckBreak() - } - if yyb2310 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv2313 := &x.ObjectMeta - yyv2313.CodecDecodeSelf(d) - } - yyj2310++ - if yyhl2310 { - yyb2310 = yyj2310 > l - } else { - yyb2310 = r.CheckBreak() - } - if yyb2310 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = ReplicationControllerSpec{} - } else { - yyv2314 := &x.Spec - yyv2314.CodecDecodeSelf(d) - } - yyj2310++ - if yyhl2310 { - yyb2310 = yyj2310 > l - } else { - yyb2310 = r.CheckBreak() - } - if yyb2310 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = ReplicationControllerStatus{} - } else { - yyv2315 := &x.Status - yyv2315.CodecDecodeSelf(d) - } - for { - yyj2310++ - if yyhl2310 { - yyb2310 = yyj2310 > l - } else { - yyb2310 = r.CheckBreak() - } - if yyb2310 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2310-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2316 := z.EncBinary() - _ = yym2316 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2317 := !z.EncBinary() - yy2arr2317 := z.EncBasicHandle().StructToArray - var yyq2317 [4]bool - _, _, _ = yysep2317, yyq2317, yy2arr2317 - const yyr2317 bool = false - yyq2317[0] = x.Kind != "" - yyq2317[1] = x.APIVersion != "" - yyq2317[2] = true - var yynn2317 int - if yyr2317 || yy2arr2317 { - r.EncodeArrayStart(4) - } else { - yynn2317 = 1 - for _, b := range yyq2317 { - if b { - yynn2317++ - } - } - r.EncodeMapStart(yynn2317) - yynn2317 = 0 - } - if yyr2317 || yy2arr2317 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2317[0] { - yym2319 := z.EncBinary() - _ = yym2319 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2317[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2320 := z.EncBinary() - _ = yym2320 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2317 || yy2arr2317 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2317[1] { - yym2322 := z.EncBinary() - _ = yym2322 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2317[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2323 := z.EncBinary() - _ = yym2323 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2317 || yy2arr2317 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2317[2] { - yy2325 := &x.ListMeta - yym2326 := z.EncBinary() - _ = yym2326 - if false { - } else if z.HasExtensions() && z.EncExt(yy2325) { - } else { - z.EncFallback(yy2325) - } - } else { - r.EncodeNil() - } - } else { - if yyq2317[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2327 := &x.ListMeta - yym2328 := z.EncBinary() - _ = yym2328 - if false { - } else if z.HasExtensions() && z.EncExt(yy2327) { - } else { - z.EncFallback(yy2327) - } - } - } - if yyr2317 || yy2arr2317 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2330 := z.EncBinary() - _ = yym2330 - if false { - } else { - h.encSliceReplicationController(([]ReplicationController)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2331 := z.EncBinary() - _ = yym2331 - if false { - } else { - h.encSliceReplicationController(([]ReplicationController)(x.Items), e) - } - } - } - if yyr2317 || yy2arr2317 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ReplicationControllerList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2332 := z.DecBinary() - _ = yym2332 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2333 := r.ContainerType() - if yyct2333 == codecSelferValueTypeMap1234 { - yyl2333 := r.ReadMapStart() - if yyl2333 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2333, d) - } - } else if yyct2333 == codecSelferValueTypeArray1234 { - yyl2333 := r.ReadArrayStart() - if yyl2333 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2333, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2334Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2334Slc - var yyhl2334 bool = l >= 0 - for yyj2334 := 0; ; yyj2334++ { - if yyhl2334 { - if yyj2334 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2334Slc = r.DecodeBytes(yys2334Slc, true, true) - yys2334 := string(yys2334Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2334 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv2337 := &x.ListMeta - yym2338 := z.DecBinary() - _ = yym2338 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2337) { - } else { - z.DecFallback(yyv2337, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2339 := &x.Items - yym2340 := z.DecBinary() - _ = yym2340 - if false { - } else { - h.decSliceReplicationController((*[]ReplicationController)(yyv2339), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2334) - } // end switch yys2334 - } // end for yyj2334 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2341 int - var yyb2341 bool - var yyhl2341 bool = l >= 0 - yyj2341++ - if yyhl2341 { - yyb2341 = yyj2341 > l - } else { - yyb2341 = r.CheckBreak() - } - if yyb2341 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2341++ - if yyhl2341 { - yyb2341 = yyj2341 > l - } else { - yyb2341 = r.CheckBreak() - } - if yyb2341 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2341++ - if yyhl2341 { - yyb2341 = yyj2341 > l - } else { - yyb2341 = r.CheckBreak() - } - if yyb2341 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv2344 := &x.ListMeta - yym2345 := z.DecBinary() - _ = yym2345 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2344) { - } else { - z.DecFallback(yyv2344, false) - } - } - yyj2341++ - if yyhl2341 { - yyb2341 = yyj2341 > l - } else { - yyb2341 = r.CheckBreak() - } - if yyb2341 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2346 := &x.Items - yym2347 := z.DecBinary() - _ = yym2347 - if false { - } else { - h.decSliceReplicationController((*[]ReplicationController)(yyv2346), d) - } - } - for { - yyj2341++ - if yyhl2341 { - yyb2341 = yyj2341 > l - } else { - yyb2341 = r.CheckBreak() - } - if yyb2341 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2341-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2348 := z.EncBinary() - _ = yym2348 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2349 := !z.EncBinary() - yy2arr2349 := z.EncBasicHandle().StructToArray - var yyq2349 [4]bool - _, _, _ = yysep2349, yyq2349, yy2arr2349 - const yyr2349 bool = false - yyq2349[0] = x.Kind != "" - yyq2349[1] = x.APIVersion != "" - yyq2349[2] = true - var yynn2349 int - if yyr2349 || yy2arr2349 { - r.EncodeArrayStart(4) - } else { - yynn2349 = 1 - for _, b := range yyq2349 { - if b { - yynn2349++ - } - } - r.EncodeMapStart(yynn2349) - yynn2349 = 0 - } - if yyr2349 || yy2arr2349 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2349[0] { - yym2351 := z.EncBinary() - _ = yym2351 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2349[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2352 := z.EncBinary() - _ = yym2352 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr2349 || yy2arr2349 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2349[1] { - yym2354 := z.EncBinary() - _ = yym2354 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2349[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2355 := z.EncBinary() - _ = yym2355 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr2349 || yy2arr2349 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2349[2] { - yy2357 := &x.ListMeta - yym2358 := z.EncBinary() - _ = yym2358 - if false { - } else if z.HasExtensions() && z.EncExt(yy2357) { - } else { - z.EncFallback(yy2357) - } - } else { - r.EncodeNil() - } - } else { - if yyq2349[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2359 := &x.ListMeta - yym2360 := z.EncBinary() - _ = yym2360 - if false { - } else if z.HasExtensions() && z.EncExt(yy2359) { - } else { - z.EncFallback(yy2359) - } - } - } - if yyr2349 || yy2arr2349 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2362 := z.EncBinary() - _ = yym2362 - if false { - } else { - h.encSliceService(([]Service)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym2363 := z.EncBinary() - _ = yym2363 - if false { - } else { - h.encSliceService(([]Service)(x.Items), e) - } - } - } - if yyr2349 || yy2arr2349 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ServiceList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2364 := z.DecBinary() - _ = yym2364 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2365 := r.ContainerType() - if yyct2365 == codecSelferValueTypeMap1234 { - yyl2365 := r.ReadMapStart() - if yyl2365 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2365, d) - } - } else if yyct2365 == codecSelferValueTypeArray1234 { - yyl2365 := r.ReadArrayStart() - if yyl2365 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2365, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2366Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2366Slc - var yyhl2366 bool = l >= 0 - for yyj2366 := 0; ; yyj2366++ { - if yyhl2366 { - if yyj2366 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2366Slc = r.DecodeBytes(yys2366Slc, true, true) - yys2366 := string(yys2366Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2366 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv2369 := &x.ListMeta - yym2370 := z.DecBinary() - _ = yym2370 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2369) { - } else { - z.DecFallback(yyv2369, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2371 := &x.Items - yym2372 := z.DecBinary() - _ = yym2372 - if false { - } else { - h.decSliceService((*[]Service)(yyv2371), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2366) - } // end switch yys2366 - } // end for yyj2366 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2373 int - var yyb2373 bool - var yyhl2373 bool = l >= 0 - yyj2373++ - if yyhl2373 { - yyb2373 = yyj2373 > l - } else { - yyb2373 = r.CheckBreak() - } - if yyb2373 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj2373++ - if yyhl2373 { - yyb2373 = yyj2373 > l - } else { - yyb2373 = r.CheckBreak() - } - if yyb2373 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj2373++ - if yyhl2373 { - yyb2373 = yyj2373 > l - } else { - yyb2373 = r.CheckBreak() - } - if yyb2373 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv2376 := &x.ListMeta - yym2377 := z.DecBinary() - _ = yym2377 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2376) { - } else { - z.DecFallback(yyv2376, false) - } - } - yyj2373++ - if yyhl2373 { - yyb2373 = yyj2373 > l - } else { - yyb2373 = r.CheckBreak() - } - if yyb2373 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv2378 := &x.Items - yym2379 := z.DecBinary() - _ = yym2379 - if false { - } else { - h.decSliceService((*[]Service)(yyv2378), d) - } - } - for { - yyj2373++ - if yyhl2373 { - yyb2373 = yyj2373 > l - } else { - yyb2373 = r.CheckBreak() - } - if yyb2373 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2373-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym2380 := z.EncBinary() - _ = yym2380 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *ServiceAffinity) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2381 := z.DecBinary() - _ = yym2381 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x ServiceType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym2382 := z.EncBinary() - _ = yym2382 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *ServiceType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2383 := z.DecBinary() - _ = yym2383 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *ServiceStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2384 := z.EncBinary() - _ = yym2384 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2385 := !z.EncBinary() - yy2arr2385 := z.EncBasicHandle().StructToArray - var yyq2385 [1]bool - _, _, _ = yysep2385, yyq2385, yy2arr2385 - const yyr2385 bool = false - yyq2385[0] = true - var yynn2385 int - if yyr2385 || yy2arr2385 { - r.EncodeArrayStart(1) - } else { - yynn2385 = 0 - for _, b := range yyq2385 { - if b { - yynn2385++ - } - } - r.EncodeMapStart(yynn2385) - yynn2385 = 0 - } - if yyr2385 || yy2arr2385 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2385[0] { - yy2387 := &x.LoadBalancer - yy2387.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq2385[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2388 := &x.LoadBalancer - yy2388.CodecEncodeSelf(e) - } - } - if yyr2385 || yy2arr2385 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ServiceStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -31431,7 +31517,7 @@ func (x *ServiceStatus) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -31453,12 +31539,42 @@ func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { yys2391 := string(yys2391Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2391 { - case "loadBalancer": + case "kind": if r.TryDecodeAsNil() { - x.LoadBalancer = LoadBalancerStatus{} + x.Kind = "" } else { - yyv2392 := &x.LoadBalancer - yyv2392.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2394 := &x.ListMeta + yym2395 := z.DecBinary() + _ = yym2395 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2394) { + } else { + z.DecFallback(yyv2394, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2396 := &x.Items + yym2397 := z.DecBinary() + _ = yym2397 + if false { + } else { + h.decSlicePodTemplate((*[]PodTemplate)(yyv2396), d) + } } default: z.DecStructFieldNotFound(-1, yys2391) @@ -31467,111 +31583,207 @@ func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2393 int - var yyb2393 bool - var yyhl2393 bool = l >= 0 - yyj2393++ - if yyhl2393 { - yyb2393 = yyj2393 > l + var yyj2398 int + var yyb2398 bool + var yyhl2398 bool = l >= 0 + yyj2398++ + if yyhl2398 { + yyb2398 = yyj2398 > l } else { - yyb2393 = r.CheckBreak() + yyb2398 = r.CheckBreak() } - if yyb2393 { + if yyb2398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.LoadBalancer = LoadBalancerStatus{} + x.Kind = "" } else { - yyv2394 := &x.LoadBalancer - yyv2394.CodecDecodeSelf(d) + x.Kind = string(r.DecodeString()) + } + yyj2398++ + if yyhl2398 { + yyb2398 = yyj2398 > l + } else { + yyb2398 = r.CheckBreak() + } + if yyb2398 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2398++ + if yyhl2398 { + yyb2398 = yyj2398 > l + } else { + yyb2398 = r.CheckBreak() + } + if yyb2398 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2401 := &x.ListMeta + yym2402 := z.DecBinary() + _ = yym2402 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2401) { + } else { + z.DecFallback(yyv2401, false) + } + } + yyj2398++ + if yyhl2398 { + yyb2398 = yyj2398 > l + } else { + yyb2398 = r.CheckBreak() + } + if yyb2398 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2403 := &x.Items + yym2404 := z.DecBinary() + _ = yym2404 + if false { + } else { + h.decSlicePodTemplate((*[]PodTemplate)(yyv2403), d) + } } for { - yyj2393++ - if yyhl2393 { - yyb2393 = yyj2393 > l + yyj2398++ + if yyhl2398 { + yyb2398 = yyj2398 > l } else { - yyb2393 = r.CheckBreak() + yyb2398 = r.CheckBreak() } - if yyb2393 { + if yyb2398 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2393-1, "") + z.DecStructFieldNotFound(yyj2398-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym2395 := z.EncBinary() - _ = yym2395 + yym2405 := z.EncBinary() + _ = yym2405 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2396 := !z.EncBinary() - yy2arr2396 := z.EncBasicHandle().StructToArray - var yyq2396 [1]bool - _, _, _ = yysep2396, yyq2396, yy2arr2396 - const yyr2396 bool = false - yyq2396[0] = len(x.Ingress) != 0 - var yynn2396 int - if yyr2396 || yy2arr2396 { - r.EncodeArrayStart(1) + yysep2406 := !z.EncBinary() + yy2arr2406 := z.EncBasicHandle().StructToArray + var yyq2406 [3]bool + _, _, _ = yysep2406, yyq2406, yy2arr2406 + const yyr2406 bool = false + yyq2406[2] = x.Template != nil + var yynn2406 int + if yyr2406 || yy2arr2406 { + r.EncodeArrayStart(3) } else { - yynn2396 = 0 - for _, b := range yyq2396 { + yynn2406 = 2 + for _, b := range yyq2406 { if b { - yynn2396++ + yynn2406++ } } - r.EncodeMapStart(yynn2396) - yynn2396 = 0 + r.EncodeMapStart(yynn2406) + yynn2406 = 0 } - if yyr2396 || yy2arr2396 { + if yyr2406 || yy2arr2406 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2396[0] { - if x.Ingress == nil { + yym2408 := z.EncBinary() + _ = yym2408 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("replicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2409 := z.EncBinary() + _ = yym2409 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } + if yyr2406 || yy2arr2406 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Selector == nil { + r.EncodeNil() + } else { + yym2411 := z.EncBinary() + _ = yym2411 + if false { + } else { + z.F.EncMapStringStringV(x.Selector, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("selector")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Selector == nil { + r.EncodeNil() + } else { + yym2412 := z.EncBinary() + _ = yym2412 + if false { + } else { + z.F.EncMapStringStringV(x.Selector, false, e) + } + } + } + if yyr2406 || yy2arr2406 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2406[2] { + if x.Template == nil { r.EncodeNil() } else { - yym2398 := z.EncBinary() - _ = yym2398 - if false { - } else { - h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) - } + x.Template.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { - if yyq2396[0] { + if yyq2406[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ingress")) + r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Ingress == nil { + if x.Template == nil { r.EncodeNil() } else { - yym2399 := z.EncBinary() - _ = yym2399 - if false { - } else { - h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) - } + x.Template.CodecEncodeSelf(e) } } } - if yyr2396 || yy2arr2396 { + if yyr2406 || yy2arr2406 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31580,29 +31792,29 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *LoadBalancerStatus) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *ReplicationControllerSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2400 := z.DecBinary() - _ = yym2400 + yym2414 := z.DecBinary() + _ = yym2414 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2401 := r.ContainerType() - if yyct2401 == codecSelferValueTypeMap1234 { - yyl2401 := r.ReadMapStart() - if yyl2401 == 0 { + yyct2415 := r.ContainerType() + if yyct2415 == codecSelferValueTypeMap1234 { + yyl2415 := r.ReadMapStart() + if yyl2415 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2401, d) + x.codecDecodeSelfFromMap(yyl2415, d) } - } else if yyct2401 == codecSelferValueTypeArray1234 { - yyl2401 := r.ReadArrayStart() - if yyl2401 == 0 { + } else if yyct2415 == codecSelferValueTypeArray1234 { + yyl2415 := r.ReadArrayStart() + if yyl2415 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2401, d) + x.codecDecodeSelfFromArray(yyl2415, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31610,16 +31822,16 @@ func (x *LoadBalancerStatus) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2402Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2402Slc - var yyhl2402 bool = l >= 0 - for yyj2402 := 0; ; yyj2402++ { - if yyhl2402 { - if yyj2402 >= l { + var yys2416Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2416Slc + var yyhl2416 bool = l >= 0 + for yyj2416 := 0; ; yyj2416++ { + if yyhl2416 { + if yyj2416 >= l { break } } else { @@ -31628,237 +31840,47 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2402Slc = r.DecodeBytes(yys2402Slc, true, true) - yys2402 := string(yys2402Slc) + yys2416Slc = r.DecodeBytes(yys2416Slc, true, true) + yys2416 := string(yys2416Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2402 { - case "ingress": + switch yys2416 { + case "replicas": if r.TryDecodeAsNil() { - x.Ingress = nil + x.Replicas = 0 } else { - yyv2403 := &x.Ingress - yym2404 := z.DecBinary() - _ = yym2404 + x.Replicas = int32(r.DecodeInt(32)) + } + case "selector": + if r.TryDecodeAsNil() { + x.Selector = nil + } else { + yyv2418 := &x.Selector + yym2419 := z.DecBinary() + _ = yym2419 if false { } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2403), d) + z.F.DecMapStringStringX(yyv2418, false, d) } } + case "template": + if r.TryDecodeAsNil() { + if x.Template != nil { + x.Template = nil + } + } else { + if x.Template == nil { + x.Template = new(PodTemplateSpec) + } + x.Template.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys2402) - } // end switch yys2402 - } // end for yyj2402 + z.DecStructFieldNotFound(-1, yys2416) + } // end switch yys2416 + } // end for yyj2416 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2405 int - var yyb2405 bool - var yyhl2405 bool = l >= 0 - yyj2405++ - if yyhl2405 { - yyb2405 = yyj2405 > l - } else { - yyb2405 = r.CheckBreak() - } - if yyb2405 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Ingress = nil - } else { - yyv2406 := &x.Ingress - yym2407 := z.DecBinary() - _ = yym2407 - if false { - } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2406), d) - } - } - for { - yyj2405++ - if yyhl2405 { - yyb2405 = yyj2405 > l - } else { - yyb2405 = r.CheckBreak() - } - if yyb2405 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2405-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2408 := z.EncBinary() - _ = yym2408 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2409 := !z.EncBinary() - yy2arr2409 := z.EncBasicHandle().StructToArray - var yyq2409 [2]bool - _, _, _ = yysep2409, yyq2409, yy2arr2409 - const yyr2409 bool = false - yyq2409[0] = x.IP != "" - yyq2409[1] = x.Hostname != "" - var yynn2409 int - if yyr2409 || yy2arr2409 { - r.EncodeArrayStart(2) - } else { - yynn2409 = 0 - for _, b := range yyq2409 { - if b { - yynn2409++ - } - } - r.EncodeMapStart(yynn2409) - yynn2409 = 0 - } - if yyr2409 || yy2arr2409 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2409[0] { - yym2411 := z.EncBinary() - _ = yym2411 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.IP)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2409[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ip")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2412 := z.EncBinary() - _ = yym2412 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.IP)) - } - } - } - if yyr2409 || yy2arr2409 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2409[1] { - yym2414 := z.EncBinary() - _ = yym2414 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2409[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostname")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2415 := z.EncBinary() - _ = yym2415 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) - } - } - } - if yyr2409 || yy2arr2409 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LoadBalancerIngress) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2416 := z.DecBinary() - _ = yym2416 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2417 := r.ContainerType() - if yyct2417 == codecSelferValueTypeMap1234 { - yyl2417 := r.ReadMapStart() - if yyl2417 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2417, d) - } - } else if yyct2417 == codecSelferValueTypeArray1234 { - yyl2417 := r.ReadArrayStart() - if yyl2417 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2417, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2418Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2418Slc - var yyhl2418 bool = l >= 0 - for yyj2418 := 0; ; yyj2418++ { - if yyhl2418 { - if yyj2418 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2418Slc = r.DecodeBytes(yys2418Slc, true, true) - yys2418 := string(yys2418Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2418 { - case "ip": - if r.TryDecodeAsNil() { - x.IP = "" - } else { - x.IP = string(r.DecodeString()) - } - case "hostname": - if r.TryDecodeAsNil() { - x.Hostname = "" - } else { - x.Hostname = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys2418) - } // end switch yys2418 - } // end for yyj2418 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -31877,9 +31899,9 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.IP = "" + x.Replicas = 0 } else { - x.IP = string(r.DecodeString()) + x.Replicas = int32(r.DecodeInt(32)) } yyj2421++ if yyhl2421 { @@ -31893,9 +31915,36 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Hostname = "" + x.Selector = nil } else { - x.Hostname = string(r.DecodeString()) + yyv2423 := &x.Selector + yym2424 := z.DecBinary() + _ = yym2424 + if false { + } else { + z.F.DecMapStringStringX(yyv2423, false, d) + } + } + yyj2421++ + if yyhl2421 { + yyb2421 = yyj2421 > l + } else { + yyb2421 = r.CheckBreak() + } + if yyb2421 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Template != nil { + x.Template = nil + } + } else { + if x.Template == nil { + x.Template = new(PodTemplateSpec) + } + x.Template.CodecDecodeSelf(d) } for { yyj2421++ @@ -31913,6 +31962,1964 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } +func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2426 := z.EncBinary() + _ = yym2426 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2427 := !z.EncBinary() + yy2arr2427 := z.EncBasicHandle().StructToArray + var yyq2427 [4]bool + _, _, _ = yysep2427, yyq2427, yy2arr2427 + const yyr2427 bool = false + yyq2427[1] = x.FullyLabeledReplicas != 0 + yyq2427[2] = x.ReadyReplicas != 0 + yyq2427[3] = x.ObservedGeneration != 0 + var yynn2427 int + if yyr2427 || yy2arr2427 { + r.EncodeArrayStart(4) + } else { + yynn2427 = 1 + for _, b := range yyq2427 { + if b { + yynn2427++ + } + } + r.EncodeMapStart(yynn2427) + yynn2427 = 0 + } + if yyr2427 || yy2arr2427 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym2429 := z.EncBinary() + _ = yym2429 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("replicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2430 := z.EncBinary() + _ = yym2430 + if false { + } else { + r.EncodeInt(int64(x.Replicas)) + } + } + if yyr2427 || yy2arr2427 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2427[1] { + yym2432 := z.EncBinary() + _ = yym2432 + if false { + } else { + r.EncodeInt(int64(x.FullyLabeledReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2427[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2433 := z.EncBinary() + _ = yym2433 + if false { + } else { + r.EncodeInt(int64(x.FullyLabeledReplicas)) + } + } + } + if yyr2427 || yy2arr2427 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2427[2] { + yym2435 := z.EncBinary() + _ = yym2435 + if false { + } else { + r.EncodeInt(int64(x.ReadyReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2427[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readyReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2436 := z.EncBinary() + _ = yym2436 + if false { + } else { + r.EncodeInt(int64(x.ReadyReplicas)) + } + } + } + if yyr2427 || yy2arr2427 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2427[3] { + yym2438 := z.EncBinary() + _ = yym2438 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2427[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2439 := z.EncBinary() + _ = yym2439 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } + } + } + if yyr2427 || yy2arr2427 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ReplicationControllerStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2440 := z.DecBinary() + _ = yym2440 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2441 := r.ContainerType() + if yyct2441 == codecSelferValueTypeMap1234 { + yyl2441 := r.ReadMapStart() + if yyl2441 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2441, d) + } + } else if yyct2441 == codecSelferValueTypeArray1234 { + yyl2441 := r.ReadArrayStart() + if yyl2441 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2441, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2442Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2442Slc + var yyhl2442 bool = l >= 0 + for yyj2442 := 0; ; yyj2442++ { + if yyhl2442 { + if yyj2442 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2442Slc = r.DecodeBytes(yys2442Slc, true, true) + yys2442 := string(yys2442Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2442 { + case "replicas": + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + case "fullyLabeledReplicas": + if r.TryDecodeAsNil() { + x.FullyLabeledReplicas = 0 + } else { + x.FullyLabeledReplicas = int32(r.DecodeInt(32)) + } + case "readyReplicas": + if r.TryDecodeAsNil() { + x.ReadyReplicas = 0 + } else { + x.ReadyReplicas = int32(r.DecodeInt(32)) + } + case "observedGeneration": + if r.TryDecodeAsNil() { + x.ObservedGeneration = 0 + } else { + x.ObservedGeneration = int64(r.DecodeInt(64)) + } + default: + z.DecStructFieldNotFound(-1, yys2442) + } // end switch yys2442 + } // end for yyj2442 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2447 int + var yyb2447 bool + var yyhl2447 bool = l >= 0 + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l + } else { + yyb2447 = r.CheckBreak() + } + if yyb2447 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Replicas = 0 + } else { + x.Replicas = int32(r.DecodeInt(32)) + } + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l + } else { + yyb2447 = r.CheckBreak() + } + if yyb2447 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FullyLabeledReplicas = 0 + } else { + x.FullyLabeledReplicas = int32(r.DecodeInt(32)) + } + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l + } else { + yyb2447 = r.CheckBreak() + } + if yyb2447 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadyReplicas = 0 + } else { + x.ReadyReplicas = int32(r.DecodeInt(32)) + } + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l + } else { + yyb2447 = r.CheckBreak() + } + if yyb2447 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObservedGeneration = 0 + } else { + x.ObservedGeneration = int64(r.DecodeInt(64)) + } + for { + yyj2447++ + if yyhl2447 { + yyb2447 = yyj2447 > l + } else { + yyb2447 = r.CheckBreak() + } + if yyb2447 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2447-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2452 := z.EncBinary() + _ = yym2452 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2453 := !z.EncBinary() + yy2arr2453 := z.EncBasicHandle().StructToArray + var yyq2453 [5]bool + _, _, _ = yysep2453, yyq2453, yy2arr2453 + const yyr2453 bool = false + yyq2453[0] = x.Kind != "" + yyq2453[1] = x.APIVersion != "" + yyq2453[2] = true + yyq2453[3] = true + yyq2453[4] = true + var yynn2453 int + if yyr2453 || yy2arr2453 { + r.EncodeArrayStart(5) + } else { + yynn2453 = 0 + for _, b := range yyq2453 { + if b { + yynn2453++ + } + } + r.EncodeMapStart(yynn2453) + yynn2453 = 0 + } + if yyr2453 || yy2arr2453 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2453[0] { + yym2455 := z.EncBinary() + _ = yym2455 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2453[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2456 := z.EncBinary() + _ = yym2456 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2453 || yy2arr2453 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2453[1] { + yym2458 := z.EncBinary() + _ = yym2458 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2453[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2459 := z.EncBinary() + _ = yym2459 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2453 || yy2arr2453 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2453[2] { + yy2461 := &x.ObjectMeta + yy2461.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2453[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2462 := &x.ObjectMeta + yy2462.CodecEncodeSelf(e) + } + } + if yyr2453 || yy2arr2453 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2453[3] { + yy2464 := &x.Spec + yy2464.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2453[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2465 := &x.Spec + yy2465.CodecEncodeSelf(e) + } + } + if yyr2453 || yy2arr2453 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2453[4] { + yy2467 := &x.Status + yy2467.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2453[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2468 := &x.Status + yy2468.CodecEncodeSelf(e) + } + } + if yyr2453 || yy2arr2453 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ReplicationController) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2469 := z.DecBinary() + _ = yym2469 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2470 := r.ContainerType() + if yyct2470 == codecSelferValueTypeMap1234 { + yyl2470 := r.ReadMapStart() + if yyl2470 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2470, d) + } + } else if yyct2470 == codecSelferValueTypeArray1234 { + yyl2470 := r.ReadArrayStart() + if yyl2470 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2470, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2471Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2471Slc + var yyhl2471 bool = l >= 0 + for yyj2471 := 0; ; yyj2471++ { + if yyhl2471 { + if yyj2471 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2471Slc = r.DecodeBytes(yys2471Slc, true, true) + yys2471 := string(yys2471Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2471 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2474 := &x.ObjectMeta + yyv2474.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = ReplicationControllerSpec{} + } else { + yyv2475 := &x.Spec + yyv2475.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = ReplicationControllerStatus{} + } else { + yyv2476 := &x.Status + yyv2476.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2471) + } // end switch yys2471 + } // end for yyj2471 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2477 int + var yyb2477 bool + var yyhl2477 bool = l >= 0 + yyj2477++ + if yyhl2477 { + yyb2477 = yyj2477 > l + } else { + yyb2477 = r.CheckBreak() + } + if yyb2477 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2477++ + if yyhl2477 { + yyb2477 = yyj2477 > l + } else { + yyb2477 = r.CheckBreak() + } + if yyb2477 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2477++ + if yyhl2477 { + yyb2477 = yyj2477 > l + } else { + yyb2477 = r.CheckBreak() + } + if yyb2477 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv2480 := &x.ObjectMeta + yyv2480.CodecDecodeSelf(d) + } + yyj2477++ + if yyhl2477 { + yyb2477 = yyj2477 > l + } else { + yyb2477 = r.CheckBreak() + } + if yyb2477 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = ReplicationControllerSpec{} + } else { + yyv2481 := &x.Spec + yyv2481.CodecDecodeSelf(d) + } + yyj2477++ + if yyhl2477 { + yyb2477 = yyj2477 > l + } else { + yyb2477 = r.CheckBreak() + } + if yyb2477 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = ReplicationControllerStatus{} + } else { + yyv2482 := &x.Status + yyv2482.CodecDecodeSelf(d) + } + for { + yyj2477++ + if yyhl2477 { + yyb2477 = yyj2477 > l + } else { + yyb2477 = r.CheckBreak() + } + if yyb2477 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2477-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2483 := z.EncBinary() + _ = yym2483 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2484 := !z.EncBinary() + yy2arr2484 := z.EncBasicHandle().StructToArray + var yyq2484 [4]bool + _, _, _ = yysep2484, yyq2484, yy2arr2484 + const yyr2484 bool = false + yyq2484[0] = x.Kind != "" + yyq2484[1] = x.APIVersion != "" + yyq2484[2] = true + var yynn2484 int + if yyr2484 || yy2arr2484 { + r.EncodeArrayStart(4) + } else { + yynn2484 = 1 + for _, b := range yyq2484 { + if b { + yynn2484++ + } + } + r.EncodeMapStart(yynn2484) + yynn2484 = 0 + } + if yyr2484 || yy2arr2484 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2484[0] { + yym2486 := z.EncBinary() + _ = yym2486 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2484[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2487 := z.EncBinary() + _ = yym2487 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2484 || yy2arr2484 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2484[1] { + yym2489 := z.EncBinary() + _ = yym2489 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2484[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2490 := z.EncBinary() + _ = yym2490 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2484 || yy2arr2484 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2484[2] { + yy2492 := &x.ListMeta + yym2493 := z.EncBinary() + _ = yym2493 + if false { + } else if z.HasExtensions() && z.EncExt(yy2492) { + } else { + z.EncFallback(yy2492) + } + } else { + r.EncodeNil() + } + } else { + if yyq2484[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2494 := &x.ListMeta + yym2495 := z.EncBinary() + _ = yym2495 + if false { + } else if z.HasExtensions() && z.EncExt(yy2494) { + } else { + z.EncFallback(yy2494) + } + } + } + if yyr2484 || yy2arr2484 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2497 := z.EncBinary() + _ = yym2497 + if false { + } else { + h.encSliceReplicationController(([]ReplicationController)(x.Items), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2498 := z.EncBinary() + _ = yym2498 + if false { + } else { + h.encSliceReplicationController(([]ReplicationController)(x.Items), e) + } + } + } + if yyr2484 || yy2arr2484 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ReplicationControllerList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2499 := z.DecBinary() + _ = yym2499 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2500 := r.ContainerType() + if yyct2500 == codecSelferValueTypeMap1234 { + yyl2500 := r.ReadMapStart() + if yyl2500 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2500, d) + } + } else if yyct2500 == codecSelferValueTypeArray1234 { + yyl2500 := r.ReadArrayStart() + if yyl2500 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2500, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2501Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2501Slc + var yyhl2501 bool = l >= 0 + for yyj2501 := 0; ; yyj2501++ { + if yyhl2501 { + if yyj2501 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2501Slc = r.DecodeBytes(yys2501Slc, true, true) + yys2501 := string(yys2501Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2501 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2504 := &x.ListMeta + yym2505 := z.DecBinary() + _ = yym2505 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2504) { + } else { + z.DecFallback(yyv2504, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2506 := &x.Items + yym2507 := z.DecBinary() + _ = yym2507 + if false { + } else { + h.decSliceReplicationController((*[]ReplicationController)(yyv2506), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2501) + } // end switch yys2501 + } // end for yyj2501 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2508 int + var yyb2508 bool + var yyhl2508 bool = l >= 0 + yyj2508++ + if yyhl2508 { + yyb2508 = yyj2508 > l + } else { + yyb2508 = r.CheckBreak() + } + if yyb2508 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2508++ + if yyhl2508 { + yyb2508 = yyj2508 > l + } else { + yyb2508 = r.CheckBreak() + } + if yyb2508 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2508++ + if yyhl2508 { + yyb2508 = yyj2508 > l + } else { + yyb2508 = r.CheckBreak() + } + if yyb2508 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2511 := &x.ListMeta + yym2512 := z.DecBinary() + _ = yym2512 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2511) { + } else { + z.DecFallback(yyv2511, false) + } + } + yyj2508++ + if yyhl2508 { + yyb2508 = yyj2508 > l + } else { + yyb2508 = r.CheckBreak() + } + if yyb2508 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2513 := &x.Items + yym2514 := z.DecBinary() + _ = yym2514 + if false { + } else { + h.decSliceReplicationController((*[]ReplicationController)(yyv2513), d) + } + } + for { + yyj2508++ + if yyhl2508 { + yyb2508 = yyj2508 > l + } else { + yyb2508 = r.CheckBreak() + } + if yyb2508 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2508-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2515 := z.EncBinary() + _ = yym2515 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2516 := !z.EncBinary() + yy2arr2516 := z.EncBasicHandle().StructToArray + var yyq2516 [4]bool + _, _, _ = yysep2516, yyq2516, yy2arr2516 + const yyr2516 bool = false + yyq2516[0] = x.Kind != "" + yyq2516[1] = x.APIVersion != "" + yyq2516[2] = true + var yynn2516 int + if yyr2516 || yy2arr2516 { + r.EncodeArrayStart(4) + } else { + yynn2516 = 1 + for _, b := range yyq2516 { + if b { + yynn2516++ + } + } + r.EncodeMapStart(yynn2516) + yynn2516 = 0 + } + if yyr2516 || yy2arr2516 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2516[0] { + yym2518 := z.EncBinary() + _ = yym2518 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2516[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2519 := z.EncBinary() + _ = yym2519 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2516 || yy2arr2516 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2516[1] { + yym2521 := z.EncBinary() + _ = yym2521 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2516[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2522 := z.EncBinary() + _ = yym2522 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2516 || yy2arr2516 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2516[2] { + yy2524 := &x.ListMeta + yym2525 := z.EncBinary() + _ = yym2525 + if false { + } else if z.HasExtensions() && z.EncExt(yy2524) { + } else { + z.EncFallback(yy2524) + } + } else { + r.EncodeNil() + } + } else { + if yyq2516[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2526 := &x.ListMeta + yym2527 := z.EncBinary() + _ = yym2527 + if false { + } else if z.HasExtensions() && z.EncExt(yy2526) { + } else { + z.EncFallback(yy2526) + } + } + } + if yyr2516 || yy2arr2516 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2529 := z.EncBinary() + _ = yym2529 + if false { + } else { + h.encSliceService(([]Service)(x.Items), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym2530 := z.EncBinary() + _ = yym2530 + if false { + } else { + h.encSliceService(([]Service)(x.Items), e) + } + } + } + if yyr2516 || yy2arr2516 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ServiceList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2531 := z.DecBinary() + _ = yym2531 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2532 := r.ContainerType() + if yyct2532 == codecSelferValueTypeMap1234 { + yyl2532 := r.ReadMapStart() + if yyl2532 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2532, d) + } + } else if yyct2532 == codecSelferValueTypeArray1234 { + yyl2532 := r.ReadArrayStart() + if yyl2532 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2532, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2533Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2533Slc + var yyhl2533 bool = l >= 0 + for yyj2533 := 0; ; yyj2533++ { + if yyhl2533 { + if yyj2533 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2533Slc = r.DecodeBytes(yys2533Slc, true, true) + yys2533 := string(yys2533Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2533 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2536 := &x.ListMeta + yym2537 := z.DecBinary() + _ = yym2537 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2536) { + } else { + z.DecFallback(yyv2536, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2538 := &x.Items + yym2539 := z.DecBinary() + _ = yym2539 + if false { + } else { + h.decSliceService((*[]Service)(yyv2538), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2533) + } // end switch yys2533 + } // end for yyj2533 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2540 int + var yyb2540 bool + var yyhl2540 bool = l >= 0 + yyj2540++ + if yyhl2540 { + yyb2540 = yyj2540 > l + } else { + yyb2540 = r.CheckBreak() + } + if yyb2540 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj2540++ + if yyhl2540 { + yyb2540 = yyj2540 > l + } else { + yyb2540 = r.CheckBreak() + } + if yyb2540 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj2540++ + if yyhl2540 { + yyb2540 = yyj2540 > l + } else { + yyb2540 = r.CheckBreak() + } + if yyb2540 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv2543 := &x.ListMeta + yym2544 := z.DecBinary() + _ = yym2544 + if false { + } else if z.HasExtensions() && z.DecExt(yyv2543) { + } else { + z.DecFallback(yyv2543, false) + } + } + yyj2540++ + if yyhl2540 { + yyb2540 = yyj2540 > l + } else { + yyb2540 = r.CheckBreak() + } + if yyb2540 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv2545 := &x.Items + yym2546 := z.DecBinary() + _ = yym2546 + if false { + } else { + h.decSliceService((*[]Service)(yyv2545), d) + } + } + for { + yyj2540++ + if yyhl2540 { + yyb2540 = yyj2540 > l + } else { + yyb2540 = r.CheckBreak() + } + if yyb2540 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2540-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym2547 := z.EncBinary() + _ = yym2547 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ServiceAffinity) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2548 := z.DecBinary() + _ = yym2548 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x ServiceType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym2549 := z.EncBinary() + _ = yym2549 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *ServiceType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2550 := z.DecBinary() + _ = yym2550 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *ServiceStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2551 := z.EncBinary() + _ = yym2551 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2552 := !z.EncBinary() + yy2arr2552 := z.EncBasicHandle().StructToArray + var yyq2552 [1]bool + _, _, _ = yysep2552, yyq2552, yy2arr2552 + const yyr2552 bool = false + yyq2552[0] = true + var yynn2552 int + if yyr2552 || yy2arr2552 { + r.EncodeArrayStart(1) + } else { + yynn2552 = 0 + for _, b := range yyq2552 { + if b { + yynn2552++ + } + } + r.EncodeMapStart(yynn2552) + yynn2552 = 0 + } + if yyr2552 || yy2arr2552 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2552[0] { + yy2554 := &x.LoadBalancer + yy2554.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2552[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy2555 := &x.LoadBalancer + yy2555.CodecEncodeSelf(e) + } + } + if yyr2552 || yy2arr2552 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ServiceStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2556 := z.DecBinary() + _ = yym2556 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2557 := r.ContainerType() + if yyct2557 == codecSelferValueTypeMap1234 { + yyl2557 := r.ReadMapStart() + if yyl2557 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2557, d) + } + } else if yyct2557 == codecSelferValueTypeArray1234 { + yyl2557 := r.ReadArrayStart() + if yyl2557 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2557, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2558Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2558Slc + var yyhl2558 bool = l >= 0 + for yyj2558 := 0; ; yyj2558++ { + if yyhl2558 { + if yyj2558 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2558Slc = r.DecodeBytes(yys2558Slc, true, true) + yys2558 := string(yys2558Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2558 { + case "loadBalancer": + if r.TryDecodeAsNil() { + x.LoadBalancer = LoadBalancerStatus{} + } else { + yyv2559 := &x.LoadBalancer + yyv2559.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys2558) + } // end switch yys2558 + } // end for yyj2558 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2560 int + var yyb2560 bool + var yyhl2560 bool = l >= 0 + yyj2560++ + if yyhl2560 { + yyb2560 = yyj2560 > l + } else { + yyb2560 = r.CheckBreak() + } + if yyb2560 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LoadBalancer = LoadBalancerStatus{} + } else { + yyv2561 := &x.LoadBalancer + yyv2561.CodecDecodeSelf(d) + } + for { + yyj2560++ + if yyhl2560 { + yyb2560 = yyj2560 > l + } else { + yyb2560 = r.CheckBreak() + } + if yyb2560 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2560-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2562 := z.EncBinary() + _ = yym2562 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2563 := !z.EncBinary() + yy2arr2563 := z.EncBasicHandle().StructToArray + var yyq2563 [1]bool + _, _, _ = yysep2563, yyq2563, yy2arr2563 + const yyr2563 bool = false + yyq2563[0] = len(x.Ingress) != 0 + var yynn2563 int + if yyr2563 || yy2arr2563 { + r.EncodeArrayStart(1) + } else { + yynn2563 = 0 + for _, b := range yyq2563 { + if b { + yynn2563++ + } + } + r.EncodeMapStart(yynn2563) + yynn2563 = 0 + } + if yyr2563 || yy2arr2563 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2563[0] { + if x.Ingress == nil { + r.EncodeNil() + } else { + yym2565 := z.EncBinary() + _ = yym2565 + if false { + } else { + h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2563[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ingress")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Ingress == nil { + r.EncodeNil() + } else { + yym2566 := z.EncBinary() + _ = yym2566 + if false { + } else { + h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) + } + } + } + } + if yyr2563 || yy2arr2563 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *LoadBalancerStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2567 := z.DecBinary() + _ = yym2567 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2568 := r.ContainerType() + if yyct2568 == codecSelferValueTypeMap1234 { + yyl2568 := r.ReadMapStart() + if yyl2568 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2568, d) + } + } else if yyct2568 == codecSelferValueTypeArray1234 { + yyl2568 := r.ReadArrayStart() + if yyl2568 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2568, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2569Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2569Slc + var yyhl2569 bool = l >= 0 + for yyj2569 := 0; ; yyj2569++ { + if yyhl2569 { + if yyj2569 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2569Slc = r.DecodeBytes(yys2569Slc, true, true) + yys2569 := string(yys2569Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2569 { + case "ingress": + if r.TryDecodeAsNil() { + x.Ingress = nil + } else { + yyv2570 := &x.Ingress + yym2571 := z.DecBinary() + _ = yym2571 + if false { + } else { + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2570), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys2569) + } // end switch yys2569 + } // end for yyj2569 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2572 int + var yyb2572 bool + var yyhl2572 bool = l >= 0 + yyj2572++ + if yyhl2572 { + yyb2572 = yyj2572 > l + } else { + yyb2572 = r.CheckBreak() + } + if yyb2572 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Ingress = nil + } else { + yyv2573 := &x.Ingress + yym2574 := z.DecBinary() + _ = yym2574 + if false { + } else { + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2573), d) + } + } + for { + yyj2572++ + if yyhl2572 { + yyb2572 = yyj2572 > l + } else { + yyb2572 = r.CheckBreak() + } + if yyb2572 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2572-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym2575 := z.EncBinary() + _ = yym2575 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2576 := !z.EncBinary() + yy2arr2576 := z.EncBasicHandle().StructToArray + var yyq2576 [2]bool + _, _, _ = yysep2576, yyq2576, yy2arr2576 + const yyr2576 bool = false + yyq2576[0] = x.IP != "" + yyq2576[1] = x.Hostname != "" + var yynn2576 int + if yyr2576 || yy2arr2576 { + r.EncodeArrayStart(2) + } else { + yynn2576 = 0 + for _, b := range yyq2576 { + if b { + yynn2576++ + } + } + r.EncodeMapStart(yynn2576) + yynn2576 = 0 + } + if yyr2576 || yy2arr2576 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2576[0] { + yym2578 := z.EncBinary() + _ = yym2578 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.IP)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2576[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ip")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2579 := z.EncBinary() + _ = yym2579 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.IP)) + } + } + } + if yyr2576 || yy2arr2576 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2576[1] { + yym2581 := z.EncBinary() + _ = yym2581 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2576[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("hostname")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2582 := z.EncBinary() + _ = yym2582 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) + } + } + } + if yyr2576 || yy2arr2576 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *LoadBalancerIngress) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym2583 := z.DecBinary() + _ = yym2583 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct2584 := r.ContainerType() + if yyct2584 == codecSelferValueTypeMap1234 { + yyl2584 := r.ReadMapStart() + if yyl2584 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl2584, d) + } + } else if yyct2584 == codecSelferValueTypeArray1234 { + yyl2584 := r.ReadArrayStart() + if yyl2584 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl2584, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys2585Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2585Slc + var yyhl2585 bool = l >= 0 + for yyj2585 := 0; ; yyj2585++ { + if yyhl2585 { + if yyj2585 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys2585Slc = r.DecodeBytes(yys2585Slc, true, true) + yys2585 := string(yys2585Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys2585 { + case "ip": + if r.TryDecodeAsNil() { + x.IP = "" + } else { + x.IP = string(r.DecodeString()) + } + case "hostname": + if r.TryDecodeAsNil() { + x.Hostname = "" + } else { + x.Hostname = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys2585) + } // end switch yys2585 + } // end for yyj2585 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj2588 int + var yyb2588 bool + var yyhl2588 bool = l >= 0 + yyj2588++ + if yyhl2588 { + yyb2588 = yyj2588 > l + } else { + yyb2588 = r.CheckBreak() + } + if yyb2588 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IP = "" + } else { + x.IP = string(r.DecodeString()) + } + yyj2588++ + if yyhl2588 { + yyb2588 = yyj2588 > l + } else { + yyb2588 = r.CheckBreak() + } + if yyb2588 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Hostname = "" + } else { + x.Hostname = string(r.DecodeString()) + } + for { + yyj2588++ + if yyhl2588 { + yyb2588 = yyj2588 > l + } else { + yyb2588 = r.CheckBreak() + } + if yyb2588 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj2588-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) @@ -31920,57 +33927,57 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2424 := z.EncBinary() - _ = yym2424 + yym2591 := z.EncBinary() + _ = yym2591 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2425 := !z.EncBinary() - yy2arr2425 := z.EncBasicHandle().StructToArray - var yyq2425 [8]bool - _, _, _ = yysep2425, yyq2425, yy2arr2425 - const yyr2425 bool = false - yyq2425[0] = x.Type != "" - yyq2425[3] = x.ClusterIP != "" - yyq2425[4] = len(x.ExternalIPs) != 0 - yyq2425[5] = x.LoadBalancerIP != "" - yyq2425[6] = x.SessionAffinity != "" - yyq2425[7] = len(x.LoadBalancerSourceRanges) != 0 - var yynn2425 int - if yyr2425 || yy2arr2425 { - r.EncodeArrayStart(8) + yysep2592 := !z.EncBinary() + yy2arr2592 := z.EncBasicHandle().StructToArray + var yyq2592 [9]bool + _, _, _ = yysep2592, yyq2592, yy2arr2592 + const yyr2592 bool = false + yyq2592[0] = x.Type != "" + yyq2592[3] = x.ClusterIP != "" + yyq2592[5] = len(x.ExternalIPs) != 0 + yyq2592[6] = x.LoadBalancerIP != "" + yyq2592[7] = x.SessionAffinity != "" + yyq2592[8] = len(x.LoadBalancerSourceRanges) != 0 + var yynn2592 int + if yyr2592 || yy2arr2592 { + r.EncodeArrayStart(9) } else { - yynn2425 = 2 - for _, b := range yyq2425 { + yynn2592 = 3 + for _, b := range yyq2592 { if b { - yynn2425++ + yynn2592++ } } - r.EncodeMapStart(yynn2425) - yynn2425 = 0 + r.EncodeMapStart(yynn2592) + yynn2592 = 0 } - if yyr2425 || yy2arr2425 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2425[0] { + if yyq2592[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2425[0] { + if yyq2592[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr2425 || yy2arr2425 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { - yym2428 := z.EncBinary() - _ = yym2428 + yym2595 := z.EncBinary() + _ = yym2595 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) @@ -31983,21 +33990,21 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Ports == nil { r.EncodeNil() } else { - yym2429 := z.EncBinary() - _ = yym2429 + yym2596 := z.EncBinary() + _ = yym2596 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } - if yyr2425 || yy2arr2425 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { - yym2431 := z.EncBinary() - _ = yym2431 + yym2598 := z.EncBinary() + _ = yym2598 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -32010,19 +34017,19 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Selector == nil { r.EncodeNil() } else { - yym2432 := z.EncBinary() - _ = yym2432 + yym2599 := z.EncBinary() + _ = yym2599 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } - if yyr2425 || yy2arr2425 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2425[3] { - yym2434 := z.EncBinary() - _ = yym2434 + if yyq2592[3] { + yym2601 := z.EncBinary() + _ = yym2601 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) @@ -32031,26 +34038,45 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2425[3] { + if yyq2592[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2435 := z.EncBinary() - _ = yym2435 + yym2602 := z.EncBinary() + _ = yym2602 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } } - if yyr2425 || yy2arr2425 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2425[4] { + yym2604 := z.EncBinary() + _ = yym2604 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ExternalName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2605 := z.EncBinary() + _ = yym2605 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName)) + } + } + if yyr2592 || yy2arr2592 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2592[5] { if x.ExternalIPs == nil { r.EncodeNil() } else { - yym2437 := z.EncBinary() - _ = yym2437 + yym2607 := z.EncBinary() + _ = yym2607 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) @@ -32060,15 +34086,15 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2425[4] { + if yyq2592[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ExternalIPs == nil { r.EncodeNil() } else { - yym2438 := z.EncBinary() - _ = yym2438 + yym2608 := z.EncBinary() + _ = yym2608 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) @@ -32076,11 +34102,11 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2425 || yy2arr2425 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2425[5] { - yym2440 := z.EncBinary() - _ = yym2440 + if yyq2592[6] { + yym2610 := z.EncBinary() + _ = yym2610 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) @@ -32089,41 +34115,41 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2425[5] { + if yyq2592[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2441 := z.EncBinary() - _ = yym2441 + yym2611 := z.EncBinary() + _ = yym2611 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } } - if yyr2425 || yy2arr2425 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2425[6] { + if yyq2592[7] { x.SessionAffinity.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2425[6] { + if yyq2592[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.SessionAffinity.CodecEncodeSelf(e) } } - if yyr2425 || yy2arr2425 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2425[7] { + if yyq2592[8] { if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { - yym2444 := z.EncBinary() - _ = yym2444 + yym2614 := z.EncBinary() + _ = yym2614 if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) @@ -32133,15 +34159,15 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2425[7] { + if yyq2592[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { - yym2445 := z.EncBinary() - _ = yym2445 + yym2615 := z.EncBinary() + _ = yym2615 if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) @@ -32149,7 +34175,7 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2425 || yy2arr2425 { + if yyr2592 || yy2arr2592 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -32162,25 +34188,25 @@ func (x *ServiceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2446 := z.DecBinary() - _ = yym2446 + yym2616 := z.DecBinary() + _ = yym2616 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2447 := r.ContainerType() - if yyct2447 == codecSelferValueTypeMap1234 { - yyl2447 := r.ReadMapStart() - if yyl2447 == 0 { + yyct2617 := r.ContainerType() + if yyct2617 == codecSelferValueTypeMap1234 { + yyl2617 := r.ReadMapStart() + if yyl2617 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2447, d) + x.codecDecodeSelfFromMap(yyl2617, d) } - } else if yyct2447 == codecSelferValueTypeArray1234 { - yyl2447 := r.ReadArrayStart() - if yyl2447 == 0 { + } else if yyct2617 == codecSelferValueTypeArray1234 { + yyl2617 := r.ReadArrayStart() + if yyl2617 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2447, d) + x.codecDecodeSelfFromArray(yyl2617, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -32192,12 +34218,12 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2448Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2448Slc - var yyhl2448 bool = l >= 0 - for yyj2448 := 0; ; yyj2448++ { - if yyhl2448 { - if yyj2448 >= l { + var yys2618Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2618Slc + var yyhl2618 bool = l >= 0 + for yyj2618 := 0; ; yyj2618++ { + if yyhl2618 { + if yyj2618 >= l { break } } else { @@ -32206,10 +34232,10 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2448Slc = r.DecodeBytes(yys2448Slc, true, true) - yys2448 := string(yys2448Slc) + yys2618Slc = r.DecodeBytes(yys2618Slc, true, true) + yys2618 := string(yys2618Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2448 { + switch yys2618 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -32220,24 +34246,24 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2450 := &x.Ports - yym2451 := z.DecBinary() - _ = yym2451 + yyv2620 := &x.Ports + yym2621 := z.DecBinary() + _ = yym2621 if false { } else { - h.decSliceServicePort((*[]ServicePort)(yyv2450), d) + h.decSliceServicePort((*[]ServicePort)(yyv2620), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2452 := &x.Selector - yym2453 := z.DecBinary() - _ = yym2453 + yyv2622 := &x.Selector + yym2623 := z.DecBinary() + _ = yym2623 if false { } else { - z.F.DecMapStringStringX(yyv2452, false, d) + z.F.DecMapStringStringX(yyv2622, false, d) } } case "clusterIP": @@ -32246,16 +34272,22 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.ClusterIP = string(r.DecodeString()) } + case "ExternalName": + if r.TryDecodeAsNil() { + x.ExternalName = "" + } else { + x.ExternalName = string(r.DecodeString()) + } case "externalIPs": if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { - yyv2455 := &x.ExternalIPs - yym2456 := z.DecBinary() - _ = yym2456 + yyv2626 := &x.ExternalIPs + yym2627 := z.DecBinary() + _ = yym2627 if false { } else { - z.F.DecSliceStringX(yyv2455, false, d) + z.F.DecSliceStringX(yyv2626, false, d) } } case "loadBalancerIP": @@ -32274,18 +34306,18 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { - yyv2459 := &x.LoadBalancerSourceRanges - yym2460 := z.DecBinary() - _ = yym2460 + yyv2630 := &x.LoadBalancerSourceRanges + yym2631 := z.DecBinary() + _ = yym2631 if false { } else { - z.F.DecSliceStringX(yyv2459, false, d) + z.F.DecSliceStringX(yyv2630, false, d) } } default: - z.DecStructFieldNotFound(-1, yys2448) - } // end switch yys2448 - } // end for yyj2448 + z.DecStructFieldNotFound(-1, yys2618) + } // end switch yys2618 + } // end for yyj2618 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -32293,16 +34325,16 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2461 int - var yyb2461 bool - var yyhl2461 bool = l >= 0 - yyj2461++ - if yyhl2461 { - yyb2461 = yyj2461 > l + var yyj2632 int + var yyb2632 bool + var yyhl2632 bool = l >= 0 + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb2461 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb2461 { + if yyb2632 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32312,13 +34344,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = ServiceType(r.DecodeString()) } - yyj2461++ - if yyhl2461 { - yyb2461 = yyj2461 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb2461 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb2461 { + if yyb2632 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32326,21 +34358,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2463 := &x.Ports - yym2464 := z.DecBinary() - _ = yym2464 + yyv2634 := &x.Ports + yym2635 := z.DecBinary() + _ = yym2635 if false { } else { - h.decSliceServicePort((*[]ServicePort)(yyv2463), d) + h.decSliceServicePort((*[]ServicePort)(yyv2634), d) } } - yyj2461++ - if yyhl2461 { - yyb2461 = yyj2461 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb2461 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb2461 { + if yyb2632 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32348,21 +34380,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2465 := &x.Selector - yym2466 := z.DecBinary() - _ = yym2466 + yyv2636 := &x.Selector + yym2637 := z.DecBinary() + _ = yym2637 if false { } else { - z.F.DecMapStringStringX(yyv2465, false, d) + z.F.DecMapStringStringX(yyv2636, false, d) } } - yyj2461++ - if yyhl2461 { - yyb2461 = yyj2461 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb2461 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb2461 { + if yyb2632 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32372,13 +34404,29 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ClusterIP = string(r.DecodeString()) } - yyj2461++ - if yyhl2461 { - yyb2461 = yyj2461 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb2461 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb2461 { + if yyb2632 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ExternalName = "" + } else { + x.ExternalName = string(r.DecodeString()) + } + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l + } else { + yyb2632 = r.CheckBreak() + } + if yyb2632 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32386,21 +34434,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { - yyv2468 := &x.ExternalIPs - yym2469 := z.DecBinary() - _ = yym2469 + yyv2640 := &x.ExternalIPs + yym2641 := z.DecBinary() + _ = yym2641 if false { } else { - z.F.DecSliceStringX(yyv2468, false, d) + z.F.DecSliceStringX(yyv2640, false, d) } } - yyj2461++ - if yyhl2461 { - yyb2461 = yyj2461 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb2461 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb2461 { + if yyb2632 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32410,13 +34458,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.LoadBalancerIP = string(r.DecodeString()) } - yyj2461++ - if yyhl2461 { - yyb2461 = yyj2461 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb2461 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb2461 { + if yyb2632 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32426,13 +34474,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SessionAffinity = ServiceAffinity(r.DecodeString()) } - yyj2461++ - if yyhl2461 { - yyb2461 = yyj2461 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb2461 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb2461 { + if yyb2632 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32440,26 +34488,26 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { - yyv2472 := &x.LoadBalancerSourceRanges - yym2473 := z.DecBinary() - _ = yym2473 + yyv2644 := &x.LoadBalancerSourceRanges + yym2645 := z.DecBinary() + _ = yym2645 if false { } else { - z.F.DecSliceStringX(yyv2472, false, d) + z.F.DecSliceStringX(yyv2644, false, d) } } for { - yyj2461++ - if yyhl2461 { - yyb2461 = yyj2461 > l + yyj2632++ + if yyhl2632 { + yyb2632 = yyj2632 > l } else { - yyb2461 = r.CheckBreak() + yyb2632 = r.CheckBreak() } - if yyb2461 { + if yyb2632 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2461-1, "") + z.DecStructFieldNotFound(yyj2632-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32471,33 +34519,33 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2474 := z.EncBinary() - _ = yym2474 + yym2646 := z.EncBinary() + _ = yym2646 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2475 := !z.EncBinary() - yy2arr2475 := z.EncBasicHandle().StructToArray - var yyq2475 [5]bool - _, _, _ = yysep2475, yyq2475, yy2arr2475 - const yyr2475 bool = false - var yynn2475 int - if yyr2475 || yy2arr2475 { + yysep2647 := !z.EncBinary() + yy2arr2647 := z.EncBasicHandle().StructToArray + var yyq2647 [5]bool + _, _, _ = yysep2647, yyq2647, yy2arr2647 + const yyr2647 bool = false + var yynn2647 int + if yyr2647 || yy2arr2647 { r.EncodeArrayStart(5) } else { - yynn2475 = 5 - for _, b := range yyq2475 { + yynn2647 = 5 + for _, b := range yyq2647 { if b { - yynn2475++ + yynn2647++ } } - r.EncodeMapStart(yynn2475) - yynn2475 = 0 + r.EncodeMapStart(yynn2647) + yynn2647 = 0 } - if yyr2475 || yy2arr2475 { + if yyr2647 || yy2arr2647 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2477 := z.EncBinary() - _ = yym2477 + yym2649 := z.EncBinary() + _ = yym2649 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -32506,14 +34554,14 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2478 := z.EncBinary() - _ = yym2478 + yym2650 := z.EncBinary() + _ = yym2650 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2475 || yy2arr2475 { + if yyr2647 || yy2arr2647 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Protocol.CodecEncodeSelf(e) } else { @@ -32522,10 +34570,10 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } - if yyr2475 || yy2arr2475 { + if yyr2647 || yy2arr2647 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2481 := z.EncBinary() - _ = yym2481 + yym2653 := z.EncBinary() + _ = yym2653 if false { } else { r.EncodeInt(int64(x.Port)) @@ -32534,44 +34582,44 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2482 := z.EncBinary() - _ = yym2482 + yym2654 := z.EncBinary() + _ = yym2654 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2475 || yy2arr2475 { + if yyr2647 || yy2arr2647 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2484 := &x.TargetPort - yym2485 := z.EncBinary() - _ = yym2485 + yy2656 := &x.TargetPort + yym2657 := z.EncBinary() + _ = yym2657 if false { - } else if z.HasExtensions() && z.EncExt(yy2484) { - } else if !yym2485 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2484) + } else if z.HasExtensions() && z.EncExt(yy2656) { + } else if !yym2657 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2656) } else { - z.EncFallback(yy2484) + z.EncFallback(yy2656) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2486 := &x.TargetPort - yym2487 := z.EncBinary() - _ = yym2487 + yy2658 := &x.TargetPort + yym2659 := z.EncBinary() + _ = yym2659 if false { - } else if z.HasExtensions() && z.EncExt(yy2486) { - } else if !yym2487 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2486) + } else if z.HasExtensions() && z.EncExt(yy2658) { + } else if !yym2659 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2658) } else { - z.EncFallback(yy2486) + z.EncFallback(yy2658) } } - if yyr2475 || yy2arr2475 { + if yyr2647 || yy2arr2647 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2489 := z.EncBinary() - _ = yym2489 + yym2661 := z.EncBinary() + _ = yym2661 if false { } else { r.EncodeInt(int64(x.NodePort)) @@ -32580,14 +34628,14 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2490 := z.EncBinary() - _ = yym2490 + yym2662 := z.EncBinary() + _ = yym2662 if false { } else { r.EncodeInt(int64(x.NodePort)) } } - if yyr2475 || yy2arr2475 { + if yyr2647 || yy2arr2647 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -32600,25 +34648,25 @@ func (x *ServicePort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2491 := z.DecBinary() - _ = yym2491 + yym2663 := z.DecBinary() + _ = yym2663 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2492 := r.ContainerType() - if yyct2492 == codecSelferValueTypeMap1234 { - yyl2492 := r.ReadMapStart() - if yyl2492 == 0 { + yyct2664 := r.ContainerType() + if yyct2664 == codecSelferValueTypeMap1234 { + yyl2664 := r.ReadMapStart() + if yyl2664 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2492, d) + x.codecDecodeSelfFromMap(yyl2664, d) } - } else if yyct2492 == codecSelferValueTypeArray1234 { - yyl2492 := r.ReadArrayStart() - if yyl2492 == 0 { + } else if yyct2664 == codecSelferValueTypeArray1234 { + yyl2664 := r.ReadArrayStart() + if yyl2664 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2492, d) + x.codecDecodeSelfFromArray(yyl2664, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -32630,12 +34678,12 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2493Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2493Slc - var yyhl2493 bool = l >= 0 - for yyj2493 := 0; ; yyj2493++ { - if yyhl2493 { - if yyj2493 >= l { + var yys2665Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2665Slc + var yyhl2665 bool = l >= 0 + for yyj2665 := 0; ; yyj2665++ { + if yyhl2665 { + if yyj2665 >= l { break } } else { @@ -32644,10 +34692,10 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2493Slc = r.DecodeBytes(yys2493Slc, true, true) - yys2493 := string(yys2493Slc) + yys2665Slc = r.DecodeBytes(yys2665Slc, true, true) + yys2665 := string(yys2665Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2493 { + switch yys2665 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -32670,15 +34718,15 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { - yyv2497 := &x.TargetPort - yym2498 := z.DecBinary() - _ = yym2498 + yyv2669 := &x.TargetPort + yym2670 := z.DecBinary() + _ = yym2670 if false { - } else if z.HasExtensions() && z.DecExt(yyv2497) { - } else if !yym2498 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2497) + } else if z.HasExtensions() && z.DecExt(yyv2669) { + } else if !yym2670 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2669) } else { - z.DecFallback(yyv2497, false) + z.DecFallback(yyv2669, false) } } case "nodePort": @@ -32688,9 +34736,9 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.NodePort = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys2493) - } // end switch yys2493 - } // end for yyj2493 + z.DecStructFieldNotFound(-1, yys2665) + } // end switch yys2665 + } // end for yyj2665 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -32698,16 +34746,16 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2500 int - var yyb2500 bool - var yyhl2500 bool = l >= 0 - yyj2500++ - if yyhl2500 { - yyb2500 = yyj2500 > l + var yyj2672 int + var yyb2672 bool + var yyhl2672 bool = l >= 0 + yyj2672++ + if yyhl2672 { + yyb2672 = yyj2672 > l } else { - yyb2500 = r.CheckBreak() + yyb2672 = r.CheckBreak() } - if yyb2500 { + if yyb2672 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32717,13 +34765,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj2500++ - if yyhl2500 { - yyb2500 = yyj2500 > l + yyj2672++ + if yyhl2672 { + yyb2672 = yyj2672 > l } else { - yyb2500 = r.CheckBreak() + yyb2672 = r.CheckBreak() } - if yyb2500 { + if yyb2672 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32733,13 +34781,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Protocol = Protocol(r.DecodeString()) } - yyj2500++ - if yyhl2500 { - yyb2500 = yyj2500 > l + yyj2672++ + if yyhl2672 { + yyb2672 = yyj2672 > l } else { - yyb2500 = r.CheckBreak() + yyb2672 = r.CheckBreak() } - if yyb2500 { + if yyb2672 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32749,13 +34797,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Port = int32(r.DecodeInt(32)) } - yyj2500++ - if yyhl2500 { - yyb2500 = yyj2500 > l + yyj2672++ + if yyhl2672 { + yyb2672 = yyj2672 > l } else { - yyb2500 = r.CheckBreak() + yyb2672 = r.CheckBreak() } - if yyb2500 { + if yyb2672 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32763,24 +34811,24 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { - yyv2504 := &x.TargetPort - yym2505 := z.DecBinary() - _ = yym2505 + yyv2676 := &x.TargetPort + yym2677 := z.DecBinary() + _ = yym2677 if false { - } else if z.HasExtensions() && z.DecExt(yyv2504) { - } else if !yym2505 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2504) + } else if z.HasExtensions() && z.DecExt(yyv2676) { + } else if !yym2677 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2676) } else { - z.DecFallback(yyv2504, false) + z.DecFallback(yyv2676, false) } } - yyj2500++ - if yyhl2500 { - yyb2500 = yyj2500 > l + yyj2672++ + if yyhl2672 { + yyb2672 = yyj2672 > l } else { - yyb2500 = r.CheckBreak() + yyb2672 = r.CheckBreak() } - if yyb2500 { + if yyb2672 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32791,17 +34839,17 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.NodePort = int32(r.DecodeInt(32)) } for { - yyj2500++ - if yyhl2500 { - yyb2500 = yyj2500 > l + yyj2672++ + if yyhl2672 { + yyb2672 = yyj2672 > l } else { - yyb2500 = r.CheckBreak() + yyb2672 = r.CheckBreak() } - if yyb2500 { + if yyb2672 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2500-1, "") + z.DecStructFieldNotFound(yyj2672-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32813,39 +34861,39 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2507 := z.EncBinary() - _ = yym2507 + yym2679 := z.EncBinary() + _ = yym2679 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2508 := !z.EncBinary() - yy2arr2508 := z.EncBasicHandle().StructToArray - var yyq2508 [5]bool - _, _, _ = yysep2508, yyq2508, yy2arr2508 - const yyr2508 bool = false - yyq2508[0] = x.Kind != "" - yyq2508[1] = x.APIVersion != "" - yyq2508[2] = true - yyq2508[3] = true - yyq2508[4] = true - var yynn2508 int - if yyr2508 || yy2arr2508 { + yysep2680 := !z.EncBinary() + yy2arr2680 := z.EncBasicHandle().StructToArray + var yyq2680 [5]bool + _, _, _ = yysep2680, yyq2680, yy2arr2680 + const yyr2680 bool = false + yyq2680[0] = x.Kind != "" + yyq2680[1] = x.APIVersion != "" + yyq2680[2] = true + yyq2680[3] = true + yyq2680[4] = true + var yynn2680 int + if yyr2680 || yy2arr2680 { r.EncodeArrayStart(5) } else { - yynn2508 = 0 - for _, b := range yyq2508 { + yynn2680 = 0 + for _, b := range yyq2680 { if b { - yynn2508++ + yynn2680++ } } - r.EncodeMapStart(yynn2508) - yynn2508 = 0 + r.EncodeMapStart(yynn2680) + yynn2680 = 0 } - if yyr2508 || yy2arr2508 { + if yyr2680 || yy2arr2680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2508[0] { - yym2510 := z.EncBinary() - _ = yym2510 + if yyq2680[0] { + yym2682 := z.EncBinary() + _ = yym2682 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -32854,23 +34902,23 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2508[0] { + if yyq2680[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2511 := z.EncBinary() - _ = yym2511 + yym2683 := z.EncBinary() + _ = yym2683 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2508 || yy2arr2508 { + if yyr2680 || yy2arr2680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2508[1] { - yym2513 := z.EncBinary() - _ = yym2513 + if yyq2680[1] { + yym2685 := z.EncBinary() + _ = yym2685 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -32879,70 +34927,70 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2508[1] { + if yyq2680[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2514 := z.EncBinary() - _ = yym2514 + yym2686 := z.EncBinary() + _ = yym2686 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2508 || yy2arr2508 { + if yyr2680 || yy2arr2680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2508[2] { - yy2516 := &x.ObjectMeta - yy2516.CodecEncodeSelf(e) + if yyq2680[2] { + yy2688 := &x.ObjectMeta + yy2688.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2508[2] { + if yyq2680[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2517 := &x.ObjectMeta - yy2517.CodecEncodeSelf(e) + yy2689 := &x.ObjectMeta + yy2689.CodecEncodeSelf(e) } } - if yyr2508 || yy2arr2508 { + if yyr2680 || yy2arr2680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2508[3] { - yy2519 := &x.Spec - yy2519.CodecEncodeSelf(e) + if yyq2680[3] { + yy2691 := &x.Spec + yy2691.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2508[3] { + if yyq2680[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2520 := &x.Spec - yy2520.CodecEncodeSelf(e) + yy2692 := &x.Spec + yy2692.CodecEncodeSelf(e) } } - if yyr2508 || yy2arr2508 { + if yyr2680 || yy2arr2680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2508[4] { - yy2522 := &x.Status - yy2522.CodecEncodeSelf(e) + if yyq2680[4] { + yy2694 := &x.Status + yy2694.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2508[4] { + if yyq2680[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2523 := &x.Status - yy2523.CodecEncodeSelf(e) + yy2695 := &x.Status + yy2695.CodecEncodeSelf(e) } } - if yyr2508 || yy2arr2508 { + if yyr2680 || yy2arr2680 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -32955,25 +35003,25 @@ func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2524 := z.DecBinary() - _ = yym2524 + yym2696 := z.DecBinary() + _ = yym2696 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2525 := r.ContainerType() - if yyct2525 == codecSelferValueTypeMap1234 { - yyl2525 := r.ReadMapStart() - if yyl2525 == 0 { + yyct2697 := r.ContainerType() + if yyct2697 == codecSelferValueTypeMap1234 { + yyl2697 := r.ReadMapStart() + if yyl2697 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2525, d) + x.codecDecodeSelfFromMap(yyl2697, d) } - } else if yyct2525 == codecSelferValueTypeArray1234 { - yyl2525 := r.ReadArrayStart() - if yyl2525 == 0 { + } else if yyct2697 == codecSelferValueTypeArray1234 { + yyl2697 := r.ReadArrayStart() + if yyl2697 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2525, d) + x.codecDecodeSelfFromArray(yyl2697, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -32985,12 +35033,12 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2526Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2526Slc - var yyhl2526 bool = l >= 0 - for yyj2526 := 0; ; yyj2526++ { - if yyhl2526 { - if yyj2526 >= l { + var yys2698Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2698Slc + var yyhl2698 bool = l >= 0 + for yyj2698 := 0; ; yyj2698++ { + if yyhl2698 { + if yyj2698 >= l { break } } else { @@ -32999,10 +35047,10 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2526Slc = r.DecodeBytes(yys2526Slc, true, true) - yys2526 := string(yys2526Slc) + yys2698Slc = r.DecodeBytes(yys2698Slc, true, true) + yys2698 := string(yys2698Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2526 { + switch yys2698 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -33019,27 +35067,27 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2529 := &x.ObjectMeta - yyv2529.CodecDecodeSelf(d) + yyv2701 := &x.ObjectMeta + yyv2701.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { - yyv2530 := &x.Spec - yyv2530.CodecDecodeSelf(d) + yyv2702 := &x.Spec + yyv2702.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { - yyv2531 := &x.Status - yyv2531.CodecDecodeSelf(d) + yyv2703 := &x.Status + yyv2703.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2526) - } // end switch yys2526 - } // end for yyj2526 + z.DecStructFieldNotFound(-1, yys2698) + } // end switch yys2698 + } // end for yyj2698 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33047,16 +35095,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2532 int - var yyb2532 bool - var yyhl2532 bool = l >= 0 - yyj2532++ - if yyhl2532 { - yyb2532 = yyj2532 > l + var yyj2704 int + var yyb2704 bool + var yyhl2704 bool = l >= 0 + yyj2704++ + if yyhl2704 { + yyb2704 = yyj2704 > l } else { - yyb2532 = r.CheckBreak() + yyb2704 = r.CheckBreak() } - if yyb2532 { + if yyb2704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33066,13 +35114,13 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2532++ - if yyhl2532 { - yyb2532 = yyj2532 > l + yyj2704++ + if yyhl2704 { + yyb2704 = yyj2704 > l } else { - yyb2532 = r.CheckBreak() + yyb2704 = r.CheckBreak() } - if yyb2532 { + if yyb2704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33082,13 +35130,13 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2532++ - if yyhl2532 { - yyb2532 = yyj2532 > l + yyj2704++ + if yyhl2704 { + yyb2704 = yyj2704 > l } else { - yyb2532 = r.CheckBreak() + yyb2704 = r.CheckBreak() } - if yyb2532 { + if yyb2704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33096,16 +35144,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2535 := &x.ObjectMeta - yyv2535.CodecDecodeSelf(d) + yyv2707 := &x.ObjectMeta + yyv2707.CodecDecodeSelf(d) } - yyj2532++ - if yyhl2532 { - yyb2532 = yyj2532 > l + yyj2704++ + if yyhl2704 { + yyb2704 = yyj2704 > l } else { - yyb2532 = r.CheckBreak() + yyb2704 = r.CheckBreak() } - if yyb2532 { + if yyb2704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33113,16 +35161,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { - yyv2536 := &x.Spec - yyv2536.CodecDecodeSelf(d) + yyv2708 := &x.Spec + yyv2708.CodecDecodeSelf(d) } - yyj2532++ - if yyhl2532 { - yyb2532 = yyj2532 > l + yyj2704++ + if yyhl2704 { + yyb2704 = yyj2704 > l } else { - yyb2532 = r.CheckBreak() + yyb2704 = r.CheckBreak() } - if yyb2532 { + if yyb2704 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33130,21 +35178,21 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { - yyv2537 := &x.Status - yyv2537.CodecDecodeSelf(d) + yyv2709 := &x.Status + yyv2709.CodecDecodeSelf(d) } for { - yyj2532++ - if yyhl2532 { - yyb2532 = yyj2532 > l + yyj2704++ + if yyhl2704 { + yyb2704 = yyj2704 > l } else { - yyb2532 = r.CheckBreak() + yyb2704 = r.CheckBreak() } - if yyb2532 { + if yyb2704 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2532-1, "") + z.DecStructFieldNotFound(yyj2704-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33156,38 +35204,38 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2538 := z.EncBinary() - _ = yym2538 + yym2710 := z.EncBinary() + _ = yym2710 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2539 := !z.EncBinary() - yy2arr2539 := z.EncBasicHandle().StructToArray - var yyq2539 [5]bool - _, _, _ = yysep2539, yyq2539, yy2arr2539 - const yyr2539 bool = false - yyq2539[0] = x.Kind != "" - yyq2539[1] = x.APIVersion != "" - yyq2539[2] = true - yyq2539[4] = len(x.ImagePullSecrets) != 0 - var yynn2539 int - if yyr2539 || yy2arr2539 { + yysep2711 := !z.EncBinary() + yy2arr2711 := z.EncBasicHandle().StructToArray + var yyq2711 [5]bool + _, _, _ = yysep2711, yyq2711, yy2arr2711 + const yyr2711 bool = false + yyq2711[0] = x.Kind != "" + yyq2711[1] = x.APIVersion != "" + yyq2711[2] = true + yyq2711[4] = len(x.ImagePullSecrets) != 0 + var yynn2711 int + if yyr2711 || yy2arr2711 { r.EncodeArrayStart(5) } else { - yynn2539 = 1 - for _, b := range yyq2539 { + yynn2711 = 1 + for _, b := range yyq2711 { if b { - yynn2539++ + yynn2711++ } } - r.EncodeMapStart(yynn2539) - yynn2539 = 0 + r.EncodeMapStart(yynn2711) + yynn2711 = 0 } - if yyr2539 || yy2arr2539 { + if yyr2711 || yy2arr2711 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2539[0] { - yym2541 := z.EncBinary() - _ = yym2541 + if yyq2711[0] { + yym2713 := z.EncBinary() + _ = yym2713 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -33196,23 +35244,23 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2539[0] { + if yyq2711[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2542 := z.EncBinary() - _ = yym2542 + yym2714 := z.EncBinary() + _ = yym2714 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2539 || yy2arr2539 { + if yyr2711 || yy2arr2711 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2539[1] { - yym2544 := z.EncBinary() - _ = yym2544 + if yyq2711[1] { + yym2716 := z.EncBinary() + _ = yym2716 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -33221,42 +35269,42 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2539[1] { + if yyq2711[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2545 := z.EncBinary() - _ = yym2545 + yym2717 := z.EncBinary() + _ = yym2717 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2539 || yy2arr2539 { + if yyr2711 || yy2arr2711 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2539[2] { - yy2547 := &x.ObjectMeta - yy2547.CodecEncodeSelf(e) + if yyq2711[2] { + yy2719 := &x.ObjectMeta + yy2719.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2539[2] { + if yyq2711[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2548 := &x.ObjectMeta - yy2548.CodecEncodeSelf(e) + yy2720 := &x.ObjectMeta + yy2720.CodecEncodeSelf(e) } } - if yyr2539 || yy2arr2539 { + if yyr2711 || yy2arr2711 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Secrets == nil { r.EncodeNil() } else { - yym2550 := z.EncBinary() - _ = yym2550 + yym2722 := z.EncBinary() + _ = yym2722 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) @@ -33269,22 +35317,22 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { if x.Secrets == nil { r.EncodeNil() } else { - yym2551 := z.EncBinary() - _ = yym2551 + yym2723 := z.EncBinary() + _ = yym2723 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) } } } - if yyr2539 || yy2arr2539 { + if yyr2711 || yy2arr2711 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2539[4] { + if yyq2711[4] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym2553 := z.EncBinary() - _ = yym2553 + yym2725 := z.EncBinary() + _ = yym2725 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -33294,15 +35342,15 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2539[4] { + if yyq2711[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym2554 := z.EncBinary() - _ = yym2554 + yym2726 := z.EncBinary() + _ = yym2726 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -33310,7 +35358,7 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2539 || yy2arr2539 { + if yyr2711 || yy2arr2711 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -33323,25 +35371,25 @@ func (x *ServiceAccount) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2555 := z.DecBinary() - _ = yym2555 + yym2727 := z.DecBinary() + _ = yym2727 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2556 := r.ContainerType() - if yyct2556 == codecSelferValueTypeMap1234 { - yyl2556 := r.ReadMapStart() - if yyl2556 == 0 { + yyct2728 := r.ContainerType() + if yyct2728 == codecSelferValueTypeMap1234 { + yyl2728 := r.ReadMapStart() + if yyl2728 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2556, d) + x.codecDecodeSelfFromMap(yyl2728, d) } - } else if yyct2556 == codecSelferValueTypeArray1234 { - yyl2556 := r.ReadArrayStart() - if yyl2556 == 0 { + } else if yyct2728 == codecSelferValueTypeArray1234 { + yyl2728 := r.ReadArrayStart() + if yyl2728 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2556, d) + x.codecDecodeSelfFromArray(yyl2728, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -33353,12 +35401,12 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2557Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2557Slc - var yyhl2557 bool = l >= 0 - for yyj2557 := 0; ; yyj2557++ { - if yyhl2557 { - if yyj2557 >= l { + var yys2729Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2729Slc + var yyhl2729 bool = l >= 0 + for yyj2729 := 0; ; yyj2729++ { + if yyhl2729 { + if yyj2729 >= l { break } } else { @@ -33367,10 +35415,10 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2557Slc = r.DecodeBytes(yys2557Slc, true, true) - yys2557 := string(yys2557Slc) + yys2729Slc = r.DecodeBytes(yys2729Slc, true, true) + yys2729 := string(yys2729Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2557 { + switch yys2729 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -33387,37 +35435,37 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2560 := &x.ObjectMeta - yyv2560.CodecDecodeSelf(d) + yyv2732 := &x.ObjectMeta + yyv2732.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { - yyv2561 := &x.Secrets - yym2562 := z.DecBinary() - _ = yym2562 + yyv2733 := &x.Secrets + yym2734 := z.DecBinary() + _ = yym2734 if false { } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv2561), d) + h.decSliceObjectReference((*[]ObjectReference)(yyv2733), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2563 := &x.ImagePullSecrets - yym2564 := z.DecBinary() - _ = yym2564 + yyv2735 := &x.ImagePullSecrets + yym2736 := z.DecBinary() + _ = yym2736 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2563), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2735), d) } } default: - z.DecStructFieldNotFound(-1, yys2557) - } // end switch yys2557 - } // end for yyj2557 + z.DecStructFieldNotFound(-1, yys2729) + } // end switch yys2729 + } // end for yyj2729 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33425,16 +35473,16 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2565 int - var yyb2565 bool - var yyhl2565 bool = l >= 0 - yyj2565++ - if yyhl2565 { - yyb2565 = yyj2565 > l + var yyj2737 int + var yyb2737 bool + var yyhl2737 bool = l >= 0 + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l } else { - yyb2565 = r.CheckBreak() + yyb2737 = r.CheckBreak() } - if yyb2565 { + if yyb2737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33444,13 +35492,13 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2565++ - if yyhl2565 { - yyb2565 = yyj2565 > l + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l } else { - yyb2565 = r.CheckBreak() + yyb2737 = r.CheckBreak() } - if yyb2565 { + if yyb2737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33460,13 +35508,13 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2565++ - if yyhl2565 { - yyb2565 = yyj2565 > l + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l } else { - yyb2565 = r.CheckBreak() + yyb2737 = r.CheckBreak() } - if yyb2565 { + if yyb2737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33474,16 +35522,16 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2568 := &x.ObjectMeta - yyv2568.CodecDecodeSelf(d) + yyv2740 := &x.ObjectMeta + yyv2740.CodecDecodeSelf(d) } - yyj2565++ - if yyhl2565 { - yyb2565 = yyj2565 > l + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l } else { - yyb2565 = r.CheckBreak() + yyb2737 = r.CheckBreak() } - if yyb2565 { + if yyb2737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33491,21 +35539,21 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Secrets = nil } else { - yyv2569 := &x.Secrets - yym2570 := z.DecBinary() - _ = yym2570 + yyv2741 := &x.Secrets + yym2742 := z.DecBinary() + _ = yym2742 if false { } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv2569), d) + h.decSliceObjectReference((*[]ObjectReference)(yyv2741), d) } } - yyj2565++ - if yyhl2565 { - yyb2565 = yyj2565 > l + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l } else { - yyb2565 = r.CheckBreak() + yyb2737 = r.CheckBreak() } - if yyb2565 { + if yyb2737 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33513,26 +35561,26 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2571 := &x.ImagePullSecrets - yym2572 := z.DecBinary() - _ = yym2572 + yyv2743 := &x.ImagePullSecrets + yym2744 := z.DecBinary() + _ = yym2744 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2571), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2743), d) } } for { - yyj2565++ - if yyhl2565 { - yyb2565 = yyj2565 > l + yyj2737++ + if yyhl2737 { + yyb2737 = yyj2737 > l } else { - yyb2565 = r.CheckBreak() + yyb2737 = r.CheckBreak() } - if yyb2565 { + if yyb2737 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2565-1, "") + z.DecStructFieldNotFound(yyj2737-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33544,37 +35592,37 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2573 := z.EncBinary() - _ = yym2573 + yym2745 := z.EncBinary() + _ = yym2745 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2574 := !z.EncBinary() - yy2arr2574 := z.EncBasicHandle().StructToArray - var yyq2574 [4]bool - _, _, _ = yysep2574, yyq2574, yy2arr2574 - const yyr2574 bool = false - yyq2574[0] = x.Kind != "" - yyq2574[1] = x.APIVersion != "" - yyq2574[2] = true - var yynn2574 int - if yyr2574 || yy2arr2574 { + yysep2746 := !z.EncBinary() + yy2arr2746 := z.EncBasicHandle().StructToArray + var yyq2746 [4]bool + _, _, _ = yysep2746, yyq2746, yy2arr2746 + const yyr2746 bool = false + yyq2746[0] = x.Kind != "" + yyq2746[1] = x.APIVersion != "" + yyq2746[2] = true + var yynn2746 int + if yyr2746 || yy2arr2746 { r.EncodeArrayStart(4) } else { - yynn2574 = 1 - for _, b := range yyq2574 { + yynn2746 = 1 + for _, b := range yyq2746 { if b { - yynn2574++ + yynn2746++ } } - r.EncodeMapStart(yynn2574) - yynn2574 = 0 + r.EncodeMapStart(yynn2746) + yynn2746 = 0 } - if yyr2574 || yy2arr2574 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2574[0] { - yym2576 := z.EncBinary() - _ = yym2576 + if yyq2746[0] { + yym2748 := z.EncBinary() + _ = yym2748 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -33583,23 +35631,23 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2574[0] { + if yyq2746[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2577 := z.EncBinary() - _ = yym2577 + yym2749 := z.EncBinary() + _ = yym2749 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2574 || yy2arr2574 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2574[1] { - yym2579 := z.EncBinary() - _ = yym2579 + if yyq2746[1] { + yym2751 := z.EncBinary() + _ = yym2751 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -33608,54 +35656,54 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2574[1] { + if yyq2746[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2580 := z.EncBinary() - _ = yym2580 + yym2752 := z.EncBinary() + _ = yym2752 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2574 || yy2arr2574 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2574[2] { - yy2582 := &x.ListMeta - yym2583 := z.EncBinary() - _ = yym2583 + if yyq2746[2] { + yy2754 := &x.ListMeta + yym2755 := z.EncBinary() + _ = yym2755 if false { - } else if z.HasExtensions() && z.EncExt(yy2582) { + } else if z.HasExtensions() && z.EncExt(yy2754) { } else { - z.EncFallback(yy2582) + z.EncFallback(yy2754) } } else { r.EncodeNil() } } else { - if yyq2574[2] { + if yyq2746[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2584 := &x.ListMeta - yym2585 := z.EncBinary() - _ = yym2585 + yy2756 := &x.ListMeta + yym2757 := z.EncBinary() + _ = yym2757 if false { - } else if z.HasExtensions() && z.EncExt(yy2584) { + } else if z.HasExtensions() && z.EncExt(yy2756) { } else { - z.EncFallback(yy2584) + z.EncFallback(yy2756) } } } - if yyr2574 || yy2arr2574 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2587 := z.EncBinary() - _ = yym2587 + yym2759 := z.EncBinary() + _ = yym2759 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) @@ -33668,15 +35716,15 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2588 := z.EncBinary() - _ = yym2588 + yym2760 := z.EncBinary() + _ = yym2760 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } - if yyr2574 || yy2arr2574 { + if yyr2746 || yy2arr2746 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -33689,25 +35737,25 @@ func (x *ServiceAccountList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2589 := z.DecBinary() - _ = yym2589 + yym2761 := z.DecBinary() + _ = yym2761 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2590 := r.ContainerType() - if yyct2590 == codecSelferValueTypeMap1234 { - yyl2590 := r.ReadMapStart() - if yyl2590 == 0 { + yyct2762 := r.ContainerType() + if yyct2762 == codecSelferValueTypeMap1234 { + yyl2762 := r.ReadMapStart() + if yyl2762 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2590, d) + x.codecDecodeSelfFromMap(yyl2762, d) } - } else if yyct2590 == codecSelferValueTypeArray1234 { - yyl2590 := r.ReadArrayStart() - if yyl2590 == 0 { + } else if yyct2762 == codecSelferValueTypeArray1234 { + yyl2762 := r.ReadArrayStart() + if yyl2762 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2590, d) + x.codecDecodeSelfFromArray(yyl2762, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -33719,12 +35767,12 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2591Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2591Slc - var yyhl2591 bool = l >= 0 - for yyj2591 := 0; ; yyj2591++ { - if yyhl2591 { - if yyj2591 >= l { + var yys2763Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2763Slc + var yyhl2763 bool = l >= 0 + for yyj2763 := 0; ; yyj2763++ { + if yyhl2763 { + if yyj2763 >= l { break } } else { @@ -33733,10 +35781,10 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2591Slc = r.DecodeBytes(yys2591Slc, true, true) - yys2591 := string(yys2591Slc) + yys2763Slc = r.DecodeBytes(yys2763Slc, true, true) + yys2763 := string(yys2763Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2591 { + switch yys2763 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -33753,31 +35801,31 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2594 := &x.ListMeta - yym2595 := z.DecBinary() - _ = yym2595 + yyv2766 := &x.ListMeta + yym2767 := z.DecBinary() + _ = yym2767 if false { - } else if z.HasExtensions() && z.DecExt(yyv2594) { + } else if z.HasExtensions() && z.DecExt(yyv2766) { } else { - z.DecFallback(yyv2594, false) + z.DecFallback(yyv2766, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2596 := &x.Items - yym2597 := z.DecBinary() - _ = yym2597 + yyv2768 := &x.Items + yym2769 := z.DecBinary() + _ = yym2769 if false { } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv2596), d) + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2768), d) } } default: - z.DecStructFieldNotFound(-1, yys2591) - } // end switch yys2591 - } // end for yyj2591 + z.DecStructFieldNotFound(-1, yys2763) + } // end switch yys2763 + } // end for yyj2763 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33785,16 +35833,16 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2598 int - var yyb2598 bool - var yyhl2598 bool = l >= 0 - yyj2598++ - if yyhl2598 { - yyb2598 = yyj2598 > l + var yyj2770 int + var yyb2770 bool + var yyhl2770 bool = l >= 0 + yyj2770++ + if yyhl2770 { + yyb2770 = yyj2770 > l } else { - yyb2598 = r.CheckBreak() + yyb2770 = r.CheckBreak() } - if yyb2598 { + if yyb2770 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33804,13 +35852,13 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Kind = string(r.DecodeString()) } - yyj2598++ - if yyhl2598 { - yyb2598 = yyj2598 > l + yyj2770++ + if yyhl2770 { + yyb2770 = yyj2770 > l } else { - yyb2598 = r.CheckBreak() + yyb2770 = r.CheckBreak() } - if yyb2598 { + if yyb2770 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33820,13 +35868,13 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.APIVersion = string(r.DecodeString()) } - yyj2598++ - if yyhl2598 { - yyb2598 = yyj2598 > l + yyj2770++ + if yyhl2770 { + yyb2770 = yyj2770 > l } else { - yyb2598 = r.CheckBreak() + yyb2770 = r.CheckBreak() } - if yyb2598 { + if yyb2770 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33834,22 +35882,22 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2601 := &x.ListMeta - yym2602 := z.DecBinary() - _ = yym2602 + yyv2773 := &x.ListMeta + yym2774 := z.DecBinary() + _ = yym2774 if false { - } else if z.HasExtensions() && z.DecExt(yyv2601) { + } else if z.HasExtensions() && z.DecExt(yyv2773) { } else { - z.DecFallback(yyv2601, false) + z.DecFallback(yyv2773, false) } } - yyj2598++ - if yyhl2598 { - yyb2598 = yyj2598 > l + yyj2770++ + if yyhl2770 { + yyb2770 = yyj2770 > l } else { - yyb2598 = r.CheckBreak() + yyb2770 = r.CheckBreak() } - if yyb2598 { + if yyb2770 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33857,26 +35905,26 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2603 := &x.Items - yym2604 := z.DecBinary() - _ = yym2604 + yyv2775 := &x.Items + yym2776 := z.DecBinary() + _ = yym2776 if false { } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv2603), d) + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2775), d) } } for { - yyj2598++ - if yyhl2598 { - yyb2598 = yyj2598 > l + yyj2770++ + if yyhl2770 { + yyb2770 = yyj2770 > l } else { - yyb2598 = r.CheckBreak() + yyb2770 = r.CheckBreak() } - if yyb2598 { + if yyb2770 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2598-1, "") + z.DecStructFieldNotFound(yyj2770-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33888,37 +35936,37 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2605 := z.EncBinary() - _ = yym2605 + yym2777 := z.EncBinary() + _ = yym2777 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2606 := !z.EncBinary() - yy2arr2606 := z.EncBasicHandle().StructToArray - var yyq2606 [4]bool - _, _, _ = yysep2606, yyq2606, yy2arr2606 - const yyr2606 bool = false - yyq2606[0] = x.Kind != "" - yyq2606[1] = x.APIVersion != "" - yyq2606[2] = true - var yynn2606 int - if yyr2606 || yy2arr2606 { + yysep2778 := !z.EncBinary() + yy2arr2778 := z.EncBasicHandle().StructToArray + var yyq2778 [4]bool + _, _, _ = yysep2778, yyq2778, yy2arr2778 + const yyr2778 bool = false + yyq2778[0] = x.Kind != "" + yyq2778[1] = x.APIVersion != "" + yyq2778[2] = true + var yynn2778 int + if yyr2778 || yy2arr2778 { r.EncodeArrayStart(4) } else { - yynn2606 = 1 - for _, b := range yyq2606 { + yynn2778 = 1 + for _, b := range yyq2778 { if b { - yynn2606++ + yynn2778++ } } - r.EncodeMapStart(yynn2606) - yynn2606 = 0 + r.EncodeMapStart(yynn2778) + yynn2778 = 0 } - if yyr2606 || yy2arr2606 { + if yyr2778 || yy2arr2778 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2606[0] { - yym2608 := z.EncBinary() - _ = yym2608 + if yyq2778[0] { + yym2780 := z.EncBinary() + _ = yym2780 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -33927,23 +35975,23 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2606[0] { + if yyq2778[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2609 := z.EncBinary() - _ = yym2609 + yym2781 := z.EncBinary() + _ = yym2781 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2606 || yy2arr2606 { + if yyr2778 || yy2arr2778 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2606[1] { - yym2611 := z.EncBinary() - _ = yym2611 + if yyq2778[1] { + yym2783 := z.EncBinary() + _ = yym2783 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -33952,42 +36000,42 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2606[1] { + if yyq2778[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2612 := z.EncBinary() - _ = yym2612 + yym2784 := z.EncBinary() + _ = yym2784 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2606 || yy2arr2606 { + if yyr2778 || yy2arr2778 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2606[2] { - yy2614 := &x.ObjectMeta - yy2614.CodecEncodeSelf(e) + if yyq2778[2] { + yy2786 := &x.ObjectMeta + yy2786.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2606[2] { + if yyq2778[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2615 := &x.ObjectMeta - yy2615.CodecEncodeSelf(e) + yy2787 := &x.ObjectMeta + yy2787.CodecEncodeSelf(e) } } - if yyr2606 || yy2arr2606 { + if yyr2778 || yy2arr2778 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Subsets == nil { r.EncodeNil() } else { - yym2617 := z.EncBinary() - _ = yym2617 + yym2789 := z.EncBinary() + _ = yym2789 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) @@ -34000,15 +36048,15 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x.Subsets == nil { r.EncodeNil() } else { - yym2618 := z.EncBinary() - _ = yym2618 + yym2790 := z.EncBinary() + _ = yym2790 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } - if yyr2606 || yy2arr2606 { + if yyr2778 || yy2arr2778 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34021,25 +36069,25 @@ func (x *Endpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2619 := z.DecBinary() - _ = yym2619 + yym2791 := z.DecBinary() + _ = yym2791 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2620 := r.ContainerType() - if yyct2620 == codecSelferValueTypeMap1234 { - yyl2620 := r.ReadMapStart() - if yyl2620 == 0 { + yyct2792 := r.ContainerType() + if yyct2792 == codecSelferValueTypeMap1234 { + yyl2792 := r.ReadMapStart() + if yyl2792 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2620, d) + x.codecDecodeSelfFromMap(yyl2792, d) } - } else if yyct2620 == codecSelferValueTypeArray1234 { - yyl2620 := r.ReadArrayStart() - if yyl2620 == 0 { + } else if yyct2792 == codecSelferValueTypeArray1234 { + yyl2792 := r.ReadArrayStart() + if yyl2792 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2620, d) + x.codecDecodeSelfFromArray(yyl2792, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34051,12 +36099,12 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2621Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2621Slc - var yyhl2621 bool = l >= 0 - for yyj2621 := 0; ; yyj2621++ { - if yyhl2621 { - if yyj2621 >= l { + var yys2793Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2793Slc + var yyhl2793 bool = l >= 0 + for yyj2793 := 0; ; yyj2793++ { + if yyhl2793 { + if yyj2793 >= l { break } } else { @@ -34065,10 +36113,10 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2621Slc = r.DecodeBytes(yys2621Slc, true, true) - yys2621 := string(yys2621Slc) + yys2793Slc = r.DecodeBytes(yys2793Slc, true, true) + yys2793 := string(yys2793Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2621 { + switch yys2793 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -34085,25 +36133,25 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2624 := &x.ObjectMeta - yyv2624.CodecDecodeSelf(d) + yyv2796 := &x.ObjectMeta + yyv2796.CodecDecodeSelf(d) } case "Subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { - yyv2625 := &x.Subsets - yym2626 := z.DecBinary() - _ = yym2626 + yyv2797 := &x.Subsets + yym2798 := z.DecBinary() + _ = yym2798 if false { } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2625), d) + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2797), d) } } default: - z.DecStructFieldNotFound(-1, yys2621) - } // end switch yys2621 - } // end for yyj2621 + z.DecStructFieldNotFound(-1, yys2793) + } // end switch yys2793 + } // end for yyj2793 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34111,16 +36159,16 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2627 int - var yyb2627 bool - var yyhl2627 bool = l >= 0 - yyj2627++ - if yyhl2627 { - yyb2627 = yyj2627 > l + var yyj2799 int + var yyb2799 bool + var yyhl2799 bool = l >= 0 + yyj2799++ + if yyhl2799 { + yyb2799 = yyj2799 > l } else { - yyb2627 = r.CheckBreak() + yyb2799 = r.CheckBreak() } - if yyb2627 { + if yyb2799 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34130,13 +36178,13 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2627++ - if yyhl2627 { - yyb2627 = yyj2627 > l + yyj2799++ + if yyhl2799 { + yyb2799 = yyj2799 > l } else { - yyb2627 = r.CheckBreak() + yyb2799 = r.CheckBreak() } - if yyb2627 { + if yyb2799 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34146,13 +36194,13 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2627++ - if yyhl2627 { - yyb2627 = yyj2627 > l + yyj2799++ + if yyhl2799 { + yyb2799 = yyj2799 > l } else { - yyb2627 = r.CheckBreak() + yyb2799 = r.CheckBreak() } - if yyb2627 { + if yyb2799 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34160,16 +36208,16 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2630 := &x.ObjectMeta - yyv2630.CodecDecodeSelf(d) + yyv2802 := &x.ObjectMeta + yyv2802.CodecDecodeSelf(d) } - yyj2627++ - if yyhl2627 { - yyb2627 = yyj2627 > l + yyj2799++ + if yyhl2799 { + yyb2799 = yyj2799 > l } else { - yyb2627 = r.CheckBreak() + yyb2799 = r.CheckBreak() } - if yyb2627 { + if yyb2799 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34177,26 +36225,26 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Subsets = nil } else { - yyv2631 := &x.Subsets - yym2632 := z.DecBinary() - _ = yym2632 + yyv2803 := &x.Subsets + yym2804 := z.DecBinary() + _ = yym2804 if false { } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2631), d) + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2803), d) } } for { - yyj2627++ - if yyhl2627 { - yyb2627 = yyj2627 > l + yyj2799++ + if yyhl2799 { + yyb2799 = yyj2799 > l } else { - yyb2627 = r.CheckBreak() + yyb2799 = r.CheckBreak() } - if yyb2627 { + if yyb2799 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2627-1, "") + z.DecStructFieldNotFound(yyj2799-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34208,36 +36256,36 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2633 := z.EncBinary() - _ = yym2633 + yym2805 := z.EncBinary() + _ = yym2805 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2634 := !z.EncBinary() - yy2arr2634 := z.EncBasicHandle().StructToArray - var yyq2634 [3]bool - _, _, _ = yysep2634, yyq2634, yy2arr2634 - const yyr2634 bool = false - var yynn2634 int - if yyr2634 || yy2arr2634 { + yysep2806 := !z.EncBinary() + yy2arr2806 := z.EncBasicHandle().StructToArray + var yyq2806 [3]bool + _, _, _ = yysep2806, yyq2806, yy2arr2806 + const yyr2806 bool = false + var yynn2806 int + if yyr2806 || yy2arr2806 { r.EncodeArrayStart(3) } else { - yynn2634 = 3 - for _, b := range yyq2634 { + yynn2806 = 3 + for _, b := range yyq2806 { if b { - yynn2634++ + yynn2806++ } } - r.EncodeMapStart(yynn2634) - yynn2634 = 0 + r.EncodeMapStart(yynn2806) + yynn2806 = 0 } - if yyr2634 || yy2arr2634 { + if yyr2806 || yy2arr2806 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Addresses == nil { r.EncodeNil() } else { - yym2636 := z.EncBinary() - _ = yym2636 + yym2808 := z.EncBinary() + _ = yym2808 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) @@ -34250,21 +36298,21 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { if x.Addresses == nil { r.EncodeNil() } else { - yym2637 := z.EncBinary() - _ = yym2637 + yym2809 := z.EncBinary() + _ = yym2809 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) } } } - if yyr2634 || yy2arr2634 { + if yyr2806 || yy2arr2806 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { - yym2639 := z.EncBinary() - _ = yym2639 + yym2811 := z.EncBinary() + _ = yym2811 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) @@ -34277,21 +36325,21 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { if x.NotReadyAddresses == nil { r.EncodeNil() } else { - yym2640 := z.EncBinary() - _ = yym2640 + yym2812 := z.EncBinary() + _ = yym2812 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) } } } - if yyr2634 || yy2arr2634 { + if yyr2806 || yy2arr2806 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { - yym2642 := z.EncBinary() - _ = yym2642 + yym2814 := z.EncBinary() + _ = yym2814 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) @@ -34304,15 +36352,15 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { if x.Ports == nil { r.EncodeNil() } else { - yym2643 := z.EncBinary() - _ = yym2643 + yym2815 := z.EncBinary() + _ = yym2815 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) } } } - if yyr2634 || yy2arr2634 { + if yyr2806 || yy2arr2806 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34325,25 +36373,25 @@ func (x *EndpointSubset) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2644 := z.DecBinary() - _ = yym2644 + yym2816 := z.DecBinary() + _ = yym2816 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2645 := r.ContainerType() - if yyct2645 == codecSelferValueTypeMap1234 { - yyl2645 := r.ReadMapStart() - if yyl2645 == 0 { + yyct2817 := r.ContainerType() + if yyct2817 == codecSelferValueTypeMap1234 { + yyl2817 := r.ReadMapStart() + if yyl2817 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2645, d) + x.codecDecodeSelfFromMap(yyl2817, d) } - } else if yyct2645 == codecSelferValueTypeArray1234 { - yyl2645 := r.ReadArrayStart() - if yyl2645 == 0 { + } else if yyct2817 == codecSelferValueTypeArray1234 { + yyl2817 := r.ReadArrayStart() + if yyl2817 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2645, d) + x.codecDecodeSelfFromArray(yyl2817, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34355,12 +36403,12 @@ func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2646Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2646Slc - var yyhl2646 bool = l >= 0 - for yyj2646 := 0; ; yyj2646++ { - if yyhl2646 { - if yyj2646 >= l { + var yys2818Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2818Slc + var yyhl2818 bool = l >= 0 + for yyj2818 := 0; ; yyj2818++ { + if yyhl2818 { + if yyj2818 >= l { break } } else { @@ -34369,50 +36417,50 @@ func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2646Slc = r.DecodeBytes(yys2646Slc, true, true) - yys2646 := string(yys2646Slc) + yys2818Slc = r.DecodeBytes(yys2818Slc, true, true) + yys2818 := string(yys2818Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2646 { + switch yys2818 { case "Addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv2647 := &x.Addresses - yym2648 := z.DecBinary() - _ = yym2648 + yyv2819 := &x.Addresses + yym2820 := z.DecBinary() + _ = yym2820 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2647), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2819), d) } } case "NotReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { - yyv2649 := &x.NotReadyAddresses - yym2650 := z.DecBinary() - _ = yym2650 + yyv2821 := &x.NotReadyAddresses + yym2822 := z.DecBinary() + _ = yym2822 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2649), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2821), d) } } case "Ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2651 := &x.Ports - yym2652 := z.DecBinary() - _ = yym2652 + yyv2823 := &x.Ports + yym2824 := z.DecBinary() + _ = yym2824 if false { } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv2651), d) + h.decSliceEndpointPort((*[]EndpointPort)(yyv2823), d) } } default: - z.DecStructFieldNotFound(-1, yys2646) - } // end switch yys2646 - } // end for yyj2646 + z.DecStructFieldNotFound(-1, yys2818) + } // end switch yys2818 + } // end for yyj2818 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34420,16 +36468,16 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2653 int - var yyb2653 bool - var yyhl2653 bool = l >= 0 - yyj2653++ - if yyhl2653 { - yyb2653 = yyj2653 > l + var yyj2825 int + var yyb2825 bool + var yyhl2825 bool = l >= 0 + yyj2825++ + if yyhl2825 { + yyb2825 = yyj2825 > l } else { - yyb2653 = r.CheckBreak() + yyb2825 = r.CheckBreak() } - if yyb2653 { + if yyb2825 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34437,21 +36485,21 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv2654 := &x.Addresses - yym2655 := z.DecBinary() - _ = yym2655 + yyv2826 := &x.Addresses + yym2827 := z.DecBinary() + _ = yym2827 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2654), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2826), d) } } - yyj2653++ - if yyhl2653 { - yyb2653 = yyj2653 > l + yyj2825++ + if yyhl2825 { + yyb2825 = yyj2825 > l } else { - yyb2653 = r.CheckBreak() + yyb2825 = r.CheckBreak() } - if yyb2653 { + if yyb2825 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34459,21 +36507,21 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { - yyv2656 := &x.NotReadyAddresses - yym2657 := z.DecBinary() - _ = yym2657 + yyv2828 := &x.NotReadyAddresses + yym2829 := z.DecBinary() + _ = yym2829 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2656), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2828), d) } } - yyj2653++ - if yyhl2653 { - yyb2653 = yyj2653 > l + yyj2825++ + if yyhl2825 { + yyb2825 = yyj2825 > l } else { - yyb2653 = r.CheckBreak() + yyb2825 = r.CheckBreak() } - if yyb2653 { + if yyb2825 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34481,26 +36529,26 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2658 := &x.Ports - yym2659 := z.DecBinary() - _ = yym2659 + yyv2830 := &x.Ports + yym2831 := z.DecBinary() + _ = yym2831 if false { } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv2658), d) + h.decSliceEndpointPort((*[]EndpointPort)(yyv2830), d) } } for { - yyj2653++ - if yyhl2653 { - yyb2653 = yyj2653 > l + yyj2825++ + if yyhl2825 { + yyb2825 = yyj2825 > l } else { - yyb2653 = r.CheckBreak() + yyb2825 = r.CheckBreak() } - if yyb2653 { + if yyb2825 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2653-1, "") + z.DecStructFieldNotFound(yyj2825-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34512,35 +36560,35 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2660 := z.EncBinary() - _ = yym2660 + yym2832 := z.EncBinary() + _ = yym2832 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2661 := !z.EncBinary() - yy2arr2661 := z.EncBasicHandle().StructToArray - var yyq2661 [4]bool - _, _, _ = yysep2661, yyq2661, yy2arr2661 - const yyr2661 bool = false - yyq2661[1] = x.Hostname != "" - yyq2661[2] = x.NodeName != nil - var yynn2661 int - if yyr2661 || yy2arr2661 { + yysep2833 := !z.EncBinary() + yy2arr2833 := z.EncBasicHandle().StructToArray + var yyq2833 [4]bool + _, _, _ = yysep2833, yyq2833, yy2arr2833 + const yyr2833 bool = false + yyq2833[1] = x.Hostname != "" + yyq2833[2] = x.NodeName != nil + var yynn2833 int + if yyr2833 || yy2arr2833 { r.EncodeArrayStart(4) } else { - yynn2661 = 2 - for _, b := range yyq2661 { + yynn2833 = 2 + for _, b := range yyq2833 { if b { - yynn2661++ + yynn2833++ } } - r.EncodeMapStart(yynn2661) - yynn2661 = 0 + r.EncodeMapStart(yynn2833) + yynn2833 = 0 } - if yyr2661 || yy2arr2661 { + if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2663 := z.EncBinary() - _ = yym2663 + yym2835 := z.EncBinary() + _ = yym2835 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) @@ -34549,18 +36597,18 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("IP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2664 := z.EncBinary() - _ = yym2664 + yym2836 := z.EncBinary() + _ = yym2836 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } - if yyr2661 || yy2arr2661 { + if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2661[1] { - yym2666 := z.EncBinary() - _ = yym2666 + if yyq2833[1] { + yym2838 := z.EncBinary() + _ = yym2838 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -34569,54 +36617,54 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2661[1] { + if yyq2833[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2667 := z.EncBinary() - _ = yym2667 + yym2839 := z.EncBinary() + _ = yym2839 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2661 || yy2arr2661 { + if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2661[2] { + if yyq2833[2] { if x.NodeName == nil { r.EncodeNil() } else { - yy2669 := *x.NodeName - yym2670 := z.EncBinary() - _ = yym2670 + yy2841 := *x.NodeName + yym2842 := z.EncBinary() + _ = yym2842 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy2669)) + r.EncodeString(codecSelferC_UTF81234, string(yy2841)) } } } else { r.EncodeNil() } } else { - if yyq2661[2] { + if yyq2833[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeName == nil { r.EncodeNil() } else { - yy2671 := *x.NodeName - yym2672 := z.EncBinary() - _ = yym2672 + yy2843 := *x.NodeName + yym2844 := z.EncBinary() + _ = yym2844 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy2671)) + r.EncodeString(codecSelferC_UTF81234, string(yy2843)) } } } } - if yyr2661 || yy2arr2661 { + if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetRef == nil { r.EncodeNil() @@ -34633,7 +36681,7 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { x.TargetRef.CodecEncodeSelf(e) } } - if yyr2661 || yy2arr2661 { + if yyr2833 || yy2arr2833 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34646,25 +36694,25 @@ func (x *EndpointAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2674 := z.DecBinary() - _ = yym2674 + yym2846 := z.DecBinary() + _ = yym2846 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2675 := r.ContainerType() - if yyct2675 == codecSelferValueTypeMap1234 { - yyl2675 := r.ReadMapStart() - if yyl2675 == 0 { + yyct2847 := r.ContainerType() + if yyct2847 == codecSelferValueTypeMap1234 { + yyl2847 := r.ReadMapStart() + if yyl2847 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2675, d) + x.codecDecodeSelfFromMap(yyl2847, d) } - } else if yyct2675 == codecSelferValueTypeArray1234 { - yyl2675 := r.ReadArrayStart() - if yyl2675 == 0 { + } else if yyct2847 == codecSelferValueTypeArray1234 { + yyl2847 := r.ReadArrayStart() + if yyl2847 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2675, d) + x.codecDecodeSelfFromArray(yyl2847, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34676,12 +36724,12 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2676Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2676Slc - var yyhl2676 bool = l >= 0 - for yyj2676 := 0; ; yyj2676++ { - if yyhl2676 { - if yyj2676 >= l { + var yys2848Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2848Slc + var yyhl2848 bool = l >= 0 + for yyj2848 := 0; ; yyj2848++ { + if yyhl2848 { + if yyj2848 >= l { break } } else { @@ -34690,10 +36738,10 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2676Slc = r.DecodeBytes(yys2676Slc, true, true) - yys2676 := string(yys2676Slc) + yys2848Slc = r.DecodeBytes(yys2848Slc, true, true) + yys2848 := string(yys2848Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2676 { + switch yys2848 { case "IP": if r.TryDecodeAsNil() { x.IP = "" @@ -34715,8 +36763,8 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.NodeName == nil { x.NodeName = new(string) } - yym2680 := z.DecBinary() - _ = yym2680 + yym2852 := z.DecBinary() + _ = yym2852 if false { } else { *((*string)(x.NodeName)) = r.DecodeString() @@ -34734,9 +36782,9 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TargetRef.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2676) - } // end switch yys2676 - } // end for yyj2676 + z.DecStructFieldNotFound(-1, yys2848) + } // end switch yys2848 + } // end for yyj2848 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34744,16 +36792,16 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2682 int - var yyb2682 bool - var yyhl2682 bool = l >= 0 - yyj2682++ - if yyhl2682 { - yyb2682 = yyj2682 > l + var yyj2854 int + var yyb2854 bool + var yyhl2854 bool = l >= 0 + yyj2854++ + if yyhl2854 { + yyb2854 = yyj2854 > l } else { - yyb2682 = r.CheckBreak() + yyb2854 = r.CheckBreak() } - if yyb2682 { + if yyb2854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34763,13 +36811,13 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.IP = string(r.DecodeString()) } - yyj2682++ - if yyhl2682 { - yyb2682 = yyj2682 > l + yyj2854++ + if yyhl2854 { + yyb2854 = yyj2854 > l } else { - yyb2682 = r.CheckBreak() + yyb2854 = r.CheckBreak() } - if yyb2682 { + if yyb2854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34779,13 +36827,13 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Hostname = string(r.DecodeString()) } - yyj2682++ - if yyhl2682 { - yyb2682 = yyj2682 > l + yyj2854++ + if yyhl2854 { + yyb2854 = yyj2854 > l } else { - yyb2682 = r.CheckBreak() + yyb2854 = r.CheckBreak() } - if yyb2682 { + if yyb2854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34798,20 +36846,20 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.NodeName == nil { x.NodeName = new(string) } - yym2686 := z.DecBinary() - _ = yym2686 + yym2858 := z.DecBinary() + _ = yym2858 if false { } else { *((*string)(x.NodeName)) = r.DecodeString() } } - yyj2682++ - if yyhl2682 { - yyb2682 = yyj2682 > l + yyj2854++ + if yyhl2854 { + yyb2854 = yyj2854 > l } else { - yyb2682 = r.CheckBreak() + yyb2854 = r.CheckBreak() } - if yyb2682 { + if yyb2854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34827,17 +36875,17 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.TargetRef.CodecDecodeSelf(d) } for { - yyj2682++ - if yyhl2682 { - yyb2682 = yyj2682 > l + yyj2854++ + if yyhl2854 { + yyb2854 = yyj2854 > l } else { - yyb2682 = r.CheckBreak() + yyb2854 = r.CheckBreak() } - if yyb2682 { + if yyb2854 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2682-1, "") + z.DecStructFieldNotFound(yyj2854-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34849,33 +36897,33 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2688 := z.EncBinary() - _ = yym2688 + yym2860 := z.EncBinary() + _ = yym2860 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2689 := !z.EncBinary() - yy2arr2689 := z.EncBasicHandle().StructToArray - var yyq2689 [3]bool - _, _, _ = yysep2689, yyq2689, yy2arr2689 - const yyr2689 bool = false - var yynn2689 int - if yyr2689 || yy2arr2689 { + yysep2861 := !z.EncBinary() + yy2arr2861 := z.EncBasicHandle().StructToArray + var yyq2861 [3]bool + _, _, _ = yysep2861, yyq2861, yy2arr2861 + const yyr2861 bool = false + var yynn2861 int + if yyr2861 || yy2arr2861 { r.EncodeArrayStart(3) } else { - yynn2689 = 3 - for _, b := range yyq2689 { + yynn2861 = 3 + for _, b := range yyq2861 { if b { - yynn2689++ + yynn2861++ } } - r.EncodeMapStart(yynn2689) - yynn2689 = 0 + r.EncodeMapStart(yynn2861) + yynn2861 = 0 } - if yyr2689 || yy2arr2689 { + if yyr2861 || yy2arr2861 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2691 := z.EncBinary() - _ = yym2691 + yym2863 := z.EncBinary() + _ = yym2863 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -34884,17 +36932,17 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2692 := z.EncBinary() - _ = yym2692 + yym2864 := z.EncBinary() + _ = yym2864 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr2689 || yy2arr2689 { + if yyr2861 || yy2arr2861 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2694 := z.EncBinary() - _ = yym2694 + yym2866 := z.EncBinary() + _ = yym2866 if false { } else { r.EncodeInt(int64(x.Port)) @@ -34903,14 +36951,14 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2695 := z.EncBinary() - _ = yym2695 + yym2867 := z.EncBinary() + _ = yym2867 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2689 || yy2arr2689 { + if yyr2861 || yy2arr2861 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Protocol.CodecEncodeSelf(e) } else { @@ -34919,7 +36967,7 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } - if yyr2689 || yy2arr2689 { + if yyr2861 || yy2arr2861 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34932,25 +36980,25 @@ func (x *EndpointPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2697 := z.DecBinary() - _ = yym2697 + yym2869 := z.DecBinary() + _ = yym2869 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2698 := r.ContainerType() - if yyct2698 == codecSelferValueTypeMap1234 { - yyl2698 := r.ReadMapStart() - if yyl2698 == 0 { + yyct2870 := r.ContainerType() + if yyct2870 == codecSelferValueTypeMap1234 { + yyl2870 := r.ReadMapStart() + if yyl2870 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2698, d) + x.codecDecodeSelfFromMap(yyl2870, d) } - } else if yyct2698 == codecSelferValueTypeArray1234 { - yyl2698 := r.ReadArrayStart() - if yyl2698 == 0 { + } else if yyct2870 == codecSelferValueTypeArray1234 { + yyl2870 := r.ReadArrayStart() + if yyl2870 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2698, d) + x.codecDecodeSelfFromArray(yyl2870, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34962,12 +37010,12 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2699Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2699Slc - var yyhl2699 bool = l >= 0 - for yyj2699 := 0; ; yyj2699++ { - if yyhl2699 { - if yyj2699 >= l { + var yys2871Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2871Slc + var yyhl2871 bool = l >= 0 + for yyj2871 := 0; ; yyj2871++ { + if yyhl2871 { + if yyj2871 >= l { break } } else { @@ -34976,10 +37024,10 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2699Slc = r.DecodeBytes(yys2699Slc, true, true) - yys2699 := string(yys2699Slc) + yys2871Slc = r.DecodeBytes(yys2871Slc, true, true) + yys2871 := string(yys2871Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2699 { + switch yys2871 { case "Name": if r.TryDecodeAsNil() { x.Name = "" @@ -34999,9 +37047,9 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Protocol = Protocol(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2699) - } // end switch yys2699 - } // end for yyj2699 + z.DecStructFieldNotFound(-1, yys2871) + } // end switch yys2871 + } // end for yyj2871 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35009,16 +37057,16 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2703 int - var yyb2703 bool - var yyhl2703 bool = l >= 0 - yyj2703++ - if yyhl2703 { - yyb2703 = yyj2703 > l + var yyj2875 int + var yyb2875 bool + var yyhl2875 bool = l >= 0 + yyj2875++ + if yyhl2875 { + yyb2875 = yyj2875 > l } else { - yyb2703 = r.CheckBreak() + yyb2875 = r.CheckBreak() } - if yyb2703 { + if yyb2875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35028,13 +37076,13 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj2703++ - if yyhl2703 { - yyb2703 = yyj2703 > l + yyj2875++ + if yyhl2875 { + yyb2875 = yyj2875 > l } else { - yyb2703 = r.CheckBreak() + yyb2875 = r.CheckBreak() } - if yyb2703 { + if yyb2875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35044,13 +37092,13 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Port = int32(r.DecodeInt(32)) } - yyj2703++ - if yyhl2703 { - yyb2703 = yyj2703 > l + yyj2875++ + if yyhl2875 { + yyb2875 = yyj2875 > l } else { - yyb2703 = r.CheckBreak() + yyb2875 = r.CheckBreak() } - if yyb2703 { + if yyb2875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35061,17 +37109,17 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Protocol = Protocol(r.DecodeString()) } for { - yyj2703++ - if yyhl2703 { - yyb2703 = yyj2703 > l + yyj2875++ + if yyhl2875 { + yyb2875 = yyj2875 > l } else { - yyb2703 = r.CheckBreak() + yyb2875 = r.CheckBreak() } - if yyb2703 { + if yyb2875 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2703-1, "") + z.DecStructFieldNotFound(yyj2875-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35083,37 +37131,37 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2707 := z.EncBinary() - _ = yym2707 + yym2879 := z.EncBinary() + _ = yym2879 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2708 := !z.EncBinary() - yy2arr2708 := z.EncBasicHandle().StructToArray - var yyq2708 [4]bool - _, _, _ = yysep2708, yyq2708, yy2arr2708 - const yyr2708 bool = false - yyq2708[0] = x.Kind != "" - yyq2708[1] = x.APIVersion != "" - yyq2708[2] = true - var yynn2708 int - if yyr2708 || yy2arr2708 { + yysep2880 := !z.EncBinary() + yy2arr2880 := z.EncBasicHandle().StructToArray + var yyq2880 [4]bool + _, _, _ = yysep2880, yyq2880, yy2arr2880 + const yyr2880 bool = false + yyq2880[0] = x.Kind != "" + yyq2880[1] = x.APIVersion != "" + yyq2880[2] = true + var yynn2880 int + if yyr2880 || yy2arr2880 { r.EncodeArrayStart(4) } else { - yynn2708 = 1 - for _, b := range yyq2708 { + yynn2880 = 1 + for _, b := range yyq2880 { if b { - yynn2708++ + yynn2880++ } } - r.EncodeMapStart(yynn2708) - yynn2708 = 0 + r.EncodeMapStart(yynn2880) + yynn2880 = 0 } - if yyr2708 || yy2arr2708 { + if yyr2880 || yy2arr2880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2708[0] { - yym2710 := z.EncBinary() - _ = yym2710 + if yyq2880[0] { + yym2882 := z.EncBinary() + _ = yym2882 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -35122,23 +37170,23 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2708[0] { + if yyq2880[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2711 := z.EncBinary() - _ = yym2711 + yym2883 := z.EncBinary() + _ = yym2883 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2708 || yy2arr2708 { + if yyr2880 || yy2arr2880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2708[1] { - yym2713 := z.EncBinary() - _ = yym2713 + if yyq2880[1] { + yym2885 := z.EncBinary() + _ = yym2885 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -35147,54 +37195,54 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2708[1] { + if yyq2880[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2714 := z.EncBinary() - _ = yym2714 + yym2886 := z.EncBinary() + _ = yym2886 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2708 || yy2arr2708 { + if yyr2880 || yy2arr2880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2708[2] { - yy2716 := &x.ListMeta - yym2717 := z.EncBinary() - _ = yym2717 + if yyq2880[2] { + yy2888 := &x.ListMeta + yym2889 := z.EncBinary() + _ = yym2889 if false { - } else if z.HasExtensions() && z.EncExt(yy2716) { + } else if z.HasExtensions() && z.EncExt(yy2888) { } else { - z.EncFallback(yy2716) + z.EncFallback(yy2888) } } else { r.EncodeNil() } } else { - if yyq2708[2] { + if yyq2880[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2718 := &x.ListMeta - yym2719 := z.EncBinary() - _ = yym2719 + yy2890 := &x.ListMeta + yym2891 := z.EncBinary() + _ = yym2891 if false { - } else if z.HasExtensions() && z.EncExt(yy2718) { + } else if z.HasExtensions() && z.EncExt(yy2890) { } else { - z.EncFallback(yy2718) + z.EncFallback(yy2890) } } } - if yyr2708 || yy2arr2708 { + if yyr2880 || yy2arr2880 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2721 := z.EncBinary() - _ = yym2721 + yym2893 := z.EncBinary() + _ = yym2893 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) @@ -35207,15 +37255,15 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2722 := z.EncBinary() - _ = yym2722 + yym2894 := z.EncBinary() + _ = yym2894 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } - if yyr2708 || yy2arr2708 { + if yyr2880 || yy2arr2880 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35228,25 +37276,25 @@ func (x *EndpointsList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2723 := z.DecBinary() - _ = yym2723 + yym2895 := z.DecBinary() + _ = yym2895 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2724 := r.ContainerType() - if yyct2724 == codecSelferValueTypeMap1234 { - yyl2724 := r.ReadMapStart() - if yyl2724 == 0 { + yyct2896 := r.ContainerType() + if yyct2896 == codecSelferValueTypeMap1234 { + yyl2896 := r.ReadMapStart() + if yyl2896 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2724, d) + x.codecDecodeSelfFromMap(yyl2896, d) } - } else if yyct2724 == codecSelferValueTypeArray1234 { - yyl2724 := r.ReadArrayStart() - if yyl2724 == 0 { + } else if yyct2896 == codecSelferValueTypeArray1234 { + yyl2896 := r.ReadArrayStart() + if yyl2896 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2724, d) + x.codecDecodeSelfFromArray(yyl2896, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35258,12 +37306,12 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2725Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2725Slc - var yyhl2725 bool = l >= 0 - for yyj2725 := 0; ; yyj2725++ { - if yyhl2725 { - if yyj2725 >= l { + var yys2897Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2897Slc + var yyhl2897 bool = l >= 0 + for yyj2897 := 0; ; yyj2897++ { + if yyhl2897 { + if yyj2897 >= l { break } } else { @@ -35272,10 +37320,10 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2725Slc = r.DecodeBytes(yys2725Slc, true, true) - yys2725 := string(yys2725Slc) + yys2897Slc = r.DecodeBytes(yys2897Slc, true, true) + yys2897 := string(yys2897Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2725 { + switch yys2897 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -35292,31 +37340,31 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2728 := &x.ListMeta - yym2729 := z.DecBinary() - _ = yym2729 + yyv2900 := &x.ListMeta + yym2901 := z.DecBinary() + _ = yym2901 if false { - } else if z.HasExtensions() && z.DecExt(yyv2728) { + } else if z.HasExtensions() && z.DecExt(yyv2900) { } else { - z.DecFallback(yyv2728, false) + z.DecFallback(yyv2900, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2730 := &x.Items - yym2731 := z.DecBinary() - _ = yym2731 + yyv2902 := &x.Items + yym2903 := z.DecBinary() + _ = yym2903 if false { } else { - h.decSliceEndpoints((*[]Endpoints)(yyv2730), d) + h.decSliceEndpoints((*[]Endpoints)(yyv2902), d) } } default: - z.DecStructFieldNotFound(-1, yys2725) - } // end switch yys2725 - } // end for yyj2725 + z.DecStructFieldNotFound(-1, yys2897) + } // end switch yys2897 + } // end for yyj2897 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35324,16 +37372,16 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2732 int - var yyb2732 bool - var yyhl2732 bool = l >= 0 - yyj2732++ - if yyhl2732 { - yyb2732 = yyj2732 > l + var yyj2904 int + var yyb2904 bool + var yyhl2904 bool = l >= 0 + yyj2904++ + if yyhl2904 { + yyb2904 = yyj2904 > l } else { - yyb2732 = r.CheckBreak() + yyb2904 = r.CheckBreak() } - if yyb2732 { + if yyb2904 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35343,13 +37391,13 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2732++ - if yyhl2732 { - yyb2732 = yyj2732 > l + yyj2904++ + if yyhl2904 { + yyb2904 = yyj2904 > l } else { - yyb2732 = r.CheckBreak() + yyb2904 = r.CheckBreak() } - if yyb2732 { + if yyb2904 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35359,13 +37407,13 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2732++ - if yyhl2732 { - yyb2732 = yyj2732 > l + yyj2904++ + if yyhl2904 { + yyb2904 = yyj2904 > l } else { - yyb2732 = r.CheckBreak() + yyb2904 = r.CheckBreak() } - if yyb2732 { + if yyb2904 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35373,22 +37421,22 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2735 := &x.ListMeta - yym2736 := z.DecBinary() - _ = yym2736 + yyv2907 := &x.ListMeta + yym2908 := z.DecBinary() + _ = yym2908 if false { - } else if z.HasExtensions() && z.DecExt(yyv2735) { + } else if z.HasExtensions() && z.DecExt(yyv2907) { } else { - z.DecFallback(yyv2735, false) + z.DecFallback(yyv2907, false) } } - yyj2732++ - if yyhl2732 { - yyb2732 = yyj2732 > l + yyj2904++ + if yyhl2904 { + yyb2904 = yyj2904 > l } else { - yyb2732 = r.CheckBreak() + yyb2904 = r.CheckBreak() } - if yyb2732 { + if yyb2904 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35396,26 +37444,26 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2737 := &x.Items - yym2738 := z.DecBinary() - _ = yym2738 + yyv2909 := &x.Items + yym2910 := z.DecBinary() + _ = yym2910 if false { } else { - h.decSliceEndpoints((*[]Endpoints)(yyv2737), d) + h.decSliceEndpoints((*[]Endpoints)(yyv2909), d) } } for { - yyj2732++ - if yyhl2732 { - yyb2732 = yyj2732 > l + yyj2904++ + if yyhl2904 { + yyb2904 = yyj2904 > l } else { - yyb2732 = r.CheckBreak() + yyb2904 = r.CheckBreak() } - if yyb2732 { + if yyb2904 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2732-1, "") + z.DecStructFieldNotFound(yyj2904-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35427,38 +37475,38 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2739 := z.EncBinary() - _ = yym2739 + yym2911 := z.EncBinary() + _ = yym2911 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2740 := !z.EncBinary() - yy2arr2740 := z.EncBasicHandle().StructToArray - var yyq2740 [4]bool - _, _, _ = yysep2740, yyq2740, yy2arr2740 - const yyr2740 bool = false - yyq2740[0] = x.PodCIDR != "" - yyq2740[1] = x.ExternalID != "" - yyq2740[2] = x.ProviderID != "" - yyq2740[3] = x.Unschedulable != false - var yynn2740 int - if yyr2740 || yy2arr2740 { + yysep2912 := !z.EncBinary() + yy2arr2912 := z.EncBasicHandle().StructToArray + var yyq2912 [4]bool + _, _, _ = yysep2912, yyq2912, yy2arr2912 + const yyr2912 bool = false + yyq2912[0] = x.PodCIDR != "" + yyq2912[1] = x.ExternalID != "" + yyq2912[2] = x.ProviderID != "" + yyq2912[3] = x.Unschedulable != false + var yynn2912 int + if yyr2912 || yy2arr2912 { r.EncodeArrayStart(4) } else { - yynn2740 = 0 - for _, b := range yyq2740 { + yynn2912 = 0 + for _, b := range yyq2912 { if b { - yynn2740++ + yynn2912++ } } - r.EncodeMapStart(yynn2740) - yynn2740 = 0 + r.EncodeMapStart(yynn2912) + yynn2912 = 0 } - if yyr2740 || yy2arr2740 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2740[0] { - yym2742 := z.EncBinary() - _ = yym2742 + if yyq2912[0] { + yym2914 := z.EncBinary() + _ = yym2914 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) @@ -35467,23 +37515,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2740[0] { + if yyq2912[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2743 := z.EncBinary() - _ = yym2743 + yym2915 := z.EncBinary() + _ = yym2915 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } - if yyr2740 || yy2arr2740 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2740[1] { - yym2745 := z.EncBinary() - _ = yym2745 + if yyq2912[1] { + yym2917 := z.EncBinary() + _ = yym2917 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) @@ -35492,23 +37540,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2740[1] { + if yyq2912[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2746 := z.EncBinary() - _ = yym2746 + yym2918 := z.EncBinary() + _ = yym2918 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } - if yyr2740 || yy2arr2740 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2740[2] { - yym2748 := z.EncBinary() - _ = yym2748 + if yyq2912[2] { + yym2920 := z.EncBinary() + _ = yym2920 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) @@ -35517,23 +37565,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2740[2] { + if yyq2912[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2749 := z.EncBinary() - _ = yym2749 + yym2921 := z.EncBinary() + _ = yym2921 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } - if yyr2740 || yy2arr2740 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2740[3] { - yym2751 := z.EncBinary() - _ = yym2751 + if yyq2912[3] { + yym2923 := z.EncBinary() + _ = yym2923 if false { } else { r.EncodeBool(bool(x.Unschedulable)) @@ -35542,19 +37590,19 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2740[3] { + if yyq2912[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2752 := z.EncBinary() - _ = yym2752 + yym2924 := z.EncBinary() + _ = yym2924 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } - if yyr2740 || yy2arr2740 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35567,25 +37615,25 @@ func (x *NodeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2753 := z.DecBinary() - _ = yym2753 + yym2925 := z.DecBinary() + _ = yym2925 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2754 := r.ContainerType() - if yyct2754 == codecSelferValueTypeMap1234 { - yyl2754 := r.ReadMapStart() - if yyl2754 == 0 { + yyct2926 := r.ContainerType() + if yyct2926 == codecSelferValueTypeMap1234 { + yyl2926 := r.ReadMapStart() + if yyl2926 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2754, d) + x.codecDecodeSelfFromMap(yyl2926, d) } - } else if yyct2754 == codecSelferValueTypeArray1234 { - yyl2754 := r.ReadArrayStart() - if yyl2754 == 0 { + } else if yyct2926 == codecSelferValueTypeArray1234 { + yyl2926 := r.ReadArrayStart() + if yyl2926 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2754, d) + x.codecDecodeSelfFromArray(yyl2926, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35597,12 +37645,12 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2755Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2755Slc - var yyhl2755 bool = l >= 0 - for yyj2755 := 0; ; yyj2755++ { - if yyhl2755 { - if yyj2755 >= l { + var yys2927Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2927Slc + var yyhl2927 bool = l >= 0 + for yyj2927 := 0; ; yyj2927++ { + if yyhl2927 { + if yyj2927 >= l { break } } else { @@ -35611,10 +37659,10 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2755Slc = r.DecodeBytes(yys2755Slc, true, true) - yys2755 := string(yys2755Slc) + yys2927Slc = r.DecodeBytes(yys2927Slc, true, true) + yys2927 := string(yys2927Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2755 { + switch yys2927 { case "podCIDR": if r.TryDecodeAsNil() { x.PodCIDR = "" @@ -35640,9 +37688,9 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Unschedulable = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys2755) - } // end switch yys2755 - } // end for yyj2755 + z.DecStructFieldNotFound(-1, yys2927) + } // end switch yys2927 + } // end for yyj2927 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35650,16 +37698,16 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2760 int - var yyb2760 bool - var yyhl2760 bool = l >= 0 - yyj2760++ - if yyhl2760 { - yyb2760 = yyj2760 > l + var yyj2932 int + var yyb2932 bool + var yyhl2932 bool = l >= 0 + yyj2932++ + if yyhl2932 { + yyb2932 = yyj2932 > l } else { - yyb2760 = r.CheckBreak() + yyb2932 = r.CheckBreak() } - if yyb2760 { + if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35669,13 +37717,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.PodCIDR = string(r.DecodeString()) } - yyj2760++ - if yyhl2760 { - yyb2760 = yyj2760 > l + yyj2932++ + if yyhl2932 { + yyb2932 = yyj2932 > l } else { - yyb2760 = r.CheckBreak() + yyb2932 = r.CheckBreak() } - if yyb2760 { + if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35685,13 +37733,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ExternalID = string(r.DecodeString()) } - yyj2760++ - if yyhl2760 { - yyb2760 = yyj2760 > l + yyj2932++ + if yyhl2932 { + yyb2932 = yyj2932 > l } else { - yyb2760 = r.CheckBreak() + yyb2932 = r.CheckBreak() } - if yyb2760 { + if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35701,13 +37749,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ProviderID = string(r.DecodeString()) } - yyj2760++ - if yyhl2760 { - yyb2760 = yyj2760 > l + yyj2932++ + if yyhl2932 { + yyb2932 = yyj2932 > l } else { - yyb2760 = r.CheckBreak() + yyb2932 = r.CheckBreak() } - if yyb2760 { + if yyb2932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35718,17 +37766,17 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Unschedulable = bool(r.DecodeBool()) } for { - yyj2760++ - if yyhl2760 { - yyb2760 = yyj2760 > l + yyj2932++ + if yyhl2932 { + yyb2932 = yyj2932 > l } else { - yyb2760 = r.CheckBreak() + yyb2932 = r.CheckBreak() } - if yyb2760 { + if yyb2932 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2760-1, "") + z.DecStructFieldNotFound(yyj2932-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35740,33 +37788,33 @@ func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2765 := z.EncBinary() - _ = yym2765 + yym2937 := z.EncBinary() + _ = yym2937 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2766 := !z.EncBinary() - yy2arr2766 := z.EncBasicHandle().StructToArray - var yyq2766 [1]bool - _, _, _ = yysep2766, yyq2766, yy2arr2766 - const yyr2766 bool = false - var yynn2766 int - if yyr2766 || yy2arr2766 { + yysep2938 := !z.EncBinary() + yy2arr2938 := z.EncBasicHandle().StructToArray + var yyq2938 [1]bool + _, _, _ = yysep2938, yyq2938, yy2arr2938 + const yyr2938 bool = false + var yynn2938 int + if yyr2938 || yy2arr2938 { r.EncodeArrayStart(1) } else { - yynn2766 = 1 - for _, b := range yyq2766 { + yynn2938 = 1 + for _, b := range yyq2938 { if b { - yynn2766++ + yynn2938++ } } - r.EncodeMapStart(yynn2766) - yynn2766 = 0 + r.EncodeMapStart(yynn2938) + yynn2938 = 0 } - if yyr2766 || yy2arr2766 { + if yyr2938 || yy2arr2938 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2768 := z.EncBinary() - _ = yym2768 + yym2940 := z.EncBinary() + _ = yym2940 if false { } else { r.EncodeInt(int64(x.Port)) @@ -35775,14 +37823,14 @@ func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2769 := z.EncBinary() - _ = yym2769 + yym2941 := z.EncBinary() + _ = yym2941 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2766 || yy2arr2766 { + if yyr2938 || yy2arr2938 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35795,25 +37843,25 @@ func (x *DaemonEndpoint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2770 := z.DecBinary() - _ = yym2770 + yym2942 := z.DecBinary() + _ = yym2942 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2771 := r.ContainerType() - if yyct2771 == codecSelferValueTypeMap1234 { - yyl2771 := r.ReadMapStart() - if yyl2771 == 0 { + yyct2943 := r.ContainerType() + if yyct2943 == codecSelferValueTypeMap1234 { + yyl2943 := r.ReadMapStart() + if yyl2943 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2771, d) + x.codecDecodeSelfFromMap(yyl2943, d) } - } else if yyct2771 == codecSelferValueTypeArray1234 { - yyl2771 := r.ReadArrayStart() - if yyl2771 == 0 { + } else if yyct2943 == codecSelferValueTypeArray1234 { + yyl2943 := r.ReadArrayStart() + if yyl2943 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2771, d) + x.codecDecodeSelfFromArray(yyl2943, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35825,12 +37873,12 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2772Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2772Slc - var yyhl2772 bool = l >= 0 - for yyj2772 := 0; ; yyj2772++ { - if yyhl2772 { - if yyj2772 >= l { + var yys2944Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2944Slc + var yyhl2944 bool = l >= 0 + for yyj2944 := 0; ; yyj2944++ { + if yyhl2944 { + if yyj2944 >= l { break } } else { @@ -35839,10 +37887,10 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2772Slc = r.DecodeBytes(yys2772Slc, true, true) - yys2772 := string(yys2772Slc) + yys2944Slc = r.DecodeBytes(yys2944Slc, true, true) + yys2944 := string(yys2944Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2772 { + switch yys2944 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 @@ -35850,9 +37898,9 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Port = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys2772) - } // end switch yys2772 - } // end for yyj2772 + z.DecStructFieldNotFound(-1, yys2944) + } // end switch yys2944 + } // end for yyj2944 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35860,16 +37908,16 @@ func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2774 int - var yyb2774 bool - var yyhl2774 bool = l >= 0 - yyj2774++ - if yyhl2774 { - yyb2774 = yyj2774 > l + var yyj2946 int + var yyb2946 bool + var yyhl2946 bool = l >= 0 + yyj2946++ + if yyhl2946 { + yyb2946 = yyj2946 > l } else { - yyb2774 = r.CheckBreak() + yyb2946 = r.CheckBreak() } - if yyb2774 { + if yyb2946 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35880,17 +37928,17 @@ func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Port = int32(r.DecodeInt(32)) } for { - yyj2774++ - if yyhl2774 { - yyb2774 = yyj2774 > l + yyj2946++ + if yyhl2946 { + yyb2946 = yyj2946 > l } else { - yyb2774 = r.CheckBreak() + yyb2946 = r.CheckBreak() } - if yyb2774 { + if yyb2946 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2774-1, "") + z.DecStructFieldNotFound(yyj2946-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35902,48 +37950,48 @@ func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2776 := z.EncBinary() - _ = yym2776 + yym2948 := z.EncBinary() + _ = yym2948 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2777 := !z.EncBinary() - yy2arr2777 := z.EncBasicHandle().StructToArray - var yyq2777 [1]bool - _, _, _ = yysep2777, yyq2777, yy2arr2777 - const yyr2777 bool = false - yyq2777[0] = true - var yynn2777 int - if yyr2777 || yy2arr2777 { + yysep2949 := !z.EncBinary() + yy2arr2949 := z.EncBasicHandle().StructToArray + var yyq2949 [1]bool + _, _, _ = yysep2949, yyq2949, yy2arr2949 + const yyr2949 bool = false + yyq2949[0] = true + var yynn2949 int + if yyr2949 || yy2arr2949 { r.EncodeArrayStart(1) } else { - yynn2777 = 0 - for _, b := range yyq2777 { + yynn2949 = 0 + for _, b := range yyq2949 { if b { - yynn2777++ + yynn2949++ } } - r.EncodeMapStart(yynn2777) - yynn2777 = 0 + r.EncodeMapStart(yynn2949) + yynn2949 = 0 } - if yyr2777 || yy2arr2777 { + if yyr2949 || yy2arr2949 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2777[0] { - yy2779 := &x.KubeletEndpoint - yy2779.CodecEncodeSelf(e) + if yyq2949[0] { + yy2951 := &x.KubeletEndpoint + yy2951.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2777[0] { + if yyq2949[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2780 := &x.KubeletEndpoint - yy2780.CodecEncodeSelf(e) + yy2952 := &x.KubeletEndpoint + yy2952.CodecEncodeSelf(e) } } - if yyr2777 || yy2arr2777 { + if yyr2949 || yy2arr2949 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35956,25 +38004,25 @@ func (x *NodeDaemonEndpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2781 := z.DecBinary() - _ = yym2781 + yym2953 := z.DecBinary() + _ = yym2953 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2782 := r.ContainerType() - if yyct2782 == codecSelferValueTypeMap1234 { - yyl2782 := r.ReadMapStart() - if yyl2782 == 0 { + yyct2954 := r.ContainerType() + if yyct2954 == codecSelferValueTypeMap1234 { + yyl2954 := r.ReadMapStart() + if yyl2954 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2782, d) + x.codecDecodeSelfFromMap(yyl2954, d) } - } else if yyct2782 == codecSelferValueTypeArray1234 { - yyl2782 := r.ReadArrayStart() - if yyl2782 == 0 { + } else if yyct2954 == codecSelferValueTypeArray1234 { + yyl2954 := r.ReadArrayStart() + if yyl2954 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2782, d) + x.codecDecodeSelfFromArray(yyl2954, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35986,12 +38034,12 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2783Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2783Slc - var yyhl2783 bool = l >= 0 - for yyj2783 := 0; ; yyj2783++ { - if yyhl2783 { - if yyj2783 >= l { + var yys2955Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2955Slc + var yyhl2955 bool = l >= 0 + for yyj2955 := 0; ; yyj2955++ { + if yyhl2955 { + if yyj2955 >= l { break } } else { @@ -36000,21 +38048,21 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2783Slc = r.DecodeBytes(yys2783Slc, true, true) - yys2783 := string(yys2783Slc) + yys2955Slc = r.DecodeBytes(yys2955Slc, true, true) + yys2955 := string(yys2955Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2783 { + switch yys2955 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { - yyv2784 := &x.KubeletEndpoint - yyv2784.CodecDecodeSelf(d) + yyv2956 := &x.KubeletEndpoint + yyv2956.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2783) - } // end switch yys2783 - } // end for yyj2783 + z.DecStructFieldNotFound(-1, yys2955) + } // end switch yys2955 + } // end for yyj2955 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36022,16 +38070,16 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2785 int - var yyb2785 bool - var yyhl2785 bool = l >= 0 - yyj2785++ - if yyhl2785 { - yyb2785 = yyj2785 > l + var yyj2957 int + var yyb2957 bool + var yyhl2957 bool = l >= 0 + yyj2957++ + if yyhl2957 { + yyb2957 = yyj2957 > l } else { - yyb2785 = r.CheckBreak() + yyb2957 = r.CheckBreak() } - if yyb2785 { + if yyb2957 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36039,21 +38087,21 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { - yyv2786 := &x.KubeletEndpoint - yyv2786.CodecDecodeSelf(d) + yyv2958 := &x.KubeletEndpoint + yyv2958.CodecDecodeSelf(d) } for { - yyj2785++ - if yyhl2785 { - yyb2785 = yyj2785 > l + yyj2957++ + if yyhl2957 { + yyb2957 = yyj2957 > l } else { - yyb2785 = r.CheckBreak() + yyb2957 = r.CheckBreak() } - if yyb2785 { + if yyb2957 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2785-1, "") + z.DecStructFieldNotFound(yyj2957-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36065,33 +38113,33 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2787 := z.EncBinary() - _ = yym2787 + yym2959 := z.EncBinary() + _ = yym2959 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2788 := !z.EncBinary() - yy2arr2788 := z.EncBasicHandle().StructToArray - var yyq2788 [10]bool - _, _, _ = yysep2788, yyq2788, yy2arr2788 - const yyr2788 bool = false - var yynn2788 int - if yyr2788 || yy2arr2788 { + yysep2960 := !z.EncBinary() + yy2arr2960 := z.EncBasicHandle().StructToArray + var yyq2960 [10]bool + _, _, _ = yysep2960, yyq2960, yy2arr2960 + const yyr2960 bool = false + var yynn2960 int + if yyr2960 || yy2arr2960 { r.EncodeArrayStart(10) } else { - yynn2788 = 10 - for _, b := range yyq2788 { + yynn2960 = 10 + for _, b := range yyq2960 { if b { - yynn2788++ + yynn2960++ } } - r.EncodeMapStart(yynn2788) - yynn2788 = 0 + r.EncodeMapStart(yynn2960) + yynn2960 = 0 } - if yyr2788 || yy2arr2788 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2790 := z.EncBinary() - _ = yym2790 + yym2962 := z.EncBinary() + _ = yym2962 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) @@ -36100,17 +38148,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("machineID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2791 := z.EncBinary() - _ = yym2791 + yym2963 := z.EncBinary() + _ = yym2963 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } - if yyr2788 || yy2arr2788 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2793 := z.EncBinary() - _ = yym2793 + yym2965 := z.EncBinary() + _ = yym2965 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) @@ -36119,17 +38167,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("systemUUID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2794 := z.EncBinary() - _ = yym2794 + yym2966 := z.EncBinary() + _ = yym2966 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } - if yyr2788 || yy2arr2788 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2796 := z.EncBinary() - _ = yym2796 + yym2968 := z.EncBinary() + _ = yym2968 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) @@ -36138,17 +38186,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("bootID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2797 := z.EncBinary() - _ = yym2797 + yym2969 := z.EncBinary() + _ = yym2969 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } - if yyr2788 || yy2arr2788 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2799 := z.EncBinary() - _ = yym2799 + yym2971 := z.EncBinary() + _ = yym2971 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) @@ -36157,17 +38205,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kernelVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2800 := z.EncBinary() - _ = yym2800 + yym2972 := z.EncBinary() + _ = yym2972 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } - if yyr2788 || yy2arr2788 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2802 := z.EncBinary() - _ = yym2802 + yym2974 := z.EncBinary() + _ = yym2974 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) @@ -36176,17 +38224,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("osImage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2803 := z.EncBinary() - _ = yym2803 + yym2975 := z.EncBinary() + _ = yym2975 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) } } - if yyr2788 || yy2arr2788 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2805 := z.EncBinary() - _ = yym2805 + yym2977 := z.EncBinary() + _ = yym2977 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) @@ -36195,17 +38243,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerRuntimeVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2806 := z.EncBinary() - _ = yym2806 + yym2978 := z.EncBinary() + _ = yym2978 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } - if yyr2788 || yy2arr2788 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2808 := z.EncBinary() - _ = yym2808 + yym2980 := z.EncBinary() + _ = yym2980 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) @@ -36214,17 +38262,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2809 := z.EncBinary() - _ = yym2809 + yym2981 := z.EncBinary() + _ = yym2981 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } - if yyr2788 || yy2arr2788 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2811 := z.EncBinary() - _ = yym2811 + yym2983 := z.EncBinary() + _ = yym2983 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) @@ -36233,17 +38281,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeProxyVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2812 := z.EncBinary() - _ = yym2812 + yym2984 := z.EncBinary() + _ = yym2984 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } - if yyr2788 || yy2arr2788 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2814 := z.EncBinary() - _ = yym2814 + yym2986 := z.EncBinary() + _ = yym2986 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) @@ -36252,17 +38300,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operatingSystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2815 := z.EncBinary() - _ = yym2815 + yym2987 := z.EncBinary() + _ = yym2987 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) } } - if yyr2788 || yy2arr2788 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2817 := z.EncBinary() - _ = yym2817 + yym2989 := z.EncBinary() + _ = yym2989 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) @@ -36271,14 +38319,14 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("architecture")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2818 := z.EncBinary() - _ = yym2818 + yym2990 := z.EncBinary() + _ = yym2990 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) } } - if yyr2788 || yy2arr2788 { + if yyr2960 || yy2arr2960 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36291,25 +38339,25 @@ func (x *NodeSystemInfo) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2819 := z.DecBinary() - _ = yym2819 + yym2991 := z.DecBinary() + _ = yym2991 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2820 := r.ContainerType() - if yyct2820 == codecSelferValueTypeMap1234 { - yyl2820 := r.ReadMapStart() - if yyl2820 == 0 { + yyct2992 := r.ContainerType() + if yyct2992 == codecSelferValueTypeMap1234 { + yyl2992 := r.ReadMapStart() + if yyl2992 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2820, d) + x.codecDecodeSelfFromMap(yyl2992, d) } - } else if yyct2820 == codecSelferValueTypeArray1234 { - yyl2820 := r.ReadArrayStart() - if yyl2820 == 0 { + } else if yyct2992 == codecSelferValueTypeArray1234 { + yyl2992 := r.ReadArrayStart() + if yyl2992 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2820, d) + x.codecDecodeSelfFromArray(yyl2992, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36321,12 +38369,12 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2821Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2821Slc - var yyhl2821 bool = l >= 0 - for yyj2821 := 0; ; yyj2821++ { - if yyhl2821 { - if yyj2821 >= l { + var yys2993Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2993Slc + var yyhl2993 bool = l >= 0 + for yyj2993 := 0; ; yyj2993++ { + if yyhl2993 { + if yyj2993 >= l { break } } else { @@ -36335,10 +38383,10 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2821Slc = r.DecodeBytes(yys2821Slc, true, true) - yys2821 := string(yys2821Slc) + yys2993Slc = r.DecodeBytes(yys2993Slc, true, true) + yys2993 := string(yys2993Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2821 { + switch yys2993 { case "machineID": if r.TryDecodeAsNil() { x.MachineID = "" @@ -36400,9 +38448,9 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Architecture = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2821) - } // end switch yys2821 - } // end for yyj2821 + z.DecStructFieldNotFound(-1, yys2993) + } // end switch yys2993 + } // end for yyj2993 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36410,16 +38458,16 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2832 int - var yyb2832 bool - var yyhl2832 bool = l >= 0 - yyj2832++ - if yyhl2832 { - yyb2832 = yyj2832 > l + var yyj3004 int + var yyb3004 bool + var yyhl3004 bool = l >= 0 + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb2832 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb2832 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36429,13 +38477,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MachineID = string(r.DecodeString()) } - yyj2832++ - if yyhl2832 { - yyb2832 = yyj2832 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb2832 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb2832 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36445,13 +38493,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SystemUUID = string(r.DecodeString()) } - yyj2832++ - if yyhl2832 { - yyb2832 = yyj2832 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb2832 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb2832 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36461,13 +38509,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.BootID = string(r.DecodeString()) } - yyj2832++ - if yyhl2832 { - yyb2832 = yyj2832 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb2832 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb2832 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36477,13 +38525,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KernelVersion = string(r.DecodeString()) } - yyj2832++ - if yyhl2832 { - yyb2832 = yyj2832 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb2832 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb2832 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36493,13 +38541,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.OSImage = string(r.DecodeString()) } - yyj2832++ - if yyhl2832 { - yyb2832 = yyj2832 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb2832 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb2832 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36509,13 +38557,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } - yyj2832++ - if yyhl2832 { - yyb2832 = yyj2832 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb2832 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb2832 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36525,13 +38573,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KubeletVersion = string(r.DecodeString()) } - yyj2832++ - if yyhl2832 { - yyb2832 = yyj2832 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb2832 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb2832 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36541,13 +38589,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KubeProxyVersion = string(r.DecodeString()) } - yyj2832++ - if yyhl2832 { - yyb2832 = yyj2832 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb2832 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb2832 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36557,13 +38605,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.OperatingSystem = string(r.DecodeString()) } - yyj2832++ - if yyhl2832 { - yyb2832 = yyj2832 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb2832 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb2832 { + if yyb3004 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36574,17 +38622,17 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Architecture = string(r.DecodeString()) } for { - yyj2832++ - if yyhl2832 { - yyb2832 = yyj2832 > l + yyj3004++ + if yyhl3004 { + yyb3004 = yyj3004 > l } else { - yyb2832 = r.CheckBreak() + yyb3004 = r.CheckBreak() } - if yyb2832 { + if yyb3004 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2832-1, "") + z.DecStructFieldNotFound(yyj3004-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36596,42 +38644,42 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2843 := z.EncBinary() - _ = yym2843 + yym3015 := z.EncBinary() + _ = yym3015 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2844 := !z.EncBinary() - yy2arr2844 := z.EncBasicHandle().StructToArray - var yyq2844 [10]bool - _, _, _ = yysep2844, yyq2844, yy2arr2844 - const yyr2844 bool = false - yyq2844[0] = len(x.Capacity) != 0 - yyq2844[1] = len(x.Allocatable) != 0 - yyq2844[2] = x.Phase != "" - yyq2844[3] = len(x.Conditions) != 0 - yyq2844[4] = len(x.Addresses) != 0 - yyq2844[5] = true - yyq2844[6] = true - yyq2844[7] = len(x.Images) != 0 - yyq2844[8] = len(x.VolumesInUse) != 0 - yyq2844[9] = len(x.VolumesAttached) != 0 - var yynn2844 int - if yyr2844 || yy2arr2844 { + yysep3016 := !z.EncBinary() + yy2arr3016 := z.EncBasicHandle().StructToArray + var yyq3016 [10]bool + _, _, _ = yysep3016, yyq3016, yy2arr3016 + const yyr3016 bool = false + yyq3016[0] = len(x.Capacity) != 0 + yyq3016[1] = len(x.Allocatable) != 0 + yyq3016[2] = x.Phase != "" + yyq3016[3] = len(x.Conditions) != 0 + yyq3016[4] = len(x.Addresses) != 0 + yyq3016[5] = true + yyq3016[6] = true + yyq3016[7] = len(x.Images) != 0 + yyq3016[8] = len(x.VolumesInUse) != 0 + yyq3016[9] = len(x.VolumesAttached) != 0 + var yynn3016 int + if yyr3016 || yy2arr3016 { r.EncodeArrayStart(10) } else { - yynn2844 = 0 - for _, b := range yyq2844 { + yynn3016 = 0 + for _, b := range yyq3016 { if b { - yynn2844++ + yynn3016++ } } - r.EncodeMapStart(yynn2844) - yynn2844 = 0 + r.EncodeMapStart(yynn3016) + yynn3016 = 0 } - if yyr2844 || yy2arr2844 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2844[0] { + if yyq3016[0] { if x.Capacity == nil { r.EncodeNil() } else { @@ -36641,7 +38689,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2844[0] { + if yyq3016[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -36652,9 +38700,9 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2844 || yy2arr2844 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2844[1] { + if yyq3016[1] { if x.Allocatable == nil { r.EncodeNil() } else { @@ -36664,7 +38712,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2844[1] { + if yyq3016[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allocatable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -36675,29 +38723,29 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2844 || yy2arr2844 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2844[2] { + if yyq3016[2] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2844[2] { + if yyq3016[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2844 || yy2arr2844 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2844[3] { + if yyq3016[3] { if x.Conditions == nil { r.EncodeNil() } else { - yym2849 := z.EncBinary() - _ = yym2849 + yym3021 := z.EncBinary() + _ = yym3021 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) @@ -36707,15 +38755,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2844[3] { + if yyq3016[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym2850 := z.EncBinary() - _ = yym2850 + yym3022 := z.EncBinary() + _ = yym3022 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) @@ -36723,14 +38771,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2844 || yy2arr2844 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2844[4] { + if yyq3016[4] { if x.Addresses == nil { r.EncodeNil() } else { - yym2852 := z.EncBinary() - _ = yym2852 + yym3024 := z.EncBinary() + _ = yym3024 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) @@ -36740,15 +38788,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2844[4] { + if yyq3016[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { - yym2853 := z.EncBinary() - _ = yym2853 + yym3025 := z.EncBinary() + _ = yym3025 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) @@ -36756,48 +38804,48 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2844 || yy2arr2844 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2844[5] { - yy2855 := &x.DaemonEndpoints - yy2855.CodecEncodeSelf(e) + if yyq3016[5] { + yy3027 := &x.DaemonEndpoints + yy3027.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2844[5] { + if yyq3016[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2856 := &x.DaemonEndpoints - yy2856.CodecEncodeSelf(e) + yy3028 := &x.DaemonEndpoints + yy3028.CodecEncodeSelf(e) } } - if yyr2844 || yy2arr2844 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2844[6] { - yy2858 := &x.NodeInfo - yy2858.CodecEncodeSelf(e) + if yyq3016[6] { + yy3030 := &x.NodeInfo + yy3030.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2844[6] { + if yyq3016[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2859 := &x.NodeInfo - yy2859.CodecEncodeSelf(e) + yy3031 := &x.NodeInfo + yy3031.CodecEncodeSelf(e) } } - if yyr2844 || yy2arr2844 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2844[7] { + if yyq3016[7] { if x.Images == nil { r.EncodeNil() } else { - yym2861 := z.EncBinary() - _ = yym2861 + yym3033 := z.EncBinary() + _ = yym3033 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) @@ -36807,15 +38855,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2844[7] { + if yyq3016[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("images")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Images == nil { r.EncodeNil() } else { - yym2862 := z.EncBinary() - _ = yym2862 + yym3034 := z.EncBinary() + _ = yym3034 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) @@ -36823,14 +38871,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2844 || yy2arr2844 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2844[8] { + if yyq3016[8] { if x.VolumesInUse == nil { r.EncodeNil() } else { - yym2864 := z.EncBinary() - _ = yym2864 + yym3036 := z.EncBinary() + _ = yym3036 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) @@ -36840,15 +38888,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2844[8] { + if yyq3016[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesInUse")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesInUse == nil { r.EncodeNil() } else { - yym2865 := z.EncBinary() - _ = yym2865 + yym3037 := z.EncBinary() + _ = yym3037 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) @@ -36856,14 +38904,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2844 || yy2arr2844 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2844[9] { + if yyq3016[9] { if x.VolumesAttached == nil { r.EncodeNil() } else { - yym2867 := z.EncBinary() - _ = yym2867 + yym3039 := z.EncBinary() + _ = yym3039 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) @@ -36873,15 +38921,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2844[9] { + if yyq3016[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesAttached")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesAttached == nil { r.EncodeNil() } else { - yym2868 := z.EncBinary() - _ = yym2868 + yym3040 := z.EncBinary() + _ = yym3040 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) @@ -36889,7 +38937,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2844 || yy2arr2844 { + if yyr3016 || yy2arr3016 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36899,2113 +38947,6 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } func (x *NodeStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2869 := z.DecBinary() - _ = yym2869 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2870 := r.ContainerType() - if yyct2870 == codecSelferValueTypeMap1234 { - yyl2870 := r.ReadMapStart() - if yyl2870 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2870, d) - } - } else if yyct2870 == codecSelferValueTypeArray1234 { - yyl2870 := r.ReadArrayStart() - if yyl2870 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2870, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2871Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2871Slc - var yyhl2871 bool = l >= 0 - for yyj2871 := 0; ; yyj2871++ { - if yyhl2871 { - if yyj2871 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2871Slc = r.DecodeBytes(yys2871Slc, true, true) - yys2871 := string(yys2871Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2871 { - case "capacity": - if r.TryDecodeAsNil() { - x.Capacity = nil - } else { - yyv2872 := &x.Capacity - yyv2872.CodecDecodeSelf(d) - } - case "allocatable": - if r.TryDecodeAsNil() { - x.Allocatable = nil - } else { - yyv2873 := &x.Allocatable - yyv2873.CodecDecodeSelf(d) - } - case "phase": - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = NodePhase(r.DecodeString()) - } - case "conditions": - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv2875 := &x.Conditions - yym2876 := z.DecBinary() - _ = yym2876 - if false { - } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv2875), d) - } - } - case "addresses": - if r.TryDecodeAsNil() { - x.Addresses = nil - } else { - yyv2877 := &x.Addresses - yym2878 := z.DecBinary() - _ = yym2878 - if false { - } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv2877), d) - } - } - case "daemonEndpoints": - if r.TryDecodeAsNil() { - x.DaemonEndpoints = NodeDaemonEndpoints{} - } else { - yyv2879 := &x.DaemonEndpoints - yyv2879.CodecDecodeSelf(d) - } - case "nodeInfo": - if r.TryDecodeAsNil() { - x.NodeInfo = NodeSystemInfo{} - } else { - yyv2880 := &x.NodeInfo - yyv2880.CodecDecodeSelf(d) - } - case "images": - if r.TryDecodeAsNil() { - x.Images = nil - } else { - yyv2881 := &x.Images - yym2882 := z.DecBinary() - _ = yym2882 - if false { - } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv2881), d) - } - } - case "volumesInUse": - if r.TryDecodeAsNil() { - x.VolumesInUse = nil - } else { - yyv2883 := &x.VolumesInUse - yym2884 := z.DecBinary() - _ = yym2884 - if false { - } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2883), d) - } - } - case "volumesAttached": - if r.TryDecodeAsNil() { - x.VolumesAttached = nil - } else { - yyv2885 := &x.VolumesAttached - yym2886 := z.DecBinary() - _ = yym2886 - if false { - } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2885), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2871) - } // end switch yys2871 - } // end for yyj2871 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2887 int - var yyb2887 bool - var yyhl2887 bool = l >= 0 - yyj2887++ - if yyhl2887 { - yyb2887 = yyj2887 > l - } else { - yyb2887 = r.CheckBreak() - } - if yyb2887 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Capacity = nil - } else { - yyv2888 := &x.Capacity - yyv2888.CodecDecodeSelf(d) - } - yyj2887++ - if yyhl2887 { - yyb2887 = yyj2887 > l - } else { - yyb2887 = r.CheckBreak() - } - if yyb2887 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Allocatable = nil - } else { - yyv2889 := &x.Allocatable - yyv2889.CodecDecodeSelf(d) - } - yyj2887++ - if yyhl2887 { - yyb2887 = yyj2887 > l - } else { - yyb2887 = r.CheckBreak() - } - if yyb2887 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = NodePhase(r.DecodeString()) - } - yyj2887++ - if yyhl2887 { - yyb2887 = yyj2887 > l - } else { - yyb2887 = r.CheckBreak() - } - if yyb2887 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv2891 := &x.Conditions - yym2892 := z.DecBinary() - _ = yym2892 - if false { - } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv2891), d) - } - } - yyj2887++ - if yyhl2887 { - yyb2887 = yyj2887 > l - } else { - yyb2887 = r.CheckBreak() - } - if yyb2887 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Addresses = nil - } else { - yyv2893 := &x.Addresses - yym2894 := z.DecBinary() - _ = yym2894 - if false { - } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv2893), d) - } - } - yyj2887++ - if yyhl2887 { - yyb2887 = yyj2887 > l - } else { - yyb2887 = r.CheckBreak() - } - if yyb2887 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DaemonEndpoints = NodeDaemonEndpoints{} - } else { - yyv2895 := &x.DaemonEndpoints - yyv2895.CodecDecodeSelf(d) - } - yyj2887++ - if yyhl2887 { - yyb2887 = yyj2887 > l - } else { - yyb2887 = r.CheckBreak() - } - if yyb2887 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.NodeInfo = NodeSystemInfo{} - } else { - yyv2896 := &x.NodeInfo - yyv2896.CodecDecodeSelf(d) - } - yyj2887++ - if yyhl2887 { - yyb2887 = yyj2887 > l - } else { - yyb2887 = r.CheckBreak() - } - if yyb2887 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Images = nil - } else { - yyv2897 := &x.Images - yym2898 := z.DecBinary() - _ = yym2898 - if false { - } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv2897), d) - } - } - yyj2887++ - if yyhl2887 { - yyb2887 = yyj2887 > l - } else { - yyb2887 = r.CheckBreak() - } - if yyb2887 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.VolumesInUse = nil - } else { - yyv2899 := &x.VolumesInUse - yym2900 := z.DecBinary() - _ = yym2900 - if false { - } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2899), d) - } - } - yyj2887++ - if yyhl2887 { - yyb2887 = yyj2887 > l - } else { - yyb2887 = r.CheckBreak() - } - if yyb2887 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.VolumesAttached = nil - } else { - yyv2901 := &x.VolumesAttached - yym2902 := z.DecBinary() - _ = yym2902 - if false { - } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2901), d) - } - } - for { - yyj2887++ - if yyhl2887 { - yyb2887 = yyj2887 > l - } else { - yyb2887 = r.CheckBreak() - } - if yyb2887 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2887-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym2903 := z.EncBinary() - _ = yym2903 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2904 := z.DecBinary() - _ = yym2904 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2905 := z.EncBinary() - _ = yym2905 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2906 := !z.EncBinary() - yy2arr2906 := z.EncBasicHandle().StructToArray - var yyq2906 [2]bool - _, _, _ = yysep2906, yyq2906, yy2arr2906 - const yyr2906 bool = false - var yynn2906 int - if yyr2906 || yy2arr2906 { - r.EncodeArrayStart(2) - } else { - yynn2906 = 2 - for _, b := range yyq2906 { - if b { - yynn2906++ - } - } - r.EncodeMapStart(yynn2906) - yynn2906 = 0 - } - if yyr2906 || yy2arr2906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Name.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Name.CodecEncodeSelf(e) - } - if yyr2906 || yy2arr2906 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2909 := z.EncBinary() - _ = yym2909 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("devicePath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2910 := z.EncBinary() - _ = yym2910 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) - } - } - if yyr2906 || yy2arr2906 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2911 := z.DecBinary() - _ = yym2911 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2912 := r.ContainerType() - if yyct2912 == codecSelferValueTypeMap1234 { - yyl2912 := r.ReadMapStart() - if yyl2912 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2912, d) - } - } else if yyct2912 == codecSelferValueTypeArray1234 { - yyl2912 := r.ReadArrayStart() - if yyl2912 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2912, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2913Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2913Slc - var yyhl2913 bool = l >= 0 - for yyj2913 := 0; ; yyj2913++ { - if yyhl2913 { - if yyj2913 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2913Slc = r.DecodeBytes(yys2913Slc, true, true) - yys2913 := string(yys2913Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2913 { - case "name": - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = UniqueVolumeName(r.DecodeString()) - } - case "devicePath": - if r.TryDecodeAsNil() { - x.DevicePath = "" - } else { - x.DevicePath = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys2913) - } // end switch yys2913 - } // end for yyj2913 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2916 int - var yyb2916 bool - var yyhl2916 bool = l >= 0 - yyj2916++ - if yyhl2916 { - yyb2916 = yyj2916 > l - } else { - yyb2916 = r.CheckBreak() - } - if yyb2916 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Name = "" - } else { - x.Name = UniqueVolumeName(r.DecodeString()) - } - yyj2916++ - if yyhl2916 { - yyb2916 = yyj2916 > l - } else { - yyb2916 = r.CheckBreak() - } - if yyb2916 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DevicePath = "" - } else { - x.DevicePath = string(r.DecodeString()) - } - for { - yyj2916++ - if yyhl2916 { - yyb2916 = yyj2916 > l - } else { - yyb2916 = r.CheckBreak() - } - if yyb2916 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2916-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2919 := z.EncBinary() - _ = yym2919 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2920 := !z.EncBinary() - yy2arr2920 := z.EncBasicHandle().StructToArray - var yyq2920 [1]bool - _, _, _ = yysep2920, yyq2920, yy2arr2920 - const yyr2920 bool = false - yyq2920[0] = len(x.PreferAvoidPods) != 0 - var yynn2920 int - if yyr2920 || yy2arr2920 { - r.EncodeArrayStart(1) - } else { - yynn2920 = 0 - for _, b := range yyq2920 { - if b { - yynn2920++ - } - } - r.EncodeMapStart(yynn2920) - yynn2920 = 0 - } - if yyr2920 || yy2arr2920 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2920[0] { - if x.PreferAvoidPods == nil { - r.EncodeNil() - } else { - yym2922 := z.EncBinary() - _ = yym2922 - if false { - } else { - h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq2920[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.PreferAvoidPods == nil { - r.EncodeNil() - } else { - yym2923 := z.EncBinary() - _ = yym2923 - if false { - } else { - h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) - } - } - } - } - if yyr2920 || yy2arr2920 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2924 := z.DecBinary() - _ = yym2924 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2925 := r.ContainerType() - if yyct2925 == codecSelferValueTypeMap1234 { - yyl2925 := r.ReadMapStart() - if yyl2925 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2925, d) - } - } else if yyct2925 == codecSelferValueTypeArray1234 { - yyl2925 := r.ReadArrayStart() - if yyl2925 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2925, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2926Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2926Slc - var yyhl2926 bool = l >= 0 - for yyj2926 := 0; ; yyj2926++ { - if yyhl2926 { - if yyj2926 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2926Slc = r.DecodeBytes(yys2926Slc, true, true) - yys2926 := string(yys2926Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2926 { - case "preferAvoidPods": - if r.TryDecodeAsNil() { - x.PreferAvoidPods = nil - } else { - yyv2927 := &x.PreferAvoidPods - yym2928 := z.DecBinary() - _ = yym2928 - if false { - } else { - h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv2927), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys2926) - } // end switch yys2926 - } // end for yyj2926 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2929 int - var yyb2929 bool - var yyhl2929 bool = l >= 0 - yyj2929++ - if yyhl2929 { - yyb2929 = yyj2929 > l - } else { - yyb2929 = r.CheckBreak() - } - if yyb2929 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PreferAvoidPods = nil - } else { - yyv2930 := &x.PreferAvoidPods - yym2931 := z.DecBinary() - _ = yym2931 - if false { - } else { - h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv2930), d) - } - } - for { - yyj2929++ - if yyhl2929 { - yyb2929 = yyj2929 > l - } else { - yyb2929 = r.CheckBreak() - } - if yyb2929 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2929-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2932 := z.EncBinary() - _ = yym2932 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2933 := !z.EncBinary() - yy2arr2933 := z.EncBasicHandle().StructToArray - var yyq2933 [4]bool - _, _, _ = yysep2933, yyq2933, yy2arr2933 - const yyr2933 bool = false - yyq2933[1] = true - yyq2933[2] = x.Reason != "" - yyq2933[3] = x.Message != "" - var yynn2933 int - if yyr2933 || yy2arr2933 { - r.EncodeArrayStart(4) - } else { - yynn2933 = 1 - for _, b := range yyq2933 { - if b { - yynn2933++ - } - } - r.EncodeMapStart(yynn2933) - yynn2933 = 0 - } - if yyr2933 || yy2arr2933 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2935 := &x.PodSignature - yy2935.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podSignature")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2936 := &x.PodSignature - yy2936.CodecEncodeSelf(e) - } - if yyr2933 || yy2arr2933 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2933[1] { - yy2938 := &x.EvictionTime - yym2939 := z.EncBinary() - _ = yym2939 - if false { - } else if z.HasExtensions() && z.EncExt(yy2938) { - } else if yym2939 { - z.EncBinaryMarshal(yy2938) - } else if !yym2939 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2938) - } else { - z.EncFallback(yy2938) - } - } else { - r.EncodeNil() - } - } else { - if yyq2933[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2940 := &x.EvictionTime - yym2941 := z.EncBinary() - _ = yym2941 - if false { - } else if z.HasExtensions() && z.EncExt(yy2940) { - } else if yym2941 { - z.EncBinaryMarshal(yy2940) - } else if !yym2941 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2940) - } else { - z.EncFallback(yy2940) - } - } - } - if yyr2933 || yy2arr2933 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2933[2] { - yym2943 := z.EncBinary() - _ = yym2943 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2933[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2944 := z.EncBinary() - _ = yym2944 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr2933 || yy2arr2933 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2933[3] { - yym2946 := z.EncBinary() - _ = yym2946 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2933[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2947 := z.EncBinary() - _ = yym2947 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr2933 || yy2arr2933 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2948 := z.DecBinary() - _ = yym2948 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2949 := r.ContainerType() - if yyct2949 == codecSelferValueTypeMap1234 { - yyl2949 := r.ReadMapStart() - if yyl2949 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2949, d) - } - } else if yyct2949 == codecSelferValueTypeArray1234 { - yyl2949 := r.ReadArrayStart() - if yyl2949 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2949, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2950Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2950Slc - var yyhl2950 bool = l >= 0 - for yyj2950 := 0; ; yyj2950++ { - if yyhl2950 { - if yyj2950 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2950Slc = r.DecodeBytes(yys2950Slc, true, true) - yys2950 := string(yys2950Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2950 { - case "podSignature": - if r.TryDecodeAsNil() { - x.PodSignature = PodSignature{} - } else { - yyv2951 := &x.PodSignature - yyv2951.CodecDecodeSelf(d) - } - case "evictionTime": - if r.TryDecodeAsNil() { - x.EvictionTime = pkg2_unversioned.Time{} - } else { - yyv2952 := &x.EvictionTime - yym2953 := z.DecBinary() - _ = yym2953 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2952) { - } else if yym2953 { - z.DecBinaryUnmarshal(yyv2952) - } else if !yym2953 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2952) - } else { - z.DecFallback(yyv2952, false) - } - } - case "reason": - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - case "message": - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys2950) - } // end switch yys2950 - } // end for yyj2950 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2956 int - var yyb2956 bool - var yyhl2956 bool = l >= 0 - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l - } else { - yyb2956 = r.CheckBreak() - } - if yyb2956 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.PodSignature = PodSignature{} - } else { - yyv2957 := &x.PodSignature - yyv2957.CodecDecodeSelf(d) - } - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l - } else { - yyb2956 = r.CheckBreak() - } - if yyb2956 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.EvictionTime = pkg2_unversioned.Time{} - } else { - yyv2958 := &x.EvictionTime - yym2959 := z.DecBinary() - _ = yym2959 - if false { - } else if z.HasExtensions() && z.DecExt(yyv2958) { - } else if yym2959 { - z.DecBinaryUnmarshal(yyv2958) - } else if !yym2959 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2958) - } else { - z.DecFallback(yyv2958, false) - } - } - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l - } else { - yyb2956 = r.CheckBreak() - } - if yyb2956 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l - } else { - yyb2956 = r.CheckBreak() - } - if yyb2956 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - for { - yyj2956++ - if yyhl2956 { - yyb2956 = yyj2956 > l - } else { - yyb2956 = r.CheckBreak() - } - if yyb2956 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2956-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2962 := z.EncBinary() - _ = yym2962 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2963 := !z.EncBinary() - yy2arr2963 := z.EncBasicHandle().StructToArray - var yyq2963 [1]bool - _, _, _ = yysep2963, yyq2963, yy2arr2963 - const yyr2963 bool = false - yyq2963[0] = x.PodController != nil - var yynn2963 int - if yyr2963 || yy2arr2963 { - r.EncodeArrayStart(1) - } else { - yynn2963 = 0 - for _, b := range yyq2963 { - if b { - yynn2963++ - } - } - r.EncodeMapStart(yynn2963) - yynn2963 = 0 - } - if yyr2963 || yy2arr2963 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2963[0] { - if x.PodController == nil { - r.EncodeNil() - } else { - x.PodController.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq2963[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podController")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.PodController == nil { - r.EncodeNil() - } else { - x.PodController.CodecEncodeSelf(e) - } - } - } - if yyr2963 || yy2arr2963 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PodSignature) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2965 := z.DecBinary() - _ = yym2965 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2966 := r.ContainerType() - if yyct2966 == codecSelferValueTypeMap1234 { - yyl2966 := r.ReadMapStart() - if yyl2966 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2966, d) - } - } else if yyct2966 == codecSelferValueTypeArray1234 { - yyl2966 := r.ReadArrayStart() - if yyl2966 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2966, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2967Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2967Slc - var yyhl2967 bool = l >= 0 - for yyj2967 := 0; ; yyj2967++ { - if yyhl2967 { - if yyj2967 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2967Slc = r.DecodeBytes(yys2967Slc, true, true) - yys2967 := string(yys2967Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2967 { - case "podController": - if r.TryDecodeAsNil() { - if x.PodController != nil { - x.PodController = nil - } - } else { - if x.PodController == nil { - x.PodController = new(OwnerReference) - } - x.PodController.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys2967) - } // end switch yys2967 - } // end for yyj2967 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2969 int - var yyb2969 bool - var yyhl2969 bool = l >= 0 - yyj2969++ - if yyhl2969 { - yyb2969 = yyj2969 > l - } else { - yyb2969 = r.CheckBreak() - } - if yyb2969 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.PodController != nil { - x.PodController = nil - } - } else { - if x.PodController == nil { - x.PodController = new(OwnerReference) - } - x.PodController.CodecDecodeSelf(d) - } - for { - yyj2969++ - if yyhl2969 { - yyb2969 = yyj2969 > l - } else { - yyb2969 = r.CheckBreak() - } - if yyb2969 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2969-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2971 := z.EncBinary() - _ = yym2971 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2972 := !z.EncBinary() - yy2arr2972 := z.EncBasicHandle().StructToArray - var yyq2972 [2]bool - _, _, _ = yysep2972, yyq2972, yy2arr2972 - const yyr2972 bool = false - yyq2972[1] = x.SizeBytes != 0 - var yynn2972 int - if yyr2972 || yy2arr2972 { - r.EncodeArrayStart(2) - } else { - yynn2972 = 1 - for _, b := range yyq2972 { - if b { - yynn2972++ - } - } - r.EncodeMapStart(yynn2972) - yynn2972 = 0 - } - if yyr2972 || yy2arr2972 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Names == nil { - r.EncodeNil() - } else { - yym2974 := z.EncBinary() - _ = yym2974 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("names")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Names == nil { - r.EncodeNil() - } else { - yym2975 := z.EncBinary() - _ = yym2975 - if false { - } else { - z.F.EncSliceStringV(x.Names, false, e) - } - } - } - if yyr2972 || yy2arr2972 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2972[1] { - yym2977 := z.EncBinary() - _ = yym2977 - if false { - } else { - r.EncodeInt(int64(x.SizeBytes)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq2972[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2978 := z.EncBinary() - _ = yym2978 - if false { - } else { - r.EncodeInt(int64(x.SizeBytes)) - } - } - } - if yyr2972 || yy2arr2972 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2979 := z.DecBinary() - _ = yym2979 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct2980 := r.ContainerType() - if yyct2980 == codecSelferValueTypeMap1234 { - yyl2980 := r.ReadMapStart() - if yyl2980 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl2980, d) - } - } else if yyct2980 == codecSelferValueTypeArray1234 { - yyl2980 := r.ReadArrayStart() - if yyl2980 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl2980, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys2981Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2981Slc - var yyhl2981 bool = l >= 0 - for yyj2981 := 0; ; yyj2981++ { - if yyhl2981 { - if yyj2981 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2981Slc = r.DecodeBytes(yys2981Slc, true, true) - yys2981 := string(yys2981Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2981 { - case "names": - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv2982 := &x.Names - yym2983 := z.DecBinary() - _ = yym2983 - if false { - } else { - z.F.DecSliceStringX(yyv2982, false, d) - } - } - case "sizeBytes": - if r.TryDecodeAsNil() { - x.SizeBytes = 0 - } else { - x.SizeBytes = int64(r.DecodeInt(64)) - } - default: - z.DecStructFieldNotFound(-1, yys2981) - } // end switch yys2981 - } // end for yyj2981 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj2985 int - var yyb2985 bool - var yyhl2985 bool = l >= 0 - yyj2985++ - if yyhl2985 { - yyb2985 = yyj2985 > l - } else { - yyb2985 = r.CheckBreak() - } - if yyb2985 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Names = nil - } else { - yyv2986 := &x.Names - yym2987 := z.DecBinary() - _ = yym2987 - if false { - } else { - z.F.DecSliceStringX(yyv2986, false, d) - } - } - yyj2985++ - if yyhl2985 { - yyb2985 = yyj2985 > l - } else { - yyb2985 = r.CheckBreak() - } - if yyb2985 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.SizeBytes = 0 - } else { - x.SizeBytes = int64(r.DecodeInt(64)) - } - for { - yyj2985++ - if yyhl2985 { - yyb2985 = yyj2985 > l - } else { - yyb2985 = r.CheckBreak() - } - if yyb2985 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2985-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym2989 := z.EncBinary() - _ = yym2989 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *NodePhase) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2990 := z.DecBinary() - _ = yym2990 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x NodeConditionType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym2991 := z.EncBinary() - _ = yym2991 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *NodeConditionType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym2992 := z.DecBinary() - _ = yym2992 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym2993 := z.EncBinary() - _ = yym2993 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep2994 := !z.EncBinary() - yy2arr2994 := z.EncBasicHandle().StructToArray - var yyq2994 [6]bool - _, _, _ = yysep2994, yyq2994, yy2arr2994 - const yyr2994 bool = false - yyq2994[2] = true - yyq2994[3] = true - yyq2994[4] = x.Reason != "" - yyq2994[5] = x.Message != "" - var yynn2994 int - if yyr2994 || yy2arr2994 { - r.EncodeArrayStart(6) - } else { - yynn2994 = 2 - for _, b := range yyq2994 { - if b { - yynn2994++ - } - } - r.EncodeMapStart(yynn2994) - yynn2994 = 0 - } - if yyr2994 || yy2arr2994 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Type.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Type.CodecEncodeSelf(e) - } - if yyr2994 || yy2arr2994 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Status.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Status.CodecEncodeSelf(e) - } - if yyr2994 || yy2arr2994 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2994[2] { - yy2998 := &x.LastHeartbeatTime - yym2999 := z.EncBinary() - _ = yym2999 - if false { - } else if z.HasExtensions() && z.EncExt(yy2998) { - } else if yym2999 { - z.EncBinaryMarshal(yy2998) - } else if !yym2999 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2998) - } else { - z.EncFallback(yy2998) - } - } else { - r.EncodeNil() - } - } else { - if yyq2994[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3000 := &x.LastHeartbeatTime - yym3001 := z.EncBinary() - _ = yym3001 - if false { - } else if z.HasExtensions() && z.EncExt(yy3000) { - } else if yym3001 { - z.EncBinaryMarshal(yy3000) - } else if !yym3001 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3000) - } else { - z.EncFallback(yy3000) - } - } - } - if yyr2994 || yy2arr2994 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2994[3] { - yy3003 := &x.LastTransitionTime - yym3004 := z.EncBinary() - _ = yym3004 - if false { - } else if z.HasExtensions() && z.EncExt(yy3003) { - } else if yym3004 { - z.EncBinaryMarshal(yy3003) - } else if !yym3004 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3003) - } else { - z.EncFallback(yy3003) - } - } else { - r.EncodeNil() - } - } else { - if yyq2994[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3005 := &x.LastTransitionTime - yym3006 := z.EncBinary() - _ = yym3006 - if false { - } else if z.HasExtensions() && z.EncExt(yy3005) { - } else if yym3006 { - z.EncBinaryMarshal(yy3005) - } else if !yym3006 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3005) - } else { - z.EncFallback(yy3005) - } - } - } - if yyr2994 || yy2arr2994 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2994[4] { - yym3008 := z.EncBinary() - _ = yym3008 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2994[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3009 := z.EncBinary() - _ = yym3009 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr2994 || yy2arr2994 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2994[5] { - yym3011 := z.EncBinary() - _ = yym3011 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq2994[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3012 := z.EncBinary() - _ = yym3012 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr2994 || yy2arr2994 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3013 := z.DecBinary() - _ = yym3013 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3014 := r.ContainerType() - if yyct3014 == codecSelferValueTypeMap1234 { - yyl3014 := r.ReadMapStart() - if yyl3014 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3014, d) - } - } else if yyct3014 == codecSelferValueTypeArray1234 { - yyl3014 := r.ReadArrayStart() - if yyl3014 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3014, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3015Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3015Slc - var yyhl3015 bool = l >= 0 - for yyj3015 := 0; ; yyj3015++ { - if yyhl3015 { - if yyj3015 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3015Slc = r.DecodeBytes(yys3015Slc, true, true) - yys3015 := string(yys3015Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3015 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = NodeConditionType(r.DecodeString()) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = ConditionStatus(r.DecodeString()) - } - case "lastHeartbeatTime": - if r.TryDecodeAsNil() { - x.LastHeartbeatTime = pkg2_unversioned.Time{} - } else { - yyv3018 := &x.LastHeartbeatTime - yym3019 := z.DecBinary() - _ = yym3019 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3018) { - } else if yym3019 { - z.DecBinaryUnmarshal(yyv3018) - } else if !yym3019 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3018) - } else { - z.DecFallback(yyv3018, false) - } - } - case "lastTransitionTime": - if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg2_unversioned.Time{} - } else { - yyv3020 := &x.LastTransitionTime - yym3021 := z.DecBinary() - _ = yym3021 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3020) { - } else if yym3021 { - z.DecBinaryUnmarshal(yyv3020) - } else if !yym3021 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3020) - } else { - z.DecFallback(yyv3020, false) - } - } - case "reason": - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - case "message": - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3015) - } // end switch yys3015 - } // end for yyj3015 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3024 int - var yyb3024 bool - var yyhl3024 bool = l >= 0 - yyj3024++ - if yyhl3024 { - yyb3024 = yyj3024 > l - } else { - yyb3024 = r.CheckBreak() - } - if yyb3024 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = NodeConditionType(r.DecodeString()) - } - yyj3024++ - if yyhl3024 { - yyb3024 = yyj3024 > l - } else { - yyb3024 = r.CheckBreak() - } - if yyb3024 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = "" - } else { - x.Status = ConditionStatus(r.DecodeString()) - } - yyj3024++ - if yyhl3024 { - yyb3024 = yyj3024 > l - } else { - yyb3024 = r.CheckBreak() - } - if yyb3024 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastHeartbeatTime = pkg2_unversioned.Time{} - } else { - yyv3027 := &x.LastHeartbeatTime - yym3028 := z.DecBinary() - _ = yym3028 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3027) { - } else if yym3028 { - z.DecBinaryUnmarshal(yyv3027) - } else if !yym3028 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3027) - } else { - z.DecFallback(yyv3027, false) - } - } - yyj3024++ - if yyhl3024 { - yyb3024 = yyj3024 > l - } else { - yyb3024 = r.CheckBreak() - } - if yyb3024 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastTransitionTime = pkg2_unversioned.Time{} - } else { - yyv3029 := &x.LastTransitionTime - yym3030 := z.DecBinary() - _ = yym3030 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3029) { - } else if yym3030 { - z.DecBinaryUnmarshal(yyv3029) - } else if !yym3030 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3029) - } else { - z.DecFallback(yyv3029, false) - } - } - yyj3024++ - if yyhl3024 { - yyb3024 = yyj3024 > l - } else { - yyb3024 = r.CheckBreak() - } - if yyb3024 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj3024++ - if yyhl3024 { - yyb3024 = yyj3024 > l - } else { - yyb3024 = r.CheckBreak() - } - if yyb3024 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - for { - yyj3024++ - if yyhl3024 { - yyb3024 = yyj3024 > l - } else { - yyb3024 = r.CheckBreak() - } - if yyb3024 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3024-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym3033 := z.EncBinary() - _ = yym3033 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *NodeAddressType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3034 := z.DecBinary() - _ = yym3034 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3035 := z.EncBinary() - _ = yym3035 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3036 := !z.EncBinary() - yy2arr3036 := z.EncBasicHandle().StructToArray - var yyq3036 [2]bool - _, _, _ = yysep3036, yyq3036, yy2arr3036 - const yyr3036 bool = false - var yynn3036 int - if yyr3036 || yy2arr3036 { - r.EncodeArrayStart(2) - } else { - yynn3036 = 2 - for _, b := range yyq3036 { - if b { - yynn3036++ - } - } - r.EncodeMapStart(yynn3036) - yynn3036 = 0 - } - if yyr3036 || yy2arr3036 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - x.Type.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Type.CodecEncodeSelf(e) - } - if yyr3036 || yy2arr3036 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3039 := z.EncBinary() - _ = yym3039 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Address)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("address")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3040 := z.EncBinary() - _ = yym3040 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Address)) - } - } - if yyr3036 || yy2arr3036 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NodeAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -39035,7 +38976,7 @@ func (x *NodeAddress) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -39057,6 +38998,2113 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { yys3043 := string(yys3043Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3043 { + case "capacity": + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv3044 := &x.Capacity + yyv3044.CodecDecodeSelf(d) + } + case "allocatable": + if r.TryDecodeAsNil() { + x.Allocatable = nil + } else { + yyv3045 := &x.Allocatable + yyv3045.CodecDecodeSelf(d) + } + case "phase": + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = NodePhase(r.DecodeString()) + } + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv3047 := &x.Conditions + yym3048 := z.DecBinary() + _ = yym3048 + if false { + } else { + h.decSliceNodeCondition((*[]NodeCondition)(yyv3047), d) + } + } + case "addresses": + if r.TryDecodeAsNil() { + x.Addresses = nil + } else { + yyv3049 := &x.Addresses + yym3050 := z.DecBinary() + _ = yym3050 + if false { + } else { + h.decSliceNodeAddress((*[]NodeAddress)(yyv3049), d) + } + } + case "daemonEndpoints": + if r.TryDecodeAsNil() { + x.DaemonEndpoints = NodeDaemonEndpoints{} + } else { + yyv3051 := &x.DaemonEndpoints + yyv3051.CodecDecodeSelf(d) + } + case "nodeInfo": + if r.TryDecodeAsNil() { + x.NodeInfo = NodeSystemInfo{} + } else { + yyv3052 := &x.NodeInfo + yyv3052.CodecDecodeSelf(d) + } + case "images": + if r.TryDecodeAsNil() { + x.Images = nil + } else { + yyv3053 := &x.Images + yym3054 := z.DecBinary() + _ = yym3054 + if false { + } else { + h.decSliceContainerImage((*[]ContainerImage)(yyv3053), d) + } + } + case "volumesInUse": + if r.TryDecodeAsNil() { + x.VolumesInUse = nil + } else { + yyv3055 := &x.VolumesInUse + yym3056 := z.DecBinary() + _ = yym3056 + if false { + } else { + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3055), d) + } + } + case "volumesAttached": + if r.TryDecodeAsNil() { + x.VolumesAttached = nil + } else { + yyv3057 := &x.VolumesAttached + yym3058 := z.DecBinary() + _ = yym3058 + if false { + } else { + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3057), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3043) + } // end switch yys3043 + } // end for yyj3043 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3059 int + var yyb3059 bool + var yyhl3059 bool = l >= 0 + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l + } else { + yyb3059 = r.CheckBreak() + } + if yyb3059 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv3060 := &x.Capacity + yyv3060.CodecDecodeSelf(d) + } + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l + } else { + yyb3059 = r.CheckBreak() + } + if yyb3059 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Allocatable = nil + } else { + yyv3061 := &x.Allocatable + yyv3061.CodecDecodeSelf(d) + } + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l + } else { + yyb3059 = r.CheckBreak() + } + if yyb3059 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = NodePhase(r.DecodeString()) + } + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l + } else { + yyb3059 = r.CheckBreak() + } + if yyb3059 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv3063 := &x.Conditions + yym3064 := z.DecBinary() + _ = yym3064 + if false { + } else { + h.decSliceNodeCondition((*[]NodeCondition)(yyv3063), d) + } + } + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l + } else { + yyb3059 = r.CheckBreak() + } + if yyb3059 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Addresses = nil + } else { + yyv3065 := &x.Addresses + yym3066 := z.DecBinary() + _ = yym3066 + if false { + } else { + h.decSliceNodeAddress((*[]NodeAddress)(yyv3065), d) + } + } + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l + } else { + yyb3059 = r.CheckBreak() + } + if yyb3059 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DaemonEndpoints = NodeDaemonEndpoints{} + } else { + yyv3067 := &x.DaemonEndpoints + yyv3067.CodecDecodeSelf(d) + } + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l + } else { + yyb3059 = r.CheckBreak() + } + if yyb3059 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeInfo = NodeSystemInfo{} + } else { + yyv3068 := &x.NodeInfo + yyv3068.CodecDecodeSelf(d) + } + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l + } else { + yyb3059 = r.CheckBreak() + } + if yyb3059 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Images = nil + } else { + yyv3069 := &x.Images + yym3070 := z.DecBinary() + _ = yym3070 + if false { + } else { + h.decSliceContainerImage((*[]ContainerImage)(yyv3069), d) + } + } + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l + } else { + yyb3059 = r.CheckBreak() + } + if yyb3059 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumesInUse = nil + } else { + yyv3071 := &x.VolumesInUse + yym3072 := z.DecBinary() + _ = yym3072 + if false { + } else { + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3071), d) + } + } + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l + } else { + yyb3059 = r.CheckBreak() + } + if yyb3059 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.VolumesAttached = nil + } else { + yyv3073 := &x.VolumesAttached + yym3074 := z.DecBinary() + _ = yym3074 + if false { + } else { + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3073), d) + } + } + for { + yyj3059++ + if yyhl3059 { + yyb3059 = yyj3059 > l + } else { + yyb3059 = r.CheckBreak() + } + if yyb3059 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3059-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3075 := z.EncBinary() + _ = yym3075 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3076 := z.DecBinary() + _ = yym3076 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3077 := z.EncBinary() + _ = yym3077 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3078 := !z.EncBinary() + yy2arr3078 := z.EncBasicHandle().StructToArray + var yyq3078 [2]bool + _, _, _ = yysep3078, yyq3078, yy2arr3078 + const yyr3078 bool = false + var yynn3078 int + if yyr3078 || yy2arr3078 { + r.EncodeArrayStart(2) + } else { + yynn3078 = 2 + for _, b := range yyq3078 { + if b { + yynn3078++ + } + } + r.EncodeMapStart(yynn3078) + yynn3078 = 0 + } + if yyr3078 || yy2arr3078 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Name.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Name.CodecEncodeSelf(e) + } + if yyr3078 || yy2arr3078 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3081 := z.EncBinary() + _ = yym3081 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("devicePath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3082 := z.EncBinary() + _ = yym3082 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) + } + } + if yyr3078 || yy2arr3078 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3083 := z.DecBinary() + _ = yym3083 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3084 := r.ContainerType() + if yyct3084 == codecSelferValueTypeMap1234 { + yyl3084 := r.ReadMapStart() + if yyl3084 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3084, d) + } + } else if yyct3084 == codecSelferValueTypeArray1234 { + yyl3084 := r.ReadArrayStart() + if yyl3084 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3084, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3085Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3085Slc + var yyhl3085 bool = l >= 0 + for yyj3085 := 0; ; yyj3085++ { + if yyhl3085 { + if yyj3085 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3085Slc = r.DecodeBytes(yys3085Slc, true, true) + yys3085 := string(yys3085Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3085 { + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = UniqueVolumeName(r.DecodeString()) + } + case "devicePath": + if r.TryDecodeAsNil() { + x.DevicePath = "" + } else { + x.DevicePath = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3085) + } // end switch yys3085 + } // end for yyj3085 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3088 int + var yyb3088 bool + var yyhl3088 bool = l >= 0 + yyj3088++ + if yyhl3088 { + yyb3088 = yyj3088 > l + } else { + yyb3088 = r.CheckBreak() + } + if yyb3088 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = UniqueVolumeName(r.DecodeString()) + } + yyj3088++ + if yyhl3088 { + yyb3088 = yyj3088 > l + } else { + yyb3088 = r.CheckBreak() + } + if yyb3088 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DevicePath = "" + } else { + x.DevicePath = string(r.DecodeString()) + } + for { + yyj3088++ + if yyhl3088 { + yyb3088 = yyj3088 > l + } else { + yyb3088 = r.CheckBreak() + } + if yyb3088 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3088-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3091 := z.EncBinary() + _ = yym3091 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3092 := !z.EncBinary() + yy2arr3092 := z.EncBasicHandle().StructToArray + var yyq3092 [1]bool + _, _, _ = yysep3092, yyq3092, yy2arr3092 + const yyr3092 bool = false + yyq3092[0] = len(x.PreferAvoidPods) != 0 + var yynn3092 int + if yyr3092 || yy2arr3092 { + r.EncodeArrayStart(1) + } else { + yynn3092 = 0 + for _, b := range yyq3092 { + if b { + yynn3092++ + } + } + r.EncodeMapStart(yynn3092) + yynn3092 = 0 + } + if yyr3092 || yy2arr3092 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3092[0] { + if x.PreferAvoidPods == nil { + r.EncodeNil() + } else { + yym3094 := z.EncBinary() + _ = yym3094 + if false { + } else { + h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3092[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PreferAvoidPods == nil { + r.EncodeNil() + } else { + yym3095 := z.EncBinary() + _ = yym3095 + if false { + } else { + h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) + } + } + } + } + if yyr3092 || yy2arr3092 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3096 := z.DecBinary() + _ = yym3096 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3097 := r.ContainerType() + if yyct3097 == codecSelferValueTypeMap1234 { + yyl3097 := r.ReadMapStart() + if yyl3097 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3097, d) + } + } else if yyct3097 == codecSelferValueTypeArray1234 { + yyl3097 := r.ReadArrayStart() + if yyl3097 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3097, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3098Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3098Slc + var yyhl3098 bool = l >= 0 + for yyj3098 := 0; ; yyj3098++ { + if yyhl3098 { + if yyj3098 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3098Slc = r.DecodeBytes(yys3098Slc, true, true) + yys3098 := string(yys3098Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3098 { + case "preferAvoidPods": + if r.TryDecodeAsNil() { + x.PreferAvoidPods = nil + } else { + yyv3099 := &x.PreferAvoidPods + yym3100 := z.DecBinary() + _ = yym3100 + if false { + } else { + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3099), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3098) + } // end switch yys3098 + } // end for yyj3098 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3101 int + var yyb3101 bool + var yyhl3101 bool = l >= 0 + yyj3101++ + if yyhl3101 { + yyb3101 = yyj3101 > l + } else { + yyb3101 = r.CheckBreak() + } + if yyb3101 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PreferAvoidPods = nil + } else { + yyv3102 := &x.PreferAvoidPods + yym3103 := z.DecBinary() + _ = yym3103 + if false { + } else { + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3102), d) + } + } + for { + yyj3101++ + if yyhl3101 { + yyb3101 = yyj3101 > l + } else { + yyb3101 = r.CheckBreak() + } + if yyb3101 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3101-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3104 := z.EncBinary() + _ = yym3104 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3105 := !z.EncBinary() + yy2arr3105 := z.EncBasicHandle().StructToArray + var yyq3105 [4]bool + _, _, _ = yysep3105, yyq3105, yy2arr3105 + const yyr3105 bool = false + yyq3105[1] = true + yyq3105[2] = x.Reason != "" + yyq3105[3] = x.Message != "" + var yynn3105 int + if yyr3105 || yy2arr3105 { + r.EncodeArrayStart(4) + } else { + yynn3105 = 1 + for _, b := range yyq3105 { + if b { + yynn3105++ + } + } + r.EncodeMapStart(yynn3105) + yynn3105 = 0 + } + if yyr3105 || yy2arr3105 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy3107 := &x.PodSignature + yy3107.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podSignature")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3108 := &x.PodSignature + yy3108.CodecEncodeSelf(e) + } + if yyr3105 || yy2arr3105 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3105[1] { + yy3110 := &x.EvictionTime + yym3111 := z.EncBinary() + _ = yym3111 + if false { + } else if z.HasExtensions() && z.EncExt(yy3110) { + } else if yym3111 { + z.EncBinaryMarshal(yy3110) + } else if !yym3111 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3110) + } else { + z.EncFallback(yy3110) + } + } else { + r.EncodeNil() + } + } else { + if yyq3105[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("evictionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3112 := &x.EvictionTime + yym3113 := z.EncBinary() + _ = yym3113 + if false { + } else if z.HasExtensions() && z.EncExt(yy3112) { + } else if yym3113 { + z.EncBinaryMarshal(yy3112) + } else if !yym3113 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3112) + } else { + z.EncFallback(yy3112) + } + } + } + if yyr3105 || yy2arr3105 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3105[2] { + yym3115 := z.EncBinary() + _ = yym3115 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3105[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3116 := z.EncBinary() + _ = yym3116 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr3105 || yy2arr3105 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3105[3] { + yym3118 := z.EncBinary() + _ = yym3118 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3105[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3119 := z.EncBinary() + _ = yym3119 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr3105 || yy2arr3105 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3120 := z.DecBinary() + _ = yym3120 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3121 := r.ContainerType() + if yyct3121 == codecSelferValueTypeMap1234 { + yyl3121 := r.ReadMapStart() + if yyl3121 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3121, d) + } + } else if yyct3121 == codecSelferValueTypeArray1234 { + yyl3121 := r.ReadArrayStart() + if yyl3121 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3121, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3122Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3122Slc + var yyhl3122 bool = l >= 0 + for yyj3122 := 0; ; yyj3122++ { + if yyhl3122 { + if yyj3122 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3122Slc = r.DecodeBytes(yys3122Slc, true, true) + yys3122 := string(yys3122Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3122 { + case "podSignature": + if r.TryDecodeAsNil() { + x.PodSignature = PodSignature{} + } else { + yyv3123 := &x.PodSignature + yyv3123.CodecDecodeSelf(d) + } + case "evictionTime": + if r.TryDecodeAsNil() { + x.EvictionTime = pkg2_unversioned.Time{} + } else { + yyv3124 := &x.EvictionTime + yym3125 := z.DecBinary() + _ = yym3125 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3124) { + } else if yym3125 { + z.DecBinaryUnmarshal(yyv3124) + } else if !yym3125 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3124) + } else { + z.DecFallback(yyv3124, false) + } + } + case "reason": + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + case "message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3122) + } // end switch yys3122 + } // end for yyj3122 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3128 int + var yyb3128 bool + var yyhl3128 bool = l >= 0 + yyj3128++ + if yyhl3128 { + yyb3128 = yyj3128 > l + } else { + yyb3128 = r.CheckBreak() + } + if yyb3128 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.PodSignature = PodSignature{} + } else { + yyv3129 := &x.PodSignature + yyv3129.CodecDecodeSelf(d) + } + yyj3128++ + if yyhl3128 { + yyb3128 = yyj3128 > l + } else { + yyb3128 = r.CheckBreak() + } + if yyb3128 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.EvictionTime = pkg2_unversioned.Time{} + } else { + yyv3130 := &x.EvictionTime + yym3131 := z.DecBinary() + _ = yym3131 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3130) { + } else if yym3131 { + z.DecBinaryUnmarshal(yyv3130) + } else if !yym3131 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3130) + } else { + z.DecFallback(yyv3130, false) + } + } + yyj3128++ + if yyhl3128 { + yyb3128 = yyj3128 > l + } else { + yyb3128 = r.CheckBreak() + } + if yyb3128 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj3128++ + if yyhl3128 { + yyb3128 = yyj3128 > l + } else { + yyb3128 = r.CheckBreak() + } + if yyb3128 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj3128++ + if yyhl3128 { + yyb3128 = yyj3128 > l + } else { + yyb3128 = r.CheckBreak() + } + if yyb3128 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3128-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3134 := z.EncBinary() + _ = yym3134 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3135 := !z.EncBinary() + yy2arr3135 := z.EncBasicHandle().StructToArray + var yyq3135 [1]bool + _, _, _ = yysep3135, yyq3135, yy2arr3135 + const yyr3135 bool = false + yyq3135[0] = x.PodController != nil + var yynn3135 int + if yyr3135 || yy2arr3135 { + r.EncodeArrayStart(1) + } else { + yynn3135 = 0 + for _, b := range yyq3135 { + if b { + yynn3135++ + } + } + r.EncodeMapStart(yynn3135) + yynn3135 = 0 + } + if yyr3135 || yy2arr3135 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3135[0] { + if x.PodController == nil { + r.EncodeNil() + } else { + x.PodController.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3135[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podController")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.PodController == nil { + r.EncodeNil() + } else { + x.PodController.CodecEncodeSelf(e) + } + } + } + if yyr3135 || yy2arr3135 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PodSignature) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3137 := z.DecBinary() + _ = yym3137 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3138 := r.ContainerType() + if yyct3138 == codecSelferValueTypeMap1234 { + yyl3138 := r.ReadMapStart() + if yyl3138 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3138, d) + } + } else if yyct3138 == codecSelferValueTypeArray1234 { + yyl3138 := r.ReadArrayStart() + if yyl3138 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3138, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3139Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3139Slc + var yyhl3139 bool = l >= 0 + for yyj3139 := 0; ; yyj3139++ { + if yyhl3139 { + if yyj3139 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3139Slc = r.DecodeBytes(yys3139Slc, true, true) + yys3139 := string(yys3139Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3139 { + case "podController": + if r.TryDecodeAsNil() { + if x.PodController != nil { + x.PodController = nil + } + } else { + if x.PodController == nil { + x.PodController = new(OwnerReference) + } + x.PodController.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3139) + } // end switch yys3139 + } // end for yyj3139 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3141 int + var yyb3141 bool + var yyhl3141 bool = l >= 0 + yyj3141++ + if yyhl3141 { + yyb3141 = yyj3141 > l + } else { + yyb3141 = r.CheckBreak() + } + if yyb3141 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.PodController != nil { + x.PodController = nil + } + } else { + if x.PodController == nil { + x.PodController = new(OwnerReference) + } + x.PodController.CodecDecodeSelf(d) + } + for { + yyj3141++ + if yyhl3141 { + yyb3141 = yyj3141 > l + } else { + yyb3141 = r.CheckBreak() + } + if yyb3141 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3141-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3143 := z.EncBinary() + _ = yym3143 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3144 := !z.EncBinary() + yy2arr3144 := z.EncBasicHandle().StructToArray + var yyq3144 [2]bool + _, _, _ = yysep3144, yyq3144, yy2arr3144 + const yyr3144 bool = false + yyq3144[1] = x.SizeBytes != 0 + var yynn3144 int + if yyr3144 || yy2arr3144 { + r.EncodeArrayStart(2) + } else { + yynn3144 = 1 + for _, b := range yyq3144 { + if b { + yynn3144++ + } + } + r.EncodeMapStart(yynn3144) + yynn3144 = 0 + } + if yyr3144 || yy2arr3144 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Names == nil { + r.EncodeNil() + } else { + yym3146 := z.EncBinary() + _ = yym3146 + if false { + } else { + z.F.EncSliceStringV(x.Names, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("names")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Names == nil { + r.EncodeNil() + } else { + yym3147 := z.EncBinary() + _ = yym3147 + if false { + } else { + z.F.EncSliceStringV(x.Names, false, e) + } + } + } + if yyr3144 || yy2arr3144 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3144[1] { + yym3149 := z.EncBinary() + _ = yym3149 + if false { + } else { + r.EncodeInt(int64(x.SizeBytes)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq3144[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3150 := z.EncBinary() + _ = yym3150 + if false { + } else { + r.EncodeInt(int64(x.SizeBytes)) + } + } + } + if yyr3144 || yy2arr3144 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3151 := z.DecBinary() + _ = yym3151 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3152 := r.ContainerType() + if yyct3152 == codecSelferValueTypeMap1234 { + yyl3152 := r.ReadMapStart() + if yyl3152 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3152, d) + } + } else if yyct3152 == codecSelferValueTypeArray1234 { + yyl3152 := r.ReadArrayStart() + if yyl3152 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3152, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3153Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3153Slc + var yyhl3153 bool = l >= 0 + for yyj3153 := 0; ; yyj3153++ { + if yyhl3153 { + if yyj3153 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3153Slc = r.DecodeBytes(yys3153Slc, true, true) + yys3153 := string(yys3153Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3153 { + case "names": + if r.TryDecodeAsNil() { + x.Names = nil + } else { + yyv3154 := &x.Names + yym3155 := z.DecBinary() + _ = yym3155 + if false { + } else { + z.F.DecSliceStringX(yyv3154, false, d) + } + } + case "sizeBytes": + if r.TryDecodeAsNil() { + x.SizeBytes = 0 + } else { + x.SizeBytes = int64(r.DecodeInt(64)) + } + default: + z.DecStructFieldNotFound(-1, yys3153) + } // end switch yys3153 + } // end for yyj3153 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3157 int + var yyb3157 bool + var yyhl3157 bool = l >= 0 + yyj3157++ + if yyhl3157 { + yyb3157 = yyj3157 > l + } else { + yyb3157 = r.CheckBreak() + } + if yyb3157 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Names = nil + } else { + yyv3158 := &x.Names + yym3159 := z.DecBinary() + _ = yym3159 + if false { + } else { + z.F.DecSliceStringX(yyv3158, false, d) + } + } + yyj3157++ + if yyhl3157 { + yyb3157 = yyj3157 > l + } else { + yyb3157 = r.CheckBreak() + } + if yyb3157 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SizeBytes = 0 + } else { + x.SizeBytes = int64(r.DecodeInt(64)) + } + for { + yyj3157++ + if yyhl3157 { + yyb3157 = yyj3157 > l + } else { + yyb3157 = r.CheckBreak() + } + if yyb3157 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3157-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3161 := z.EncBinary() + _ = yym3161 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *NodePhase) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3162 := z.DecBinary() + _ = yym3162 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x NodeConditionType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3163 := z.EncBinary() + _ = yym3163 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *NodeConditionType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3164 := z.DecBinary() + _ = yym3164 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3165 := z.EncBinary() + _ = yym3165 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3166 := !z.EncBinary() + yy2arr3166 := z.EncBasicHandle().StructToArray + var yyq3166 [6]bool + _, _, _ = yysep3166, yyq3166, yy2arr3166 + const yyr3166 bool = false + yyq3166[2] = true + yyq3166[3] = true + yyq3166[4] = x.Reason != "" + yyq3166[5] = x.Message != "" + var yynn3166 int + if yyr3166 || yy2arr3166 { + r.EncodeArrayStart(6) + } else { + yynn3166 = 2 + for _, b := range yyq3166 { + if b { + yynn3166++ + } + } + r.EncodeMapStart(yynn3166) + yynn3166 = 0 + } + if yyr3166 || yy2arr3166 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Type.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + if yyr3166 || yy2arr3166 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Status.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Status.CodecEncodeSelf(e) + } + if yyr3166 || yy2arr3166 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3166[2] { + yy3170 := &x.LastHeartbeatTime + yym3171 := z.EncBinary() + _ = yym3171 + if false { + } else if z.HasExtensions() && z.EncExt(yy3170) { + } else if yym3171 { + z.EncBinaryMarshal(yy3170) + } else if !yym3171 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3170) + } else { + z.EncFallback(yy3170) + } + } else { + r.EncodeNil() + } + } else { + if yyq3166[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3172 := &x.LastHeartbeatTime + yym3173 := z.EncBinary() + _ = yym3173 + if false { + } else if z.HasExtensions() && z.EncExt(yy3172) { + } else if yym3173 { + z.EncBinaryMarshal(yy3172) + } else if !yym3173 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3172) + } else { + z.EncFallback(yy3172) + } + } + } + if yyr3166 || yy2arr3166 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3166[3] { + yy3175 := &x.LastTransitionTime + yym3176 := z.EncBinary() + _ = yym3176 + if false { + } else if z.HasExtensions() && z.EncExt(yy3175) { + } else if yym3176 { + z.EncBinaryMarshal(yy3175) + } else if !yym3176 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3175) + } else { + z.EncFallback(yy3175) + } + } else { + r.EncodeNil() + } + } else { + if yyq3166[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3177 := &x.LastTransitionTime + yym3178 := z.EncBinary() + _ = yym3178 + if false { + } else if z.HasExtensions() && z.EncExt(yy3177) { + } else if yym3178 { + z.EncBinaryMarshal(yy3177) + } else if !yym3178 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3177) + } else { + z.EncFallback(yy3177) + } + } + } + if yyr3166 || yy2arr3166 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3166[4] { + yym3180 := z.EncBinary() + _ = yym3180 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3166[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3181 := z.EncBinary() + _ = yym3181 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr3166 || yy2arr3166 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3166[5] { + yym3183 := z.EncBinary() + _ = yym3183 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3166[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3184 := z.EncBinary() + _ = yym3184 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr3166 || yy2arr3166 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3185 := z.DecBinary() + _ = yym3185 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3186 := r.ContainerType() + if yyct3186 == codecSelferValueTypeMap1234 { + yyl3186 := r.ReadMapStart() + if yyl3186 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3186, d) + } + } else if yyct3186 == codecSelferValueTypeArray1234 { + yyl3186 := r.ReadArrayStart() + if yyl3186 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3186, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3187Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3187Slc + var yyhl3187 bool = l >= 0 + for yyj3187 := 0; ; yyj3187++ { + if yyhl3187 { + if yyj3187 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3187Slc = r.DecodeBytes(yys3187Slc, true, true) + yys3187 := string(yys3187Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3187 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = NodeConditionType(r.DecodeString()) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + case "lastHeartbeatTime": + if r.TryDecodeAsNil() { + x.LastHeartbeatTime = pkg2_unversioned.Time{} + } else { + yyv3190 := &x.LastHeartbeatTime + yym3191 := z.DecBinary() + _ = yym3191 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3190) { + } else if yym3191 { + z.DecBinaryUnmarshal(yyv3190) + } else if !yym3191 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3190) + } else { + z.DecFallback(yyv3190, false) + } + } + case "lastTransitionTime": + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg2_unversioned.Time{} + } else { + yyv3192 := &x.LastTransitionTime + yym3193 := z.DecBinary() + _ = yym3193 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3192) { + } else if yym3193 { + z.DecBinaryUnmarshal(yyv3192) + } else if !yym3193 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3192) + } else { + z.DecFallback(yyv3192, false) + } + } + case "reason": + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + case "message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3187) + } // end switch yys3187 + } // end for yyj3187 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3196 int + var yyb3196 bool + var yyhl3196 bool = l >= 0 + yyj3196++ + if yyhl3196 { + yyb3196 = yyj3196 > l + } else { + yyb3196 = r.CheckBreak() + } + if yyb3196 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = NodeConditionType(r.DecodeString()) + } + yyj3196++ + if yyhl3196 { + yyb3196 = yyj3196 > l + } else { + yyb3196 = r.CheckBreak() + } + if yyb3196 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = "" + } else { + x.Status = ConditionStatus(r.DecodeString()) + } + yyj3196++ + if yyhl3196 { + yyb3196 = yyj3196 > l + } else { + yyb3196 = r.CheckBreak() + } + if yyb3196 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastHeartbeatTime = pkg2_unversioned.Time{} + } else { + yyv3199 := &x.LastHeartbeatTime + yym3200 := z.DecBinary() + _ = yym3200 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3199) { + } else if yym3200 { + z.DecBinaryUnmarshal(yyv3199) + } else if !yym3200 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3199) + } else { + z.DecFallback(yyv3199, false) + } + } + yyj3196++ + if yyhl3196 { + yyb3196 = yyj3196 > l + } else { + yyb3196 = r.CheckBreak() + } + if yyb3196 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTransitionTime = pkg2_unversioned.Time{} + } else { + yyv3201 := &x.LastTransitionTime + yym3202 := z.DecBinary() + _ = yym3202 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3201) { + } else if yym3202 { + z.DecBinaryUnmarshal(yyv3201) + } else if !yym3202 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3201) + } else { + z.DecFallback(yyv3201, false) + } + } + yyj3196++ + if yyhl3196 { + yyb3196 = yyj3196 > l + } else { + yyb3196 = r.CheckBreak() + } + if yyb3196 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj3196++ + if yyhl3196 { + yyb3196 = yyj3196 > l + } else { + yyb3196 = r.CheckBreak() + } + if yyb3196 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + for { + yyj3196++ + if yyhl3196 { + yyb3196 = yyj3196 > l + } else { + yyb3196 = r.CheckBreak() + } + if yyb3196 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3196-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3205 := z.EncBinary() + _ = yym3205 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *NodeAddressType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3206 := z.DecBinary() + _ = yym3206 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3207 := z.EncBinary() + _ = yym3207 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3208 := !z.EncBinary() + yy2arr3208 := z.EncBasicHandle().StructToArray + var yyq3208 [2]bool + _, _, _ = yysep3208, yyq3208, yy2arr3208 + const yyr3208 bool = false + var yynn3208 int + if yyr3208 || yy2arr3208 { + r.EncodeArrayStart(2) + } else { + yynn3208 = 2 + for _, b := range yyq3208 { + if b { + yynn3208++ + } + } + r.EncodeMapStart(yynn3208) + yynn3208 = 0 + } + if yyr3208 || yy2arr3208 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + x.Type.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + if yyr3208 || yy2arr3208 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3211 := z.EncBinary() + _ = yym3211 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Address)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("address")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3212 := z.EncBinary() + _ = yym3212 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Address)) + } + } + if yyr3208 || yy2arr3208 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NodeAddress) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3213 := z.DecBinary() + _ = yym3213 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3214 := r.ContainerType() + if yyct3214 == codecSelferValueTypeMap1234 { + yyl3214 := r.ReadMapStart() + if yyl3214 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3214, d) + } + } else if yyct3214 == codecSelferValueTypeArray1234 { + yyl3214 := r.ReadArrayStart() + if yyl3214 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3214, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3215Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3215Slc + var yyhl3215 bool = l >= 0 + for yyj3215 := 0; ; yyj3215++ { + if yyhl3215 { + if yyj3215 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3215Slc = r.DecodeBytes(yys3215Slc, true, true) + yys3215 := string(yys3215Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3215 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -39070,9 +41118,9 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Address = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3043) - } // end switch yys3043 - } // end for yyj3043 + z.DecStructFieldNotFound(-1, yys3215) + } // end switch yys3215 + } // end for yyj3215 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39080,16 +41128,16 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3046 int - var yyb3046 bool - var yyhl3046 bool = l >= 0 - yyj3046++ - if yyhl3046 { - yyb3046 = yyj3046 > l + var yyj3218 int + var yyb3218 bool + var yyhl3218 bool = l >= 0 + yyj3218++ + if yyhl3218 { + yyb3218 = yyj3218 > l } else { - yyb3046 = r.CheckBreak() + yyb3218 = r.CheckBreak() } - if yyb3046 { + if yyb3218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39099,13 +41147,13 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = NodeAddressType(r.DecodeString()) } - yyj3046++ - if yyhl3046 { - yyb3046 = yyj3046 > l + yyj3218++ + if yyhl3218 { + yyb3218 = yyj3218 > l } else { - yyb3046 = r.CheckBreak() + yyb3218 = r.CheckBreak() } - if yyb3046 { + if yyb3218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39116,17 +41164,17 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Address = string(r.DecodeString()) } for { - yyj3046++ - if yyhl3046 { - yyb3046 = yyj3046 > l + yyj3218++ + if yyhl3218 { + yyb3218 = yyj3218 > l } else { - yyb3046 = r.CheckBreak() + yyb3218 = r.CheckBreak() } - if yyb3046 { + if yyb3218 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3046-1, "") + z.DecStructFieldNotFound(yyj3218-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39138,33 +41186,33 @@ func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3049 := z.EncBinary() - _ = yym3049 + yym3221 := z.EncBinary() + _ = yym3221 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3050 := !z.EncBinary() - yy2arr3050 := z.EncBasicHandle().StructToArray - var yyq3050 [1]bool - _, _, _ = yysep3050, yyq3050, yy2arr3050 - const yyr3050 bool = false - yyq3050[0] = len(x.Capacity) != 0 - var yynn3050 int - if yyr3050 || yy2arr3050 { + yysep3222 := !z.EncBinary() + yy2arr3222 := z.EncBasicHandle().StructToArray + var yyq3222 [1]bool + _, _, _ = yysep3222, yyq3222, yy2arr3222 + const yyr3222 bool = false + yyq3222[0] = len(x.Capacity) != 0 + var yynn3222 int + if yyr3222 || yy2arr3222 { r.EncodeArrayStart(1) } else { - yynn3050 = 0 - for _, b := range yyq3050 { + yynn3222 = 0 + for _, b := range yyq3222 { if b { - yynn3050++ + yynn3222++ } } - r.EncodeMapStart(yynn3050) - yynn3050 = 0 + r.EncodeMapStart(yynn3222) + yynn3222 = 0 } - if yyr3050 || yy2arr3050 { + if yyr3222 || yy2arr3222 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3050[0] { + if yyq3222[0] { if x.Capacity == nil { r.EncodeNil() } else { @@ -39174,7 +41222,7 @@ func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3050[0] { + if yyq3222[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -39185,7 +41233,7 @@ func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3050 || yy2arr3050 { + if yyr3222 || yy2arr3222 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39198,25 +41246,25 @@ func (x *NodeResources) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3052 := z.DecBinary() - _ = yym3052 + yym3224 := z.DecBinary() + _ = yym3224 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3053 := r.ContainerType() - if yyct3053 == codecSelferValueTypeMap1234 { - yyl3053 := r.ReadMapStart() - if yyl3053 == 0 { + yyct3225 := r.ContainerType() + if yyct3225 == codecSelferValueTypeMap1234 { + yyl3225 := r.ReadMapStart() + if yyl3225 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3053, d) + x.codecDecodeSelfFromMap(yyl3225, d) } - } else if yyct3053 == codecSelferValueTypeArray1234 { - yyl3053 := r.ReadArrayStart() - if yyl3053 == 0 { + } else if yyct3225 == codecSelferValueTypeArray1234 { + yyl3225 := r.ReadArrayStart() + if yyl3225 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3053, d) + x.codecDecodeSelfFromArray(yyl3225, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39228,12 +41276,12 @@ func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3054Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3054Slc - var yyhl3054 bool = l >= 0 - for yyj3054 := 0; ; yyj3054++ { - if yyhl3054 { - if yyj3054 >= l { + var yys3226Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3226Slc + var yyhl3226 bool = l >= 0 + for yyj3226 := 0; ; yyj3226++ { + if yyhl3226 { + if yyj3226 >= l { break } } else { @@ -39242,21 +41290,21 @@ func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3054Slc = r.DecodeBytes(yys3054Slc, true, true) - yys3054 := string(yys3054Slc) + yys3226Slc = r.DecodeBytes(yys3226Slc, true, true) + yys3226 := string(yys3226Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3054 { + switch yys3226 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv3055 := &x.Capacity - yyv3055.CodecDecodeSelf(d) + yyv3227 := &x.Capacity + yyv3227.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3054) - } // end switch yys3054 - } // end for yyj3054 + z.DecStructFieldNotFound(-1, yys3226) + } // end switch yys3226 + } // end for yyj3226 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39264,16 +41312,16 @@ func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3056 int - var yyb3056 bool - var yyhl3056 bool = l >= 0 - yyj3056++ - if yyhl3056 { - yyb3056 = yyj3056 > l + var yyj3228 int + var yyb3228 bool + var yyhl3228 bool = l >= 0 + yyj3228++ + if yyhl3228 { + yyb3228 = yyj3228 > l } else { - yyb3056 = r.CheckBreak() + yyb3228 = r.CheckBreak() } - if yyb3056 { + if yyb3228 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39281,21 +41329,21 @@ func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv3057 := &x.Capacity - yyv3057.CodecDecodeSelf(d) + yyv3229 := &x.Capacity + yyv3229.CodecDecodeSelf(d) } for { - yyj3056++ - if yyhl3056 { - yyb3056 = yyj3056 > l + yyj3228++ + if yyhl3228 { + yyb3228 = yyj3228 > l } else { - yyb3056 = r.CheckBreak() + yyb3228 = r.CheckBreak() } - if yyb3056 { + if yyb3228 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3056-1, "") + z.DecStructFieldNotFound(yyj3228-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39304,8 +41352,8 @@ func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3058 := z.EncBinary() - _ = yym3058 + yym3230 := z.EncBinary() + _ = yym3230 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -39317,8 +41365,8 @@ func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3059 := z.DecBinary() - _ = yym3059 + yym3231 := z.DecBinary() + _ = yym3231 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -39333,8 +41381,8 @@ func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3060 := z.EncBinary() - _ = yym3060 + yym3232 := z.EncBinary() + _ = yym3232 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -39347,8 +41395,8 @@ func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3061 := z.DecBinary() - _ = yym3061 + yym3233 := z.DecBinary() + _ = yym3233 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -39363,39 +41411,39 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3062 := z.EncBinary() - _ = yym3062 + yym3234 := z.EncBinary() + _ = yym3234 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3063 := !z.EncBinary() - yy2arr3063 := z.EncBasicHandle().StructToArray - var yyq3063 [5]bool - _, _, _ = yysep3063, yyq3063, yy2arr3063 - const yyr3063 bool = false - yyq3063[0] = x.Kind != "" - yyq3063[1] = x.APIVersion != "" - yyq3063[2] = true - yyq3063[3] = true - yyq3063[4] = true - var yynn3063 int - if yyr3063 || yy2arr3063 { + yysep3235 := !z.EncBinary() + yy2arr3235 := z.EncBasicHandle().StructToArray + var yyq3235 [5]bool + _, _, _ = yysep3235, yyq3235, yy2arr3235 + const yyr3235 bool = false + yyq3235[0] = x.Kind != "" + yyq3235[1] = x.APIVersion != "" + yyq3235[2] = true + yyq3235[3] = true + yyq3235[4] = true + var yynn3235 int + if yyr3235 || yy2arr3235 { r.EncodeArrayStart(5) } else { - yynn3063 = 0 - for _, b := range yyq3063 { + yynn3235 = 0 + for _, b := range yyq3235 { if b { - yynn3063++ + yynn3235++ } } - r.EncodeMapStart(yynn3063) - yynn3063 = 0 + r.EncodeMapStart(yynn3235) + yynn3235 = 0 } - if yyr3063 || yy2arr3063 { + if yyr3235 || yy2arr3235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3063[0] { - yym3065 := z.EncBinary() - _ = yym3065 + if yyq3235[0] { + yym3237 := z.EncBinary() + _ = yym3237 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -39404,23 +41452,23 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3063[0] { + if yyq3235[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3066 := z.EncBinary() - _ = yym3066 + yym3238 := z.EncBinary() + _ = yym3238 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3063 || yy2arr3063 { + if yyr3235 || yy2arr3235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3063[1] { - yym3068 := z.EncBinary() - _ = yym3068 + if yyq3235[1] { + yym3240 := z.EncBinary() + _ = yym3240 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -39429,70 +41477,70 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3063[1] { + if yyq3235[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3069 := z.EncBinary() - _ = yym3069 + yym3241 := z.EncBinary() + _ = yym3241 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3063 || yy2arr3063 { + if yyr3235 || yy2arr3235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3063[2] { - yy3071 := &x.ObjectMeta - yy3071.CodecEncodeSelf(e) + if yyq3235[2] { + yy3243 := &x.ObjectMeta + yy3243.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3063[2] { + if yyq3235[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3072 := &x.ObjectMeta - yy3072.CodecEncodeSelf(e) + yy3244 := &x.ObjectMeta + yy3244.CodecEncodeSelf(e) } } - if yyr3063 || yy2arr3063 { + if yyr3235 || yy2arr3235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3063[3] { - yy3074 := &x.Spec - yy3074.CodecEncodeSelf(e) + if yyq3235[3] { + yy3246 := &x.Spec + yy3246.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3063[3] { + if yyq3235[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3075 := &x.Spec - yy3075.CodecEncodeSelf(e) + yy3247 := &x.Spec + yy3247.CodecEncodeSelf(e) } } - if yyr3063 || yy2arr3063 { + if yyr3235 || yy2arr3235 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3063[4] { - yy3077 := &x.Status - yy3077.CodecEncodeSelf(e) + if yyq3235[4] { + yy3249 := &x.Status + yy3249.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3063[4] { + if yyq3235[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3078 := &x.Status - yy3078.CodecEncodeSelf(e) + yy3250 := &x.Status + yy3250.CodecEncodeSelf(e) } } - if yyr3063 || yy2arr3063 { + if yyr3235 || yy2arr3235 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39505,25 +41553,25 @@ func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3079 := z.DecBinary() - _ = yym3079 + yym3251 := z.DecBinary() + _ = yym3251 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3080 := r.ContainerType() - if yyct3080 == codecSelferValueTypeMap1234 { - yyl3080 := r.ReadMapStart() - if yyl3080 == 0 { + yyct3252 := r.ContainerType() + if yyct3252 == codecSelferValueTypeMap1234 { + yyl3252 := r.ReadMapStart() + if yyl3252 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3080, d) + x.codecDecodeSelfFromMap(yyl3252, d) } - } else if yyct3080 == codecSelferValueTypeArray1234 { - yyl3080 := r.ReadArrayStart() - if yyl3080 == 0 { + } else if yyct3252 == codecSelferValueTypeArray1234 { + yyl3252 := r.ReadArrayStart() + if yyl3252 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3080, d) + x.codecDecodeSelfFromArray(yyl3252, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39535,12 +41583,12 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3081Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3081Slc - var yyhl3081 bool = l >= 0 - for yyj3081 := 0; ; yyj3081++ { - if yyhl3081 { - if yyj3081 >= l { + var yys3253Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3253Slc + var yyhl3253 bool = l >= 0 + for yyj3253 := 0; ; yyj3253++ { + if yyhl3253 { + if yyj3253 >= l { break } } else { @@ -39549,10 +41597,10 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3081Slc = r.DecodeBytes(yys3081Slc, true, true) - yys3081 := string(yys3081Slc) + yys3253Slc = r.DecodeBytes(yys3253Slc, true, true) + yys3253 := string(yys3253Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3081 { + switch yys3253 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -39569,27 +41617,27 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3084 := &x.ObjectMeta - yyv3084.CodecDecodeSelf(d) + yyv3256 := &x.ObjectMeta + yyv3256.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { - yyv3085 := &x.Spec - yyv3085.CodecDecodeSelf(d) + yyv3257 := &x.Spec + yyv3257.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { - yyv3086 := &x.Status - yyv3086.CodecDecodeSelf(d) + yyv3258 := &x.Status + yyv3258.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3081) - } // end switch yys3081 - } // end for yyj3081 + z.DecStructFieldNotFound(-1, yys3253) + } // end switch yys3253 + } // end for yyj3253 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39597,16 +41645,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3087 int - var yyb3087 bool - var yyhl3087 bool = l >= 0 - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l + var yyj3259 int + var yyb3259 bool + var yyhl3259 bool = l >= 0 + yyj3259++ + if yyhl3259 { + yyb3259 = yyj3259 > l } else { - yyb3087 = r.CheckBreak() + yyb3259 = r.CheckBreak() } - if yyb3087 { + if yyb3259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39616,13 +41664,13 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l + yyj3259++ + if yyhl3259 { + yyb3259 = yyj3259 > l } else { - yyb3087 = r.CheckBreak() + yyb3259 = r.CheckBreak() } - if yyb3087 { + if yyb3259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39632,13 +41680,13 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l + yyj3259++ + if yyhl3259 { + yyb3259 = yyj3259 > l } else { - yyb3087 = r.CheckBreak() + yyb3259 = r.CheckBreak() } - if yyb3087 { + if yyb3259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39646,16 +41694,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3090 := &x.ObjectMeta - yyv3090.CodecDecodeSelf(d) + yyv3262 := &x.ObjectMeta + yyv3262.CodecDecodeSelf(d) } - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l + yyj3259++ + if yyhl3259 { + yyb3259 = yyj3259 > l } else { - yyb3087 = r.CheckBreak() + yyb3259 = r.CheckBreak() } - if yyb3087 { + if yyb3259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39663,16 +41711,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { - yyv3091 := &x.Spec - yyv3091.CodecDecodeSelf(d) + yyv3263 := &x.Spec + yyv3263.CodecDecodeSelf(d) } - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l + yyj3259++ + if yyhl3259 { + yyb3259 = yyj3259 > l } else { - yyb3087 = r.CheckBreak() + yyb3259 = r.CheckBreak() } - if yyb3087 { + if yyb3259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39680,21 +41728,21 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { - yyv3092 := &x.Status - yyv3092.CodecDecodeSelf(d) + yyv3264 := &x.Status + yyv3264.CodecDecodeSelf(d) } for { - yyj3087++ - if yyhl3087 { - yyb3087 = yyj3087 > l + yyj3259++ + if yyhl3259 { + yyb3259 = yyj3259 > l } else { - yyb3087 = r.CheckBreak() + yyb3259 = r.CheckBreak() } - if yyb3087 { + if yyb3259 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3087-1, "") + z.DecStructFieldNotFound(yyj3259-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39706,37 +41754,37 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3093 := z.EncBinary() - _ = yym3093 + yym3265 := z.EncBinary() + _ = yym3265 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3094 := !z.EncBinary() - yy2arr3094 := z.EncBasicHandle().StructToArray - var yyq3094 [4]bool - _, _, _ = yysep3094, yyq3094, yy2arr3094 - const yyr3094 bool = false - yyq3094[0] = x.Kind != "" - yyq3094[1] = x.APIVersion != "" - yyq3094[2] = true - var yynn3094 int - if yyr3094 || yy2arr3094 { + yysep3266 := !z.EncBinary() + yy2arr3266 := z.EncBasicHandle().StructToArray + var yyq3266 [4]bool + _, _, _ = yysep3266, yyq3266, yy2arr3266 + const yyr3266 bool = false + yyq3266[0] = x.Kind != "" + yyq3266[1] = x.APIVersion != "" + yyq3266[2] = true + var yynn3266 int + if yyr3266 || yy2arr3266 { r.EncodeArrayStart(4) } else { - yynn3094 = 1 - for _, b := range yyq3094 { + yynn3266 = 1 + for _, b := range yyq3266 { if b { - yynn3094++ + yynn3266++ } } - r.EncodeMapStart(yynn3094) - yynn3094 = 0 + r.EncodeMapStart(yynn3266) + yynn3266 = 0 } - if yyr3094 || yy2arr3094 { + if yyr3266 || yy2arr3266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3094[0] { - yym3096 := z.EncBinary() - _ = yym3096 + if yyq3266[0] { + yym3268 := z.EncBinary() + _ = yym3268 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -39745,23 +41793,23 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3094[0] { + if yyq3266[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3097 := z.EncBinary() - _ = yym3097 + yym3269 := z.EncBinary() + _ = yym3269 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3094 || yy2arr3094 { + if yyr3266 || yy2arr3266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3094[1] { - yym3099 := z.EncBinary() - _ = yym3099 + if yyq3266[1] { + yym3271 := z.EncBinary() + _ = yym3271 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -39770,54 +41818,54 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3094[1] { + if yyq3266[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3100 := z.EncBinary() - _ = yym3100 + yym3272 := z.EncBinary() + _ = yym3272 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3094 || yy2arr3094 { + if yyr3266 || yy2arr3266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3094[2] { - yy3102 := &x.ListMeta - yym3103 := z.EncBinary() - _ = yym3103 + if yyq3266[2] { + yy3274 := &x.ListMeta + yym3275 := z.EncBinary() + _ = yym3275 if false { - } else if z.HasExtensions() && z.EncExt(yy3102) { + } else if z.HasExtensions() && z.EncExt(yy3274) { } else { - z.EncFallback(yy3102) + z.EncFallback(yy3274) } } else { r.EncodeNil() } } else { - if yyq3094[2] { + if yyq3266[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3104 := &x.ListMeta - yym3105 := z.EncBinary() - _ = yym3105 + yy3276 := &x.ListMeta + yym3277 := z.EncBinary() + _ = yym3277 if false { - } else if z.HasExtensions() && z.EncExt(yy3104) { + } else if z.HasExtensions() && z.EncExt(yy3276) { } else { - z.EncFallback(yy3104) + z.EncFallback(yy3276) } } } - if yyr3094 || yy2arr3094 { + if yyr3266 || yy2arr3266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3107 := z.EncBinary() - _ = yym3107 + yym3279 := z.EncBinary() + _ = yym3279 if false { } else { h.encSliceNode(([]Node)(x.Items), e) @@ -39830,15 +41878,15 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3108 := z.EncBinary() - _ = yym3108 + yym3280 := z.EncBinary() + _ = yym3280 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } - if yyr3094 || yy2arr3094 { + if yyr3266 || yy2arr3266 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39851,25 +41899,25 @@ func (x *NodeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3109 := z.DecBinary() - _ = yym3109 + yym3281 := z.DecBinary() + _ = yym3281 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3110 := r.ContainerType() - if yyct3110 == codecSelferValueTypeMap1234 { - yyl3110 := r.ReadMapStart() - if yyl3110 == 0 { + yyct3282 := r.ContainerType() + if yyct3282 == codecSelferValueTypeMap1234 { + yyl3282 := r.ReadMapStart() + if yyl3282 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3110, d) + x.codecDecodeSelfFromMap(yyl3282, d) } - } else if yyct3110 == codecSelferValueTypeArray1234 { - yyl3110 := r.ReadArrayStart() - if yyl3110 == 0 { + } else if yyct3282 == codecSelferValueTypeArray1234 { + yyl3282 := r.ReadArrayStart() + if yyl3282 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3110, d) + x.codecDecodeSelfFromArray(yyl3282, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39881,12 +41929,12 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3111Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3111Slc - var yyhl3111 bool = l >= 0 - for yyj3111 := 0; ; yyj3111++ { - if yyhl3111 { - if yyj3111 >= l { + var yys3283Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3283Slc + var yyhl3283 bool = l >= 0 + for yyj3283 := 0; ; yyj3283++ { + if yyhl3283 { + if yyj3283 >= l { break } } else { @@ -39895,10 +41943,10 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3111Slc = r.DecodeBytes(yys3111Slc, true, true) - yys3111 := string(yys3111Slc) + yys3283Slc = r.DecodeBytes(yys3283Slc, true, true) + yys3283 := string(yys3283Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3111 { + switch yys3283 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -39915,31 +41963,31 @@ func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3114 := &x.ListMeta - yym3115 := z.DecBinary() - _ = yym3115 + yyv3286 := &x.ListMeta + yym3287 := z.DecBinary() + _ = yym3287 if false { - } else if z.HasExtensions() && z.DecExt(yyv3114) { + } else if z.HasExtensions() && z.DecExt(yyv3286) { } else { - z.DecFallback(yyv3114, false) + z.DecFallback(yyv3286, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3116 := &x.Items - yym3117 := z.DecBinary() - _ = yym3117 + yyv3288 := &x.Items + yym3289 := z.DecBinary() + _ = yym3289 if false { } else { - h.decSliceNode((*[]Node)(yyv3116), d) + h.decSliceNode((*[]Node)(yyv3288), d) } } default: - z.DecStructFieldNotFound(-1, yys3111) - } // end switch yys3111 - } // end for yyj3111 + z.DecStructFieldNotFound(-1, yys3283) + } // end switch yys3283 + } // end for yyj3283 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39947,16 +41995,16 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3118 int - var yyb3118 bool - var yyhl3118 bool = l >= 0 - yyj3118++ - if yyhl3118 { - yyb3118 = yyj3118 > l + var yyj3290 int + var yyb3290 bool + var yyhl3290 bool = l >= 0 + yyj3290++ + if yyhl3290 { + yyb3290 = yyj3290 > l } else { - yyb3118 = r.CheckBreak() + yyb3290 = r.CheckBreak() } - if yyb3118 { + if yyb3290 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39966,13 +42014,13 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3118++ - if yyhl3118 { - yyb3118 = yyj3118 > l + yyj3290++ + if yyhl3290 { + yyb3290 = yyj3290 > l } else { - yyb3118 = r.CheckBreak() + yyb3290 = r.CheckBreak() } - if yyb3118 { + if yyb3290 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39982,13 +42030,13 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3118++ - if yyhl3118 { - yyb3118 = yyj3118 > l + yyj3290++ + if yyhl3290 { + yyb3290 = yyj3290 > l } else { - yyb3118 = r.CheckBreak() + yyb3290 = r.CheckBreak() } - if yyb3118 { + if yyb3290 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39996,22 +42044,22 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3121 := &x.ListMeta - yym3122 := z.DecBinary() - _ = yym3122 + yyv3293 := &x.ListMeta + yym3294 := z.DecBinary() + _ = yym3294 if false { - } else if z.HasExtensions() && z.DecExt(yyv3121) { + } else if z.HasExtensions() && z.DecExt(yyv3293) { } else { - z.DecFallback(yyv3121, false) + z.DecFallback(yyv3293, false) } } - yyj3118++ - if yyhl3118 { - yyb3118 = yyj3118 > l + yyj3290++ + if yyhl3290 { + yyb3290 = yyj3290 > l } else { - yyb3118 = r.CheckBreak() + yyb3290 = r.CheckBreak() } - if yyb3118 { + if yyb3290 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40019,26 +42067,26 @@ func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3123 := &x.Items - yym3124 := z.DecBinary() - _ = yym3124 + yyv3295 := &x.Items + yym3296 := z.DecBinary() + _ = yym3296 if false { } else { - h.decSliceNode((*[]Node)(yyv3123), d) + h.decSliceNode((*[]Node)(yyv3295), d) } } for { - yyj3118++ - if yyhl3118 { - yyb3118 = yyj3118 > l + yyj3290++ + if yyhl3290 { + yyb3290 = yyj3290 > l } else { - yyb3118 = r.CheckBreak() + yyb3290 = r.CheckBreak() } - if yyb3118 { + if yyb3290 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3118-1, "") + z.DecStructFieldNotFound(yyj3290-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40050,36 +42098,36 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3125 := z.EncBinary() - _ = yym3125 + yym3297 := z.EncBinary() + _ = yym3297 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3126 := !z.EncBinary() - yy2arr3126 := z.EncBasicHandle().StructToArray - var yyq3126 [1]bool - _, _, _ = yysep3126, yyq3126, yy2arr3126 - const yyr3126 bool = false - var yynn3126 int - if yyr3126 || yy2arr3126 { + yysep3298 := !z.EncBinary() + yy2arr3298 := z.EncBasicHandle().StructToArray + var yyq3298 [1]bool + _, _, _ = yysep3298, yyq3298, yy2arr3298 + const yyr3298 bool = false + var yynn3298 int + if yyr3298 || yy2arr3298 { r.EncodeArrayStart(1) } else { - yynn3126 = 1 - for _, b := range yyq3126 { + yynn3298 = 1 + for _, b := range yyq3298 { if b { - yynn3126++ + yynn3298++ } } - r.EncodeMapStart(yynn3126) - yynn3126 = 0 + r.EncodeMapStart(yynn3298) + yynn3298 = 0 } - if yyr3126 || yy2arr3126 { + if yyr3298 || yy2arr3298 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Finalizers == nil { r.EncodeNil() } else { - yym3128 := z.EncBinary() - _ = yym3128 + yym3300 := z.EncBinary() + _ = yym3300 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) @@ -40092,15 +42140,15 @@ func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Finalizers == nil { r.EncodeNil() } else { - yym3129 := z.EncBinary() - _ = yym3129 + yym3301 := z.EncBinary() + _ = yym3301 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) } } } - if yyr3126 || yy2arr3126 { + if yyr3298 || yy2arr3298 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40113,25 +42161,25 @@ func (x *NamespaceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3130 := z.DecBinary() - _ = yym3130 + yym3302 := z.DecBinary() + _ = yym3302 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3131 := r.ContainerType() - if yyct3131 == codecSelferValueTypeMap1234 { - yyl3131 := r.ReadMapStart() - if yyl3131 == 0 { + yyct3303 := r.ContainerType() + if yyct3303 == codecSelferValueTypeMap1234 { + yyl3303 := r.ReadMapStart() + if yyl3303 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3131, d) + x.codecDecodeSelfFromMap(yyl3303, d) } - } else if yyct3131 == codecSelferValueTypeArray1234 { - yyl3131 := r.ReadArrayStart() - if yyl3131 == 0 { + } else if yyct3303 == codecSelferValueTypeArray1234 { + yyl3303 := r.ReadArrayStart() + if yyl3303 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3131, d) + x.codecDecodeSelfFromArray(yyl3303, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40143,12 +42191,12 @@ func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3132Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3132Slc - var yyhl3132 bool = l >= 0 - for yyj3132 := 0; ; yyj3132++ { - if yyhl3132 { - if yyj3132 >= l { + var yys3304Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3304Slc + var yyhl3304 bool = l >= 0 + for yyj3304 := 0; ; yyj3304++ { + if yyhl3304 { + if yyj3304 >= l { break } } else { @@ -40157,26 +42205,26 @@ func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3132Slc = r.DecodeBytes(yys3132Slc, true, true) - yys3132 := string(yys3132Slc) + yys3304Slc = r.DecodeBytes(yys3304Slc, true, true) + yys3304 := string(yys3304Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3132 { + switch yys3304 { case "Finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv3133 := &x.Finalizers - yym3134 := z.DecBinary() - _ = yym3134 + yyv3305 := &x.Finalizers + yym3306 := z.DecBinary() + _ = yym3306 if false { } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv3133), d) + h.decSliceFinalizerName((*[]FinalizerName)(yyv3305), d) } } default: - z.DecStructFieldNotFound(-1, yys3132) - } // end switch yys3132 - } // end for yyj3132 + z.DecStructFieldNotFound(-1, yys3304) + } // end switch yys3304 + } // end for yyj3304 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40184,16 +42232,16 @@ func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3135 int - var yyb3135 bool - var yyhl3135 bool = l >= 0 - yyj3135++ - if yyhl3135 { - yyb3135 = yyj3135 > l + var yyj3307 int + var yyb3307 bool + var yyhl3307 bool = l >= 0 + yyj3307++ + if yyhl3307 { + yyb3307 = yyj3307 > l } else { - yyb3135 = r.CheckBreak() + yyb3307 = r.CheckBreak() } - if yyb3135 { + if yyb3307 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40201,26 +42249,26 @@ func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv3136 := &x.Finalizers - yym3137 := z.DecBinary() - _ = yym3137 + yyv3308 := &x.Finalizers + yym3309 := z.DecBinary() + _ = yym3309 if false { } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv3136), d) + h.decSliceFinalizerName((*[]FinalizerName)(yyv3308), d) } } for { - yyj3135++ - if yyhl3135 { - yyb3135 = yyj3135 > l + yyj3307++ + if yyhl3307 { + yyb3307 = yyj3307 > l } else { - yyb3135 = r.CheckBreak() + yyb3307 = r.CheckBreak() } - if yyb3135 { + if yyb3307 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3135-1, "") + z.DecStructFieldNotFound(yyj3307-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40229,8 +42277,8 @@ func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3138 := z.EncBinary() - _ = yym3138 + yym3310 := z.EncBinary() + _ = yym3310 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -40242,8 +42290,8 @@ func (x *FinalizerName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3139 := z.DecBinary() - _ = yym3139 + yym3311 := z.DecBinary() + _ = yym3311 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -40258,46 +42306,46 @@ func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3140 := z.EncBinary() - _ = yym3140 + yym3312 := z.EncBinary() + _ = yym3312 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3141 := !z.EncBinary() - yy2arr3141 := z.EncBasicHandle().StructToArray - var yyq3141 [1]bool - _, _, _ = yysep3141, yyq3141, yy2arr3141 - const yyr3141 bool = false - yyq3141[0] = x.Phase != "" - var yynn3141 int - if yyr3141 || yy2arr3141 { + yysep3313 := !z.EncBinary() + yy2arr3313 := z.EncBasicHandle().StructToArray + var yyq3313 [1]bool + _, _, _ = yysep3313, yyq3313, yy2arr3313 + const yyr3313 bool = false + yyq3313[0] = x.Phase != "" + var yynn3313 int + if yyr3313 || yy2arr3313 { r.EncodeArrayStart(1) } else { - yynn3141 = 0 - for _, b := range yyq3141 { + yynn3313 = 0 + for _, b := range yyq3313 { if b { - yynn3141++ + yynn3313++ } } - r.EncodeMapStart(yynn3141) - yynn3141 = 0 + r.EncodeMapStart(yynn3313) + yynn3313 = 0 } - if yyr3141 || yy2arr3141 { + if yyr3313 || yy2arr3313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3141[0] { + if yyq3313[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3141[0] { + if yyq3313[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr3141 || yy2arr3141 { + if yyr3313 || yy2arr3313 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40310,25 +42358,25 @@ func (x *NamespaceStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3143 := z.DecBinary() - _ = yym3143 + yym3315 := z.DecBinary() + _ = yym3315 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3144 := r.ContainerType() - if yyct3144 == codecSelferValueTypeMap1234 { - yyl3144 := r.ReadMapStart() - if yyl3144 == 0 { + yyct3316 := r.ContainerType() + if yyct3316 == codecSelferValueTypeMap1234 { + yyl3316 := r.ReadMapStart() + if yyl3316 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3144, d) + x.codecDecodeSelfFromMap(yyl3316, d) } - } else if yyct3144 == codecSelferValueTypeArray1234 { - yyl3144 := r.ReadArrayStart() - if yyl3144 == 0 { + } else if yyct3316 == codecSelferValueTypeArray1234 { + yyl3316 := r.ReadArrayStart() + if yyl3316 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3144, d) + x.codecDecodeSelfFromArray(yyl3316, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40340,12 +42388,12 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3145Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3145Slc - var yyhl3145 bool = l >= 0 - for yyj3145 := 0; ; yyj3145++ { - if yyhl3145 { - if yyj3145 >= l { + var yys3317Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3317Slc + var yyhl3317 bool = l >= 0 + for yyj3317 := 0; ; yyj3317++ { + if yyhl3317 { + if yyj3317 >= l { break } } else { @@ -40354,10 +42402,10 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3145Slc = r.DecodeBytes(yys3145Slc, true, true) - yys3145 := string(yys3145Slc) + yys3317Slc = r.DecodeBytes(yys3317Slc, true, true) + yys3317 := string(yys3317Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3145 { + switch yys3317 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -40365,9 +42413,9 @@ func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Phase = NamespacePhase(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3145) - } // end switch yys3145 - } // end for yyj3145 + z.DecStructFieldNotFound(-1, yys3317) + } // end switch yys3317 + } // end for yyj3317 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40375,16 +42423,16 @@ func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3147 int - var yyb3147 bool - var yyhl3147 bool = l >= 0 - yyj3147++ - if yyhl3147 { - yyb3147 = yyj3147 > l + var yyj3319 int + var yyb3319 bool + var yyhl3319 bool = l >= 0 + yyj3319++ + if yyhl3319 { + yyb3319 = yyj3319 > l } else { - yyb3147 = r.CheckBreak() + yyb3319 = r.CheckBreak() } - if yyb3147 { + if yyb3319 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40395,17 +42443,17 @@ func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Phase = NamespacePhase(r.DecodeString()) } for { - yyj3147++ - if yyhl3147 { - yyb3147 = yyj3147 > l + yyj3319++ + if yyhl3319 { + yyb3319 = yyj3319 > l } else { - yyb3147 = r.CheckBreak() + yyb3319 = r.CheckBreak() } - if yyb3147 { + if yyb3319 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3147-1, "") + z.DecStructFieldNotFound(yyj3319-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40414,8 +42462,8 @@ func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3149 := z.EncBinary() - _ = yym3149 + yym3321 := z.EncBinary() + _ = yym3321 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -40427,8 +42475,8 @@ func (x *NamespacePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3150 := z.DecBinary() - _ = yym3150 + yym3322 := z.DecBinary() + _ = yym3322 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -40443,39 +42491,39 @@ func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3151 := z.EncBinary() - _ = yym3151 + yym3323 := z.EncBinary() + _ = yym3323 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3152 := !z.EncBinary() - yy2arr3152 := z.EncBasicHandle().StructToArray - var yyq3152 [5]bool - _, _, _ = yysep3152, yyq3152, yy2arr3152 - const yyr3152 bool = false - yyq3152[0] = x.Kind != "" - yyq3152[1] = x.APIVersion != "" - yyq3152[2] = true - yyq3152[3] = true - yyq3152[4] = true - var yynn3152 int - if yyr3152 || yy2arr3152 { + yysep3324 := !z.EncBinary() + yy2arr3324 := z.EncBasicHandle().StructToArray + var yyq3324 [5]bool + _, _, _ = yysep3324, yyq3324, yy2arr3324 + const yyr3324 bool = false + yyq3324[0] = x.Kind != "" + yyq3324[1] = x.APIVersion != "" + yyq3324[2] = true + yyq3324[3] = true + yyq3324[4] = true + var yynn3324 int + if yyr3324 || yy2arr3324 { r.EncodeArrayStart(5) } else { - yynn3152 = 0 - for _, b := range yyq3152 { + yynn3324 = 0 + for _, b := range yyq3324 { if b { - yynn3152++ + yynn3324++ } } - r.EncodeMapStart(yynn3152) - yynn3152 = 0 + r.EncodeMapStart(yynn3324) + yynn3324 = 0 } - if yyr3152 || yy2arr3152 { + if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3152[0] { - yym3154 := z.EncBinary() - _ = yym3154 + if yyq3324[0] { + yym3326 := z.EncBinary() + _ = yym3326 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -40484,23 +42532,23 @@ func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3152[0] { + if yyq3324[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3155 := z.EncBinary() - _ = yym3155 + yym3327 := z.EncBinary() + _ = yym3327 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3152 || yy2arr3152 { + if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3152[1] { - yym3157 := z.EncBinary() - _ = yym3157 + if yyq3324[1] { + yym3329 := z.EncBinary() + _ = yym3329 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -40509,70 +42557,70 @@ func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3152[1] { + if yyq3324[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3158 := z.EncBinary() - _ = yym3158 + yym3330 := z.EncBinary() + _ = yym3330 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3152 || yy2arr3152 { + if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3152[2] { - yy3160 := &x.ObjectMeta - yy3160.CodecEncodeSelf(e) + if yyq3324[2] { + yy3332 := &x.ObjectMeta + yy3332.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3152[2] { + if yyq3324[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3161 := &x.ObjectMeta - yy3161.CodecEncodeSelf(e) + yy3333 := &x.ObjectMeta + yy3333.CodecEncodeSelf(e) } } - if yyr3152 || yy2arr3152 { + if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3152[3] { - yy3163 := &x.Spec - yy3163.CodecEncodeSelf(e) + if yyq3324[3] { + yy3335 := &x.Spec + yy3335.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3152[3] { + if yyq3324[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3164 := &x.Spec - yy3164.CodecEncodeSelf(e) + yy3336 := &x.Spec + yy3336.CodecEncodeSelf(e) } } - if yyr3152 || yy2arr3152 { + if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3152[4] { - yy3166 := &x.Status - yy3166.CodecEncodeSelf(e) + if yyq3324[4] { + yy3338 := &x.Status + yy3338.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3152[4] { + if yyq3324[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3167 := &x.Status - yy3167.CodecEncodeSelf(e) + yy3339 := &x.Status + yy3339.CodecEncodeSelf(e) } } - if yyr3152 || yy2arr3152 { + if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40585,25 +42633,25 @@ func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3168 := z.DecBinary() - _ = yym3168 + yym3340 := z.DecBinary() + _ = yym3340 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3169 := r.ContainerType() - if yyct3169 == codecSelferValueTypeMap1234 { - yyl3169 := r.ReadMapStart() - if yyl3169 == 0 { + yyct3341 := r.ContainerType() + if yyct3341 == codecSelferValueTypeMap1234 { + yyl3341 := r.ReadMapStart() + if yyl3341 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3169, d) + x.codecDecodeSelfFromMap(yyl3341, d) } - } else if yyct3169 == codecSelferValueTypeArray1234 { - yyl3169 := r.ReadArrayStart() - if yyl3169 == 0 { + } else if yyct3341 == codecSelferValueTypeArray1234 { + yyl3341 := r.ReadArrayStart() + if yyl3341 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3169, d) + x.codecDecodeSelfFromArray(yyl3341, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40615,12 +42663,12 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3170Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3170Slc - var yyhl3170 bool = l >= 0 - for yyj3170 := 0; ; yyj3170++ { - if yyhl3170 { - if yyj3170 >= l { + var yys3342Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3342Slc + var yyhl3342 bool = l >= 0 + for yyj3342 := 0; ; yyj3342++ { + if yyhl3342 { + if yyj3342 >= l { break } } else { @@ -40629,10 +42677,10 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3170Slc = r.DecodeBytes(yys3170Slc, true, true) - yys3170 := string(yys3170Slc) + yys3342Slc = r.DecodeBytes(yys3342Slc, true, true) + yys3342 := string(yys3342Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3170 { + switch yys3342 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -40649,27 +42697,27 @@ func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3173 := &x.ObjectMeta - yyv3173.CodecDecodeSelf(d) + yyv3345 := &x.ObjectMeta + yyv3345.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { - yyv3174 := &x.Spec - yyv3174.CodecDecodeSelf(d) + yyv3346 := &x.Spec + yyv3346.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { - yyv3175 := &x.Status - yyv3175.CodecDecodeSelf(d) + yyv3347 := &x.Status + yyv3347.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3170) - } // end switch yys3170 - } // end for yyj3170 + z.DecStructFieldNotFound(-1, yys3342) + } // end switch yys3342 + } // end for yyj3342 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -40677,16 +42725,16 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3176 int - var yyb3176 bool - var yyhl3176 bool = l >= 0 - yyj3176++ - if yyhl3176 { - yyb3176 = yyj3176 > l + var yyj3348 int + var yyb3348 bool + var yyhl3348 bool = l >= 0 + yyj3348++ + if yyhl3348 { + yyb3348 = yyj3348 > l } else { - yyb3176 = r.CheckBreak() + yyb3348 = r.CheckBreak() } - if yyb3176 { + if yyb3348 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40696,13 +42744,13 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3176++ - if yyhl3176 { - yyb3176 = yyj3176 > l + yyj3348++ + if yyhl3348 { + yyb3348 = yyj3348 > l } else { - yyb3176 = r.CheckBreak() + yyb3348 = r.CheckBreak() } - if yyb3176 { + if yyb3348 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40712,13 +42760,13 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3176++ - if yyhl3176 { - yyb3176 = yyj3176 > l + yyj3348++ + if yyhl3348 { + yyb3348 = yyj3348 > l } else { - yyb3176 = r.CheckBreak() + yyb3348 = r.CheckBreak() } - if yyb3176 { + if yyb3348 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40726,16 +42774,16 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3179 := &x.ObjectMeta - yyv3179.CodecDecodeSelf(d) + yyv3351 := &x.ObjectMeta + yyv3351.CodecDecodeSelf(d) } - yyj3176++ - if yyhl3176 { - yyb3176 = yyj3176 > l + yyj3348++ + if yyhl3348 { + yyb3348 = yyj3348 > l } else { - yyb3176 = r.CheckBreak() + yyb3348 = r.CheckBreak() } - if yyb3176 { + if yyb3348 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40743,16 +42791,16 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { - yyv3180 := &x.Spec - yyv3180.CodecDecodeSelf(d) + yyv3352 := &x.Spec + yyv3352.CodecDecodeSelf(d) } - yyj3176++ - if yyhl3176 { - yyb3176 = yyj3176 > l + yyj3348++ + if yyhl3348 { + yyb3348 = yyj3348 > l } else { - yyb3176 = r.CheckBreak() + yyb3348 = r.CheckBreak() } - if yyb3176 { + if yyb3348 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -40760,21 +42808,21 @@ func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { - yyv3181 := &x.Status - yyv3181.CodecDecodeSelf(d) + yyv3353 := &x.Status + yyv3353.CodecDecodeSelf(d) } for { - yyj3176++ - if yyhl3176 { - yyb3176 = yyj3176 > l + yyj3348++ + if yyhl3348 { + yyb3348 = yyj3348 > l } else { - yyb3176 = r.CheckBreak() + yyb3348 = r.CheckBreak() } - if yyb3176 { + if yyb3348 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3176-1, "") + z.DecStructFieldNotFound(yyj3348-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -40786,37 +42834,37 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3182 := z.EncBinary() - _ = yym3182 + yym3354 := z.EncBinary() + _ = yym3354 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3183 := !z.EncBinary() - yy2arr3183 := z.EncBasicHandle().StructToArray - var yyq3183 [4]bool - _, _, _ = yysep3183, yyq3183, yy2arr3183 - const yyr3183 bool = false - yyq3183[0] = x.Kind != "" - yyq3183[1] = x.APIVersion != "" - yyq3183[2] = true - var yynn3183 int - if yyr3183 || yy2arr3183 { + yysep3355 := !z.EncBinary() + yy2arr3355 := z.EncBasicHandle().StructToArray + var yyq3355 [4]bool + _, _, _ = yysep3355, yyq3355, yy2arr3355 + const yyr3355 bool = false + yyq3355[0] = x.Kind != "" + yyq3355[1] = x.APIVersion != "" + yyq3355[2] = true + var yynn3355 int + if yyr3355 || yy2arr3355 { r.EncodeArrayStart(4) } else { - yynn3183 = 1 - for _, b := range yyq3183 { + yynn3355 = 1 + for _, b := range yyq3355 { if b { - yynn3183++ + yynn3355++ } } - r.EncodeMapStart(yynn3183) - yynn3183 = 0 + r.EncodeMapStart(yynn3355) + yynn3355 = 0 } - if yyr3183 || yy2arr3183 { + if yyr3355 || yy2arr3355 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3183[0] { - yym3185 := z.EncBinary() - _ = yym3185 + if yyq3355[0] { + yym3357 := z.EncBinary() + _ = yym3357 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -40825,23 +42873,23 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3183[0] { + if yyq3355[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3186 := z.EncBinary() - _ = yym3186 + yym3358 := z.EncBinary() + _ = yym3358 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3183 || yy2arr3183 { + if yyr3355 || yy2arr3355 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3183[1] { - yym3188 := z.EncBinary() - _ = yym3188 + if yyq3355[1] { + yym3360 := z.EncBinary() + _ = yym3360 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -40850,54 +42898,54 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3183[1] { + if yyq3355[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3189 := z.EncBinary() - _ = yym3189 + yym3361 := z.EncBinary() + _ = yym3361 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3183 || yy2arr3183 { + if yyr3355 || yy2arr3355 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3183[2] { - yy3191 := &x.ListMeta - yym3192 := z.EncBinary() - _ = yym3192 + if yyq3355[2] { + yy3363 := &x.ListMeta + yym3364 := z.EncBinary() + _ = yym3364 if false { - } else if z.HasExtensions() && z.EncExt(yy3191) { + } else if z.HasExtensions() && z.EncExt(yy3363) { } else { - z.EncFallback(yy3191) + z.EncFallback(yy3363) } } else { r.EncodeNil() } } else { - if yyq3183[2] { + if yyq3355[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3193 := &x.ListMeta - yym3194 := z.EncBinary() - _ = yym3194 + yy3365 := &x.ListMeta + yym3366 := z.EncBinary() + _ = yym3366 if false { - } else if z.HasExtensions() && z.EncExt(yy3193) { + } else if z.HasExtensions() && z.EncExt(yy3365) { } else { - z.EncFallback(yy3193) + z.EncFallback(yy3365) } } } - if yyr3183 || yy2arr3183 { + if yyr3355 || yy2arr3355 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3196 := z.EncBinary() - _ = yym3196 + yym3368 := z.EncBinary() + _ = yym3368 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) @@ -40910,15 +42958,15 @@ func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3197 := z.EncBinary() - _ = yym3197 + yym3369 := z.EncBinary() + _ = yym3369 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) } } } - if yyr3183 || yy2arr3183 { + if yyr3355 || yy2arr3355 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -40931,25 +42979,25 @@ func (x *NamespaceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3198 := z.DecBinary() - _ = yym3198 + yym3370 := z.DecBinary() + _ = yym3370 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3199 := r.ContainerType() - if yyct3199 == codecSelferValueTypeMap1234 { - yyl3199 := r.ReadMapStart() - if yyl3199 == 0 { + yyct3371 := r.ContainerType() + if yyct3371 == codecSelferValueTypeMap1234 { + yyl3371 := r.ReadMapStart() + if yyl3371 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3199, d) + x.codecDecodeSelfFromMap(yyl3371, d) } - } else if yyct3199 == codecSelferValueTypeArray1234 { - yyl3199 := r.ReadArrayStart() - if yyl3199 == 0 { + } else if yyct3371 == codecSelferValueTypeArray1234 { + yyl3371 := r.ReadArrayStart() + if yyl3371 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3199, d) + x.codecDecodeSelfFromArray(yyl3371, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -40961,12 +43009,12 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3200Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3200Slc - var yyhl3200 bool = l >= 0 - for yyj3200 := 0; ; yyj3200++ { - if yyhl3200 { - if yyj3200 >= l { + var yys3372Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3372Slc + var yyhl3372 bool = l >= 0 + for yyj3372 := 0; ; yyj3372++ { + if yyhl3372 { + if yyj3372 >= l { break } } else { @@ -40975,10 +43023,10 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3200Slc = r.DecodeBytes(yys3200Slc, true, true) - yys3200 := string(yys3200Slc) + yys3372Slc = r.DecodeBytes(yys3372Slc, true, true) + yys3372 := string(yys3372Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3200 { + switch yys3372 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -40995,31 +43043,31 @@ func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3203 := &x.ListMeta - yym3204 := z.DecBinary() - _ = yym3204 + yyv3375 := &x.ListMeta + yym3376 := z.DecBinary() + _ = yym3376 if false { - } else if z.HasExtensions() && z.DecExt(yyv3203) { + } else if z.HasExtensions() && z.DecExt(yyv3375) { } else { - z.DecFallback(yyv3203, false) + z.DecFallback(yyv3375, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3205 := &x.Items - yym3206 := z.DecBinary() - _ = yym3206 + yyv3377 := &x.Items + yym3378 := z.DecBinary() + _ = yym3378 if false { } else { - h.decSliceNamespace((*[]Namespace)(yyv3205), d) + h.decSliceNamespace((*[]Namespace)(yyv3377), d) } } default: - z.DecStructFieldNotFound(-1, yys3200) - } // end switch yys3200 - } // end for yyj3200 + z.DecStructFieldNotFound(-1, yys3372) + } // end switch yys3372 + } // end for yyj3372 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41027,16 +43075,16 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3207 int - var yyb3207 bool - var yyhl3207 bool = l >= 0 - yyj3207++ - if yyhl3207 { - yyb3207 = yyj3207 > l + var yyj3379 int + var yyb3379 bool + var yyhl3379 bool = l >= 0 + yyj3379++ + if yyhl3379 { + yyb3379 = yyj3379 > l } else { - yyb3207 = r.CheckBreak() + yyb3379 = r.CheckBreak() } - if yyb3207 { + if yyb3379 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41046,13 +43094,13 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3207++ - if yyhl3207 { - yyb3207 = yyj3207 > l + yyj3379++ + if yyhl3379 { + yyb3379 = yyj3379 > l } else { - yyb3207 = r.CheckBreak() + yyb3379 = r.CheckBreak() } - if yyb3207 { + if yyb3379 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41062,13 +43110,13 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3207++ - if yyhl3207 { - yyb3207 = yyj3207 > l + yyj3379++ + if yyhl3379 { + yyb3379 = yyj3379 > l } else { - yyb3207 = r.CheckBreak() + yyb3379 = r.CheckBreak() } - if yyb3207 { + if yyb3379 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41076,22 +43124,22 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3210 := &x.ListMeta - yym3211 := z.DecBinary() - _ = yym3211 + yyv3382 := &x.ListMeta + yym3383 := z.DecBinary() + _ = yym3383 if false { - } else if z.HasExtensions() && z.DecExt(yyv3210) { + } else if z.HasExtensions() && z.DecExt(yyv3382) { } else { - z.DecFallback(yyv3210, false) + z.DecFallback(yyv3382, false) } } - yyj3207++ - if yyhl3207 { - yyb3207 = yyj3207 > l + yyj3379++ + if yyhl3379 { + yyb3379 = yyj3379 > l } else { - yyb3207 = r.CheckBreak() + yyb3379 = r.CheckBreak() } - if yyb3207 { + if yyb3379 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41099,26 +43147,26 @@ func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3212 := &x.Items - yym3213 := z.DecBinary() - _ = yym3213 + yyv3384 := &x.Items + yym3385 := z.DecBinary() + _ = yym3385 if false { } else { - h.decSliceNamespace((*[]Namespace)(yyv3212), d) + h.decSliceNamespace((*[]Namespace)(yyv3384), d) } } for { - yyj3207++ - if yyhl3207 { - yyb3207 = yyj3207 > l + yyj3379++ + if yyhl3379 { + yyb3379 = yyj3379 > l } else { - yyb3207 = r.CheckBreak() + yyb3379 = r.CheckBreak() } - if yyb3207 { + if yyb3379 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3207-1, "") + z.DecStructFieldNotFound(yyj3379-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41130,37 +43178,37 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3214 := z.EncBinary() - _ = yym3214 + yym3386 := z.EncBinary() + _ = yym3386 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3215 := !z.EncBinary() - yy2arr3215 := z.EncBasicHandle().StructToArray - var yyq3215 [4]bool - _, _, _ = yysep3215, yyq3215, yy2arr3215 - const yyr3215 bool = false - yyq3215[0] = x.Kind != "" - yyq3215[1] = x.APIVersion != "" - yyq3215[2] = true - var yynn3215 int - if yyr3215 || yy2arr3215 { + yysep3387 := !z.EncBinary() + yy2arr3387 := z.EncBasicHandle().StructToArray + var yyq3387 [4]bool + _, _, _ = yysep3387, yyq3387, yy2arr3387 + const yyr3387 bool = false + yyq3387[0] = x.Kind != "" + yyq3387[1] = x.APIVersion != "" + yyq3387[2] = true + var yynn3387 int + if yyr3387 || yy2arr3387 { r.EncodeArrayStart(4) } else { - yynn3215 = 1 - for _, b := range yyq3215 { + yynn3387 = 1 + for _, b := range yyq3387 { if b { - yynn3215++ + yynn3387++ } } - r.EncodeMapStart(yynn3215) - yynn3215 = 0 + r.EncodeMapStart(yynn3387) + yynn3387 = 0 } - if yyr3215 || yy2arr3215 { + if yyr3387 || yy2arr3387 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3215[0] { - yym3217 := z.EncBinary() - _ = yym3217 + if yyq3387[0] { + yym3389 := z.EncBinary() + _ = yym3389 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -41169,23 +43217,23 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3215[0] { + if yyq3387[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3218 := z.EncBinary() - _ = yym3218 + yym3390 := z.EncBinary() + _ = yym3390 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3215 || yy2arr3215 { + if yyr3387 || yy2arr3387 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3215[1] { - yym3220 := z.EncBinary() - _ = yym3220 + if yyq3387[1] { + yym3392 := z.EncBinary() + _ = yym3392 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -41194,47 +43242,47 @@ func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3215[1] { + if yyq3387[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3221 := z.EncBinary() - _ = yym3221 + yym3393 := z.EncBinary() + _ = yym3393 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3215 || yy2arr3215 { + if yyr3387 || yy2arr3387 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3215[2] { - yy3223 := &x.ObjectMeta - yy3223.CodecEncodeSelf(e) + if yyq3387[2] { + yy3395 := &x.ObjectMeta + yy3395.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3215[2] { + if yyq3387[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3224 := &x.ObjectMeta - yy3224.CodecEncodeSelf(e) + yy3396 := &x.ObjectMeta + yy3396.CodecEncodeSelf(e) } } - if yyr3215 || yy2arr3215 { + if yyr3387 || yy2arr3387 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3226 := &x.Target - yy3226.CodecEncodeSelf(e) + yy3398 := &x.Target + yy3398.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("target")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3227 := &x.Target - yy3227.CodecEncodeSelf(e) + yy3399 := &x.Target + yy3399.CodecEncodeSelf(e) } - if yyr3215 || yy2arr3215 { + if yyr3387 || yy2arr3387 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41247,25 +43295,25 @@ func (x *Binding) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3228 := z.DecBinary() - _ = yym3228 + yym3400 := z.DecBinary() + _ = yym3400 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3229 := r.ContainerType() - if yyct3229 == codecSelferValueTypeMap1234 { - yyl3229 := r.ReadMapStart() - if yyl3229 == 0 { + yyct3401 := r.ContainerType() + if yyct3401 == codecSelferValueTypeMap1234 { + yyl3401 := r.ReadMapStart() + if yyl3401 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3229, d) + x.codecDecodeSelfFromMap(yyl3401, d) } - } else if yyct3229 == codecSelferValueTypeArray1234 { - yyl3229 := r.ReadArrayStart() - if yyl3229 == 0 { + } else if yyct3401 == codecSelferValueTypeArray1234 { + yyl3401 := r.ReadArrayStart() + if yyl3401 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3229, d) + x.codecDecodeSelfFromArray(yyl3401, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41277,12 +43325,12 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3230Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3230Slc - var yyhl3230 bool = l >= 0 - for yyj3230 := 0; ; yyj3230++ { - if yyhl3230 { - if yyj3230 >= l { + var yys3402Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3402Slc + var yyhl3402 bool = l >= 0 + for yyj3402 := 0; ; yyj3402++ { + if yyhl3402 { + if yyj3402 >= l { break } } else { @@ -41291,10 +43339,10 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3230Slc = r.DecodeBytes(yys3230Slc, true, true) - yys3230 := string(yys3230Slc) + yys3402Slc = r.DecodeBytes(yys3402Slc, true, true) + yys3402 := string(yys3402Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3230 { + switch yys3402 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -41311,20 +43359,20 @@ func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3233 := &x.ObjectMeta - yyv3233.CodecDecodeSelf(d) + yyv3405 := &x.ObjectMeta + yyv3405.CodecDecodeSelf(d) } case "target": if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { - yyv3234 := &x.Target - yyv3234.CodecDecodeSelf(d) + yyv3406 := &x.Target + yyv3406.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3230) - } // end switch yys3230 - } // end for yyj3230 + z.DecStructFieldNotFound(-1, yys3402) + } // end switch yys3402 + } // end for yyj3402 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41332,16 +43380,16 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3235 int - var yyb3235 bool - var yyhl3235 bool = l >= 0 - yyj3235++ - if yyhl3235 { - yyb3235 = yyj3235 > l + var yyj3407 int + var yyb3407 bool + var yyhl3407 bool = l >= 0 + yyj3407++ + if yyhl3407 { + yyb3407 = yyj3407 > l } else { - yyb3235 = r.CheckBreak() + yyb3407 = r.CheckBreak() } - if yyb3235 { + if yyb3407 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41351,13 +43399,13 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3235++ - if yyhl3235 { - yyb3235 = yyj3235 > l + yyj3407++ + if yyhl3407 { + yyb3407 = yyj3407 > l } else { - yyb3235 = r.CheckBreak() + yyb3407 = r.CheckBreak() } - if yyb3235 { + if yyb3407 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41367,13 +43415,13 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3235++ - if yyhl3235 { - yyb3235 = yyj3235 > l + yyj3407++ + if yyhl3407 { + yyb3407 = yyj3407 > l } else { - yyb3235 = r.CheckBreak() + yyb3407 = r.CheckBreak() } - if yyb3235 { + if yyb3407 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41381,16 +43429,16 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3238 := &x.ObjectMeta - yyv3238.CodecDecodeSelf(d) + yyv3410 := &x.ObjectMeta + yyv3410.CodecDecodeSelf(d) } - yyj3235++ - if yyhl3235 { - yyb3235 = yyj3235 > l + yyj3407++ + if yyhl3407 { + yyb3407 = yyj3407 > l } else { - yyb3235 = r.CheckBreak() + yyb3407 = r.CheckBreak() } - if yyb3235 { + if yyb3407 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41398,21 +43446,21 @@ func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { - yyv3239 := &x.Target - yyv3239.CodecDecodeSelf(d) + yyv3411 := &x.Target + yyv3411.CodecDecodeSelf(d) } for { - yyj3235++ - if yyhl3235 { - yyb3235 = yyj3235 > l + yyj3407++ + if yyhl3407 { + yyb3407 = yyj3407 > l } else { - yyb3235 = r.CheckBreak() + yyb3407 = r.CheckBreak() } - if yyb3235 { + if yyb3407 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3235-1, "") + z.DecStructFieldNotFound(yyj3407-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41424,68 +43472,68 @@ func (x *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3240 := z.EncBinary() - _ = yym3240 + yym3412 := z.EncBinary() + _ = yym3412 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3241 := !z.EncBinary() - yy2arr3241 := z.EncBasicHandle().StructToArray - var yyq3241 [1]bool - _, _, _ = yysep3241, yyq3241, yy2arr3241 - const yyr3241 bool = false - yyq3241[0] = x.UID != nil - var yynn3241 int - if yyr3241 || yy2arr3241 { + yysep3413 := !z.EncBinary() + yy2arr3413 := z.EncBasicHandle().StructToArray + var yyq3413 [1]bool + _, _, _ = yysep3413, yyq3413, yy2arr3413 + const yyr3413 bool = false + yyq3413[0] = x.UID != nil + var yynn3413 int + if yyr3413 || yy2arr3413 { r.EncodeArrayStart(1) } else { - yynn3241 = 0 - for _, b := range yyq3241 { + yynn3413 = 0 + for _, b := range yyq3413 { if b { - yynn3241++ + yynn3413++ } } - r.EncodeMapStart(yynn3241) - yynn3241 = 0 + r.EncodeMapStart(yynn3413) + yynn3413 = 0 } - if yyr3241 || yy2arr3241 { + if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3241[0] { + if yyq3413[0] { if x.UID == nil { r.EncodeNil() } else { - yy3243 := *x.UID - yym3244 := z.EncBinary() - _ = yym3244 + yy3415 := *x.UID + yym3416 := z.EncBinary() + _ = yym3416 if false { - } else if z.HasExtensions() && z.EncExt(yy3243) { + } else if z.HasExtensions() && z.EncExt(yy3415) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy3243)) + r.EncodeString(codecSelferC_UTF81234, string(yy3415)) } } } else { r.EncodeNil() } } else { - if yyq3241[0] { + if yyq3413[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.UID == nil { r.EncodeNil() } else { - yy3245 := *x.UID - yym3246 := z.EncBinary() - _ = yym3246 + yy3417 := *x.UID + yym3418 := z.EncBinary() + _ = yym3418 if false { - } else if z.HasExtensions() && z.EncExt(yy3245) { + } else if z.HasExtensions() && z.EncExt(yy3417) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy3245)) + r.EncodeString(codecSelferC_UTF81234, string(yy3417)) } } } } - if yyr3241 || yy2arr3241 { + if yyr3413 || yy2arr3413 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41498,25 +43546,25 @@ func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3247 := z.DecBinary() - _ = yym3247 + yym3419 := z.DecBinary() + _ = yym3419 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3248 := r.ContainerType() - if yyct3248 == codecSelferValueTypeMap1234 { - yyl3248 := r.ReadMapStart() - if yyl3248 == 0 { + yyct3420 := r.ContainerType() + if yyct3420 == codecSelferValueTypeMap1234 { + yyl3420 := r.ReadMapStart() + if yyl3420 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3248, d) + x.codecDecodeSelfFromMap(yyl3420, d) } - } else if yyct3248 == codecSelferValueTypeArray1234 { - yyl3248 := r.ReadArrayStart() - if yyl3248 == 0 { + } else if yyct3420 == codecSelferValueTypeArray1234 { + yyl3420 := r.ReadArrayStart() + if yyl3420 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3248, d) + x.codecDecodeSelfFromArray(yyl3420, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41528,12 +43576,12 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3249Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3249Slc - var yyhl3249 bool = l >= 0 - for yyj3249 := 0; ; yyj3249++ { - if yyhl3249 { - if yyj3249 >= l { + var yys3421Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3421Slc + var yyhl3421 bool = l >= 0 + for yyj3421 := 0; ; yyj3421++ { + if yyhl3421 { + if yyj3421 >= l { break } } else { @@ -41542,10 +43590,10 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3249Slc = r.DecodeBytes(yys3249Slc, true, true) - yys3249 := string(yys3249Slc) + yys3421Slc = r.DecodeBytes(yys3421Slc, true, true) + yys3421 := string(yys3421Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3249 { + switch yys3421 { case "uid": if r.TryDecodeAsNil() { if x.UID != nil { @@ -41555,8 +43603,8 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.UID == nil { x.UID = new(pkg1_types.UID) } - yym3251 := z.DecBinary() - _ = yym3251 + yym3423 := z.DecBinary() + _ = yym3423 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { @@ -41564,9 +43612,9 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } default: - z.DecStructFieldNotFound(-1, yys3249) - } // end switch yys3249 - } // end for yyj3249 + z.DecStructFieldNotFound(-1, yys3421) + } // end switch yys3421 + } // end for yyj3421 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41574,16 +43622,16 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3252 int - var yyb3252 bool - var yyhl3252 bool = l >= 0 - yyj3252++ - if yyhl3252 { - yyb3252 = yyj3252 > l + var yyj3424 int + var yyb3424 bool + var yyhl3424 bool = l >= 0 + yyj3424++ + if yyhl3424 { + yyb3424 = yyj3424 > l } else { - yyb3252 = r.CheckBreak() + yyb3424 = r.CheckBreak() } - if yyb3252 { + if yyb3424 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41596,8 +43644,8 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.UID == nil { x.UID = new(pkg1_types.UID) } - yym3254 := z.DecBinary() - _ = yym3254 + yym3426 := z.DecBinary() + _ = yym3426 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { @@ -41605,17 +43653,17 @@ func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } } for { - yyj3252++ - if yyhl3252 { - yyb3252 = yyj3252 > l + yyj3424++ + if yyhl3424 { + yyb3424 = yyj3424 > l } else { - yyb3252 = r.CheckBreak() + yyb3424 = r.CheckBreak() } - if yyb3252 { + if yyb3424 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3252-1, "") + z.DecStructFieldNotFound(yyj3424-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41627,39 +43675,39 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3255 := z.EncBinary() - _ = yym3255 + yym3427 := z.EncBinary() + _ = yym3427 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3256 := !z.EncBinary() - yy2arr3256 := z.EncBasicHandle().StructToArray - var yyq3256 [5]bool - _, _, _ = yysep3256, yyq3256, yy2arr3256 - const yyr3256 bool = false - yyq3256[0] = x.Kind != "" - yyq3256[1] = x.APIVersion != "" - yyq3256[2] = x.GracePeriodSeconds != nil - yyq3256[3] = x.Preconditions != nil - yyq3256[4] = x.OrphanDependents != nil - var yynn3256 int - if yyr3256 || yy2arr3256 { + yysep3428 := !z.EncBinary() + yy2arr3428 := z.EncBasicHandle().StructToArray + var yyq3428 [5]bool + _, _, _ = yysep3428, yyq3428, yy2arr3428 + const yyr3428 bool = false + yyq3428[0] = x.Kind != "" + yyq3428[1] = x.APIVersion != "" + yyq3428[2] = x.GracePeriodSeconds != nil + yyq3428[3] = x.Preconditions != nil + yyq3428[4] = x.OrphanDependents != nil + var yynn3428 int + if yyr3428 || yy2arr3428 { r.EncodeArrayStart(5) } else { - yynn3256 = 0 - for _, b := range yyq3256 { + yynn3428 = 0 + for _, b := range yyq3428 { if b { - yynn3256++ + yynn3428++ } } - r.EncodeMapStart(yynn3256) - yynn3256 = 0 + r.EncodeMapStart(yynn3428) + yynn3428 = 0 } - if yyr3256 || yy2arr3256 { + if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3256[0] { - yym3258 := z.EncBinary() - _ = yym3258 + if yyq3428[0] { + yym3430 := z.EncBinary() + _ = yym3430 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -41668,23 +43716,23 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3256[0] { + if yyq3428[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3259 := z.EncBinary() - _ = yym3259 + yym3431 := z.EncBinary() + _ = yym3431 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3256 || yy2arr3256 { + if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3256[1] { - yym3261 := z.EncBinary() - _ = yym3261 + if yyq3428[1] { + yym3433 := z.EncBinary() + _ = yym3433 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -41693,56 +43741,56 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3256[1] { + if yyq3428[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3262 := z.EncBinary() - _ = yym3262 + yym3434 := z.EncBinary() + _ = yym3434 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3256 || yy2arr3256 { + if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3256[2] { + if yyq3428[2] { if x.GracePeriodSeconds == nil { r.EncodeNil() } else { - yy3264 := *x.GracePeriodSeconds - yym3265 := z.EncBinary() - _ = yym3265 + yy3436 := *x.GracePeriodSeconds + yym3437 := z.EncBinary() + _ = yym3437 if false { } else { - r.EncodeInt(int64(yy3264)) + r.EncodeInt(int64(yy3436)) } } } else { r.EncodeNil() } } else { - if yyq3256[2] { + if yyq3428[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { - yy3266 := *x.GracePeriodSeconds - yym3267 := z.EncBinary() - _ = yym3267 + yy3438 := *x.GracePeriodSeconds + yym3439 := z.EncBinary() + _ = yym3439 if false { } else { - r.EncodeInt(int64(yy3266)) + r.EncodeInt(int64(yy3438)) } } } } - if yyr3256 || yy2arr3256 { + if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3256[3] { + if yyq3428[3] { if x.Preconditions == nil { r.EncodeNil() } else { @@ -41752,7 +43800,7 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3256[3] { + if yyq3428[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preconditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -41763,42 +43811,42 @@ func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3256 || yy2arr3256 { + if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3256[4] { + if yyq3428[4] { if x.OrphanDependents == nil { r.EncodeNil() } else { - yy3270 := *x.OrphanDependents - yym3271 := z.EncBinary() - _ = yym3271 + yy3442 := *x.OrphanDependents + yym3443 := z.EncBinary() + _ = yym3443 if false { } else { - r.EncodeBool(bool(yy3270)) + r.EncodeBool(bool(yy3442)) } } } else { r.EncodeNil() } } else { - if yyq3256[4] { + if yyq3428[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.OrphanDependents == nil { r.EncodeNil() } else { - yy3272 := *x.OrphanDependents - yym3273 := z.EncBinary() - _ = yym3273 + yy3444 := *x.OrphanDependents + yym3445 := z.EncBinary() + _ = yym3445 if false { } else { - r.EncodeBool(bool(yy3272)) + r.EncodeBool(bool(yy3444)) } } } } - if yyr3256 || yy2arr3256 { + if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41811,25 +43859,25 @@ func (x *DeleteOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3274 := z.DecBinary() - _ = yym3274 + yym3446 := z.DecBinary() + _ = yym3446 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3275 := r.ContainerType() - if yyct3275 == codecSelferValueTypeMap1234 { - yyl3275 := r.ReadMapStart() - if yyl3275 == 0 { + yyct3447 := r.ContainerType() + if yyct3447 == codecSelferValueTypeMap1234 { + yyl3447 := r.ReadMapStart() + if yyl3447 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3275, d) + x.codecDecodeSelfFromMap(yyl3447, d) } - } else if yyct3275 == codecSelferValueTypeArray1234 { - yyl3275 := r.ReadArrayStart() - if yyl3275 == 0 { + } else if yyct3447 == codecSelferValueTypeArray1234 { + yyl3447 := r.ReadArrayStart() + if yyl3447 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3275, d) + x.codecDecodeSelfFromArray(yyl3447, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -41841,12 +43889,12 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3276Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3276Slc - var yyhl3276 bool = l >= 0 - for yyj3276 := 0; ; yyj3276++ { - if yyhl3276 { - if yyj3276 >= l { + var yys3448Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3448Slc + var yyhl3448 bool = l >= 0 + for yyj3448 := 0; ; yyj3448++ { + if yyhl3448 { + if yyj3448 >= l { break } } else { @@ -41855,10 +43903,10 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3276Slc = r.DecodeBytes(yys3276Slc, true, true) - yys3276 := string(yys3276Slc) + yys3448Slc = r.DecodeBytes(yys3448Slc, true, true) + yys3448 := string(yys3448Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3276 { + switch yys3448 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -41880,8 +43928,8 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } - yym3280 := z.DecBinary() - _ = yym3280 + yym3452 := z.DecBinary() + _ = yym3452 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -41907,17 +43955,17 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } - yym3283 := z.DecBinary() - _ = yym3283 + yym3455 := z.DecBinary() + _ = yym3455 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys3276) - } // end switch yys3276 - } // end for yyj3276 + z.DecStructFieldNotFound(-1, yys3448) + } // end switch yys3448 + } // end for yyj3448 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41925,16 +43973,16 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3284 int - var yyb3284 bool - var yyhl3284 bool = l >= 0 - yyj3284++ - if yyhl3284 { - yyb3284 = yyj3284 > l + var yyj3456 int + var yyb3456 bool + var yyhl3456 bool = l >= 0 + yyj3456++ + if yyhl3456 { + yyb3456 = yyj3456 > l } else { - yyb3284 = r.CheckBreak() + yyb3456 = r.CheckBreak() } - if yyb3284 { + if yyb3456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41944,13 +43992,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3284++ - if yyhl3284 { - yyb3284 = yyj3284 > l + yyj3456++ + if yyhl3456 { + yyb3456 = yyj3456 > l } else { - yyb3284 = r.CheckBreak() + yyb3456 = r.CheckBreak() } - if yyb3284 { + if yyb3456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41960,13 +44008,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3284++ - if yyhl3284 { - yyb3284 = yyj3284 > l + yyj3456++ + if yyhl3456 { + yyb3456 = yyj3456 > l } else { - yyb3284 = r.CheckBreak() + yyb3456 = r.CheckBreak() } - if yyb3284 { + if yyb3456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41979,20 +44027,20 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } - yym3288 := z.DecBinary() - _ = yym3288 + yym3460 := z.DecBinary() + _ = yym3460 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj3284++ - if yyhl3284 { - yyb3284 = yyj3284 > l + yyj3456++ + if yyhl3456 { + yyb3456 = yyj3456 > l } else { - yyb3284 = r.CheckBreak() + yyb3456 = r.CheckBreak() } - if yyb3284 { + if yyb3456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42007,13 +44055,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Preconditions.CodecDecodeSelf(d) } - yyj3284++ - if yyhl3284 { - yyb3284 = yyj3284 > l + yyj3456++ + if yyhl3456 { + yyb3456 = yyj3456 > l } else { - yyb3284 = r.CheckBreak() + yyb3456 = r.CheckBreak() } - if yyb3284 { + if yyb3456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42026,25 +44074,25 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } - yym3291 := z.DecBinary() - _ = yym3291 + yym3463 := z.DecBinary() + _ = yym3463 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } for { - yyj3284++ - if yyhl3284 { - yyb3284 = yyj3284 > l + yyj3456++ + if yyhl3456 { + yyb3456 = yyj3456 > l } else { - yyb3284 = r.CheckBreak() + yyb3456 = r.CheckBreak() } - if yyb3284 { + if yyb3456 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3284-1, "") + z.DecStructFieldNotFound(yyj3456-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42056,36 +44104,36 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3292 := z.EncBinary() - _ = yym3292 + yym3464 := z.EncBinary() + _ = yym3464 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3293 := !z.EncBinary() - yy2arr3293 := z.EncBasicHandle().StructToArray - var yyq3293 [4]bool - _, _, _ = yysep3293, yyq3293, yy2arr3293 - const yyr3293 bool = false - yyq3293[0] = x.Kind != "" - yyq3293[1] = x.APIVersion != "" - var yynn3293 int - if yyr3293 || yy2arr3293 { + yysep3465 := !z.EncBinary() + yy2arr3465 := z.EncBasicHandle().StructToArray + var yyq3465 [4]bool + _, _, _ = yysep3465, yyq3465, yy2arr3465 + const yyr3465 bool = false + yyq3465[0] = x.Kind != "" + yyq3465[1] = x.APIVersion != "" + var yynn3465 int + if yyr3465 || yy2arr3465 { r.EncodeArrayStart(4) } else { - yynn3293 = 2 - for _, b := range yyq3293 { + yynn3465 = 2 + for _, b := range yyq3465 { if b { - yynn3293++ + yynn3465++ } } - r.EncodeMapStart(yynn3293) - yynn3293 = 0 + r.EncodeMapStart(yynn3465) + yynn3465 = 0 } - if yyr3293 || yy2arr3293 { + if yyr3465 || yy2arr3465 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3293[0] { - yym3295 := z.EncBinary() - _ = yym3295 + if yyq3465[0] { + yym3467 := z.EncBinary() + _ = yym3467 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -42094,23 +44142,23 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3293[0] { + if yyq3465[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3296 := z.EncBinary() - _ = yym3296 + yym3468 := z.EncBinary() + _ = yym3468 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3293 || yy2arr3293 { + if yyr3465 || yy2arr3465 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3293[1] { - yym3298 := z.EncBinary() - _ = yym3298 + if yyq3465[1] { + yym3470 := z.EncBinary() + _ = yym3470 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -42119,22 +44167,22 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3293[1] { + if yyq3465[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3299 := z.EncBinary() - _ = yym3299 + yym3471 := z.EncBinary() + _ = yym3471 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3293 || yy2arr3293 { + if yyr3465 || yy2arr3465 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3301 := z.EncBinary() - _ = yym3301 + yym3473 := z.EncBinary() + _ = yym3473 if false { } else { r.EncodeBool(bool(x.Export)) @@ -42143,17 +44191,17 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("export")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3302 := z.EncBinary() - _ = yym3302 + yym3474 := z.EncBinary() + _ = yym3474 if false { } else { r.EncodeBool(bool(x.Export)) } } - if yyr3293 || yy2arr3293 { + if yyr3465 || yy2arr3465 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3304 := z.EncBinary() - _ = yym3304 + yym3476 := z.EncBinary() + _ = yym3476 if false { } else { r.EncodeBool(bool(x.Exact)) @@ -42162,14 +44210,14 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exact")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3305 := z.EncBinary() - _ = yym3305 + yym3477 := z.EncBinary() + _ = yym3477 if false { } else { r.EncodeBool(bool(x.Exact)) } } - if yyr3293 || yy2arr3293 { + if yyr3465 || yy2arr3465 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42182,25 +44230,25 @@ func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3306 := z.DecBinary() - _ = yym3306 + yym3478 := z.DecBinary() + _ = yym3478 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3307 := r.ContainerType() - if yyct3307 == codecSelferValueTypeMap1234 { - yyl3307 := r.ReadMapStart() - if yyl3307 == 0 { + yyct3479 := r.ContainerType() + if yyct3479 == codecSelferValueTypeMap1234 { + yyl3479 := r.ReadMapStart() + if yyl3479 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3307, d) + x.codecDecodeSelfFromMap(yyl3479, d) } - } else if yyct3307 == codecSelferValueTypeArray1234 { - yyl3307 := r.ReadArrayStart() - if yyl3307 == 0 { + } else if yyct3479 == codecSelferValueTypeArray1234 { + yyl3479 := r.ReadArrayStart() + if yyl3479 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3307, d) + x.codecDecodeSelfFromArray(yyl3479, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42212,12 +44260,12 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3308Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3308Slc - var yyhl3308 bool = l >= 0 - for yyj3308 := 0; ; yyj3308++ { - if yyhl3308 { - if yyj3308 >= l { + var yys3480Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3480Slc + var yyhl3480 bool = l >= 0 + for yyj3480 := 0; ; yyj3480++ { + if yyhl3480 { + if yyj3480 >= l { break } } else { @@ -42226,10 +44274,10 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3308Slc = r.DecodeBytes(yys3308Slc, true, true) - yys3308 := string(yys3308Slc) + yys3480Slc = r.DecodeBytes(yys3480Slc, true, true) + yys3480 := string(yys3480Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3308 { + switch yys3480 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -42255,9 +44303,9 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Exact = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys3308) - } // end switch yys3308 - } // end for yyj3308 + z.DecStructFieldNotFound(-1, yys3480) + } // end switch yys3480 + } // end for yyj3480 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42265,16 +44313,16 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3313 int - var yyb3313 bool - var yyhl3313 bool = l >= 0 - yyj3313++ - if yyhl3313 { - yyb3313 = yyj3313 > l + var yyj3485 int + var yyb3485 bool + var yyhl3485 bool = l >= 0 + yyj3485++ + if yyhl3485 { + yyb3485 = yyj3485 > l } else { - yyb3313 = r.CheckBreak() + yyb3485 = r.CheckBreak() } - if yyb3313 { + if yyb3485 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42284,13 +44332,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3313++ - if yyhl3313 { - yyb3313 = yyj3313 > l + yyj3485++ + if yyhl3485 { + yyb3485 = yyj3485 > l } else { - yyb3313 = r.CheckBreak() + yyb3485 = r.CheckBreak() } - if yyb3313 { + if yyb3485 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42300,13 +44348,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3313++ - if yyhl3313 { - yyb3313 = yyj3313 > l + yyj3485++ + if yyhl3485 { + yyb3485 = yyj3485 > l } else { - yyb3313 = r.CheckBreak() + yyb3485 = r.CheckBreak() } - if yyb3313 { + if yyb3485 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42316,13 +44364,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Export = bool(r.DecodeBool()) } - yyj3313++ - if yyhl3313 { - yyb3313 = yyj3313 > l + yyj3485++ + if yyhl3485 { + yyb3485 = yyj3485 > l } else { - yyb3313 = r.CheckBreak() + yyb3485 = r.CheckBreak() } - if yyb3313 { + if yyb3485 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42333,17 +44381,17 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Exact = bool(r.DecodeBool()) } for { - yyj3313++ - if yyhl3313 { - yyb3313 = yyj3313 > l + yyj3485++ + if yyhl3485 { + yyb3485 = yyj3485 > l } else { - yyb3313 = r.CheckBreak() + yyb3485 = r.CheckBreak() } - if yyb3313 { + if yyb3485 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3313-1, "") + z.DecStructFieldNotFound(yyj3485-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42355,36 +44403,36 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3318 := z.EncBinary() - _ = yym3318 + yym3490 := z.EncBinary() + _ = yym3490 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3319 := !z.EncBinary() - yy2arr3319 := z.EncBasicHandle().StructToArray - var yyq3319 [7]bool - _, _, _ = yysep3319, yyq3319, yy2arr3319 - const yyr3319 bool = false - yyq3319[0] = x.Kind != "" - yyq3319[1] = x.APIVersion != "" - var yynn3319 int - if yyr3319 || yy2arr3319 { + yysep3491 := !z.EncBinary() + yy2arr3491 := z.EncBasicHandle().StructToArray + var yyq3491 [7]bool + _, _, _ = yysep3491, yyq3491, yy2arr3491 + const yyr3491 bool = false + yyq3491[0] = x.Kind != "" + yyq3491[1] = x.APIVersion != "" + var yynn3491 int + if yyr3491 || yy2arr3491 { r.EncodeArrayStart(7) } else { - yynn3319 = 5 - for _, b := range yyq3319 { + yynn3491 = 5 + for _, b := range yyq3491 { if b { - yynn3319++ + yynn3491++ } } - r.EncodeMapStart(yynn3319) - yynn3319 = 0 + r.EncodeMapStart(yynn3491) + yynn3491 = 0 } - if yyr3319 || yy2arr3319 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3319[0] { - yym3321 := z.EncBinary() - _ = yym3321 + if yyq3491[0] { + yym3493 := z.EncBinary() + _ = yym3493 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -42393,23 +44441,23 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3319[0] { + if yyq3491[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3322 := z.EncBinary() - _ = yym3322 + yym3494 := z.EncBinary() + _ = yym3494 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3319 || yy2arr3319 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3319[1] { - yym3324 := z.EncBinary() - _ = yym3324 + if yyq3491[1] { + yym3496 := z.EncBinary() + _ = yym3496 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -42418,25 +44466,25 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3319[1] { + if yyq3491[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3325 := z.EncBinary() - _ = yym3325 + yym3497 := z.EncBinary() + _ = yym3497 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3319 || yy2arr3319 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LabelSelector == nil { r.EncodeNil() } else { - yym3327 := z.EncBinary() - _ = yym3327 + yym3499 := z.EncBinary() + _ = yym3499 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { @@ -42450,8 +44498,8 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.LabelSelector == nil { r.EncodeNil() } else { - yym3328 := z.EncBinary() - _ = yym3328 + yym3500 := z.EncBinary() + _ = yym3500 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { @@ -42459,13 +44507,13 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3319 || yy2arr3319 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.FieldSelector == nil { r.EncodeNil() } else { - yym3330 := z.EncBinary() - _ = yym3330 + yym3502 := z.EncBinary() + _ = yym3502 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { @@ -42479,8 +44527,8 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.FieldSelector == nil { r.EncodeNil() } else { - yym3331 := z.EncBinary() - _ = yym3331 + yym3503 := z.EncBinary() + _ = yym3503 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { @@ -42488,10 +44536,10 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3319 || yy2arr3319 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3333 := z.EncBinary() - _ = yym3333 + yym3505 := z.EncBinary() + _ = yym3505 if false { } else { r.EncodeBool(bool(x.Watch)) @@ -42500,17 +44548,17 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3334 := z.EncBinary() - _ = yym3334 + yym3506 := z.EncBinary() + _ = yym3506 if false { } else { r.EncodeBool(bool(x.Watch)) } } - if yyr3319 || yy2arr3319 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3336 := z.EncBinary() - _ = yym3336 + yym3508 := z.EncBinary() + _ = yym3508 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) @@ -42519,24 +44567,24 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ResourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3337 := z.EncBinary() - _ = yym3337 + yym3509 := z.EncBinary() + _ = yym3509 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } - if yyr3319 || yy2arr3319 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { - yy3339 := *x.TimeoutSeconds - yym3340 := z.EncBinary() - _ = yym3340 + yy3511 := *x.TimeoutSeconds + yym3512 := z.EncBinary() + _ = yym3512 if false { } else { - r.EncodeInt(int64(yy3339)) + r.EncodeInt(int64(yy3511)) } } } else { @@ -42546,16 +44594,16 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.TimeoutSeconds == nil { r.EncodeNil() } else { - yy3341 := *x.TimeoutSeconds - yym3342 := z.EncBinary() - _ = yym3342 + yy3513 := *x.TimeoutSeconds + yym3514 := z.EncBinary() + _ = yym3514 if false { } else { - r.EncodeInt(int64(yy3341)) + r.EncodeInt(int64(yy3513)) } } } - if yyr3319 || yy2arr3319 { + if yyr3491 || yy2arr3491 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42568,25 +44616,25 @@ func (x *ListOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3343 := z.DecBinary() - _ = yym3343 + yym3515 := z.DecBinary() + _ = yym3515 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3344 := r.ContainerType() - if yyct3344 == codecSelferValueTypeMap1234 { - yyl3344 := r.ReadMapStart() - if yyl3344 == 0 { + yyct3516 := r.ContainerType() + if yyct3516 == codecSelferValueTypeMap1234 { + yyl3516 := r.ReadMapStart() + if yyl3516 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3344, d) + x.codecDecodeSelfFromMap(yyl3516, d) } - } else if yyct3344 == codecSelferValueTypeArray1234 { - yyl3344 := r.ReadArrayStart() - if yyl3344 == 0 { + } else if yyct3516 == codecSelferValueTypeArray1234 { + yyl3516 := r.ReadArrayStart() + if yyl3516 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3344, d) + x.codecDecodeSelfFromArray(yyl3516, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42598,12 +44646,12 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3345Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3345Slc - var yyhl3345 bool = l >= 0 - for yyj3345 := 0; ; yyj3345++ { - if yyhl3345 { - if yyj3345 >= l { + var yys3517Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3517Slc + var yyhl3517 bool = l >= 0 + for yyj3517 := 0; ; yyj3517++ { + if yyhl3517 { + if yyj3517 >= l { break } } else { @@ -42612,10 +44660,10 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3345Slc = r.DecodeBytes(yys3345Slc, true, true) - yys3345 := string(yys3345Slc) + yys3517Slc = r.DecodeBytes(yys3517Slc, true, true) + yys3517 := string(yys3517Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3345 { + switch yys3517 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -42632,26 +44680,26 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LabelSelector = nil } else { - yyv3348 := &x.LabelSelector - yym3349 := z.DecBinary() - _ = yym3349 + yyv3520 := &x.LabelSelector + yym3521 := z.DecBinary() + _ = yym3521 if false { - } else if z.HasExtensions() && z.DecExt(yyv3348) { + } else if z.HasExtensions() && z.DecExt(yyv3520) { } else { - z.DecFallback(yyv3348, true) + z.DecFallback(yyv3520, true) } } case "FieldSelector": if r.TryDecodeAsNil() { x.FieldSelector = nil } else { - yyv3350 := &x.FieldSelector - yym3351 := z.DecBinary() - _ = yym3351 + yyv3522 := &x.FieldSelector + yym3523 := z.DecBinary() + _ = yym3523 if false { - } else if z.HasExtensions() && z.DecExt(yyv3350) { + } else if z.HasExtensions() && z.DecExt(yyv3522) { } else { - z.DecFallback(yyv3350, true) + z.DecFallback(yyv3522, true) } } case "Watch": @@ -42675,17 +44723,17 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym3355 := z.DecBinary() - _ = yym3355 + yym3527 := z.DecBinary() + _ = yym3527 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys3345) - } // end switch yys3345 - } // end for yyj3345 + z.DecStructFieldNotFound(-1, yys3517) + } // end switch yys3517 + } // end for yyj3517 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42693,16 +44741,16 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3356 int - var yyb3356 bool - var yyhl3356 bool = l >= 0 - yyj3356++ - if yyhl3356 { - yyb3356 = yyj3356 > l + var yyj3528 int + var yyb3528 bool + var yyhl3528 bool = l >= 0 + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l } else { - yyb3356 = r.CheckBreak() + yyb3528 = r.CheckBreak() } - if yyb3356 { + if yyb3528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42712,13 +44760,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3356++ - if yyhl3356 { - yyb3356 = yyj3356 > l + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l } else { - yyb3356 = r.CheckBreak() + yyb3528 = r.CheckBreak() } - if yyb3356 { + if yyb3528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42728,13 +44776,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3356++ - if yyhl3356 { - yyb3356 = yyj3356 > l + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l } else { - yyb3356 = r.CheckBreak() + yyb3528 = r.CheckBreak() } - if yyb3356 { + if yyb3528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42742,22 +44790,22 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LabelSelector = nil } else { - yyv3359 := &x.LabelSelector - yym3360 := z.DecBinary() - _ = yym3360 + yyv3531 := &x.LabelSelector + yym3532 := z.DecBinary() + _ = yym3532 if false { - } else if z.HasExtensions() && z.DecExt(yyv3359) { + } else if z.HasExtensions() && z.DecExt(yyv3531) { } else { - z.DecFallback(yyv3359, true) + z.DecFallback(yyv3531, true) } } - yyj3356++ - if yyhl3356 { - yyb3356 = yyj3356 > l + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l } else { - yyb3356 = r.CheckBreak() + yyb3528 = r.CheckBreak() } - if yyb3356 { + if yyb3528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42765,22 +44813,22 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.FieldSelector = nil } else { - yyv3361 := &x.FieldSelector - yym3362 := z.DecBinary() - _ = yym3362 + yyv3533 := &x.FieldSelector + yym3534 := z.DecBinary() + _ = yym3534 if false { - } else if z.HasExtensions() && z.DecExt(yyv3361) { + } else if z.HasExtensions() && z.DecExt(yyv3533) { } else { - z.DecFallback(yyv3361, true) + z.DecFallback(yyv3533, true) } } - yyj3356++ - if yyhl3356 { - yyb3356 = yyj3356 > l + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l } else { - yyb3356 = r.CheckBreak() + yyb3528 = r.CheckBreak() } - if yyb3356 { + if yyb3528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42790,13 +44838,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Watch = bool(r.DecodeBool()) } - yyj3356++ - if yyhl3356 { - yyb3356 = yyj3356 > l + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l } else { - yyb3356 = r.CheckBreak() + yyb3528 = r.CheckBreak() } - if yyb3356 { + if yyb3528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42806,13 +44854,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ResourceVersion = string(r.DecodeString()) } - yyj3356++ - if yyhl3356 { - yyb3356 = yyj3356 > l + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l } else { - yyb3356 = r.CheckBreak() + yyb3528 = r.CheckBreak() } - if yyb3356 { + if yyb3528 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42825,25 +44873,25 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym3366 := z.DecBinary() - _ = yym3366 + yym3538 := z.DecBinary() + _ = yym3538 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } for { - yyj3356++ - if yyhl3356 { - yyb3356 = yyj3356 > l + yyj3528++ + if yyhl3528 { + yyb3528 = yyj3528 > l } else { - yyb3356 = r.CheckBreak() + yyb3528 = r.CheckBreak() } - if yyb3356 { + if yyb3528 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3356-1, "") + z.DecStructFieldNotFound(yyj3528-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42855,36 +44903,36 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3367 := z.EncBinary() - _ = yym3367 + yym3539 := z.EncBinary() + _ = yym3539 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3368 := !z.EncBinary() - yy2arr3368 := z.EncBasicHandle().StructToArray - var yyq3368 [10]bool - _, _, _ = yysep3368, yyq3368, yy2arr3368 - const yyr3368 bool = false - yyq3368[0] = x.Kind != "" - yyq3368[1] = x.APIVersion != "" - var yynn3368 int - if yyr3368 || yy2arr3368 { + yysep3540 := !z.EncBinary() + yy2arr3540 := z.EncBasicHandle().StructToArray + var yyq3540 [10]bool + _, _, _ = yysep3540, yyq3540, yy2arr3540 + const yyr3540 bool = false + yyq3540[0] = x.Kind != "" + yyq3540[1] = x.APIVersion != "" + var yynn3540 int + if yyr3540 || yy2arr3540 { r.EncodeArrayStart(10) } else { - yynn3368 = 8 - for _, b := range yyq3368 { + yynn3540 = 8 + for _, b := range yyq3540 { if b { - yynn3368++ + yynn3540++ } } - r.EncodeMapStart(yynn3368) - yynn3368 = 0 + r.EncodeMapStart(yynn3540) + yynn3540 = 0 } - if yyr3368 || yy2arr3368 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3368[0] { - yym3370 := z.EncBinary() - _ = yym3370 + if yyq3540[0] { + yym3542 := z.EncBinary() + _ = yym3542 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -42893,23 +44941,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3368[0] { + if yyq3540[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3371 := z.EncBinary() - _ = yym3371 + yym3543 := z.EncBinary() + _ = yym3543 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3368 || yy2arr3368 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3368[1] { - yym3373 := z.EncBinary() - _ = yym3373 + if yyq3540[1] { + yym3545 := z.EncBinary() + _ = yym3545 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -42918,22 +44966,22 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3368[1] { + if yyq3540[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3374 := z.EncBinary() - _ = yym3374 + yym3546 := z.EncBinary() + _ = yym3546 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3368 || yy2arr3368 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3376 := z.EncBinary() - _ = yym3376 + yym3548 := z.EncBinary() + _ = yym3548 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -42942,17 +44990,17 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3377 := z.EncBinary() - _ = yym3377 + yym3549 := z.EncBinary() + _ = yym3549 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } - if yyr3368 || yy2arr3368 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3379 := z.EncBinary() - _ = yym3379 + yym3551 := z.EncBinary() + _ = yym3551 if false { } else { r.EncodeBool(bool(x.Follow)) @@ -42961,17 +45009,17 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Follow")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3380 := z.EncBinary() - _ = yym3380 + yym3552 := z.EncBinary() + _ = yym3552 if false { } else { r.EncodeBool(bool(x.Follow)) } } - if yyr3368 || yy2arr3368 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3382 := z.EncBinary() - _ = yym3382 + yym3554 := z.EncBinary() + _ = yym3554 if false { } else { r.EncodeBool(bool(x.Previous)) @@ -42980,24 +45028,24 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3383 := z.EncBinary() - _ = yym3383 + yym3555 := z.EncBinary() + _ = yym3555 if false { } else { r.EncodeBool(bool(x.Previous)) } } - if yyr3368 || yy2arr3368 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceSeconds == nil { r.EncodeNil() } else { - yy3385 := *x.SinceSeconds - yym3386 := z.EncBinary() - _ = yym3386 + yy3557 := *x.SinceSeconds + yym3558 := z.EncBinary() + _ = yym3558 if false { } else { - r.EncodeInt(int64(yy3385)) + r.EncodeInt(int64(yy3557)) } } } else { @@ -43007,27 +45055,27 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.SinceSeconds == nil { r.EncodeNil() } else { - yy3387 := *x.SinceSeconds - yym3388 := z.EncBinary() - _ = yym3388 + yy3559 := *x.SinceSeconds + yym3560 := z.EncBinary() + _ = yym3560 if false { } else { - r.EncodeInt(int64(yy3387)) + r.EncodeInt(int64(yy3559)) } } } - if yyr3368 || yy2arr3368 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceTime == nil { r.EncodeNil() } else { - yym3390 := z.EncBinary() - _ = yym3390 + yym3562 := z.EncBinary() + _ = yym3562 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym3390 { + } else if yym3562 { z.EncBinaryMarshal(x.SinceTime) - } else if !yym3390 && z.IsJSONHandle() { + } else if !yym3562 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) @@ -43040,23 +45088,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.SinceTime == nil { r.EncodeNil() } else { - yym3391 := z.EncBinary() - _ = yym3391 + yym3563 := z.EncBinary() + _ = yym3563 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym3391 { + } else if yym3563 { z.EncBinaryMarshal(x.SinceTime) - } else if !yym3391 && z.IsJSONHandle() { + } else if !yym3563 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) } } } - if yyr3368 || yy2arr3368 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3393 := z.EncBinary() - _ = yym3393 + yym3565 := z.EncBinary() + _ = yym3565 if false { } else { r.EncodeBool(bool(x.Timestamps)) @@ -43065,24 +45113,24 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3394 := z.EncBinary() - _ = yym3394 + yym3566 := z.EncBinary() + _ = yym3566 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } - if yyr3368 || yy2arr3368 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TailLines == nil { r.EncodeNil() } else { - yy3396 := *x.TailLines - yym3397 := z.EncBinary() - _ = yym3397 + yy3568 := *x.TailLines + yym3569 := z.EncBinary() + _ = yym3569 if false { } else { - r.EncodeInt(int64(yy3396)) + r.EncodeInt(int64(yy3568)) } } } else { @@ -43092,26 +45140,26 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.TailLines == nil { r.EncodeNil() } else { - yy3398 := *x.TailLines - yym3399 := z.EncBinary() - _ = yym3399 + yy3570 := *x.TailLines + yym3571 := z.EncBinary() + _ = yym3571 if false { } else { - r.EncodeInt(int64(yy3398)) + r.EncodeInt(int64(yy3570)) } } } - if yyr3368 || yy2arr3368 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LimitBytes == nil { r.EncodeNil() } else { - yy3401 := *x.LimitBytes - yym3402 := z.EncBinary() - _ = yym3402 + yy3573 := *x.LimitBytes + yym3574 := z.EncBinary() + _ = yym3574 if false { } else { - r.EncodeInt(int64(yy3401)) + r.EncodeInt(int64(yy3573)) } } } else { @@ -43121,16 +45169,16 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.LimitBytes == nil { r.EncodeNil() } else { - yy3403 := *x.LimitBytes - yym3404 := z.EncBinary() - _ = yym3404 + yy3575 := *x.LimitBytes + yym3576 := z.EncBinary() + _ = yym3576 if false { } else { - r.EncodeInt(int64(yy3403)) + r.EncodeInt(int64(yy3575)) } } } - if yyr3368 || yy2arr3368 { + if yyr3540 || yy2arr3540 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43143,25 +45191,25 @@ func (x *PodLogOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3405 := z.DecBinary() - _ = yym3405 + yym3577 := z.DecBinary() + _ = yym3577 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3406 := r.ContainerType() - if yyct3406 == codecSelferValueTypeMap1234 { - yyl3406 := r.ReadMapStart() - if yyl3406 == 0 { + yyct3578 := r.ContainerType() + if yyct3578 == codecSelferValueTypeMap1234 { + yyl3578 := r.ReadMapStart() + if yyl3578 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3406, d) + x.codecDecodeSelfFromMap(yyl3578, d) } - } else if yyct3406 == codecSelferValueTypeArray1234 { - yyl3406 := r.ReadArrayStart() - if yyl3406 == 0 { + } else if yyct3578 == codecSelferValueTypeArray1234 { + yyl3578 := r.ReadArrayStart() + if yyl3578 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3406, d) + x.codecDecodeSelfFromArray(yyl3578, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43173,12 +45221,12 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3407Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3407Slc - var yyhl3407 bool = l >= 0 - for yyj3407 := 0; ; yyj3407++ { - if yyhl3407 { - if yyj3407 >= l { + var yys3579Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3579Slc + var yyhl3579 bool = l >= 0 + for yyj3579 := 0; ; yyj3579++ { + if yyhl3579 { + if yyj3579 >= l { break } } else { @@ -43187,10 +45235,10 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3407Slc = r.DecodeBytes(yys3407Slc, true, true) - yys3407 := string(yys3407Slc) + yys3579Slc = r.DecodeBytes(yys3579Slc, true, true) + yys3579 := string(yys3579Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3407 { + switch yys3579 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -43230,8 +45278,8 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } - yym3414 := z.DecBinary() - _ = yym3414 + yym3586 := z.DecBinary() + _ = yym3586 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) @@ -43246,13 +45294,13 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.SinceTime == nil { x.SinceTime = new(pkg2_unversioned.Time) } - yym3416 := z.DecBinary() - _ = yym3416 + yym3588 := z.DecBinary() + _ = yym3588 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym3416 { + } else if yym3588 { z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym3416 && z.IsJSONHandle() { + } else if !yym3588 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) @@ -43273,8 +45321,8 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TailLines == nil { x.TailLines = new(int64) } - yym3419 := z.DecBinary() - _ = yym3419 + yym3591 := z.DecBinary() + _ = yym3591 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) @@ -43289,17 +45337,17 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.LimitBytes == nil { x.LimitBytes = new(int64) } - yym3421 := z.DecBinary() - _ = yym3421 + yym3593 := z.DecBinary() + _ = yym3593 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys3407) - } // end switch yys3407 - } // end for yyj3407 + z.DecStructFieldNotFound(-1, yys3579) + } // end switch yys3579 + } // end for yyj3579 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43307,16 +45355,16 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3422 int - var yyb3422 bool - var yyhl3422 bool = l >= 0 - yyj3422++ - if yyhl3422 { - yyb3422 = yyj3422 > l + var yyj3594 int + var yyb3594 bool + var yyhl3594 bool = l >= 0 + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb3422 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb3422 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43326,13 +45374,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3422++ - if yyhl3422 { - yyb3422 = yyj3422 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb3422 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb3422 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43342,13 +45390,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3422++ - if yyhl3422 { - yyb3422 = yyj3422 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb3422 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb3422 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43358,13 +45406,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Container = string(r.DecodeString()) } - yyj3422++ - if yyhl3422 { - yyb3422 = yyj3422 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb3422 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb3422 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43374,13 +45422,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Follow = bool(r.DecodeBool()) } - yyj3422++ - if yyhl3422 { - yyb3422 = yyj3422 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb3422 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb3422 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43390,13 +45438,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Previous = bool(r.DecodeBool()) } - yyj3422++ - if yyhl3422 { - yyb3422 = yyj3422 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb3422 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb3422 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43409,20 +45457,20 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } - yym3429 := z.DecBinary() - _ = yym3429 + yym3601 := z.DecBinary() + _ = yym3601 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } - yyj3422++ - if yyhl3422 { - yyb3422 = yyj3422 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb3422 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb3422 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43435,25 +45483,25 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.SinceTime == nil { x.SinceTime = new(pkg2_unversioned.Time) } - yym3431 := z.DecBinary() - _ = yym3431 + yym3603 := z.DecBinary() + _ = yym3603 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym3431 { + } else if yym3603 { z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym3431 && z.IsJSONHandle() { + } else if !yym3603 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } - yyj3422++ - if yyhl3422 { - yyb3422 = yyj3422 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb3422 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb3422 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43463,13 +45511,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Timestamps = bool(r.DecodeBool()) } - yyj3422++ - if yyhl3422 { - yyb3422 = yyj3422 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb3422 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb3422 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43482,20 +45530,20 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TailLines == nil { x.TailLines = new(int64) } - yym3434 := z.DecBinary() - _ = yym3434 + yym3606 := z.DecBinary() + _ = yym3606 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } - yyj3422++ - if yyhl3422 { - yyb3422 = yyj3422 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb3422 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb3422 { + if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43508,25 +45556,25 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.LimitBytes == nil { x.LimitBytes = new(int64) } - yym3436 := z.DecBinary() - _ = yym3436 + yym3608 := z.DecBinary() + _ = yym3608 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } for { - yyj3422++ - if yyhl3422 { - yyb3422 = yyj3422 > l + yyj3594++ + if yyhl3594 { + yyb3594 = yyj3594 > l } else { - yyb3422 = r.CheckBreak() + yyb3594 = r.CheckBreak() } - if yyb3422 { + if yyb3594 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3422-1, "") + z.DecStructFieldNotFound(yyj3594-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43538,41 +45586,41 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3437 := z.EncBinary() - _ = yym3437 + yym3609 := z.EncBinary() + _ = yym3609 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3438 := !z.EncBinary() - yy2arr3438 := z.EncBasicHandle().StructToArray - var yyq3438 [7]bool - _, _, _ = yysep3438, yyq3438, yy2arr3438 - const yyr3438 bool = false - yyq3438[0] = x.Kind != "" - yyq3438[1] = x.APIVersion != "" - yyq3438[2] = x.Stdin != false - yyq3438[3] = x.Stdout != false - yyq3438[4] = x.Stderr != false - yyq3438[5] = x.TTY != false - yyq3438[6] = x.Container != "" - var yynn3438 int - if yyr3438 || yy2arr3438 { + yysep3610 := !z.EncBinary() + yy2arr3610 := z.EncBasicHandle().StructToArray + var yyq3610 [7]bool + _, _, _ = yysep3610, yyq3610, yy2arr3610 + const yyr3610 bool = false + yyq3610[0] = x.Kind != "" + yyq3610[1] = x.APIVersion != "" + yyq3610[2] = x.Stdin != false + yyq3610[3] = x.Stdout != false + yyq3610[4] = x.Stderr != false + yyq3610[5] = x.TTY != false + yyq3610[6] = x.Container != "" + var yynn3610 int + if yyr3610 || yy2arr3610 { r.EncodeArrayStart(7) } else { - yynn3438 = 0 - for _, b := range yyq3438 { + yynn3610 = 0 + for _, b := range yyq3610 { if b { - yynn3438++ + yynn3610++ } } - r.EncodeMapStart(yynn3438) - yynn3438 = 0 + r.EncodeMapStart(yynn3610) + yynn3610 = 0 } - if yyr3438 || yy2arr3438 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3438[0] { - yym3440 := z.EncBinary() - _ = yym3440 + if yyq3610[0] { + yym3612 := z.EncBinary() + _ = yym3612 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -43581,23 +45629,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3438[0] { + if yyq3610[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3441 := z.EncBinary() - _ = yym3441 + yym3613 := z.EncBinary() + _ = yym3613 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3438 || yy2arr3438 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3438[1] { - yym3443 := z.EncBinary() - _ = yym3443 + if yyq3610[1] { + yym3615 := z.EncBinary() + _ = yym3615 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -43606,23 +45654,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3438[1] { + if yyq3610[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3444 := z.EncBinary() - _ = yym3444 + yym3616 := z.EncBinary() + _ = yym3616 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3438 || yy2arr3438 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3438[2] { - yym3446 := z.EncBinary() - _ = yym3446 + if yyq3610[2] { + yym3618 := z.EncBinary() + _ = yym3618 if false { } else { r.EncodeBool(bool(x.Stdin)) @@ -43631,23 +45679,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3438[2] { + if yyq3610[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3447 := z.EncBinary() - _ = yym3447 + yym3619 := z.EncBinary() + _ = yym3619 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } - if yyr3438 || yy2arr3438 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3438[3] { - yym3449 := z.EncBinary() - _ = yym3449 + if yyq3610[3] { + yym3621 := z.EncBinary() + _ = yym3621 if false { } else { r.EncodeBool(bool(x.Stdout)) @@ -43656,23 +45704,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3438[3] { + if yyq3610[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3450 := z.EncBinary() - _ = yym3450 + yym3622 := z.EncBinary() + _ = yym3622 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } - if yyr3438 || yy2arr3438 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3438[4] { - yym3452 := z.EncBinary() - _ = yym3452 + if yyq3610[4] { + yym3624 := z.EncBinary() + _ = yym3624 if false { } else { r.EncodeBool(bool(x.Stderr)) @@ -43681,23 +45729,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3438[4] { + if yyq3610[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3453 := z.EncBinary() - _ = yym3453 + yym3625 := z.EncBinary() + _ = yym3625 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } - if yyr3438 || yy2arr3438 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3438[5] { - yym3455 := z.EncBinary() - _ = yym3455 + if yyq3610[5] { + yym3627 := z.EncBinary() + _ = yym3627 if false { } else { r.EncodeBool(bool(x.TTY)) @@ -43706,23 +45754,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3438[5] { + if yyq3610[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3456 := z.EncBinary() - _ = yym3456 + yym3628 := z.EncBinary() + _ = yym3628 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr3438 || yy2arr3438 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3438[6] { - yym3458 := z.EncBinary() - _ = yym3458 + if yyq3610[6] { + yym3630 := z.EncBinary() + _ = yym3630 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -43731,19 +45779,19 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3438[6] { + if yyq3610[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3459 := z.EncBinary() - _ = yym3459 + yym3631 := z.EncBinary() + _ = yym3631 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } - if yyr3438 || yy2arr3438 { + if yyr3610 || yy2arr3610 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43756,25 +45804,25 @@ func (x *PodAttachOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3460 := z.DecBinary() - _ = yym3460 + yym3632 := z.DecBinary() + _ = yym3632 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3461 := r.ContainerType() - if yyct3461 == codecSelferValueTypeMap1234 { - yyl3461 := r.ReadMapStart() - if yyl3461 == 0 { + yyct3633 := r.ContainerType() + if yyct3633 == codecSelferValueTypeMap1234 { + yyl3633 := r.ReadMapStart() + if yyl3633 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3461, d) + x.codecDecodeSelfFromMap(yyl3633, d) } - } else if yyct3461 == codecSelferValueTypeArray1234 { - yyl3461 := r.ReadArrayStart() - if yyl3461 == 0 { + } else if yyct3633 == codecSelferValueTypeArray1234 { + yyl3633 := r.ReadArrayStart() + if yyl3633 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3461, d) + x.codecDecodeSelfFromArray(yyl3633, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43786,12 +45834,12 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3462Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3462Slc - var yyhl3462 bool = l >= 0 - for yyj3462 := 0; ; yyj3462++ { - if yyhl3462 { - if yyj3462 >= l { + var yys3634Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3634Slc + var yyhl3634 bool = l >= 0 + for yyj3634 := 0; ; yyj3634++ { + if yyhl3634 { + if yyj3634 >= l { break } } else { @@ -43800,10 +45848,10 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3462Slc = r.DecodeBytes(yys3462Slc, true, true) - yys3462 := string(yys3462Slc) + yys3634Slc = r.DecodeBytes(yys3634Slc, true, true) + yys3634 := string(yys3634Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3462 { + switch yys3634 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -43847,9 +45895,9 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Container = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3462) - } // end switch yys3462 - } // end for yyj3462 + z.DecStructFieldNotFound(-1, yys3634) + } // end switch yys3634 + } // end for yyj3634 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43857,16 +45905,16 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3470 int - var yyb3470 bool - var yyhl3470 bool = l >= 0 - yyj3470++ - if yyhl3470 { - yyb3470 = yyj3470 > l + var yyj3642 int + var yyb3642 bool + var yyhl3642 bool = l >= 0 + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l } else { - yyb3470 = r.CheckBreak() + yyb3642 = r.CheckBreak() } - if yyb3470 { + if yyb3642 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43876,13 +45924,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3470++ - if yyhl3470 { - yyb3470 = yyj3470 > l + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l } else { - yyb3470 = r.CheckBreak() + yyb3642 = r.CheckBreak() } - if yyb3470 { + if yyb3642 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43892,13 +45940,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3470++ - if yyhl3470 { - yyb3470 = yyj3470 > l + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l } else { - yyb3470 = r.CheckBreak() + yyb3642 = r.CheckBreak() } - if yyb3470 { + if yyb3642 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43908,13 +45956,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stdin = bool(r.DecodeBool()) } - yyj3470++ - if yyhl3470 { - yyb3470 = yyj3470 > l + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l } else { - yyb3470 = r.CheckBreak() + yyb3642 = r.CheckBreak() } - if yyb3470 { + if yyb3642 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43924,13 +45972,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stdout = bool(r.DecodeBool()) } - yyj3470++ - if yyhl3470 { - yyb3470 = yyj3470 > l + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l } else { - yyb3470 = r.CheckBreak() + yyb3642 = r.CheckBreak() } - if yyb3470 { + if yyb3642 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43940,13 +45988,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stderr = bool(r.DecodeBool()) } - yyj3470++ - if yyhl3470 { - yyb3470 = yyj3470 > l + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l } else { - yyb3470 = r.CheckBreak() + yyb3642 = r.CheckBreak() } - if yyb3470 { + if yyb3642 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43956,13 +46004,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.TTY = bool(r.DecodeBool()) } - yyj3470++ - if yyhl3470 { - yyb3470 = yyj3470 > l + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l } else { - yyb3470 = r.CheckBreak() + yyb3642 = r.CheckBreak() } - if yyb3470 { + if yyb3642 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43973,17 +46021,17 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Container = string(r.DecodeString()) } for { - yyj3470++ - if yyhl3470 { - yyb3470 = yyj3470 > l + yyj3642++ + if yyhl3642 { + yyb3642 = yyj3642 > l } else { - yyb3470 = r.CheckBreak() + yyb3642 = r.CheckBreak() } - if yyb3470 { + if yyb3642 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3470-1, "") + z.DecStructFieldNotFound(yyj3642-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43995,36 +46043,36 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3478 := z.EncBinary() - _ = yym3478 + yym3650 := z.EncBinary() + _ = yym3650 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3479 := !z.EncBinary() - yy2arr3479 := z.EncBasicHandle().StructToArray - var yyq3479 [8]bool - _, _, _ = yysep3479, yyq3479, yy2arr3479 - const yyr3479 bool = false - yyq3479[0] = x.Kind != "" - yyq3479[1] = x.APIVersion != "" - var yynn3479 int - if yyr3479 || yy2arr3479 { + yysep3651 := !z.EncBinary() + yy2arr3651 := z.EncBasicHandle().StructToArray + var yyq3651 [8]bool + _, _, _ = yysep3651, yyq3651, yy2arr3651 + const yyr3651 bool = false + yyq3651[0] = x.Kind != "" + yyq3651[1] = x.APIVersion != "" + var yynn3651 int + if yyr3651 || yy2arr3651 { r.EncodeArrayStart(8) } else { - yynn3479 = 6 - for _, b := range yyq3479 { + yynn3651 = 6 + for _, b := range yyq3651 { if b { - yynn3479++ + yynn3651++ } } - r.EncodeMapStart(yynn3479) - yynn3479 = 0 + r.EncodeMapStart(yynn3651) + yynn3651 = 0 } - if yyr3479 || yy2arr3479 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3479[0] { - yym3481 := z.EncBinary() - _ = yym3481 + if yyq3651[0] { + yym3653 := z.EncBinary() + _ = yym3653 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44033,23 +46081,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3479[0] { + if yyq3651[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3482 := z.EncBinary() - _ = yym3482 + yym3654 := z.EncBinary() + _ = yym3654 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3479 || yy2arr3479 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3479[1] { - yym3484 := z.EncBinary() - _ = yym3484 + if yyq3651[1] { + yym3656 := z.EncBinary() + _ = yym3656 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44058,22 +46106,22 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3479[1] { + if yyq3651[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3485 := z.EncBinary() - _ = yym3485 + yym3657 := z.EncBinary() + _ = yym3657 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3479 || yy2arr3479 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3487 := z.EncBinary() - _ = yym3487 + yym3659 := z.EncBinary() + _ = yym3659 if false { } else { r.EncodeBool(bool(x.Stdin)) @@ -44082,17 +46130,17 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3488 := z.EncBinary() - _ = yym3488 + yym3660 := z.EncBinary() + _ = yym3660 if false { } else { r.EncodeBool(bool(x.Stdin)) } } - if yyr3479 || yy2arr3479 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3490 := z.EncBinary() - _ = yym3490 + yym3662 := z.EncBinary() + _ = yym3662 if false { } else { r.EncodeBool(bool(x.Stdout)) @@ -44101,17 +46149,17 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3491 := z.EncBinary() - _ = yym3491 + yym3663 := z.EncBinary() + _ = yym3663 if false { } else { r.EncodeBool(bool(x.Stdout)) } } - if yyr3479 || yy2arr3479 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3493 := z.EncBinary() - _ = yym3493 + yym3665 := z.EncBinary() + _ = yym3665 if false { } else { r.EncodeBool(bool(x.Stderr)) @@ -44120,17 +46168,17 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3494 := z.EncBinary() - _ = yym3494 + yym3666 := z.EncBinary() + _ = yym3666 if false { } else { r.EncodeBool(bool(x.Stderr)) } } - if yyr3479 || yy2arr3479 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3496 := z.EncBinary() - _ = yym3496 + yym3668 := z.EncBinary() + _ = yym3668 if false { } else { r.EncodeBool(bool(x.TTY)) @@ -44139,17 +46187,17 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TTY")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3497 := z.EncBinary() - _ = yym3497 + yym3669 := z.EncBinary() + _ = yym3669 if false { } else { r.EncodeBool(bool(x.TTY)) } } - if yyr3479 || yy2arr3479 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3499 := z.EncBinary() - _ = yym3499 + yym3671 := z.EncBinary() + _ = yym3671 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -44158,20 +46206,20 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3500 := z.EncBinary() - _ = yym3500 + yym3672 := z.EncBinary() + _ = yym3672 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } - if yyr3479 || yy2arr3479 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { - yym3502 := z.EncBinary() - _ = yym3502 + yym3674 := z.EncBinary() + _ = yym3674 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -44184,15 +46232,15 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.Command == nil { r.EncodeNil() } else { - yym3503 := z.EncBinary() - _ = yym3503 + yym3675 := z.EncBinary() + _ = yym3675 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } - if yyr3479 || yy2arr3479 { + if yyr3651 || yy2arr3651 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44205,25 +46253,25 @@ func (x *PodExecOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3504 := z.DecBinary() - _ = yym3504 + yym3676 := z.DecBinary() + _ = yym3676 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3505 := r.ContainerType() - if yyct3505 == codecSelferValueTypeMap1234 { - yyl3505 := r.ReadMapStart() - if yyl3505 == 0 { + yyct3677 := r.ContainerType() + if yyct3677 == codecSelferValueTypeMap1234 { + yyl3677 := r.ReadMapStart() + if yyl3677 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3505, d) + x.codecDecodeSelfFromMap(yyl3677, d) } - } else if yyct3505 == codecSelferValueTypeArray1234 { - yyl3505 := r.ReadArrayStart() - if yyl3505 == 0 { + } else if yyct3677 == codecSelferValueTypeArray1234 { + yyl3677 := r.ReadArrayStart() + if yyl3677 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3505, d) + x.codecDecodeSelfFromArray(yyl3677, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44235,12 +46283,12 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3506Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3506Slc - var yyhl3506 bool = l >= 0 - for yyj3506 := 0; ; yyj3506++ { - if yyhl3506 { - if yyj3506 >= l { + var yys3678Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3678Slc + var yyhl3678 bool = l >= 0 + for yyj3678 := 0; ; yyj3678++ { + if yyhl3678 { + if yyj3678 >= l { break } } else { @@ -44249,10 +46297,10 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3506Slc = r.DecodeBytes(yys3506Slc, true, true) - yys3506 := string(yys3506Slc) + yys3678Slc = r.DecodeBytes(yys3678Slc, true, true) + yys3678 := string(yys3678Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3506 { + switch yys3678 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44299,18 +46347,18 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv3514 := &x.Command - yym3515 := z.DecBinary() - _ = yym3515 + yyv3686 := &x.Command + yym3687 := z.DecBinary() + _ = yym3687 if false { } else { - z.F.DecSliceStringX(yyv3514, false, d) + z.F.DecSliceStringX(yyv3686, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3506) - } // end switch yys3506 - } // end for yyj3506 + z.DecStructFieldNotFound(-1, yys3678) + } // end switch yys3678 + } // end for yyj3678 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44318,16 +46366,16 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3516 int - var yyb3516 bool - var yyhl3516 bool = l >= 0 - yyj3516++ - if yyhl3516 { - yyb3516 = yyj3516 > l + var yyj3688 int + var yyb3688 bool + var yyhl3688 bool = l >= 0 + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb3516 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb3516 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44337,13 +46385,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3516++ - if yyhl3516 { - yyb3516 = yyj3516 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb3516 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb3516 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44353,13 +46401,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3516++ - if yyhl3516 { - yyb3516 = yyj3516 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb3516 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb3516 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44369,13 +46417,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stdin = bool(r.DecodeBool()) } - yyj3516++ - if yyhl3516 { - yyb3516 = yyj3516 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb3516 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb3516 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44385,13 +46433,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stdout = bool(r.DecodeBool()) } - yyj3516++ - if yyhl3516 { - yyb3516 = yyj3516 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb3516 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb3516 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44401,13 +46449,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stderr = bool(r.DecodeBool()) } - yyj3516++ - if yyhl3516 { - yyb3516 = yyj3516 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb3516 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb3516 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44417,13 +46465,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.TTY = bool(r.DecodeBool()) } - yyj3516++ - if yyhl3516 { - yyb3516 = yyj3516 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb3516 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb3516 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44433,13 +46481,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Container = string(r.DecodeString()) } - yyj3516++ - if yyhl3516 { - yyb3516 = yyj3516 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb3516 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb3516 { + if yyb3688 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44447,26 +46495,26 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv3524 := &x.Command - yym3525 := z.DecBinary() - _ = yym3525 + yyv3696 := &x.Command + yym3697 := z.DecBinary() + _ = yym3697 if false { } else { - z.F.DecSliceStringX(yyv3524, false, d) + z.F.DecSliceStringX(yyv3696, false, d) } } for { - yyj3516++ - if yyhl3516 { - yyb3516 = yyj3516 > l + yyj3688++ + if yyhl3688 { + yyb3688 = yyj3688 > l } else { - yyb3516 = r.CheckBreak() + yyb3688 = r.CheckBreak() } - if yyb3516 { + if yyb3688 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3516-1, "") + z.DecStructFieldNotFound(yyj3688-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44478,36 +46526,36 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3526 := z.EncBinary() - _ = yym3526 + yym3698 := z.EncBinary() + _ = yym3698 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3527 := !z.EncBinary() - yy2arr3527 := z.EncBasicHandle().StructToArray - var yyq3527 [3]bool - _, _, _ = yysep3527, yyq3527, yy2arr3527 - const yyr3527 bool = false - yyq3527[0] = x.Kind != "" - yyq3527[1] = x.APIVersion != "" - var yynn3527 int - if yyr3527 || yy2arr3527 { + yysep3699 := !z.EncBinary() + yy2arr3699 := z.EncBasicHandle().StructToArray + var yyq3699 [3]bool + _, _, _ = yysep3699, yyq3699, yy2arr3699 + const yyr3699 bool = false + yyq3699[0] = x.Kind != "" + yyq3699[1] = x.APIVersion != "" + var yynn3699 int + if yyr3699 || yy2arr3699 { r.EncodeArrayStart(3) } else { - yynn3527 = 1 - for _, b := range yyq3527 { + yynn3699 = 1 + for _, b := range yyq3699 { if b { - yynn3527++ + yynn3699++ } } - r.EncodeMapStart(yynn3527) - yynn3527 = 0 + r.EncodeMapStart(yynn3699) + yynn3699 = 0 } - if yyr3527 || yy2arr3527 { + if yyr3699 || yy2arr3699 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3527[0] { - yym3529 := z.EncBinary() - _ = yym3529 + if yyq3699[0] { + yym3701 := z.EncBinary() + _ = yym3701 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44516,23 +46564,23 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3527[0] { + if yyq3699[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3530 := z.EncBinary() - _ = yym3530 + yym3702 := z.EncBinary() + _ = yym3702 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3527 || yy2arr3527 { + if yyr3699 || yy2arr3699 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3527[1] { - yym3532 := z.EncBinary() - _ = yym3532 + if yyq3699[1] { + yym3704 := z.EncBinary() + _ = yym3704 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44541,22 +46589,22 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3527[1] { + if yyq3699[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3533 := z.EncBinary() - _ = yym3533 + yym3705 := z.EncBinary() + _ = yym3705 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3527 || yy2arr3527 { + if yyr3699 || yy2arr3699 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3535 := z.EncBinary() - _ = yym3535 + yym3707 := z.EncBinary() + _ = yym3707 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -44565,14 +46613,14 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3536 := z.EncBinary() - _ = yym3536 + yym3708 := z.EncBinary() + _ = yym3708 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr3527 || yy2arr3527 { + if yyr3699 || yy2arr3699 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44585,25 +46633,25 @@ func (x *PodProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3537 := z.DecBinary() - _ = yym3537 + yym3709 := z.DecBinary() + _ = yym3709 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3538 := r.ContainerType() - if yyct3538 == codecSelferValueTypeMap1234 { - yyl3538 := r.ReadMapStart() - if yyl3538 == 0 { + yyct3710 := r.ContainerType() + if yyct3710 == codecSelferValueTypeMap1234 { + yyl3710 := r.ReadMapStart() + if yyl3710 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3538, d) + x.codecDecodeSelfFromMap(yyl3710, d) } - } else if yyct3538 == codecSelferValueTypeArray1234 { - yyl3538 := r.ReadArrayStart() - if yyl3538 == 0 { + } else if yyct3710 == codecSelferValueTypeArray1234 { + yyl3710 := r.ReadArrayStart() + if yyl3710 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3538, d) + x.codecDecodeSelfFromArray(yyl3710, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44615,12 +46663,12 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3539Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3539Slc - var yyhl3539 bool = l >= 0 - for yyj3539 := 0; ; yyj3539++ { - if yyhl3539 { - if yyj3539 >= l { + var yys3711Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3711Slc + var yyhl3711 bool = l >= 0 + for yyj3711 := 0; ; yyj3711++ { + if yyhl3711 { + if yyj3711 >= l { break } } else { @@ -44629,10 +46677,10 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3539Slc = r.DecodeBytes(yys3539Slc, true, true) - yys3539 := string(yys3539Slc) + yys3711Slc = r.DecodeBytes(yys3711Slc, true, true) + yys3711 := string(yys3711Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3539 { + switch yys3711 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44652,9 +46700,9 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3539) - } // end switch yys3539 - } // end for yyj3539 + z.DecStructFieldNotFound(-1, yys3711) + } // end switch yys3711 + } // end for yyj3711 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44662,16 +46710,16 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3543 int - var yyb3543 bool - var yyhl3543 bool = l >= 0 - yyj3543++ - if yyhl3543 { - yyb3543 = yyj3543 > l + var yyj3715 int + var yyb3715 bool + var yyhl3715 bool = l >= 0 + yyj3715++ + if yyhl3715 { + yyb3715 = yyj3715 > l } else { - yyb3543 = r.CheckBreak() + yyb3715 = r.CheckBreak() } - if yyb3543 { + if yyb3715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44681,13 +46729,13 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3543++ - if yyhl3543 { - yyb3543 = yyj3543 > l + yyj3715++ + if yyhl3715 { + yyb3715 = yyj3715 > l } else { - yyb3543 = r.CheckBreak() + yyb3715 = r.CheckBreak() } - if yyb3543 { + if yyb3715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44697,13 +46745,13 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3543++ - if yyhl3543 { - yyb3543 = yyj3543 > l + yyj3715++ + if yyhl3715 { + yyb3715 = yyj3715 > l } else { - yyb3543 = r.CheckBreak() + yyb3715 = r.CheckBreak() } - if yyb3543 { + if yyb3715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44714,17 +46762,17 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Path = string(r.DecodeString()) } for { - yyj3543++ - if yyhl3543 { - yyb3543 = yyj3543 > l + yyj3715++ + if yyhl3715 { + yyb3715 = yyj3715 > l } else { - yyb3543 = r.CheckBreak() + yyb3715 = r.CheckBreak() } - if yyb3543 { + if yyb3715 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3543-1, "") + z.DecStructFieldNotFound(yyj3715-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44736,36 +46784,36 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3547 := z.EncBinary() - _ = yym3547 + yym3719 := z.EncBinary() + _ = yym3719 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3548 := !z.EncBinary() - yy2arr3548 := z.EncBasicHandle().StructToArray - var yyq3548 [3]bool - _, _, _ = yysep3548, yyq3548, yy2arr3548 - const yyr3548 bool = false - yyq3548[0] = x.Kind != "" - yyq3548[1] = x.APIVersion != "" - var yynn3548 int - if yyr3548 || yy2arr3548 { + yysep3720 := !z.EncBinary() + yy2arr3720 := z.EncBasicHandle().StructToArray + var yyq3720 [3]bool + _, _, _ = yysep3720, yyq3720, yy2arr3720 + const yyr3720 bool = false + yyq3720[0] = x.Kind != "" + yyq3720[1] = x.APIVersion != "" + var yynn3720 int + if yyr3720 || yy2arr3720 { r.EncodeArrayStart(3) } else { - yynn3548 = 1 - for _, b := range yyq3548 { + yynn3720 = 1 + for _, b := range yyq3720 { if b { - yynn3548++ + yynn3720++ } } - r.EncodeMapStart(yynn3548) - yynn3548 = 0 + r.EncodeMapStart(yynn3720) + yynn3720 = 0 } - if yyr3548 || yy2arr3548 { + if yyr3720 || yy2arr3720 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3548[0] { - yym3550 := z.EncBinary() - _ = yym3550 + if yyq3720[0] { + yym3722 := z.EncBinary() + _ = yym3722 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44774,23 +46822,23 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3548[0] { + if yyq3720[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3551 := z.EncBinary() - _ = yym3551 + yym3723 := z.EncBinary() + _ = yym3723 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3548 || yy2arr3548 { + if yyr3720 || yy2arr3720 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3548[1] { - yym3553 := z.EncBinary() - _ = yym3553 + if yyq3720[1] { + yym3725 := z.EncBinary() + _ = yym3725 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44799,22 +46847,22 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3548[1] { + if yyq3720[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3554 := z.EncBinary() - _ = yym3554 + yym3726 := z.EncBinary() + _ = yym3726 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3548 || yy2arr3548 { + if yyr3720 || yy2arr3720 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3556 := z.EncBinary() - _ = yym3556 + yym3728 := z.EncBinary() + _ = yym3728 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -44823,14 +46871,14 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3557 := z.EncBinary() - _ = yym3557 + yym3729 := z.EncBinary() + _ = yym3729 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr3548 || yy2arr3548 { + if yyr3720 || yy2arr3720 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44843,25 +46891,25 @@ func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3558 := z.DecBinary() - _ = yym3558 + yym3730 := z.DecBinary() + _ = yym3730 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3559 := r.ContainerType() - if yyct3559 == codecSelferValueTypeMap1234 { - yyl3559 := r.ReadMapStart() - if yyl3559 == 0 { + yyct3731 := r.ContainerType() + if yyct3731 == codecSelferValueTypeMap1234 { + yyl3731 := r.ReadMapStart() + if yyl3731 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3559, d) + x.codecDecodeSelfFromMap(yyl3731, d) } - } else if yyct3559 == codecSelferValueTypeArray1234 { - yyl3559 := r.ReadArrayStart() - if yyl3559 == 0 { + } else if yyct3731 == codecSelferValueTypeArray1234 { + yyl3731 := r.ReadArrayStart() + if yyl3731 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3559, d) + x.codecDecodeSelfFromArray(yyl3731, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44873,12 +46921,12 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3560Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3560Slc - var yyhl3560 bool = l >= 0 - for yyj3560 := 0; ; yyj3560++ { - if yyhl3560 { - if yyj3560 >= l { + var yys3732Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3732Slc + var yyhl3732 bool = l >= 0 + for yyj3732 := 0; ; yyj3732++ { + if yyhl3732 { + if yyj3732 >= l { break } } else { @@ -44887,10 +46935,10 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3560Slc = r.DecodeBytes(yys3560Slc, true, true) - yys3560 := string(yys3560Slc) + yys3732Slc = r.DecodeBytes(yys3732Slc, true, true) + yys3732 := string(yys3732Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3560 { + switch yys3732 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44910,9 +46958,9 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3560) - } // end switch yys3560 - } // end for yyj3560 + z.DecStructFieldNotFound(-1, yys3732) + } // end switch yys3732 + } // end for yyj3732 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44920,16 +46968,16 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3564 int - var yyb3564 bool - var yyhl3564 bool = l >= 0 - yyj3564++ - if yyhl3564 { - yyb3564 = yyj3564 > l + var yyj3736 int + var yyb3736 bool + var yyhl3736 bool = l >= 0 + yyj3736++ + if yyhl3736 { + yyb3736 = yyj3736 > l } else { - yyb3564 = r.CheckBreak() + yyb3736 = r.CheckBreak() } - if yyb3564 { + if yyb3736 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44939,13 +46987,13 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3564++ - if yyhl3564 { - yyb3564 = yyj3564 > l + yyj3736++ + if yyhl3736 { + yyb3736 = yyj3736 > l } else { - yyb3564 = r.CheckBreak() + yyb3736 = r.CheckBreak() } - if yyb3564 { + if yyb3736 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44955,13 +47003,13 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3564++ - if yyhl3564 { - yyb3564 = yyj3564 > l + yyj3736++ + if yyhl3736 { + yyb3736 = yyj3736 > l } else { - yyb3564 = r.CheckBreak() + yyb3736 = r.CheckBreak() } - if yyb3564 { + if yyb3736 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44972,17 +47020,17 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Path = string(r.DecodeString()) } for { - yyj3564++ - if yyhl3564 { - yyb3564 = yyj3564 > l + yyj3736++ + if yyhl3736 { + yyb3736 = yyj3736 > l } else { - yyb3564 = r.CheckBreak() + yyb3736 = r.CheckBreak() } - if yyb3564 { + if yyb3736 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3564-1, "") + z.DecStructFieldNotFound(yyj3736-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44994,36 +47042,36 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3568 := z.EncBinary() - _ = yym3568 + yym3740 := z.EncBinary() + _ = yym3740 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3569 := !z.EncBinary() - yy2arr3569 := z.EncBasicHandle().StructToArray - var yyq3569 [3]bool - _, _, _ = yysep3569, yyq3569, yy2arr3569 - const yyr3569 bool = false - yyq3569[0] = x.Kind != "" - yyq3569[1] = x.APIVersion != "" - var yynn3569 int - if yyr3569 || yy2arr3569 { + yysep3741 := !z.EncBinary() + yy2arr3741 := z.EncBasicHandle().StructToArray + var yyq3741 [3]bool + _, _, _ = yysep3741, yyq3741, yy2arr3741 + const yyr3741 bool = false + yyq3741[0] = x.Kind != "" + yyq3741[1] = x.APIVersion != "" + var yynn3741 int + if yyr3741 || yy2arr3741 { r.EncodeArrayStart(3) } else { - yynn3569 = 1 - for _, b := range yyq3569 { + yynn3741 = 1 + for _, b := range yyq3741 { if b { - yynn3569++ + yynn3741++ } } - r.EncodeMapStart(yynn3569) - yynn3569 = 0 + r.EncodeMapStart(yynn3741) + yynn3741 = 0 } - if yyr3569 || yy2arr3569 { + if yyr3741 || yy2arr3741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3569[0] { - yym3571 := z.EncBinary() - _ = yym3571 + if yyq3741[0] { + yym3743 := z.EncBinary() + _ = yym3743 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -45032,23 +47080,23 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3569[0] { + if yyq3741[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3572 := z.EncBinary() - _ = yym3572 + yym3744 := z.EncBinary() + _ = yym3744 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3569 || yy2arr3569 { + if yyr3741 || yy2arr3741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3569[1] { - yym3574 := z.EncBinary() - _ = yym3574 + if yyq3741[1] { + yym3746 := z.EncBinary() + _ = yym3746 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -45057,22 +47105,22 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3569[1] { + if yyq3741[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3575 := z.EncBinary() - _ = yym3575 + yym3747 := z.EncBinary() + _ = yym3747 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3569 || yy2arr3569 { + if yyr3741 || yy2arr3741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3577 := z.EncBinary() - _ = yym3577 + yym3749 := z.EncBinary() + _ = yym3749 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -45081,14 +47129,14 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3578 := z.EncBinary() - _ = yym3578 + yym3750 := z.EncBinary() + _ = yym3750 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr3569 || yy2arr3569 { + if yyr3741 || yy2arr3741 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45101,25 +47149,25 @@ func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3579 := z.DecBinary() - _ = yym3579 + yym3751 := z.DecBinary() + _ = yym3751 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3580 := r.ContainerType() - if yyct3580 == codecSelferValueTypeMap1234 { - yyl3580 := r.ReadMapStart() - if yyl3580 == 0 { + yyct3752 := r.ContainerType() + if yyct3752 == codecSelferValueTypeMap1234 { + yyl3752 := r.ReadMapStart() + if yyl3752 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3580, d) + x.codecDecodeSelfFromMap(yyl3752, d) } - } else if yyct3580 == codecSelferValueTypeArray1234 { - yyl3580 := r.ReadArrayStart() - if yyl3580 == 0 { + } else if yyct3752 == codecSelferValueTypeArray1234 { + yyl3752 := r.ReadArrayStart() + if yyl3752 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3580, d) + x.codecDecodeSelfFromArray(yyl3752, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45131,12 +47179,12 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3581Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3581Slc - var yyhl3581 bool = l >= 0 - for yyj3581 := 0; ; yyj3581++ { - if yyhl3581 { - if yyj3581 >= l { + var yys3753Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3753Slc + var yyhl3753 bool = l >= 0 + for yyj3753 := 0; ; yyj3753++ { + if yyhl3753 { + if yyj3753 >= l { break } } else { @@ -45145,10 +47193,10 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3581Slc = r.DecodeBytes(yys3581Slc, true, true) - yys3581 := string(yys3581Slc) + yys3753Slc = r.DecodeBytes(yys3753Slc, true, true) + yys3753 := string(yys3753Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3581 { + switch yys3753 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -45168,9 +47216,9 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3581) - } // end switch yys3581 - } // end for yyj3581 + z.DecStructFieldNotFound(-1, yys3753) + } // end switch yys3753 + } // end for yyj3753 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45178,16 +47226,16 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3585 int - var yyb3585 bool - var yyhl3585 bool = l >= 0 - yyj3585++ - if yyhl3585 { - yyb3585 = yyj3585 > l + var yyj3757 int + var yyb3757 bool + var yyhl3757 bool = l >= 0 + yyj3757++ + if yyhl3757 { + yyb3757 = yyj3757 > l } else { - yyb3585 = r.CheckBreak() + yyb3757 = r.CheckBreak() } - if yyb3585 { + if yyb3757 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45197,13 +47245,13 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj3585++ - if yyhl3585 { - yyb3585 = yyj3585 > l + yyj3757++ + if yyhl3757 { + yyb3757 = yyj3757 > l } else { - yyb3585 = r.CheckBreak() + yyb3757 = r.CheckBreak() } - if yyb3585 { + if yyb3757 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45213,13 +47261,13 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj3585++ - if yyhl3585 { - yyb3585 = yyj3585 > l + yyj3757++ + if yyhl3757 { + yyb3757 = yyj3757 > l } else { - yyb3585 = r.CheckBreak() + yyb3757 = r.CheckBreak() } - if yyb3585 { + if yyb3757 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45230,17 +47278,17 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Path = string(r.DecodeString()) } for { - yyj3585++ - if yyhl3585 { - yyb3585 = yyj3585 > l + yyj3757++ + if yyhl3757 { + yyb3757 = yyj3757 > l } else { - yyb3585 = r.CheckBreak() + yyb3757 = r.CheckBreak() } - if yyb3585 { + if yyb3757 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3585-1, "") + z.DecStructFieldNotFound(yyj3757-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45252,34 +47300,34 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3589 := z.EncBinary() - _ = yym3589 + yym3761 := z.EncBinary() + _ = yym3761 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3590 := !z.EncBinary() - yy2arr3590 := z.EncBasicHandle().StructToArray - var yyq3590 [5]bool - _, _, _ = yysep3590, yyq3590, yy2arr3590 - const yyr3590 bool = false - yyq3590[4] = x.Controller != nil - var yynn3590 int - if yyr3590 || yy2arr3590 { + yysep3762 := !z.EncBinary() + yy2arr3762 := z.EncBasicHandle().StructToArray + var yyq3762 [5]bool + _, _, _ = yysep3762, yyq3762, yy2arr3762 + const yyr3762 bool = false + yyq3762[4] = x.Controller != nil + var yynn3762 int + if yyr3762 || yy2arr3762 { r.EncodeArrayStart(5) } else { - yynn3590 = 4 - for _, b := range yyq3590 { + yynn3762 = 4 + for _, b := range yyq3762 { if b { - yynn3590++ + yynn3762++ } } - r.EncodeMapStart(yynn3590) - yynn3590 = 0 + r.EncodeMapStart(yynn3762) + yynn3762 = 0 } - if yyr3590 || yy2arr3590 { + if yyr3762 || yy2arr3762 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3592 := z.EncBinary() - _ = yym3592 + yym3764 := z.EncBinary() + _ = yym3764 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -45288,17 +47336,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3593 := z.EncBinary() - _ = yym3593 + yym3765 := z.EncBinary() + _ = yym3765 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } - if yyr3590 || yy2arr3590 { + if yyr3762 || yy2arr3762 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3595 := z.EncBinary() - _ = yym3595 + yym3767 := z.EncBinary() + _ = yym3767 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -45307,17 +47355,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3596 := z.EncBinary() - _ = yym3596 + yym3768 := z.EncBinary() + _ = yym3768 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } - if yyr3590 || yy2arr3590 { + if yyr3762 || yy2arr3762 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3598 := z.EncBinary() - _ = yym3598 + yym3770 := z.EncBinary() + _ = yym3770 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -45326,17 +47374,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3599 := z.EncBinary() - _ = yym3599 + yym3771 := z.EncBinary() + _ = yym3771 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr3590 || yy2arr3590 { + if yyr3762 || yy2arr3762 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3601 := z.EncBinary() - _ = yym3601 + yym3773 := z.EncBinary() + _ = yym3773 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -45346,50 +47394,50 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3602 := z.EncBinary() - _ = yym3602 + yym3774 := z.EncBinary() + _ = yym3774 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } - if yyr3590 || yy2arr3590 { + if yyr3762 || yy2arr3762 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3590[4] { + if yyq3762[4] { if x.Controller == nil { r.EncodeNil() } else { - yy3604 := *x.Controller - yym3605 := z.EncBinary() - _ = yym3605 + yy3776 := *x.Controller + yym3777 := z.EncBinary() + _ = yym3777 if false { } else { - r.EncodeBool(bool(yy3604)) + r.EncodeBool(bool(yy3776)) } } } else { r.EncodeNil() } } else { - if yyq3590[4] { + if yyq3762[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("controller")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Controller == nil { r.EncodeNil() } else { - yy3606 := *x.Controller - yym3607 := z.EncBinary() - _ = yym3607 + yy3778 := *x.Controller + yym3779 := z.EncBinary() + _ = yym3779 if false { } else { - r.EncodeBool(bool(yy3606)) + r.EncodeBool(bool(yy3778)) } } } } - if yyr3590 || yy2arr3590 { + if yyr3762 || yy2arr3762 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45402,25 +47450,25 @@ func (x *OwnerReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3608 := z.DecBinary() - _ = yym3608 + yym3780 := z.DecBinary() + _ = yym3780 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3609 := r.ContainerType() - if yyct3609 == codecSelferValueTypeMap1234 { - yyl3609 := r.ReadMapStart() - if yyl3609 == 0 { + yyct3781 := r.ContainerType() + if yyct3781 == codecSelferValueTypeMap1234 { + yyl3781 := r.ReadMapStart() + if yyl3781 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3609, d) + x.codecDecodeSelfFromMap(yyl3781, d) } - } else if yyct3609 == codecSelferValueTypeArray1234 { - yyl3609 := r.ReadArrayStart() - if yyl3609 == 0 { + } else if yyct3781 == codecSelferValueTypeArray1234 { + yyl3781 := r.ReadArrayStart() + if yyl3781 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3609, d) + x.codecDecodeSelfFromArray(yyl3781, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45432,12 +47480,12 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3610Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3610Slc - var yyhl3610 bool = l >= 0 - for yyj3610 := 0; ; yyj3610++ { - if yyhl3610 { - if yyj3610 >= l { + var yys3782Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3782Slc + var yyhl3782 bool = l >= 0 + for yyj3782 := 0; ; yyj3782++ { + if yyhl3782 { + if yyj3782 >= l { break } } else { @@ -45446,10 +47494,10 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3610Slc = r.DecodeBytes(yys3610Slc, true, true) - yys3610 := string(yys3610Slc) + yys3782Slc = r.DecodeBytes(yys3782Slc, true, true) + yys3782 := string(yys3782Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3610 { + switch yys3782 { case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" @@ -45483,17 +47531,17 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Controller == nil { x.Controller = new(bool) } - yym3616 := z.DecBinary() - _ = yym3616 + yym3788 := z.DecBinary() + _ = yym3788 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys3610) - } // end switch yys3610 - } // end for yyj3610 + z.DecStructFieldNotFound(-1, yys3782) + } // end switch yys3782 + } // end for yyj3782 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45501,16 +47549,16 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3617 int - var yyb3617 bool - var yyhl3617 bool = l >= 0 - yyj3617++ - if yyhl3617 { - yyb3617 = yyj3617 > l + var yyj3789 int + var yyb3789 bool + var yyhl3789 bool = l >= 0 + yyj3789++ + if yyhl3789 { + yyb3789 = yyj3789 > l } else { - yyb3617 = r.CheckBreak() + yyb3789 = r.CheckBreak() } - if yyb3617 { + if yyb3789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45520,13 +47568,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3617++ - if yyhl3617 { - yyb3617 = yyj3617 > l + yyj3789++ + if yyhl3789 { + yyb3789 = yyj3789 > l } else { - yyb3617 = r.CheckBreak() + yyb3789 = r.CheckBreak() } - if yyb3617 { + if yyb3789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45536,13 +47584,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3617++ - if yyhl3617 { - yyb3617 = yyj3617 > l + yyj3789++ + if yyhl3789 { + yyb3789 = yyj3789 > l } else { - yyb3617 = r.CheckBreak() + yyb3789 = r.CheckBreak() } - if yyb3617 { + if yyb3789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45552,13 +47600,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj3617++ - if yyhl3617 { - yyb3617 = yyj3617 > l + yyj3789++ + if yyhl3789 { + yyb3789 = yyj3789 > l } else { - yyb3617 = r.CheckBreak() + yyb3789 = r.CheckBreak() } - if yyb3617 { + if yyb3789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45568,13 +47616,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj3617++ - if yyhl3617 { - yyb3617 = yyj3617 > l + yyj3789++ + if yyhl3789 { + yyb3789 = yyj3789 > l } else { - yyb3617 = r.CheckBreak() + yyb3789 = r.CheckBreak() } - if yyb3617 { + if yyb3789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45587,25 +47635,25 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Controller == nil { x.Controller = new(bool) } - yym3623 := z.DecBinary() - _ = yym3623 + yym3795 := z.DecBinary() + _ = yym3795 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } for { - yyj3617++ - if yyhl3617 { - yyb3617 = yyj3617 > l + yyj3789++ + if yyhl3789 { + yyb3789 = yyj3789 > l } else { - yyb3617 = r.CheckBreak() + yyb3789 = r.CheckBreak() } - if yyb3617 { + if yyb3789 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3617-1, "") + z.DecStructFieldNotFound(yyj3789-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45617,41 +47665,41 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3624 := z.EncBinary() - _ = yym3624 + yym3796 := z.EncBinary() + _ = yym3796 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3625 := !z.EncBinary() - yy2arr3625 := z.EncBasicHandle().StructToArray - var yyq3625 [7]bool - _, _, _ = yysep3625, yyq3625, yy2arr3625 - const yyr3625 bool = false - yyq3625[0] = x.Kind != "" - yyq3625[1] = x.Namespace != "" - yyq3625[2] = x.Name != "" - yyq3625[3] = x.UID != "" - yyq3625[4] = x.APIVersion != "" - yyq3625[5] = x.ResourceVersion != "" - yyq3625[6] = x.FieldPath != "" - var yynn3625 int - if yyr3625 || yy2arr3625 { + yysep3797 := !z.EncBinary() + yy2arr3797 := z.EncBasicHandle().StructToArray + var yyq3797 [7]bool + _, _, _ = yysep3797, yyq3797, yy2arr3797 + const yyr3797 bool = false + yyq3797[0] = x.Kind != "" + yyq3797[1] = x.Namespace != "" + yyq3797[2] = x.Name != "" + yyq3797[3] = x.UID != "" + yyq3797[4] = x.APIVersion != "" + yyq3797[5] = x.ResourceVersion != "" + yyq3797[6] = x.FieldPath != "" + var yynn3797 int + if yyr3797 || yy2arr3797 { r.EncodeArrayStart(7) } else { - yynn3625 = 0 - for _, b := range yyq3625 { + yynn3797 = 0 + for _, b := range yyq3797 { if b { - yynn3625++ + yynn3797++ } } - r.EncodeMapStart(yynn3625) - yynn3625 = 0 + r.EncodeMapStart(yynn3797) + yynn3797 = 0 } - if yyr3625 || yy2arr3625 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3625[0] { - yym3627 := z.EncBinary() - _ = yym3627 + if yyq3797[0] { + yym3799 := z.EncBinary() + _ = yym3799 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -45660,23 +47708,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3625[0] { + if yyq3797[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3628 := z.EncBinary() - _ = yym3628 + yym3800 := z.EncBinary() + _ = yym3800 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3625 || yy2arr3625 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3625[1] { - yym3630 := z.EncBinary() - _ = yym3630 + if yyq3797[1] { + yym3802 := z.EncBinary() + _ = yym3802 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) @@ -45685,23 +47733,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3625[1] { + if yyq3797[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3631 := z.EncBinary() - _ = yym3631 + yym3803 := z.EncBinary() + _ = yym3803 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } - if yyr3625 || yy2arr3625 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3625[2] { - yym3633 := z.EncBinary() - _ = yym3633 + if yyq3797[2] { + yym3805 := z.EncBinary() + _ = yym3805 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -45710,23 +47758,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3625[2] { + if yyq3797[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3634 := z.EncBinary() - _ = yym3634 + yym3806 := z.EncBinary() + _ = yym3806 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr3625 || yy2arr3625 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3625[3] { - yym3636 := z.EncBinary() - _ = yym3636 + if yyq3797[3] { + yym3808 := z.EncBinary() + _ = yym3808 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -45736,12 +47784,12 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3625[3] { + if yyq3797[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3637 := z.EncBinary() - _ = yym3637 + yym3809 := z.EncBinary() + _ = yym3809 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -45749,11 +47797,11 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3625 || yy2arr3625 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3625[4] { - yym3639 := z.EncBinary() - _ = yym3639 + if yyq3797[4] { + yym3811 := z.EncBinary() + _ = yym3811 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -45762,23 +47810,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3625[4] { + if yyq3797[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3640 := z.EncBinary() - _ = yym3640 + yym3812 := z.EncBinary() + _ = yym3812 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3625 || yy2arr3625 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3625[5] { - yym3642 := z.EncBinary() - _ = yym3642 + if yyq3797[5] { + yym3814 := z.EncBinary() + _ = yym3814 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) @@ -45787,23 +47835,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3625[5] { + if yyq3797[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3643 := z.EncBinary() - _ = yym3643 + yym3815 := z.EncBinary() + _ = yym3815 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } - if yyr3625 || yy2arr3625 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3625[6] { - yym3645 := z.EncBinary() - _ = yym3645 + if yyq3797[6] { + yym3817 := z.EncBinary() + _ = yym3817 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) @@ -45812,19 +47860,19 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3625[6] { + if yyq3797[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3646 := z.EncBinary() - _ = yym3646 + yym3818 := z.EncBinary() + _ = yym3818 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } - if yyr3625 || yy2arr3625 { + if yyr3797 || yy2arr3797 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45837,25 +47885,25 @@ func (x *ObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3647 := z.DecBinary() - _ = yym3647 + yym3819 := z.DecBinary() + _ = yym3819 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3648 := r.ContainerType() - if yyct3648 == codecSelferValueTypeMap1234 { - yyl3648 := r.ReadMapStart() - if yyl3648 == 0 { + yyct3820 := r.ContainerType() + if yyct3820 == codecSelferValueTypeMap1234 { + yyl3820 := r.ReadMapStart() + if yyl3820 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3648, d) + x.codecDecodeSelfFromMap(yyl3820, d) } - } else if yyct3648 == codecSelferValueTypeArray1234 { - yyl3648 := r.ReadArrayStart() - if yyl3648 == 0 { + } else if yyct3820 == codecSelferValueTypeArray1234 { + yyl3820 := r.ReadArrayStart() + if yyl3820 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3648, d) + x.codecDecodeSelfFromArray(yyl3820, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45867,12 +47915,12 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3649Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3649Slc - var yyhl3649 bool = l >= 0 - for yyj3649 := 0; ; yyj3649++ { - if yyhl3649 { - if yyj3649 >= l { + var yys3821Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3821Slc + var yyhl3821 bool = l >= 0 + for yyj3821 := 0; ; yyj3821++ { + if yyhl3821 { + if yyj3821 >= l { break } } else { @@ -45881,10 +47929,10 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3649Slc = r.DecodeBytes(yys3649Slc, true, true) - yys3649 := string(yys3649Slc) + yys3821Slc = r.DecodeBytes(yys3821Slc, true, true) + yys3821 := string(yys3821Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3649 { + switch yys3821 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -45928,9 +47976,9 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.FieldPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3649) - } // end switch yys3649 - } // end for yyj3649 + z.DecStructFieldNotFound(-1, yys3821) + } // end switch yys3821 + } // end for yyj3821 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45938,16 +47986,16 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3657 int - var yyb3657 bool - var yyhl3657 bool = l >= 0 - yyj3657++ - if yyhl3657 { - yyb3657 = yyj3657 > l + var yyj3829 int + var yyb3829 bool + var yyhl3829 bool = l >= 0 + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb3657 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb3657 { + if yyb3829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45957,13 +48005,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3657++ - if yyhl3657 { - yyb3657 = yyj3657 > l + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb3657 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb3657 { + if yyb3829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45973,13 +48021,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Namespace = string(r.DecodeString()) } - yyj3657++ - if yyhl3657 { - yyb3657 = yyj3657 > l + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb3657 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb3657 { + if yyb3829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45989,13 +48037,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Name = string(r.DecodeString()) } - yyj3657++ - if yyhl3657 { - yyb3657 = yyj3657 > l + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb3657 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb3657 { + if yyb3829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46005,13 +48053,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj3657++ - if yyhl3657 { - yyb3657 = yyj3657 > l + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb3657 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb3657 { + if yyb3829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46021,13 +48069,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3657++ - if yyhl3657 { - yyb3657 = yyj3657 > l + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb3657 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb3657 { + if yyb3829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46037,13 +48085,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ResourceVersion = string(r.DecodeString()) } - yyj3657++ - if yyhl3657 { - yyb3657 = yyj3657 > l + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb3657 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb3657 { + if yyb3829 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46054,17 +48102,17 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.FieldPath = string(r.DecodeString()) } for { - yyj3657++ - if yyhl3657 { - yyb3657 = yyj3657 > l + yyj3829++ + if yyhl3829 { + yyb3829 = yyj3829 > l } else { - yyb3657 = r.CheckBreak() + yyb3829 = r.CheckBreak() } - if yyb3657 { + if yyb3829 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3657-1, "") + z.DecStructFieldNotFound(yyj3829-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46076,33 +48124,33 @@ func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3665 := z.EncBinary() - _ = yym3665 + yym3837 := z.EncBinary() + _ = yym3837 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3666 := !z.EncBinary() - yy2arr3666 := z.EncBasicHandle().StructToArray - var yyq3666 [1]bool - _, _, _ = yysep3666, yyq3666, yy2arr3666 - const yyr3666 bool = false - var yynn3666 int - if yyr3666 || yy2arr3666 { + yysep3838 := !z.EncBinary() + yy2arr3838 := z.EncBasicHandle().StructToArray + var yyq3838 [1]bool + _, _, _ = yysep3838, yyq3838, yy2arr3838 + const yyr3838 bool = false + var yynn3838 int + if yyr3838 || yy2arr3838 { r.EncodeArrayStart(1) } else { - yynn3666 = 1 - for _, b := range yyq3666 { + yynn3838 = 1 + for _, b := range yyq3838 { if b { - yynn3666++ + yynn3838++ } } - r.EncodeMapStart(yynn3666) - yynn3666 = 0 + r.EncodeMapStart(yynn3838) + yynn3838 = 0 } - if yyr3666 || yy2arr3666 { + if yyr3838 || yy2arr3838 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3668 := z.EncBinary() - _ = yym3668 + yym3840 := z.EncBinary() + _ = yym3840 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -46111,14 +48159,14 @@ func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3669 := z.EncBinary() - _ = yym3669 + yym3841 := z.EncBinary() + _ = yym3841 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr3666 || yy2arr3666 { + if yyr3838 || yy2arr3838 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46131,25 +48179,25 @@ func (x *LocalObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3670 := z.DecBinary() - _ = yym3670 + yym3842 := z.DecBinary() + _ = yym3842 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3671 := r.ContainerType() - if yyct3671 == codecSelferValueTypeMap1234 { - yyl3671 := r.ReadMapStart() - if yyl3671 == 0 { + yyct3843 := r.ContainerType() + if yyct3843 == codecSelferValueTypeMap1234 { + yyl3843 := r.ReadMapStart() + if yyl3843 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3671, d) + x.codecDecodeSelfFromMap(yyl3843, d) } - } else if yyct3671 == codecSelferValueTypeArray1234 { - yyl3671 := r.ReadArrayStart() - if yyl3671 == 0 { + } else if yyct3843 == codecSelferValueTypeArray1234 { + yyl3843 := r.ReadArrayStart() + if yyl3843 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3671, d) + x.codecDecodeSelfFromArray(yyl3843, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46161,12 +48209,12 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3672Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3672Slc - var yyhl3672 bool = l >= 0 - for yyj3672 := 0; ; yyj3672++ { - if yyhl3672 { - if yyj3672 >= l { + var yys3844Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3844Slc + var yyhl3844 bool = l >= 0 + for yyj3844 := 0; ; yyj3844++ { + if yyhl3844 { + if yyj3844 >= l { break } } else { @@ -46175,10 +48223,10 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3672Slc = r.DecodeBytes(yys3672Slc, true, true) - yys3672 := string(yys3672Slc) + yys3844Slc = r.DecodeBytes(yys3844Slc, true, true) + yys3844 := string(yys3844Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3672 { + switch yys3844 { case "Name": if r.TryDecodeAsNil() { x.Name = "" @@ -46186,9 +48234,9 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Name = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3672) - } // end switch yys3672 - } // end for yyj3672 + z.DecStructFieldNotFound(-1, yys3844) + } // end switch yys3844 + } // end for yyj3844 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -46196,16 +48244,16 @@ func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3674 int - var yyb3674 bool - var yyhl3674 bool = l >= 0 - yyj3674++ - if yyhl3674 { - yyb3674 = yyj3674 > l + var yyj3846 int + var yyb3846 bool + var yyhl3846 bool = l >= 0 + yyj3846++ + if yyhl3846 { + yyb3846 = yyj3846 > l } else { - yyb3674 = r.CheckBreak() + yyb3846 = r.CheckBreak() } - if yyb3674 { + if yyb3846 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -46216,17 +48264,17 @@ func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Name = string(r.DecodeString()) } for { - yyj3674++ - if yyhl3674 { - yyb3674 = yyj3674 > l + yyj3846++ + if yyhl3846 { + yyb3846 = yyj3846 > l } else { - yyb3674 = r.CheckBreak() + yyb3846 = r.CheckBreak() } - if yyb3674 { + if yyb3846 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3674-1, "") + z.DecStructFieldNotFound(yyj3846-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -46238,37 +48286,37 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3676 := z.EncBinary() - _ = yym3676 + yym3848 := z.EncBinary() + _ = yym3848 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3677 := !z.EncBinary() - yy2arr3677 := z.EncBasicHandle().StructToArray - var yyq3677 [3]bool - _, _, _ = yysep3677, yyq3677, yy2arr3677 - const yyr3677 bool = false - yyq3677[0] = x.Kind != "" - yyq3677[1] = x.APIVersion != "" - yyq3677[2] = true - var yynn3677 int - if yyr3677 || yy2arr3677 { + yysep3849 := !z.EncBinary() + yy2arr3849 := z.EncBasicHandle().StructToArray + var yyq3849 [3]bool + _, _, _ = yysep3849, yyq3849, yy2arr3849 + const yyr3849 bool = false + yyq3849[0] = x.Kind != "" + yyq3849[1] = x.APIVersion != "" + yyq3849[2] = true + var yynn3849 int + if yyr3849 || yy2arr3849 { r.EncodeArrayStart(3) } else { - yynn3677 = 0 - for _, b := range yyq3677 { + yynn3849 = 0 + for _, b := range yyq3849 { if b { - yynn3677++ + yynn3849++ } } - r.EncodeMapStart(yynn3677) - yynn3677 = 0 + r.EncodeMapStart(yynn3849) + yynn3849 = 0 } - if yyr3677 || yy2arr3677 { + if yyr3849 || yy2arr3849 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3677[0] { - yym3679 := z.EncBinary() - _ = yym3679 + if yyq3849[0] { + yym3851 := z.EncBinary() + _ = yym3851 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -46277,23 +48325,23 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3677[0] { + if yyq3849[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3680 := z.EncBinary() - _ = yym3680 + yym3852 := z.EncBinary() + _ = yym3852 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3677 || yy2arr3677 { + if yyr3849 || yy2arr3849 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3677[1] { - yym3682 := z.EncBinary() - _ = yym3682 + if yyq3849[1] { + yym3854 := z.EncBinary() + _ = yym3854 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -46302,36 +48350,36 @@ func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3677[1] { + if yyq3849[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3683 := z.EncBinary() - _ = yym3683 + yym3855 := z.EncBinary() + _ = yym3855 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3677 || yy2arr3677 { + if yyr3849 || yy2arr3849 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3677[2] { - yy3685 := &x.Reference - yy3685.CodecEncodeSelf(e) + if yyq3849[2] { + yy3857 := &x.Reference + yy3857.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3677[2] { + if yyq3849[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3686 := &x.Reference - yy3686.CodecEncodeSelf(e) + yy3858 := &x.Reference + yy3858.CodecEncodeSelf(e) } } - if yyr3677 || yy2arr3677 { + if yyr3849 || yy2arr3849 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -46344,25 +48392,25 @@ func (x *SerializedReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3687 := z.DecBinary() - _ = yym3687 + yym3859 := z.DecBinary() + _ = yym3859 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3688 := r.ContainerType() - if yyct3688 == codecSelferValueTypeMap1234 { - yyl3688 := r.ReadMapStart() - if yyl3688 == 0 { + yyct3860 := r.ContainerType() + if yyct3860 == codecSelferValueTypeMap1234 { + yyl3860 := r.ReadMapStart() + if yyl3860 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3688, d) + x.codecDecodeSelfFromMap(yyl3860, d) } - } else if yyct3688 == codecSelferValueTypeArray1234 { - yyl3688 := r.ReadArrayStart() - if yyl3688 == 0 { + } else if yyct3860 == codecSelferValueTypeArray1234 { + yyl3860 := r.ReadArrayStart() + if yyl3860 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3688, d) + x.codecDecodeSelfFromArray(yyl3860, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -46374,12 +48422,12 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3689Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3689Slc - var yyhl3689 bool = l >= 0 - for yyj3689 := 0; ; yyj3689++ { - if yyhl3689 { - if yyj3689 >= l { + var yys3861Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3861Slc + var yyhl3861 bool = l >= 0 + for yyj3861 := 0; ; yyj3861++ { + if yyhl3861 { + if yyj3861 >= l { break } } else { @@ -46388,10 +48436,10 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3689Slc = r.DecodeBytes(yys3689Slc, true, true) - yys3689 := string(yys3689Slc) + yys3861Slc = r.DecodeBytes(yys3861Slc, true, true) + yys3861 := string(yys3861Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3689 { + switch yys3861 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -46408,1994 +48456,17 @@ func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { - yyv3692 := &x.Reference - yyv3692.CodecDecodeSelf(d) + yyv3864 := &x.Reference + yyv3864.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3689) - } // end switch yys3689 - } // end for yyj3689 + z.DecStructFieldNotFound(-1, yys3861) + } // end switch yys3861 + } // end for yyj3861 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3693 int - var yyb3693 bool - var yyhl3693 bool = l >= 0 - yyj3693++ - if yyhl3693 { - yyb3693 = yyj3693 > l - } else { - yyb3693 = r.CheckBreak() - } - if yyb3693 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3693++ - if yyhl3693 { - yyb3693 = yyj3693 > l - } else { - yyb3693 = r.CheckBreak() - } - if yyb3693 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3693++ - if yyhl3693 { - yyb3693 = yyj3693 > l - } else { - yyb3693 = r.CheckBreak() - } - if yyb3693 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reference = ObjectReference{} - } else { - yyv3696 := &x.Reference - yyv3696.CodecDecodeSelf(d) - } - for { - yyj3693++ - if yyhl3693 { - yyb3693 = yyj3693 > l - } else { - yyb3693 = r.CheckBreak() - } - if yyb3693 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3693-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3697 := z.EncBinary() - _ = yym3697 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3698 := !z.EncBinary() - yy2arr3698 := z.EncBasicHandle().StructToArray - var yyq3698 [2]bool - _, _, _ = yysep3698, yyq3698, yy2arr3698 - const yyr3698 bool = false - yyq3698[0] = x.Component != "" - yyq3698[1] = x.Host != "" - var yynn3698 int - if yyr3698 || yy2arr3698 { - r.EncodeArrayStart(2) - } else { - yynn3698 = 0 - for _, b := range yyq3698 { - if b { - yynn3698++ - } - } - r.EncodeMapStart(yynn3698) - yynn3698 = 0 - } - if yyr3698 || yy2arr3698 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3698[0] { - yym3700 := z.EncBinary() - _ = yym3700 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Component)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3698[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("component")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3701 := z.EncBinary() - _ = yym3701 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Component)) - } - } - } - if yyr3698 || yy2arr3698 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3698[1] { - yym3703 := z.EncBinary() - _ = yym3703 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Host)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3698[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("host")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3704 := z.EncBinary() - _ = yym3704 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Host)) - } - } - } - if yyr3698 || yy2arr3698 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EventSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3705 := z.DecBinary() - _ = yym3705 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3706 := r.ContainerType() - if yyct3706 == codecSelferValueTypeMap1234 { - yyl3706 := r.ReadMapStart() - if yyl3706 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3706, d) - } - } else if yyct3706 == codecSelferValueTypeArray1234 { - yyl3706 := r.ReadArrayStart() - if yyl3706 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3706, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3707Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3707Slc - var yyhl3707 bool = l >= 0 - for yyj3707 := 0; ; yyj3707++ { - if yyhl3707 { - if yyj3707 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3707Slc = r.DecodeBytes(yys3707Slc, true, true) - yys3707 := string(yys3707Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3707 { - case "component": - if r.TryDecodeAsNil() { - x.Component = "" - } else { - x.Component = string(r.DecodeString()) - } - case "host": - if r.TryDecodeAsNil() { - x.Host = "" - } else { - x.Host = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3707) - } // end switch yys3707 - } // end for yyj3707 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3710 int - var yyb3710 bool - var yyhl3710 bool = l >= 0 - yyj3710++ - if yyhl3710 { - yyb3710 = yyj3710 > l - } else { - yyb3710 = r.CheckBreak() - } - if yyb3710 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Component = "" - } else { - x.Component = string(r.DecodeString()) - } - yyj3710++ - if yyhl3710 { - yyb3710 = yyj3710 > l - } else { - yyb3710 = r.CheckBreak() - } - if yyb3710 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Host = "" - } else { - x.Host = string(r.DecodeString()) - } - for { - yyj3710++ - if yyhl3710 { - yyb3710 = yyj3710 > l - } else { - yyb3710 = r.CheckBreak() - } - if yyb3710 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3710-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3713 := z.EncBinary() - _ = yym3713 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3714 := !z.EncBinary() - yy2arr3714 := z.EncBasicHandle().StructToArray - var yyq3714 [11]bool - _, _, _ = yysep3714, yyq3714, yy2arr3714 - const yyr3714 bool = false - yyq3714[0] = x.Kind != "" - yyq3714[1] = x.APIVersion != "" - yyq3714[2] = true - yyq3714[3] = true - yyq3714[4] = x.Reason != "" - yyq3714[5] = x.Message != "" - yyq3714[6] = true - yyq3714[7] = true - yyq3714[8] = true - yyq3714[9] = x.Count != 0 - yyq3714[10] = x.Type != "" - var yynn3714 int - if yyr3714 || yy2arr3714 { - r.EncodeArrayStart(11) - } else { - yynn3714 = 0 - for _, b := range yyq3714 { - if b { - yynn3714++ - } - } - r.EncodeMapStart(yynn3714) - yynn3714 = 0 - } - if yyr3714 || yy2arr3714 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3714[0] { - yym3716 := z.EncBinary() - _ = yym3716 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3714[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3717 := z.EncBinary() - _ = yym3717 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3714 || yy2arr3714 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3714[1] { - yym3719 := z.EncBinary() - _ = yym3719 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3714[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3720 := z.EncBinary() - _ = yym3720 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3714 || yy2arr3714 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3714[2] { - yy3722 := &x.ObjectMeta - yy3722.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3714[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3723 := &x.ObjectMeta - yy3723.CodecEncodeSelf(e) - } - } - if yyr3714 || yy2arr3714 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3714[3] { - yy3725 := &x.InvolvedObject - yy3725.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3714[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3726 := &x.InvolvedObject - yy3726.CodecEncodeSelf(e) - } - } - if yyr3714 || yy2arr3714 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3714[4] { - yym3728 := z.EncBinary() - _ = yym3728 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3714[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3729 := z.EncBinary() - _ = yym3729 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr3714 || yy2arr3714 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3714[5] { - yym3731 := z.EncBinary() - _ = yym3731 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3714[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3732 := z.EncBinary() - _ = yym3732 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr3714 || yy2arr3714 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3714[6] { - yy3734 := &x.Source - yy3734.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3714[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("source")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3735 := &x.Source - yy3735.CodecEncodeSelf(e) - } - } - if yyr3714 || yy2arr3714 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3714[7] { - yy3737 := &x.FirstTimestamp - yym3738 := z.EncBinary() - _ = yym3738 - if false { - } else if z.HasExtensions() && z.EncExt(yy3737) { - } else if yym3738 { - z.EncBinaryMarshal(yy3737) - } else if !yym3738 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3737) - } else { - z.EncFallback(yy3737) - } - } else { - r.EncodeNil() - } - } else { - if yyq3714[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3739 := &x.FirstTimestamp - yym3740 := z.EncBinary() - _ = yym3740 - if false { - } else if z.HasExtensions() && z.EncExt(yy3739) { - } else if yym3740 { - z.EncBinaryMarshal(yy3739) - } else if !yym3740 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3739) - } else { - z.EncFallback(yy3739) - } - } - } - if yyr3714 || yy2arr3714 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3714[8] { - yy3742 := &x.LastTimestamp - yym3743 := z.EncBinary() - _ = yym3743 - if false { - } else if z.HasExtensions() && z.EncExt(yy3742) { - } else if yym3743 { - z.EncBinaryMarshal(yy3742) - } else if !yym3743 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3742) - } else { - z.EncFallback(yy3742) - } - } else { - r.EncodeNil() - } - } else { - if yyq3714[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3744 := &x.LastTimestamp - yym3745 := z.EncBinary() - _ = yym3745 - if false { - } else if z.HasExtensions() && z.EncExt(yy3744) { - } else if yym3745 { - z.EncBinaryMarshal(yy3744) - } else if !yym3745 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3744) - } else { - z.EncFallback(yy3744) - } - } - } - if yyr3714 || yy2arr3714 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3714[9] { - yym3747 := z.EncBinary() - _ = yym3747 - if false { - } else { - r.EncodeInt(int64(x.Count)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq3714[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("count")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3748 := z.EncBinary() - _ = yym3748 - if false { - } else { - r.EncodeInt(int64(x.Count)) - } - } - } - if yyr3714 || yy2arr3714 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3714[10] { - yym3750 := z.EncBinary() - _ = yym3750 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Type)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3714[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3751 := z.EncBinary() - _ = yym3751 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Type)) - } - } - } - if yyr3714 || yy2arr3714 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Event) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3752 := z.DecBinary() - _ = yym3752 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3753 := r.ContainerType() - if yyct3753 == codecSelferValueTypeMap1234 { - yyl3753 := r.ReadMapStart() - if yyl3753 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3753, d) - } - } else if yyct3753 == codecSelferValueTypeArray1234 { - yyl3753 := r.ReadArrayStart() - if yyl3753 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3753, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3754Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3754Slc - var yyhl3754 bool = l >= 0 - for yyj3754 := 0; ; yyj3754++ { - if yyhl3754 { - if yyj3754 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3754Slc = r.DecodeBytes(yys3754Slc, true, true) - yys3754 := string(yys3754Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3754 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv3757 := &x.ObjectMeta - yyv3757.CodecDecodeSelf(d) - } - case "involvedObject": - if r.TryDecodeAsNil() { - x.InvolvedObject = ObjectReference{} - } else { - yyv3758 := &x.InvolvedObject - yyv3758.CodecDecodeSelf(d) - } - case "reason": - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - case "message": - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - case "source": - if r.TryDecodeAsNil() { - x.Source = EventSource{} - } else { - yyv3761 := &x.Source - yyv3761.CodecDecodeSelf(d) - } - case "firstTimestamp": - if r.TryDecodeAsNil() { - x.FirstTimestamp = pkg2_unversioned.Time{} - } else { - yyv3762 := &x.FirstTimestamp - yym3763 := z.DecBinary() - _ = yym3763 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3762) { - } else if yym3763 { - z.DecBinaryUnmarshal(yyv3762) - } else if !yym3763 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3762) - } else { - z.DecFallback(yyv3762, false) - } - } - case "lastTimestamp": - if r.TryDecodeAsNil() { - x.LastTimestamp = pkg2_unversioned.Time{} - } else { - yyv3764 := &x.LastTimestamp - yym3765 := z.DecBinary() - _ = yym3765 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3764) { - } else if yym3765 { - z.DecBinaryUnmarshal(yyv3764) - } else if !yym3765 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3764) - } else { - z.DecFallback(yyv3764, false) - } - } - case "count": - if r.TryDecodeAsNil() { - x.Count = 0 - } else { - x.Count = int32(r.DecodeInt(32)) - } - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3754) - } // end switch yys3754 - } // end for yyj3754 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3768 int - var yyb3768 bool - var yyhl3768 bool = l >= 0 - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l - } else { - yyb3768 = r.CheckBreak() - } - if yyb3768 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l - } else { - yyb3768 = r.CheckBreak() - } - if yyb3768 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l - } else { - yyb3768 = r.CheckBreak() - } - if yyb3768 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv3771 := &x.ObjectMeta - yyv3771.CodecDecodeSelf(d) - } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l - } else { - yyb3768 = r.CheckBreak() - } - if yyb3768 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.InvolvedObject = ObjectReference{} - } else { - yyv3772 := &x.InvolvedObject - yyv3772.CodecDecodeSelf(d) - } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l - } else { - yyb3768 = r.CheckBreak() - } - if yyb3768 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l - } else { - yyb3768 = r.CheckBreak() - } - if yyb3768 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l - } else { - yyb3768 = r.CheckBreak() - } - if yyb3768 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Source = EventSource{} - } else { - yyv3775 := &x.Source - yyv3775.CodecDecodeSelf(d) - } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l - } else { - yyb3768 = r.CheckBreak() - } - if yyb3768 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FirstTimestamp = pkg2_unversioned.Time{} - } else { - yyv3776 := &x.FirstTimestamp - yym3777 := z.DecBinary() - _ = yym3777 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3776) { - } else if yym3777 { - z.DecBinaryUnmarshal(yyv3776) - } else if !yym3777 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3776) - } else { - z.DecFallback(yyv3776, false) - } - } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l - } else { - yyb3768 = r.CheckBreak() - } - if yyb3768 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastTimestamp = pkg2_unversioned.Time{} - } else { - yyv3778 := &x.LastTimestamp - yym3779 := z.DecBinary() - _ = yym3779 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3778) { - } else if yym3779 { - z.DecBinaryUnmarshal(yyv3778) - } else if !yym3779 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3778) - } else { - z.DecFallback(yyv3778, false) - } - } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l - } else { - yyb3768 = r.CheckBreak() - } - if yyb3768 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Count = 0 - } else { - x.Count = int32(r.DecodeInt(32)) - } - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l - } else { - yyb3768 = r.CheckBreak() - } - if yyb3768 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = string(r.DecodeString()) - } - for { - yyj3768++ - if yyhl3768 { - yyb3768 = yyj3768 > l - } else { - yyb3768 = r.CheckBreak() - } - if yyb3768 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3768-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3782 := z.EncBinary() - _ = yym3782 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3783 := !z.EncBinary() - yy2arr3783 := z.EncBasicHandle().StructToArray - var yyq3783 [4]bool - _, _, _ = yysep3783, yyq3783, yy2arr3783 - const yyr3783 bool = false - yyq3783[0] = x.Kind != "" - yyq3783[1] = x.APIVersion != "" - yyq3783[2] = true - var yynn3783 int - if yyr3783 || yy2arr3783 { - r.EncodeArrayStart(4) - } else { - yynn3783 = 1 - for _, b := range yyq3783 { - if b { - yynn3783++ - } - } - r.EncodeMapStart(yynn3783) - yynn3783 = 0 - } - if yyr3783 || yy2arr3783 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3783[0] { - yym3785 := z.EncBinary() - _ = yym3785 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3783[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3786 := z.EncBinary() - _ = yym3786 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3783 || yy2arr3783 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3783[1] { - yym3788 := z.EncBinary() - _ = yym3788 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3783[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3789 := z.EncBinary() - _ = yym3789 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3783 || yy2arr3783 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3783[2] { - yy3791 := &x.ListMeta - yym3792 := z.EncBinary() - _ = yym3792 - if false { - } else if z.HasExtensions() && z.EncExt(yy3791) { - } else { - z.EncFallback(yy3791) - } - } else { - r.EncodeNil() - } - } else { - if yyq3783[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3793 := &x.ListMeta - yym3794 := z.EncBinary() - _ = yym3794 - if false { - } else if z.HasExtensions() && z.EncExt(yy3793) { - } else { - z.EncFallback(yy3793) - } - } - } - if yyr3783 || yy2arr3783 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3796 := z.EncBinary() - _ = yym3796 - if false { - } else { - h.encSliceEvent(([]Event)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3797 := z.EncBinary() - _ = yym3797 - if false { - } else { - h.encSliceEvent(([]Event)(x.Items), e) - } - } - } - if yyr3783 || yy2arr3783 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EventList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3798 := z.DecBinary() - _ = yym3798 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3799 := r.ContainerType() - if yyct3799 == codecSelferValueTypeMap1234 { - yyl3799 := r.ReadMapStart() - if yyl3799 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3799, d) - } - } else if yyct3799 == codecSelferValueTypeArray1234 { - yyl3799 := r.ReadArrayStart() - if yyl3799 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3799, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3800Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3800Slc - var yyhl3800 bool = l >= 0 - for yyj3800 := 0; ; yyj3800++ { - if yyhl3800 { - if yyj3800 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3800Slc = r.DecodeBytes(yys3800Slc, true, true) - yys3800 := string(yys3800Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3800 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv3803 := &x.ListMeta - yym3804 := z.DecBinary() - _ = yym3804 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3803) { - } else { - z.DecFallback(yyv3803, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3805 := &x.Items - yym3806 := z.DecBinary() - _ = yym3806 - if false { - } else { - h.decSliceEvent((*[]Event)(yyv3805), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3800) - } // end switch yys3800 - } // end for yyj3800 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3807 int - var yyb3807 bool - var yyhl3807 bool = l >= 0 - yyj3807++ - if yyhl3807 { - yyb3807 = yyj3807 > l - } else { - yyb3807 = r.CheckBreak() - } - if yyb3807 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3807++ - if yyhl3807 { - yyb3807 = yyj3807 > l - } else { - yyb3807 = r.CheckBreak() - } - if yyb3807 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3807++ - if yyhl3807 { - yyb3807 = yyj3807 > l - } else { - yyb3807 = r.CheckBreak() - } - if yyb3807 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv3810 := &x.ListMeta - yym3811 := z.DecBinary() - _ = yym3811 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3810) { - } else { - z.DecFallback(yyv3810, false) - } - } - yyj3807++ - if yyhl3807 { - yyb3807 = yyj3807 > l - } else { - yyb3807 = r.CheckBreak() - } - if yyb3807 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3812 := &x.Items - yym3813 := z.DecBinary() - _ = yym3813 - if false { - } else { - h.decSliceEvent((*[]Event)(yyv3812), d) - } - } - for { - yyj3807++ - if yyhl3807 { - yyb3807 = yyj3807 > l - } else { - yyb3807 = r.CheckBreak() - } - if yyb3807 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3807-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3814 := z.EncBinary() - _ = yym3814 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3815 := !z.EncBinary() - yy2arr3815 := z.EncBasicHandle().StructToArray - var yyq3815 [4]bool - _, _, _ = yysep3815, yyq3815, yy2arr3815 - const yyr3815 bool = false - yyq3815[0] = x.Kind != "" - yyq3815[1] = x.APIVersion != "" - yyq3815[2] = true - var yynn3815 int - if yyr3815 || yy2arr3815 { - r.EncodeArrayStart(4) - } else { - yynn3815 = 1 - for _, b := range yyq3815 { - if b { - yynn3815++ - } - } - r.EncodeMapStart(yynn3815) - yynn3815 = 0 - } - if yyr3815 || yy2arr3815 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3815[0] { - yym3817 := z.EncBinary() - _ = yym3817 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3815[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3818 := z.EncBinary() - _ = yym3818 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3815 || yy2arr3815 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3815[1] { - yym3820 := z.EncBinary() - _ = yym3820 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3815[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3821 := z.EncBinary() - _ = yym3821 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3815 || yy2arr3815 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3815[2] { - yy3823 := &x.ListMeta - yym3824 := z.EncBinary() - _ = yym3824 - if false { - } else if z.HasExtensions() && z.EncExt(yy3823) { - } else { - z.EncFallback(yy3823) - } - } else { - r.EncodeNil() - } - } else { - if yyq3815[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3825 := &x.ListMeta - yym3826 := z.EncBinary() - _ = yym3826 - if false { - } else if z.HasExtensions() && z.EncExt(yy3825) { - } else { - z.EncFallback(yy3825) - } - } - } - if yyr3815 || yy2arr3815 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3828 := z.EncBinary() - _ = yym3828 - if false { - } else { - h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3829 := z.EncBinary() - _ = yym3829 - if false { - } else { - h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) - } - } - } - if yyr3815 || yy2arr3815 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *List) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3830 := z.DecBinary() - _ = yym3830 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3831 := r.ContainerType() - if yyct3831 == codecSelferValueTypeMap1234 { - yyl3831 := r.ReadMapStart() - if yyl3831 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3831, d) - } - } else if yyct3831 == codecSelferValueTypeArray1234 { - yyl3831 := r.ReadArrayStart() - if yyl3831 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3831, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3832Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3832Slc - var yyhl3832 bool = l >= 0 - for yyj3832 := 0; ; yyj3832++ { - if yyhl3832 { - if yyj3832 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3832Slc = r.DecodeBytes(yys3832Slc, true, true) - yys3832 := string(yys3832Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3832 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv3835 := &x.ListMeta - yym3836 := z.DecBinary() - _ = yym3836 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3835) { - } else { - z.DecFallback(yyv3835, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3837 := &x.Items - yym3838 := z.DecBinary() - _ = yym3838 - if false { - } else { - h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3837), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3832) - } // end switch yys3832 - } // end for yyj3832 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3839 int - var yyb3839 bool - var yyhl3839 bool = l >= 0 - yyj3839++ - if yyhl3839 { - yyb3839 = yyj3839 > l - } else { - yyb3839 = r.CheckBreak() - } - if yyb3839 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3839++ - if yyhl3839 { - yyb3839 = yyj3839 > l - } else { - yyb3839 = r.CheckBreak() - } - if yyb3839 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3839++ - if yyhl3839 { - yyb3839 = yyj3839 > l - } else { - yyb3839 = r.CheckBreak() - } - if yyb3839 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv3842 := &x.ListMeta - yym3843 := z.DecBinary() - _ = yym3843 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3842) { - } else { - z.DecFallback(yyv3842, false) - } - } - yyj3839++ - if yyhl3839 { - yyb3839 = yyj3839 > l - } else { - yyb3839 = r.CheckBreak() - } - if yyb3839 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3844 := &x.Items - yym3845 := z.DecBinary() - _ = yym3845 - if false { - } else { - h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3844), d) - } - } - for { - yyj3839++ - if yyhl3839 { - yyb3839 = yyj3839 > l - } else { - yyb3839 = r.CheckBreak() - } - if yyb3839 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3839-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym3846 := z.EncBinary() - _ = yym3846 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *LimitType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3847 := z.DecBinary() - _ = yym3847 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3848 := z.EncBinary() - _ = yym3848 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3849 := !z.EncBinary() - yy2arr3849 := z.EncBasicHandle().StructToArray - var yyq3849 [6]bool - _, _, _ = yysep3849, yyq3849, yy2arr3849 - const yyr3849 bool = false - yyq3849[0] = x.Type != "" - yyq3849[1] = len(x.Max) != 0 - yyq3849[2] = len(x.Min) != 0 - yyq3849[3] = len(x.Default) != 0 - yyq3849[4] = len(x.DefaultRequest) != 0 - yyq3849[5] = len(x.MaxLimitRequestRatio) != 0 - var yynn3849 int - if yyr3849 || yy2arr3849 { - r.EncodeArrayStart(6) - } else { - yynn3849 = 0 - for _, b := range yyq3849 { - if b { - yynn3849++ - } - } - r.EncodeMapStart(yynn3849) - yynn3849 = 0 - } - if yyr3849 || yy2arr3849 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3849[0] { - x.Type.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3849[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Type.CodecEncodeSelf(e) - } - } - if yyr3849 || yy2arr3849 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3849[1] { - if x.Max == nil { - r.EncodeNil() - } else { - x.Max.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq3849[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("max")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Max == nil { - r.EncodeNil() - } else { - x.Max.CodecEncodeSelf(e) - } - } - } - if yyr3849 || yy2arr3849 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3849[2] { - if x.Min == nil { - r.EncodeNil() - } else { - x.Min.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq3849[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("min")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Min == nil { - r.EncodeNil() - } else { - x.Min.CodecEncodeSelf(e) - } - } - } - if yyr3849 || yy2arr3849 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3849[3] { - if x.Default == nil { - r.EncodeNil() - } else { - x.Default.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq3849[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("default")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Default == nil { - r.EncodeNil() - } else { - x.Default.CodecEncodeSelf(e) - } - } - } - if yyr3849 || yy2arr3849 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3849[4] { - if x.DefaultRequest == nil { - r.EncodeNil() - } else { - x.DefaultRequest.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq3849[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("defaultRequest")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.DefaultRequest == nil { - r.EncodeNil() - } else { - x.DefaultRequest.CodecEncodeSelf(e) - } - } - } - if yyr3849 || yy2arr3849 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3849[5] { - if x.MaxLimitRequestRatio == nil { - r.EncodeNil() - } else { - x.MaxLimitRequestRatio.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq3849[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxLimitRequestRatio")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.MaxLimitRequestRatio == nil { - r.EncodeNil() - } else { - x.MaxLimitRequestRatio.CodecEncodeSelf(e) - } - } - } - if yyr3849 || yy2arr3849 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LimitRangeItem) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3856 := z.DecBinary() - _ = yym3856 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3857 := r.ContainerType() - if yyct3857 == codecSelferValueTypeMap1234 { - yyl3857 := r.ReadMapStart() - if yyl3857 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3857, d) - } - } else if yyct3857 == codecSelferValueTypeArray1234 { - yyl3857 := r.ReadArrayStart() - if yyl3857 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3857, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3858Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3858Slc - var yyhl3858 bool = l >= 0 - for yyj3858 := 0; ; yyj3858++ { - if yyhl3858 { - if yyj3858 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3858Slc = r.DecodeBytes(yys3858Slc, true, true) - yys3858 := string(yys3858Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3858 { - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = LimitType(r.DecodeString()) - } - case "max": - if r.TryDecodeAsNil() { - x.Max = nil - } else { - yyv3860 := &x.Max - yyv3860.CodecDecodeSelf(d) - } - case "min": - if r.TryDecodeAsNil() { - x.Min = nil - } else { - yyv3861 := &x.Min - yyv3861.CodecDecodeSelf(d) - } - case "default": - if r.TryDecodeAsNil() { - x.Default = nil - } else { - yyv3862 := &x.Default - yyv3862.CodecDecodeSelf(d) - } - case "defaultRequest": - if r.TryDecodeAsNil() { - x.DefaultRequest = nil - } else { - yyv3863 := &x.DefaultRequest - yyv3863.CodecDecodeSelf(d) - } - case "maxLimitRequestRatio": - if r.TryDecodeAsNil() { - x.MaxLimitRequestRatio = nil - } else { - yyv3864 := &x.MaxLimitRequestRatio - yyv3864.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3858) - } // end switch yys3858 - } // end for yyj3858 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -48414,9 +48485,9 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Type = "" + x.Kind = "" } else { - x.Type = LimitType(r.DecodeString()) + x.Kind = string(r.DecodeString()) } yyj3865++ if yyhl3865 { @@ -48430,10 +48501,9 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Max = nil + x.APIVersion = "" } else { - yyv3867 := &x.Max - yyv3867.CodecDecodeSelf(d) + x.APIVersion = string(r.DecodeString()) } yyj3865++ if yyhl3865 { @@ -48447,62 +48517,11 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Min = nil + x.Reference = ObjectReference{} } else { - yyv3868 := &x.Min + yyv3868 := &x.Reference yyv3868.CodecDecodeSelf(d) } - yyj3865++ - if yyhl3865 { - yyb3865 = yyj3865 > l - } else { - yyb3865 = r.CheckBreak() - } - if yyb3865 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Default = nil - } else { - yyv3869 := &x.Default - yyv3869.CodecDecodeSelf(d) - } - yyj3865++ - if yyhl3865 { - yyb3865 = yyj3865 > l - } else { - yyb3865 = r.CheckBreak() - } - if yyb3865 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DefaultRequest = nil - } else { - yyv3870 := &x.DefaultRequest - yyv3870.CodecDecodeSelf(d) - } - yyj3865++ - if yyhl3865 { - yyb3865 = yyj3865 > l - } else { - yyb3865 = r.CheckBreak() - } - if yyb3865 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaxLimitRequestRatio = nil - } else { - yyv3871 := &x.MaxLimitRequestRatio - yyv3871.CodecDecodeSelf(d) - } for { yyj3865++ if yyhl3865 { @@ -48519,64 +48538,89 @@ func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym3872 := z.EncBinary() - _ = yym3872 + yym3869 := z.EncBinary() + _ = yym3869 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3873 := !z.EncBinary() - yy2arr3873 := z.EncBasicHandle().StructToArray - var yyq3873 [1]bool - _, _, _ = yysep3873, yyq3873, yy2arr3873 - const yyr3873 bool = false - var yynn3873 int - if yyr3873 || yy2arr3873 { - r.EncodeArrayStart(1) + yysep3870 := !z.EncBinary() + yy2arr3870 := z.EncBasicHandle().StructToArray + var yyq3870 [2]bool + _, _, _ = yysep3870, yyq3870, yy2arr3870 + const yyr3870 bool = false + yyq3870[0] = x.Component != "" + yyq3870[1] = x.Host != "" + var yynn3870 int + if yyr3870 || yy2arr3870 { + r.EncodeArrayStart(2) } else { - yynn3873 = 1 - for _, b := range yyq3873 { + yynn3870 = 0 + for _, b := range yyq3870 { if b { - yynn3873++ + yynn3870++ } } - r.EncodeMapStart(yynn3873) - yynn3873 = 0 + r.EncodeMapStart(yynn3870) + yynn3870 = 0 } - if yyr3873 || yy2arr3873 { + if yyr3870 || yy2arr3870 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Limits == nil { - r.EncodeNil() + if yyq3870[0] { + yym3872 := z.EncBinary() + _ = yym3872 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Component)) + } } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3870[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("component")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3873 := z.EncBinary() + _ = yym3873 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Component)) + } + } + } + if yyr3870 || yy2arr3870 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3870[1] { yym3875 := z.EncBinary() _ = yym3875 if false { } else { - h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } + } else { + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("limits")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Limits == nil { - r.EncodeNil() - } else { + if yyq3870[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("host")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3876 := z.EncBinary() _ = yym3876 if false { } else { - h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - if yyr3873 || yy2arr3873 { + if yyr3870 || yy2arr3870 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48585,7 +48629,7 @@ func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *LimitRangeSpec) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *EventSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -48615,7 +48659,7 @@ func (x *LimitRangeSpec) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -48637,17 +48681,17 @@ func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { yys3879 := string(yys3879Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3879 { - case "limits": + case "component": if r.TryDecodeAsNil() { - x.Limits = nil + x.Component = "" } else { - yyv3880 := &x.Limits - yym3881 := z.DecBinary() - _ = yym3881 - if false { - } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3880), d) - } + x.Component = string(r.DecodeString()) + } + case "host": + if r.TryDecodeAsNil() { + x.Host = "" + } else { + x.Host = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3879) @@ -48656,7 +48700,7 @@ func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -48675,15 +48719,25 @@ func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Limits = nil + x.Component = "" } else { - yyv3883 := &x.Limits - yym3884 := z.DecBinary() - _ = yym3884 - if false { - } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3883), d) - } + x.Component = string(r.DecodeString()) + } + yyj3882++ + if yyhl3882 { + yyb3882 = yyj3882 > l + } else { + yyb3882 = r.CheckBreak() + } + if yyb3882 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Host = "" + } else { + x.Host = string(r.DecodeString()) } for { yyj3882++ @@ -48701,7 +48755,7 @@ func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -48715,16 +48769,23 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep3886 := !z.EncBinary() yy2arr3886 := z.EncBasicHandle().StructToArray - var yyq3886 [4]bool + var yyq3886 [11]bool _, _, _ = yysep3886, yyq3886, yy2arr3886 const yyr3886 bool = false yyq3886[0] = x.Kind != "" yyq3886[1] = x.APIVersion != "" yyq3886[2] = true yyq3886[3] = true + yyq3886[4] = x.Reason != "" + yyq3886[5] = x.Message != "" + yyq3886[6] = true + yyq3886[7] = true + yyq3886[8] = true + yyq3886[9] = x.Count != 0 + yyq3886[10] = x.Type != "" var yynn3886 int if yyr3886 || yy2arr3886 { - r.EncodeArrayStart(4) + r.EncodeArrayStart(11) } else { yynn3886 = 0 for _, b := range yyq3886 { @@ -48805,7 +48866,7 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { if yyr3886 || yy2arr3886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3886[3] { - yy3897 := &x.Spec + yy3897 := &x.InvolvedObject yy3897.CodecEncodeSelf(e) } else { r.EncodeNil() @@ -48813,12 +48874,203 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { } else { if yyq3886[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) + r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3898 := &x.Spec + yy3898 := &x.InvolvedObject yy3898.CodecEncodeSelf(e) } } + if yyr3886 || yy2arr3886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3886[4] { + yym3900 := z.EncBinary() + _ = yym3900 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3886[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3901 := z.EncBinary() + _ = yym3901 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr3886 || yy2arr3886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3886[5] { + yym3903 := z.EncBinary() + _ = yym3903 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3886[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3904 := z.EncBinary() + _ = yym3904 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr3886 || yy2arr3886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3886[6] { + yy3906 := &x.Source + yy3906.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3886[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("source")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3907 := &x.Source + yy3907.CodecEncodeSelf(e) + } + } + if yyr3886 || yy2arr3886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3886[7] { + yy3909 := &x.FirstTimestamp + yym3910 := z.EncBinary() + _ = yym3910 + if false { + } else if z.HasExtensions() && z.EncExt(yy3909) { + } else if yym3910 { + z.EncBinaryMarshal(yy3909) + } else if !yym3910 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3909) + } else { + z.EncFallback(yy3909) + } + } else { + r.EncodeNil() + } + } else { + if yyq3886[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3911 := &x.FirstTimestamp + yym3912 := z.EncBinary() + _ = yym3912 + if false { + } else if z.HasExtensions() && z.EncExt(yy3911) { + } else if yym3912 { + z.EncBinaryMarshal(yy3911) + } else if !yym3912 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3911) + } else { + z.EncFallback(yy3911) + } + } + } + if yyr3886 || yy2arr3886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3886[8] { + yy3914 := &x.LastTimestamp + yym3915 := z.EncBinary() + _ = yym3915 + if false { + } else if z.HasExtensions() && z.EncExt(yy3914) { + } else if yym3915 { + z.EncBinaryMarshal(yy3914) + } else if !yym3915 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3914) + } else { + z.EncFallback(yy3914) + } + } else { + r.EncodeNil() + } + } else { + if yyq3886[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3916 := &x.LastTimestamp + yym3917 := z.EncBinary() + _ = yym3917 + if false { + } else if z.HasExtensions() && z.EncExt(yy3916) { + } else if yym3917 { + z.EncBinaryMarshal(yy3916) + } else if !yym3917 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3916) + } else { + z.EncFallback(yy3916) + } + } + } + if yyr3886 || yy2arr3886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3886[9] { + yym3919 := z.EncBinary() + _ = yym3919 + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq3886[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("count")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3920 := z.EncBinary() + _ = yym3920 + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } + } + if yyr3886 || yy2arr3886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3886[10] { + yym3922 := z.EncBinary() + _ = yym3922 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3886[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3923 := z.EncBinary() + _ = yym3923 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } + } if yyr3886 || yy2arr3886 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { @@ -48828,29 +49080,29 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *Event) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3899 := z.DecBinary() - _ = yym3899 + yym3924 := z.DecBinary() + _ = yym3924 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3900 := r.ContainerType() - if yyct3900 == codecSelferValueTypeMap1234 { - yyl3900 := r.ReadMapStart() - if yyl3900 == 0 { + yyct3925 := r.ContainerType() + if yyct3925 == codecSelferValueTypeMap1234 { + yyl3925 := r.ReadMapStart() + if yyl3925 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3900, d) + x.codecDecodeSelfFromMap(yyl3925, d) } - } else if yyct3900 == codecSelferValueTypeArray1234 { - yyl3900 := r.ReadArrayStart() - if yyl3900 == 0 { + } else if yyct3925 == codecSelferValueTypeArray1234 { + yyl3925 := r.ReadArrayStart() + if yyl3925 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3900, d) + x.codecDecodeSelfFromArray(yyl3925, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48858,16 +49110,16 @@ func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3901Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3901Slc - var yyhl3901 bool = l >= 0 - for yyj3901 := 0; ; yyj3901++ { - if yyhl3901 { - if yyj3901 >= l { + var yys3926Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3926Slc + var yyhl3926 bool = l >= 0 + for yyj3926 := 0; ; yyj3926++ { + if yyhl3926 { + if yyj3926 >= l { break } } else { @@ -48876,10 +49128,10 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3901Slc = r.DecodeBytes(yys3901Slc, true, true) - yys3901 := string(yys3901Slc) + yys3926Slc = r.DecodeBytes(yys3926Slc, true, true) + yys3926 := string(yys3926Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3901 { + switch yys3926 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -48896,37 +49148,102 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3904 := &x.ObjectMeta - yyv3904.CodecDecodeSelf(d) + yyv3929 := &x.ObjectMeta + yyv3929.CodecDecodeSelf(d) } - case "spec": + case "involvedObject": if r.TryDecodeAsNil() { - x.Spec = LimitRangeSpec{} + x.InvolvedObject = ObjectReference{} } else { - yyv3905 := &x.Spec - yyv3905.CodecDecodeSelf(d) + yyv3930 := &x.InvolvedObject + yyv3930.CodecDecodeSelf(d) + } + case "reason": + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + case "message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + case "source": + if r.TryDecodeAsNil() { + x.Source = EventSource{} + } else { + yyv3933 := &x.Source + yyv3933.CodecDecodeSelf(d) + } + case "firstTimestamp": + if r.TryDecodeAsNil() { + x.FirstTimestamp = pkg2_unversioned.Time{} + } else { + yyv3934 := &x.FirstTimestamp + yym3935 := z.DecBinary() + _ = yym3935 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3934) { + } else if yym3935 { + z.DecBinaryUnmarshal(yyv3934) + } else if !yym3935 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3934) + } else { + z.DecFallback(yyv3934, false) + } + } + case "lastTimestamp": + if r.TryDecodeAsNil() { + x.LastTimestamp = pkg2_unversioned.Time{} + } else { + yyv3936 := &x.LastTimestamp + yym3937 := z.DecBinary() + _ = yym3937 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3936) { + } else if yym3937 { + z.DecBinaryUnmarshal(yyv3936) + } else if !yym3937 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3936) + } else { + z.DecFallback(yyv3936, false) + } + } + case "count": + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = int32(r.DecodeInt(32)) + } + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3901) - } // end switch yys3901 - } // end for yyj3901 + z.DecStructFieldNotFound(-1, yys3926) + } // end switch yys3926 + } // end for yyj3926 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3906 int - var yyb3906 bool - var yyhl3906 bool = l >= 0 - yyj3906++ - if yyhl3906 { - yyb3906 = yyj3906 > l + var yyj3940 int + var yyb3940 bool + var yyhl3940 bool = l >= 0 + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb3906 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb3906 { + if yyb3940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48936,13 +49253,13 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3906++ - if yyhl3906 { - yyb3906 = yyj3906 > l + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb3906 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb3906 { + if yyb3940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48952,13 +49269,13 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3906++ - if yyhl3906 { - yyb3906 = yyj3906 > l + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb3906 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb3906 { + if yyb3940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -48966,80 +49283,215 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3909 := &x.ObjectMeta - yyv3909.CodecDecodeSelf(d) + yyv3943 := &x.ObjectMeta + yyv3943.CodecDecodeSelf(d) } - yyj3906++ - if yyhl3906 { - yyb3906 = yyj3906 > l + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb3906 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb3906 { + if yyb3940 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = LimitRangeSpec{} + x.InvolvedObject = ObjectReference{} } else { - yyv3910 := &x.Spec - yyv3910.CodecDecodeSelf(d) + yyv3944 := &x.InvolvedObject + yyv3944.CodecDecodeSelf(d) + } + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l + } else { + yyb3940 = r.CheckBreak() + } + if yyb3940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l + } else { + yyb3940 = r.CheckBreak() + } + if yyb3940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l + } else { + yyb3940 = r.CheckBreak() + } + if yyb3940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Source = EventSource{} + } else { + yyv3947 := &x.Source + yyv3947.CodecDecodeSelf(d) + } + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l + } else { + yyb3940 = r.CheckBreak() + } + if yyb3940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FirstTimestamp = pkg2_unversioned.Time{} + } else { + yyv3948 := &x.FirstTimestamp + yym3949 := z.DecBinary() + _ = yym3949 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3948) { + } else if yym3949 { + z.DecBinaryUnmarshal(yyv3948) + } else if !yym3949 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3948) + } else { + z.DecFallback(yyv3948, false) + } + } + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l + } else { + yyb3940 = r.CheckBreak() + } + if yyb3940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTimestamp = pkg2_unversioned.Time{} + } else { + yyv3950 := &x.LastTimestamp + yym3951 := z.DecBinary() + _ = yym3951 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3950) { + } else if yym3951 { + z.DecBinaryUnmarshal(yyv3950) + } else if !yym3951 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3950) + } else { + z.DecFallback(yyv3950, false) + } + } + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l + } else { + yyb3940 = r.CheckBreak() + } + if yyb3940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = int32(r.DecodeInt(32)) + } + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l + } else { + yyb3940 = r.CheckBreak() + } + if yyb3940 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = string(r.DecodeString()) } for { - yyj3906++ - if yyhl3906 { - yyb3906 = yyj3906 > l + yyj3940++ + if yyhl3940 { + yyb3940 = yyj3940 > l } else { - yyb3906 = r.CheckBreak() + yyb3940 = r.CheckBreak() } - if yyb3906 { + if yyb3940 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3906-1, "") + z.DecStructFieldNotFound(yyj3940-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym3911 := z.EncBinary() - _ = yym3911 + yym3954 := z.EncBinary() + _ = yym3954 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3912 := !z.EncBinary() - yy2arr3912 := z.EncBasicHandle().StructToArray - var yyq3912 [4]bool - _, _, _ = yysep3912, yyq3912, yy2arr3912 - const yyr3912 bool = false - yyq3912[0] = x.Kind != "" - yyq3912[1] = x.APIVersion != "" - yyq3912[2] = true - var yynn3912 int - if yyr3912 || yy2arr3912 { + yysep3955 := !z.EncBinary() + yy2arr3955 := z.EncBasicHandle().StructToArray + var yyq3955 [4]bool + _, _, _ = yysep3955, yyq3955, yy2arr3955 + const yyr3955 bool = false + yyq3955[0] = x.Kind != "" + yyq3955[1] = x.APIVersion != "" + yyq3955[2] = true + var yynn3955 int + if yyr3955 || yy2arr3955 { r.EncodeArrayStart(4) } else { - yynn3912 = 1 - for _, b := range yyq3912 { + yynn3955 = 1 + for _, b := range yyq3955 { if b { - yynn3912++ + yynn3955++ } } - r.EncodeMapStart(yynn3912) - yynn3912 = 0 + r.EncodeMapStart(yynn3955) + yynn3955 = 0 } - if yyr3912 || yy2arr3912 { + if yyr3955 || yy2arr3955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3912[0] { - yym3914 := z.EncBinary() - _ = yym3914 + if yyq3955[0] { + yym3957 := z.EncBinary() + _ = yym3957 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -49048,23 +49500,23 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3912[0] { + if yyq3955[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3915 := z.EncBinary() - _ = yym3915 + yym3958 := z.EncBinary() + _ = yym3958 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3912 || yy2arr3912 { + if yyr3955 || yy2arr3955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3912[1] { - yym3917 := z.EncBinary() - _ = yym3917 + if yyq3955[1] { + yym3960 := z.EncBinary() + _ = yym3960 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -49073,57 +49525,57 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3912[1] { + if yyq3955[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3918 := z.EncBinary() - _ = yym3918 + yym3961 := z.EncBinary() + _ = yym3961 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3912 || yy2arr3912 { + if yyr3955 || yy2arr3955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3912[2] { - yy3920 := &x.ListMeta - yym3921 := z.EncBinary() - _ = yym3921 + if yyq3955[2] { + yy3963 := &x.ListMeta + yym3964 := z.EncBinary() + _ = yym3964 if false { - } else if z.HasExtensions() && z.EncExt(yy3920) { + } else if z.HasExtensions() && z.EncExt(yy3963) { } else { - z.EncFallback(yy3920) + z.EncFallback(yy3963) } } else { r.EncodeNil() } } else { - if yyq3912[2] { + if yyq3955[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3922 := &x.ListMeta - yym3923 := z.EncBinary() - _ = yym3923 + yy3965 := &x.ListMeta + yym3966 := z.EncBinary() + _ = yym3966 if false { - } else if z.HasExtensions() && z.EncExt(yy3922) { + } else if z.HasExtensions() && z.EncExt(yy3965) { } else { - z.EncFallback(yy3922) + z.EncFallback(yy3965) } } } - if yyr3912 || yy2arr3912 { + if yyr3955 || yy2arr3955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3925 := z.EncBinary() - _ = yym3925 + yym3968 := z.EncBinary() + _ = yym3968 if false { } else { - h.encSliceLimitRange(([]LimitRange)(x.Items), e) + h.encSliceEvent(([]Event)(x.Items), e) } } } else { @@ -49133,15 +49585,15 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3926 := z.EncBinary() - _ = yym3926 + yym3969 := z.EncBinary() + _ = yym3969 if false { } else { - h.encSliceLimitRange(([]LimitRange)(x.Items), e) + h.encSliceEvent(([]Event)(x.Items), e) } } } - if yyr3912 || yy2arr3912 { + if yyr3955 || yy2arr3955 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49150,29 +49602,29 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *EventList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3927 := z.DecBinary() - _ = yym3927 + yym3970 := z.DecBinary() + _ = yym3970 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3928 := r.ContainerType() - if yyct3928 == codecSelferValueTypeMap1234 { - yyl3928 := r.ReadMapStart() - if yyl3928 == 0 { + yyct3971 := r.ContainerType() + if yyct3971 == codecSelferValueTypeMap1234 { + yyl3971 := r.ReadMapStart() + if yyl3971 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3928, d) + x.codecDecodeSelfFromMap(yyl3971, d) } - } else if yyct3928 == codecSelferValueTypeArray1234 { - yyl3928 := r.ReadArrayStart() - if yyl3928 == 0 { + } else if yyct3971 == codecSelferValueTypeArray1234 { + yyl3971 := r.ReadArrayStart() + if yyl3971 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3928, d) + x.codecDecodeSelfFromArray(yyl3971, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49180,16 +49632,16 @@ func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3929Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3929Slc - var yyhl3929 bool = l >= 0 - for yyj3929 := 0; ; yyj3929++ { - if yyhl3929 { - if yyj3929 >= l { + var yys3972Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3972Slc + var yyhl3972 bool = l >= 0 + for yyj3972 := 0; ; yyj3972++ { + if yyhl3972 { + if yyj3972 >= l { break } } else { @@ -49198,10 +49650,10 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3929Slc = r.DecodeBytes(yys3929Slc, true, true) - yys3929 := string(yys3929Slc) + yys3972Slc = r.DecodeBytes(yys3972Slc, true, true) + yys3972 := string(yys3972Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3929 { + switch yys3972 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -49218,48 +49670,48 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3932 := &x.ListMeta - yym3933 := z.DecBinary() - _ = yym3933 + yyv3975 := &x.ListMeta + yym3976 := z.DecBinary() + _ = yym3976 if false { - } else if z.HasExtensions() && z.DecExt(yyv3932) { + } else if z.HasExtensions() && z.DecExt(yyv3975) { } else { - z.DecFallback(yyv3932, false) + z.DecFallback(yyv3975, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3934 := &x.Items - yym3935 := z.DecBinary() - _ = yym3935 + yyv3977 := &x.Items + yym3978 := z.DecBinary() + _ = yym3978 if false { } else { - h.decSliceLimitRange((*[]LimitRange)(yyv3934), d) + h.decSliceEvent((*[]Event)(yyv3977), d) } } default: - z.DecStructFieldNotFound(-1, yys3929) - } // end switch yys3929 - } // end for yyj3929 + z.DecStructFieldNotFound(-1, yys3972) + } // end switch yys3972 + } // end for yyj3972 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3936 int - var yyb3936 bool - var yyhl3936 bool = l >= 0 - yyj3936++ - if yyhl3936 { - yyb3936 = yyj3936 > l + var yyj3979 int + var yyb3979 bool + var yyhl3979 bool = l >= 0 + yyj3979++ + if yyhl3979 { + yyb3979 = yyj3979 > l } else { - yyb3936 = r.CheckBreak() + yyb3979 = r.CheckBreak() } - if yyb3936 { + if yyb3979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49269,13 +49721,13 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3936++ - if yyhl3936 { - yyb3936 = yyj3936 > l + yyj3979++ + if yyhl3979 { + yyb3979 = yyj3979 > l } else { - yyb3936 = r.CheckBreak() + yyb3979 = r.CheckBreak() } - if yyb3936 { + if yyb3979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49285,13 +49737,13 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3936++ - if yyhl3936 { - yyb3936 = yyj3936 > l + yyj3979++ + if yyhl3979 { + yyb3979 = yyj3979 > l } else { - yyb3936 = r.CheckBreak() + yyb3979 = r.CheckBreak() } - if yyb3936 { + if yyb3979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49299,22 +49751,22 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3939 := &x.ListMeta - yym3940 := z.DecBinary() - _ = yym3940 + yyv3982 := &x.ListMeta + yym3983 := z.DecBinary() + _ = yym3983 if false { - } else if z.HasExtensions() && z.DecExt(yyv3939) { + } else if z.HasExtensions() && z.DecExt(yyv3982) { } else { - z.DecFallback(yyv3939, false) + z.DecFallback(yyv3982, false) } } - yyj3936++ - if yyhl3936 { - yyb3936 = yyj3936 > l + yyj3979++ + if yyhl3979 { + yyb3979 = yyj3979 > l } else { - yyb3936 = r.CheckBreak() + yyb3979 = r.CheckBreak() } - if yyb3936 { + if yyb3979 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49322,26 +49774,1622 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3941 := &x.Items - yym3942 := z.DecBinary() - _ = yym3942 + yyv3984 := &x.Items + yym3985 := z.DecBinary() + _ = yym3985 if false { } else { - h.decSliceLimitRange((*[]LimitRange)(yyv3941), d) + h.decSliceEvent((*[]Event)(yyv3984), d) } } for { - yyj3936++ - if yyhl3936 { - yyb3936 = yyj3936 > l + yyj3979++ + if yyhl3979 { + yyb3979 = yyj3979 > l } else { - yyb3936 = r.CheckBreak() + yyb3979 = r.CheckBreak() } - if yyb3936 { + if yyb3979 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3936-1, "") + z.DecStructFieldNotFound(yyj3979-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3986 := z.EncBinary() + _ = yym3986 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3987 := !z.EncBinary() + yy2arr3987 := z.EncBasicHandle().StructToArray + var yyq3987 [4]bool + _, _, _ = yysep3987, yyq3987, yy2arr3987 + const yyr3987 bool = false + yyq3987[0] = x.Kind != "" + yyq3987[1] = x.APIVersion != "" + yyq3987[2] = true + var yynn3987 int + if yyr3987 || yy2arr3987 { + r.EncodeArrayStart(4) + } else { + yynn3987 = 1 + for _, b := range yyq3987 { + if b { + yynn3987++ + } + } + r.EncodeMapStart(yynn3987) + yynn3987 = 0 + } + if yyr3987 || yy2arr3987 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3987[0] { + yym3989 := z.EncBinary() + _ = yym3989 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3987[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3990 := z.EncBinary() + _ = yym3990 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3987 || yy2arr3987 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3987[1] { + yym3992 := z.EncBinary() + _ = yym3992 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3987[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3993 := z.EncBinary() + _ = yym3993 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3987 || yy2arr3987 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3987[2] { + yy3995 := &x.ListMeta + yym3996 := z.EncBinary() + _ = yym3996 + if false { + } else if z.HasExtensions() && z.EncExt(yy3995) { + } else { + z.EncFallback(yy3995) + } + } else { + r.EncodeNil() + } + } else { + if yyq3987[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3997 := &x.ListMeta + yym3998 := z.EncBinary() + _ = yym3998 + if false { + } else if z.HasExtensions() && z.EncExt(yy3997) { + } else { + z.EncFallback(yy3997) + } + } + } + if yyr3987 || yy2arr3987 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4000 := z.EncBinary() + _ = yym4000 + if false { + } else { + h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4001 := z.EncBinary() + _ = yym4001 + if false { + } else { + h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) + } + } + } + if yyr3987 || yy2arr3987 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *List) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4002 := z.DecBinary() + _ = yym4002 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4003 := r.ContainerType() + if yyct4003 == codecSelferValueTypeMap1234 { + yyl4003 := r.ReadMapStart() + if yyl4003 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4003, d) + } + } else if yyct4003 == codecSelferValueTypeArray1234 { + yyl4003 := r.ReadArrayStart() + if yyl4003 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4003, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4004Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4004Slc + var yyhl4004 bool = l >= 0 + for yyj4004 := 0; ; yyj4004++ { + if yyhl4004 { + if yyj4004 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4004Slc = r.DecodeBytes(yys4004Slc, true, true) + yys4004 := string(yys4004Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4004 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4007 := &x.ListMeta + yym4008 := z.DecBinary() + _ = yym4008 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4007) { + } else { + z.DecFallback(yyv4007, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4009 := &x.Items + yym4010 := z.DecBinary() + _ = yym4010 + if false { + } else { + h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4009), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4004) + } // end switch yys4004 + } // end for yyj4004 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4011 int + var yyb4011 bool + var yyhl4011 bool = l >= 0 + yyj4011++ + if yyhl4011 { + yyb4011 = yyj4011 > l + } else { + yyb4011 = r.CheckBreak() + } + if yyb4011 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4011++ + if yyhl4011 { + yyb4011 = yyj4011 > l + } else { + yyb4011 = r.CheckBreak() + } + if yyb4011 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4011++ + if yyhl4011 { + yyb4011 = yyj4011 > l + } else { + yyb4011 = r.CheckBreak() + } + if yyb4011 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4014 := &x.ListMeta + yym4015 := z.DecBinary() + _ = yym4015 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4014) { + } else { + z.DecFallback(yyv4014, false) + } + } + yyj4011++ + if yyhl4011 { + yyb4011 = yyj4011 > l + } else { + yyb4011 = r.CheckBreak() + } + if yyb4011 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4016 := &x.Items + yym4017 := z.DecBinary() + _ = yym4017 + if false { + } else { + h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4016), d) + } + } + for { + yyj4011++ + if yyhl4011 { + yyb4011 = yyj4011 > l + } else { + yyb4011 = r.CheckBreak() + } + if yyb4011 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4011-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym4018 := z.EncBinary() + _ = yym4018 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *LimitType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4019 := z.DecBinary() + _ = yym4019 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4020 := z.EncBinary() + _ = yym4020 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4021 := !z.EncBinary() + yy2arr4021 := z.EncBasicHandle().StructToArray + var yyq4021 [6]bool + _, _, _ = yysep4021, yyq4021, yy2arr4021 + const yyr4021 bool = false + yyq4021[0] = x.Type != "" + yyq4021[1] = len(x.Max) != 0 + yyq4021[2] = len(x.Min) != 0 + yyq4021[3] = len(x.Default) != 0 + yyq4021[4] = len(x.DefaultRequest) != 0 + yyq4021[5] = len(x.MaxLimitRequestRatio) != 0 + var yynn4021 int + if yyr4021 || yy2arr4021 { + r.EncodeArrayStart(6) + } else { + yynn4021 = 0 + for _, b := range yyq4021 { + if b { + yynn4021++ + } + } + r.EncodeMapStart(yynn4021) + yynn4021 = 0 + } + if yyr4021 || yy2arr4021 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4021[0] { + x.Type.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4021[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + } + if yyr4021 || yy2arr4021 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4021[1] { + if x.Max == nil { + r.EncodeNil() + } else { + x.Max.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4021[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("max")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Max == nil { + r.EncodeNil() + } else { + x.Max.CodecEncodeSelf(e) + } + } + } + if yyr4021 || yy2arr4021 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4021[2] { + if x.Min == nil { + r.EncodeNil() + } else { + x.Min.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4021[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("min")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Min == nil { + r.EncodeNil() + } else { + x.Min.CodecEncodeSelf(e) + } + } + } + if yyr4021 || yy2arr4021 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4021[3] { + if x.Default == nil { + r.EncodeNil() + } else { + x.Default.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4021[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("default")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Default == nil { + r.EncodeNil() + } else { + x.Default.CodecEncodeSelf(e) + } + } + } + if yyr4021 || yy2arr4021 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4021[4] { + if x.DefaultRequest == nil { + r.EncodeNil() + } else { + x.DefaultRequest.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4021[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("defaultRequest")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DefaultRequest == nil { + r.EncodeNil() + } else { + x.DefaultRequest.CodecEncodeSelf(e) + } + } + } + if yyr4021 || yy2arr4021 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4021[5] { + if x.MaxLimitRequestRatio == nil { + r.EncodeNil() + } else { + x.MaxLimitRequestRatio.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4021[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("maxLimitRequestRatio")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.MaxLimitRequestRatio == nil { + r.EncodeNil() + } else { + x.MaxLimitRequestRatio.CodecEncodeSelf(e) + } + } + } + if yyr4021 || yy2arr4021 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *LimitRangeItem) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4028 := z.DecBinary() + _ = yym4028 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4029 := r.ContainerType() + if yyct4029 == codecSelferValueTypeMap1234 { + yyl4029 := r.ReadMapStart() + if yyl4029 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4029, d) + } + } else if yyct4029 == codecSelferValueTypeArray1234 { + yyl4029 := r.ReadArrayStart() + if yyl4029 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4029, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4030Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4030Slc + var yyhl4030 bool = l >= 0 + for yyj4030 := 0; ; yyj4030++ { + if yyhl4030 { + if yyj4030 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4030Slc = r.DecodeBytes(yys4030Slc, true, true) + yys4030 := string(yys4030Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4030 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = LimitType(r.DecodeString()) + } + case "max": + if r.TryDecodeAsNil() { + x.Max = nil + } else { + yyv4032 := &x.Max + yyv4032.CodecDecodeSelf(d) + } + case "min": + if r.TryDecodeAsNil() { + x.Min = nil + } else { + yyv4033 := &x.Min + yyv4033.CodecDecodeSelf(d) + } + case "default": + if r.TryDecodeAsNil() { + x.Default = nil + } else { + yyv4034 := &x.Default + yyv4034.CodecDecodeSelf(d) + } + case "defaultRequest": + if r.TryDecodeAsNil() { + x.DefaultRequest = nil + } else { + yyv4035 := &x.DefaultRequest + yyv4035.CodecDecodeSelf(d) + } + case "maxLimitRequestRatio": + if r.TryDecodeAsNil() { + x.MaxLimitRequestRatio = nil + } else { + yyv4036 := &x.MaxLimitRequestRatio + yyv4036.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys4030) + } // end switch yys4030 + } // end for yyj4030 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4037 int + var yyb4037 bool + var yyhl4037 bool = l >= 0 + yyj4037++ + if yyhl4037 { + yyb4037 = yyj4037 > l + } else { + yyb4037 = r.CheckBreak() + } + if yyb4037 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = LimitType(r.DecodeString()) + } + yyj4037++ + if yyhl4037 { + yyb4037 = yyj4037 > l + } else { + yyb4037 = r.CheckBreak() + } + if yyb4037 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Max = nil + } else { + yyv4039 := &x.Max + yyv4039.CodecDecodeSelf(d) + } + yyj4037++ + if yyhl4037 { + yyb4037 = yyj4037 > l + } else { + yyb4037 = r.CheckBreak() + } + if yyb4037 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Min = nil + } else { + yyv4040 := &x.Min + yyv4040.CodecDecodeSelf(d) + } + yyj4037++ + if yyhl4037 { + yyb4037 = yyj4037 > l + } else { + yyb4037 = r.CheckBreak() + } + if yyb4037 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Default = nil + } else { + yyv4041 := &x.Default + yyv4041.CodecDecodeSelf(d) + } + yyj4037++ + if yyhl4037 { + yyb4037 = yyj4037 > l + } else { + yyb4037 = r.CheckBreak() + } + if yyb4037 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DefaultRequest = nil + } else { + yyv4042 := &x.DefaultRequest + yyv4042.CodecDecodeSelf(d) + } + yyj4037++ + if yyhl4037 { + yyb4037 = yyj4037 > l + } else { + yyb4037 = r.CheckBreak() + } + if yyb4037 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MaxLimitRequestRatio = nil + } else { + yyv4043 := &x.MaxLimitRequestRatio + yyv4043.CodecDecodeSelf(d) + } + for { + yyj4037++ + if yyhl4037 { + yyb4037 = yyj4037 > l + } else { + yyb4037 = r.CheckBreak() + } + if yyb4037 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4037-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4044 := z.EncBinary() + _ = yym4044 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4045 := !z.EncBinary() + yy2arr4045 := z.EncBasicHandle().StructToArray + var yyq4045 [1]bool + _, _, _ = yysep4045, yyq4045, yy2arr4045 + const yyr4045 bool = false + var yynn4045 int + if yyr4045 || yy2arr4045 { + r.EncodeArrayStart(1) + } else { + yynn4045 = 1 + for _, b := range yyq4045 { + if b { + yynn4045++ + } + } + r.EncodeMapStart(yynn4045) + yynn4045 = 0 + } + if yyr4045 || yy2arr4045 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Limits == nil { + r.EncodeNil() + } else { + yym4047 := z.EncBinary() + _ = yym4047 + if false { + } else { + h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("limits")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Limits == nil { + r.EncodeNil() + } else { + yym4048 := z.EncBinary() + _ = yym4048 + if false { + } else { + h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) + } + } + } + if yyr4045 || yy2arr4045 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *LimitRangeSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4049 := z.DecBinary() + _ = yym4049 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4050 := r.ContainerType() + if yyct4050 == codecSelferValueTypeMap1234 { + yyl4050 := r.ReadMapStart() + if yyl4050 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4050, d) + } + } else if yyct4050 == codecSelferValueTypeArray1234 { + yyl4050 := r.ReadArrayStart() + if yyl4050 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4050, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4051Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4051Slc + var yyhl4051 bool = l >= 0 + for yyj4051 := 0; ; yyj4051++ { + if yyhl4051 { + if yyj4051 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4051Slc = r.DecodeBytes(yys4051Slc, true, true) + yys4051 := string(yys4051Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4051 { + case "limits": + if r.TryDecodeAsNil() { + x.Limits = nil + } else { + yyv4052 := &x.Limits + yym4053 := z.DecBinary() + _ = yym4053 + if false { + } else { + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4052), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4051) + } // end switch yys4051 + } // end for yyj4051 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4054 int + var yyb4054 bool + var yyhl4054 bool = l >= 0 + yyj4054++ + if yyhl4054 { + yyb4054 = yyj4054 > l + } else { + yyb4054 = r.CheckBreak() + } + if yyb4054 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Limits = nil + } else { + yyv4055 := &x.Limits + yym4056 := z.DecBinary() + _ = yym4056 + if false { + } else { + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4055), d) + } + } + for { + yyj4054++ + if yyhl4054 { + yyb4054 = yyj4054 > l + } else { + yyb4054 = r.CheckBreak() + } + if yyb4054 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4054-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4057 := z.EncBinary() + _ = yym4057 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4058 := !z.EncBinary() + yy2arr4058 := z.EncBasicHandle().StructToArray + var yyq4058 [4]bool + _, _, _ = yysep4058, yyq4058, yy2arr4058 + const yyr4058 bool = false + yyq4058[0] = x.Kind != "" + yyq4058[1] = x.APIVersion != "" + yyq4058[2] = true + yyq4058[3] = true + var yynn4058 int + if yyr4058 || yy2arr4058 { + r.EncodeArrayStart(4) + } else { + yynn4058 = 0 + for _, b := range yyq4058 { + if b { + yynn4058++ + } + } + r.EncodeMapStart(yynn4058) + yynn4058 = 0 + } + if yyr4058 || yy2arr4058 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4058[0] { + yym4060 := z.EncBinary() + _ = yym4060 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4058[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4061 := z.EncBinary() + _ = yym4061 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4058 || yy2arr4058 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4058[1] { + yym4063 := z.EncBinary() + _ = yym4063 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4058[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4064 := z.EncBinary() + _ = yym4064 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4058 || yy2arr4058 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4058[2] { + yy4066 := &x.ObjectMeta + yy4066.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq4058[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4067 := &x.ObjectMeta + yy4067.CodecEncodeSelf(e) + } + } + if yyr4058 || yy2arr4058 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4058[3] { + yy4069 := &x.Spec + yy4069.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq4058[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4070 := &x.Spec + yy4070.CodecEncodeSelf(e) + } + } + if yyr4058 || yy2arr4058 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4071 := z.DecBinary() + _ = yym4071 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4072 := r.ContainerType() + if yyct4072 == codecSelferValueTypeMap1234 { + yyl4072 := r.ReadMapStart() + if yyl4072 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4072, d) + } + } else if yyct4072 == codecSelferValueTypeArray1234 { + yyl4072 := r.ReadArrayStart() + if yyl4072 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4072, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4073Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4073Slc + var yyhl4073 bool = l >= 0 + for yyj4073 := 0; ; yyj4073++ { + if yyhl4073 { + if yyj4073 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4073Slc = r.DecodeBytes(yys4073Slc, true, true) + yys4073 := string(yys4073Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4073 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv4076 := &x.ObjectMeta + yyv4076.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = LimitRangeSpec{} + } else { + yyv4077 := &x.Spec + yyv4077.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys4073) + } // end switch yys4073 + } // end for yyj4073 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4078 int + var yyb4078 bool + var yyhl4078 bool = l >= 0 + yyj4078++ + if yyhl4078 { + yyb4078 = yyj4078 > l + } else { + yyb4078 = r.CheckBreak() + } + if yyb4078 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4078++ + if yyhl4078 { + yyb4078 = yyj4078 > l + } else { + yyb4078 = r.CheckBreak() + } + if yyb4078 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4078++ + if yyhl4078 { + yyb4078 = yyj4078 > l + } else { + yyb4078 = r.CheckBreak() + } + if yyb4078 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv4081 := &x.ObjectMeta + yyv4081.CodecDecodeSelf(d) + } + yyj4078++ + if yyhl4078 { + yyb4078 = yyj4078 > l + } else { + yyb4078 = r.CheckBreak() + } + if yyb4078 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = LimitRangeSpec{} + } else { + yyv4082 := &x.Spec + yyv4082.CodecDecodeSelf(d) + } + for { + yyj4078++ + if yyhl4078 { + yyb4078 = yyj4078 > l + } else { + yyb4078 = r.CheckBreak() + } + if yyb4078 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4078-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4083 := z.EncBinary() + _ = yym4083 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4084 := !z.EncBinary() + yy2arr4084 := z.EncBasicHandle().StructToArray + var yyq4084 [4]bool + _, _, _ = yysep4084, yyq4084, yy2arr4084 + const yyr4084 bool = false + yyq4084[0] = x.Kind != "" + yyq4084[1] = x.APIVersion != "" + yyq4084[2] = true + var yynn4084 int + if yyr4084 || yy2arr4084 { + r.EncodeArrayStart(4) + } else { + yynn4084 = 1 + for _, b := range yyq4084 { + if b { + yynn4084++ + } + } + r.EncodeMapStart(yynn4084) + yynn4084 = 0 + } + if yyr4084 || yy2arr4084 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4084[0] { + yym4086 := z.EncBinary() + _ = yym4086 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4084[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4087 := z.EncBinary() + _ = yym4087 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4084 || yy2arr4084 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4084[1] { + yym4089 := z.EncBinary() + _ = yym4089 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4084[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4090 := z.EncBinary() + _ = yym4090 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4084 || yy2arr4084 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4084[2] { + yy4092 := &x.ListMeta + yym4093 := z.EncBinary() + _ = yym4093 + if false { + } else if z.HasExtensions() && z.EncExt(yy4092) { + } else { + z.EncFallback(yy4092) + } + } else { + r.EncodeNil() + } + } else { + if yyq4084[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4094 := &x.ListMeta + yym4095 := z.EncBinary() + _ = yym4095 + if false { + } else if z.HasExtensions() && z.EncExt(yy4094) { + } else { + z.EncFallback(yy4094) + } + } + } + if yyr4084 || yy2arr4084 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4097 := z.EncBinary() + _ = yym4097 + if false { + } else { + h.encSliceLimitRange(([]LimitRange)(x.Items), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4098 := z.EncBinary() + _ = yym4098 + if false { + } else { + h.encSliceLimitRange(([]LimitRange)(x.Items), e) + } + } + } + if yyr4084 || yy2arr4084 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4099 := z.DecBinary() + _ = yym4099 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4100 := r.ContainerType() + if yyct4100 == codecSelferValueTypeMap1234 { + yyl4100 := r.ReadMapStart() + if yyl4100 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4100, d) + } + } else if yyct4100 == codecSelferValueTypeArray1234 { + yyl4100 := r.ReadArrayStart() + if yyl4100 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4100, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4101Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4101Slc + var yyhl4101 bool = l >= 0 + for yyj4101 := 0; ; yyj4101++ { + if yyhl4101 { + if yyj4101 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4101Slc = r.DecodeBytes(yys4101Slc, true, true) + yys4101 := string(yys4101Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4101 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4104 := &x.ListMeta + yym4105 := z.DecBinary() + _ = yym4105 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4104) { + } else { + z.DecFallback(yyv4104, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4106 := &x.Items + yym4107 := z.DecBinary() + _ = yym4107 + if false { + } else { + h.decSliceLimitRange((*[]LimitRange)(yyv4106), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4101) + } // end switch yys4101 + } // end for yyj4101 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4108 int + var yyb4108 bool + var yyhl4108 bool = l >= 0 + yyj4108++ + if yyhl4108 { + yyb4108 = yyj4108 > l + } else { + yyb4108 = r.CheckBreak() + } + if yyb4108 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4108++ + if yyhl4108 { + yyb4108 = yyj4108 > l + } else { + yyb4108 = r.CheckBreak() + } + if yyb4108 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4108++ + if yyhl4108 { + yyb4108 = yyj4108 > l + } else { + yyb4108 = r.CheckBreak() + } + if yyb4108 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4111 := &x.ListMeta + yym4112 := z.DecBinary() + _ = yym4112 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4111) { + } else { + z.DecFallback(yyv4111, false) + } + } + yyj4108++ + if yyhl4108 { + yyb4108 = yyj4108 > l + } else { + yyb4108 = r.CheckBreak() + } + if yyb4108 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4113 := &x.Items + yym4114 := z.DecBinary() + _ = yym4114 + if false { + } else { + h.decSliceLimitRange((*[]LimitRange)(yyv4113), d) + } + } + for { + yyj4108++ + if yyhl4108 { + yyb4108 = yyj4108 > l + } else { + yyb4108 = r.CheckBreak() + } + if yyb4108 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4108-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49350,8 +51398,8 @@ func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3943 := z.EncBinary() - _ = yym3943 + yym4115 := z.EncBinary() + _ = yym4115 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -49363,8 +51411,8 @@ func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3944 := z.DecBinary() - _ = yym3944 + yym4116 := z.DecBinary() + _ = yym4116 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -49379,34 +51427,34 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3945 := z.EncBinary() - _ = yym3945 + yym4117 := z.EncBinary() + _ = yym4117 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3946 := !z.EncBinary() - yy2arr3946 := z.EncBasicHandle().StructToArray - var yyq3946 [2]bool - _, _, _ = yysep3946, yyq3946, yy2arr3946 - const yyr3946 bool = false - yyq3946[0] = len(x.Hard) != 0 - yyq3946[1] = len(x.Scopes) != 0 - var yynn3946 int - if yyr3946 || yy2arr3946 { + yysep4118 := !z.EncBinary() + yy2arr4118 := z.EncBasicHandle().StructToArray + var yyq4118 [2]bool + _, _, _ = yysep4118, yyq4118, yy2arr4118 + const yyr4118 bool = false + yyq4118[0] = len(x.Hard) != 0 + yyq4118[1] = len(x.Scopes) != 0 + var yynn4118 int + if yyr4118 || yy2arr4118 { r.EncodeArrayStart(2) } else { - yynn3946 = 0 - for _, b := range yyq3946 { + yynn4118 = 0 + for _, b := range yyq4118 { if b { - yynn3946++ + yynn4118++ } } - r.EncodeMapStart(yynn3946) - yynn3946 = 0 + r.EncodeMapStart(yynn4118) + yynn4118 = 0 } - if yyr3946 || yy2arr3946 { + if yyr4118 || yy2arr4118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3946[0] { + if yyq4118[0] { if x.Hard == nil { r.EncodeNil() } else { @@ -49416,7 +51464,7 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3946[0] { + if yyq4118[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -49427,14 +51475,14 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3946 || yy2arr3946 { + if yyr4118 || yy2arr4118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3946[1] { + if yyq4118[1] { if x.Scopes == nil { r.EncodeNil() } else { - yym3949 := z.EncBinary() - _ = yym3949 + yym4121 := z.EncBinary() + _ = yym4121 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) @@ -49444,15 +51492,15 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3946[1] { + if yyq4118[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scopes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Scopes == nil { r.EncodeNil() } else { - yym3950 := z.EncBinary() - _ = yym3950 + yym4122 := z.EncBinary() + _ = yym4122 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) @@ -49460,7 +51508,7 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3946 || yy2arr3946 { + if yyr4118 || yy2arr4118 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49473,25 +51521,25 @@ func (x *ResourceQuotaSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3951 := z.DecBinary() - _ = yym3951 + yym4123 := z.DecBinary() + _ = yym4123 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3952 := r.ContainerType() - if yyct3952 == codecSelferValueTypeMap1234 { - yyl3952 := r.ReadMapStart() - if yyl3952 == 0 { + yyct4124 := r.ContainerType() + if yyct4124 == codecSelferValueTypeMap1234 { + yyl4124 := r.ReadMapStart() + if yyl4124 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3952, d) + x.codecDecodeSelfFromMap(yyl4124, d) } - } else if yyct3952 == codecSelferValueTypeArray1234 { - yyl3952 := r.ReadArrayStart() - if yyl3952 == 0 { + } else if yyct4124 == codecSelferValueTypeArray1234 { + yyl4124 := r.ReadArrayStart() + if yyl4124 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3952, d) + x.codecDecodeSelfFromArray(yyl4124, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49503,12 +51551,12 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3953Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3953Slc - var yyhl3953 bool = l >= 0 - for yyj3953 := 0; ; yyj3953++ { - if yyhl3953 { - if yyj3953 >= l { + var yys4125Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4125Slc + var yyhl4125 bool = l >= 0 + for yyj4125 := 0; ; yyj4125++ { + if yyhl4125 { + if yyj4125 >= l { break } } else { @@ -49517,33 +51565,33 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3953Slc = r.DecodeBytes(yys3953Slc, true, true) - yys3953 := string(yys3953Slc) + yys4125Slc = r.DecodeBytes(yys4125Slc, true, true) + yys4125 := string(yys4125Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3953 { + switch yys4125 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv3954 := &x.Hard - yyv3954.CodecDecodeSelf(d) + yyv4126 := &x.Hard + yyv4126.CodecDecodeSelf(d) } case "scopes": if r.TryDecodeAsNil() { x.Scopes = nil } else { - yyv3955 := &x.Scopes - yym3956 := z.DecBinary() - _ = yym3956 + yyv4127 := &x.Scopes + yym4128 := z.DecBinary() + _ = yym4128 if false { } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv3955), d) + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4127), d) } } default: - z.DecStructFieldNotFound(-1, yys3953) - } // end switch yys3953 - } // end for yyj3953 + z.DecStructFieldNotFound(-1, yys4125) + } // end switch yys4125 + } // end for yyj4125 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49551,16 +51599,16 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3957 int - var yyb3957 bool - var yyhl3957 bool = l >= 0 - yyj3957++ - if yyhl3957 { - yyb3957 = yyj3957 > l + var yyj4129 int + var yyb4129 bool + var yyhl4129 bool = l >= 0 + yyj4129++ + if yyhl4129 { + yyb4129 = yyj4129 > l } else { - yyb3957 = r.CheckBreak() + yyb4129 = r.CheckBreak() } - if yyb3957 { + if yyb4129 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49568,16 +51616,16 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv3958 := &x.Hard - yyv3958.CodecDecodeSelf(d) + yyv4130 := &x.Hard + yyv4130.CodecDecodeSelf(d) } - yyj3957++ - if yyhl3957 { - yyb3957 = yyj3957 > l + yyj4129++ + if yyhl4129 { + yyb4129 = yyj4129 > l } else { - yyb3957 = r.CheckBreak() + yyb4129 = r.CheckBreak() } - if yyb3957 { + if yyb4129 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49585,26 +51633,26 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Scopes = nil } else { - yyv3959 := &x.Scopes - yym3960 := z.DecBinary() - _ = yym3960 + yyv4131 := &x.Scopes + yym4132 := z.DecBinary() + _ = yym4132 if false { } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv3959), d) + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4131), d) } } for { - yyj3957++ - if yyhl3957 { - yyb3957 = yyj3957 > l + yyj4129++ + if yyhl4129 { + yyb4129 = yyj4129 > l } else { - yyb3957 = r.CheckBreak() + yyb4129 = r.CheckBreak() } - if yyb3957 { + if yyb4129 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3957-1, "") + z.DecStructFieldNotFound(yyj4129-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49616,34 +51664,34 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3961 := z.EncBinary() - _ = yym3961 + yym4133 := z.EncBinary() + _ = yym4133 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3962 := !z.EncBinary() - yy2arr3962 := z.EncBasicHandle().StructToArray - var yyq3962 [2]bool - _, _, _ = yysep3962, yyq3962, yy2arr3962 - const yyr3962 bool = false - yyq3962[0] = len(x.Hard) != 0 - yyq3962[1] = len(x.Used) != 0 - var yynn3962 int - if yyr3962 || yy2arr3962 { + yysep4134 := !z.EncBinary() + yy2arr4134 := z.EncBasicHandle().StructToArray + var yyq4134 [2]bool + _, _, _ = yysep4134, yyq4134, yy2arr4134 + const yyr4134 bool = false + yyq4134[0] = len(x.Hard) != 0 + yyq4134[1] = len(x.Used) != 0 + var yynn4134 int + if yyr4134 || yy2arr4134 { r.EncodeArrayStart(2) } else { - yynn3962 = 0 - for _, b := range yyq3962 { + yynn4134 = 0 + for _, b := range yyq4134 { if b { - yynn3962++ + yynn4134++ } } - r.EncodeMapStart(yynn3962) - yynn3962 = 0 + r.EncodeMapStart(yynn4134) + yynn4134 = 0 } - if yyr3962 || yy2arr3962 { + if yyr4134 || yy2arr4134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3962[0] { + if yyq4134[0] { if x.Hard == nil { r.EncodeNil() } else { @@ -49653,7 +51701,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3962[0] { + if yyq4134[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -49664,9 +51712,9 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3962 || yy2arr3962 { + if yyr4134 || yy2arr4134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3962[1] { + if yyq4134[1] { if x.Used == nil { r.EncodeNil() } else { @@ -49676,7 +51724,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3962[1] { + if yyq4134[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("used")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -49687,7 +51735,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3962 || yy2arr3962 { + if yyr4134 || yy2arr4134 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49700,25 +51748,25 @@ func (x *ResourceQuotaStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3965 := z.DecBinary() - _ = yym3965 + yym4137 := z.DecBinary() + _ = yym4137 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3966 := r.ContainerType() - if yyct3966 == codecSelferValueTypeMap1234 { - yyl3966 := r.ReadMapStart() - if yyl3966 == 0 { + yyct4138 := r.ContainerType() + if yyct4138 == codecSelferValueTypeMap1234 { + yyl4138 := r.ReadMapStart() + if yyl4138 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3966, d) + x.codecDecodeSelfFromMap(yyl4138, d) } - } else if yyct3966 == codecSelferValueTypeArray1234 { - yyl3966 := r.ReadArrayStart() - if yyl3966 == 0 { + } else if yyct4138 == codecSelferValueTypeArray1234 { + yyl4138 := r.ReadArrayStart() + if yyl4138 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3966, d) + x.codecDecodeSelfFromArray(yyl4138, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49730,12 +51778,12 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3967Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3967Slc - var yyhl3967 bool = l >= 0 - for yyj3967 := 0; ; yyj3967++ { - if yyhl3967 { - if yyj3967 >= l { + var yys4139Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4139Slc + var yyhl4139 bool = l >= 0 + for yyj4139 := 0; ; yyj4139++ { + if yyhl4139 { + if yyj4139 >= l { break } } else { @@ -49744,28 +51792,28 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3967Slc = r.DecodeBytes(yys3967Slc, true, true) - yys3967 := string(yys3967Slc) + yys4139Slc = r.DecodeBytes(yys4139Slc, true, true) + yys4139 := string(yys4139Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3967 { + switch yys4139 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv3968 := &x.Hard - yyv3968.CodecDecodeSelf(d) + yyv4140 := &x.Hard + yyv4140.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { - yyv3969 := &x.Used - yyv3969.CodecDecodeSelf(d) + yyv4141 := &x.Used + yyv4141.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3967) - } // end switch yys3967 - } // end for yyj3967 + z.DecStructFieldNotFound(-1, yys4139) + } // end switch yys4139 + } // end for yyj4139 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49773,16 +51821,16 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3970 int - var yyb3970 bool - var yyhl3970 bool = l >= 0 - yyj3970++ - if yyhl3970 { - yyb3970 = yyj3970 > l + var yyj4142 int + var yyb4142 bool + var yyhl4142 bool = l >= 0 + yyj4142++ + if yyhl4142 { + yyb4142 = yyj4142 > l } else { - yyb3970 = r.CheckBreak() + yyb4142 = r.CheckBreak() } - if yyb3970 { + if yyb4142 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49790,16 +51838,16 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv3971 := &x.Hard - yyv3971.CodecDecodeSelf(d) + yyv4143 := &x.Hard + yyv4143.CodecDecodeSelf(d) } - yyj3970++ - if yyhl3970 { - yyb3970 = yyj3970 > l + yyj4142++ + if yyhl4142 { + yyb4142 = yyj4142 > l } else { - yyb3970 = r.CheckBreak() + yyb4142 = r.CheckBreak() } - if yyb3970 { + if yyb4142 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49807,21 +51855,21 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Used = nil } else { - yyv3972 := &x.Used - yyv3972.CodecDecodeSelf(d) + yyv4144 := &x.Used + yyv4144.CodecDecodeSelf(d) } for { - yyj3970++ - if yyhl3970 { - yyb3970 = yyj3970 > l + yyj4142++ + if yyhl4142 { + yyb4142 = yyj4142 > l } else { - yyb3970 = r.CheckBreak() + yyb4142 = r.CheckBreak() } - if yyb3970 { + if yyb4142 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3970-1, "") + z.DecStructFieldNotFound(yyj4142-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49833,39 +51881,39 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3973 := z.EncBinary() - _ = yym3973 + yym4145 := z.EncBinary() + _ = yym4145 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3974 := !z.EncBinary() - yy2arr3974 := z.EncBasicHandle().StructToArray - var yyq3974 [5]bool - _, _, _ = yysep3974, yyq3974, yy2arr3974 - const yyr3974 bool = false - yyq3974[0] = x.Kind != "" - yyq3974[1] = x.APIVersion != "" - yyq3974[2] = true - yyq3974[3] = true - yyq3974[4] = true - var yynn3974 int - if yyr3974 || yy2arr3974 { + yysep4146 := !z.EncBinary() + yy2arr4146 := z.EncBasicHandle().StructToArray + var yyq4146 [5]bool + _, _, _ = yysep4146, yyq4146, yy2arr4146 + const yyr4146 bool = false + yyq4146[0] = x.Kind != "" + yyq4146[1] = x.APIVersion != "" + yyq4146[2] = true + yyq4146[3] = true + yyq4146[4] = true + var yynn4146 int + if yyr4146 || yy2arr4146 { r.EncodeArrayStart(5) } else { - yynn3974 = 0 - for _, b := range yyq3974 { + yynn4146 = 0 + for _, b := range yyq4146 { if b { - yynn3974++ + yynn4146++ } } - r.EncodeMapStart(yynn3974) - yynn3974 = 0 + r.EncodeMapStart(yynn4146) + yynn4146 = 0 } - if yyr3974 || yy2arr3974 { + if yyr4146 || yy2arr4146 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3974[0] { - yym3976 := z.EncBinary() - _ = yym3976 + if yyq4146[0] { + yym4148 := z.EncBinary() + _ = yym4148 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -49874,23 +51922,23 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3974[0] { + if yyq4146[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3977 := z.EncBinary() - _ = yym3977 + yym4149 := z.EncBinary() + _ = yym4149 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3974 || yy2arr3974 { + if yyr4146 || yy2arr4146 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3974[1] { - yym3979 := z.EncBinary() - _ = yym3979 + if yyq4146[1] { + yym4151 := z.EncBinary() + _ = yym4151 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -49899,70 +51947,70 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3974[1] { + if yyq4146[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3980 := z.EncBinary() - _ = yym3980 + yym4152 := z.EncBinary() + _ = yym4152 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3974 || yy2arr3974 { + if yyr4146 || yy2arr4146 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3974[2] { - yy3982 := &x.ObjectMeta - yy3982.CodecEncodeSelf(e) + if yyq4146[2] { + yy4154 := &x.ObjectMeta + yy4154.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3974[2] { + if yyq4146[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3983 := &x.ObjectMeta - yy3983.CodecEncodeSelf(e) + yy4155 := &x.ObjectMeta + yy4155.CodecEncodeSelf(e) } } - if yyr3974 || yy2arr3974 { + if yyr4146 || yy2arr4146 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3974[3] { - yy3985 := &x.Spec - yy3985.CodecEncodeSelf(e) + if yyq4146[3] { + yy4157 := &x.Spec + yy4157.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3974[3] { + if yyq4146[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3986 := &x.Spec - yy3986.CodecEncodeSelf(e) + yy4158 := &x.Spec + yy4158.CodecEncodeSelf(e) } } - if yyr3974 || yy2arr3974 { + if yyr4146 || yy2arr4146 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3974[4] { - yy3988 := &x.Status - yy3988.CodecEncodeSelf(e) + if yyq4146[4] { + yy4160 := &x.Status + yy4160.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3974[4] { + if yyq4146[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3989 := &x.Status - yy3989.CodecEncodeSelf(e) + yy4161 := &x.Status + yy4161.CodecEncodeSelf(e) } } - if yyr3974 || yy2arr3974 { + if yyr4146 || yy2arr4146 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49975,25 +52023,25 @@ func (x *ResourceQuota) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3990 := z.DecBinary() - _ = yym3990 + yym4162 := z.DecBinary() + _ = yym4162 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3991 := r.ContainerType() - if yyct3991 == codecSelferValueTypeMap1234 { - yyl3991 := r.ReadMapStart() - if yyl3991 == 0 { + yyct4163 := r.ContainerType() + if yyct4163 == codecSelferValueTypeMap1234 { + yyl4163 := r.ReadMapStart() + if yyl4163 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3991, d) + x.codecDecodeSelfFromMap(yyl4163, d) } - } else if yyct3991 == codecSelferValueTypeArray1234 { - yyl3991 := r.ReadArrayStart() - if yyl3991 == 0 { + } else if yyct4163 == codecSelferValueTypeArray1234 { + yyl4163 := r.ReadArrayStart() + if yyl4163 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3991, d) + x.codecDecodeSelfFromArray(yyl4163, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50005,12 +52053,12 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3992Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3992Slc - var yyhl3992 bool = l >= 0 - for yyj3992 := 0; ; yyj3992++ { - if yyhl3992 { - if yyj3992 >= l { + var yys4164Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4164Slc + var yyhl4164 bool = l >= 0 + for yyj4164 := 0; ; yyj4164++ { + if yyhl4164 { + if yyj4164 >= l { break } } else { @@ -50019,10 +52067,10 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3992Slc = r.DecodeBytes(yys3992Slc, true, true) - yys3992 := string(yys3992Slc) + yys4164Slc = r.DecodeBytes(yys4164Slc, true, true) + yys4164 := string(yys4164Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3992 { + switch yys4164 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -50039,27 +52087,27 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3995 := &x.ObjectMeta - yyv3995.CodecDecodeSelf(d) + yyv4167 := &x.ObjectMeta + yyv4167.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { - yyv3996 := &x.Spec - yyv3996.CodecDecodeSelf(d) + yyv4168 := &x.Spec + yyv4168.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { - yyv3997 := &x.Status - yyv3997.CodecDecodeSelf(d) + yyv4169 := &x.Status + yyv4169.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3992) - } // end switch yys3992 - } // end for yyj3992 + z.DecStructFieldNotFound(-1, yys4164) + } // end switch yys4164 + } // end for yyj4164 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50067,16 +52115,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3998 int - var yyb3998 bool - var yyhl3998 bool = l >= 0 - yyj3998++ - if yyhl3998 { - yyb3998 = yyj3998 > l + var yyj4170 int + var yyb4170 bool + var yyhl4170 bool = l >= 0 + yyj4170++ + if yyhl4170 { + yyb4170 = yyj4170 > l } else { - yyb3998 = r.CheckBreak() + yyb4170 = r.CheckBreak() } - if yyb3998 { + if yyb4170 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50086,13 +52134,13 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3998++ - if yyhl3998 { - yyb3998 = yyj3998 > l + yyj4170++ + if yyhl4170 { + yyb4170 = yyj4170 > l } else { - yyb3998 = r.CheckBreak() + yyb4170 = r.CheckBreak() } - if yyb3998 { + if yyb4170 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50102,13 +52150,13 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3998++ - if yyhl3998 { - yyb3998 = yyj3998 > l + yyj4170++ + if yyhl4170 { + yyb4170 = yyj4170 > l } else { - yyb3998 = r.CheckBreak() + yyb4170 = r.CheckBreak() } - if yyb3998 { + if yyb4170 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50116,16 +52164,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4001 := &x.ObjectMeta - yyv4001.CodecDecodeSelf(d) + yyv4173 := &x.ObjectMeta + yyv4173.CodecDecodeSelf(d) } - yyj3998++ - if yyhl3998 { - yyb3998 = yyj3998 > l + yyj4170++ + if yyhl4170 { + yyb4170 = yyj4170 > l } else { - yyb3998 = r.CheckBreak() + yyb4170 = r.CheckBreak() } - if yyb3998 { + if yyb4170 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50133,16 +52181,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { - yyv4002 := &x.Spec - yyv4002.CodecDecodeSelf(d) + yyv4174 := &x.Spec + yyv4174.CodecDecodeSelf(d) } - yyj3998++ - if yyhl3998 { - yyb3998 = yyj3998 > l + yyj4170++ + if yyhl4170 { + yyb4170 = yyj4170 > l } else { - yyb3998 = r.CheckBreak() + yyb4170 = r.CheckBreak() } - if yyb3998 { + if yyb4170 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50150,21 +52198,21 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { - yyv4003 := &x.Status - yyv4003.CodecDecodeSelf(d) + yyv4175 := &x.Status + yyv4175.CodecDecodeSelf(d) } for { - yyj3998++ - if yyhl3998 { - yyb3998 = yyj3998 > l + yyj4170++ + if yyhl4170 { + yyb4170 = yyj4170 > l } else { - yyb3998 = r.CheckBreak() + yyb4170 = r.CheckBreak() } - if yyb3998 { + if yyb4170 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3998-1, "") + z.DecStructFieldNotFound(yyj4170-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50176,37 +52224,37 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4004 := z.EncBinary() - _ = yym4004 + yym4176 := z.EncBinary() + _ = yym4176 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4005 := !z.EncBinary() - yy2arr4005 := z.EncBasicHandle().StructToArray - var yyq4005 [4]bool - _, _, _ = yysep4005, yyq4005, yy2arr4005 - const yyr4005 bool = false - yyq4005[0] = x.Kind != "" - yyq4005[1] = x.APIVersion != "" - yyq4005[2] = true - var yynn4005 int - if yyr4005 || yy2arr4005 { + yysep4177 := !z.EncBinary() + yy2arr4177 := z.EncBasicHandle().StructToArray + var yyq4177 [4]bool + _, _, _ = yysep4177, yyq4177, yy2arr4177 + const yyr4177 bool = false + yyq4177[0] = x.Kind != "" + yyq4177[1] = x.APIVersion != "" + yyq4177[2] = true + var yynn4177 int + if yyr4177 || yy2arr4177 { r.EncodeArrayStart(4) } else { - yynn4005 = 1 - for _, b := range yyq4005 { + yynn4177 = 1 + for _, b := range yyq4177 { if b { - yynn4005++ + yynn4177++ } } - r.EncodeMapStart(yynn4005) - yynn4005 = 0 + r.EncodeMapStart(yynn4177) + yynn4177 = 0 } - if yyr4005 || yy2arr4005 { + if yyr4177 || yy2arr4177 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4005[0] { - yym4007 := z.EncBinary() - _ = yym4007 + if yyq4177[0] { + yym4179 := z.EncBinary() + _ = yym4179 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -50215,23 +52263,23 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4005[0] { + if yyq4177[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4008 := z.EncBinary() - _ = yym4008 + yym4180 := z.EncBinary() + _ = yym4180 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4005 || yy2arr4005 { + if yyr4177 || yy2arr4177 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4005[1] { - yym4010 := z.EncBinary() - _ = yym4010 + if yyq4177[1] { + yym4182 := z.EncBinary() + _ = yym4182 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -50240,54 +52288,54 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4005[1] { + if yyq4177[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4011 := z.EncBinary() - _ = yym4011 + yym4183 := z.EncBinary() + _ = yym4183 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4005 || yy2arr4005 { + if yyr4177 || yy2arr4177 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4005[2] { - yy4013 := &x.ListMeta - yym4014 := z.EncBinary() - _ = yym4014 + if yyq4177[2] { + yy4185 := &x.ListMeta + yym4186 := z.EncBinary() + _ = yym4186 if false { - } else if z.HasExtensions() && z.EncExt(yy4013) { + } else if z.HasExtensions() && z.EncExt(yy4185) { } else { - z.EncFallback(yy4013) + z.EncFallback(yy4185) } } else { r.EncodeNil() } } else { - if yyq4005[2] { + if yyq4177[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4015 := &x.ListMeta - yym4016 := z.EncBinary() - _ = yym4016 + yy4187 := &x.ListMeta + yym4188 := z.EncBinary() + _ = yym4188 if false { - } else if z.HasExtensions() && z.EncExt(yy4015) { + } else if z.HasExtensions() && z.EncExt(yy4187) { } else { - z.EncFallback(yy4015) + z.EncFallback(yy4187) } } } - if yyr4005 || yy2arr4005 { + if yyr4177 || yy2arr4177 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4018 := z.EncBinary() - _ = yym4018 + yym4190 := z.EncBinary() + _ = yym4190 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) @@ -50300,15 +52348,15 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4019 := z.EncBinary() - _ = yym4019 + yym4191 := z.EncBinary() + _ = yym4191 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } - if yyr4005 || yy2arr4005 { + if yyr4177 || yy2arr4177 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50321,25 +52369,25 @@ func (x *ResourceQuotaList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4020 := z.DecBinary() - _ = yym4020 + yym4192 := z.DecBinary() + _ = yym4192 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4021 := r.ContainerType() - if yyct4021 == codecSelferValueTypeMap1234 { - yyl4021 := r.ReadMapStart() - if yyl4021 == 0 { + yyct4193 := r.ContainerType() + if yyct4193 == codecSelferValueTypeMap1234 { + yyl4193 := r.ReadMapStart() + if yyl4193 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4021, d) + x.codecDecodeSelfFromMap(yyl4193, d) } - } else if yyct4021 == codecSelferValueTypeArray1234 { - yyl4021 := r.ReadArrayStart() - if yyl4021 == 0 { + } else if yyct4193 == codecSelferValueTypeArray1234 { + yyl4193 := r.ReadArrayStart() + if yyl4193 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4021, d) + x.codecDecodeSelfFromArray(yyl4193, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50351,12 +52399,12 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4022Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4022Slc - var yyhl4022 bool = l >= 0 - for yyj4022 := 0; ; yyj4022++ { - if yyhl4022 { - if yyj4022 >= l { + var yys4194Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4194Slc + var yyhl4194 bool = l >= 0 + for yyj4194 := 0; ; yyj4194++ { + if yyhl4194 { + if yyj4194 >= l { break } } else { @@ -50365,10 +52413,10 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4022Slc = r.DecodeBytes(yys4022Slc, true, true) - yys4022 := string(yys4022Slc) + yys4194Slc = r.DecodeBytes(yys4194Slc, true, true) + yys4194 := string(yys4194Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4022 { + switch yys4194 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -50385,31 +52433,31 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4025 := &x.ListMeta - yym4026 := z.DecBinary() - _ = yym4026 + yyv4197 := &x.ListMeta + yym4198 := z.DecBinary() + _ = yym4198 if false { - } else if z.HasExtensions() && z.DecExt(yyv4025) { + } else if z.HasExtensions() && z.DecExt(yyv4197) { } else { - z.DecFallback(yyv4025, false) + z.DecFallback(yyv4197, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4027 := &x.Items - yym4028 := z.DecBinary() - _ = yym4028 + yyv4199 := &x.Items + yym4200 := z.DecBinary() + _ = yym4200 if false { } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv4027), d) + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4199), d) } } default: - z.DecStructFieldNotFound(-1, yys4022) - } // end switch yys4022 - } // end for yyj4022 + z.DecStructFieldNotFound(-1, yys4194) + } // end switch yys4194 + } // end for yyj4194 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50417,16 +52465,16 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4029 int - var yyb4029 bool - var yyhl4029 bool = l >= 0 - yyj4029++ - if yyhl4029 { - yyb4029 = yyj4029 > l + var yyj4201 int + var yyb4201 bool + var yyhl4201 bool = l >= 0 + yyj4201++ + if yyhl4201 { + yyb4201 = yyj4201 > l } else { - yyb4029 = r.CheckBreak() + yyb4201 = r.CheckBreak() } - if yyb4029 { + if yyb4201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50436,13 +52484,13 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj4029++ - if yyhl4029 { - yyb4029 = yyj4029 > l + yyj4201++ + if yyhl4201 { + yyb4201 = yyj4201 > l } else { - yyb4029 = r.CheckBreak() + yyb4201 = r.CheckBreak() } - if yyb4029 { + if yyb4201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50452,13 +52500,13 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj4029++ - if yyhl4029 { - yyb4029 = yyj4029 > l + yyj4201++ + if yyhl4201 { + yyb4201 = yyj4201 > l } else { - yyb4029 = r.CheckBreak() + yyb4201 = r.CheckBreak() } - if yyb4029 { + if yyb4201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50466,22 +52514,22 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4032 := &x.ListMeta - yym4033 := z.DecBinary() - _ = yym4033 + yyv4204 := &x.ListMeta + yym4205 := z.DecBinary() + _ = yym4205 if false { - } else if z.HasExtensions() && z.DecExt(yyv4032) { + } else if z.HasExtensions() && z.DecExt(yyv4204) { } else { - z.DecFallback(yyv4032, false) + z.DecFallback(yyv4204, false) } } - yyj4029++ - if yyhl4029 { - yyb4029 = yyj4029 > l + yyj4201++ + if yyhl4201 { + yyb4201 = yyj4201 > l } else { - yyb4029 = r.CheckBreak() + yyb4201 = r.CheckBreak() } - if yyb4029 { + if yyb4201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50489,26 +52537,26 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4034 := &x.Items - yym4035 := z.DecBinary() - _ = yym4035 + yyv4206 := &x.Items + yym4207 := z.DecBinary() + _ = yym4207 if false { } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv4034), d) + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4206), d) } } for { - yyj4029++ - if yyhl4029 { - yyb4029 = yyj4029 > l + yyj4201++ + if yyhl4201 { + yyb4201 = yyj4201 > l } else { - yyb4029 = r.CheckBreak() + yyb4201 = r.CheckBreak() } - if yyb4029 { + if yyb4201 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4029-1, "") + z.DecStructFieldNotFound(yyj4201-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50520,39 +52568,39 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4036 := z.EncBinary() - _ = yym4036 + yym4208 := z.EncBinary() + _ = yym4208 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4037 := !z.EncBinary() - yy2arr4037 := z.EncBasicHandle().StructToArray - var yyq4037 [5]bool - _, _, _ = yysep4037, yyq4037, yy2arr4037 - const yyr4037 bool = false - yyq4037[0] = x.Kind != "" - yyq4037[1] = x.APIVersion != "" - yyq4037[2] = true - yyq4037[3] = len(x.Data) != 0 - yyq4037[4] = x.Type != "" - var yynn4037 int - if yyr4037 || yy2arr4037 { + yysep4209 := !z.EncBinary() + yy2arr4209 := z.EncBasicHandle().StructToArray + var yyq4209 [5]bool + _, _, _ = yysep4209, yyq4209, yy2arr4209 + const yyr4209 bool = false + yyq4209[0] = x.Kind != "" + yyq4209[1] = x.APIVersion != "" + yyq4209[2] = true + yyq4209[3] = len(x.Data) != 0 + yyq4209[4] = x.Type != "" + var yynn4209 int + if yyr4209 || yy2arr4209 { r.EncodeArrayStart(5) } else { - yynn4037 = 0 - for _, b := range yyq4037 { + yynn4209 = 0 + for _, b := range yyq4209 { if b { - yynn4037++ + yynn4209++ } } - r.EncodeMapStart(yynn4037) - yynn4037 = 0 + r.EncodeMapStart(yynn4209) + yynn4209 = 0 } - if yyr4037 || yy2arr4037 { + if yyr4209 || yy2arr4209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4037[0] { - yym4039 := z.EncBinary() - _ = yym4039 + if yyq4209[0] { + yym4211 := z.EncBinary() + _ = yym4211 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -50561,23 +52609,23 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4037[0] { + if yyq4209[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4040 := z.EncBinary() - _ = yym4040 + yym4212 := z.EncBinary() + _ = yym4212 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4037 || yy2arr4037 { + if yyr4209 || yy2arr4209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4037[1] { - yym4042 := z.EncBinary() - _ = yym4042 + if yyq4209[1] { + yym4214 := z.EncBinary() + _ = yym4214 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -50586,43 +52634,43 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4037[1] { + if yyq4209[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4043 := z.EncBinary() - _ = yym4043 + yym4215 := z.EncBinary() + _ = yym4215 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4037 || yy2arr4037 { + if yyr4209 || yy2arr4209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4037[2] { - yy4045 := &x.ObjectMeta - yy4045.CodecEncodeSelf(e) + if yyq4209[2] { + yy4217 := &x.ObjectMeta + yy4217.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4037[2] { + if yyq4209[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4046 := &x.ObjectMeta - yy4046.CodecEncodeSelf(e) + yy4218 := &x.ObjectMeta + yy4218.CodecEncodeSelf(e) } } - if yyr4037 || yy2arr4037 { + if yyr4209 || yy2arr4209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4037[3] { + if yyq4209[3] { if x.Data == nil { r.EncodeNil() } else { - yym4048 := z.EncBinary() - _ = yym4048 + yym4220 := z.EncBinary() + _ = yym4220 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) @@ -50632,15 +52680,15 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4037[3] { + if yyq4209[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { - yym4049 := z.EncBinary() - _ = yym4049 + yym4221 := z.EncBinary() + _ = yym4221 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) @@ -50648,22 +52696,22 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4037 || yy2arr4037 { + if yyr4209 || yy2arr4209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4037[4] { + if yyq4209[4] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4037[4] { + if yyq4209[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr4037 || yy2arr4037 { + if yyr4209 || yy2arr4209 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50676,25 +52724,25 @@ func (x *Secret) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4051 := z.DecBinary() - _ = yym4051 + yym4223 := z.DecBinary() + _ = yym4223 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4052 := r.ContainerType() - if yyct4052 == codecSelferValueTypeMap1234 { - yyl4052 := r.ReadMapStart() - if yyl4052 == 0 { + yyct4224 := r.ContainerType() + if yyct4224 == codecSelferValueTypeMap1234 { + yyl4224 := r.ReadMapStart() + if yyl4224 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4052, d) + x.codecDecodeSelfFromMap(yyl4224, d) } - } else if yyct4052 == codecSelferValueTypeArray1234 { - yyl4052 := r.ReadArrayStart() - if yyl4052 == 0 { + } else if yyct4224 == codecSelferValueTypeArray1234 { + yyl4224 := r.ReadArrayStart() + if yyl4224 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4052, d) + x.codecDecodeSelfFromArray(yyl4224, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50706,12 +52754,12 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4053Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4053Slc - var yyhl4053 bool = l >= 0 - for yyj4053 := 0; ; yyj4053++ { - if yyhl4053 { - if yyj4053 >= l { + var yys4225Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4225Slc + var yyhl4225 bool = l >= 0 + for yyj4225 := 0; ; yyj4225++ { + if yyhl4225 { + if yyj4225 >= l { break } } else { @@ -50720,10 +52768,10 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4053Slc = r.DecodeBytes(yys4053Slc, true, true) - yys4053 := string(yys4053Slc) + yys4225Slc = r.DecodeBytes(yys4225Slc, true, true) + yys4225 := string(yys4225Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4053 { + switch yys4225 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -50740,19 +52788,19 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4056 := &x.ObjectMeta - yyv4056.CodecDecodeSelf(d) + yyv4228 := &x.ObjectMeta + yyv4228.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4057 := &x.Data - yym4058 := z.DecBinary() - _ = yym4058 + yyv4229 := &x.Data + yym4230 := z.DecBinary() + _ = yym4230 if false { } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv4057), d) + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4229), d) } } case "type": @@ -50762,9 +52810,9 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Type = SecretType(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4053) - } // end switch yys4053 - } // end for yyj4053 + z.DecStructFieldNotFound(-1, yys4225) + } // end switch yys4225 + } // end for yyj4225 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50772,16 +52820,16 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4060 int - var yyb4060 bool - var yyhl4060 bool = l >= 0 - yyj4060++ - if yyhl4060 { - yyb4060 = yyj4060 > l + var yyj4232 int + var yyb4232 bool + var yyhl4232 bool = l >= 0 + yyj4232++ + if yyhl4232 { + yyb4232 = yyj4232 > l } else { - yyb4060 = r.CheckBreak() + yyb4232 = r.CheckBreak() } - if yyb4060 { + if yyb4232 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50791,13 +52839,13 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4060++ - if yyhl4060 { - yyb4060 = yyj4060 > l + yyj4232++ + if yyhl4232 { + yyb4232 = yyj4232 > l } else { - yyb4060 = r.CheckBreak() + yyb4232 = r.CheckBreak() } - if yyb4060 { + if yyb4232 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50807,13 +52855,13 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4060++ - if yyhl4060 { - yyb4060 = yyj4060 > l + yyj4232++ + if yyhl4232 { + yyb4232 = yyj4232 > l } else { - yyb4060 = r.CheckBreak() + yyb4232 = r.CheckBreak() } - if yyb4060 { + if yyb4232 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50821,16 +52869,16 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4063 := &x.ObjectMeta - yyv4063.CodecDecodeSelf(d) + yyv4235 := &x.ObjectMeta + yyv4235.CodecDecodeSelf(d) } - yyj4060++ - if yyhl4060 { - yyb4060 = yyj4060 > l + yyj4232++ + if yyhl4232 { + yyb4232 = yyj4232 > l } else { - yyb4060 = r.CheckBreak() + yyb4232 = r.CheckBreak() } - if yyb4060 { + if yyb4232 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50838,21 +52886,21 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4064 := &x.Data - yym4065 := z.DecBinary() - _ = yym4065 + yyv4236 := &x.Data + yym4237 := z.DecBinary() + _ = yym4237 if false { } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv4064), d) + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4236), d) } } - yyj4060++ - if yyhl4060 { - yyb4060 = yyj4060 > l + yyj4232++ + if yyhl4232 { + yyb4232 = yyj4232 > l } else { - yyb4060 = r.CheckBreak() + yyb4232 = r.CheckBreak() } - if yyb4060 { + if yyb4232 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50863,17 +52911,17 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Type = SecretType(r.DecodeString()) } for { - yyj4060++ - if yyhl4060 { - yyb4060 = yyj4060 > l + yyj4232++ + if yyhl4232 { + yyb4232 = yyj4232 > l } else { - yyb4060 = r.CheckBreak() + yyb4232 = r.CheckBreak() } - if yyb4060 { + if yyb4232 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4060-1, "") + z.DecStructFieldNotFound(yyj4232-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50882,8 +52930,8 @@ func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4067 := z.EncBinary() - _ = yym4067 + yym4239 := z.EncBinary() + _ = yym4239 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -50895,8 +52943,8 @@ func (x *SecretType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4068 := z.DecBinary() - _ = yym4068 + yym4240 := z.DecBinary() + _ = yym4240 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -50911,37 +52959,37 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4069 := z.EncBinary() - _ = yym4069 + yym4241 := z.EncBinary() + _ = yym4241 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4070 := !z.EncBinary() - yy2arr4070 := z.EncBasicHandle().StructToArray - var yyq4070 [4]bool - _, _, _ = yysep4070, yyq4070, yy2arr4070 - const yyr4070 bool = false - yyq4070[0] = x.Kind != "" - yyq4070[1] = x.APIVersion != "" - yyq4070[2] = true - var yynn4070 int - if yyr4070 || yy2arr4070 { + yysep4242 := !z.EncBinary() + yy2arr4242 := z.EncBasicHandle().StructToArray + var yyq4242 [4]bool + _, _, _ = yysep4242, yyq4242, yy2arr4242 + const yyr4242 bool = false + yyq4242[0] = x.Kind != "" + yyq4242[1] = x.APIVersion != "" + yyq4242[2] = true + var yynn4242 int + if yyr4242 || yy2arr4242 { r.EncodeArrayStart(4) } else { - yynn4070 = 1 - for _, b := range yyq4070 { + yynn4242 = 1 + for _, b := range yyq4242 { if b { - yynn4070++ + yynn4242++ } } - r.EncodeMapStart(yynn4070) - yynn4070 = 0 + r.EncodeMapStart(yynn4242) + yynn4242 = 0 } - if yyr4070 || yy2arr4070 { + if yyr4242 || yy2arr4242 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4070[0] { - yym4072 := z.EncBinary() - _ = yym4072 + if yyq4242[0] { + yym4244 := z.EncBinary() + _ = yym4244 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -50950,23 +52998,23 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4070[0] { + if yyq4242[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4073 := z.EncBinary() - _ = yym4073 + yym4245 := z.EncBinary() + _ = yym4245 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4070 || yy2arr4070 { + if yyr4242 || yy2arr4242 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4070[1] { - yym4075 := z.EncBinary() - _ = yym4075 + if yyq4242[1] { + yym4247 := z.EncBinary() + _ = yym4247 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -50975,54 +53023,54 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4070[1] { + if yyq4242[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4076 := z.EncBinary() - _ = yym4076 + yym4248 := z.EncBinary() + _ = yym4248 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4070 || yy2arr4070 { + if yyr4242 || yy2arr4242 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4070[2] { - yy4078 := &x.ListMeta - yym4079 := z.EncBinary() - _ = yym4079 + if yyq4242[2] { + yy4250 := &x.ListMeta + yym4251 := z.EncBinary() + _ = yym4251 if false { - } else if z.HasExtensions() && z.EncExt(yy4078) { + } else if z.HasExtensions() && z.EncExt(yy4250) { } else { - z.EncFallback(yy4078) + z.EncFallback(yy4250) } } else { r.EncodeNil() } } else { - if yyq4070[2] { + if yyq4242[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4080 := &x.ListMeta - yym4081 := z.EncBinary() - _ = yym4081 + yy4252 := &x.ListMeta + yym4253 := z.EncBinary() + _ = yym4253 if false { - } else if z.HasExtensions() && z.EncExt(yy4080) { + } else if z.HasExtensions() && z.EncExt(yy4252) { } else { - z.EncFallback(yy4080) + z.EncFallback(yy4252) } } } - if yyr4070 || yy2arr4070 { + if yyr4242 || yy2arr4242 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4083 := z.EncBinary() - _ = yym4083 + yym4255 := z.EncBinary() + _ = yym4255 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) @@ -51035,15 +53083,15 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4084 := z.EncBinary() - _ = yym4084 + yym4256 := z.EncBinary() + _ = yym4256 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) } } } - if yyr4070 || yy2arr4070 { + if yyr4242 || yy2arr4242 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51056,25 +53104,25 @@ func (x *SecretList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4085 := z.DecBinary() - _ = yym4085 + yym4257 := z.DecBinary() + _ = yym4257 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4086 := r.ContainerType() - if yyct4086 == codecSelferValueTypeMap1234 { - yyl4086 := r.ReadMapStart() - if yyl4086 == 0 { + yyct4258 := r.ContainerType() + if yyct4258 == codecSelferValueTypeMap1234 { + yyl4258 := r.ReadMapStart() + if yyl4258 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4086, d) + x.codecDecodeSelfFromMap(yyl4258, d) } - } else if yyct4086 == codecSelferValueTypeArray1234 { - yyl4086 := r.ReadArrayStart() - if yyl4086 == 0 { + } else if yyct4258 == codecSelferValueTypeArray1234 { + yyl4258 := r.ReadArrayStart() + if yyl4258 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4086, d) + x.codecDecodeSelfFromArray(yyl4258, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51086,12 +53134,12 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4087Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4087Slc - var yyhl4087 bool = l >= 0 - for yyj4087 := 0; ; yyj4087++ { - if yyhl4087 { - if yyj4087 >= l { + var yys4259Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4259Slc + var yyhl4259 bool = l >= 0 + for yyj4259 := 0; ; yyj4259++ { + if yyhl4259 { + if yyj4259 >= l { break } } else { @@ -51100,10 +53148,10 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4087Slc = r.DecodeBytes(yys4087Slc, true, true) - yys4087 := string(yys4087Slc) + yys4259Slc = r.DecodeBytes(yys4259Slc, true, true) + yys4259 := string(yys4259Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4087 { + switch yys4259 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -51120,31 +53168,31 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4090 := &x.ListMeta - yym4091 := z.DecBinary() - _ = yym4091 + yyv4262 := &x.ListMeta + yym4263 := z.DecBinary() + _ = yym4263 if false { - } else if z.HasExtensions() && z.DecExt(yyv4090) { + } else if z.HasExtensions() && z.DecExt(yyv4262) { } else { - z.DecFallback(yyv4090, false) + z.DecFallback(yyv4262, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4092 := &x.Items - yym4093 := z.DecBinary() - _ = yym4093 + yyv4264 := &x.Items + yym4265 := z.DecBinary() + _ = yym4265 if false { } else { - h.decSliceSecret((*[]Secret)(yyv4092), d) + h.decSliceSecret((*[]Secret)(yyv4264), d) } } default: - z.DecStructFieldNotFound(-1, yys4087) - } // end switch yys4087 - } // end for yyj4087 + z.DecStructFieldNotFound(-1, yys4259) + } // end switch yys4259 + } // end for yyj4259 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51152,16 +53200,16 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4094 int - var yyb4094 bool - var yyhl4094 bool = l >= 0 - yyj4094++ - if yyhl4094 { - yyb4094 = yyj4094 > l + var yyj4266 int + var yyb4266 bool + var yyhl4266 bool = l >= 0 + yyj4266++ + if yyhl4266 { + yyb4266 = yyj4266 > l } else { - yyb4094 = r.CheckBreak() + yyb4266 = r.CheckBreak() } - if yyb4094 { + if yyb4266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51171,13 +53219,13 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4094++ - if yyhl4094 { - yyb4094 = yyj4094 > l + yyj4266++ + if yyhl4266 { + yyb4266 = yyj4266 > l } else { - yyb4094 = r.CheckBreak() + yyb4266 = r.CheckBreak() } - if yyb4094 { + if yyb4266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51187,13 +53235,13 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4094++ - if yyhl4094 { - yyb4094 = yyj4094 > l + yyj4266++ + if yyhl4266 { + yyb4266 = yyj4266 > l } else { - yyb4094 = r.CheckBreak() + yyb4266 = r.CheckBreak() } - if yyb4094 { + if yyb4266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51201,22 +53249,22 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4097 := &x.ListMeta - yym4098 := z.DecBinary() - _ = yym4098 + yyv4269 := &x.ListMeta + yym4270 := z.DecBinary() + _ = yym4270 if false { - } else if z.HasExtensions() && z.DecExt(yyv4097) { + } else if z.HasExtensions() && z.DecExt(yyv4269) { } else { - z.DecFallback(yyv4097, false) + z.DecFallback(yyv4269, false) } } - yyj4094++ - if yyhl4094 { - yyb4094 = yyj4094 > l + yyj4266++ + if yyhl4266 { + yyb4266 = yyj4266 > l } else { - yyb4094 = r.CheckBreak() + yyb4266 = r.CheckBreak() } - if yyb4094 { + if yyb4266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51224,26 +53272,26 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4099 := &x.Items - yym4100 := z.DecBinary() - _ = yym4100 + yyv4271 := &x.Items + yym4272 := z.DecBinary() + _ = yym4272 if false { } else { - h.decSliceSecret((*[]Secret)(yyv4099), d) + h.decSliceSecret((*[]Secret)(yyv4271), d) } } for { - yyj4094++ - if yyhl4094 { - yyb4094 = yyj4094 > l + yyj4266++ + if yyhl4266 { + yyb4266 = yyj4266 > l } else { - yyb4094 = r.CheckBreak() + yyb4266 = r.CheckBreak() } - if yyb4094 { + if yyb4266 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4094-1, "") + z.DecStructFieldNotFound(yyj4266-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51255,38 +53303,38 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4101 := z.EncBinary() - _ = yym4101 + yym4273 := z.EncBinary() + _ = yym4273 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4102 := !z.EncBinary() - yy2arr4102 := z.EncBasicHandle().StructToArray - var yyq4102 [4]bool - _, _, _ = yysep4102, yyq4102, yy2arr4102 - const yyr4102 bool = false - yyq4102[0] = x.Kind != "" - yyq4102[1] = x.APIVersion != "" - yyq4102[2] = true - yyq4102[3] = len(x.Data) != 0 - var yynn4102 int - if yyr4102 || yy2arr4102 { + yysep4274 := !z.EncBinary() + yy2arr4274 := z.EncBasicHandle().StructToArray + var yyq4274 [4]bool + _, _, _ = yysep4274, yyq4274, yy2arr4274 + const yyr4274 bool = false + yyq4274[0] = x.Kind != "" + yyq4274[1] = x.APIVersion != "" + yyq4274[2] = true + yyq4274[3] = len(x.Data) != 0 + var yynn4274 int + if yyr4274 || yy2arr4274 { r.EncodeArrayStart(4) } else { - yynn4102 = 0 - for _, b := range yyq4102 { + yynn4274 = 0 + for _, b := range yyq4274 { if b { - yynn4102++ + yynn4274++ } } - r.EncodeMapStart(yynn4102) - yynn4102 = 0 + r.EncodeMapStart(yynn4274) + yynn4274 = 0 } - if yyr4102 || yy2arr4102 { + if yyr4274 || yy2arr4274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4102[0] { - yym4104 := z.EncBinary() - _ = yym4104 + if yyq4274[0] { + yym4276 := z.EncBinary() + _ = yym4276 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -51295,23 +53343,23 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4102[0] { + if yyq4274[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4105 := z.EncBinary() - _ = yym4105 + yym4277 := z.EncBinary() + _ = yym4277 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4102 || yy2arr4102 { + if yyr4274 || yy2arr4274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4102[1] { - yym4107 := z.EncBinary() - _ = yym4107 + if yyq4274[1] { + yym4279 := z.EncBinary() + _ = yym4279 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -51320,43 +53368,43 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4102[1] { + if yyq4274[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4108 := z.EncBinary() - _ = yym4108 + yym4280 := z.EncBinary() + _ = yym4280 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4102 || yy2arr4102 { + if yyr4274 || yy2arr4274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4102[2] { - yy4110 := &x.ObjectMeta - yy4110.CodecEncodeSelf(e) + if yyq4274[2] { + yy4282 := &x.ObjectMeta + yy4282.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4102[2] { + if yyq4274[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4111 := &x.ObjectMeta - yy4111.CodecEncodeSelf(e) + yy4283 := &x.ObjectMeta + yy4283.CodecEncodeSelf(e) } } - if yyr4102 || yy2arr4102 { + if yyr4274 || yy2arr4274 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4102[3] { + if yyq4274[3] { if x.Data == nil { r.EncodeNil() } else { - yym4113 := z.EncBinary() - _ = yym4113 + yym4285 := z.EncBinary() + _ = yym4285 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) @@ -51366,15 +53414,15 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4102[3] { + if yyq4274[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { - yym4114 := z.EncBinary() - _ = yym4114 + yym4286 := z.EncBinary() + _ = yym4286 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) @@ -51382,7 +53430,7 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4102 || yy2arr4102 { + if yyr4274 || yy2arr4274 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51395,25 +53443,25 @@ func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4115 := z.DecBinary() - _ = yym4115 + yym4287 := z.DecBinary() + _ = yym4287 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4116 := r.ContainerType() - if yyct4116 == codecSelferValueTypeMap1234 { - yyl4116 := r.ReadMapStart() - if yyl4116 == 0 { + yyct4288 := r.ContainerType() + if yyct4288 == codecSelferValueTypeMap1234 { + yyl4288 := r.ReadMapStart() + if yyl4288 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4116, d) + x.codecDecodeSelfFromMap(yyl4288, d) } - } else if yyct4116 == codecSelferValueTypeArray1234 { - yyl4116 := r.ReadArrayStart() - if yyl4116 == 0 { + } else if yyct4288 == codecSelferValueTypeArray1234 { + yyl4288 := r.ReadArrayStart() + if yyl4288 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4116, d) + x.codecDecodeSelfFromArray(yyl4288, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51425,12 +53473,12 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4117Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4117Slc - var yyhl4117 bool = l >= 0 - for yyj4117 := 0; ; yyj4117++ { - if yyhl4117 { - if yyj4117 >= l { + var yys4289Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4289Slc + var yyhl4289 bool = l >= 0 + for yyj4289 := 0; ; yyj4289++ { + if yyhl4289 { + if yyj4289 >= l { break } } else { @@ -51439,10 +53487,10 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4117Slc = r.DecodeBytes(yys4117Slc, true, true) - yys4117 := string(yys4117Slc) + yys4289Slc = r.DecodeBytes(yys4289Slc, true, true) + yys4289 := string(yys4289Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4117 { + switch yys4289 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -51459,25 +53507,25 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4120 := &x.ObjectMeta - yyv4120.CodecDecodeSelf(d) + yyv4292 := &x.ObjectMeta + yyv4292.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4121 := &x.Data - yym4122 := z.DecBinary() - _ = yym4122 + yyv4293 := &x.Data + yym4294 := z.DecBinary() + _ = yym4294 if false { } else { - z.F.DecMapStringStringX(yyv4121, false, d) + z.F.DecMapStringStringX(yyv4293, false, d) } } default: - z.DecStructFieldNotFound(-1, yys4117) - } // end switch yys4117 - } // end for yyj4117 + z.DecStructFieldNotFound(-1, yys4289) + } // end switch yys4289 + } // end for yyj4289 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51485,16 +53533,16 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4123 int - var yyb4123 bool - var yyhl4123 bool = l >= 0 - yyj4123++ - if yyhl4123 { - yyb4123 = yyj4123 > l + var yyj4295 int + var yyb4295 bool + var yyhl4295 bool = l >= 0 + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb4123 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb4123 { + if yyb4295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51504,13 +53552,13 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4123++ - if yyhl4123 { - yyb4123 = yyj4123 > l + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb4123 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb4123 { + if yyb4295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51520,13 +53568,13 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4123++ - if yyhl4123 { - yyb4123 = yyj4123 > l + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb4123 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb4123 { + if yyb4295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51534,16 +53582,16 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4126 := &x.ObjectMeta - yyv4126.CodecDecodeSelf(d) + yyv4298 := &x.ObjectMeta + yyv4298.CodecDecodeSelf(d) } - yyj4123++ - if yyhl4123 { - yyb4123 = yyj4123 > l + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb4123 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb4123 { + if yyb4295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51551,26 +53599,26 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4127 := &x.Data - yym4128 := z.DecBinary() - _ = yym4128 + yyv4299 := &x.Data + yym4300 := z.DecBinary() + _ = yym4300 if false { } else { - z.F.DecMapStringStringX(yyv4127, false, d) + z.F.DecMapStringStringX(yyv4299, false, d) } } for { - yyj4123++ - if yyhl4123 { - yyb4123 = yyj4123 > l + yyj4295++ + if yyhl4295 { + yyb4295 = yyj4295 > l } else { - yyb4123 = r.CheckBreak() + yyb4295 = r.CheckBreak() } - if yyb4123 { + if yyb4295 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4123-1, "") + z.DecStructFieldNotFound(yyj4295-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51582,37 +53630,37 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4129 := z.EncBinary() - _ = yym4129 + yym4301 := z.EncBinary() + _ = yym4301 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4130 := !z.EncBinary() - yy2arr4130 := z.EncBasicHandle().StructToArray - var yyq4130 [4]bool - _, _, _ = yysep4130, yyq4130, yy2arr4130 - const yyr4130 bool = false - yyq4130[0] = x.Kind != "" - yyq4130[1] = x.APIVersion != "" - yyq4130[2] = true - var yynn4130 int - if yyr4130 || yy2arr4130 { + yysep4302 := !z.EncBinary() + yy2arr4302 := z.EncBasicHandle().StructToArray + var yyq4302 [4]bool + _, _, _ = yysep4302, yyq4302, yy2arr4302 + const yyr4302 bool = false + yyq4302[0] = x.Kind != "" + yyq4302[1] = x.APIVersion != "" + yyq4302[2] = true + var yynn4302 int + if yyr4302 || yy2arr4302 { r.EncodeArrayStart(4) } else { - yynn4130 = 1 - for _, b := range yyq4130 { + yynn4302 = 1 + for _, b := range yyq4302 { if b { - yynn4130++ + yynn4302++ } } - r.EncodeMapStart(yynn4130) - yynn4130 = 0 + r.EncodeMapStart(yynn4302) + yynn4302 = 0 } - if yyr4130 || yy2arr4130 { + if yyr4302 || yy2arr4302 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4130[0] { - yym4132 := z.EncBinary() - _ = yym4132 + if yyq4302[0] { + yym4304 := z.EncBinary() + _ = yym4304 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -51621,23 +53669,23 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4130[0] { + if yyq4302[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4133 := z.EncBinary() - _ = yym4133 + yym4305 := z.EncBinary() + _ = yym4305 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4130 || yy2arr4130 { + if yyr4302 || yy2arr4302 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4130[1] { - yym4135 := z.EncBinary() - _ = yym4135 + if yyq4302[1] { + yym4307 := z.EncBinary() + _ = yym4307 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -51646,54 +53694,54 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4130[1] { + if yyq4302[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4136 := z.EncBinary() - _ = yym4136 + yym4308 := z.EncBinary() + _ = yym4308 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4130 || yy2arr4130 { + if yyr4302 || yy2arr4302 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4130[2] { - yy4138 := &x.ListMeta - yym4139 := z.EncBinary() - _ = yym4139 + if yyq4302[2] { + yy4310 := &x.ListMeta + yym4311 := z.EncBinary() + _ = yym4311 if false { - } else if z.HasExtensions() && z.EncExt(yy4138) { + } else if z.HasExtensions() && z.EncExt(yy4310) { } else { - z.EncFallback(yy4138) + z.EncFallback(yy4310) } } else { r.EncodeNil() } } else { - if yyq4130[2] { + if yyq4302[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4140 := &x.ListMeta - yym4141 := z.EncBinary() - _ = yym4141 + yy4312 := &x.ListMeta + yym4313 := z.EncBinary() + _ = yym4313 if false { - } else if z.HasExtensions() && z.EncExt(yy4140) { + } else if z.HasExtensions() && z.EncExt(yy4312) { } else { - z.EncFallback(yy4140) + z.EncFallback(yy4312) } } } - if yyr4130 || yy2arr4130 { + if yyr4302 || yy2arr4302 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4143 := z.EncBinary() - _ = yym4143 + yym4315 := z.EncBinary() + _ = yym4315 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) @@ -51706,15 +53754,15 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4144 := z.EncBinary() - _ = yym4144 + yym4316 := z.EncBinary() + _ = yym4316 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } - if yyr4130 || yy2arr4130 { + if yyr4302 || yy2arr4302 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51727,25 +53775,25 @@ func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4145 := z.DecBinary() - _ = yym4145 + yym4317 := z.DecBinary() + _ = yym4317 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4146 := r.ContainerType() - if yyct4146 == codecSelferValueTypeMap1234 { - yyl4146 := r.ReadMapStart() - if yyl4146 == 0 { + yyct4318 := r.ContainerType() + if yyct4318 == codecSelferValueTypeMap1234 { + yyl4318 := r.ReadMapStart() + if yyl4318 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4146, d) + x.codecDecodeSelfFromMap(yyl4318, d) } - } else if yyct4146 == codecSelferValueTypeArray1234 { - yyl4146 := r.ReadArrayStart() - if yyl4146 == 0 { + } else if yyct4318 == codecSelferValueTypeArray1234 { + yyl4318 := r.ReadArrayStart() + if yyl4318 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4146, d) + x.codecDecodeSelfFromArray(yyl4318, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51757,12 +53805,12 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4147Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4147Slc - var yyhl4147 bool = l >= 0 - for yyj4147 := 0; ; yyj4147++ { - if yyhl4147 { - if yyj4147 >= l { + var yys4319Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4319Slc + var yyhl4319 bool = l >= 0 + for yyj4319 := 0; ; yyj4319++ { + if yyhl4319 { + if yyj4319 >= l { break } } else { @@ -51771,10 +53819,10 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4147Slc = r.DecodeBytes(yys4147Slc, true, true) - yys4147 := string(yys4147Slc) + yys4319Slc = r.DecodeBytes(yys4319Slc, true, true) + yys4319 := string(yys4319Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4147 { + switch yys4319 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -51791,31 +53839,31 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4150 := &x.ListMeta - yym4151 := z.DecBinary() - _ = yym4151 + yyv4322 := &x.ListMeta + yym4323 := z.DecBinary() + _ = yym4323 if false { - } else if z.HasExtensions() && z.DecExt(yyv4150) { + } else if z.HasExtensions() && z.DecExt(yyv4322) { } else { - z.DecFallback(yyv4150, false) + z.DecFallback(yyv4322, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4152 := &x.Items - yym4153 := z.DecBinary() - _ = yym4153 + yyv4324 := &x.Items + yym4325 := z.DecBinary() + _ = yym4325 if false { } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv4152), d) + h.decSliceConfigMap((*[]ConfigMap)(yyv4324), d) } } default: - z.DecStructFieldNotFound(-1, yys4147) - } // end switch yys4147 - } // end for yyj4147 + z.DecStructFieldNotFound(-1, yys4319) + } // end switch yys4319 + } // end for yyj4319 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51823,16 +53871,16 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4154 int - var yyb4154 bool - var yyhl4154 bool = l >= 0 - yyj4154++ - if yyhl4154 { - yyb4154 = yyj4154 > l + var yyj4326 int + var yyb4326 bool + var yyhl4326 bool = l >= 0 + yyj4326++ + if yyhl4326 { + yyb4326 = yyj4326 > l } else { - yyb4154 = r.CheckBreak() + yyb4326 = r.CheckBreak() } - if yyb4154 { + if yyb4326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51842,13 +53890,13 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4154++ - if yyhl4154 { - yyb4154 = yyj4154 > l + yyj4326++ + if yyhl4326 { + yyb4326 = yyj4326 > l } else { - yyb4154 = r.CheckBreak() + yyb4326 = r.CheckBreak() } - if yyb4154 { + if yyb4326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51858,13 +53906,13 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4154++ - if yyhl4154 { - yyb4154 = yyj4154 > l + yyj4326++ + if yyhl4326 { + yyb4326 = yyj4326 > l } else { - yyb4154 = r.CheckBreak() + yyb4326 = r.CheckBreak() } - if yyb4154 { + if yyb4326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51872,22 +53920,22 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4157 := &x.ListMeta - yym4158 := z.DecBinary() - _ = yym4158 + yyv4329 := &x.ListMeta + yym4330 := z.DecBinary() + _ = yym4330 if false { - } else if z.HasExtensions() && z.DecExt(yyv4157) { + } else if z.HasExtensions() && z.DecExt(yyv4329) { } else { - z.DecFallback(yyv4157, false) + z.DecFallback(yyv4329, false) } } - yyj4154++ - if yyhl4154 { - yyb4154 = yyj4154 > l + yyj4326++ + if yyhl4326 { + yyb4326 = yyj4326 > l } else { - yyb4154 = r.CheckBreak() + yyb4326 = r.CheckBreak() } - if yyb4154 { + if yyb4326 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51895,26 +53943,26 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4159 := &x.Items - yym4160 := z.DecBinary() - _ = yym4160 + yyv4331 := &x.Items + yym4332 := z.DecBinary() + _ = yym4332 if false { } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv4159), d) + h.decSliceConfigMap((*[]ConfigMap)(yyv4331), d) } } for { - yyj4154++ - if yyhl4154 { - yyb4154 = yyj4154 > l + yyj4326++ + if yyhl4326 { + yyb4326 = yyj4326 > l } else { - yyb4154 = r.CheckBreak() + yyb4326 = r.CheckBreak() } - if yyb4154 { + if yyb4326 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4154-1, "") + z.DecStructFieldNotFound(yyj4326-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51923,8 +53971,8 @@ func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4161 := z.EncBinary() - _ = yym4161 + yym4333 := z.EncBinary() + _ = yym4333 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -51936,8 +53984,8 @@ func (x *PatchType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4162 := z.DecBinary() - _ = yym4162 + yym4334 := z.DecBinary() + _ = yym4334 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -51949,8 +53997,8 @@ func (x ComponentConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4163 := z.EncBinary() - _ = yym4163 + yym4335 := z.EncBinary() + _ = yym4335 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -51962,8 +54010,8 @@ func (x *ComponentConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4164 := z.DecBinary() - _ = yym4164 + yym4336 := z.DecBinary() + _ = yym4336 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -51978,32 +54026,32 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4165 := z.EncBinary() - _ = yym4165 + yym4337 := z.EncBinary() + _ = yym4337 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4166 := !z.EncBinary() - yy2arr4166 := z.EncBasicHandle().StructToArray - var yyq4166 [4]bool - _, _, _ = yysep4166, yyq4166, yy2arr4166 - const yyr4166 bool = false - yyq4166[2] = x.Message != "" - yyq4166[3] = x.Error != "" - var yynn4166 int - if yyr4166 || yy2arr4166 { + yysep4338 := !z.EncBinary() + yy2arr4338 := z.EncBasicHandle().StructToArray + var yyq4338 [4]bool + _, _, _ = yysep4338, yyq4338, yy2arr4338 + const yyr4338 bool = false + yyq4338[2] = x.Message != "" + yyq4338[3] = x.Error != "" + var yynn4338 int + if yyr4338 || yy2arr4338 { r.EncodeArrayStart(4) } else { - yynn4166 = 2 - for _, b := range yyq4166 { + yynn4338 = 2 + for _, b := range yyq4338 { if b { - yynn4166++ + yynn4338++ } } - r.EncodeMapStart(yynn4166) - yynn4166 = 0 + r.EncodeMapStart(yynn4338) + yynn4338 = 0 } - if yyr4166 || yy2arr4166 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -52012,7 +54060,7 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr4166 || yy2arr4166 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -52021,11 +54069,11 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr4166 || yy2arr4166 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4166[2] { - yym4170 := z.EncBinary() - _ = yym4170 + if yyq4338[2] { + yym4342 := z.EncBinary() + _ = yym4342 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -52034,23 +54082,23 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4166[2] { + if yyq4338[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4171 := z.EncBinary() - _ = yym4171 + yym4343 := z.EncBinary() + _ = yym4343 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr4166 || yy2arr4166 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4166[3] { - yym4173 := z.EncBinary() - _ = yym4173 + if yyq4338[3] { + yym4345 := z.EncBinary() + _ = yym4345 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) @@ -52059,19 +54107,19 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4166[3] { + if yyq4338[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4174 := z.EncBinary() - _ = yym4174 + yym4346 := z.EncBinary() + _ = yym4346 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } - if yyr4166 || yy2arr4166 { + if yyr4338 || yy2arr4338 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -52084,25 +54132,25 @@ func (x *ComponentCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4175 := z.DecBinary() - _ = yym4175 + yym4347 := z.DecBinary() + _ = yym4347 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4176 := r.ContainerType() - if yyct4176 == codecSelferValueTypeMap1234 { - yyl4176 := r.ReadMapStart() - if yyl4176 == 0 { + yyct4348 := r.ContainerType() + if yyct4348 == codecSelferValueTypeMap1234 { + yyl4348 := r.ReadMapStart() + if yyl4348 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4176, d) + x.codecDecodeSelfFromMap(yyl4348, d) } - } else if yyct4176 == codecSelferValueTypeArray1234 { - yyl4176 := r.ReadArrayStart() - if yyl4176 == 0 { + } else if yyct4348 == codecSelferValueTypeArray1234 { + yyl4348 := r.ReadArrayStart() + if yyl4348 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4176, d) + x.codecDecodeSelfFromArray(yyl4348, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52114,12 +54162,12 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4177Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4177Slc - var yyhl4177 bool = l >= 0 - for yyj4177 := 0; ; yyj4177++ { - if yyhl4177 { - if yyj4177 >= l { + var yys4349Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4349Slc + var yyhl4349 bool = l >= 0 + for yyj4349 := 0; ; yyj4349++ { + if yyhl4349 { + if yyj4349 >= l { break } } else { @@ -52128,10 +54176,10 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4177Slc = r.DecodeBytes(yys4177Slc, true, true) - yys4177 := string(yys4177Slc) + yys4349Slc = r.DecodeBytes(yys4349Slc, true, true) + yys4349 := string(yys4349Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4177 { + switch yys4349 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -52157,9 +54205,9 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Error = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4177) - } // end switch yys4177 - } // end for yyj4177 + z.DecStructFieldNotFound(-1, yys4349) + } // end switch yys4349 + } // end for yyj4349 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52167,16 +54215,16 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4182 int - var yyb4182 bool - var yyhl4182 bool = l >= 0 - yyj4182++ - if yyhl4182 { - yyb4182 = yyj4182 > l + var yyj4354 int + var yyb4354 bool + var yyhl4354 bool = l >= 0 + yyj4354++ + if yyhl4354 { + yyb4354 = yyj4354 > l } else { - yyb4182 = r.CheckBreak() + yyb4354 = r.CheckBreak() } - if yyb4182 { + if yyb4354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52186,13 +54234,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Type = ComponentConditionType(r.DecodeString()) } - yyj4182++ - if yyhl4182 { - yyb4182 = yyj4182 > l + yyj4354++ + if yyhl4354 { + yyb4354 = yyj4354 > l } else { - yyb4182 = r.CheckBreak() + yyb4354 = r.CheckBreak() } - if yyb4182 { + if yyb4354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52202,13 +54250,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj4182++ - if yyhl4182 { - yyb4182 = yyj4182 > l + yyj4354++ + if yyhl4354 { + yyb4354 = yyj4354 > l } else { - yyb4182 = r.CheckBreak() + yyb4354 = r.CheckBreak() } - if yyb4182 { + if yyb4354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52218,13 +54266,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Message = string(r.DecodeString()) } - yyj4182++ - if yyhl4182 { - yyb4182 = yyj4182 > l + yyj4354++ + if yyhl4354 { + yyb4354 = yyj4354 > l } else { - yyb4182 = r.CheckBreak() + yyb4354 = r.CheckBreak() } - if yyb4182 { + if yyb4354 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52235,17 +54283,17 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.Error = string(r.DecodeString()) } for { - yyj4182++ - if yyhl4182 { - yyb4182 = yyj4182 > l + yyj4354++ + if yyhl4354 { + yyb4354 = yyj4354 > l } else { - yyb4182 = r.CheckBreak() + yyb4354 = r.CheckBreak() } - if yyb4182 { + if yyb4354 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4182-1, "") + z.DecStructFieldNotFound(yyj4354-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52257,38 +54305,38 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4187 := z.EncBinary() - _ = yym4187 + yym4359 := z.EncBinary() + _ = yym4359 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4188 := !z.EncBinary() - yy2arr4188 := z.EncBasicHandle().StructToArray - var yyq4188 [4]bool - _, _, _ = yysep4188, yyq4188, yy2arr4188 - const yyr4188 bool = false - yyq4188[0] = x.Kind != "" - yyq4188[1] = x.APIVersion != "" - yyq4188[2] = true - yyq4188[3] = len(x.Conditions) != 0 - var yynn4188 int - if yyr4188 || yy2arr4188 { + yysep4360 := !z.EncBinary() + yy2arr4360 := z.EncBasicHandle().StructToArray + var yyq4360 [4]bool + _, _, _ = yysep4360, yyq4360, yy2arr4360 + const yyr4360 bool = false + yyq4360[0] = x.Kind != "" + yyq4360[1] = x.APIVersion != "" + yyq4360[2] = true + yyq4360[3] = len(x.Conditions) != 0 + var yynn4360 int + if yyr4360 || yy2arr4360 { r.EncodeArrayStart(4) } else { - yynn4188 = 0 - for _, b := range yyq4188 { + yynn4360 = 0 + for _, b := range yyq4360 { if b { - yynn4188++ + yynn4360++ } } - r.EncodeMapStart(yynn4188) - yynn4188 = 0 + r.EncodeMapStart(yynn4360) + yynn4360 = 0 } - if yyr4188 || yy2arr4188 { + if yyr4360 || yy2arr4360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4188[0] { - yym4190 := z.EncBinary() - _ = yym4190 + if yyq4360[0] { + yym4362 := z.EncBinary() + _ = yym4362 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -52297,23 +54345,23 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4188[0] { + if yyq4360[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4191 := z.EncBinary() - _ = yym4191 + yym4363 := z.EncBinary() + _ = yym4363 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4188 || yy2arr4188 { + if yyr4360 || yy2arr4360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4188[1] { - yym4193 := z.EncBinary() - _ = yym4193 + if yyq4360[1] { + yym4365 := z.EncBinary() + _ = yym4365 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -52322,43 +54370,43 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4188[1] { + if yyq4360[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4194 := z.EncBinary() - _ = yym4194 + yym4366 := z.EncBinary() + _ = yym4366 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4188 || yy2arr4188 { + if yyr4360 || yy2arr4360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4188[2] { - yy4196 := &x.ObjectMeta - yy4196.CodecEncodeSelf(e) + if yyq4360[2] { + yy4368 := &x.ObjectMeta + yy4368.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4188[2] { + if yyq4360[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4197 := &x.ObjectMeta - yy4197.CodecEncodeSelf(e) + yy4369 := &x.ObjectMeta + yy4369.CodecEncodeSelf(e) } } - if yyr4188 || yy2arr4188 { + if yyr4360 || yy2arr4360 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4188[3] { + if yyq4360[3] { if x.Conditions == nil { r.EncodeNil() } else { - yym4199 := z.EncBinary() - _ = yym4199 + yym4371 := z.EncBinary() + _ = yym4371 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) @@ -52368,15 +54416,15 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4188[3] { + if yyq4360[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym4200 := z.EncBinary() - _ = yym4200 + yym4372 := z.EncBinary() + _ = yym4372 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) @@ -52384,7 +54432,7 @@ func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4188 || yy2arr4188 { + if yyr4360 || yy2arr4360 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -52397,25 +54445,25 @@ func (x *ComponentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4201 := z.DecBinary() - _ = yym4201 + yym4373 := z.DecBinary() + _ = yym4373 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4202 := r.ContainerType() - if yyct4202 == codecSelferValueTypeMap1234 { - yyl4202 := r.ReadMapStart() - if yyl4202 == 0 { + yyct4374 := r.ContainerType() + if yyct4374 == codecSelferValueTypeMap1234 { + yyl4374 := r.ReadMapStart() + if yyl4374 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4202, d) + x.codecDecodeSelfFromMap(yyl4374, d) } - } else if yyct4202 == codecSelferValueTypeArray1234 { - yyl4202 := r.ReadArrayStart() - if yyl4202 == 0 { + } else if yyct4374 == codecSelferValueTypeArray1234 { + yyl4374 := r.ReadArrayStart() + if yyl4374 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4202, d) + x.codecDecodeSelfFromArray(yyl4374, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52427,12 +54475,12 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4203Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4203Slc - var yyhl4203 bool = l >= 0 - for yyj4203 := 0; ; yyj4203++ { - if yyhl4203 { - if yyj4203 >= l { + var yys4375Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4375Slc + var yyhl4375 bool = l >= 0 + for yyj4375 := 0; ; yyj4375++ { + if yyhl4375 { + if yyj4375 >= l { break } } else { @@ -52441,10 +54489,10 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4203Slc = r.DecodeBytes(yys4203Slc, true, true) - yys4203 := string(yys4203Slc) + yys4375Slc = r.DecodeBytes(yys4375Slc, true, true) + yys4375 := string(yys4375Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4203 { + switch yys4375 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -52461,25 +54509,25 @@ func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4206 := &x.ObjectMeta - yyv4206.CodecDecodeSelf(d) + yyv4378 := &x.ObjectMeta + yyv4378.CodecDecodeSelf(d) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4207 := &x.Conditions - yym4208 := z.DecBinary() - _ = yym4208 + yyv4379 := &x.Conditions + yym4380 := z.DecBinary() + _ = yym4380 if false { } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv4207), d) + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4379), d) } } default: - z.DecStructFieldNotFound(-1, yys4203) - } // end switch yys4203 - } // end for yyj4203 + z.DecStructFieldNotFound(-1, yys4375) + } // end switch yys4375 + } // end for yyj4375 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52487,16 +54535,16 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4209 int - var yyb4209 bool - var yyhl4209 bool = l >= 0 - yyj4209++ - if yyhl4209 { - yyb4209 = yyj4209 > l + var yyj4381 int + var yyb4381 bool + var yyhl4381 bool = l >= 0 + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb4209 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb4209 { + if yyb4381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52506,13 +54554,13 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj4209++ - if yyhl4209 { - yyb4209 = yyj4209 > l + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb4209 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb4209 { + if yyb4381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52522,13 +54570,13 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj4209++ - if yyhl4209 { - yyb4209 = yyj4209 > l + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb4209 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb4209 { + if yyb4381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52536,16 +54584,16 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4212 := &x.ObjectMeta - yyv4212.CodecDecodeSelf(d) + yyv4384 := &x.ObjectMeta + yyv4384.CodecDecodeSelf(d) } - yyj4209++ - if yyhl4209 { - yyb4209 = yyj4209 > l + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb4209 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb4209 { + if yyb4381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52553,26 +54601,26 @@ func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv4213 := &x.Conditions - yym4214 := z.DecBinary() - _ = yym4214 + yyv4385 := &x.Conditions + yym4386 := z.DecBinary() + _ = yym4386 if false { } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv4213), d) + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4385), d) } } for { - yyj4209++ - if yyhl4209 { - yyb4209 = yyj4209 > l + yyj4381++ + if yyhl4381 { + yyb4381 = yyj4381 > l } else { - yyb4209 = r.CheckBreak() + yyb4381 = r.CheckBreak() } - if yyb4209 { + if yyb4381 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4209-1, "") + z.DecStructFieldNotFound(yyj4381-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52584,37 +54632,37 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4215 := z.EncBinary() - _ = yym4215 + yym4387 := z.EncBinary() + _ = yym4387 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4216 := !z.EncBinary() - yy2arr4216 := z.EncBasicHandle().StructToArray - var yyq4216 [4]bool - _, _, _ = yysep4216, yyq4216, yy2arr4216 - const yyr4216 bool = false - yyq4216[0] = x.Kind != "" - yyq4216[1] = x.APIVersion != "" - yyq4216[2] = true - var yynn4216 int - if yyr4216 || yy2arr4216 { + yysep4388 := !z.EncBinary() + yy2arr4388 := z.EncBasicHandle().StructToArray + var yyq4388 [4]bool + _, _, _ = yysep4388, yyq4388, yy2arr4388 + const yyr4388 bool = false + yyq4388[0] = x.Kind != "" + yyq4388[1] = x.APIVersion != "" + yyq4388[2] = true + var yynn4388 int + if yyr4388 || yy2arr4388 { r.EncodeArrayStart(4) } else { - yynn4216 = 1 - for _, b := range yyq4216 { + yynn4388 = 1 + for _, b := range yyq4388 { if b { - yynn4216++ + yynn4388++ } } - r.EncodeMapStart(yynn4216) - yynn4216 = 0 + r.EncodeMapStart(yynn4388) + yynn4388 = 0 } - if yyr4216 || yy2arr4216 { + if yyr4388 || yy2arr4388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4216[0] { - yym4218 := z.EncBinary() - _ = yym4218 + if yyq4388[0] { + yym4390 := z.EncBinary() + _ = yym4390 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -52623,23 +54671,23 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4216[0] { + if yyq4388[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4219 := z.EncBinary() - _ = yym4219 + yym4391 := z.EncBinary() + _ = yym4391 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4216 || yy2arr4216 { + if yyr4388 || yy2arr4388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4216[1] { - yym4221 := z.EncBinary() - _ = yym4221 + if yyq4388[1] { + yym4393 := z.EncBinary() + _ = yym4393 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -52648,54 +54696,54 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4216[1] { + if yyq4388[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4222 := z.EncBinary() - _ = yym4222 + yym4394 := z.EncBinary() + _ = yym4394 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4216 || yy2arr4216 { + if yyr4388 || yy2arr4388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4216[2] { - yy4224 := &x.ListMeta - yym4225 := z.EncBinary() - _ = yym4225 + if yyq4388[2] { + yy4396 := &x.ListMeta + yym4397 := z.EncBinary() + _ = yym4397 if false { - } else if z.HasExtensions() && z.EncExt(yy4224) { + } else if z.HasExtensions() && z.EncExt(yy4396) { } else { - z.EncFallback(yy4224) + z.EncFallback(yy4396) } } else { r.EncodeNil() } } else { - if yyq4216[2] { + if yyq4388[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4226 := &x.ListMeta - yym4227 := z.EncBinary() - _ = yym4227 + yy4398 := &x.ListMeta + yym4399 := z.EncBinary() + _ = yym4399 if false { - } else if z.HasExtensions() && z.EncExt(yy4226) { + } else if z.HasExtensions() && z.EncExt(yy4398) { } else { - z.EncFallback(yy4226) + z.EncFallback(yy4398) } } } - if yyr4216 || yy2arr4216 { + if yyr4388 || yy2arr4388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4229 := z.EncBinary() - _ = yym4229 + yym4401 := z.EncBinary() + _ = yym4401 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) @@ -52708,15 +54756,15 @@ func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4230 := z.EncBinary() - _ = yym4230 + yym4402 := z.EncBinary() + _ = yym4402 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } - if yyr4216 || yy2arr4216 { + if yyr4388 || yy2arr4388 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -52729,25 +54777,25 @@ func (x *ComponentStatusList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4231 := z.DecBinary() - _ = yym4231 + yym4403 := z.DecBinary() + _ = yym4403 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4232 := r.ContainerType() - if yyct4232 == codecSelferValueTypeMap1234 { - yyl4232 := r.ReadMapStart() - if yyl4232 == 0 { + yyct4404 := r.ContainerType() + if yyct4404 == codecSelferValueTypeMap1234 { + yyl4404 := r.ReadMapStart() + if yyl4404 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4232, d) + x.codecDecodeSelfFromMap(yyl4404, d) } - } else if yyct4232 == codecSelferValueTypeArray1234 { - yyl4232 := r.ReadArrayStart() - if yyl4232 == 0 { + } else if yyct4404 == codecSelferValueTypeArray1234 { + yyl4404 := r.ReadArrayStart() + if yyl4404 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4232, d) + x.codecDecodeSelfFromArray(yyl4404, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -52759,12 +54807,12 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4233Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4233Slc - var yyhl4233 bool = l >= 0 - for yyj4233 := 0; ; yyj4233++ { - if yyhl4233 { - if yyj4233 >= l { + var yys4405Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4405Slc + var yyhl4405 bool = l >= 0 + for yyj4405 := 0; ; yyj4405++ { + if yyhl4405 { + if yyj4405 >= l { break } } else { @@ -52773,10 +54821,10 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4233Slc = r.DecodeBytes(yys4233Slc, true, true) - yys4233 := string(yys4233Slc) + yys4405Slc = r.DecodeBytes(yys4405Slc, true, true) + yys4405 := string(yys4405Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4233 { + switch yys4405 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -52793,31 +54841,31 @@ func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4236 := &x.ListMeta - yym4237 := z.DecBinary() - _ = yym4237 + yyv4408 := &x.ListMeta + yym4409 := z.DecBinary() + _ = yym4409 if false { - } else if z.HasExtensions() && z.DecExt(yyv4236) { + } else if z.HasExtensions() && z.DecExt(yyv4408) { } else { - z.DecFallback(yyv4236, false) + z.DecFallback(yyv4408, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4238 := &x.Items - yym4239 := z.DecBinary() - _ = yym4239 + yyv4410 := &x.Items + yym4411 := z.DecBinary() + _ = yym4411 if false { } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv4238), d) + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4410), d) } } default: - z.DecStructFieldNotFound(-1, yys4233) - } // end switch yys4233 - } // end for yyj4233 + z.DecStructFieldNotFound(-1, yys4405) + } // end switch yys4405 + } // end for yyj4405 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -52825,16 +54873,16 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4240 int - var yyb4240 bool - var yyhl4240 bool = l >= 0 - yyj4240++ - if yyhl4240 { - yyb4240 = yyj4240 > l + var yyj4412 int + var yyb4412 bool + var yyhl4412 bool = l >= 0 + yyj4412++ + if yyhl4412 { + yyb4412 = yyj4412 > l } else { - yyb4240 = r.CheckBreak() + yyb4412 = r.CheckBreak() } - if yyb4240 { + if yyb4412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52844,13 +54892,13 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj4240++ - if yyhl4240 { - yyb4240 = yyj4240 > l + yyj4412++ + if yyhl4412 { + yyb4412 = yyj4412 > l } else { - yyb4240 = r.CheckBreak() + yyb4412 = r.CheckBreak() } - if yyb4240 { + if yyb4412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52860,13 +54908,13 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj4240++ - if yyhl4240 { - yyb4240 = yyj4240 > l + yyj4412++ + if yyhl4412 { + yyb4412 = yyj4412 > l } else { - yyb4240 = r.CheckBreak() + yyb4412 = r.CheckBreak() } - if yyb4240 { + if yyb4412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52874,22 +54922,22 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4243 := &x.ListMeta - yym4244 := z.DecBinary() - _ = yym4244 + yyv4415 := &x.ListMeta + yym4416 := z.DecBinary() + _ = yym4416 if false { - } else if z.HasExtensions() && z.DecExt(yyv4243) { + } else if z.HasExtensions() && z.DecExt(yyv4415) { } else { - z.DecFallback(yyv4243, false) + z.DecFallback(yyv4415, false) } } - yyj4240++ - if yyhl4240 { - yyb4240 = yyj4240 > l + yyj4412++ + if yyhl4412 { + yyb4412 = yyj4412 > l } else { - yyb4240 = r.CheckBreak() + yyb4412 = r.CheckBreak() } - if yyb4240 { + if yyb4412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52897,26 +54945,26 @@ func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4245 := &x.Items - yym4246 := z.DecBinary() - _ = yym4246 + yyv4417 := &x.Items + yym4418 := z.DecBinary() + _ = yym4418 if false { } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv4245), d) + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4417), d) } } for { - yyj4240++ - if yyhl4240 { - yyb4240 = yyj4240 > l + yyj4412++ + if yyhl4412 { + yyb4412 = yyj4412 > l } else { - yyb4240 = r.CheckBreak() + yyb4412 = r.CheckBreak() } - if yyb4240 { + if yyb4412 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4240-1, "") + z.DecStructFieldNotFound(yyj4412-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -52928,38 +54976,38 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4247 := z.EncBinary() - _ = yym4247 + yym4419 := z.EncBinary() + _ = yym4419 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4248 := !z.EncBinary() - yy2arr4248 := z.EncBasicHandle().StructToArray - var yyq4248 [6]bool - _, _, _ = yysep4248, yyq4248, yy2arr4248 - const yyr4248 bool = false - yyq4248[0] = x.Capabilities != nil - yyq4248[1] = x.Privileged != nil - yyq4248[2] = x.SELinuxOptions != nil - yyq4248[3] = x.RunAsUser != nil - yyq4248[4] = x.RunAsNonRoot != nil - yyq4248[5] = x.ReadOnlyRootFilesystem != nil - var yynn4248 int - if yyr4248 || yy2arr4248 { + yysep4420 := !z.EncBinary() + yy2arr4420 := z.EncBasicHandle().StructToArray + var yyq4420 [6]bool + _, _, _ = yysep4420, yyq4420, yy2arr4420 + const yyr4420 bool = false + yyq4420[0] = x.Capabilities != nil + yyq4420[1] = x.Privileged != nil + yyq4420[2] = x.SELinuxOptions != nil + yyq4420[3] = x.RunAsUser != nil + yyq4420[4] = x.RunAsNonRoot != nil + yyq4420[5] = x.ReadOnlyRootFilesystem != nil + var yynn4420 int + if yyr4420 || yy2arr4420 { r.EncodeArrayStart(6) } else { - yynn4248 = 0 - for _, b := range yyq4248 { + yynn4420 = 0 + for _, b := range yyq4420 { if b { - yynn4248++ + yynn4420++ } } - r.EncodeMapStart(yynn4248) - yynn4248 = 0 + r.EncodeMapStart(yynn4420) + yynn4420 = 0 } - if yyr4248 || yy2arr4248 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4248[0] { + if yyq4420[0] { if x.Capabilities == nil { r.EncodeNil() } else { @@ -52969,7 +55017,7 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4248[0] { + if yyq4420[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -52980,44 +55028,44 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4248 || yy2arr4248 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4248[1] { + if yyq4420[1] { if x.Privileged == nil { r.EncodeNil() } else { - yy4251 := *x.Privileged - yym4252 := z.EncBinary() - _ = yym4252 + yy4423 := *x.Privileged + yym4424 := z.EncBinary() + _ = yym4424 if false { } else { - r.EncodeBool(bool(yy4251)) + r.EncodeBool(bool(yy4423)) } } } else { r.EncodeNil() } } else { - if yyq4248[1] { + if yyq4420[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Privileged == nil { r.EncodeNil() } else { - yy4253 := *x.Privileged - yym4254 := z.EncBinary() - _ = yym4254 + yy4425 := *x.Privileged + yym4426 := z.EncBinary() + _ = yym4426 if false { } else { - r.EncodeBool(bool(yy4253)) + r.EncodeBool(bool(yy4425)) } } } } - if yyr4248 || yy2arr4248 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4248[2] { + if yyq4420[2] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -53027,7 +55075,7 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4248[2] { + if yyq4420[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -53038,112 +55086,112 @@ func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4248 || yy2arr4248 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4248[3] { + if yyq4420[3] { if x.RunAsUser == nil { r.EncodeNil() } else { - yy4257 := *x.RunAsUser - yym4258 := z.EncBinary() - _ = yym4258 + yy4429 := *x.RunAsUser + yym4430 := z.EncBinary() + _ = yym4430 if false { } else { - r.EncodeInt(int64(yy4257)) + r.EncodeInt(int64(yy4429)) } } } else { r.EncodeNil() } } else { - if yyq4248[3] { + if yyq4420[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { - yy4259 := *x.RunAsUser - yym4260 := z.EncBinary() - _ = yym4260 + yy4431 := *x.RunAsUser + yym4432 := z.EncBinary() + _ = yym4432 if false { } else { - r.EncodeInt(int64(yy4259)) + r.EncodeInt(int64(yy4431)) } } } } - if yyr4248 || yy2arr4248 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4248[4] { + if yyq4420[4] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy4262 := *x.RunAsNonRoot - yym4263 := z.EncBinary() - _ = yym4263 + yy4434 := *x.RunAsNonRoot + yym4435 := z.EncBinary() + _ = yym4435 if false { } else { - r.EncodeBool(bool(yy4262)) + r.EncodeBool(bool(yy4434)) } } } else { r.EncodeNil() } } else { - if yyq4248[4] { + if yyq4420[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy4264 := *x.RunAsNonRoot - yym4265 := z.EncBinary() - _ = yym4265 + yy4436 := *x.RunAsNonRoot + yym4437 := z.EncBinary() + _ = yym4437 if false { } else { - r.EncodeBool(bool(yy4264)) + r.EncodeBool(bool(yy4436)) } } } } - if yyr4248 || yy2arr4248 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4248[5] { + if yyq4420[5] { if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { - yy4267 := *x.ReadOnlyRootFilesystem - yym4268 := z.EncBinary() - _ = yym4268 + yy4439 := *x.ReadOnlyRootFilesystem + yym4440 := z.EncBinary() + _ = yym4440 if false { } else { - r.EncodeBool(bool(yy4267)) + r.EncodeBool(bool(yy4439)) } } } else { r.EncodeNil() } } else { - if yyq4248[5] { + if yyq4420[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { - yy4269 := *x.ReadOnlyRootFilesystem - yym4270 := z.EncBinary() - _ = yym4270 + yy4441 := *x.ReadOnlyRootFilesystem + yym4442 := z.EncBinary() + _ = yym4442 if false { } else { - r.EncodeBool(bool(yy4269)) + r.EncodeBool(bool(yy4441)) } } } } - if yyr4248 || yy2arr4248 { + if yyr4420 || yy2arr4420 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53156,25 +55204,25 @@ func (x *SecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4271 := z.DecBinary() - _ = yym4271 + yym4443 := z.DecBinary() + _ = yym4443 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4272 := r.ContainerType() - if yyct4272 == codecSelferValueTypeMap1234 { - yyl4272 := r.ReadMapStart() - if yyl4272 == 0 { + yyct4444 := r.ContainerType() + if yyct4444 == codecSelferValueTypeMap1234 { + yyl4444 := r.ReadMapStart() + if yyl4444 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4272, d) + x.codecDecodeSelfFromMap(yyl4444, d) } - } else if yyct4272 == codecSelferValueTypeArray1234 { - yyl4272 := r.ReadArrayStart() - if yyl4272 == 0 { + } else if yyct4444 == codecSelferValueTypeArray1234 { + yyl4444 := r.ReadArrayStart() + if yyl4444 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4272, d) + x.codecDecodeSelfFromArray(yyl4444, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53186,12 +55234,12 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4273Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4273Slc - var yyhl4273 bool = l >= 0 - for yyj4273 := 0; ; yyj4273++ { - if yyhl4273 { - if yyj4273 >= l { + var yys4445Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4445Slc + var yyhl4445 bool = l >= 0 + for yyj4445 := 0; ; yyj4445++ { + if yyhl4445 { + if yyj4445 >= l { break } } else { @@ -53200,10 +55248,10 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4273Slc = r.DecodeBytes(yys4273Slc, true, true) - yys4273 := string(yys4273Slc) + yys4445Slc = r.DecodeBytes(yys4445Slc, true, true) + yys4445 := string(yys4445Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4273 { + switch yys4445 { case "capabilities": if r.TryDecodeAsNil() { if x.Capabilities != nil { @@ -53224,8 +55272,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Privileged == nil { x.Privileged = new(bool) } - yym4276 := z.DecBinary() - _ = yym4276 + yym4448 := z.DecBinary() + _ = yym4448 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() @@ -53251,8 +55299,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym4279 := z.DecBinary() - _ = yym4279 + yym4451 := z.DecBinary() + _ = yym4451 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) @@ -53267,8 +55315,8 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym4281 := z.DecBinary() - _ = yym4281 + yym4453 := z.DecBinary() + _ = yym4453 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() @@ -53283,17 +55331,17 @@ func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } - yym4283 := z.DecBinary() - _ = yym4283 + yym4455 := z.DecBinary() + _ = yym4455 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys4273) - } // end switch yys4273 - } // end for yyj4273 + z.DecStructFieldNotFound(-1, yys4445) + } // end switch yys4445 + } // end for yyj4445 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53301,16 +55349,16 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4284 int - var yyb4284 bool - var yyhl4284 bool = l >= 0 - yyj4284++ - if yyhl4284 { - yyb4284 = yyj4284 > l + var yyj4456 int + var yyb4456 bool + var yyhl4456 bool = l >= 0 + yyj4456++ + if yyhl4456 { + yyb4456 = yyj4456 > l } else { - yyb4284 = r.CheckBreak() + yyb4456 = r.CheckBreak() } - if yyb4284 { + if yyb4456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53325,13 +55373,13 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.Capabilities.CodecDecodeSelf(d) } - yyj4284++ - if yyhl4284 { - yyb4284 = yyj4284 > l + yyj4456++ + if yyhl4456 { + yyb4456 = yyj4456 > l } else { - yyb4284 = r.CheckBreak() + yyb4456 = r.CheckBreak() } - if yyb4284 { + if yyb4456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53344,20 +55392,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.Privileged == nil { x.Privileged = new(bool) } - yym4287 := z.DecBinary() - _ = yym4287 + yym4459 := z.DecBinary() + _ = yym4459 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } - yyj4284++ - if yyhl4284 { - yyb4284 = yyj4284 > l + yyj4456++ + if yyhl4456 { + yyb4456 = yyj4456 > l } else { - yyb4284 = r.CheckBreak() + yyb4456 = r.CheckBreak() } - if yyb4284 { + if yyb4456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53372,13 +55420,13 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SELinuxOptions.CodecDecodeSelf(d) } - yyj4284++ - if yyhl4284 { - yyb4284 = yyj4284 > l + yyj4456++ + if yyhl4456 { + yyb4456 = yyj4456 > l } else { - yyb4284 = r.CheckBreak() + yyb4456 = r.CheckBreak() } - if yyb4284 { + if yyb4456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53391,20 +55439,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym4290 := z.DecBinary() - _ = yym4290 + yym4462 := z.DecBinary() + _ = yym4462 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } - yyj4284++ - if yyhl4284 { - yyb4284 = yyj4284 > l + yyj4456++ + if yyhl4456 { + yyb4456 = yyj4456 > l } else { - yyb4284 = r.CheckBreak() + yyb4456 = r.CheckBreak() } - if yyb4284 { + if yyb4456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53417,20 +55465,20 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym4292 := z.DecBinary() - _ = yym4292 + yym4464 := z.DecBinary() + _ = yym4464 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } - yyj4284++ - if yyhl4284 { - yyb4284 = yyj4284 > l + yyj4456++ + if yyhl4456 { + yyb4456 = yyj4456 > l } else { - yyb4284 = r.CheckBreak() + yyb4456 = r.CheckBreak() } - if yyb4284 { + if yyb4456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53443,25 +55491,25 @@ func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } - yym4294 := z.DecBinary() - _ = yym4294 + yym4466 := z.DecBinary() + _ = yym4466 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } for { - yyj4284++ - if yyhl4284 { - yyb4284 = yyj4284 > l + yyj4456++ + if yyhl4456 { + yyb4456 = yyj4456 > l } else { - yyb4284 = r.CheckBreak() + yyb4456 = r.CheckBreak() } - if yyb4284 { + if yyb4456 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4284-1, "") + z.DecStructFieldNotFound(yyj4456-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53473,38 +55521,38 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4295 := z.EncBinary() - _ = yym4295 + yym4467 := z.EncBinary() + _ = yym4467 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4296 := !z.EncBinary() - yy2arr4296 := z.EncBasicHandle().StructToArray - var yyq4296 [4]bool - _, _, _ = yysep4296, yyq4296, yy2arr4296 - const yyr4296 bool = false - yyq4296[0] = x.User != "" - yyq4296[1] = x.Role != "" - yyq4296[2] = x.Type != "" - yyq4296[3] = x.Level != "" - var yynn4296 int - if yyr4296 || yy2arr4296 { + yysep4468 := !z.EncBinary() + yy2arr4468 := z.EncBasicHandle().StructToArray + var yyq4468 [4]bool + _, _, _ = yysep4468, yyq4468, yy2arr4468 + const yyr4468 bool = false + yyq4468[0] = x.User != "" + yyq4468[1] = x.Role != "" + yyq4468[2] = x.Type != "" + yyq4468[3] = x.Level != "" + var yynn4468 int + if yyr4468 || yy2arr4468 { r.EncodeArrayStart(4) } else { - yynn4296 = 0 - for _, b := range yyq4296 { + yynn4468 = 0 + for _, b := range yyq4468 { if b { - yynn4296++ + yynn4468++ } } - r.EncodeMapStart(yynn4296) - yynn4296 = 0 + r.EncodeMapStart(yynn4468) + yynn4468 = 0 } - if yyr4296 || yy2arr4296 { + if yyr4468 || yy2arr4468 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4296[0] { - yym4298 := z.EncBinary() - _ = yym4298 + if yyq4468[0] { + yym4470 := z.EncBinary() + _ = yym4470 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -53513,23 +55561,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4296[0] { + if yyq4468[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4299 := z.EncBinary() - _ = yym4299 + yym4471 := z.EncBinary() + _ = yym4471 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } - if yyr4296 || yy2arr4296 { + if yyr4468 || yy2arr4468 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4296[1] { - yym4301 := z.EncBinary() - _ = yym4301 + if yyq4468[1] { + yym4473 := z.EncBinary() + _ = yym4473 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) @@ -53538,23 +55586,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4296[1] { + if yyq4468[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("role")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4302 := z.EncBinary() - _ = yym4302 + yym4474 := z.EncBinary() + _ = yym4474 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } } - if yyr4296 || yy2arr4296 { + if yyr4468 || yy2arr4468 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4296[2] { - yym4304 := z.EncBinary() - _ = yym4304 + if yyq4468[2] { + yym4476 := z.EncBinary() + _ = yym4476 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) @@ -53563,23 +55611,23 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4296[2] { + if yyq4468[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4305 := z.EncBinary() - _ = yym4305 + yym4477 := z.EncBinary() + _ = yym4477 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } - if yyr4296 || yy2arr4296 { + if yyr4468 || yy2arr4468 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4296[3] { - yym4307 := z.EncBinary() - _ = yym4307 + if yyq4468[3] { + yym4479 := z.EncBinary() + _ = yym4479 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) @@ -53588,19 +55636,19 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4296[3] { + if yyq4468[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("level")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4308 := z.EncBinary() - _ = yym4308 + yym4480 := z.EncBinary() + _ = yym4480 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } } - if yyr4296 || yy2arr4296 { + if yyr4468 || yy2arr4468 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53613,25 +55661,25 @@ func (x *SELinuxOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4309 := z.DecBinary() - _ = yym4309 + yym4481 := z.DecBinary() + _ = yym4481 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4310 := r.ContainerType() - if yyct4310 == codecSelferValueTypeMap1234 { - yyl4310 := r.ReadMapStart() - if yyl4310 == 0 { + yyct4482 := r.ContainerType() + if yyct4482 == codecSelferValueTypeMap1234 { + yyl4482 := r.ReadMapStart() + if yyl4482 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4310, d) + x.codecDecodeSelfFromMap(yyl4482, d) } - } else if yyct4310 == codecSelferValueTypeArray1234 { - yyl4310 := r.ReadArrayStart() - if yyl4310 == 0 { + } else if yyct4482 == codecSelferValueTypeArray1234 { + yyl4482 := r.ReadArrayStart() + if yyl4482 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4310, d) + x.codecDecodeSelfFromArray(yyl4482, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53643,12 +55691,12 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4311Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4311Slc - var yyhl4311 bool = l >= 0 - for yyj4311 := 0; ; yyj4311++ { - if yyhl4311 { - if yyj4311 >= l { + var yys4483Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4483Slc + var yyhl4483 bool = l >= 0 + for yyj4483 := 0; ; yyj4483++ { + if yyhl4483 { + if yyj4483 >= l { break } } else { @@ -53657,10 +55705,10 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4311Slc = r.DecodeBytes(yys4311Slc, true, true) - yys4311 := string(yys4311Slc) + yys4483Slc = r.DecodeBytes(yys4483Slc, true, true) + yys4483 := string(yys4483Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4311 { + switch yys4483 { case "user": if r.TryDecodeAsNil() { x.User = "" @@ -53686,9 +55734,9 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Level = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4311) - } // end switch yys4311 - } // end for yyj4311 + z.DecStructFieldNotFound(-1, yys4483) + } // end switch yys4483 + } // end for yyj4483 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53696,16 +55744,16 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4316 int - var yyb4316 bool - var yyhl4316 bool = l >= 0 - yyj4316++ - if yyhl4316 { - yyb4316 = yyj4316 > l + var yyj4488 int + var yyb4488 bool + var yyhl4488 bool = l >= 0 + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb4316 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb4316 { + if yyb4488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53715,13 +55763,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.User = string(r.DecodeString()) } - yyj4316++ - if yyhl4316 { - yyb4316 = yyj4316 > l + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb4316 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb4316 { + if yyb4488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53731,13 +55779,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Role = string(r.DecodeString()) } - yyj4316++ - if yyhl4316 { - yyb4316 = yyj4316 > l + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb4316 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb4316 { + if yyb4488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53747,13 +55795,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = string(r.DecodeString()) } - yyj4316++ - if yyhl4316 { - yyb4316 = yyj4316 > l + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb4316 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb4316 { + if yyb4488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53764,17 +55812,17 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Level = string(r.DecodeString()) } for { - yyj4316++ - if yyhl4316 { - yyb4316 = yyj4316 > l + yyj4488++ + if yyhl4488 { + yyb4488 = yyj4488 > l } else { - yyb4316 = r.CheckBreak() + yyb4488 = r.CheckBreak() } - if yyb4316 { + if yyb4488 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4316-1, "") + z.DecStructFieldNotFound(yyj4488-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -53786,37 +55834,37 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4321 := z.EncBinary() - _ = yym4321 + yym4493 := z.EncBinary() + _ = yym4493 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4322 := !z.EncBinary() - yy2arr4322 := z.EncBasicHandle().StructToArray - var yyq4322 [5]bool - _, _, _ = yysep4322, yyq4322, yy2arr4322 - const yyr4322 bool = false - yyq4322[0] = x.Kind != "" - yyq4322[1] = x.APIVersion != "" - yyq4322[2] = true - var yynn4322 int - if yyr4322 || yy2arr4322 { + yysep4494 := !z.EncBinary() + yy2arr4494 := z.EncBasicHandle().StructToArray + var yyq4494 [5]bool + _, _, _ = yysep4494, yyq4494, yy2arr4494 + const yyr4494 bool = false + yyq4494[0] = x.Kind != "" + yyq4494[1] = x.APIVersion != "" + yyq4494[2] = true + var yynn4494 int + if yyr4494 || yy2arr4494 { r.EncodeArrayStart(5) } else { - yynn4322 = 2 - for _, b := range yyq4322 { + yynn4494 = 2 + for _, b := range yyq4494 { if b { - yynn4322++ + yynn4494++ } } - r.EncodeMapStart(yynn4322) - yynn4322 = 0 + r.EncodeMapStart(yynn4494) + yynn4494 = 0 } - if yyr4322 || yy2arr4322 { + if yyr4494 || yy2arr4494 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4322[0] { - yym4324 := z.EncBinary() - _ = yym4324 + if yyq4494[0] { + yym4496 := z.EncBinary() + _ = yym4496 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -53825,23 +55873,23 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4322[0] { + if yyq4494[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4325 := z.EncBinary() - _ = yym4325 + yym4497 := z.EncBinary() + _ = yym4497 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4322 || yy2arr4322 { + if yyr4494 || yy2arr4494 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4322[1] { - yym4327 := z.EncBinary() - _ = yym4327 + if yyq4494[1] { + yym4499 := z.EncBinary() + _ = yym4499 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -53850,39 +55898,39 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4322[1] { + if yyq4494[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4328 := z.EncBinary() - _ = yym4328 + yym4500 := z.EncBinary() + _ = yym4500 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4322 || yy2arr4322 { + if yyr4494 || yy2arr4494 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4322[2] { - yy4330 := &x.ObjectMeta - yy4330.CodecEncodeSelf(e) + if yyq4494[2] { + yy4502 := &x.ObjectMeta + yy4502.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4322[2] { + if yyq4494[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4331 := &x.ObjectMeta - yy4331.CodecEncodeSelf(e) + yy4503 := &x.ObjectMeta + yy4503.CodecEncodeSelf(e) } } - if yyr4322 || yy2arr4322 { + if yyr4494 || yy2arr4494 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4333 := z.EncBinary() - _ = yym4333 + yym4505 := z.EncBinary() + _ = yym4505 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) @@ -53891,20 +55939,20 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("range")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4334 := z.EncBinary() - _ = yym4334 + yym4506 := z.EncBinary() + _ = yym4506 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } - if yyr4322 || yy2arr4322 { + if yyr4494 || yy2arr4494 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { - yym4336 := z.EncBinary() - _ = yym4336 + yym4508 := z.EncBinary() + _ = yym4508 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) @@ -53917,15 +55965,15 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { if x.Data == nil { r.EncodeNil() } else { - yym4337 := z.EncBinary() - _ = yym4337 + yym4509 := z.EncBinary() + _ = yym4509 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } - if yyr4322 || yy2arr4322 { + if yyr4494 || yy2arr4494 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -53938,25 +55986,25 @@ func (x *RangeAllocation) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4338 := z.DecBinary() - _ = yym4338 + yym4510 := z.DecBinary() + _ = yym4510 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4339 := r.ContainerType() - if yyct4339 == codecSelferValueTypeMap1234 { - yyl4339 := r.ReadMapStart() - if yyl4339 == 0 { + yyct4511 := r.ContainerType() + if yyct4511 == codecSelferValueTypeMap1234 { + yyl4511 := r.ReadMapStart() + if yyl4511 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4339, d) + x.codecDecodeSelfFromMap(yyl4511, d) } - } else if yyct4339 == codecSelferValueTypeArray1234 { - yyl4339 := r.ReadArrayStart() - if yyl4339 == 0 { + } else if yyct4511 == codecSelferValueTypeArray1234 { + yyl4511 := r.ReadArrayStart() + if yyl4511 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4339, d) + x.codecDecodeSelfFromArray(yyl4511, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -53968,12 +56016,12 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4340Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4340Slc - var yyhl4340 bool = l >= 0 - for yyj4340 := 0; ; yyj4340++ { - if yyhl4340 { - if yyj4340 >= l { + var yys4512Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4512Slc + var yyhl4512 bool = l >= 0 + for yyj4512 := 0; ; yyj4512++ { + if yyhl4512 { + if yyj4512 >= l { break } } else { @@ -53982,10 +56030,10 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4340Slc = r.DecodeBytes(yys4340Slc, true, true) - yys4340 := string(yys4340Slc) + yys4512Slc = r.DecodeBytes(yys4512Slc, true, true) + yys4512 := string(yys4512Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4340 { + switch yys4512 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -54002,8 +56050,8 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4343 := &x.ObjectMeta - yyv4343.CodecDecodeSelf(d) + yyv4515 := &x.ObjectMeta + yyv4515.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { @@ -54015,18 +56063,18 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4345 := &x.Data - yym4346 := z.DecBinary() - _ = yym4346 + yyv4517 := &x.Data + yym4518 := z.DecBinary() + _ = yym4518 if false { } else { - *yyv4345 = r.DecodeBytes(*(*[]byte)(yyv4345), false, false) + *yyv4517 = r.DecodeBytes(*(*[]byte)(yyv4517), false, false) } } default: - z.DecStructFieldNotFound(-1, yys4340) - } // end switch yys4340 - } // end for yyj4340 + z.DecStructFieldNotFound(-1, yys4512) + } // end switch yys4512 + } // end for yyj4512 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -54034,16 +56082,16 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4347 int - var yyb4347 bool - var yyhl4347 bool = l >= 0 - yyj4347++ - if yyhl4347 { - yyb4347 = yyj4347 > l + var yyj4519 int + var yyb4519 bool + var yyhl4519 bool = l >= 0 + yyj4519++ + if yyhl4519 { + yyb4519 = yyj4519 > l } else { - yyb4347 = r.CheckBreak() + yyb4519 = r.CheckBreak() } - if yyb4347 { + if yyb4519 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54053,13 +56101,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj4347++ - if yyhl4347 { - yyb4347 = yyj4347 > l + yyj4519++ + if yyhl4519 { + yyb4519 = yyj4519 > l } else { - yyb4347 = r.CheckBreak() + yyb4519 = r.CheckBreak() } - if yyb4347 { + if yyb4519 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54069,13 +56117,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj4347++ - if yyhl4347 { - yyb4347 = yyj4347 > l + yyj4519++ + if yyhl4519 { + yyb4519 = yyj4519 > l } else { - yyb4347 = r.CheckBreak() + yyb4519 = r.CheckBreak() } - if yyb4347 { + if yyb4519 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54083,16 +56131,16 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4350 := &x.ObjectMeta - yyv4350.CodecDecodeSelf(d) + yyv4522 := &x.ObjectMeta + yyv4522.CodecDecodeSelf(d) } - yyj4347++ - if yyhl4347 { - yyb4347 = yyj4347 > l + yyj4519++ + if yyhl4519 { + yyb4519 = yyj4519 > l } else { - yyb4347 = r.CheckBreak() + yyb4519 = r.CheckBreak() } - if yyb4347 { + if yyb4519 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54102,13 +56150,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Range = string(r.DecodeString()) } - yyj4347++ - if yyhl4347 { - yyb4347 = yyj4347 > l + yyj4519++ + if yyhl4519 { + yyb4519 = yyj4519 > l } else { - yyb4347 = r.CheckBreak() + yyb4519 = r.CheckBreak() } - if yyb4347 { + if yyb4519 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54116,3377 +56164,31 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4352 := &x.Data - yym4353 := z.DecBinary() - _ = yym4353 + yyv4524 := &x.Data + yym4525 := z.DecBinary() + _ = yym4525 if false { } else { - *yyv4352 = r.DecodeBytes(*(*[]byte)(yyv4352), false, false) + *yyv4524 = r.DecodeBytes(*(*[]byte)(yyv4524), false, false) } } for { - yyj4347++ - if yyhl4347 { - yyb4347 = yyj4347 > l + yyj4519++ + if yyhl4519 { + yyb4519 = yyj4519 > l } else { - yyb4347 = r.CheckBreak() + yyb4519 = r.CheckBreak() } - if yyb4347 { + if yyb4519 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4347-1, "") + z.DecStructFieldNotFound(yyj4519-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) encSliceOwnerReference(v []OwnerReference, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4354 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4355 := &yyv4354 - yy4355.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4356 := *v - yyh4356, yyl4356 := z.DecSliceHelperStart() - var yyc4356 bool - if yyl4356 == 0 { - if yyv4356 == nil { - yyv4356 = []OwnerReference{} - yyc4356 = true - } else if len(yyv4356) != 0 { - yyv4356 = yyv4356[:0] - yyc4356 = true - } - } else if yyl4356 > 0 { - var yyrr4356, yyrl4356 int - var yyrt4356 bool - if yyl4356 > cap(yyv4356) { - - yyrg4356 := len(yyv4356) > 0 - yyv24356 := yyv4356 - yyrl4356, yyrt4356 = z.DecInferLen(yyl4356, z.DecBasicHandle().MaxInitLen, 72) - if yyrt4356 { - if yyrl4356 <= cap(yyv4356) { - yyv4356 = yyv4356[:yyrl4356] - } else { - yyv4356 = make([]OwnerReference, yyrl4356) - } - } else { - yyv4356 = make([]OwnerReference, yyrl4356) - } - yyc4356 = true - yyrr4356 = len(yyv4356) - if yyrg4356 { - copy(yyv4356, yyv24356) - } - } else if yyl4356 != len(yyv4356) { - yyv4356 = yyv4356[:yyl4356] - yyc4356 = true - } - yyj4356 := 0 - for ; yyj4356 < yyrr4356; yyj4356++ { - yyh4356.ElemContainerState(yyj4356) - if r.TryDecodeAsNil() { - yyv4356[yyj4356] = OwnerReference{} - } else { - yyv4357 := &yyv4356[yyj4356] - yyv4357.CodecDecodeSelf(d) - } - - } - if yyrt4356 { - for ; yyj4356 < yyl4356; yyj4356++ { - yyv4356 = append(yyv4356, OwnerReference{}) - yyh4356.ElemContainerState(yyj4356) - if r.TryDecodeAsNil() { - yyv4356[yyj4356] = OwnerReference{} - } else { - yyv4358 := &yyv4356[yyj4356] - yyv4358.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4356 := 0 - for ; !r.CheckBreak(); yyj4356++ { - - if yyj4356 >= len(yyv4356) { - yyv4356 = append(yyv4356, OwnerReference{}) // var yyz4356 OwnerReference - yyc4356 = true - } - yyh4356.ElemContainerState(yyj4356) - if yyj4356 < len(yyv4356) { - if r.TryDecodeAsNil() { - yyv4356[yyj4356] = OwnerReference{} - } else { - yyv4359 := &yyv4356[yyj4356] - yyv4359.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4356 < len(yyv4356) { - yyv4356 = yyv4356[:yyj4356] - yyc4356 = true - } else if yyj4356 == 0 && yyv4356 == nil { - yyv4356 = []OwnerReference{} - yyc4356 = true - } - } - yyh4356.End() - if yyc4356 { - *v = yyv4356 - } -} - -func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolumeAccessMode, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4360 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4360.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolumeAccessMode, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4361 := *v - yyh4361, yyl4361 := z.DecSliceHelperStart() - var yyc4361 bool - if yyl4361 == 0 { - if yyv4361 == nil { - yyv4361 = []PersistentVolumeAccessMode{} - yyc4361 = true - } else if len(yyv4361) != 0 { - yyv4361 = yyv4361[:0] - yyc4361 = true - } - } else if yyl4361 > 0 { - var yyrr4361, yyrl4361 int - var yyrt4361 bool - if yyl4361 > cap(yyv4361) { - - yyrl4361, yyrt4361 = z.DecInferLen(yyl4361, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4361 { - if yyrl4361 <= cap(yyv4361) { - yyv4361 = yyv4361[:yyrl4361] - } else { - yyv4361 = make([]PersistentVolumeAccessMode, yyrl4361) - } - } else { - yyv4361 = make([]PersistentVolumeAccessMode, yyrl4361) - } - yyc4361 = true - yyrr4361 = len(yyv4361) - } else if yyl4361 != len(yyv4361) { - yyv4361 = yyv4361[:yyl4361] - yyc4361 = true - } - yyj4361 := 0 - for ; yyj4361 < yyrr4361; yyj4361++ { - yyh4361.ElemContainerState(yyj4361) - if r.TryDecodeAsNil() { - yyv4361[yyj4361] = "" - } else { - yyv4361[yyj4361] = PersistentVolumeAccessMode(r.DecodeString()) - } - - } - if yyrt4361 { - for ; yyj4361 < yyl4361; yyj4361++ { - yyv4361 = append(yyv4361, "") - yyh4361.ElemContainerState(yyj4361) - if r.TryDecodeAsNil() { - yyv4361[yyj4361] = "" - } else { - yyv4361[yyj4361] = PersistentVolumeAccessMode(r.DecodeString()) - } - - } - } - - } else { - yyj4361 := 0 - for ; !r.CheckBreak(); yyj4361++ { - - if yyj4361 >= len(yyv4361) { - yyv4361 = append(yyv4361, "") // var yyz4361 PersistentVolumeAccessMode - yyc4361 = true - } - yyh4361.ElemContainerState(yyj4361) - if yyj4361 < len(yyv4361) { - if r.TryDecodeAsNil() { - yyv4361[yyj4361] = "" - } else { - yyv4361[yyj4361] = PersistentVolumeAccessMode(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj4361 < len(yyv4361) { - yyv4361 = yyv4361[:yyj4361] - yyc4361 = true - } else if yyj4361 == 0 && yyv4361 == nil { - yyv4361 = []PersistentVolumeAccessMode{} - yyc4361 = true - } - } - yyh4361.End() - if yyc4361 { - *v = yyv4361 - } -} - -func (x codecSelfer1234) encSlicePersistentVolume(v []PersistentVolume, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4365 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4366 := &yyv4365 - yy4366.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4367 := *v - yyh4367, yyl4367 := z.DecSliceHelperStart() - var yyc4367 bool - if yyl4367 == 0 { - if yyv4367 == nil { - yyv4367 = []PersistentVolume{} - yyc4367 = true - } else if len(yyv4367) != 0 { - yyv4367 = yyv4367[:0] - yyc4367 = true - } - } else if yyl4367 > 0 { - var yyrr4367, yyrl4367 int - var yyrt4367 bool - if yyl4367 > cap(yyv4367) { - - yyrg4367 := len(yyv4367) > 0 - yyv24367 := yyv4367 - yyrl4367, yyrt4367 = z.DecInferLen(yyl4367, z.DecBasicHandle().MaxInitLen, 456) - if yyrt4367 { - if yyrl4367 <= cap(yyv4367) { - yyv4367 = yyv4367[:yyrl4367] - } else { - yyv4367 = make([]PersistentVolume, yyrl4367) - } - } else { - yyv4367 = make([]PersistentVolume, yyrl4367) - } - yyc4367 = true - yyrr4367 = len(yyv4367) - if yyrg4367 { - copy(yyv4367, yyv24367) - } - } else if yyl4367 != len(yyv4367) { - yyv4367 = yyv4367[:yyl4367] - yyc4367 = true - } - yyj4367 := 0 - for ; yyj4367 < yyrr4367; yyj4367++ { - yyh4367.ElemContainerState(yyj4367) - if r.TryDecodeAsNil() { - yyv4367[yyj4367] = PersistentVolume{} - } else { - yyv4368 := &yyv4367[yyj4367] - yyv4368.CodecDecodeSelf(d) - } - - } - if yyrt4367 { - for ; yyj4367 < yyl4367; yyj4367++ { - yyv4367 = append(yyv4367, PersistentVolume{}) - yyh4367.ElemContainerState(yyj4367) - if r.TryDecodeAsNil() { - yyv4367[yyj4367] = PersistentVolume{} - } else { - yyv4369 := &yyv4367[yyj4367] - yyv4369.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4367 := 0 - for ; !r.CheckBreak(); yyj4367++ { - - if yyj4367 >= len(yyv4367) { - yyv4367 = append(yyv4367, PersistentVolume{}) // var yyz4367 PersistentVolume - yyc4367 = true - } - yyh4367.ElemContainerState(yyj4367) - if yyj4367 < len(yyv4367) { - if r.TryDecodeAsNil() { - yyv4367[yyj4367] = PersistentVolume{} - } else { - yyv4370 := &yyv4367[yyj4367] - yyv4370.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4367 < len(yyv4367) { - yyv4367 = yyv4367[:yyj4367] - yyc4367 = true - } else if yyj4367 == 0 && yyv4367 == nil { - yyv4367 = []PersistentVolume{} - yyc4367 = true - } - } - yyh4367.End() - if yyc4367 { - *v = yyv4367 - } -} - -func (x codecSelfer1234) encSlicePersistentVolumeClaim(v []PersistentVolumeClaim, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4371 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4372 := &yyv4371 - yy4372.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClaim, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4373 := *v - yyh4373, yyl4373 := z.DecSliceHelperStart() - var yyc4373 bool - if yyl4373 == 0 { - if yyv4373 == nil { - yyv4373 = []PersistentVolumeClaim{} - yyc4373 = true - } else if len(yyv4373) != 0 { - yyv4373 = yyv4373[:0] - yyc4373 = true - } - } else if yyl4373 > 0 { - var yyrr4373, yyrl4373 int - var yyrt4373 bool - if yyl4373 > cap(yyv4373) { - - yyrg4373 := len(yyv4373) > 0 - yyv24373 := yyv4373 - yyrl4373, yyrt4373 = z.DecInferLen(yyl4373, z.DecBasicHandle().MaxInitLen, 352) - if yyrt4373 { - if yyrl4373 <= cap(yyv4373) { - yyv4373 = yyv4373[:yyrl4373] - } else { - yyv4373 = make([]PersistentVolumeClaim, yyrl4373) - } - } else { - yyv4373 = make([]PersistentVolumeClaim, yyrl4373) - } - yyc4373 = true - yyrr4373 = len(yyv4373) - if yyrg4373 { - copy(yyv4373, yyv24373) - } - } else if yyl4373 != len(yyv4373) { - yyv4373 = yyv4373[:yyl4373] - yyc4373 = true - } - yyj4373 := 0 - for ; yyj4373 < yyrr4373; yyj4373++ { - yyh4373.ElemContainerState(yyj4373) - if r.TryDecodeAsNil() { - yyv4373[yyj4373] = PersistentVolumeClaim{} - } else { - yyv4374 := &yyv4373[yyj4373] - yyv4374.CodecDecodeSelf(d) - } - - } - if yyrt4373 { - for ; yyj4373 < yyl4373; yyj4373++ { - yyv4373 = append(yyv4373, PersistentVolumeClaim{}) - yyh4373.ElemContainerState(yyj4373) - if r.TryDecodeAsNil() { - yyv4373[yyj4373] = PersistentVolumeClaim{} - } else { - yyv4375 := &yyv4373[yyj4373] - yyv4375.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4373 := 0 - for ; !r.CheckBreak(); yyj4373++ { - - if yyj4373 >= len(yyv4373) { - yyv4373 = append(yyv4373, PersistentVolumeClaim{}) // var yyz4373 PersistentVolumeClaim - yyc4373 = true - } - yyh4373.ElemContainerState(yyj4373) - if yyj4373 < len(yyv4373) { - if r.TryDecodeAsNil() { - yyv4373[yyj4373] = PersistentVolumeClaim{} - } else { - yyv4376 := &yyv4373[yyj4373] - yyv4376.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4373 < len(yyv4373) { - yyv4373 = yyv4373[:yyj4373] - yyc4373 = true - } else if yyj4373 == 0 && yyv4373 == nil { - yyv4373 = []PersistentVolumeClaim{} - yyc4373 = true - } - } - yyh4373.End() - if yyc4373 { - *v = yyv4373 - } -} - -func (x codecSelfer1234) encSliceKeyToPath(v []KeyToPath, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4377 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4378 := &yyv4377 - yy4378.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4379 := *v - yyh4379, yyl4379 := z.DecSliceHelperStart() - var yyc4379 bool - if yyl4379 == 0 { - if yyv4379 == nil { - yyv4379 = []KeyToPath{} - yyc4379 = true - } else if len(yyv4379) != 0 { - yyv4379 = yyv4379[:0] - yyc4379 = true - } - } else if yyl4379 > 0 { - var yyrr4379, yyrl4379 int - var yyrt4379 bool - if yyl4379 > cap(yyv4379) { - - yyrg4379 := len(yyv4379) > 0 - yyv24379 := yyv4379 - yyrl4379, yyrt4379 = z.DecInferLen(yyl4379, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4379 { - if yyrl4379 <= cap(yyv4379) { - yyv4379 = yyv4379[:yyrl4379] - } else { - yyv4379 = make([]KeyToPath, yyrl4379) - } - } else { - yyv4379 = make([]KeyToPath, yyrl4379) - } - yyc4379 = true - yyrr4379 = len(yyv4379) - if yyrg4379 { - copy(yyv4379, yyv24379) - } - } else if yyl4379 != len(yyv4379) { - yyv4379 = yyv4379[:yyl4379] - yyc4379 = true - } - yyj4379 := 0 - for ; yyj4379 < yyrr4379; yyj4379++ { - yyh4379.ElemContainerState(yyj4379) - if r.TryDecodeAsNil() { - yyv4379[yyj4379] = KeyToPath{} - } else { - yyv4380 := &yyv4379[yyj4379] - yyv4380.CodecDecodeSelf(d) - } - - } - if yyrt4379 { - for ; yyj4379 < yyl4379; yyj4379++ { - yyv4379 = append(yyv4379, KeyToPath{}) - yyh4379.ElemContainerState(yyj4379) - if r.TryDecodeAsNil() { - yyv4379[yyj4379] = KeyToPath{} - } else { - yyv4381 := &yyv4379[yyj4379] - yyv4381.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4379 := 0 - for ; !r.CheckBreak(); yyj4379++ { - - if yyj4379 >= len(yyv4379) { - yyv4379 = append(yyv4379, KeyToPath{}) // var yyz4379 KeyToPath - yyc4379 = true - } - yyh4379.ElemContainerState(yyj4379) - if yyj4379 < len(yyv4379) { - if r.TryDecodeAsNil() { - yyv4379[yyj4379] = KeyToPath{} - } else { - yyv4382 := &yyv4379[yyj4379] - yyv4382.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4379 < len(yyv4379) { - yyv4379 = yyv4379[:yyj4379] - yyc4379 = true - } else if yyj4379 == 0 && yyv4379 == nil { - yyv4379 = []KeyToPath{} - yyc4379 = true - } - } - yyh4379.End() - if yyc4379 { - *v = yyv4379 - } -} - -func (x codecSelfer1234) encSliceDownwardAPIVolumeFile(v []DownwardAPIVolumeFile, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4383 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4384 := &yyv4383 - yy4384.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFile, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4385 := *v - yyh4385, yyl4385 := z.DecSliceHelperStart() - var yyc4385 bool - if yyl4385 == 0 { - if yyv4385 == nil { - yyv4385 = []DownwardAPIVolumeFile{} - yyc4385 = true - } else if len(yyv4385) != 0 { - yyv4385 = yyv4385[:0] - yyc4385 = true - } - } else if yyl4385 > 0 { - var yyrr4385, yyrl4385 int - var yyrt4385 bool - if yyl4385 > cap(yyv4385) { - - yyrg4385 := len(yyv4385) > 0 - yyv24385 := yyv4385 - yyrl4385, yyrt4385 = z.DecInferLen(yyl4385, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4385 { - if yyrl4385 <= cap(yyv4385) { - yyv4385 = yyv4385[:yyrl4385] - } else { - yyv4385 = make([]DownwardAPIVolumeFile, yyrl4385) - } - } else { - yyv4385 = make([]DownwardAPIVolumeFile, yyrl4385) - } - yyc4385 = true - yyrr4385 = len(yyv4385) - if yyrg4385 { - copy(yyv4385, yyv24385) - } - } else if yyl4385 != len(yyv4385) { - yyv4385 = yyv4385[:yyl4385] - yyc4385 = true - } - yyj4385 := 0 - for ; yyj4385 < yyrr4385; yyj4385++ { - yyh4385.ElemContainerState(yyj4385) - if r.TryDecodeAsNil() { - yyv4385[yyj4385] = DownwardAPIVolumeFile{} - } else { - yyv4386 := &yyv4385[yyj4385] - yyv4386.CodecDecodeSelf(d) - } - - } - if yyrt4385 { - for ; yyj4385 < yyl4385; yyj4385++ { - yyv4385 = append(yyv4385, DownwardAPIVolumeFile{}) - yyh4385.ElemContainerState(yyj4385) - if r.TryDecodeAsNil() { - yyv4385[yyj4385] = DownwardAPIVolumeFile{} - } else { - yyv4387 := &yyv4385[yyj4385] - yyv4387.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4385 := 0 - for ; !r.CheckBreak(); yyj4385++ { - - if yyj4385 >= len(yyv4385) { - yyv4385 = append(yyv4385, DownwardAPIVolumeFile{}) // var yyz4385 DownwardAPIVolumeFile - yyc4385 = true - } - yyh4385.ElemContainerState(yyj4385) - if yyj4385 < len(yyv4385) { - if r.TryDecodeAsNil() { - yyv4385[yyj4385] = DownwardAPIVolumeFile{} - } else { - yyv4388 := &yyv4385[yyj4385] - yyv4388.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4385 < len(yyv4385) { - yyv4385 = yyv4385[:yyj4385] - yyc4385 = true - } else if yyj4385 == 0 && yyv4385 == nil { - yyv4385 = []DownwardAPIVolumeFile{} - yyc4385 = true - } - } - yyh4385.End() - if yyc4385 { - *v = yyv4385 - } -} - -func (x codecSelfer1234) encSliceHTTPHeader(v []HTTPHeader, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4389 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4390 := &yyv4389 - yy4390.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4391 := *v - yyh4391, yyl4391 := z.DecSliceHelperStart() - var yyc4391 bool - if yyl4391 == 0 { - if yyv4391 == nil { - yyv4391 = []HTTPHeader{} - yyc4391 = true - } else if len(yyv4391) != 0 { - yyv4391 = yyv4391[:0] - yyc4391 = true - } - } else if yyl4391 > 0 { - var yyrr4391, yyrl4391 int - var yyrt4391 bool - if yyl4391 > cap(yyv4391) { - - yyrg4391 := len(yyv4391) > 0 - yyv24391 := yyv4391 - yyrl4391, yyrt4391 = z.DecInferLen(yyl4391, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4391 { - if yyrl4391 <= cap(yyv4391) { - yyv4391 = yyv4391[:yyrl4391] - } else { - yyv4391 = make([]HTTPHeader, yyrl4391) - } - } else { - yyv4391 = make([]HTTPHeader, yyrl4391) - } - yyc4391 = true - yyrr4391 = len(yyv4391) - if yyrg4391 { - copy(yyv4391, yyv24391) - } - } else if yyl4391 != len(yyv4391) { - yyv4391 = yyv4391[:yyl4391] - yyc4391 = true - } - yyj4391 := 0 - for ; yyj4391 < yyrr4391; yyj4391++ { - yyh4391.ElemContainerState(yyj4391) - if r.TryDecodeAsNil() { - yyv4391[yyj4391] = HTTPHeader{} - } else { - yyv4392 := &yyv4391[yyj4391] - yyv4392.CodecDecodeSelf(d) - } - - } - if yyrt4391 { - for ; yyj4391 < yyl4391; yyj4391++ { - yyv4391 = append(yyv4391, HTTPHeader{}) - yyh4391.ElemContainerState(yyj4391) - if r.TryDecodeAsNil() { - yyv4391[yyj4391] = HTTPHeader{} - } else { - yyv4393 := &yyv4391[yyj4391] - yyv4393.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4391 := 0 - for ; !r.CheckBreak(); yyj4391++ { - - if yyj4391 >= len(yyv4391) { - yyv4391 = append(yyv4391, HTTPHeader{}) // var yyz4391 HTTPHeader - yyc4391 = true - } - yyh4391.ElemContainerState(yyj4391) - if yyj4391 < len(yyv4391) { - if r.TryDecodeAsNil() { - yyv4391[yyj4391] = HTTPHeader{} - } else { - yyv4394 := &yyv4391[yyj4391] - yyv4394.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4391 < len(yyv4391) { - yyv4391 = yyv4391[:yyj4391] - yyc4391 = true - } else if yyj4391 == 0 && yyv4391 == nil { - yyv4391 = []HTTPHeader{} - yyc4391 = true - } - } - yyh4391.End() - if yyc4391 { - *v = yyv4391 - } -} - -func (x codecSelfer1234) encSliceCapability(v []Capability, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4395 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4395.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceCapability(v *[]Capability, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4396 := *v - yyh4396, yyl4396 := z.DecSliceHelperStart() - var yyc4396 bool - if yyl4396 == 0 { - if yyv4396 == nil { - yyv4396 = []Capability{} - yyc4396 = true - } else if len(yyv4396) != 0 { - yyv4396 = yyv4396[:0] - yyc4396 = true - } - } else if yyl4396 > 0 { - var yyrr4396, yyrl4396 int - var yyrt4396 bool - if yyl4396 > cap(yyv4396) { - - yyrl4396, yyrt4396 = z.DecInferLen(yyl4396, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4396 { - if yyrl4396 <= cap(yyv4396) { - yyv4396 = yyv4396[:yyrl4396] - } else { - yyv4396 = make([]Capability, yyrl4396) - } - } else { - yyv4396 = make([]Capability, yyrl4396) - } - yyc4396 = true - yyrr4396 = len(yyv4396) - } else if yyl4396 != len(yyv4396) { - yyv4396 = yyv4396[:yyl4396] - yyc4396 = true - } - yyj4396 := 0 - for ; yyj4396 < yyrr4396; yyj4396++ { - yyh4396.ElemContainerState(yyj4396) - if r.TryDecodeAsNil() { - yyv4396[yyj4396] = "" - } else { - yyv4396[yyj4396] = Capability(r.DecodeString()) - } - - } - if yyrt4396 { - for ; yyj4396 < yyl4396; yyj4396++ { - yyv4396 = append(yyv4396, "") - yyh4396.ElemContainerState(yyj4396) - if r.TryDecodeAsNil() { - yyv4396[yyj4396] = "" - } else { - yyv4396[yyj4396] = Capability(r.DecodeString()) - } - - } - } - - } else { - yyj4396 := 0 - for ; !r.CheckBreak(); yyj4396++ { - - if yyj4396 >= len(yyv4396) { - yyv4396 = append(yyv4396, "") // var yyz4396 Capability - yyc4396 = true - } - yyh4396.ElemContainerState(yyj4396) - if yyj4396 < len(yyv4396) { - if r.TryDecodeAsNil() { - yyv4396[yyj4396] = "" - } else { - yyv4396[yyj4396] = Capability(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj4396 < len(yyv4396) { - yyv4396 = yyv4396[:yyj4396] - yyc4396 = true - } else if yyj4396 == 0 && yyv4396 == nil { - yyv4396 = []Capability{} - yyc4396 = true - } - } - yyh4396.End() - if yyc4396 { - *v = yyv4396 - } -} - -func (x codecSelfer1234) encSliceContainerPort(v []ContainerPort, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4400 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4401 := &yyv4400 - yy4401.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceContainerPort(v *[]ContainerPort, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4402 := *v - yyh4402, yyl4402 := z.DecSliceHelperStart() - var yyc4402 bool - if yyl4402 == 0 { - if yyv4402 == nil { - yyv4402 = []ContainerPort{} - yyc4402 = true - } else if len(yyv4402) != 0 { - yyv4402 = yyv4402[:0] - yyc4402 = true - } - } else if yyl4402 > 0 { - var yyrr4402, yyrl4402 int - var yyrt4402 bool - if yyl4402 > cap(yyv4402) { - - yyrg4402 := len(yyv4402) > 0 - yyv24402 := yyv4402 - yyrl4402, yyrt4402 = z.DecInferLen(yyl4402, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4402 { - if yyrl4402 <= cap(yyv4402) { - yyv4402 = yyv4402[:yyrl4402] - } else { - yyv4402 = make([]ContainerPort, yyrl4402) - } - } else { - yyv4402 = make([]ContainerPort, yyrl4402) - } - yyc4402 = true - yyrr4402 = len(yyv4402) - if yyrg4402 { - copy(yyv4402, yyv24402) - } - } else if yyl4402 != len(yyv4402) { - yyv4402 = yyv4402[:yyl4402] - yyc4402 = true - } - yyj4402 := 0 - for ; yyj4402 < yyrr4402; yyj4402++ { - yyh4402.ElemContainerState(yyj4402) - if r.TryDecodeAsNil() { - yyv4402[yyj4402] = ContainerPort{} - } else { - yyv4403 := &yyv4402[yyj4402] - yyv4403.CodecDecodeSelf(d) - } - - } - if yyrt4402 { - for ; yyj4402 < yyl4402; yyj4402++ { - yyv4402 = append(yyv4402, ContainerPort{}) - yyh4402.ElemContainerState(yyj4402) - if r.TryDecodeAsNil() { - yyv4402[yyj4402] = ContainerPort{} - } else { - yyv4404 := &yyv4402[yyj4402] - yyv4404.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4402 := 0 - for ; !r.CheckBreak(); yyj4402++ { - - if yyj4402 >= len(yyv4402) { - yyv4402 = append(yyv4402, ContainerPort{}) // var yyz4402 ContainerPort - yyc4402 = true - } - yyh4402.ElemContainerState(yyj4402) - if yyj4402 < len(yyv4402) { - if r.TryDecodeAsNil() { - yyv4402[yyj4402] = ContainerPort{} - } else { - yyv4405 := &yyv4402[yyj4402] - yyv4405.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4402 < len(yyv4402) { - yyv4402 = yyv4402[:yyj4402] - yyc4402 = true - } else if yyj4402 == 0 && yyv4402 == nil { - yyv4402 = []ContainerPort{} - yyc4402 = true - } - } - yyh4402.End() - if yyc4402 { - *v = yyv4402 - } -} - -func (x codecSelfer1234) encSliceEnvVar(v []EnvVar, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4406 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4407 := &yyv4406 - yy4407.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceEnvVar(v *[]EnvVar, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4408 := *v - yyh4408, yyl4408 := z.DecSliceHelperStart() - var yyc4408 bool - if yyl4408 == 0 { - if yyv4408 == nil { - yyv4408 = []EnvVar{} - yyc4408 = true - } else if len(yyv4408) != 0 { - yyv4408 = yyv4408[:0] - yyc4408 = true - } - } else if yyl4408 > 0 { - var yyrr4408, yyrl4408 int - var yyrt4408 bool - if yyl4408 > cap(yyv4408) { - - yyrg4408 := len(yyv4408) > 0 - yyv24408 := yyv4408 - yyrl4408, yyrt4408 = z.DecInferLen(yyl4408, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4408 { - if yyrl4408 <= cap(yyv4408) { - yyv4408 = yyv4408[:yyrl4408] - } else { - yyv4408 = make([]EnvVar, yyrl4408) - } - } else { - yyv4408 = make([]EnvVar, yyrl4408) - } - yyc4408 = true - yyrr4408 = len(yyv4408) - if yyrg4408 { - copy(yyv4408, yyv24408) - } - } else if yyl4408 != len(yyv4408) { - yyv4408 = yyv4408[:yyl4408] - yyc4408 = true - } - yyj4408 := 0 - for ; yyj4408 < yyrr4408; yyj4408++ { - yyh4408.ElemContainerState(yyj4408) - if r.TryDecodeAsNil() { - yyv4408[yyj4408] = EnvVar{} - } else { - yyv4409 := &yyv4408[yyj4408] - yyv4409.CodecDecodeSelf(d) - } - - } - if yyrt4408 { - for ; yyj4408 < yyl4408; yyj4408++ { - yyv4408 = append(yyv4408, EnvVar{}) - yyh4408.ElemContainerState(yyj4408) - if r.TryDecodeAsNil() { - yyv4408[yyj4408] = EnvVar{} - } else { - yyv4410 := &yyv4408[yyj4408] - yyv4410.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4408 := 0 - for ; !r.CheckBreak(); yyj4408++ { - - if yyj4408 >= len(yyv4408) { - yyv4408 = append(yyv4408, EnvVar{}) // var yyz4408 EnvVar - yyc4408 = true - } - yyh4408.ElemContainerState(yyj4408) - if yyj4408 < len(yyv4408) { - if r.TryDecodeAsNil() { - yyv4408[yyj4408] = EnvVar{} - } else { - yyv4411 := &yyv4408[yyj4408] - yyv4411.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4408 < len(yyv4408) { - yyv4408 = yyv4408[:yyj4408] - yyc4408 = true - } else if yyj4408 == 0 && yyv4408 == nil { - yyv4408 = []EnvVar{} - yyc4408 = true - } - } - yyh4408.End() - if yyc4408 { - *v = yyv4408 - } -} - -func (x codecSelfer1234) encSliceVolumeMount(v []VolumeMount, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4412 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4413 := &yyv4412 - yy4413.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceVolumeMount(v *[]VolumeMount, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4414 := *v - yyh4414, yyl4414 := z.DecSliceHelperStart() - var yyc4414 bool - if yyl4414 == 0 { - if yyv4414 == nil { - yyv4414 = []VolumeMount{} - yyc4414 = true - } else if len(yyv4414) != 0 { - yyv4414 = yyv4414[:0] - yyc4414 = true - } - } else if yyl4414 > 0 { - var yyrr4414, yyrl4414 int - var yyrt4414 bool - if yyl4414 > cap(yyv4414) { - - yyrg4414 := len(yyv4414) > 0 - yyv24414 := yyv4414 - yyrl4414, yyrt4414 = z.DecInferLen(yyl4414, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4414 { - if yyrl4414 <= cap(yyv4414) { - yyv4414 = yyv4414[:yyrl4414] - } else { - yyv4414 = make([]VolumeMount, yyrl4414) - } - } else { - yyv4414 = make([]VolumeMount, yyrl4414) - } - yyc4414 = true - yyrr4414 = len(yyv4414) - if yyrg4414 { - copy(yyv4414, yyv24414) - } - } else if yyl4414 != len(yyv4414) { - yyv4414 = yyv4414[:yyl4414] - yyc4414 = true - } - yyj4414 := 0 - for ; yyj4414 < yyrr4414; yyj4414++ { - yyh4414.ElemContainerState(yyj4414) - if r.TryDecodeAsNil() { - yyv4414[yyj4414] = VolumeMount{} - } else { - yyv4415 := &yyv4414[yyj4414] - yyv4415.CodecDecodeSelf(d) - } - - } - if yyrt4414 { - for ; yyj4414 < yyl4414; yyj4414++ { - yyv4414 = append(yyv4414, VolumeMount{}) - yyh4414.ElemContainerState(yyj4414) - if r.TryDecodeAsNil() { - yyv4414[yyj4414] = VolumeMount{} - } else { - yyv4416 := &yyv4414[yyj4414] - yyv4416.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4414 := 0 - for ; !r.CheckBreak(); yyj4414++ { - - if yyj4414 >= len(yyv4414) { - yyv4414 = append(yyv4414, VolumeMount{}) // var yyz4414 VolumeMount - yyc4414 = true - } - yyh4414.ElemContainerState(yyj4414) - if yyj4414 < len(yyv4414) { - if r.TryDecodeAsNil() { - yyv4414[yyj4414] = VolumeMount{} - } else { - yyv4417 := &yyv4414[yyj4414] - yyv4417.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4414 < len(yyv4414) { - yyv4414 = yyv4414[:yyj4414] - yyc4414 = true - } else if yyj4414 == 0 && yyv4414 == nil { - yyv4414 = []VolumeMount{} - yyc4414 = true - } - } - yyh4414.End() - if yyc4414 { - *v = yyv4414 - } -} - -func (x codecSelfer1234) encSlicePod(v []Pod, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4418 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4419 := &yyv4418 - yy4419.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4420 := *v - yyh4420, yyl4420 := z.DecSliceHelperStart() - var yyc4420 bool - if yyl4420 == 0 { - if yyv4420 == nil { - yyv4420 = []Pod{} - yyc4420 = true - } else if len(yyv4420) != 0 { - yyv4420 = yyv4420[:0] - yyc4420 = true - } - } else if yyl4420 > 0 { - var yyrr4420, yyrl4420 int - var yyrt4420 bool - if yyl4420 > cap(yyv4420) { - - yyrg4420 := len(yyv4420) > 0 - yyv24420 := yyv4420 - yyrl4420, yyrt4420 = z.DecInferLen(yyl4420, z.DecBasicHandle().MaxInitLen, 624) - if yyrt4420 { - if yyrl4420 <= cap(yyv4420) { - yyv4420 = yyv4420[:yyrl4420] - } else { - yyv4420 = make([]Pod, yyrl4420) - } - } else { - yyv4420 = make([]Pod, yyrl4420) - } - yyc4420 = true - yyrr4420 = len(yyv4420) - if yyrg4420 { - copy(yyv4420, yyv24420) - } - } else if yyl4420 != len(yyv4420) { - yyv4420 = yyv4420[:yyl4420] - yyc4420 = true - } - yyj4420 := 0 - for ; yyj4420 < yyrr4420; yyj4420++ { - yyh4420.ElemContainerState(yyj4420) - if r.TryDecodeAsNil() { - yyv4420[yyj4420] = Pod{} - } else { - yyv4421 := &yyv4420[yyj4420] - yyv4421.CodecDecodeSelf(d) - } - - } - if yyrt4420 { - for ; yyj4420 < yyl4420; yyj4420++ { - yyv4420 = append(yyv4420, Pod{}) - yyh4420.ElemContainerState(yyj4420) - if r.TryDecodeAsNil() { - yyv4420[yyj4420] = Pod{} - } else { - yyv4422 := &yyv4420[yyj4420] - yyv4422.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4420 := 0 - for ; !r.CheckBreak(); yyj4420++ { - - if yyj4420 >= len(yyv4420) { - yyv4420 = append(yyv4420, Pod{}) // var yyz4420 Pod - yyc4420 = true - } - yyh4420.ElemContainerState(yyj4420) - if yyj4420 < len(yyv4420) { - if r.TryDecodeAsNil() { - yyv4420[yyj4420] = Pod{} - } else { - yyv4423 := &yyv4420[yyj4420] - yyv4423.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4420 < len(yyv4420) { - yyv4420 = yyv4420[:yyj4420] - yyc4420 = true - } else if yyj4420 == 0 && yyv4420 == nil { - yyv4420 = []Pod{} - yyc4420 = true - } - } - yyh4420.End() - if yyc4420 { - *v = yyv4420 - } -} - -func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4424 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4425 := &yyv4424 - yy4425.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4426 := *v - yyh4426, yyl4426 := z.DecSliceHelperStart() - var yyc4426 bool - if yyl4426 == 0 { - if yyv4426 == nil { - yyv4426 = []NodeSelectorTerm{} - yyc4426 = true - } else if len(yyv4426) != 0 { - yyv4426 = yyv4426[:0] - yyc4426 = true - } - } else if yyl4426 > 0 { - var yyrr4426, yyrl4426 int - var yyrt4426 bool - if yyl4426 > cap(yyv4426) { - - yyrg4426 := len(yyv4426) > 0 - yyv24426 := yyv4426 - yyrl4426, yyrt4426 = z.DecInferLen(yyl4426, z.DecBasicHandle().MaxInitLen, 24) - if yyrt4426 { - if yyrl4426 <= cap(yyv4426) { - yyv4426 = yyv4426[:yyrl4426] - } else { - yyv4426 = make([]NodeSelectorTerm, yyrl4426) - } - } else { - yyv4426 = make([]NodeSelectorTerm, yyrl4426) - } - yyc4426 = true - yyrr4426 = len(yyv4426) - if yyrg4426 { - copy(yyv4426, yyv24426) - } - } else if yyl4426 != len(yyv4426) { - yyv4426 = yyv4426[:yyl4426] - yyc4426 = true - } - yyj4426 := 0 - for ; yyj4426 < yyrr4426; yyj4426++ { - yyh4426.ElemContainerState(yyj4426) - if r.TryDecodeAsNil() { - yyv4426[yyj4426] = NodeSelectorTerm{} - } else { - yyv4427 := &yyv4426[yyj4426] - yyv4427.CodecDecodeSelf(d) - } - - } - if yyrt4426 { - for ; yyj4426 < yyl4426; yyj4426++ { - yyv4426 = append(yyv4426, NodeSelectorTerm{}) - yyh4426.ElemContainerState(yyj4426) - if r.TryDecodeAsNil() { - yyv4426[yyj4426] = NodeSelectorTerm{} - } else { - yyv4428 := &yyv4426[yyj4426] - yyv4428.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4426 := 0 - for ; !r.CheckBreak(); yyj4426++ { - - if yyj4426 >= len(yyv4426) { - yyv4426 = append(yyv4426, NodeSelectorTerm{}) // var yyz4426 NodeSelectorTerm - yyc4426 = true - } - yyh4426.ElemContainerState(yyj4426) - if yyj4426 < len(yyv4426) { - if r.TryDecodeAsNil() { - yyv4426[yyj4426] = NodeSelectorTerm{} - } else { - yyv4429 := &yyv4426[yyj4426] - yyv4429.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4426 < len(yyv4426) { - yyv4426 = yyv4426[:yyj4426] - yyc4426 = true - } else if yyj4426 == 0 && yyv4426 == nil { - yyv4426 = []NodeSelectorTerm{} - yyc4426 = true - } - } - yyh4426.End() - if yyc4426 { - *v = yyv4426 - } -} - -func (x codecSelfer1234) encSliceNodeSelectorRequirement(v []NodeSelectorRequirement, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4430 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4431 := &yyv4430 - yy4431.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequirement, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4432 := *v - yyh4432, yyl4432 := z.DecSliceHelperStart() - var yyc4432 bool - if yyl4432 == 0 { - if yyv4432 == nil { - yyv4432 = []NodeSelectorRequirement{} - yyc4432 = true - } else if len(yyv4432) != 0 { - yyv4432 = yyv4432[:0] - yyc4432 = true - } - } else if yyl4432 > 0 { - var yyrr4432, yyrl4432 int - var yyrt4432 bool - if yyl4432 > cap(yyv4432) { - - yyrg4432 := len(yyv4432) > 0 - yyv24432 := yyv4432 - yyrl4432, yyrt4432 = z.DecInferLen(yyl4432, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4432 { - if yyrl4432 <= cap(yyv4432) { - yyv4432 = yyv4432[:yyrl4432] - } else { - yyv4432 = make([]NodeSelectorRequirement, yyrl4432) - } - } else { - yyv4432 = make([]NodeSelectorRequirement, yyrl4432) - } - yyc4432 = true - yyrr4432 = len(yyv4432) - if yyrg4432 { - copy(yyv4432, yyv24432) - } - } else if yyl4432 != len(yyv4432) { - yyv4432 = yyv4432[:yyl4432] - yyc4432 = true - } - yyj4432 := 0 - for ; yyj4432 < yyrr4432; yyj4432++ { - yyh4432.ElemContainerState(yyj4432) - if r.TryDecodeAsNil() { - yyv4432[yyj4432] = NodeSelectorRequirement{} - } else { - yyv4433 := &yyv4432[yyj4432] - yyv4433.CodecDecodeSelf(d) - } - - } - if yyrt4432 { - for ; yyj4432 < yyl4432; yyj4432++ { - yyv4432 = append(yyv4432, NodeSelectorRequirement{}) - yyh4432.ElemContainerState(yyj4432) - if r.TryDecodeAsNil() { - yyv4432[yyj4432] = NodeSelectorRequirement{} - } else { - yyv4434 := &yyv4432[yyj4432] - yyv4434.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4432 := 0 - for ; !r.CheckBreak(); yyj4432++ { - - if yyj4432 >= len(yyv4432) { - yyv4432 = append(yyv4432, NodeSelectorRequirement{}) // var yyz4432 NodeSelectorRequirement - yyc4432 = true - } - yyh4432.ElemContainerState(yyj4432) - if yyj4432 < len(yyv4432) { - if r.TryDecodeAsNil() { - yyv4432[yyj4432] = NodeSelectorRequirement{} - } else { - yyv4435 := &yyv4432[yyj4432] - yyv4435.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4432 < len(yyv4432) { - yyv4432 = yyv4432[:yyj4432] - yyc4432 = true - } else if yyj4432 == 0 && yyv4432 == nil { - yyv4432 = []NodeSelectorRequirement{} - yyc4432 = true - } - } - yyh4432.End() - if yyc4432 { - *v = yyv4432 - } -} - -func (x codecSelfer1234) encSlicePodAffinityTerm(v []PodAffinityTerm, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4436 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4437 := &yyv4436 - yy4437.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4438 := *v - yyh4438, yyl4438 := z.DecSliceHelperStart() - var yyc4438 bool - if yyl4438 == 0 { - if yyv4438 == nil { - yyv4438 = []PodAffinityTerm{} - yyc4438 = true - } else if len(yyv4438) != 0 { - yyv4438 = yyv4438[:0] - yyc4438 = true - } - } else if yyl4438 > 0 { - var yyrr4438, yyrl4438 int - var yyrt4438 bool - if yyl4438 > cap(yyv4438) { - - yyrg4438 := len(yyv4438) > 0 - yyv24438 := yyv4438 - yyrl4438, yyrt4438 = z.DecInferLen(yyl4438, z.DecBasicHandle().MaxInitLen, 48) - if yyrt4438 { - if yyrl4438 <= cap(yyv4438) { - yyv4438 = yyv4438[:yyrl4438] - } else { - yyv4438 = make([]PodAffinityTerm, yyrl4438) - } - } else { - yyv4438 = make([]PodAffinityTerm, yyrl4438) - } - yyc4438 = true - yyrr4438 = len(yyv4438) - if yyrg4438 { - copy(yyv4438, yyv24438) - } - } else if yyl4438 != len(yyv4438) { - yyv4438 = yyv4438[:yyl4438] - yyc4438 = true - } - yyj4438 := 0 - for ; yyj4438 < yyrr4438; yyj4438++ { - yyh4438.ElemContainerState(yyj4438) - if r.TryDecodeAsNil() { - yyv4438[yyj4438] = PodAffinityTerm{} - } else { - yyv4439 := &yyv4438[yyj4438] - yyv4439.CodecDecodeSelf(d) - } - - } - if yyrt4438 { - for ; yyj4438 < yyl4438; yyj4438++ { - yyv4438 = append(yyv4438, PodAffinityTerm{}) - yyh4438.ElemContainerState(yyj4438) - if r.TryDecodeAsNil() { - yyv4438[yyj4438] = PodAffinityTerm{} - } else { - yyv4440 := &yyv4438[yyj4438] - yyv4440.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4438 := 0 - for ; !r.CheckBreak(); yyj4438++ { - - if yyj4438 >= len(yyv4438) { - yyv4438 = append(yyv4438, PodAffinityTerm{}) // var yyz4438 PodAffinityTerm - yyc4438 = true - } - yyh4438.ElemContainerState(yyj4438) - if yyj4438 < len(yyv4438) { - if r.TryDecodeAsNil() { - yyv4438[yyj4438] = PodAffinityTerm{} - } else { - yyv4441 := &yyv4438[yyj4438] - yyv4441.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4438 < len(yyv4438) { - yyv4438 = yyv4438[:yyj4438] - yyc4438 = true - } else if yyj4438 == 0 && yyv4438 == nil { - yyv4438 = []PodAffinityTerm{} - yyc4438 = true - } - } - yyh4438.End() - if yyc4438 { - *v = yyv4438 - } -} - -func (x codecSelfer1234) encSliceWeightedPodAffinityTerm(v []WeightedPodAffinityTerm, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4442 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4443 := &yyv4442 - yy4443.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinityTerm, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4444 := *v - yyh4444, yyl4444 := z.DecSliceHelperStart() - var yyc4444 bool - if yyl4444 == 0 { - if yyv4444 == nil { - yyv4444 = []WeightedPodAffinityTerm{} - yyc4444 = true - } else if len(yyv4444) != 0 { - yyv4444 = yyv4444[:0] - yyc4444 = true - } - } else if yyl4444 > 0 { - var yyrr4444, yyrl4444 int - var yyrt4444 bool - if yyl4444 > cap(yyv4444) { - - yyrg4444 := len(yyv4444) > 0 - yyv24444 := yyv4444 - yyrl4444, yyrt4444 = z.DecInferLen(yyl4444, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4444 { - if yyrl4444 <= cap(yyv4444) { - yyv4444 = yyv4444[:yyrl4444] - } else { - yyv4444 = make([]WeightedPodAffinityTerm, yyrl4444) - } - } else { - yyv4444 = make([]WeightedPodAffinityTerm, yyrl4444) - } - yyc4444 = true - yyrr4444 = len(yyv4444) - if yyrg4444 { - copy(yyv4444, yyv24444) - } - } else if yyl4444 != len(yyv4444) { - yyv4444 = yyv4444[:yyl4444] - yyc4444 = true - } - yyj4444 := 0 - for ; yyj4444 < yyrr4444; yyj4444++ { - yyh4444.ElemContainerState(yyj4444) - if r.TryDecodeAsNil() { - yyv4444[yyj4444] = WeightedPodAffinityTerm{} - } else { - yyv4445 := &yyv4444[yyj4444] - yyv4445.CodecDecodeSelf(d) - } - - } - if yyrt4444 { - for ; yyj4444 < yyl4444; yyj4444++ { - yyv4444 = append(yyv4444, WeightedPodAffinityTerm{}) - yyh4444.ElemContainerState(yyj4444) - if r.TryDecodeAsNil() { - yyv4444[yyj4444] = WeightedPodAffinityTerm{} - } else { - yyv4446 := &yyv4444[yyj4444] - yyv4446.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4444 := 0 - for ; !r.CheckBreak(); yyj4444++ { - - if yyj4444 >= len(yyv4444) { - yyv4444 = append(yyv4444, WeightedPodAffinityTerm{}) // var yyz4444 WeightedPodAffinityTerm - yyc4444 = true - } - yyh4444.ElemContainerState(yyj4444) - if yyj4444 < len(yyv4444) { - if r.TryDecodeAsNil() { - yyv4444[yyj4444] = WeightedPodAffinityTerm{} - } else { - yyv4447 := &yyv4444[yyj4444] - yyv4447.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4444 < len(yyv4444) { - yyv4444 = yyv4444[:yyj4444] - yyc4444 = true - } else if yyj4444 == 0 && yyv4444 == nil { - yyv4444 = []WeightedPodAffinityTerm{} - yyc4444 = true - } - } - yyh4444.End() - if yyc4444 { - *v = yyv4444 - } -} - -func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredSchedulingTerm, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4448 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4449 := &yyv4448 - yy4449.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulingTerm, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4450 := *v - yyh4450, yyl4450 := z.DecSliceHelperStart() - var yyc4450 bool - if yyl4450 == 0 { - if yyv4450 == nil { - yyv4450 = []PreferredSchedulingTerm{} - yyc4450 = true - } else if len(yyv4450) != 0 { - yyv4450 = yyv4450[:0] - yyc4450 = true - } - } else if yyl4450 > 0 { - var yyrr4450, yyrl4450 int - var yyrt4450 bool - if yyl4450 > cap(yyv4450) { - - yyrg4450 := len(yyv4450) > 0 - yyv24450 := yyv4450 - yyrl4450, yyrt4450 = z.DecInferLen(yyl4450, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4450 { - if yyrl4450 <= cap(yyv4450) { - yyv4450 = yyv4450[:yyrl4450] - } else { - yyv4450 = make([]PreferredSchedulingTerm, yyrl4450) - } - } else { - yyv4450 = make([]PreferredSchedulingTerm, yyrl4450) - } - yyc4450 = true - yyrr4450 = len(yyv4450) - if yyrg4450 { - copy(yyv4450, yyv24450) - } - } else if yyl4450 != len(yyv4450) { - yyv4450 = yyv4450[:yyl4450] - yyc4450 = true - } - yyj4450 := 0 - for ; yyj4450 < yyrr4450; yyj4450++ { - yyh4450.ElemContainerState(yyj4450) - if r.TryDecodeAsNil() { - yyv4450[yyj4450] = PreferredSchedulingTerm{} - } else { - yyv4451 := &yyv4450[yyj4450] - yyv4451.CodecDecodeSelf(d) - } - - } - if yyrt4450 { - for ; yyj4450 < yyl4450; yyj4450++ { - yyv4450 = append(yyv4450, PreferredSchedulingTerm{}) - yyh4450.ElemContainerState(yyj4450) - if r.TryDecodeAsNil() { - yyv4450[yyj4450] = PreferredSchedulingTerm{} - } else { - yyv4452 := &yyv4450[yyj4450] - yyv4452.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4450 := 0 - for ; !r.CheckBreak(); yyj4450++ { - - if yyj4450 >= len(yyv4450) { - yyv4450 = append(yyv4450, PreferredSchedulingTerm{}) // var yyz4450 PreferredSchedulingTerm - yyc4450 = true - } - yyh4450.ElemContainerState(yyj4450) - if yyj4450 < len(yyv4450) { - if r.TryDecodeAsNil() { - yyv4450[yyj4450] = PreferredSchedulingTerm{} - } else { - yyv4453 := &yyv4450[yyj4450] - yyv4453.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4450 < len(yyv4450) { - yyv4450 = yyv4450[:yyj4450] - yyc4450 = true - } else if yyj4450 == 0 && yyv4450 == nil { - yyv4450 = []PreferredSchedulingTerm{} - yyc4450 = true - } - } - yyh4450.End() - if yyc4450 { - *v = yyv4450 - } -} - -func (x codecSelfer1234) encSliceVolume(v []Volume, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4454 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4455 := &yyv4454 - yy4455.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4456 := *v - yyh4456, yyl4456 := z.DecSliceHelperStart() - var yyc4456 bool - if yyl4456 == 0 { - if yyv4456 == nil { - yyv4456 = []Volume{} - yyc4456 = true - } else if len(yyv4456) != 0 { - yyv4456 = yyv4456[:0] - yyc4456 = true - } - } else if yyl4456 > 0 { - var yyrr4456, yyrl4456 int - var yyrt4456 bool - if yyl4456 > cap(yyv4456) { - - yyrg4456 := len(yyv4456) > 0 - yyv24456 := yyv4456 - yyrl4456, yyrt4456 = z.DecInferLen(yyl4456, z.DecBasicHandle().MaxInitLen, 176) - if yyrt4456 { - if yyrl4456 <= cap(yyv4456) { - yyv4456 = yyv4456[:yyrl4456] - } else { - yyv4456 = make([]Volume, yyrl4456) - } - } else { - yyv4456 = make([]Volume, yyrl4456) - } - yyc4456 = true - yyrr4456 = len(yyv4456) - if yyrg4456 { - copy(yyv4456, yyv24456) - } - } else if yyl4456 != len(yyv4456) { - yyv4456 = yyv4456[:yyl4456] - yyc4456 = true - } - yyj4456 := 0 - for ; yyj4456 < yyrr4456; yyj4456++ { - yyh4456.ElemContainerState(yyj4456) - if r.TryDecodeAsNil() { - yyv4456[yyj4456] = Volume{} - } else { - yyv4457 := &yyv4456[yyj4456] - yyv4457.CodecDecodeSelf(d) - } - - } - if yyrt4456 { - for ; yyj4456 < yyl4456; yyj4456++ { - yyv4456 = append(yyv4456, Volume{}) - yyh4456.ElemContainerState(yyj4456) - if r.TryDecodeAsNil() { - yyv4456[yyj4456] = Volume{} - } else { - yyv4458 := &yyv4456[yyj4456] - yyv4458.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4456 := 0 - for ; !r.CheckBreak(); yyj4456++ { - - if yyj4456 >= len(yyv4456) { - yyv4456 = append(yyv4456, Volume{}) // var yyz4456 Volume - yyc4456 = true - } - yyh4456.ElemContainerState(yyj4456) - if yyj4456 < len(yyv4456) { - if r.TryDecodeAsNil() { - yyv4456[yyj4456] = Volume{} - } else { - yyv4459 := &yyv4456[yyj4456] - yyv4459.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4456 < len(yyv4456) { - yyv4456 = yyv4456[:yyj4456] - yyc4456 = true - } else if yyj4456 == 0 && yyv4456 == nil { - yyv4456 = []Volume{} - yyc4456 = true - } - } - yyh4456.End() - if yyc4456 { - *v = yyv4456 - } -} - -func (x codecSelfer1234) encSliceContainer(v []Container, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4460 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4461 := &yyv4460 - yy4461.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4462 := *v - yyh4462, yyl4462 := z.DecSliceHelperStart() - var yyc4462 bool - if yyl4462 == 0 { - if yyv4462 == nil { - yyv4462 = []Container{} - yyc4462 = true - } else if len(yyv4462) != 0 { - yyv4462 = yyv4462[:0] - yyc4462 = true - } - } else if yyl4462 > 0 { - var yyrr4462, yyrl4462 int - var yyrt4462 bool - if yyl4462 > cap(yyv4462) { - - yyrg4462 := len(yyv4462) > 0 - yyv24462 := yyv4462 - yyrl4462, yyrt4462 = z.DecInferLen(yyl4462, z.DecBasicHandle().MaxInitLen, 256) - if yyrt4462 { - if yyrl4462 <= cap(yyv4462) { - yyv4462 = yyv4462[:yyrl4462] - } else { - yyv4462 = make([]Container, yyrl4462) - } - } else { - yyv4462 = make([]Container, yyrl4462) - } - yyc4462 = true - yyrr4462 = len(yyv4462) - if yyrg4462 { - copy(yyv4462, yyv24462) - } - } else if yyl4462 != len(yyv4462) { - yyv4462 = yyv4462[:yyl4462] - yyc4462 = true - } - yyj4462 := 0 - for ; yyj4462 < yyrr4462; yyj4462++ { - yyh4462.ElemContainerState(yyj4462) - if r.TryDecodeAsNil() { - yyv4462[yyj4462] = Container{} - } else { - yyv4463 := &yyv4462[yyj4462] - yyv4463.CodecDecodeSelf(d) - } - - } - if yyrt4462 { - for ; yyj4462 < yyl4462; yyj4462++ { - yyv4462 = append(yyv4462, Container{}) - yyh4462.ElemContainerState(yyj4462) - if r.TryDecodeAsNil() { - yyv4462[yyj4462] = Container{} - } else { - yyv4464 := &yyv4462[yyj4462] - yyv4464.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4462 := 0 - for ; !r.CheckBreak(); yyj4462++ { - - if yyj4462 >= len(yyv4462) { - yyv4462 = append(yyv4462, Container{}) // var yyz4462 Container - yyc4462 = true - } - yyh4462.ElemContainerState(yyj4462) - if yyj4462 < len(yyv4462) { - if r.TryDecodeAsNil() { - yyv4462[yyj4462] = Container{} - } else { - yyv4465 := &yyv4462[yyj4462] - yyv4465.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4462 < len(yyv4462) { - yyv4462 = yyv4462[:yyj4462] - yyc4462 = true - } else if yyj4462 == 0 && yyv4462 == nil { - yyv4462 = []Container{} - yyc4462 = true - } - } - yyh4462.End() - if yyc4462 { - *v = yyv4462 - } -} - -func (x codecSelfer1234) encSliceLocalObjectReference(v []LocalObjectReference, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4466 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4467 := &yyv4466 - yy4467.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4468 := *v - yyh4468, yyl4468 := z.DecSliceHelperStart() - var yyc4468 bool - if yyl4468 == 0 { - if yyv4468 == nil { - yyv4468 = []LocalObjectReference{} - yyc4468 = true - } else if len(yyv4468) != 0 { - yyv4468 = yyv4468[:0] - yyc4468 = true - } - } else if yyl4468 > 0 { - var yyrr4468, yyrl4468 int - var yyrt4468 bool - if yyl4468 > cap(yyv4468) { - - yyrg4468 := len(yyv4468) > 0 - yyv24468 := yyv4468 - yyrl4468, yyrt4468 = z.DecInferLen(yyl4468, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4468 { - if yyrl4468 <= cap(yyv4468) { - yyv4468 = yyv4468[:yyrl4468] - } else { - yyv4468 = make([]LocalObjectReference, yyrl4468) - } - } else { - yyv4468 = make([]LocalObjectReference, yyrl4468) - } - yyc4468 = true - yyrr4468 = len(yyv4468) - if yyrg4468 { - copy(yyv4468, yyv24468) - } - } else if yyl4468 != len(yyv4468) { - yyv4468 = yyv4468[:yyl4468] - yyc4468 = true - } - yyj4468 := 0 - for ; yyj4468 < yyrr4468; yyj4468++ { - yyh4468.ElemContainerState(yyj4468) - if r.TryDecodeAsNil() { - yyv4468[yyj4468] = LocalObjectReference{} - } else { - yyv4469 := &yyv4468[yyj4468] - yyv4469.CodecDecodeSelf(d) - } - - } - if yyrt4468 { - for ; yyj4468 < yyl4468; yyj4468++ { - yyv4468 = append(yyv4468, LocalObjectReference{}) - yyh4468.ElemContainerState(yyj4468) - if r.TryDecodeAsNil() { - yyv4468[yyj4468] = LocalObjectReference{} - } else { - yyv4470 := &yyv4468[yyj4468] - yyv4470.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4468 := 0 - for ; !r.CheckBreak(); yyj4468++ { - - if yyj4468 >= len(yyv4468) { - yyv4468 = append(yyv4468, LocalObjectReference{}) // var yyz4468 LocalObjectReference - yyc4468 = true - } - yyh4468.ElemContainerState(yyj4468) - if yyj4468 < len(yyv4468) { - if r.TryDecodeAsNil() { - yyv4468[yyj4468] = LocalObjectReference{} - } else { - yyv4471 := &yyv4468[yyj4468] - yyv4471.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4468 < len(yyv4468) { - yyv4468 = yyv4468[:yyj4468] - yyc4468 = true - } else if yyj4468 == 0 && yyv4468 == nil { - yyv4468 = []LocalObjectReference{} - yyc4468 = true - } - } - yyh4468.End() - if yyc4468 { - *v = yyv4468 - } -} - -func (x codecSelfer1234) encSlicePodCondition(v []PodCondition, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4472 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4473 := &yyv4472 - yy4473.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4474 := *v - yyh4474, yyl4474 := z.DecSliceHelperStart() - var yyc4474 bool - if yyl4474 == 0 { - if yyv4474 == nil { - yyv4474 = []PodCondition{} - yyc4474 = true - } else if len(yyv4474) != 0 { - yyv4474 = yyv4474[:0] - yyc4474 = true - } - } else if yyl4474 > 0 { - var yyrr4474, yyrl4474 int - var yyrt4474 bool - if yyl4474 > cap(yyv4474) { - - yyrg4474 := len(yyv4474) > 0 - yyv24474 := yyv4474 - yyrl4474, yyrt4474 = z.DecInferLen(yyl4474, z.DecBasicHandle().MaxInitLen, 112) - if yyrt4474 { - if yyrl4474 <= cap(yyv4474) { - yyv4474 = yyv4474[:yyrl4474] - } else { - yyv4474 = make([]PodCondition, yyrl4474) - } - } else { - yyv4474 = make([]PodCondition, yyrl4474) - } - yyc4474 = true - yyrr4474 = len(yyv4474) - if yyrg4474 { - copy(yyv4474, yyv24474) - } - } else if yyl4474 != len(yyv4474) { - yyv4474 = yyv4474[:yyl4474] - yyc4474 = true - } - yyj4474 := 0 - for ; yyj4474 < yyrr4474; yyj4474++ { - yyh4474.ElemContainerState(yyj4474) - if r.TryDecodeAsNil() { - yyv4474[yyj4474] = PodCondition{} - } else { - yyv4475 := &yyv4474[yyj4474] - yyv4475.CodecDecodeSelf(d) - } - - } - if yyrt4474 { - for ; yyj4474 < yyl4474; yyj4474++ { - yyv4474 = append(yyv4474, PodCondition{}) - yyh4474.ElemContainerState(yyj4474) - if r.TryDecodeAsNil() { - yyv4474[yyj4474] = PodCondition{} - } else { - yyv4476 := &yyv4474[yyj4474] - yyv4476.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4474 := 0 - for ; !r.CheckBreak(); yyj4474++ { - - if yyj4474 >= len(yyv4474) { - yyv4474 = append(yyv4474, PodCondition{}) // var yyz4474 PodCondition - yyc4474 = true - } - yyh4474.ElemContainerState(yyj4474) - if yyj4474 < len(yyv4474) { - if r.TryDecodeAsNil() { - yyv4474[yyj4474] = PodCondition{} - } else { - yyv4477 := &yyv4474[yyj4474] - yyv4477.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4474 < len(yyv4474) { - yyv4474 = yyv4474[:yyj4474] - yyc4474 = true - } else if yyj4474 == 0 && yyv4474 == nil { - yyv4474 = []PodCondition{} - yyc4474 = true - } - } - yyh4474.End() - if yyc4474 { - *v = yyv4474 - } -} - -func (x codecSelfer1234) encSliceContainerStatus(v []ContainerStatus, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4478 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4479 := &yyv4478 - yy4479.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4480 := *v - yyh4480, yyl4480 := z.DecSliceHelperStart() - var yyc4480 bool - if yyl4480 == 0 { - if yyv4480 == nil { - yyv4480 = []ContainerStatus{} - yyc4480 = true - } else if len(yyv4480) != 0 { - yyv4480 = yyv4480[:0] - yyc4480 = true - } - } else if yyl4480 > 0 { - var yyrr4480, yyrl4480 int - var yyrt4480 bool - if yyl4480 > cap(yyv4480) { - - yyrg4480 := len(yyv4480) > 0 - yyv24480 := yyv4480 - yyrl4480, yyrt4480 = z.DecInferLen(yyl4480, z.DecBasicHandle().MaxInitLen, 120) - if yyrt4480 { - if yyrl4480 <= cap(yyv4480) { - yyv4480 = yyv4480[:yyrl4480] - } else { - yyv4480 = make([]ContainerStatus, yyrl4480) - } - } else { - yyv4480 = make([]ContainerStatus, yyrl4480) - } - yyc4480 = true - yyrr4480 = len(yyv4480) - if yyrg4480 { - copy(yyv4480, yyv24480) - } - } else if yyl4480 != len(yyv4480) { - yyv4480 = yyv4480[:yyl4480] - yyc4480 = true - } - yyj4480 := 0 - for ; yyj4480 < yyrr4480; yyj4480++ { - yyh4480.ElemContainerState(yyj4480) - if r.TryDecodeAsNil() { - yyv4480[yyj4480] = ContainerStatus{} - } else { - yyv4481 := &yyv4480[yyj4480] - yyv4481.CodecDecodeSelf(d) - } - - } - if yyrt4480 { - for ; yyj4480 < yyl4480; yyj4480++ { - yyv4480 = append(yyv4480, ContainerStatus{}) - yyh4480.ElemContainerState(yyj4480) - if r.TryDecodeAsNil() { - yyv4480[yyj4480] = ContainerStatus{} - } else { - yyv4482 := &yyv4480[yyj4480] - yyv4482.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4480 := 0 - for ; !r.CheckBreak(); yyj4480++ { - - if yyj4480 >= len(yyv4480) { - yyv4480 = append(yyv4480, ContainerStatus{}) // var yyz4480 ContainerStatus - yyc4480 = true - } - yyh4480.ElemContainerState(yyj4480) - if yyj4480 < len(yyv4480) { - if r.TryDecodeAsNil() { - yyv4480[yyj4480] = ContainerStatus{} - } else { - yyv4483 := &yyv4480[yyj4480] - yyv4483.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4480 < len(yyv4480) { - yyv4480 = yyv4480[:yyj4480] - yyc4480 = true - } else if yyj4480 == 0 && yyv4480 == nil { - yyv4480 = []ContainerStatus{} - yyc4480 = true - } - } - yyh4480.End() - if yyc4480 { - *v = yyv4480 - } -} - -func (x codecSelfer1234) encSlicePodTemplate(v []PodTemplate, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4484 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4485 := &yyv4484 - yy4485.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4486 := *v - yyh4486, yyl4486 := z.DecSliceHelperStart() - var yyc4486 bool - if yyl4486 == 0 { - if yyv4486 == nil { - yyv4486 = []PodTemplate{} - yyc4486 = true - } else if len(yyv4486) != 0 { - yyv4486 = yyv4486[:0] - yyc4486 = true - } - } else if yyl4486 > 0 { - var yyrr4486, yyrl4486 int - var yyrt4486 bool - if yyl4486 > cap(yyv4486) { - - yyrg4486 := len(yyv4486) > 0 - yyv24486 := yyv4486 - yyrl4486, yyrt4486 = z.DecInferLen(yyl4486, z.DecBasicHandle().MaxInitLen, 672) - if yyrt4486 { - if yyrl4486 <= cap(yyv4486) { - yyv4486 = yyv4486[:yyrl4486] - } else { - yyv4486 = make([]PodTemplate, yyrl4486) - } - } else { - yyv4486 = make([]PodTemplate, yyrl4486) - } - yyc4486 = true - yyrr4486 = len(yyv4486) - if yyrg4486 { - copy(yyv4486, yyv24486) - } - } else if yyl4486 != len(yyv4486) { - yyv4486 = yyv4486[:yyl4486] - yyc4486 = true - } - yyj4486 := 0 - for ; yyj4486 < yyrr4486; yyj4486++ { - yyh4486.ElemContainerState(yyj4486) - if r.TryDecodeAsNil() { - yyv4486[yyj4486] = PodTemplate{} - } else { - yyv4487 := &yyv4486[yyj4486] - yyv4487.CodecDecodeSelf(d) - } - - } - if yyrt4486 { - for ; yyj4486 < yyl4486; yyj4486++ { - yyv4486 = append(yyv4486, PodTemplate{}) - yyh4486.ElemContainerState(yyj4486) - if r.TryDecodeAsNil() { - yyv4486[yyj4486] = PodTemplate{} - } else { - yyv4488 := &yyv4486[yyj4486] - yyv4488.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4486 := 0 - for ; !r.CheckBreak(); yyj4486++ { - - if yyj4486 >= len(yyv4486) { - yyv4486 = append(yyv4486, PodTemplate{}) // var yyz4486 PodTemplate - yyc4486 = true - } - yyh4486.ElemContainerState(yyj4486) - if yyj4486 < len(yyv4486) { - if r.TryDecodeAsNil() { - yyv4486[yyj4486] = PodTemplate{} - } else { - yyv4489 := &yyv4486[yyj4486] - yyv4489.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4486 < len(yyv4486) { - yyv4486 = yyv4486[:yyj4486] - yyc4486 = true - } else if yyj4486 == 0 && yyv4486 == nil { - yyv4486 = []PodTemplate{} - yyc4486 = true - } - } - yyh4486.End() - if yyc4486 { - *v = yyv4486 - } -} - -func (x codecSelfer1234) encSliceReplicationController(v []ReplicationController, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4490 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4491 := &yyv4490 - yy4491.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4492 := *v - yyh4492, yyl4492 := z.DecSliceHelperStart() - var yyc4492 bool - if yyl4492 == 0 { - if yyv4492 == nil { - yyv4492 = []ReplicationController{} - yyc4492 = true - } else if len(yyv4492) != 0 { - yyv4492 = yyv4492[:0] - yyc4492 = true - } - } else if yyl4492 > 0 { - var yyrr4492, yyrl4492 int - var yyrt4492 bool - if yyl4492 > cap(yyv4492) { - - yyrg4492 := len(yyv4492) > 0 - yyv24492 := yyv4492 - yyrl4492, yyrt4492 = z.DecInferLen(yyl4492, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4492 { - if yyrl4492 <= cap(yyv4492) { - yyv4492 = yyv4492[:yyrl4492] - } else { - yyv4492 = make([]ReplicationController, yyrl4492) - } - } else { - yyv4492 = make([]ReplicationController, yyrl4492) - } - yyc4492 = true - yyrr4492 = len(yyv4492) - if yyrg4492 { - copy(yyv4492, yyv24492) - } - } else if yyl4492 != len(yyv4492) { - yyv4492 = yyv4492[:yyl4492] - yyc4492 = true - } - yyj4492 := 0 - for ; yyj4492 < yyrr4492; yyj4492++ { - yyh4492.ElemContainerState(yyj4492) - if r.TryDecodeAsNil() { - yyv4492[yyj4492] = ReplicationController{} - } else { - yyv4493 := &yyv4492[yyj4492] - yyv4493.CodecDecodeSelf(d) - } - - } - if yyrt4492 { - for ; yyj4492 < yyl4492; yyj4492++ { - yyv4492 = append(yyv4492, ReplicationController{}) - yyh4492.ElemContainerState(yyj4492) - if r.TryDecodeAsNil() { - yyv4492[yyj4492] = ReplicationController{} - } else { - yyv4494 := &yyv4492[yyj4492] - yyv4494.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4492 := 0 - for ; !r.CheckBreak(); yyj4492++ { - - if yyj4492 >= len(yyv4492) { - yyv4492 = append(yyv4492, ReplicationController{}) // var yyz4492 ReplicationController - yyc4492 = true - } - yyh4492.ElemContainerState(yyj4492) - if yyj4492 < len(yyv4492) { - if r.TryDecodeAsNil() { - yyv4492[yyj4492] = ReplicationController{} - } else { - yyv4495 := &yyv4492[yyj4492] - yyv4495.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4492 < len(yyv4492) { - yyv4492 = yyv4492[:yyj4492] - yyc4492 = true - } else if yyj4492 == 0 && yyv4492 == nil { - yyv4492 = []ReplicationController{} - yyc4492 = true - } - } - yyh4492.End() - if yyc4492 { - *v = yyv4492 - } -} - -func (x codecSelfer1234) encSliceService(v []Service, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4496 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4497 := &yyv4496 - yy4497.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4498 := *v - yyh4498, yyl4498 := z.DecSliceHelperStart() - var yyc4498 bool - if yyl4498 == 0 { - if yyv4498 == nil { - yyv4498 = []Service{} - yyc4498 = true - } else if len(yyv4498) != 0 { - yyv4498 = yyv4498[:0] - yyc4498 = true - } - } else if yyl4498 > 0 { - var yyrr4498, yyrl4498 int - var yyrt4498 bool - if yyl4498 > cap(yyv4498) { - - yyrg4498 := len(yyv4498) > 0 - yyv24498 := yyv4498 - yyrl4498, yyrt4498 = z.DecInferLen(yyl4498, z.DecBasicHandle().MaxInitLen, 408) - if yyrt4498 { - if yyrl4498 <= cap(yyv4498) { - yyv4498 = yyv4498[:yyrl4498] - } else { - yyv4498 = make([]Service, yyrl4498) - } - } else { - yyv4498 = make([]Service, yyrl4498) - } - yyc4498 = true - yyrr4498 = len(yyv4498) - if yyrg4498 { - copy(yyv4498, yyv24498) - } - } else if yyl4498 != len(yyv4498) { - yyv4498 = yyv4498[:yyl4498] - yyc4498 = true - } - yyj4498 := 0 - for ; yyj4498 < yyrr4498; yyj4498++ { - yyh4498.ElemContainerState(yyj4498) - if r.TryDecodeAsNil() { - yyv4498[yyj4498] = Service{} - } else { - yyv4499 := &yyv4498[yyj4498] - yyv4499.CodecDecodeSelf(d) - } - - } - if yyrt4498 { - for ; yyj4498 < yyl4498; yyj4498++ { - yyv4498 = append(yyv4498, Service{}) - yyh4498.ElemContainerState(yyj4498) - if r.TryDecodeAsNil() { - yyv4498[yyj4498] = Service{} - } else { - yyv4500 := &yyv4498[yyj4498] - yyv4500.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4498 := 0 - for ; !r.CheckBreak(); yyj4498++ { - - if yyj4498 >= len(yyv4498) { - yyv4498 = append(yyv4498, Service{}) // var yyz4498 Service - yyc4498 = true - } - yyh4498.ElemContainerState(yyj4498) - if yyj4498 < len(yyv4498) { - if r.TryDecodeAsNil() { - yyv4498[yyj4498] = Service{} - } else { - yyv4501 := &yyv4498[yyj4498] - yyv4501.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4498 < len(yyv4498) { - yyv4498 = yyv4498[:yyj4498] - yyc4498 = true - } else if yyj4498 == 0 && yyv4498 == nil { - yyv4498 = []Service{} - yyc4498 = true - } - } - yyh4498.End() - if yyc4498 { - *v = yyv4498 - } -} - -func (x codecSelfer1234) encSliceLoadBalancerIngress(v []LoadBalancerIngress, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4502 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4503 := &yyv4502 - yy4503.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4504 := *v - yyh4504, yyl4504 := z.DecSliceHelperStart() - var yyc4504 bool - if yyl4504 == 0 { - if yyv4504 == nil { - yyv4504 = []LoadBalancerIngress{} - yyc4504 = true - } else if len(yyv4504) != 0 { - yyv4504 = yyv4504[:0] - yyc4504 = true - } - } else if yyl4504 > 0 { - var yyrr4504, yyrl4504 int - var yyrt4504 bool - if yyl4504 > cap(yyv4504) { - - yyrg4504 := len(yyv4504) > 0 - yyv24504 := yyv4504 - yyrl4504, yyrt4504 = z.DecInferLen(yyl4504, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4504 { - if yyrl4504 <= cap(yyv4504) { - yyv4504 = yyv4504[:yyrl4504] - } else { - yyv4504 = make([]LoadBalancerIngress, yyrl4504) - } - } else { - yyv4504 = make([]LoadBalancerIngress, yyrl4504) - } - yyc4504 = true - yyrr4504 = len(yyv4504) - if yyrg4504 { - copy(yyv4504, yyv24504) - } - } else if yyl4504 != len(yyv4504) { - yyv4504 = yyv4504[:yyl4504] - yyc4504 = true - } - yyj4504 := 0 - for ; yyj4504 < yyrr4504; yyj4504++ { - yyh4504.ElemContainerState(yyj4504) - if r.TryDecodeAsNil() { - yyv4504[yyj4504] = LoadBalancerIngress{} - } else { - yyv4505 := &yyv4504[yyj4504] - yyv4505.CodecDecodeSelf(d) - } - - } - if yyrt4504 { - for ; yyj4504 < yyl4504; yyj4504++ { - yyv4504 = append(yyv4504, LoadBalancerIngress{}) - yyh4504.ElemContainerState(yyj4504) - if r.TryDecodeAsNil() { - yyv4504[yyj4504] = LoadBalancerIngress{} - } else { - yyv4506 := &yyv4504[yyj4504] - yyv4506.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4504 := 0 - for ; !r.CheckBreak(); yyj4504++ { - - if yyj4504 >= len(yyv4504) { - yyv4504 = append(yyv4504, LoadBalancerIngress{}) // var yyz4504 LoadBalancerIngress - yyc4504 = true - } - yyh4504.ElemContainerState(yyj4504) - if yyj4504 < len(yyv4504) { - if r.TryDecodeAsNil() { - yyv4504[yyj4504] = LoadBalancerIngress{} - } else { - yyv4507 := &yyv4504[yyj4504] - yyv4507.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4504 < len(yyv4504) { - yyv4504 = yyv4504[:yyj4504] - yyc4504 = true - } else if yyj4504 == 0 && yyv4504 == nil { - yyv4504 = []LoadBalancerIngress{} - yyc4504 = true - } - } - yyh4504.End() - if yyc4504 { - *v = yyv4504 - } -} - -func (x codecSelfer1234) encSliceServicePort(v []ServicePort, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4508 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4509 := &yyv4508 - yy4509.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4510 := *v - yyh4510, yyl4510 := z.DecSliceHelperStart() - var yyc4510 bool - if yyl4510 == 0 { - if yyv4510 == nil { - yyv4510 = []ServicePort{} - yyc4510 = true - } else if len(yyv4510) != 0 { - yyv4510 = yyv4510[:0] - yyc4510 = true - } - } else if yyl4510 > 0 { - var yyrr4510, yyrl4510 int - var yyrt4510 bool - if yyl4510 > cap(yyv4510) { - - yyrg4510 := len(yyv4510) > 0 - yyv24510 := yyv4510 - yyrl4510, yyrt4510 = z.DecInferLen(yyl4510, z.DecBasicHandle().MaxInitLen, 80) - if yyrt4510 { - if yyrl4510 <= cap(yyv4510) { - yyv4510 = yyv4510[:yyrl4510] - } else { - yyv4510 = make([]ServicePort, yyrl4510) - } - } else { - yyv4510 = make([]ServicePort, yyrl4510) - } - yyc4510 = true - yyrr4510 = len(yyv4510) - if yyrg4510 { - copy(yyv4510, yyv24510) - } - } else if yyl4510 != len(yyv4510) { - yyv4510 = yyv4510[:yyl4510] - yyc4510 = true - } - yyj4510 := 0 - for ; yyj4510 < yyrr4510; yyj4510++ { - yyh4510.ElemContainerState(yyj4510) - if r.TryDecodeAsNil() { - yyv4510[yyj4510] = ServicePort{} - } else { - yyv4511 := &yyv4510[yyj4510] - yyv4511.CodecDecodeSelf(d) - } - - } - if yyrt4510 { - for ; yyj4510 < yyl4510; yyj4510++ { - yyv4510 = append(yyv4510, ServicePort{}) - yyh4510.ElemContainerState(yyj4510) - if r.TryDecodeAsNil() { - yyv4510[yyj4510] = ServicePort{} - } else { - yyv4512 := &yyv4510[yyj4510] - yyv4512.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4510 := 0 - for ; !r.CheckBreak(); yyj4510++ { - - if yyj4510 >= len(yyv4510) { - yyv4510 = append(yyv4510, ServicePort{}) // var yyz4510 ServicePort - yyc4510 = true - } - yyh4510.ElemContainerState(yyj4510) - if yyj4510 < len(yyv4510) { - if r.TryDecodeAsNil() { - yyv4510[yyj4510] = ServicePort{} - } else { - yyv4513 := &yyv4510[yyj4510] - yyv4513.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4510 < len(yyv4510) { - yyv4510 = yyv4510[:yyj4510] - yyc4510 = true - } else if yyj4510 == 0 && yyv4510 == nil { - yyv4510 = []ServicePort{} - yyc4510 = true - } - } - yyh4510.End() - if yyc4510 { - *v = yyv4510 - } -} - -func (x codecSelfer1234) encSliceObjectReference(v []ObjectReference, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4514 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4515 := &yyv4514 - yy4515.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4516 := *v - yyh4516, yyl4516 := z.DecSliceHelperStart() - var yyc4516 bool - if yyl4516 == 0 { - if yyv4516 == nil { - yyv4516 = []ObjectReference{} - yyc4516 = true - } else if len(yyv4516) != 0 { - yyv4516 = yyv4516[:0] - yyc4516 = true - } - } else if yyl4516 > 0 { - var yyrr4516, yyrl4516 int - var yyrt4516 bool - if yyl4516 > cap(yyv4516) { - - yyrg4516 := len(yyv4516) > 0 - yyv24516 := yyv4516 - yyrl4516, yyrt4516 = z.DecInferLen(yyl4516, z.DecBasicHandle().MaxInitLen, 112) - if yyrt4516 { - if yyrl4516 <= cap(yyv4516) { - yyv4516 = yyv4516[:yyrl4516] - } else { - yyv4516 = make([]ObjectReference, yyrl4516) - } - } else { - yyv4516 = make([]ObjectReference, yyrl4516) - } - yyc4516 = true - yyrr4516 = len(yyv4516) - if yyrg4516 { - copy(yyv4516, yyv24516) - } - } else if yyl4516 != len(yyv4516) { - yyv4516 = yyv4516[:yyl4516] - yyc4516 = true - } - yyj4516 := 0 - for ; yyj4516 < yyrr4516; yyj4516++ { - yyh4516.ElemContainerState(yyj4516) - if r.TryDecodeAsNil() { - yyv4516[yyj4516] = ObjectReference{} - } else { - yyv4517 := &yyv4516[yyj4516] - yyv4517.CodecDecodeSelf(d) - } - - } - if yyrt4516 { - for ; yyj4516 < yyl4516; yyj4516++ { - yyv4516 = append(yyv4516, ObjectReference{}) - yyh4516.ElemContainerState(yyj4516) - if r.TryDecodeAsNil() { - yyv4516[yyj4516] = ObjectReference{} - } else { - yyv4518 := &yyv4516[yyj4516] - yyv4518.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4516 := 0 - for ; !r.CheckBreak(); yyj4516++ { - - if yyj4516 >= len(yyv4516) { - yyv4516 = append(yyv4516, ObjectReference{}) // var yyz4516 ObjectReference - yyc4516 = true - } - yyh4516.ElemContainerState(yyj4516) - if yyj4516 < len(yyv4516) { - if r.TryDecodeAsNil() { - yyv4516[yyj4516] = ObjectReference{} - } else { - yyv4519 := &yyv4516[yyj4516] - yyv4519.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4516 < len(yyv4516) { - yyv4516 = yyv4516[:yyj4516] - yyc4516 = true - } else if yyj4516 == 0 && yyv4516 == nil { - yyv4516 = []ObjectReference{} - yyc4516 = true - } - } - yyh4516.End() - if yyc4516 { - *v = yyv4516 - } -} - -func (x codecSelfer1234) encSliceServiceAccount(v []ServiceAccount, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4520 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4521 := &yyv4520 - yy4521.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4522 := *v - yyh4522, yyl4522 := z.DecSliceHelperStart() - var yyc4522 bool - if yyl4522 == 0 { - if yyv4522 == nil { - yyv4522 = []ServiceAccount{} - yyc4522 = true - } else if len(yyv4522) != 0 { - yyv4522 = yyv4522[:0] - yyc4522 = true - } - } else if yyl4522 > 0 { - var yyrr4522, yyrl4522 int - var yyrt4522 bool - if yyl4522 > cap(yyv4522) { - - yyrg4522 := len(yyv4522) > 0 - yyv24522 := yyv4522 - yyrl4522, yyrt4522 = z.DecInferLen(yyl4522, z.DecBasicHandle().MaxInitLen, 288) - if yyrt4522 { - if yyrl4522 <= cap(yyv4522) { - yyv4522 = yyv4522[:yyrl4522] - } else { - yyv4522 = make([]ServiceAccount, yyrl4522) - } - } else { - yyv4522 = make([]ServiceAccount, yyrl4522) - } - yyc4522 = true - yyrr4522 = len(yyv4522) - if yyrg4522 { - copy(yyv4522, yyv24522) - } - } else if yyl4522 != len(yyv4522) { - yyv4522 = yyv4522[:yyl4522] - yyc4522 = true - } - yyj4522 := 0 - for ; yyj4522 < yyrr4522; yyj4522++ { - yyh4522.ElemContainerState(yyj4522) - if r.TryDecodeAsNil() { - yyv4522[yyj4522] = ServiceAccount{} - } else { - yyv4523 := &yyv4522[yyj4522] - yyv4523.CodecDecodeSelf(d) - } - - } - if yyrt4522 { - for ; yyj4522 < yyl4522; yyj4522++ { - yyv4522 = append(yyv4522, ServiceAccount{}) - yyh4522.ElemContainerState(yyj4522) - if r.TryDecodeAsNil() { - yyv4522[yyj4522] = ServiceAccount{} - } else { - yyv4524 := &yyv4522[yyj4522] - yyv4524.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4522 := 0 - for ; !r.CheckBreak(); yyj4522++ { - - if yyj4522 >= len(yyv4522) { - yyv4522 = append(yyv4522, ServiceAccount{}) // var yyz4522 ServiceAccount - yyc4522 = true - } - yyh4522.ElemContainerState(yyj4522) - if yyj4522 < len(yyv4522) { - if r.TryDecodeAsNil() { - yyv4522[yyj4522] = ServiceAccount{} - } else { - yyv4525 := &yyv4522[yyj4522] - yyv4525.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4522 < len(yyv4522) { - yyv4522 = yyv4522[:yyj4522] - yyc4522 = true - } else if yyj4522 == 0 && yyv4522 == nil { - yyv4522 = []ServiceAccount{} - yyc4522 = true - } - } - yyh4522.End() - if yyc4522 { - *v = yyv4522 - } -} - -func (x codecSelfer1234) encSliceEndpointSubset(v []EndpointSubset, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -57499,7 +56201,7 @@ func (x codecSelfer1234) encSliceEndpointSubset(v []EndpointSubset, e *codec1978 z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -57509,7 +56211,7 @@ func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec197 var yyc4528 bool if yyl4528 == 0 { if yyv4528 == nil { - yyv4528 = []EndpointSubset{} + yyv4528 = []OwnerReference{} yyc4528 = true } else if len(yyv4528) != 0 { yyv4528 = yyv4528[:0] @@ -57527,10 +56229,10 @@ func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec197 if yyrl4528 <= cap(yyv4528) { yyv4528 = yyv4528[:yyrl4528] } else { - yyv4528 = make([]EndpointSubset, yyrl4528) + yyv4528 = make([]OwnerReference, yyrl4528) } } else { - yyv4528 = make([]EndpointSubset, yyrl4528) + yyv4528 = make([]OwnerReference, yyrl4528) } yyc4528 = true yyrr4528 = len(yyv4528) @@ -57545,7 +56247,7 @@ func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec197 for ; yyj4528 < yyrr4528; yyj4528++ { yyh4528.ElemContainerState(yyj4528) if r.TryDecodeAsNil() { - yyv4528[yyj4528] = EndpointSubset{} + yyv4528[yyj4528] = OwnerReference{} } else { yyv4529 := &yyv4528[yyj4528] yyv4529.CodecDecodeSelf(d) @@ -57554,10 +56256,10 @@ func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec197 } if yyrt4528 { for ; yyj4528 < yyl4528; yyj4528++ { - yyv4528 = append(yyv4528, EndpointSubset{}) + yyv4528 = append(yyv4528, OwnerReference{}) yyh4528.ElemContainerState(yyj4528) if r.TryDecodeAsNil() { - yyv4528[yyj4528] = EndpointSubset{} + yyv4528[yyj4528] = OwnerReference{} } else { yyv4530 := &yyv4528[yyj4528] yyv4530.CodecDecodeSelf(d) @@ -57571,13 +56273,13 @@ func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec197 for ; !r.CheckBreak(); yyj4528++ { if yyj4528 >= len(yyv4528) { - yyv4528 = append(yyv4528, EndpointSubset{}) // var yyz4528 EndpointSubset + yyv4528 = append(yyv4528, OwnerReference{}) // var yyz4528 OwnerReference yyc4528 = true } yyh4528.ElemContainerState(yyj4528) if yyj4528 < len(yyv4528) { if r.TryDecodeAsNil() { - yyv4528[yyj4528] = EndpointSubset{} + yyv4528[yyj4528] = OwnerReference{} } else { yyv4531 := &yyv4528[yyj4528] yyv4531.CodecDecodeSelf(d) @@ -57592,7 +56294,7 @@ func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec197 yyv4528 = yyv4528[:yyj4528] yyc4528 = true } else if yyj4528 == 0 && yyv4528 == nil { - yyv4528 = []EndpointSubset{} + yyv4528 = []OwnerReference{} yyc4528 = true } } @@ -57602,101 +56304,92 @@ func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec197 } } -func (x codecSelfer1234) encSliceEndpointAddress(v []EndpointAddress, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolumeAccessMode, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4532 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4533 := &yyv4532 - yy4533.CodecEncodeSelf(e) + yyv4532.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolumeAccessMode, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4534 := *v - yyh4534, yyl4534 := z.DecSliceHelperStart() - var yyc4534 bool - if yyl4534 == 0 { - if yyv4534 == nil { - yyv4534 = []EndpointAddress{} - yyc4534 = true - } else if len(yyv4534) != 0 { - yyv4534 = yyv4534[:0] - yyc4534 = true + yyv4533 := *v + yyh4533, yyl4533 := z.DecSliceHelperStart() + var yyc4533 bool + if yyl4533 == 0 { + if yyv4533 == nil { + yyv4533 = []PersistentVolumeAccessMode{} + yyc4533 = true + } else if len(yyv4533) != 0 { + yyv4533 = yyv4533[:0] + yyc4533 = true } - } else if yyl4534 > 0 { - var yyrr4534, yyrl4534 int - var yyrt4534 bool - if yyl4534 > cap(yyv4534) { + } else if yyl4533 > 0 { + var yyrr4533, yyrl4533 int + var yyrt4533 bool + if yyl4533 > cap(yyv4533) { - yyrg4534 := len(yyv4534) > 0 - yyv24534 := yyv4534 - yyrl4534, yyrt4534 = z.DecInferLen(yyl4534, z.DecBasicHandle().MaxInitLen, 48) - if yyrt4534 { - if yyrl4534 <= cap(yyv4534) { - yyv4534 = yyv4534[:yyrl4534] + yyrl4533, yyrt4533 = z.DecInferLen(yyl4533, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4533 { + if yyrl4533 <= cap(yyv4533) { + yyv4533 = yyv4533[:yyrl4533] } else { - yyv4534 = make([]EndpointAddress, yyrl4534) + yyv4533 = make([]PersistentVolumeAccessMode, yyrl4533) } } else { - yyv4534 = make([]EndpointAddress, yyrl4534) + yyv4533 = make([]PersistentVolumeAccessMode, yyrl4533) } - yyc4534 = true - yyrr4534 = len(yyv4534) - if yyrg4534 { - copy(yyv4534, yyv24534) - } - } else if yyl4534 != len(yyv4534) { - yyv4534 = yyv4534[:yyl4534] - yyc4534 = true + yyc4533 = true + yyrr4533 = len(yyv4533) + } else if yyl4533 != len(yyv4533) { + yyv4533 = yyv4533[:yyl4533] + yyc4533 = true } - yyj4534 := 0 - for ; yyj4534 < yyrr4534; yyj4534++ { - yyh4534.ElemContainerState(yyj4534) + yyj4533 := 0 + for ; yyj4533 < yyrr4533; yyj4533++ { + yyh4533.ElemContainerState(yyj4533) if r.TryDecodeAsNil() { - yyv4534[yyj4534] = EndpointAddress{} + yyv4533[yyj4533] = "" } else { - yyv4535 := &yyv4534[yyj4534] - yyv4535.CodecDecodeSelf(d) + yyv4533[yyj4533] = PersistentVolumeAccessMode(r.DecodeString()) } } - if yyrt4534 { - for ; yyj4534 < yyl4534; yyj4534++ { - yyv4534 = append(yyv4534, EndpointAddress{}) - yyh4534.ElemContainerState(yyj4534) + if yyrt4533 { + for ; yyj4533 < yyl4533; yyj4533++ { + yyv4533 = append(yyv4533, "") + yyh4533.ElemContainerState(yyj4533) if r.TryDecodeAsNil() { - yyv4534[yyj4534] = EndpointAddress{} + yyv4533[yyj4533] = "" } else { - yyv4536 := &yyv4534[yyj4534] - yyv4536.CodecDecodeSelf(d) + yyv4533[yyj4533] = PersistentVolumeAccessMode(r.DecodeString()) } } } } else { - yyj4534 := 0 - for ; !r.CheckBreak(); yyj4534++ { + yyj4533 := 0 + for ; !r.CheckBreak(); yyj4533++ { - if yyj4534 >= len(yyv4534) { - yyv4534 = append(yyv4534, EndpointAddress{}) // var yyz4534 EndpointAddress - yyc4534 = true + if yyj4533 >= len(yyv4533) { + yyv4533 = append(yyv4533, "") // var yyz4533 PersistentVolumeAccessMode + yyc4533 = true } - yyh4534.ElemContainerState(yyj4534) - if yyj4534 < len(yyv4534) { + yyh4533.ElemContainerState(yyj4533) + if yyj4533 < len(yyv4533) { if r.TryDecodeAsNil() { - yyv4534[yyj4534] = EndpointAddress{} + yyv4533[yyj4533] = "" } else { - yyv4537 := &yyv4534[yyj4534] - yyv4537.CodecDecodeSelf(d) + yyv4533[yyj4533] = PersistentVolumeAccessMode(r.DecodeString()) } } else { @@ -57704,579 +56397,686 @@ func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1 } } - if yyj4534 < len(yyv4534) { - yyv4534 = yyv4534[:yyj4534] - yyc4534 = true - } else if yyj4534 == 0 && yyv4534 == nil { - yyv4534 = []EndpointAddress{} - yyc4534 = true + if yyj4533 < len(yyv4533) { + yyv4533 = yyv4533[:yyj4533] + yyc4533 = true + } else if yyj4533 == 0 && yyv4533 == nil { + yyv4533 = []PersistentVolumeAccessMode{} + yyc4533 = true } } - yyh4534.End() - if yyc4534 { - *v = yyv4534 + yyh4533.End() + if yyc4533 { + *v = yyv4533 } } -func (x codecSelfer1234) encSliceEndpointPort(v []EndpointPort, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePersistentVolume(v []PersistentVolume, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4538 := range v { + for _, yyv4537 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4539 := &yyv4538 - yy4539.CodecEncodeSelf(e) + yy4538 := &yyv4537 + yy4538.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4540 := *v - yyh4540, yyl4540 := z.DecSliceHelperStart() - var yyc4540 bool - if yyl4540 == 0 { - if yyv4540 == nil { - yyv4540 = []EndpointPort{} - yyc4540 = true - } else if len(yyv4540) != 0 { - yyv4540 = yyv4540[:0] - yyc4540 = true + yyv4539 := *v + yyh4539, yyl4539 := z.DecSliceHelperStart() + var yyc4539 bool + if yyl4539 == 0 { + if yyv4539 == nil { + yyv4539 = []PersistentVolume{} + yyc4539 = true + } else if len(yyv4539) != 0 { + yyv4539 = yyv4539[:0] + yyc4539 = true } - } else if yyl4540 > 0 { - var yyrr4540, yyrl4540 int - var yyrt4540 bool - if yyl4540 > cap(yyv4540) { + } else if yyl4539 > 0 { + var yyrr4539, yyrl4539 int + var yyrt4539 bool + if yyl4539 > cap(yyv4539) { - yyrg4540 := len(yyv4540) > 0 - yyv24540 := yyv4540 - yyrl4540, yyrt4540 = z.DecInferLen(yyl4540, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4540 { - if yyrl4540 <= cap(yyv4540) { - yyv4540 = yyv4540[:yyrl4540] + yyrg4539 := len(yyv4539) > 0 + yyv24539 := yyv4539 + yyrl4539, yyrt4539 = z.DecInferLen(yyl4539, z.DecBasicHandle().MaxInitLen, 488) + if yyrt4539 { + if yyrl4539 <= cap(yyv4539) { + yyv4539 = yyv4539[:yyrl4539] } else { - yyv4540 = make([]EndpointPort, yyrl4540) + yyv4539 = make([]PersistentVolume, yyrl4539) } } else { - yyv4540 = make([]EndpointPort, yyrl4540) + yyv4539 = make([]PersistentVolume, yyrl4539) } - yyc4540 = true - yyrr4540 = len(yyv4540) - if yyrg4540 { - copy(yyv4540, yyv24540) + yyc4539 = true + yyrr4539 = len(yyv4539) + if yyrg4539 { + copy(yyv4539, yyv24539) } - } else if yyl4540 != len(yyv4540) { - yyv4540 = yyv4540[:yyl4540] - yyc4540 = true + } else if yyl4539 != len(yyv4539) { + yyv4539 = yyv4539[:yyl4539] + yyc4539 = true } - yyj4540 := 0 - for ; yyj4540 < yyrr4540; yyj4540++ { - yyh4540.ElemContainerState(yyj4540) + yyj4539 := 0 + for ; yyj4539 < yyrr4539; yyj4539++ { + yyh4539.ElemContainerState(yyj4539) if r.TryDecodeAsNil() { - yyv4540[yyj4540] = EndpointPort{} + yyv4539[yyj4539] = PersistentVolume{} } else { - yyv4541 := &yyv4540[yyj4540] - yyv4541.CodecDecodeSelf(d) + yyv4540 := &yyv4539[yyj4539] + yyv4540.CodecDecodeSelf(d) } } - if yyrt4540 { - for ; yyj4540 < yyl4540; yyj4540++ { - yyv4540 = append(yyv4540, EndpointPort{}) - yyh4540.ElemContainerState(yyj4540) + if yyrt4539 { + for ; yyj4539 < yyl4539; yyj4539++ { + yyv4539 = append(yyv4539, PersistentVolume{}) + yyh4539.ElemContainerState(yyj4539) if r.TryDecodeAsNil() { - yyv4540[yyj4540] = EndpointPort{} + yyv4539[yyj4539] = PersistentVolume{} } else { - yyv4542 := &yyv4540[yyj4540] + yyv4541 := &yyv4539[yyj4539] + yyv4541.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4539 := 0 + for ; !r.CheckBreak(); yyj4539++ { + + if yyj4539 >= len(yyv4539) { + yyv4539 = append(yyv4539, PersistentVolume{}) // var yyz4539 PersistentVolume + yyc4539 = true + } + yyh4539.ElemContainerState(yyj4539) + if yyj4539 < len(yyv4539) { + if r.TryDecodeAsNil() { + yyv4539[yyj4539] = PersistentVolume{} + } else { + yyv4542 := &yyv4539[yyj4539] yyv4542.CodecDecodeSelf(d) } - } - } - - } else { - yyj4540 := 0 - for ; !r.CheckBreak(); yyj4540++ { - - if yyj4540 >= len(yyv4540) { - yyv4540 = append(yyv4540, EndpointPort{}) // var yyz4540 EndpointPort - yyc4540 = true - } - yyh4540.ElemContainerState(yyj4540) - if yyj4540 < len(yyv4540) { - if r.TryDecodeAsNil() { - yyv4540[yyj4540] = EndpointPort{} - } else { - yyv4543 := &yyv4540[yyj4540] - yyv4543.CodecDecodeSelf(d) - } - } else { z.DecSwallow() } } - if yyj4540 < len(yyv4540) { - yyv4540 = yyv4540[:yyj4540] - yyc4540 = true - } else if yyj4540 == 0 && yyv4540 == nil { - yyv4540 = []EndpointPort{} - yyc4540 = true + if yyj4539 < len(yyv4539) { + yyv4539 = yyv4539[:yyj4539] + yyc4539 = true + } else if yyj4539 == 0 && yyv4539 == nil { + yyv4539 = []PersistentVolume{} + yyc4539 = true } } - yyh4540.End() - if yyc4540 { - *v = yyv4540 + yyh4539.End() + if yyc4539 { + *v = yyv4539 } } -func (x codecSelfer1234) encSliceEndpoints(v []Endpoints, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePersistentVolumeClaim(v []PersistentVolumeClaim, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4544 := range v { + for _, yyv4543 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4545 := &yyv4544 - yy4545.CodecEncodeSelf(e) + yy4544 := &yyv4543 + yy4544.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClaim, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4546 := *v - yyh4546, yyl4546 := z.DecSliceHelperStart() - var yyc4546 bool - if yyl4546 == 0 { - if yyv4546 == nil { - yyv4546 = []Endpoints{} - yyc4546 = true - } else if len(yyv4546) != 0 { - yyv4546 = yyv4546[:0] - yyc4546 = true + yyv4545 := *v + yyh4545, yyl4545 := z.DecSliceHelperStart() + var yyc4545 bool + if yyl4545 == 0 { + if yyv4545 == nil { + yyv4545 = []PersistentVolumeClaim{} + yyc4545 = true + } else if len(yyv4545) != 0 { + yyv4545 = yyv4545[:0] + yyc4545 = true } - } else if yyl4546 > 0 { - var yyrr4546, yyrl4546 int - var yyrt4546 bool - if yyl4546 > cap(yyv4546) { + } else if yyl4545 > 0 { + var yyrr4545, yyrl4545 int + var yyrt4545 bool + if yyl4545 > cap(yyv4545) { - yyrg4546 := len(yyv4546) > 0 - yyv24546 := yyv4546 - yyrl4546, yyrt4546 = z.DecInferLen(yyl4546, z.DecBasicHandle().MaxInitLen, 264) - if yyrt4546 { - if yyrl4546 <= cap(yyv4546) { - yyv4546 = yyv4546[:yyrl4546] + yyrg4545 := len(yyv4545) > 0 + yyv24545 := yyv4545 + yyrl4545, yyrt4545 = z.DecInferLen(yyl4545, z.DecBasicHandle().MaxInitLen, 368) + if yyrt4545 { + if yyrl4545 <= cap(yyv4545) { + yyv4545 = yyv4545[:yyrl4545] } else { - yyv4546 = make([]Endpoints, yyrl4546) + yyv4545 = make([]PersistentVolumeClaim, yyrl4545) } } else { - yyv4546 = make([]Endpoints, yyrl4546) + yyv4545 = make([]PersistentVolumeClaim, yyrl4545) } - yyc4546 = true - yyrr4546 = len(yyv4546) - if yyrg4546 { - copy(yyv4546, yyv24546) + yyc4545 = true + yyrr4545 = len(yyv4545) + if yyrg4545 { + copy(yyv4545, yyv24545) } - } else if yyl4546 != len(yyv4546) { - yyv4546 = yyv4546[:yyl4546] - yyc4546 = true + } else if yyl4545 != len(yyv4545) { + yyv4545 = yyv4545[:yyl4545] + yyc4545 = true } - yyj4546 := 0 - for ; yyj4546 < yyrr4546; yyj4546++ { - yyh4546.ElemContainerState(yyj4546) + yyj4545 := 0 + for ; yyj4545 < yyrr4545; yyj4545++ { + yyh4545.ElemContainerState(yyj4545) if r.TryDecodeAsNil() { - yyv4546[yyj4546] = Endpoints{} + yyv4545[yyj4545] = PersistentVolumeClaim{} } else { - yyv4547 := &yyv4546[yyj4546] - yyv4547.CodecDecodeSelf(d) + yyv4546 := &yyv4545[yyj4545] + yyv4546.CodecDecodeSelf(d) } } - if yyrt4546 { - for ; yyj4546 < yyl4546; yyj4546++ { - yyv4546 = append(yyv4546, Endpoints{}) - yyh4546.ElemContainerState(yyj4546) + if yyrt4545 { + for ; yyj4545 < yyl4545; yyj4545++ { + yyv4545 = append(yyv4545, PersistentVolumeClaim{}) + yyh4545.ElemContainerState(yyj4545) if r.TryDecodeAsNil() { - yyv4546[yyj4546] = Endpoints{} + yyv4545[yyj4545] = PersistentVolumeClaim{} } else { - yyv4548 := &yyv4546[yyj4546] + yyv4547 := &yyv4545[yyj4545] + yyv4547.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4545 := 0 + for ; !r.CheckBreak(); yyj4545++ { + + if yyj4545 >= len(yyv4545) { + yyv4545 = append(yyv4545, PersistentVolumeClaim{}) // var yyz4545 PersistentVolumeClaim + yyc4545 = true + } + yyh4545.ElemContainerState(yyj4545) + if yyj4545 < len(yyv4545) { + if r.TryDecodeAsNil() { + yyv4545[yyj4545] = PersistentVolumeClaim{} + } else { + yyv4548 := &yyv4545[yyj4545] yyv4548.CodecDecodeSelf(d) } - } - } - - } else { - yyj4546 := 0 - for ; !r.CheckBreak(); yyj4546++ { - - if yyj4546 >= len(yyv4546) { - yyv4546 = append(yyv4546, Endpoints{}) // var yyz4546 Endpoints - yyc4546 = true - } - yyh4546.ElemContainerState(yyj4546) - if yyj4546 < len(yyv4546) { - if r.TryDecodeAsNil() { - yyv4546[yyj4546] = Endpoints{} - } else { - yyv4549 := &yyv4546[yyj4546] - yyv4549.CodecDecodeSelf(d) - } - } else { z.DecSwallow() } } - if yyj4546 < len(yyv4546) { - yyv4546 = yyv4546[:yyj4546] - yyc4546 = true - } else if yyj4546 == 0 && yyv4546 == nil { - yyv4546 = []Endpoints{} - yyc4546 = true + if yyj4545 < len(yyv4545) { + yyv4545 = yyv4545[:yyj4545] + yyc4545 = true + } else if yyj4545 == 0 && yyv4545 == nil { + yyv4545 = []PersistentVolumeClaim{} + yyc4545 = true } } - yyh4546.End() - if yyc4546 { - *v = yyv4546 + yyh4545.End() + if yyc4545 { + *v = yyv4545 } } -func (x codecSelfer1234) encSliceNodeCondition(v []NodeCondition, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceKeyToPath(v []KeyToPath, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4550 := range v { + for _, yyv4549 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4551 := &yyv4550 - yy4551.CodecEncodeSelf(e) + yy4550 := &yyv4549 + yy4550.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4552 := *v - yyh4552, yyl4552 := z.DecSliceHelperStart() - var yyc4552 bool - if yyl4552 == 0 { - if yyv4552 == nil { - yyv4552 = []NodeCondition{} - yyc4552 = true - } else if len(yyv4552) != 0 { - yyv4552 = yyv4552[:0] - yyc4552 = true + yyv4551 := *v + yyh4551, yyl4551 := z.DecSliceHelperStart() + var yyc4551 bool + if yyl4551 == 0 { + if yyv4551 == nil { + yyv4551 = []KeyToPath{} + yyc4551 = true + } else if len(yyv4551) != 0 { + yyv4551 = yyv4551[:0] + yyc4551 = true } - } else if yyl4552 > 0 { - var yyrr4552, yyrl4552 int - var yyrt4552 bool - if yyl4552 > cap(yyv4552) { + } else if yyl4551 > 0 { + var yyrr4551, yyrl4551 int + var yyrt4551 bool + if yyl4551 > cap(yyv4551) { - yyrg4552 := len(yyv4552) > 0 - yyv24552 := yyv4552 - yyrl4552, yyrt4552 = z.DecInferLen(yyl4552, z.DecBasicHandle().MaxInitLen, 112) - if yyrt4552 { - if yyrl4552 <= cap(yyv4552) { - yyv4552 = yyv4552[:yyrl4552] + yyrg4551 := len(yyv4551) > 0 + yyv24551 := yyv4551 + yyrl4551, yyrt4551 = z.DecInferLen(yyl4551, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4551 { + if yyrl4551 <= cap(yyv4551) { + yyv4551 = yyv4551[:yyrl4551] } else { - yyv4552 = make([]NodeCondition, yyrl4552) + yyv4551 = make([]KeyToPath, yyrl4551) } } else { - yyv4552 = make([]NodeCondition, yyrl4552) + yyv4551 = make([]KeyToPath, yyrl4551) } - yyc4552 = true - yyrr4552 = len(yyv4552) - if yyrg4552 { - copy(yyv4552, yyv24552) + yyc4551 = true + yyrr4551 = len(yyv4551) + if yyrg4551 { + copy(yyv4551, yyv24551) } - } else if yyl4552 != len(yyv4552) { - yyv4552 = yyv4552[:yyl4552] - yyc4552 = true + } else if yyl4551 != len(yyv4551) { + yyv4551 = yyv4551[:yyl4551] + yyc4551 = true } - yyj4552 := 0 - for ; yyj4552 < yyrr4552; yyj4552++ { - yyh4552.ElemContainerState(yyj4552) + yyj4551 := 0 + for ; yyj4551 < yyrr4551; yyj4551++ { + yyh4551.ElemContainerState(yyj4551) if r.TryDecodeAsNil() { - yyv4552[yyj4552] = NodeCondition{} + yyv4551[yyj4551] = KeyToPath{} } else { - yyv4553 := &yyv4552[yyj4552] - yyv4553.CodecDecodeSelf(d) + yyv4552 := &yyv4551[yyj4551] + yyv4552.CodecDecodeSelf(d) } } - if yyrt4552 { - for ; yyj4552 < yyl4552; yyj4552++ { - yyv4552 = append(yyv4552, NodeCondition{}) - yyh4552.ElemContainerState(yyj4552) + if yyrt4551 { + for ; yyj4551 < yyl4551; yyj4551++ { + yyv4551 = append(yyv4551, KeyToPath{}) + yyh4551.ElemContainerState(yyj4551) if r.TryDecodeAsNil() { - yyv4552[yyj4552] = NodeCondition{} + yyv4551[yyj4551] = KeyToPath{} } else { - yyv4554 := &yyv4552[yyj4552] + yyv4553 := &yyv4551[yyj4551] + yyv4553.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4551 := 0 + for ; !r.CheckBreak(); yyj4551++ { + + if yyj4551 >= len(yyv4551) { + yyv4551 = append(yyv4551, KeyToPath{}) // var yyz4551 KeyToPath + yyc4551 = true + } + yyh4551.ElemContainerState(yyj4551) + if yyj4551 < len(yyv4551) { + if r.TryDecodeAsNil() { + yyv4551[yyj4551] = KeyToPath{} + } else { + yyv4554 := &yyv4551[yyj4551] yyv4554.CodecDecodeSelf(d) } - } - } - - } else { - yyj4552 := 0 - for ; !r.CheckBreak(); yyj4552++ { - - if yyj4552 >= len(yyv4552) { - yyv4552 = append(yyv4552, NodeCondition{}) // var yyz4552 NodeCondition - yyc4552 = true - } - yyh4552.ElemContainerState(yyj4552) - if yyj4552 < len(yyv4552) { - if r.TryDecodeAsNil() { - yyv4552[yyj4552] = NodeCondition{} - } else { - yyv4555 := &yyv4552[yyj4552] - yyv4555.CodecDecodeSelf(d) - } - } else { z.DecSwallow() } } - if yyj4552 < len(yyv4552) { - yyv4552 = yyv4552[:yyj4552] - yyc4552 = true - } else if yyj4552 == 0 && yyv4552 == nil { - yyv4552 = []NodeCondition{} - yyc4552 = true + if yyj4551 < len(yyv4551) { + yyv4551 = yyv4551[:yyj4551] + yyc4551 = true + } else if yyj4551 == 0 && yyv4551 == nil { + yyv4551 = []KeyToPath{} + yyc4551 = true } } - yyh4552.End() - if yyc4552 { - *v = yyv4552 + yyh4551.End() + if yyc4551 { + *v = yyv4551 } } -func (x codecSelfer1234) encSliceNodeAddress(v []NodeAddress, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceDownwardAPIVolumeFile(v []DownwardAPIVolumeFile, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4556 := range v { + for _, yyv4555 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4557 := &yyv4556 - yy4557.CodecEncodeSelf(e) + yy4556 := &yyv4555 + yy4556.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFile, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4558 := *v - yyh4558, yyl4558 := z.DecSliceHelperStart() - var yyc4558 bool - if yyl4558 == 0 { - if yyv4558 == nil { - yyv4558 = []NodeAddress{} - yyc4558 = true - } else if len(yyv4558) != 0 { - yyv4558 = yyv4558[:0] - yyc4558 = true + yyv4557 := *v + yyh4557, yyl4557 := z.DecSliceHelperStart() + var yyc4557 bool + if yyl4557 == 0 { + if yyv4557 == nil { + yyv4557 = []DownwardAPIVolumeFile{} + yyc4557 = true + } else if len(yyv4557) != 0 { + yyv4557 = yyv4557[:0] + yyc4557 = true } - } else if yyl4558 > 0 { - var yyrr4558, yyrl4558 int - var yyrt4558 bool - if yyl4558 > cap(yyv4558) { + } else if yyl4557 > 0 { + var yyrr4557, yyrl4557 int + var yyrt4557 bool + if yyl4557 > cap(yyv4557) { - yyrg4558 := len(yyv4558) > 0 - yyv24558 := yyv4558 - yyrl4558, yyrt4558 = z.DecInferLen(yyl4558, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4558 { - if yyrl4558 <= cap(yyv4558) { - yyv4558 = yyv4558[:yyrl4558] + yyrg4557 := len(yyv4557) > 0 + yyv24557 := yyv4557 + yyrl4557, yyrt4557 = z.DecInferLen(yyl4557, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4557 { + if yyrl4557 <= cap(yyv4557) { + yyv4557 = yyv4557[:yyrl4557] } else { - yyv4558 = make([]NodeAddress, yyrl4558) + yyv4557 = make([]DownwardAPIVolumeFile, yyrl4557) } } else { - yyv4558 = make([]NodeAddress, yyrl4558) + yyv4557 = make([]DownwardAPIVolumeFile, yyrl4557) } - yyc4558 = true - yyrr4558 = len(yyv4558) - if yyrg4558 { - copy(yyv4558, yyv24558) + yyc4557 = true + yyrr4557 = len(yyv4557) + if yyrg4557 { + copy(yyv4557, yyv24557) } - } else if yyl4558 != len(yyv4558) { - yyv4558 = yyv4558[:yyl4558] - yyc4558 = true + } else if yyl4557 != len(yyv4557) { + yyv4557 = yyv4557[:yyl4557] + yyc4557 = true } - yyj4558 := 0 - for ; yyj4558 < yyrr4558; yyj4558++ { - yyh4558.ElemContainerState(yyj4558) + yyj4557 := 0 + for ; yyj4557 < yyrr4557; yyj4557++ { + yyh4557.ElemContainerState(yyj4557) if r.TryDecodeAsNil() { - yyv4558[yyj4558] = NodeAddress{} + yyv4557[yyj4557] = DownwardAPIVolumeFile{} } else { - yyv4559 := &yyv4558[yyj4558] - yyv4559.CodecDecodeSelf(d) + yyv4558 := &yyv4557[yyj4557] + yyv4558.CodecDecodeSelf(d) } } - if yyrt4558 { - for ; yyj4558 < yyl4558; yyj4558++ { - yyv4558 = append(yyv4558, NodeAddress{}) - yyh4558.ElemContainerState(yyj4558) + if yyrt4557 { + for ; yyj4557 < yyl4557; yyj4557++ { + yyv4557 = append(yyv4557, DownwardAPIVolumeFile{}) + yyh4557.ElemContainerState(yyj4557) if r.TryDecodeAsNil() { - yyv4558[yyj4558] = NodeAddress{} + yyv4557[yyj4557] = DownwardAPIVolumeFile{} } else { - yyv4560 := &yyv4558[yyj4558] + yyv4559 := &yyv4557[yyj4557] + yyv4559.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4557 := 0 + for ; !r.CheckBreak(); yyj4557++ { + + if yyj4557 >= len(yyv4557) { + yyv4557 = append(yyv4557, DownwardAPIVolumeFile{}) // var yyz4557 DownwardAPIVolumeFile + yyc4557 = true + } + yyh4557.ElemContainerState(yyj4557) + if yyj4557 < len(yyv4557) { + if r.TryDecodeAsNil() { + yyv4557[yyj4557] = DownwardAPIVolumeFile{} + } else { + yyv4560 := &yyv4557[yyj4557] yyv4560.CodecDecodeSelf(d) } - } - } - - } else { - yyj4558 := 0 - for ; !r.CheckBreak(); yyj4558++ { - - if yyj4558 >= len(yyv4558) { - yyv4558 = append(yyv4558, NodeAddress{}) // var yyz4558 NodeAddress - yyc4558 = true - } - yyh4558.ElemContainerState(yyj4558) - if yyj4558 < len(yyv4558) { - if r.TryDecodeAsNil() { - yyv4558[yyj4558] = NodeAddress{} - } else { - yyv4561 := &yyv4558[yyj4558] - yyv4561.CodecDecodeSelf(d) - } - } else { z.DecSwallow() } } - if yyj4558 < len(yyv4558) { - yyv4558 = yyv4558[:yyj4558] - yyc4558 = true - } else if yyj4558 == 0 && yyv4558 == nil { - yyv4558 = []NodeAddress{} - yyc4558 = true + if yyj4557 < len(yyv4557) { + yyv4557 = yyv4557[:yyj4557] + yyc4557 = true + } else if yyj4557 == 0 && yyv4557 == nil { + yyv4557 = []DownwardAPIVolumeFile{} + yyc4557 = true } } - yyh4558.End() - if yyc4558 { - *v = yyv4558 + yyh4557.End() + if yyc4557 { + *v = yyv4557 } } -func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceHTTPHeader(v []HTTPHeader, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4562 := range v { + for _, yyv4561 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4563 := &yyv4562 - yy4563.CodecEncodeSelf(e) + yy4562 := &yyv4561 + yy4562.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4564 := *v - yyh4564, yyl4564 := z.DecSliceHelperStart() - var yyc4564 bool - if yyl4564 == 0 { - if yyv4564 == nil { - yyv4564 = []ContainerImage{} - yyc4564 = true - } else if len(yyv4564) != 0 { - yyv4564 = yyv4564[:0] - yyc4564 = true + yyv4563 := *v + yyh4563, yyl4563 := z.DecSliceHelperStart() + var yyc4563 bool + if yyl4563 == 0 { + if yyv4563 == nil { + yyv4563 = []HTTPHeader{} + yyc4563 = true + } else if len(yyv4563) != 0 { + yyv4563 = yyv4563[:0] + yyc4563 = true } - } else if yyl4564 > 0 { - var yyrr4564, yyrl4564 int - var yyrt4564 bool - if yyl4564 > cap(yyv4564) { + } else if yyl4563 > 0 { + var yyrr4563, yyrl4563 int + var yyrt4563 bool + if yyl4563 > cap(yyv4563) { - yyrg4564 := len(yyv4564) > 0 - yyv24564 := yyv4564 - yyrl4564, yyrt4564 = z.DecInferLen(yyl4564, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4564 { - if yyrl4564 <= cap(yyv4564) { - yyv4564 = yyv4564[:yyrl4564] + yyrg4563 := len(yyv4563) > 0 + yyv24563 := yyv4563 + yyrl4563, yyrt4563 = z.DecInferLen(yyl4563, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4563 { + if yyrl4563 <= cap(yyv4563) { + yyv4563 = yyv4563[:yyrl4563] } else { - yyv4564 = make([]ContainerImage, yyrl4564) + yyv4563 = make([]HTTPHeader, yyrl4563) } } else { - yyv4564 = make([]ContainerImage, yyrl4564) + yyv4563 = make([]HTTPHeader, yyrl4563) } - yyc4564 = true - yyrr4564 = len(yyv4564) - if yyrg4564 { - copy(yyv4564, yyv24564) + yyc4563 = true + yyrr4563 = len(yyv4563) + if yyrg4563 { + copy(yyv4563, yyv24563) } - } else if yyl4564 != len(yyv4564) { - yyv4564 = yyv4564[:yyl4564] - yyc4564 = true + } else if yyl4563 != len(yyv4563) { + yyv4563 = yyv4563[:yyl4563] + yyc4563 = true } - yyj4564 := 0 - for ; yyj4564 < yyrr4564; yyj4564++ { - yyh4564.ElemContainerState(yyj4564) + yyj4563 := 0 + for ; yyj4563 < yyrr4563; yyj4563++ { + yyh4563.ElemContainerState(yyj4563) if r.TryDecodeAsNil() { - yyv4564[yyj4564] = ContainerImage{} + yyv4563[yyj4563] = HTTPHeader{} } else { - yyv4565 := &yyv4564[yyj4564] - yyv4565.CodecDecodeSelf(d) + yyv4564 := &yyv4563[yyj4563] + yyv4564.CodecDecodeSelf(d) } } - if yyrt4564 { - for ; yyj4564 < yyl4564; yyj4564++ { - yyv4564 = append(yyv4564, ContainerImage{}) - yyh4564.ElemContainerState(yyj4564) + if yyrt4563 { + for ; yyj4563 < yyl4563; yyj4563++ { + yyv4563 = append(yyv4563, HTTPHeader{}) + yyh4563.ElemContainerState(yyj4563) if r.TryDecodeAsNil() { - yyv4564[yyj4564] = ContainerImage{} + yyv4563[yyj4563] = HTTPHeader{} } else { - yyv4566 := &yyv4564[yyj4564] + yyv4565 := &yyv4563[yyj4563] + yyv4565.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4563 := 0 + for ; !r.CheckBreak(); yyj4563++ { + + if yyj4563 >= len(yyv4563) { + yyv4563 = append(yyv4563, HTTPHeader{}) // var yyz4563 HTTPHeader + yyc4563 = true + } + yyh4563.ElemContainerState(yyj4563) + if yyj4563 < len(yyv4563) { + if r.TryDecodeAsNil() { + yyv4563[yyj4563] = HTTPHeader{} + } else { + yyv4566 := &yyv4563[yyj4563] yyv4566.CodecDecodeSelf(d) } + } else { + z.DecSwallow() + } + + } + if yyj4563 < len(yyv4563) { + yyv4563 = yyv4563[:yyj4563] + yyc4563 = true + } else if yyj4563 == 0 && yyv4563 == nil { + yyv4563 = []HTTPHeader{} + yyc4563 = true + } + } + yyh4563.End() + if yyc4563 { + *v = yyv4563 + } +} + +func (x codecSelfer1234) encSliceCapability(v []Capability, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4567 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4567.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceCapability(v *[]Capability, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4568 := *v + yyh4568, yyl4568 := z.DecSliceHelperStart() + var yyc4568 bool + if yyl4568 == 0 { + if yyv4568 == nil { + yyv4568 = []Capability{} + yyc4568 = true + } else if len(yyv4568) != 0 { + yyv4568 = yyv4568[:0] + yyc4568 = true + } + } else if yyl4568 > 0 { + var yyrr4568, yyrl4568 int + var yyrt4568 bool + if yyl4568 > cap(yyv4568) { + + yyrl4568, yyrt4568 = z.DecInferLen(yyl4568, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4568 { + if yyrl4568 <= cap(yyv4568) { + yyv4568 = yyv4568[:yyrl4568] + } else { + yyv4568 = make([]Capability, yyrl4568) + } + } else { + yyv4568 = make([]Capability, yyrl4568) + } + yyc4568 = true + yyrr4568 = len(yyv4568) + } else if yyl4568 != len(yyv4568) { + yyv4568 = yyv4568[:yyl4568] + yyc4568 = true + } + yyj4568 := 0 + for ; yyj4568 < yyrr4568; yyj4568++ { + yyh4568.ElemContainerState(yyj4568) + if r.TryDecodeAsNil() { + yyv4568[yyj4568] = "" + } else { + yyv4568[yyj4568] = Capability(r.DecodeString()) + } + + } + if yyrt4568 { + for ; yyj4568 < yyl4568; yyj4568++ { + yyv4568 = append(yyv4568, "") + yyh4568.ElemContainerState(yyj4568) + if r.TryDecodeAsNil() { + yyv4568[yyj4568] = "" + } else { + yyv4568[yyj4568] = Capability(r.DecodeString()) + } + } } } else { - yyj4564 := 0 - for ; !r.CheckBreak(); yyj4564++ { + yyj4568 := 0 + for ; !r.CheckBreak(); yyj4568++ { - if yyj4564 >= len(yyv4564) { - yyv4564 = append(yyv4564, ContainerImage{}) // var yyz4564 ContainerImage - yyc4564 = true + if yyj4568 >= len(yyv4568) { + yyv4568 = append(yyv4568, "") // var yyz4568 Capability + yyc4568 = true } - yyh4564.ElemContainerState(yyj4564) - if yyj4564 < len(yyv4564) { + yyh4568.ElemContainerState(yyj4568) + if yyj4568 < len(yyv4568) { if r.TryDecodeAsNil() { - yyv4564[yyj4564] = ContainerImage{} + yyv4568[yyj4568] = "" } else { - yyv4567 := &yyv4564[yyj4564] - yyv4567.CodecDecodeSelf(d) + yyv4568[yyj4568] = Capability(r.DecodeString()) } } else { @@ -58284,338 +57084,347 @@ func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec197 } } - if yyj4564 < len(yyv4564) { - yyv4564 = yyv4564[:yyj4564] - yyc4564 = true - } else if yyj4564 == 0 && yyv4564 == nil { - yyv4564 = []ContainerImage{} - yyc4564 = true + if yyj4568 < len(yyv4568) { + yyv4568 = yyv4568[:yyj4568] + yyc4568 = true + } else if yyj4568 == 0 && yyv4568 == nil { + yyv4568 = []Capability{} + yyc4568 = true } } - yyh4564.End() - if yyc4564 { - *v = yyv4564 + yyh4568.End() + if yyc4568 { + *v = yyv4568 } } -func (x codecSelfer1234) encSliceUniqueVolumeName(v []UniqueVolumeName, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceContainerPort(v []ContainerPort, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4568 := range v { + for _, yyv4572 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4568.CodecEncodeSelf(e) + yy4573 := &yyv4572 + yy4573.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceContainerPort(v *[]ContainerPort, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4569 := *v - yyh4569, yyl4569 := z.DecSliceHelperStart() - var yyc4569 bool - if yyl4569 == 0 { - if yyv4569 == nil { - yyv4569 = []UniqueVolumeName{} - yyc4569 = true - } else if len(yyv4569) != 0 { - yyv4569 = yyv4569[:0] - yyc4569 = true + yyv4574 := *v + yyh4574, yyl4574 := z.DecSliceHelperStart() + var yyc4574 bool + if yyl4574 == 0 { + if yyv4574 == nil { + yyv4574 = []ContainerPort{} + yyc4574 = true + } else if len(yyv4574) != 0 { + yyv4574 = yyv4574[:0] + yyc4574 = true } - } else if yyl4569 > 0 { - var yyrr4569, yyrl4569 int - var yyrt4569 bool - if yyl4569 > cap(yyv4569) { + } else if yyl4574 > 0 { + var yyrr4574, yyrl4574 int + var yyrt4574 bool + if yyl4574 > cap(yyv4574) { - yyrl4569, yyrt4569 = z.DecInferLen(yyl4569, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4569 { - if yyrl4569 <= cap(yyv4569) { - yyv4569 = yyv4569[:yyrl4569] + yyrg4574 := len(yyv4574) > 0 + yyv24574 := yyv4574 + yyrl4574, yyrt4574 = z.DecInferLen(yyl4574, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4574 { + if yyrl4574 <= cap(yyv4574) { + yyv4574 = yyv4574[:yyrl4574] } else { - yyv4569 = make([]UniqueVolumeName, yyrl4569) + yyv4574 = make([]ContainerPort, yyrl4574) } } else { - yyv4569 = make([]UniqueVolumeName, yyrl4569) + yyv4574 = make([]ContainerPort, yyrl4574) } - yyc4569 = true - yyrr4569 = len(yyv4569) - } else if yyl4569 != len(yyv4569) { - yyv4569 = yyv4569[:yyl4569] - yyc4569 = true + yyc4574 = true + yyrr4574 = len(yyv4574) + if yyrg4574 { + copy(yyv4574, yyv24574) + } + } else if yyl4574 != len(yyv4574) { + yyv4574 = yyv4574[:yyl4574] + yyc4574 = true } - yyj4569 := 0 - for ; yyj4569 < yyrr4569; yyj4569++ { - yyh4569.ElemContainerState(yyj4569) + yyj4574 := 0 + for ; yyj4574 < yyrr4574; yyj4574++ { + yyh4574.ElemContainerState(yyj4574) if r.TryDecodeAsNil() { - yyv4569[yyj4569] = "" + yyv4574[yyj4574] = ContainerPort{} } else { - yyv4569[yyj4569] = UniqueVolumeName(r.DecodeString()) + yyv4575 := &yyv4574[yyj4574] + yyv4575.CodecDecodeSelf(d) } } - if yyrt4569 { - for ; yyj4569 < yyl4569; yyj4569++ { - yyv4569 = append(yyv4569, "") - yyh4569.ElemContainerState(yyj4569) + if yyrt4574 { + for ; yyj4574 < yyl4574; yyj4574++ { + yyv4574 = append(yyv4574, ContainerPort{}) + yyh4574.ElemContainerState(yyj4574) if r.TryDecodeAsNil() { - yyv4569[yyj4569] = "" + yyv4574[yyj4574] = ContainerPort{} } else { - yyv4569[yyj4569] = UniqueVolumeName(r.DecodeString()) + yyv4576 := &yyv4574[yyj4574] + yyv4576.CodecDecodeSelf(d) } } } } else { - yyj4569 := 0 - for ; !r.CheckBreak(); yyj4569++ { + yyj4574 := 0 + for ; !r.CheckBreak(); yyj4574++ { - if yyj4569 >= len(yyv4569) { - yyv4569 = append(yyv4569, "") // var yyz4569 UniqueVolumeName - yyc4569 = true + if yyj4574 >= len(yyv4574) { + yyv4574 = append(yyv4574, ContainerPort{}) // var yyz4574 ContainerPort + yyc4574 = true } - yyh4569.ElemContainerState(yyj4569) - if yyj4569 < len(yyv4569) { + yyh4574.ElemContainerState(yyj4574) + if yyj4574 < len(yyv4574) { if r.TryDecodeAsNil() { - yyv4569[yyj4569] = "" + yyv4574[yyj4574] = ContainerPort{} } else { - yyv4569[yyj4569] = UniqueVolumeName(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj4569 < len(yyv4569) { - yyv4569 = yyv4569[:yyj4569] - yyc4569 = true - } else if yyj4569 == 0 && yyv4569 == nil { - yyv4569 = []UniqueVolumeName{} - yyc4569 = true - } - } - yyh4569.End() - if yyc4569 { - *v = yyv4569 - } -} - -func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4573 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4574 := &yyv4573 - yy4574.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4575 := *v - yyh4575, yyl4575 := z.DecSliceHelperStart() - var yyc4575 bool - if yyl4575 == 0 { - if yyv4575 == nil { - yyv4575 = []AttachedVolume{} - yyc4575 = true - } else if len(yyv4575) != 0 { - yyv4575 = yyv4575[:0] - yyc4575 = true - } - } else if yyl4575 > 0 { - var yyrr4575, yyrl4575 int - var yyrt4575 bool - if yyl4575 > cap(yyv4575) { - - yyrg4575 := len(yyv4575) > 0 - yyv24575 := yyv4575 - yyrl4575, yyrt4575 = z.DecInferLen(yyl4575, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4575 { - if yyrl4575 <= cap(yyv4575) { - yyv4575 = yyv4575[:yyrl4575] - } else { - yyv4575 = make([]AttachedVolume, yyrl4575) - } - } else { - yyv4575 = make([]AttachedVolume, yyrl4575) - } - yyc4575 = true - yyrr4575 = len(yyv4575) - if yyrg4575 { - copy(yyv4575, yyv24575) - } - } else if yyl4575 != len(yyv4575) { - yyv4575 = yyv4575[:yyl4575] - yyc4575 = true - } - yyj4575 := 0 - for ; yyj4575 < yyrr4575; yyj4575++ { - yyh4575.ElemContainerState(yyj4575) - if r.TryDecodeAsNil() { - yyv4575[yyj4575] = AttachedVolume{} - } else { - yyv4576 := &yyv4575[yyj4575] - yyv4576.CodecDecodeSelf(d) - } - - } - if yyrt4575 { - for ; yyj4575 < yyl4575; yyj4575++ { - yyv4575 = append(yyv4575, AttachedVolume{}) - yyh4575.ElemContainerState(yyj4575) - if r.TryDecodeAsNil() { - yyv4575[yyj4575] = AttachedVolume{} - } else { - yyv4577 := &yyv4575[yyj4575] + yyv4577 := &yyv4574[yyj4574] yyv4577.CodecDecodeSelf(d) } - } - } - - } else { - yyj4575 := 0 - for ; !r.CheckBreak(); yyj4575++ { - - if yyj4575 >= len(yyv4575) { - yyv4575 = append(yyv4575, AttachedVolume{}) // var yyz4575 AttachedVolume - yyc4575 = true - } - yyh4575.ElemContainerState(yyj4575) - if yyj4575 < len(yyv4575) { - if r.TryDecodeAsNil() { - yyv4575[yyj4575] = AttachedVolume{} - } else { - yyv4578 := &yyv4575[yyj4575] - yyv4578.CodecDecodeSelf(d) - } - } else { z.DecSwallow() } } - if yyj4575 < len(yyv4575) { - yyv4575 = yyv4575[:yyj4575] - yyc4575 = true - } else if yyj4575 == 0 && yyv4575 == nil { - yyv4575 = []AttachedVolume{} - yyc4575 = true + if yyj4574 < len(yyv4574) { + yyv4574 = yyv4574[:yyj4574] + yyc4574 = true + } else if yyj4574 == 0 && yyv4574 == nil { + yyv4574 = []ContainerPort{} + yyc4574 = true } } - yyh4575.End() - if yyc4575 { - *v = yyv4575 + yyh4574.End() + if yyc4574 { + *v = yyv4574 } } -func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceEnvVar(v []EnvVar, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4579 := range v { + for _, yyv4578 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4580 := &yyv4579 - yy4580.CodecEncodeSelf(e) + yy4579 := &yyv4578 + yy4579.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceEnvVar(v *[]EnvVar, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4581 := *v - yyh4581, yyl4581 := z.DecSliceHelperStart() - var yyc4581 bool - if yyl4581 == 0 { - if yyv4581 == nil { - yyv4581 = []PreferAvoidPodsEntry{} - yyc4581 = true - } else if len(yyv4581) != 0 { - yyv4581 = yyv4581[:0] - yyc4581 = true + yyv4580 := *v + yyh4580, yyl4580 := z.DecSliceHelperStart() + var yyc4580 bool + if yyl4580 == 0 { + if yyv4580 == nil { + yyv4580 = []EnvVar{} + yyc4580 = true + } else if len(yyv4580) != 0 { + yyv4580 = yyv4580[:0] + yyc4580 = true } - } else if yyl4581 > 0 { - var yyrr4581, yyrl4581 int - var yyrt4581 bool - if yyl4581 > cap(yyv4581) { + } else if yyl4580 > 0 { + var yyrr4580, yyrl4580 int + var yyrt4580 bool + if yyl4580 > cap(yyv4580) { - yyrg4581 := len(yyv4581) > 0 - yyv24581 := yyv4581 - yyrl4581, yyrt4581 = z.DecInferLen(yyl4581, z.DecBasicHandle().MaxInitLen, 64) - if yyrt4581 { - if yyrl4581 <= cap(yyv4581) { - yyv4581 = yyv4581[:yyrl4581] + yyrg4580 := len(yyv4580) > 0 + yyv24580 := yyv4580 + yyrl4580, yyrt4580 = z.DecInferLen(yyl4580, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4580 { + if yyrl4580 <= cap(yyv4580) { + yyv4580 = yyv4580[:yyrl4580] } else { - yyv4581 = make([]PreferAvoidPodsEntry, yyrl4581) + yyv4580 = make([]EnvVar, yyrl4580) } } else { - yyv4581 = make([]PreferAvoidPodsEntry, yyrl4581) + yyv4580 = make([]EnvVar, yyrl4580) } - yyc4581 = true - yyrr4581 = len(yyv4581) - if yyrg4581 { - copy(yyv4581, yyv24581) + yyc4580 = true + yyrr4580 = len(yyv4580) + if yyrg4580 { + copy(yyv4580, yyv24580) } - } else if yyl4581 != len(yyv4581) { - yyv4581 = yyv4581[:yyl4581] - yyc4581 = true + } else if yyl4580 != len(yyv4580) { + yyv4580 = yyv4580[:yyl4580] + yyc4580 = true } - yyj4581 := 0 - for ; yyj4581 < yyrr4581; yyj4581++ { - yyh4581.ElemContainerState(yyj4581) + yyj4580 := 0 + for ; yyj4580 < yyrr4580; yyj4580++ { + yyh4580.ElemContainerState(yyj4580) if r.TryDecodeAsNil() { - yyv4581[yyj4581] = PreferAvoidPodsEntry{} + yyv4580[yyj4580] = EnvVar{} } else { - yyv4582 := &yyv4581[yyj4581] - yyv4582.CodecDecodeSelf(d) + yyv4581 := &yyv4580[yyj4580] + yyv4581.CodecDecodeSelf(d) } } - if yyrt4581 { - for ; yyj4581 < yyl4581; yyj4581++ { - yyv4581 = append(yyv4581, PreferAvoidPodsEntry{}) - yyh4581.ElemContainerState(yyj4581) + if yyrt4580 { + for ; yyj4580 < yyl4580; yyj4580++ { + yyv4580 = append(yyv4580, EnvVar{}) + yyh4580.ElemContainerState(yyj4580) if r.TryDecodeAsNil() { - yyv4581[yyj4581] = PreferAvoidPodsEntry{} + yyv4580[yyj4580] = EnvVar{} } else { - yyv4583 := &yyv4581[yyj4581] + yyv4582 := &yyv4580[yyj4580] + yyv4582.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4580 := 0 + for ; !r.CheckBreak(); yyj4580++ { + + if yyj4580 >= len(yyv4580) { + yyv4580 = append(yyv4580, EnvVar{}) // var yyz4580 EnvVar + yyc4580 = true + } + yyh4580.ElemContainerState(yyj4580) + if yyj4580 < len(yyv4580) { + if r.TryDecodeAsNil() { + yyv4580[yyj4580] = EnvVar{} + } else { + yyv4583 := &yyv4580[yyj4580] yyv4583.CodecDecodeSelf(d) } + } else { + z.DecSwallow() + } + + } + if yyj4580 < len(yyv4580) { + yyv4580 = yyv4580[:yyj4580] + yyc4580 = true + } else if yyj4580 == 0 && yyv4580 == nil { + yyv4580 = []EnvVar{} + yyc4580 = true + } + } + yyh4580.End() + if yyc4580 { + *v = yyv4580 + } +} + +func (x codecSelfer1234) encSliceVolumeMount(v []VolumeMount, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4584 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4585 := &yyv4584 + yy4585.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceVolumeMount(v *[]VolumeMount, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4586 := *v + yyh4586, yyl4586 := z.DecSliceHelperStart() + var yyc4586 bool + if yyl4586 == 0 { + if yyv4586 == nil { + yyv4586 = []VolumeMount{} + yyc4586 = true + } else if len(yyv4586) != 0 { + yyv4586 = yyv4586[:0] + yyc4586 = true + } + } else if yyl4586 > 0 { + var yyrr4586, yyrl4586 int + var yyrt4586 bool + if yyl4586 > cap(yyv4586) { + + yyrg4586 := len(yyv4586) > 0 + yyv24586 := yyv4586 + yyrl4586, yyrt4586 = z.DecInferLen(yyl4586, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4586 { + if yyrl4586 <= cap(yyv4586) { + yyv4586 = yyv4586[:yyrl4586] + } else { + yyv4586 = make([]VolumeMount, yyrl4586) + } + } else { + yyv4586 = make([]VolumeMount, yyrl4586) + } + yyc4586 = true + yyrr4586 = len(yyv4586) + if yyrg4586 { + copy(yyv4586, yyv24586) + } + } else if yyl4586 != len(yyv4586) { + yyv4586 = yyv4586[:yyl4586] + yyc4586 = true + } + yyj4586 := 0 + for ; yyj4586 < yyrr4586; yyj4586++ { + yyh4586.ElemContainerState(yyj4586) + if r.TryDecodeAsNil() { + yyv4586[yyj4586] = VolumeMount{} + } else { + yyv4587 := &yyv4586[yyj4586] + yyv4587.CodecDecodeSelf(d) + } + + } + if yyrt4586 { + for ; yyj4586 < yyl4586; yyj4586++ { + yyv4586 = append(yyv4586, VolumeMount{}) + yyh4586.ElemContainerState(yyj4586) + if r.TryDecodeAsNil() { + yyv4586[yyj4586] = VolumeMount{} + } else { + yyv4588 := &yyv4586[yyj4586] + yyv4588.CodecDecodeSelf(d) + } + } } } else { - yyj4581 := 0 - for ; !r.CheckBreak(); yyj4581++ { + yyj4586 := 0 + for ; !r.CheckBreak(); yyj4586++ { - if yyj4581 >= len(yyv4581) { - yyv4581 = append(yyv4581, PreferAvoidPodsEntry{}) // var yyz4581 PreferAvoidPodsEntry - yyc4581 = true + if yyj4586 >= len(yyv4586) { + yyv4586 = append(yyv4586, VolumeMount{}) // var yyz4586 VolumeMount + yyc4586 = true } - yyh4581.ElemContainerState(yyj4581) - if yyj4581 < len(yyv4581) { + yyh4586.ElemContainerState(yyj4586) + if yyj4586 < len(yyv4586) { if r.TryDecodeAsNil() { - yyv4581[yyj4581] = PreferAvoidPodsEntry{} + yyv4586[yyj4586] = VolumeMount{} } else { - yyv4584 := &yyv4581[yyj4581] - yyv4584.CodecDecodeSelf(d) + yyv4589 := &yyv4586[yyj4586] + yyv4589.CodecDecodeSelf(d) } } else { @@ -58623,336 +57432,347 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, } } - if yyj4581 < len(yyv4581) { - yyv4581 = yyv4581[:yyj4581] - yyc4581 = true - } else if yyj4581 == 0 && yyv4581 == nil { - yyv4581 = []PreferAvoidPodsEntry{} - yyc4581 = true + if yyj4586 < len(yyv4586) { + yyv4586 = yyv4586[:yyj4586] + yyc4586 = true + } else if yyj4586 == 0 && yyv4586 == nil { + yyv4586 = []VolumeMount{} + yyc4586 = true } } - yyh4581.End() - if yyc4581 { - *v = yyv4581 + yyh4586.End() + if yyc4586 { + *v = yyv4586 } } -func (x codecSelfer1234) encResourceList(v ResourceList, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk4585, yyv4585 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - yyk4585.CodecEncodeSelf(e) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4586 := &yyv4585 - yym4587 := z.EncBinary() - _ = yym4587 - if false { - } else if z.HasExtensions() && z.EncExt(yy4586) { - } else if !yym4587 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4586) - } else { - z.EncFallback(yy4586) - } - } - z.EncSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4588 := *v - yyl4588 := r.ReadMapStart() - yybh4588 := z.DecBasicHandle() - if yyv4588 == nil { - yyrl4588, _ := z.DecInferLen(yyl4588, yybh4588.MaxInitLen, 72) - yyv4588 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4588) - *v = yyv4588 - } - var yymk4588 ResourceName - var yymv4588 pkg3_resource.Quantity - var yymg4588 bool - if yybh4588.MapValueReset { - yymg4588 = true - } - if yyl4588 > 0 { - for yyj4588 := 0; yyj4588 < yyl4588; yyj4588++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk4588 = "" - } else { - yymk4588 = ResourceName(r.DecodeString()) - } - - if yymg4588 { - yymv4588 = yyv4588[yymk4588] - } else { - yymv4588 = pkg3_resource.Quantity{} - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv4588 = pkg3_resource.Quantity{} - } else { - yyv4590 := &yymv4588 - yym4591 := z.DecBinary() - _ = yym4591 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4590) { - } else if !yym4591 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4590) - } else { - z.DecFallback(yyv4590, false) - } - } - - if yyv4588 != nil { - yyv4588[yymk4588] = yymv4588 - } - } - } else if yyl4588 < 0 { - for yyj4588 := 0; !r.CheckBreak(); yyj4588++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk4588 = "" - } else { - yymk4588 = ResourceName(r.DecodeString()) - } - - if yymg4588 { - yymv4588 = yyv4588[yymk4588] - } else { - yymv4588 = pkg3_resource.Quantity{} - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv4588 = pkg3_resource.Quantity{} - } else { - yyv4593 := &yymv4588 - yym4594 := z.DecBinary() - _ = yym4594 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4593) { - } else if !yym4594 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4593) - } else { - z.DecFallback(yyv4593, false) - } - } - - if yyv4588 != nil { - yyv4588[yymk4588] = yymv4588 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x codecSelfer1234) encSliceNode(v []Node, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePod(v []Pod, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4595 := range v { + for _, yyv4590 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4596 := &yyv4595 - yy4596.CodecEncodeSelf(e) + yy4591 := &yyv4590 + yy4591.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4597 := *v - yyh4597, yyl4597 := z.DecSliceHelperStart() - var yyc4597 bool - if yyl4597 == 0 { - if yyv4597 == nil { - yyv4597 = []Node{} - yyc4597 = true - } else if len(yyv4597) != 0 { - yyv4597 = yyv4597[:0] - yyc4597 = true + yyv4592 := *v + yyh4592, yyl4592 := z.DecSliceHelperStart() + var yyc4592 bool + if yyl4592 == 0 { + if yyv4592 == nil { + yyv4592 = []Pod{} + yyc4592 = true + } else if len(yyv4592) != 0 { + yyv4592 = yyv4592[:0] + yyc4592 = true } - } else if yyl4597 > 0 { - var yyrr4597, yyrl4597 int - var yyrt4597 bool - if yyl4597 > cap(yyv4597) { + } else if yyl4592 > 0 { + var yyrr4592, yyrl4592 int + var yyrt4592 bool + if yyl4592 > cap(yyv4592) { - yyrg4597 := len(yyv4597) > 0 - yyv24597 := yyv4597 - yyrl4597, yyrt4597 = z.DecInferLen(yyl4597, z.DecBasicHandle().MaxInitLen, 616) - if yyrt4597 { - if yyrl4597 <= cap(yyv4597) { - yyv4597 = yyv4597[:yyrl4597] + yyrg4592 := len(yyv4592) > 0 + yyv24592 := yyv4592 + yyrl4592, yyrt4592 = z.DecInferLen(yyl4592, z.DecBasicHandle().MaxInitLen, 640) + if yyrt4592 { + if yyrl4592 <= cap(yyv4592) { + yyv4592 = yyv4592[:yyrl4592] } else { - yyv4597 = make([]Node, yyrl4597) + yyv4592 = make([]Pod, yyrl4592) } } else { - yyv4597 = make([]Node, yyrl4597) + yyv4592 = make([]Pod, yyrl4592) } - yyc4597 = true - yyrr4597 = len(yyv4597) - if yyrg4597 { - copy(yyv4597, yyv24597) + yyc4592 = true + yyrr4592 = len(yyv4592) + if yyrg4592 { + copy(yyv4592, yyv24592) } - } else if yyl4597 != len(yyv4597) { - yyv4597 = yyv4597[:yyl4597] - yyc4597 = true + } else if yyl4592 != len(yyv4592) { + yyv4592 = yyv4592[:yyl4592] + yyc4592 = true } - yyj4597 := 0 - for ; yyj4597 < yyrr4597; yyj4597++ { - yyh4597.ElemContainerState(yyj4597) + yyj4592 := 0 + for ; yyj4592 < yyrr4592; yyj4592++ { + yyh4592.ElemContainerState(yyj4592) if r.TryDecodeAsNil() { - yyv4597[yyj4597] = Node{} + yyv4592[yyj4592] = Pod{} } else { - yyv4598 := &yyv4597[yyj4597] - yyv4598.CodecDecodeSelf(d) + yyv4593 := &yyv4592[yyj4592] + yyv4593.CodecDecodeSelf(d) } } - if yyrt4597 { - for ; yyj4597 < yyl4597; yyj4597++ { - yyv4597 = append(yyv4597, Node{}) - yyh4597.ElemContainerState(yyj4597) + if yyrt4592 { + for ; yyj4592 < yyl4592; yyj4592++ { + yyv4592 = append(yyv4592, Pod{}) + yyh4592.ElemContainerState(yyj4592) if r.TryDecodeAsNil() { - yyv4597[yyj4597] = Node{} + yyv4592[yyj4592] = Pod{} } else { - yyv4599 := &yyv4597[yyj4597] - yyv4599.CodecDecodeSelf(d) + yyv4594 := &yyv4592[yyj4592] + yyv4594.CodecDecodeSelf(d) } } } } else { - yyj4597 := 0 - for ; !r.CheckBreak(); yyj4597++ { + yyj4592 := 0 + for ; !r.CheckBreak(); yyj4592++ { - if yyj4597 >= len(yyv4597) { - yyv4597 = append(yyv4597, Node{}) // var yyz4597 Node - yyc4597 = true + if yyj4592 >= len(yyv4592) { + yyv4592 = append(yyv4592, Pod{}) // var yyz4592 Pod + yyc4592 = true } - yyh4597.ElemContainerState(yyj4597) - if yyj4597 < len(yyv4597) { + yyh4592.ElemContainerState(yyj4592) + if yyj4592 < len(yyv4592) { if r.TryDecodeAsNil() { - yyv4597[yyj4597] = Node{} + yyv4592[yyj4592] = Pod{} } else { - yyv4600 := &yyv4597[yyj4597] + yyv4595 := &yyv4592[yyj4592] + yyv4595.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4592 < len(yyv4592) { + yyv4592 = yyv4592[:yyj4592] + yyc4592 = true + } else if yyj4592 == 0 && yyv4592 == nil { + yyv4592 = []Pod{} + yyc4592 = true + } + } + yyh4592.End() + if yyc4592 { + *v = yyv4592 + } +} + +func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4596 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4597 := &yyv4596 + yy4597.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4598 := *v + yyh4598, yyl4598 := z.DecSliceHelperStart() + var yyc4598 bool + if yyl4598 == 0 { + if yyv4598 == nil { + yyv4598 = []NodeSelectorTerm{} + yyc4598 = true + } else if len(yyv4598) != 0 { + yyv4598 = yyv4598[:0] + yyc4598 = true + } + } else if yyl4598 > 0 { + var yyrr4598, yyrl4598 int + var yyrt4598 bool + if yyl4598 > cap(yyv4598) { + + yyrg4598 := len(yyv4598) > 0 + yyv24598 := yyv4598 + yyrl4598, yyrt4598 = z.DecInferLen(yyl4598, z.DecBasicHandle().MaxInitLen, 24) + if yyrt4598 { + if yyrl4598 <= cap(yyv4598) { + yyv4598 = yyv4598[:yyrl4598] + } else { + yyv4598 = make([]NodeSelectorTerm, yyrl4598) + } + } else { + yyv4598 = make([]NodeSelectorTerm, yyrl4598) + } + yyc4598 = true + yyrr4598 = len(yyv4598) + if yyrg4598 { + copy(yyv4598, yyv24598) + } + } else if yyl4598 != len(yyv4598) { + yyv4598 = yyv4598[:yyl4598] + yyc4598 = true + } + yyj4598 := 0 + for ; yyj4598 < yyrr4598; yyj4598++ { + yyh4598.ElemContainerState(yyj4598) + if r.TryDecodeAsNil() { + yyv4598[yyj4598] = NodeSelectorTerm{} + } else { + yyv4599 := &yyv4598[yyj4598] + yyv4599.CodecDecodeSelf(d) + } + + } + if yyrt4598 { + for ; yyj4598 < yyl4598; yyj4598++ { + yyv4598 = append(yyv4598, NodeSelectorTerm{}) + yyh4598.ElemContainerState(yyj4598) + if r.TryDecodeAsNil() { + yyv4598[yyj4598] = NodeSelectorTerm{} + } else { + yyv4600 := &yyv4598[yyj4598] yyv4600.CodecDecodeSelf(d) } + } + } + + } else { + yyj4598 := 0 + for ; !r.CheckBreak(); yyj4598++ { + + if yyj4598 >= len(yyv4598) { + yyv4598 = append(yyv4598, NodeSelectorTerm{}) // var yyz4598 NodeSelectorTerm + yyc4598 = true + } + yyh4598.ElemContainerState(yyj4598) + if yyj4598 < len(yyv4598) { + if r.TryDecodeAsNil() { + yyv4598[yyj4598] = NodeSelectorTerm{} + } else { + yyv4601 := &yyv4598[yyj4598] + yyv4601.CodecDecodeSelf(d) + } + } else { z.DecSwallow() } } - if yyj4597 < len(yyv4597) { - yyv4597 = yyv4597[:yyj4597] - yyc4597 = true - } else if yyj4597 == 0 && yyv4597 == nil { - yyv4597 = []Node{} - yyc4597 = true + if yyj4598 < len(yyv4598) { + yyv4598 = yyv4598[:yyj4598] + yyc4598 = true + } else if yyj4598 == 0 && yyv4598 == nil { + yyv4598 = []NodeSelectorTerm{} + yyc4598 = true } } - yyh4597.End() - if yyc4597 { - *v = yyv4597 + yyh4598.End() + if yyc4598 { + *v = yyv4598 } } -func (x codecSelfer1234) encSliceFinalizerName(v []FinalizerName, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceNodeSelectorRequirement(v []NodeSelectorRequirement, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4601 := range v { + for _, yyv4602 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4601.CodecEncodeSelf(e) + yy4603 := &yyv4602 + yy4603.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequirement, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4602 := *v - yyh4602, yyl4602 := z.DecSliceHelperStart() - var yyc4602 bool - if yyl4602 == 0 { - if yyv4602 == nil { - yyv4602 = []FinalizerName{} - yyc4602 = true - } else if len(yyv4602) != 0 { - yyv4602 = yyv4602[:0] - yyc4602 = true + yyv4604 := *v + yyh4604, yyl4604 := z.DecSliceHelperStart() + var yyc4604 bool + if yyl4604 == 0 { + if yyv4604 == nil { + yyv4604 = []NodeSelectorRequirement{} + yyc4604 = true + } else if len(yyv4604) != 0 { + yyv4604 = yyv4604[:0] + yyc4604 = true } - } else if yyl4602 > 0 { - var yyrr4602, yyrl4602 int - var yyrt4602 bool - if yyl4602 > cap(yyv4602) { + } else if yyl4604 > 0 { + var yyrr4604, yyrl4604 int + var yyrt4604 bool + if yyl4604 > cap(yyv4604) { - yyrl4602, yyrt4602 = z.DecInferLen(yyl4602, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4602 { - if yyrl4602 <= cap(yyv4602) { - yyv4602 = yyv4602[:yyrl4602] + yyrg4604 := len(yyv4604) > 0 + yyv24604 := yyv4604 + yyrl4604, yyrt4604 = z.DecInferLen(yyl4604, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4604 { + if yyrl4604 <= cap(yyv4604) { + yyv4604 = yyv4604[:yyrl4604] } else { - yyv4602 = make([]FinalizerName, yyrl4602) + yyv4604 = make([]NodeSelectorRequirement, yyrl4604) } } else { - yyv4602 = make([]FinalizerName, yyrl4602) + yyv4604 = make([]NodeSelectorRequirement, yyrl4604) } - yyc4602 = true - yyrr4602 = len(yyv4602) - } else if yyl4602 != len(yyv4602) { - yyv4602 = yyv4602[:yyl4602] - yyc4602 = true + yyc4604 = true + yyrr4604 = len(yyv4604) + if yyrg4604 { + copy(yyv4604, yyv24604) + } + } else if yyl4604 != len(yyv4604) { + yyv4604 = yyv4604[:yyl4604] + yyc4604 = true } - yyj4602 := 0 - for ; yyj4602 < yyrr4602; yyj4602++ { - yyh4602.ElemContainerState(yyj4602) + yyj4604 := 0 + for ; yyj4604 < yyrr4604; yyj4604++ { + yyh4604.ElemContainerState(yyj4604) if r.TryDecodeAsNil() { - yyv4602[yyj4602] = "" + yyv4604[yyj4604] = NodeSelectorRequirement{} } else { - yyv4602[yyj4602] = FinalizerName(r.DecodeString()) + yyv4605 := &yyv4604[yyj4604] + yyv4605.CodecDecodeSelf(d) } } - if yyrt4602 { - for ; yyj4602 < yyl4602; yyj4602++ { - yyv4602 = append(yyv4602, "") - yyh4602.ElemContainerState(yyj4602) + if yyrt4604 { + for ; yyj4604 < yyl4604; yyj4604++ { + yyv4604 = append(yyv4604, NodeSelectorRequirement{}) + yyh4604.ElemContainerState(yyj4604) if r.TryDecodeAsNil() { - yyv4602[yyj4602] = "" + yyv4604[yyj4604] = NodeSelectorRequirement{} } else { - yyv4602[yyj4602] = FinalizerName(r.DecodeString()) + yyv4606 := &yyv4604[yyj4604] + yyv4606.CodecDecodeSelf(d) } } } } else { - yyj4602 := 0 - for ; !r.CheckBreak(); yyj4602++ { + yyj4604 := 0 + for ; !r.CheckBreak(); yyj4604++ { - if yyj4602 >= len(yyv4602) { - yyv4602 = append(yyv4602, "") // var yyz4602 FinalizerName - yyc4602 = true + if yyj4604 >= len(yyv4604) { + yyv4604 = append(yyv4604, NodeSelectorRequirement{}) // var yyz4604 NodeSelectorRequirement + yyc4604 = true } - yyh4602.ElemContainerState(yyj4602) - if yyj4602 < len(yyv4602) { + yyh4604.ElemContainerState(yyj4604) + if yyj4604 < len(yyv4604) { if r.TryDecodeAsNil() { - yyv4602[yyj4602] = "" + yyv4604[yyj4604] = NodeSelectorRequirement{} } else { - yyv4602[yyj4602] = FinalizerName(r.DecodeString()) + yyv4607 := &yyv4604[yyj4604] + yyv4607.CodecDecodeSelf(d) } } else { @@ -58960,115 +57780,115 @@ func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978. } } - if yyj4602 < len(yyv4602) { - yyv4602 = yyv4602[:yyj4602] - yyc4602 = true - } else if yyj4602 == 0 && yyv4602 == nil { - yyv4602 = []FinalizerName{} - yyc4602 = true + if yyj4604 < len(yyv4604) { + yyv4604 = yyv4604[:yyj4604] + yyc4604 = true + } else if yyj4604 == 0 && yyv4604 == nil { + yyv4604 = []NodeSelectorRequirement{} + yyc4604 = true } } - yyh4602.End() - if yyc4602 { - *v = yyv4602 + yyh4604.End() + if yyc4604 { + *v = yyv4604 } } -func (x codecSelfer1234) encSliceNamespace(v []Namespace, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePodAffinityTerm(v []PodAffinityTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4606 := range v { + for _, yyv4608 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4607 := &yyv4606 - yy4607.CodecEncodeSelf(e) + yy4609 := &yyv4608 + yy4609.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4608 := *v - yyh4608, yyl4608 := z.DecSliceHelperStart() - var yyc4608 bool - if yyl4608 == 0 { - if yyv4608 == nil { - yyv4608 = []Namespace{} - yyc4608 = true - } else if len(yyv4608) != 0 { - yyv4608 = yyv4608[:0] - yyc4608 = true + yyv4610 := *v + yyh4610, yyl4610 := z.DecSliceHelperStart() + var yyc4610 bool + if yyl4610 == 0 { + if yyv4610 == nil { + yyv4610 = []PodAffinityTerm{} + yyc4610 = true + } else if len(yyv4610) != 0 { + yyv4610 = yyv4610[:0] + yyc4610 = true } - } else if yyl4608 > 0 { - var yyrr4608, yyrl4608 int - var yyrt4608 bool - if yyl4608 > cap(yyv4608) { + } else if yyl4610 > 0 { + var yyrr4610, yyrl4610 int + var yyrt4610 bool + if yyl4610 > cap(yyv4610) { - yyrg4608 := len(yyv4608) > 0 - yyv24608 := yyv4608 - yyrl4608, yyrt4608 = z.DecInferLen(yyl4608, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4608 { - if yyrl4608 <= cap(yyv4608) { - yyv4608 = yyv4608[:yyrl4608] + yyrg4610 := len(yyv4610) > 0 + yyv24610 := yyv4610 + yyrl4610, yyrt4610 = z.DecInferLen(yyl4610, z.DecBasicHandle().MaxInitLen, 48) + if yyrt4610 { + if yyrl4610 <= cap(yyv4610) { + yyv4610 = yyv4610[:yyrl4610] } else { - yyv4608 = make([]Namespace, yyrl4608) + yyv4610 = make([]PodAffinityTerm, yyrl4610) } } else { - yyv4608 = make([]Namespace, yyrl4608) + yyv4610 = make([]PodAffinityTerm, yyrl4610) } - yyc4608 = true - yyrr4608 = len(yyv4608) - if yyrg4608 { - copy(yyv4608, yyv24608) + yyc4610 = true + yyrr4610 = len(yyv4610) + if yyrg4610 { + copy(yyv4610, yyv24610) } - } else if yyl4608 != len(yyv4608) { - yyv4608 = yyv4608[:yyl4608] - yyc4608 = true + } else if yyl4610 != len(yyv4610) { + yyv4610 = yyv4610[:yyl4610] + yyc4610 = true } - yyj4608 := 0 - for ; yyj4608 < yyrr4608; yyj4608++ { - yyh4608.ElemContainerState(yyj4608) + yyj4610 := 0 + for ; yyj4610 < yyrr4610; yyj4610++ { + yyh4610.ElemContainerState(yyj4610) if r.TryDecodeAsNil() { - yyv4608[yyj4608] = Namespace{} + yyv4610[yyj4610] = PodAffinityTerm{} } else { - yyv4609 := &yyv4608[yyj4608] - yyv4609.CodecDecodeSelf(d) + yyv4611 := &yyv4610[yyj4610] + yyv4611.CodecDecodeSelf(d) } } - if yyrt4608 { - for ; yyj4608 < yyl4608; yyj4608++ { - yyv4608 = append(yyv4608, Namespace{}) - yyh4608.ElemContainerState(yyj4608) + if yyrt4610 { + for ; yyj4610 < yyl4610; yyj4610++ { + yyv4610 = append(yyv4610, PodAffinityTerm{}) + yyh4610.ElemContainerState(yyj4610) if r.TryDecodeAsNil() { - yyv4608[yyj4608] = Namespace{} + yyv4610[yyj4610] = PodAffinityTerm{} } else { - yyv4610 := &yyv4608[yyj4608] - yyv4610.CodecDecodeSelf(d) + yyv4612 := &yyv4610[yyj4610] + yyv4612.CodecDecodeSelf(d) } } } } else { - yyj4608 := 0 - for ; !r.CheckBreak(); yyj4608++ { + yyj4610 := 0 + for ; !r.CheckBreak(); yyj4610++ { - if yyj4608 >= len(yyv4608) { - yyv4608 = append(yyv4608, Namespace{}) // var yyz4608 Namespace - yyc4608 = true + if yyj4610 >= len(yyv4610) { + yyv4610 = append(yyv4610, PodAffinityTerm{}) // var yyz4610 PodAffinityTerm + yyc4610 = true } - yyh4608.ElemContainerState(yyj4608) - if yyj4608 < len(yyv4608) { + yyh4610.ElemContainerState(yyj4610) + if yyj4610 < len(yyv4610) { if r.TryDecodeAsNil() { - yyv4608[yyj4608] = Namespace{} + yyv4610[yyj4610] = PodAffinityTerm{} } else { - yyv4611 := &yyv4608[yyj4608] - yyv4611.CodecDecodeSelf(d) + yyv4613 := &yyv4610[yyj4610] + yyv4613.CodecDecodeSelf(d) } } else { @@ -59076,115 +57896,115 @@ func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) } } - if yyj4608 < len(yyv4608) { - yyv4608 = yyv4608[:yyj4608] - yyc4608 = true - } else if yyj4608 == 0 && yyv4608 == nil { - yyv4608 = []Namespace{} - yyc4608 = true + if yyj4610 < len(yyv4610) { + yyv4610 = yyv4610[:yyj4610] + yyc4610 = true + } else if yyj4610 == 0 && yyv4610 == nil { + yyv4610 = []PodAffinityTerm{} + yyc4610 = true } } - yyh4608.End() - if yyc4608 { - *v = yyv4608 + yyh4610.End() + if yyc4610 { + *v = yyv4610 } } -func (x codecSelfer1234) encSliceEvent(v []Event, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceWeightedPodAffinityTerm(v []WeightedPodAffinityTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4612 := range v { + for _, yyv4614 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4613 := &yyv4612 - yy4613.CodecEncodeSelf(e) + yy4615 := &yyv4614 + yy4615.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinityTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4614 := *v - yyh4614, yyl4614 := z.DecSliceHelperStart() - var yyc4614 bool - if yyl4614 == 0 { - if yyv4614 == nil { - yyv4614 = []Event{} - yyc4614 = true - } else if len(yyv4614) != 0 { - yyv4614 = yyv4614[:0] - yyc4614 = true + yyv4616 := *v + yyh4616, yyl4616 := z.DecSliceHelperStart() + var yyc4616 bool + if yyl4616 == 0 { + if yyv4616 == nil { + yyv4616 = []WeightedPodAffinityTerm{} + yyc4616 = true + } else if len(yyv4616) != 0 { + yyv4616 = yyv4616[:0] + yyc4616 = true } - } else if yyl4614 > 0 { - var yyrr4614, yyrl4614 int - var yyrt4614 bool - if yyl4614 > cap(yyv4614) { + } else if yyl4616 > 0 { + var yyrr4616, yyrl4616 int + var yyrt4616 bool + if yyl4616 > cap(yyv4616) { - yyrg4614 := len(yyv4614) > 0 - yyv24614 := yyv4614 - yyrl4614, yyrt4614 = z.DecInferLen(yyl4614, z.DecBasicHandle().MaxInitLen, 488) - if yyrt4614 { - if yyrl4614 <= cap(yyv4614) { - yyv4614 = yyv4614[:yyrl4614] + yyrg4616 := len(yyv4616) > 0 + yyv24616 := yyv4616 + yyrl4616, yyrt4616 = z.DecInferLen(yyl4616, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4616 { + if yyrl4616 <= cap(yyv4616) { + yyv4616 = yyv4616[:yyrl4616] } else { - yyv4614 = make([]Event, yyrl4614) + yyv4616 = make([]WeightedPodAffinityTerm, yyrl4616) } } else { - yyv4614 = make([]Event, yyrl4614) + yyv4616 = make([]WeightedPodAffinityTerm, yyrl4616) } - yyc4614 = true - yyrr4614 = len(yyv4614) - if yyrg4614 { - copy(yyv4614, yyv24614) + yyc4616 = true + yyrr4616 = len(yyv4616) + if yyrg4616 { + copy(yyv4616, yyv24616) } - } else if yyl4614 != len(yyv4614) { - yyv4614 = yyv4614[:yyl4614] - yyc4614 = true + } else if yyl4616 != len(yyv4616) { + yyv4616 = yyv4616[:yyl4616] + yyc4616 = true } - yyj4614 := 0 - for ; yyj4614 < yyrr4614; yyj4614++ { - yyh4614.ElemContainerState(yyj4614) + yyj4616 := 0 + for ; yyj4616 < yyrr4616; yyj4616++ { + yyh4616.ElemContainerState(yyj4616) if r.TryDecodeAsNil() { - yyv4614[yyj4614] = Event{} + yyv4616[yyj4616] = WeightedPodAffinityTerm{} } else { - yyv4615 := &yyv4614[yyj4614] - yyv4615.CodecDecodeSelf(d) + yyv4617 := &yyv4616[yyj4616] + yyv4617.CodecDecodeSelf(d) } } - if yyrt4614 { - for ; yyj4614 < yyl4614; yyj4614++ { - yyv4614 = append(yyv4614, Event{}) - yyh4614.ElemContainerState(yyj4614) + if yyrt4616 { + for ; yyj4616 < yyl4616; yyj4616++ { + yyv4616 = append(yyv4616, WeightedPodAffinityTerm{}) + yyh4616.ElemContainerState(yyj4616) if r.TryDecodeAsNil() { - yyv4614[yyj4614] = Event{} + yyv4616[yyj4616] = WeightedPodAffinityTerm{} } else { - yyv4616 := &yyv4614[yyj4614] - yyv4616.CodecDecodeSelf(d) + yyv4618 := &yyv4616[yyj4616] + yyv4618.CodecDecodeSelf(d) } } } } else { - yyj4614 := 0 - for ; !r.CheckBreak(); yyj4614++ { + yyj4616 := 0 + for ; !r.CheckBreak(); yyj4616++ { - if yyj4614 >= len(yyv4614) { - yyv4614 = append(yyv4614, Event{}) // var yyz4614 Event - yyc4614 = true + if yyj4616 >= len(yyv4616) { + yyv4616 = append(yyv4616, WeightedPodAffinityTerm{}) // var yyz4616 WeightedPodAffinityTerm + yyc4616 = true } - yyh4614.ElemContainerState(yyj4614) - if yyj4614 < len(yyv4614) { + yyh4616.ElemContainerState(yyj4616) + if yyj4616 < len(yyv4616) { if r.TryDecodeAsNil() { - yyv4614[yyj4614] = Event{} + yyv4616[yyj4616] = WeightedPodAffinityTerm{} } else { - yyv4617 := &yyv4614[yyj4614] - yyv4617.CodecDecodeSelf(d) + yyv4619 := &yyv4616[yyj4616] + yyv4619.CodecDecodeSelf(d) } } else { @@ -59192,142 +58012,115 @@ func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { } } - if yyj4614 < len(yyv4614) { - yyv4614 = yyv4614[:yyj4614] - yyc4614 = true - } else if yyj4614 == 0 && yyv4614 == nil { - yyv4614 = []Event{} - yyc4614 = true + if yyj4616 < len(yyv4616) { + yyv4616 = yyv4616[:yyj4616] + yyc4616 = true + } else if yyj4616 == 0 && yyv4616 == nil { + yyv4616 = []WeightedPodAffinityTerm{} + yyc4616 = true } } - yyh4614.End() - if yyc4614 { - *v = yyv4614 + yyh4616.End() + if yyc4616 { + *v = yyv4616 } } -func (x codecSelfer1234) encSliceruntime_Object(v []pkg7_runtime.Object, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredSchedulingTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4618 := range v { + for _, yyv4620 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyv4618 == nil { - r.EncodeNil() - } else { - yym4619 := z.EncBinary() - _ = yym4619 - if false { - } else if z.HasExtensions() && z.EncExt(yyv4618) { - } else { - z.EncFallback(yyv4618) - } - } + yy4621 := &yyv4620 + yy4621.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg7_runtime.Object, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulingTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4620 := *v - yyh4620, yyl4620 := z.DecSliceHelperStart() - var yyc4620 bool - if yyl4620 == 0 { - if yyv4620 == nil { - yyv4620 = []pkg7_runtime.Object{} - yyc4620 = true - } else if len(yyv4620) != 0 { - yyv4620 = yyv4620[:0] - yyc4620 = true + yyv4622 := *v + yyh4622, yyl4622 := z.DecSliceHelperStart() + var yyc4622 bool + if yyl4622 == 0 { + if yyv4622 == nil { + yyv4622 = []PreferredSchedulingTerm{} + yyc4622 = true + } else if len(yyv4622) != 0 { + yyv4622 = yyv4622[:0] + yyc4622 = true } - } else if yyl4620 > 0 { - var yyrr4620, yyrl4620 int - var yyrt4620 bool - if yyl4620 > cap(yyv4620) { + } else if yyl4622 > 0 { + var yyrr4622, yyrl4622 int + var yyrt4622 bool + if yyl4622 > cap(yyv4622) { - yyrg4620 := len(yyv4620) > 0 - yyv24620 := yyv4620 - yyrl4620, yyrt4620 = z.DecInferLen(yyl4620, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4620 { - if yyrl4620 <= cap(yyv4620) { - yyv4620 = yyv4620[:yyrl4620] + yyrg4622 := len(yyv4622) > 0 + yyv24622 := yyv4622 + yyrl4622, yyrt4622 = z.DecInferLen(yyl4622, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4622 { + if yyrl4622 <= cap(yyv4622) { + yyv4622 = yyv4622[:yyrl4622] } else { - yyv4620 = make([]pkg7_runtime.Object, yyrl4620) + yyv4622 = make([]PreferredSchedulingTerm, yyrl4622) } } else { - yyv4620 = make([]pkg7_runtime.Object, yyrl4620) + yyv4622 = make([]PreferredSchedulingTerm, yyrl4622) } - yyc4620 = true - yyrr4620 = len(yyv4620) - if yyrg4620 { - copy(yyv4620, yyv24620) + yyc4622 = true + yyrr4622 = len(yyv4622) + if yyrg4622 { + copy(yyv4622, yyv24622) } - } else if yyl4620 != len(yyv4620) { - yyv4620 = yyv4620[:yyl4620] - yyc4620 = true + } else if yyl4622 != len(yyv4622) { + yyv4622 = yyv4622[:yyl4622] + yyc4622 = true } - yyj4620 := 0 - for ; yyj4620 < yyrr4620; yyj4620++ { - yyh4620.ElemContainerState(yyj4620) + yyj4622 := 0 + for ; yyj4622 < yyrr4622; yyj4622++ { + yyh4622.ElemContainerState(yyj4622) if r.TryDecodeAsNil() { - yyv4620[yyj4620] = nil + yyv4622[yyj4622] = PreferredSchedulingTerm{} } else { - yyv4621 := &yyv4620[yyj4620] - yym4622 := z.DecBinary() - _ = yym4622 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4621) { - } else { - z.DecFallback(yyv4621, true) - } + yyv4623 := &yyv4622[yyj4622] + yyv4623.CodecDecodeSelf(d) } } - if yyrt4620 { - for ; yyj4620 < yyl4620; yyj4620++ { - yyv4620 = append(yyv4620, nil) - yyh4620.ElemContainerState(yyj4620) + if yyrt4622 { + for ; yyj4622 < yyl4622; yyj4622++ { + yyv4622 = append(yyv4622, PreferredSchedulingTerm{}) + yyh4622.ElemContainerState(yyj4622) if r.TryDecodeAsNil() { - yyv4620[yyj4620] = nil + yyv4622[yyj4622] = PreferredSchedulingTerm{} } else { - yyv4623 := &yyv4620[yyj4620] - yym4624 := z.DecBinary() - _ = yym4624 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4623) { - } else { - z.DecFallback(yyv4623, true) - } + yyv4624 := &yyv4622[yyj4622] + yyv4624.CodecDecodeSelf(d) } } } } else { - yyj4620 := 0 - for ; !r.CheckBreak(); yyj4620++ { + yyj4622 := 0 + for ; !r.CheckBreak(); yyj4622++ { - if yyj4620 >= len(yyv4620) { - yyv4620 = append(yyv4620, nil) // var yyz4620 pkg7_runtime.Object - yyc4620 = true + if yyj4622 >= len(yyv4622) { + yyv4622 = append(yyv4622, PreferredSchedulingTerm{}) // var yyz4622 PreferredSchedulingTerm + yyc4622 = true } - yyh4620.ElemContainerState(yyj4620) - if yyj4620 < len(yyv4620) { + yyh4622.ElemContainerState(yyj4622) + if yyj4622 < len(yyv4622) { if r.TryDecodeAsNil() { - yyv4620[yyj4620] = nil + yyv4622[yyj4622] = PreferredSchedulingTerm{} } else { - yyv4625 := &yyv4620[yyj4620] - yym4626 := z.DecBinary() - _ = yym4626 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4625) { - } else { - z.DecFallback(yyv4625, true) - } + yyv4625 := &yyv4622[yyj4622] + yyv4625.CodecDecodeSelf(d) } } else { @@ -59335,231 +58128,231 @@ func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg7_runtime.Object, d *cod } } - if yyj4620 < len(yyv4620) { - yyv4620 = yyv4620[:yyj4620] - yyc4620 = true - } else if yyj4620 == 0 && yyv4620 == nil { - yyv4620 = []pkg7_runtime.Object{} - yyc4620 = true + if yyj4622 < len(yyv4622) { + yyv4622 = yyv4622[:yyj4622] + yyc4622 = true + } else if yyj4622 == 0 && yyv4622 == nil { + yyv4622 = []PreferredSchedulingTerm{} + yyc4622 = true } } - yyh4620.End() - if yyc4620 { - *v = yyv4620 + yyh4622.End() + if yyc4622 { + *v = yyv4622 } } -func (x codecSelfer1234) encSliceLimitRangeItem(v []LimitRangeItem, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceVolume(v []Volume, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4627 := range v { + for _, yyv4626 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4628 := &yyv4627 - yy4628.CodecEncodeSelf(e) + yy4627 := &yyv4626 + yy4627.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4629 := *v - yyh4629, yyl4629 := z.DecSliceHelperStart() - var yyc4629 bool - if yyl4629 == 0 { - if yyv4629 == nil { - yyv4629 = []LimitRangeItem{} - yyc4629 = true - } else if len(yyv4629) != 0 { - yyv4629 = yyv4629[:0] - yyc4629 = true + yyv4628 := *v + yyh4628, yyl4628 := z.DecSliceHelperStart() + var yyc4628 bool + if yyl4628 == 0 { + if yyv4628 == nil { + yyv4628 = []Volume{} + yyc4628 = true + } else if len(yyv4628) != 0 { + yyv4628 = yyv4628[:0] + yyc4628 = true } - } else if yyl4629 > 0 { - var yyrr4629, yyrl4629 int - var yyrt4629 bool - if yyl4629 > cap(yyv4629) { + } else if yyl4628 > 0 { + var yyrr4628, yyrl4628 int + var yyrt4628 bool + if yyl4628 > cap(yyv4628) { - yyrg4629 := len(yyv4629) > 0 - yyv24629 := yyv4629 - yyrl4629, yyrt4629 = z.DecInferLen(yyl4629, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4629 { - if yyrl4629 <= cap(yyv4629) { - yyv4629 = yyv4629[:yyrl4629] + yyrg4628 := len(yyv4628) > 0 + yyv24628 := yyv4628 + yyrl4628, yyrt4628 = z.DecInferLen(yyl4628, z.DecBasicHandle().MaxInitLen, 192) + if yyrt4628 { + if yyrl4628 <= cap(yyv4628) { + yyv4628 = yyv4628[:yyrl4628] } else { - yyv4629 = make([]LimitRangeItem, yyrl4629) + yyv4628 = make([]Volume, yyrl4628) } } else { - yyv4629 = make([]LimitRangeItem, yyrl4629) + yyv4628 = make([]Volume, yyrl4628) } - yyc4629 = true - yyrr4629 = len(yyv4629) - if yyrg4629 { - copy(yyv4629, yyv24629) + yyc4628 = true + yyrr4628 = len(yyv4628) + if yyrg4628 { + copy(yyv4628, yyv24628) } - } else if yyl4629 != len(yyv4629) { - yyv4629 = yyv4629[:yyl4629] - yyc4629 = true + } else if yyl4628 != len(yyv4628) { + yyv4628 = yyv4628[:yyl4628] + yyc4628 = true } - yyj4629 := 0 - for ; yyj4629 < yyrr4629; yyj4629++ { - yyh4629.ElemContainerState(yyj4629) + yyj4628 := 0 + for ; yyj4628 < yyrr4628; yyj4628++ { + yyh4628.ElemContainerState(yyj4628) if r.TryDecodeAsNil() { - yyv4629[yyj4629] = LimitRangeItem{} + yyv4628[yyj4628] = Volume{} } else { - yyv4630 := &yyv4629[yyj4629] - yyv4630.CodecDecodeSelf(d) + yyv4629 := &yyv4628[yyj4628] + yyv4629.CodecDecodeSelf(d) } } - if yyrt4629 { - for ; yyj4629 < yyl4629; yyj4629++ { - yyv4629 = append(yyv4629, LimitRangeItem{}) - yyh4629.ElemContainerState(yyj4629) + if yyrt4628 { + for ; yyj4628 < yyl4628; yyj4628++ { + yyv4628 = append(yyv4628, Volume{}) + yyh4628.ElemContainerState(yyj4628) if r.TryDecodeAsNil() { - yyv4629[yyj4629] = LimitRangeItem{} + yyv4628[yyj4628] = Volume{} } else { - yyv4631 := &yyv4629[yyj4629] + yyv4630 := &yyv4628[yyj4628] + yyv4630.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4628 := 0 + for ; !r.CheckBreak(); yyj4628++ { + + if yyj4628 >= len(yyv4628) { + yyv4628 = append(yyv4628, Volume{}) // var yyz4628 Volume + yyc4628 = true + } + yyh4628.ElemContainerState(yyj4628) + if yyj4628 < len(yyv4628) { + if r.TryDecodeAsNil() { + yyv4628[yyj4628] = Volume{} + } else { + yyv4631 := &yyv4628[yyj4628] yyv4631.CodecDecodeSelf(d) } - } - } - - } else { - yyj4629 := 0 - for ; !r.CheckBreak(); yyj4629++ { - - if yyj4629 >= len(yyv4629) { - yyv4629 = append(yyv4629, LimitRangeItem{}) // var yyz4629 LimitRangeItem - yyc4629 = true - } - yyh4629.ElemContainerState(yyj4629) - if yyj4629 < len(yyv4629) { - if r.TryDecodeAsNil() { - yyv4629[yyj4629] = LimitRangeItem{} - } else { - yyv4632 := &yyv4629[yyj4629] - yyv4632.CodecDecodeSelf(d) - } - } else { z.DecSwallow() } } - if yyj4629 < len(yyv4629) { - yyv4629 = yyv4629[:yyj4629] - yyc4629 = true - } else if yyj4629 == 0 && yyv4629 == nil { - yyv4629 = []LimitRangeItem{} - yyc4629 = true + if yyj4628 < len(yyv4628) { + yyv4628 = yyv4628[:yyj4628] + yyc4628 = true + } else if yyj4628 == 0 && yyv4628 == nil { + yyv4628 = []Volume{} + yyc4628 = true } } - yyh4629.End() - if yyc4629 { - *v = yyv4629 + yyh4628.End() + if yyc4628 { + *v = yyv4628 } } -func (x codecSelfer1234) encSliceLimitRange(v []LimitRange, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceContainer(v []Container, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4633 := range v { + for _, yyv4632 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4634 := &yyv4633 - yy4634.CodecEncodeSelf(e) + yy4633 := &yyv4632 + yy4633.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4635 := *v - yyh4635, yyl4635 := z.DecSliceHelperStart() - var yyc4635 bool - if yyl4635 == 0 { - if yyv4635 == nil { - yyv4635 = []LimitRange{} - yyc4635 = true - } else if len(yyv4635) != 0 { - yyv4635 = yyv4635[:0] - yyc4635 = true + yyv4634 := *v + yyh4634, yyl4634 := z.DecSliceHelperStart() + var yyc4634 bool + if yyl4634 == 0 { + if yyv4634 == nil { + yyv4634 = []Container{} + yyc4634 = true + } else if len(yyv4634) != 0 { + yyv4634 = yyv4634[:0] + yyc4634 = true } - } else if yyl4635 > 0 { - var yyrr4635, yyrl4635 int - var yyrt4635 bool - if yyl4635 > cap(yyv4635) { + } else if yyl4634 > 0 { + var yyrr4634, yyrl4634 int + var yyrt4634 bool + if yyl4634 > cap(yyv4634) { - yyrg4635 := len(yyv4635) > 0 - yyv24635 := yyv4635 - yyrl4635, yyrt4635 = z.DecInferLen(yyl4635, z.DecBasicHandle().MaxInitLen, 264) - if yyrt4635 { - if yyrl4635 <= cap(yyv4635) { - yyv4635 = yyv4635[:yyrl4635] + yyrg4634 := len(yyv4634) > 0 + yyv24634 := yyv4634 + yyrl4634, yyrt4634 = z.DecInferLen(yyl4634, z.DecBasicHandle().MaxInitLen, 256) + if yyrt4634 { + if yyrl4634 <= cap(yyv4634) { + yyv4634 = yyv4634[:yyrl4634] } else { - yyv4635 = make([]LimitRange, yyrl4635) + yyv4634 = make([]Container, yyrl4634) } } else { - yyv4635 = make([]LimitRange, yyrl4635) + yyv4634 = make([]Container, yyrl4634) } - yyc4635 = true - yyrr4635 = len(yyv4635) - if yyrg4635 { - copy(yyv4635, yyv24635) + yyc4634 = true + yyrr4634 = len(yyv4634) + if yyrg4634 { + copy(yyv4634, yyv24634) } - } else if yyl4635 != len(yyv4635) { - yyv4635 = yyv4635[:yyl4635] - yyc4635 = true + } else if yyl4634 != len(yyv4634) { + yyv4634 = yyv4634[:yyl4634] + yyc4634 = true } - yyj4635 := 0 - for ; yyj4635 < yyrr4635; yyj4635++ { - yyh4635.ElemContainerState(yyj4635) + yyj4634 := 0 + for ; yyj4634 < yyrr4634; yyj4634++ { + yyh4634.ElemContainerState(yyj4634) if r.TryDecodeAsNil() { - yyv4635[yyj4635] = LimitRange{} + yyv4634[yyj4634] = Container{} } else { - yyv4636 := &yyv4635[yyj4635] - yyv4636.CodecDecodeSelf(d) + yyv4635 := &yyv4634[yyj4634] + yyv4635.CodecDecodeSelf(d) } } - if yyrt4635 { - for ; yyj4635 < yyl4635; yyj4635++ { - yyv4635 = append(yyv4635, LimitRange{}) - yyh4635.ElemContainerState(yyj4635) + if yyrt4634 { + for ; yyj4634 < yyl4634; yyj4634++ { + yyv4634 = append(yyv4634, Container{}) + yyh4634.ElemContainerState(yyj4634) if r.TryDecodeAsNil() { - yyv4635[yyj4635] = LimitRange{} + yyv4634[yyj4634] = Container{} } else { - yyv4637 := &yyv4635[yyj4635] - yyv4637.CodecDecodeSelf(d) + yyv4636 := &yyv4634[yyj4634] + yyv4636.CodecDecodeSelf(d) } } } } else { - yyj4635 := 0 - for ; !r.CheckBreak(); yyj4635++ { + yyj4634 := 0 + for ; !r.CheckBreak(); yyj4634++ { - if yyj4635 >= len(yyv4635) { - yyv4635 = append(yyv4635, LimitRange{}) // var yyz4635 LimitRange - yyc4635 = true + if yyj4634 >= len(yyv4634) { + yyv4634 = append(yyv4634, Container{}) // var yyz4634 Container + yyc4634 = true } - yyh4635.ElemContainerState(yyj4635) - if yyj4635 < len(yyv4635) { + yyh4634.ElemContainerState(yyj4634) + if yyj4634 < len(yyv4634) { if r.TryDecodeAsNil() { - yyv4635[yyj4635] = LimitRange{} + yyv4634[yyj4634] = Container{} } else { - yyv4638 := &yyv4635[yyj4635] - yyv4638.CodecDecodeSelf(d) + yyv4637 := &yyv4634[yyj4634] + yyv4637.CodecDecodeSelf(d) } } else { @@ -59567,33 +58360,34 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode } } - if yyj4635 < len(yyv4635) { - yyv4635 = yyv4635[:yyj4635] - yyc4635 = true - } else if yyj4635 == 0 && yyv4635 == nil { - yyv4635 = []LimitRange{} - yyc4635 = true + if yyj4634 < len(yyv4634) { + yyv4634 = yyv4634[:yyj4634] + yyc4634 = true + } else if yyj4634 == 0 && yyv4634 == nil { + yyv4634 = []Container{} + yyc4634 = true } } - yyh4635.End() - if yyc4635 { - *v = yyv4635 + yyh4634.End() + if yyc4634 { + *v = yyv4634 } } -func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceLocalObjectReference(v []LocalObjectReference, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4639 := range v { + for _, yyv4638 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4639.CodecEncodeSelf(e) + yy4639 := &yyv4638 + yy4639.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -59603,7 +58397,7 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * var yyc4640 bool if yyl4640 == 0 { if yyv4640 == nil { - yyv4640 = []ResourceQuotaScope{} + yyv4640 = []LocalObjectReference{} yyc4640 = true } else if len(yyv4640) != 0 { yyv4640 = yyv4640[:0] @@ -59614,18 +58408,23 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * var yyrt4640 bool if yyl4640 > cap(yyv4640) { + yyrg4640 := len(yyv4640) > 0 + yyv24640 := yyv4640 yyrl4640, yyrt4640 = z.DecInferLen(yyl4640, z.DecBasicHandle().MaxInitLen, 16) if yyrt4640 { if yyrl4640 <= cap(yyv4640) { yyv4640 = yyv4640[:yyrl4640] } else { - yyv4640 = make([]ResourceQuotaScope, yyrl4640) + yyv4640 = make([]LocalObjectReference, yyrl4640) } } else { - yyv4640 = make([]ResourceQuotaScope, yyrl4640) + yyv4640 = make([]LocalObjectReference, yyrl4640) } yyc4640 = true yyrr4640 = len(yyv4640) + if yyrg4640 { + copy(yyv4640, yyv24640) + } } else if yyl4640 != len(yyv4640) { yyv4640 = yyv4640[:yyl4640] yyc4640 = true @@ -59634,20 +58433,22 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * for ; yyj4640 < yyrr4640; yyj4640++ { yyh4640.ElemContainerState(yyj4640) if r.TryDecodeAsNil() { - yyv4640[yyj4640] = "" + yyv4640[yyj4640] = LocalObjectReference{} } else { - yyv4640[yyj4640] = ResourceQuotaScope(r.DecodeString()) + yyv4641 := &yyv4640[yyj4640] + yyv4641.CodecDecodeSelf(d) } } if yyrt4640 { for ; yyj4640 < yyl4640; yyj4640++ { - yyv4640 = append(yyv4640, "") + yyv4640 = append(yyv4640, LocalObjectReference{}) yyh4640.ElemContainerState(yyj4640) if r.TryDecodeAsNil() { - yyv4640[yyj4640] = "" + yyv4640[yyj4640] = LocalObjectReference{} } else { - yyv4640[yyj4640] = ResourceQuotaScope(r.DecodeString()) + yyv4642 := &yyv4640[yyj4640] + yyv4642.CodecDecodeSelf(d) } } @@ -59658,15 +58459,16 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * for ; !r.CheckBreak(); yyj4640++ { if yyj4640 >= len(yyv4640) { - yyv4640 = append(yyv4640, "") // var yyz4640 ResourceQuotaScope + yyv4640 = append(yyv4640, LocalObjectReference{}) // var yyz4640 LocalObjectReference yyc4640 = true } yyh4640.ElemContainerState(yyj4640) if yyj4640 < len(yyv4640) { if r.TryDecodeAsNil() { - yyv4640[yyj4640] = "" + yyv4640[yyj4640] = LocalObjectReference{} } else { - yyv4640[yyj4640] = ResourceQuotaScope(r.DecodeString()) + yyv4643 := &yyv4640[yyj4640] + yyv4643.CodecDecodeSelf(d) } } else { @@ -59678,7 +58480,7 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * yyv4640 = yyv4640[:yyj4640] yyc4640 = true } else if yyj4640 == 0 && yyv4640 == nil { - yyv4640 = []ResourceQuotaScope{} + yyv4640 = []LocalObjectReference{} yyc4640 = true } } @@ -59688,7 +58490,7 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * } } -func (x codecSelfer1234) encSliceResourceQuota(v []ResourceQuota, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePodCondition(v []PodCondition, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -59701,7 +58503,7 @@ func (x codecSelfer1234) encSliceResourceQuota(v []ResourceQuota, e *codec1978.E z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -59711,7 +58513,7 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. var yyc4646 bool if yyl4646 == 0 { if yyv4646 == nil { - yyv4646 = []ResourceQuota{} + yyv4646 = []PodCondition{} yyc4646 = true } else if len(yyv4646) != 0 { yyv4646 = yyv4646[:0] @@ -59724,15 +58526,15 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. yyrg4646 := len(yyv4646) > 0 yyv24646 := yyv4646 - yyrl4646, yyrt4646 = z.DecInferLen(yyl4646, z.DecBasicHandle().MaxInitLen, 288) + yyrl4646, yyrt4646 = z.DecInferLen(yyl4646, z.DecBasicHandle().MaxInitLen, 112) if yyrt4646 { if yyrl4646 <= cap(yyv4646) { yyv4646 = yyv4646[:yyrl4646] } else { - yyv4646 = make([]ResourceQuota, yyrl4646) + yyv4646 = make([]PodCondition, yyrl4646) } } else { - yyv4646 = make([]ResourceQuota, yyrl4646) + yyv4646 = make([]PodCondition, yyrl4646) } yyc4646 = true yyrr4646 = len(yyv4646) @@ -59747,7 +58549,7 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. for ; yyj4646 < yyrr4646; yyj4646++ { yyh4646.ElemContainerState(yyj4646) if r.TryDecodeAsNil() { - yyv4646[yyj4646] = ResourceQuota{} + yyv4646[yyj4646] = PodCondition{} } else { yyv4647 := &yyv4646[yyj4646] yyv4647.CodecDecodeSelf(d) @@ -59756,10 +58558,10 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. } if yyrt4646 { for ; yyj4646 < yyl4646; yyj4646++ { - yyv4646 = append(yyv4646, ResourceQuota{}) + yyv4646 = append(yyv4646, PodCondition{}) yyh4646.ElemContainerState(yyj4646) if r.TryDecodeAsNil() { - yyv4646[yyj4646] = ResourceQuota{} + yyv4646[yyj4646] = PodCondition{} } else { yyv4648 := &yyv4646[yyj4646] yyv4648.CodecDecodeSelf(d) @@ -59773,13 +58575,13 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. for ; !r.CheckBreak(); yyj4646++ { if yyj4646 >= len(yyv4646) { - yyv4646 = append(yyv4646, ResourceQuota{}) // var yyz4646 ResourceQuota + yyv4646 = append(yyv4646, PodCondition{}) // var yyz4646 PodCondition yyc4646 = true } yyh4646.ElemContainerState(yyj4646) if yyj4646 < len(yyv4646) { if r.TryDecodeAsNil() { - yyv4646[yyj4646] = ResourceQuota{} + yyv4646[yyj4646] = PodCondition{} } else { yyv4649 := &yyv4646[yyj4646] yyv4649.CodecDecodeSelf(d) @@ -59794,7 +58596,7 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. yyv4646 = yyv4646[:yyj4646] yyc4646 = true } else if yyj4646 == 0 && yyv4646 == nil { - yyv4646 = []ResourceQuota{} + yyv4646 = []PodCondition{} yyc4646 = true } } @@ -59804,28 +58606,3274 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. } } +func (x codecSelfer1234) encSliceContainerStatus(v []ContainerStatus, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4650 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4651 := &yyv4650 + yy4651.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4652 := *v + yyh4652, yyl4652 := z.DecSliceHelperStart() + var yyc4652 bool + if yyl4652 == 0 { + if yyv4652 == nil { + yyv4652 = []ContainerStatus{} + yyc4652 = true + } else if len(yyv4652) != 0 { + yyv4652 = yyv4652[:0] + yyc4652 = true + } + } else if yyl4652 > 0 { + var yyrr4652, yyrl4652 int + var yyrt4652 bool + if yyl4652 > cap(yyv4652) { + + yyrg4652 := len(yyv4652) > 0 + yyv24652 := yyv4652 + yyrl4652, yyrt4652 = z.DecInferLen(yyl4652, z.DecBasicHandle().MaxInitLen, 120) + if yyrt4652 { + if yyrl4652 <= cap(yyv4652) { + yyv4652 = yyv4652[:yyrl4652] + } else { + yyv4652 = make([]ContainerStatus, yyrl4652) + } + } else { + yyv4652 = make([]ContainerStatus, yyrl4652) + } + yyc4652 = true + yyrr4652 = len(yyv4652) + if yyrg4652 { + copy(yyv4652, yyv24652) + } + } else if yyl4652 != len(yyv4652) { + yyv4652 = yyv4652[:yyl4652] + yyc4652 = true + } + yyj4652 := 0 + for ; yyj4652 < yyrr4652; yyj4652++ { + yyh4652.ElemContainerState(yyj4652) + if r.TryDecodeAsNil() { + yyv4652[yyj4652] = ContainerStatus{} + } else { + yyv4653 := &yyv4652[yyj4652] + yyv4653.CodecDecodeSelf(d) + } + + } + if yyrt4652 { + for ; yyj4652 < yyl4652; yyj4652++ { + yyv4652 = append(yyv4652, ContainerStatus{}) + yyh4652.ElemContainerState(yyj4652) + if r.TryDecodeAsNil() { + yyv4652[yyj4652] = ContainerStatus{} + } else { + yyv4654 := &yyv4652[yyj4652] + yyv4654.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4652 := 0 + for ; !r.CheckBreak(); yyj4652++ { + + if yyj4652 >= len(yyv4652) { + yyv4652 = append(yyv4652, ContainerStatus{}) // var yyz4652 ContainerStatus + yyc4652 = true + } + yyh4652.ElemContainerState(yyj4652) + if yyj4652 < len(yyv4652) { + if r.TryDecodeAsNil() { + yyv4652[yyj4652] = ContainerStatus{} + } else { + yyv4655 := &yyv4652[yyj4652] + yyv4655.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4652 < len(yyv4652) { + yyv4652 = yyv4652[:yyj4652] + yyc4652 = true + } else if yyj4652 == 0 && yyv4652 == nil { + yyv4652 = []ContainerStatus{} + yyc4652 = true + } + } + yyh4652.End() + if yyc4652 { + *v = yyv4652 + } +} + +func (x codecSelfer1234) encSlicePodTemplate(v []PodTemplate, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4656 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4657 := &yyv4656 + yy4657.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4658 := *v + yyh4658, yyl4658 := z.DecSliceHelperStart() + var yyc4658 bool + if yyl4658 == 0 { + if yyv4658 == nil { + yyv4658 = []PodTemplate{} + yyc4658 = true + } else if len(yyv4658) != 0 { + yyv4658 = yyv4658[:0] + yyc4658 = true + } + } else if yyl4658 > 0 { + var yyrr4658, yyrl4658 int + var yyrt4658 bool + if yyl4658 > cap(yyv4658) { + + yyrg4658 := len(yyv4658) > 0 + yyv24658 := yyv4658 + yyrl4658, yyrt4658 = z.DecInferLen(yyl4658, z.DecBasicHandle().MaxInitLen, 704) + if yyrt4658 { + if yyrl4658 <= cap(yyv4658) { + yyv4658 = yyv4658[:yyrl4658] + } else { + yyv4658 = make([]PodTemplate, yyrl4658) + } + } else { + yyv4658 = make([]PodTemplate, yyrl4658) + } + yyc4658 = true + yyrr4658 = len(yyv4658) + if yyrg4658 { + copy(yyv4658, yyv24658) + } + } else if yyl4658 != len(yyv4658) { + yyv4658 = yyv4658[:yyl4658] + yyc4658 = true + } + yyj4658 := 0 + for ; yyj4658 < yyrr4658; yyj4658++ { + yyh4658.ElemContainerState(yyj4658) + if r.TryDecodeAsNil() { + yyv4658[yyj4658] = PodTemplate{} + } else { + yyv4659 := &yyv4658[yyj4658] + yyv4659.CodecDecodeSelf(d) + } + + } + if yyrt4658 { + for ; yyj4658 < yyl4658; yyj4658++ { + yyv4658 = append(yyv4658, PodTemplate{}) + yyh4658.ElemContainerState(yyj4658) + if r.TryDecodeAsNil() { + yyv4658[yyj4658] = PodTemplate{} + } else { + yyv4660 := &yyv4658[yyj4658] + yyv4660.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4658 := 0 + for ; !r.CheckBreak(); yyj4658++ { + + if yyj4658 >= len(yyv4658) { + yyv4658 = append(yyv4658, PodTemplate{}) // var yyz4658 PodTemplate + yyc4658 = true + } + yyh4658.ElemContainerState(yyj4658) + if yyj4658 < len(yyv4658) { + if r.TryDecodeAsNil() { + yyv4658[yyj4658] = PodTemplate{} + } else { + yyv4661 := &yyv4658[yyj4658] + yyv4661.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4658 < len(yyv4658) { + yyv4658 = yyv4658[:yyj4658] + yyc4658 = true + } else if yyj4658 == 0 && yyv4658 == nil { + yyv4658 = []PodTemplate{} + yyc4658 = true + } + } + yyh4658.End() + if yyc4658 { + *v = yyv4658 + } +} + +func (x codecSelfer1234) encSliceReplicationController(v []ReplicationController, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4662 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4663 := &yyv4662 + yy4663.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4664 := *v + yyh4664, yyl4664 := z.DecSliceHelperStart() + var yyc4664 bool + if yyl4664 == 0 { + if yyv4664 == nil { + yyv4664 = []ReplicationController{} + yyc4664 = true + } else if len(yyv4664) != 0 { + yyv4664 = yyv4664[:0] + yyc4664 = true + } + } else if yyl4664 > 0 { + var yyrr4664, yyrl4664 int + var yyrt4664 bool + if yyl4664 > cap(yyv4664) { + + yyrg4664 := len(yyv4664) > 0 + yyv24664 := yyv4664 + yyrl4664, yyrt4664 = z.DecInferLen(yyl4664, z.DecBasicHandle().MaxInitLen, 304) + if yyrt4664 { + if yyrl4664 <= cap(yyv4664) { + yyv4664 = yyv4664[:yyrl4664] + } else { + yyv4664 = make([]ReplicationController, yyrl4664) + } + } else { + yyv4664 = make([]ReplicationController, yyrl4664) + } + yyc4664 = true + yyrr4664 = len(yyv4664) + if yyrg4664 { + copy(yyv4664, yyv24664) + } + } else if yyl4664 != len(yyv4664) { + yyv4664 = yyv4664[:yyl4664] + yyc4664 = true + } + yyj4664 := 0 + for ; yyj4664 < yyrr4664; yyj4664++ { + yyh4664.ElemContainerState(yyj4664) + if r.TryDecodeAsNil() { + yyv4664[yyj4664] = ReplicationController{} + } else { + yyv4665 := &yyv4664[yyj4664] + yyv4665.CodecDecodeSelf(d) + } + + } + if yyrt4664 { + for ; yyj4664 < yyl4664; yyj4664++ { + yyv4664 = append(yyv4664, ReplicationController{}) + yyh4664.ElemContainerState(yyj4664) + if r.TryDecodeAsNil() { + yyv4664[yyj4664] = ReplicationController{} + } else { + yyv4666 := &yyv4664[yyj4664] + yyv4666.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4664 := 0 + for ; !r.CheckBreak(); yyj4664++ { + + if yyj4664 >= len(yyv4664) { + yyv4664 = append(yyv4664, ReplicationController{}) // var yyz4664 ReplicationController + yyc4664 = true + } + yyh4664.ElemContainerState(yyj4664) + if yyj4664 < len(yyv4664) { + if r.TryDecodeAsNil() { + yyv4664[yyj4664] = ReplicationController{} + } else { + yyv4667 := &yyv4664[yyj4664] + yyv4667.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4664 < len(yyv4664) { + yyv4664 = yyv4664[:yyj4664] + yyc4664 = true + } else if yyj4664 == 0 && yyv4664 == nil { + yyv4664 = []ReplicationController{} + yyc4664 = true + } + } + yyh4664.End() + if yyc4664 { + *v = yyv4664 + } +} + +func (x codecSelfer1234) encSliceService(v []Service, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4668 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4669 := &yyv4668 + yy4669.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4670 := *v + yyh4670, yyl4670 := z.DecSliceHelperStart() + var yyc4670 bool + if yyl4670 == 0 { + if yyv4670 == nil { + yyv4670 = []Service{} + yyc4670 = true + } else if len(yyv4670) != 0 { + yyv4670 = yyv4670[:0] + yyc4670 = true + } + } else if yyl4670 > 0 { + var yyrr4670, yyrl4670 int + var yyrt4670 bool + if yyl4670 > cap(yyv4670) { + + yyrg4670 := len(yyv4670) > 0 + yyv24670 := yyv4670 + yyrl4670, yyrt4670 = z.DecInferLen(yyl4670, z.DecBasicHandle().MaxInitLen, 440) + if yyrt4670 { + if yyrl4670 <= cap(yyv4670) { + yyv4670 = yyv4670[:yyrl4670] + } else { + yyv4670 = make([]Service, yyrl4670) + } + } else { + yyv4670 = make([]Service, yyrl4670) + } + yyc4670 = true + yyrr4670 = len(yyv4670) + if yyrg4670 { + copy(yyv4670, yyv24670) + } + } else if yyl4670 != len(yyv4670) { + yyv4670 = yyv4670[:yyl4670] + yyc4670 = true + } + yyj4670 := 0 + for ; yyj4670 < yyrr4670; yyj4670++ { + yyh4670.ElemContainerState(yyj4670) + if r.TryDecodeAsNil() { + yyv4670[yyj4670] = Service{} + } else { + yyv4671 := &yyv4670[yyj4670] + yyv4671.CodecDecodeSelf(d) + } + + } + if yyrt4670 { + for ; yyj4670 < yyl4670; yyj4670++ { + yyv4670 = append(yyv4670, Service{}) + yyh4670.ElemContainerState(yyj4670) + if r.TryDecodeAsNil() { + yyv4670[yyj4670] = Service{} + } else { + yyv4672 := &yyv4670[yyj4670] + yyv4672.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4670 := 0 + for ; !r.CheckBreak(); yyj4670++ { + + if yyj4670 >= len(yyv4670) { + yyv4670 = append(yyv4670, Service{}) // var yyz4670 Service + yyc4670 = true + } + yyh4670.ElemContainerState(yyj4670) + if yyj4670 < len(yyv4670) { + if r.TryDecodeAsNil() { + yyv4670[yyj4670] = Service{} + } else { + yyv4673 := &yyv4670[yyj4670] + yyv4673.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4670 < len(yyv4670) { + yyv4670 = yyv4670[:yyj4670] + yyc4670 = true + } else if yyj4670 == 0 && yyv4670 == nil { + yyv4670 = []Service{} + yyc4670 = true + } + } + yyh4670.End() + if yyc4670 { + *v = yyv4670 + } +} + +func (x codecSelfer1234) encSliceLoadBalancerIngress(v []LoadBalancerIngress, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4674 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4675 := &yyv4674 + yy4675.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4676 := *v + yyh4676, yyl4676 := z.DecSliceHelperStart() + var yyc4676 bool + if yyl4676 == 0 { + if yyv4676 == nil { + yyv4676 = []LoadBalancerIngress{} + yyc4676 = true + } else if len(yyv4676) != 0 { + yyv4676 = yyv4676[:0] + yyc4676 = true + } + } else if yyl4676 > 0 { + var yyrr4676, yyrl4676 int + var yyrt4676 bool + if yyl4676 > cap(yyv4676) { + + yyrg4676 := len(yyv4676) > 0 + yyv24676 := yyv4676 + yyrl4676, yyrt4676 = z.DecInferLen(yyl4676, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4676 { + if yyrl4676 <= cap(yyv4676) { + yyv4676 = yyv4676[:yyrl4676] + } else { + yyv4676 = make([]LoadBalancerIngress, yyrl4676) + } + } else { + yyv4676 = make([]LoadBalancerIngress, yyrl4676) + } + yyc4676 = true + yyrr4676 = len(yyv4676) + if yyrg4676 { + copy(yyv4676, yyv24676) + } + } else if yyl4676 != len(yyv4676) { + yyv4676 = yyv4676[:yyl4676] + yyc4676 = true + } + yyj4676 := 0 + for ; yyj4676 < yyrr4676; yyj4676++ { + yyh4676.ElemContainerState(yyj4676) + if r.TryDecodeAsNil() { + yyv4676[yyj4676] = LoadBalancerIngress{} + } else { + yyv4677 := &yyv4676[yyj4676] + yyv4677.CodecDecodeSelf(d) + } + + } + if yyrt4676 { + for ; yyj4676 < yyl4676; yyj4676++ { + yyv4676 = append(yyv4676, LoadBalancerIngress{}) + yyh4676.ElemContainerState(yyj4676) + if r.TryDecodeAsNil() { + yyv4676[yyj4676] = LoadBalancerIngress{} + } else { + yyv4678 := &yyv4676[yyj4676] + yyv4678.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4676 := 0 + for ; !r.CheckBreak(); yyj4676++ { + + if yyj4676 >= len(yyv4676) { + yyv4676 = append(yyv4676, LoadBalancerIngress{}) // var yyz4676 LoadBalancerIngress + yyc4676 = true + } + yyh4676.ElemContainerState(yyj4676) + if yyj4676 < len(yyv4676) { + if r.TryDecodeAsNil() { + yyv4676[yyj4676] = LoadBalancerIngress{} + } else { + yyv4679 := &yyv4676[yyj4676] + yyv4679.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4676 < len(yyv4676) { + yyv4676 = yyv4676[:yyj4676] + yyc4676 = true + } else if yyj4676 == 0 && yyv4676 == nil { + yyv4676 = []LoadBalancerIngress{} + yyc4676 = true + } + } + yyh4676.End() + if yyc4676 { + *v = yyv4676 + } +} + +func (x codecSelfer1234) encSliceServicePort(v []ServicePort, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4680 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4681 := &yyv4680 + yy4681.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4682 := *v + yyh4682, yyl4682 := z.DecSliceHelperStart() + var yyc4682 bool + if yyl4682 == 0 { + if yyv4682 == nil { + yyv4682 = []ServicePort{} + yyc4682 = true + } else if len(yyv4682) != 0 { + yyv4682 = yyv4682[:0] + yyc4682 = true + } + } else if yyl4682 > 0 { + var yyrr4682, yyrl4682 int + var yyrt4682 bool + if yyl4682 > cap(yyv4682) { + + yyrg4682 := len(yyv4682) > 0 + yyv24682 := yyv4682 + yyrl4682, yyrt4682 = z.DecInferLen(yyl4682, z.DecBasicHandle().MaxInitLen, 80) + if yyrt4682 { + if yyrl4682 <= cap(yyv4682) { + yyv4682 = yyv4682[:yyrl4682] + } else { + yyv4682 = make([]ServicePort, yyrl4682) + } + } else { + yyv4682 = make([]ServicePort, yyrl4682) + } + yyc4682 = true + yyrr4682 = len(yyv4682) + if yyrg4682 { + copy(yyv4682, yyv24682) + } + } else if yyl4682 != len(yyv4682) { + yyv4682 = yyv4682[:yyl4682] + yyc4682 = true + } + yyj4682 := 0 + for ; yyj4682 < yyrr4682; yyj4682++ { + yyh4682.ElemContainerState(yyj4682) + if r.TryDecodeAsNil() { + yyv4682[yyj4682] = ServicePort{} + } else { + yyv4683 := &yyv4682[yyj4682] + yyv4683.CodecDecodeSelf(d) + } + + } + if yyrt4682 { + for ; yyj4682 < yyl4682; yyj4682++ { + yyv4682 = append(yyv4682, ServicePort{}) + yyh4682.ElemContainerState(yyj4682) + if r.TryDecodeAsNil() { + yyv4682[yyj4682] = ServicePort{} + } else { + yyv4684 := &yyv4682[yyj4682] + yyv4684.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4682 := 0 + for ; !r.CheckBreak(); yyj4682++ { + + if yyj4682 >= len(yyv4682) { + yyv4682 = append(yyv4682, ServicePort{}) // var yyz4682 ServicePort + yyc4682 = true + } + yyh4682.ElemContainerState(yyj4682) + if yyj4682 < len(yyv4682) { + if r.TryDecodeAsNil() { + yyv4682[yyj4682] = ServicePort{} + } else { + yyv4685 := &yyv4682[yyj4682] + yyv4685.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4682 < len(yyv4682) { + yyv4682 = yyv4682[:yyj4682] + yyc4682 = true + } else if yyj4682 == 0 && yyv4682 == nil { + yyv4682 = []ServicePort{} + yyc4682 = true + } + } + yyh4682.End() + if yyc4682 { + *v = yyv4682 + } +} + +func (x codecSelfer1234) encSliceObjectReference(v []ObjectReference, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4686 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4687 := &yyv4686 + yy4687.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4688 := *v + yyh4688, yyl4688 := z.DecSliceHelperStart() + var yyc4688 bool + if yyl4688 == 0 { + if yyv4688 == nil { + yyv4688 = []ObjectReference{} + yyc4688 = true + } else if len(yyv4688) != 0 { + yyv4688 = yyv4688[:0] + yyc4688 = true + } + } else if yyl4688 > 0 { + var yyrr4688, yyrl4688 int + var yyrt4688 bool + if yyl4688 > cap(yyv4688) { + + yyrg4688 := len(yyv4688) > 0 + yyv24688 := yyv4688 + yyrl4688, yyrt4688 = z.DecInferLen(yyl4688, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4688 { + if yyrl4688 <= cap(yyv4688) { + yyv4688 = yyv4688[:yyrl4688] + } else { + yyv4688 = make([]ObjectReference, yyrl4688) + } + } else { + yyv4688 = make([]ObjectReference, yyrl4688) + } + yyc4688 = true + yyrr4688 = len(yyv4688) + if yyrg4688 { + copy(yyv4688, yyv24688) + } + } else if yyl4688 != len(yyv4688) { + yyv4688 = yyv4688[:yyl4688] + yyc4688 = true + } + yyj4688 := 0 + for ; yyj4688 < yyrr4688; yyj4688++ { + yyh4688.ElemContainerState(yyj4688) + if r.TryDecodeAsNil() { + yyv4688[yyj4688] = ObjectReference{} + } else { + yyv4689 := &yyv4688[yyj4688] + yyv4689.CodecDecodeSelf(d) + } + + } + if yyrt4688 { + for ; yyj4688 < yyl4688; yyj4688++ { + yyv4688 = append(yyv4688, ObjectReference{}) + yyh4688.ElemContainerState(yyj4688) + if r.TryDecodeAsNil() { + yyv4688[yyj4688] = ObjectReference{} + } else { + yyv4690 := &yyv4688[yyj4688] + yyv4690.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4688 := 0 + for ; !r.CheckBreak(); yyj4688++ { + + if yyj4688 >= len(yyv4688) { + yyv4688 = append(yyv4688, ObjectReference{}) // var yyz4688 ObjectReference + yyc4688 = true + } + yyh4688.ElemContainerState(yyj4688) + if yyj4688 < len(yyv4688) { + if r.TryDecodeAsNil() { + yyv4688[yyj4688] = ObjectReference{} + } else { + yyv4691 := &yyv4688[yyj4688] + yyv4691.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4688 < len(yyv4688) { + yyv4688 = yyv4688[:yyj4688] + yyc4688 = true + } else if yyj4688 == 0 && yyv4688 == nil { + yyv4688 = []ObjectReference{} + yyc4688 = true + } + } + yyh4688.End() + if yyc4688 { + *v = yyv4688 + } +} + +func (x codecSelfer1234) encSliceServiceAccount(v []ServiceAccount, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4692 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4693 := &yyv4692 + yy4693.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4694 := *v + yyh4694, yyl4694 := z.DecSliceHelperStart() + var yyc4694 bool + if yyl4694 == 0 { + if yyv4694 == nil { + yyv4694 = []ServiceAccount{} + yyc4694 = true + } else if len(yyv4694) != 0 { + yyv4694 = yyv4694[:0] + yyc4694 = true + } + } else if yyl4694 > 0 { + var yyrr4694, yyrl4694 int + var yyrt4694 bool + if yyl4694 > cap(yyv4694) { + + yyrg4694 := len(yyv4694) > 0 + yyv24694 := yyv4694 + yyrl4694, yyrt4694 = z.DecInferLen(yyl4694, z.DecBasicHandle().MaxInitLen, 304) + if yyrt4694 { + if yyrl4694 <= cap(yyv4694) { + yyv4694 = yyv4694[:yyrl4694] + } else { + yyv4694 = make([]ServiceAccount, yyrl4694) + } + } else { + yyv4694 = make([]ServiceAccount, yyrl4694) + } + yyc4694 = true + yyrr4694 = len(yyv4694) + if yyrg4694 { + copy(yyv4694, yyv24694) + } + } else if yyl4694 != len(yyv4694) { + yyv4694 = yyv4694[:yyl4694] + yyc4694 = true + } + yyj4694 := 0 + for ; yyj4694 < yyrr4694; yyj4694++ { + yyh4694.ElemContainerState(yyj4694) + if r.TryDecodeAsNil() { + yyv4694[yyj4694] = ServiceAccount{} + } else { + yyv4695 := &yyv4694[yyj4694] + yyv4695.CodecDecodeSelf(d) + } + + } + if yyrt4694 { + for ; yyj4694 < yyl4694; yyj4694++ { + yyv4694 = append(yyv4694, ServiceAccount{}) + yyh4694.ElemContainerState(yyj4694) + if r.TryDecodeAsNil() { + yyv4694[yyj4694] = ServiceAccount{} + } else { + yyv4696 := &yyv4694[yyj4694] + yyv4696.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4694 := 0 + for ; !r.CheckBreak(); yyj4694++ { + + if yyj4694 >= len(yyv4694) { + yyv4694 = append(yyv4694, ServiceAccount{}) // var yyz4694 ServiceAccount + yyc4694 = true + } + yyh4694.ElemContainerState(yyj4694) + if yyj4694 < len(yyv4694) { + if r.TryDecodeAsNil() { + yyv4694[yyj4694] = ServiceAccount{} + } else { + yyv4697 := &yyv4694[yyj4694] + yyv4697.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4694 < len(yyv4694) { + yyv4694 = yyv4694[:yyj4694] + yyc4694 = true + } else if yyj4694 == 0 && yyv4694 == nil { + yyv4694 = []ServiceAccount{} + yyc4694 = true + } + } + yyh4694.End() + if yyc4694 { + *v = yyv4694 + } +} + +func (x codecSelfer1234) encSliceEndpointSubset(v []EndpointSubset, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4698 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4699 := &yyv4698 + yy4699.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4700 := *v + yyh4700, yyl4700 := z.DecSliceHelperStart() + var yyc4700 bool + if yyl4700 == 0 { + if yyv4700 == nil { + yyv4700 = []EndpointSubset{} + yyc4700 = true + } else if len(yyv4700) != 0 { + yyv4700 = yyv4700[:0] + yyc4700 = true + } + } else if yyl4700 > 0 { + var yyrr4700, yyrl4700 int + var yyrt4700 bool + if yyl4700 > cap(yyv4700) { + + yyrg4700 := len(yyv4700) > 0 + yyv24700 := yyv4700 + yyrl4700, yyrt4700 = z.DecInferLen(yyl4700, z.DecBasicHandle().MaxInitLen, 72) + if yyrt4700 { + if yyrl4700 <= cap(yyv4700) { + yyv4700 = yyv4700[:yyrl4700] + } else { + yyv4700 = make([]EndpointSubset, yyrl4700) + } + } else { + yyv4700 = make([]EndpointSubset, yyrl4700) + } + yyc4700 = true + yyrr4700 = len(yyv4700) + if yyrg4700 { + copy(yyv4700, yyv24700) + } + } else if yyl4700 != len(yyv4700) { + yyv4700 = yyv4700[:yyl4700] + yyc4700 = true + } + yyj4700 := 0 + for ; yyj4700 < yyrr4700; yyj4700++ { + yyh4700.ElemContainerState(yyj4700) + if r.TryDecodeAsNil() { + yyv4700[yyj4700] = EndpointSubset{} + } else { + yyv4701 := &yyv4700[yyj4700] + yyv4701.CodecDecodeSelf(d) + } + + } + if yyrt4700 { + for ; yyj4700 < yyl4700; yyj4700++ { + yyv4700 = append(yyv4700, EndpointSubset{}) + yyh4700.ElemContainerState(yyj4700) + if r.TryDecodeAsNil() { + yyv4700[yyj4700] = EndpointSubset{} + } else { + yyv4702 := &yyv4700[yyj4700] + yyv4702.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4700 := 0 + for ; !r.CheckBreak(); yyj4700++ { + + if yyj4700 >= len(yyv4700) { + yyv4700 = append(yyv4700, EndpointSubset{}) // var yyz4700 EndpointSubset + yyc4700 = true + } + yyh4700.ElemContainerState(yyj4700) + if yyj4700 < len(yyv4700) { + if r.TryDecodeAsNil() { + yyv4700[yyj4700] = EndpointSubset{} + } else { + yyv4703 := &yyv4700[yyj4700] + yyv4703.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4700 < len(yyv4700) { + yyv4700 = yyv4700[:yyj4700] + yyc4700 = true + } else if yyj4700 == 0 && yyv4700 == nil { + yyv4700 = []EndpointSubset{} + yyc4700 = true + } + } + yyh4700.End() + if yyc4700 { + *v = yyv4700 + } +} + +func (x codecSelfer1234) encSliceEndpointAddress(v []EndpointAddress, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4704 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4705 := &yyv4704 + yy4705.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4706 := *v + yyh4706, yyl4706 := z.DecSliceHelperStart() + var yyc4706 bool + if yyl4706 == 0 { + if yyv4706 == nil { + yyv4706 = []EndpointAddress{} + yyc4706 = true + } else if len(yyv4706) != 0 { + yyv4706 = yyv4706[:0] + yyc4706 = true + } + } else if yyl4706 > 0 { + var yyrr4706, yyrl4706 int + var yyrt4706 bool + if yyl4706 > cap(yyv4706) { + + yyrg4706 := len(yyv4706) > 0 + yyv24706 := yyv4706 + yyrl4706, yyrt4706 = z.DecInferLen(yyl4706, z.DecBasicHandle().MaxInitLen, 48) + if yyrt4706 { + if yyrl4706 <= cap(yyv4706) { + yyv4706 = yyv4706[:yyrl4706] + } else { + yyv4706 = make([]EndpointAddress, yyrl4706) + } + } else { + yyv4706 = make([]EndpointAddress, yyrl4706) + } + yyc4706 = true + yyrr4706 = len(yyv4706) + if yyrg4706 { + copy(yyv4706, yyv24706) + } + } else if yyl4706 != len(yyv4706) { + yyv4706 = yyv4706[:yyl4706] + yyc4706 = true + } + yyj4706 := 0 + for ; yyj4706 < yyrr4706; yyj4706++ { + yyh4706.ElemContainerState(yyj4706) + if r.TryDecodeAsNil() { + yyv4706[yyj4706] = EndpointAddress{} + } else { + yyv4707 := &yyv4706[yyj4706] + yyv4707.CodecDecodeSelf(d) + } + + } + if yyrt4706 { + for ; yyj4706 < yyl4706; yyj4706++ { + yyv4706 = append(yyv4706, EndpointAddress{}) + yyh4706.ElemContainerState(yyj4706) + if r.TryDecodeAsNil() { + yyv4706[yyj4706] = EndpointAddress{} + } else { + yyv4708 := &yyv4706[yyj4706] + yyv4708.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4706 := 0 + for ; !r.CheckBreak(); yyj4706++ { + + if yyj4706 >= len(yyv4706) { + yyv4706 = append(yyv4706, EndpointAddress{}) // var yyz4706 EndpointAddress + yyc4706 = true + } + yyh4706.ElemContainerState(yyj4706) + if yyj4706 < len(yyv4706) { + if r.TryDecodeAsNil() { + yyv4706[yyj4706] = EndpointAddress{} + } else { + yyv4709 := &yyv4706[yyj4706] + yyv4709.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4706 < len(yyv4706) { + yyv4706 = yyv4706[:yyj4706] + yyc4706 = true + } else if yyj4706 == 0 && yyv4706 == nil { + yyv4706 = []EndpointAddress{} + yyc4706 = true + } + } + yyh4706.End() + if yyc4706 { + *v = yyv4706 + } +} + +func (x codecSelfer1234) encSliceEndpointPort(v []EndpointPort, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4710 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4711 := &yyv4710 + yy4711.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4712 := *v + yyh4712, yyl4712 := z.DecSliceHelperStart() + var yyc4712 bool + if yyl4712 == 0 { + if yyv4712 == nil { + yyv4712 = []EndpointPort{} + yyc4712 = true + } else if len(yyv4712) != 0 { + yyv4712 = yyv4712[:0] + yyc4712 = true + } + } else if yyl4712 > 0 { + var yyrr4712, yyrl4712 int + var yyrt4712 bool + if yyl4712 > cap(yyv4712) { + + yyrg4712 := len(yyv4712) > 0 + yyv24712 := yyv4712 + yyrl4712, yyrt4712 = z.DecInferLen(yyl4712, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4712 { + if yyrl4712 <= cap(yyv4712) { + yyv4712 = yyv4712[:yyrl4712] + } else { + yyv4712 = make([]EndpointPort, yyrl4712) + } + } else { + yyv4712 = make([]EndpointPort, yyrl4712) + } + yyc4712 = true + yyrr4712 = len(yyv4712) + if yyrg4712 { + copy(yyv4712, yyv24712) + } + } else if yyl4712 != len(yyv4712) { + yyv4712 = yyv4712[:yyl4712] + yyc4712 = true + } + yyj4712 := 0 + for ; yyj4712 < yyrr4712; yyj4712++ { + yyh4712.ElemContainerState(yyj4712) + if r.TryDecodeAsNil() { + yyv4712[yyj4712] = EndpointPort{} + } else { + yyv4713 := &yyv4712[yyj4712] + yyv4713.CodecDecodeSelf(d) + } + + } + if yyrt4712 { + for ; yyj4712 < yyl4712; yyj4712++ { + yyv4712 = append(yyv4712, EndpointPort{}) + yyh4712.ElemContainerState(yyj4712) + if r.TryDecodeAsNil() { + yyv4712[yyj4712] = EndpointPort{} + } else { + yyv4714 := &yyv4712[yyj4712] + yyv4714.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4712 := 0 + for ; !r.CheckBreak(); yyj4712++ { + + if yyj4712 >= len(yyv4712) { + yyv4712 = append(yyv4712, EndpointPort{}) // var yyz4712 EndpointPort + yyc4712 = true + } + yyh4712.ElemContainerState(yyj4712) + if yyj4712 < len(yyv4712) { + if r.TryDecodeAsNil() { + yyv4712[yyj4712] = EndpointPort{} + } else { + yyv4715 := &yyv4712[yyj4712] + yyv4715.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4712 < len(yyv4712) { + yyv4712 = yyv4712[:yyj4712] + yyc4712 = true + } else if yyj4712 == 0 && yyv4712 == nil { + yyv4712 = []EndpointPort{} + yyc4712 = true + } + } + yyh4712.End() + if yyc4712 { + *v = yyv4712 + } +} + +func (x codecSelfer1234) encSliceEndpoints(v []Endpoints, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4716 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4717 := &yyv4716 + yy4717.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4718 := *v + yyh4718, yyl4718 := z.DecSliceHelperStart() + var yyc4718 bool + if yyl4718 == 0 { + if yyv4718 == nil { + yyv4718 = []Endpoints{} + yyc4718 = true + } else if len(yyv4718) != 0 { + yyv4718 = yyv4718[:0] + yyc4718 = true + } + } else if yyl4718 > 0 { + var yyrr4718, yyrl4718 int + var yyrt4718 bool + if yyl4718 > cap(yyv4718) { + + yyrg4718 := len(yyv4718) > 0 + yyv24718 := yyv4718 + yyrl4718, yyrt4718 = z.DecInferLen(yyl4718, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4718 { + if yyrl4718 <= cap(yyv4718) { + yyv4718 = yyv4718[:yyrl4718] + } else { + yyv4718 = make([]Endpoints, yyrl4718) + } + } else { + yyv4718 = make([]Endpoints, yyrl4718) + } + yyc4718 = true + yyrr4718 = len(yyv4718) + if yyrg4718 { + copy(yyv4718, yyv24718) + } + } else if yyl4718 != len(yyv4718) { + yyv4718 = yyv4718[:yyl4718] + yyc4718 = true + } + yyj4718 := 0 + for ; yyj4718 < yyrr4718; yyj4718++ { + yyh4718.ElemContainerState(yyj4718) + if r.TryDecodeAsNil() { + yyv4718[yyj4718] = Endpoints{} + } else { + yyv4719 := &yyv4718[yyj4718] + yyv4719.CodecDecodeSelf(d) + } + + } + if yyrt4718 { + for ; yyj4718 < yyl4718; yyj4718++ { + yyv4718 = append(yyv4718, Endpoints{}) + yyh4718.ElemContainerState(yyj4718) + if r.TryDecodeAsNil() { + yyv4718[yyj4718] = Endpoints{} + } else { + yyv4720 := &yyv4718[yyj4718] + yyv4720.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4718 := 0 + for ; !r.CheckBreak(); yyj4718++ { + + if yyj4718 >= len(yyv4718) { + yyv4718 = append(yyv4718, Endpoints{}) // var yyz4718 Endpoints + yyc4718 = true + } + yyh4718.ElemContainerState(yyj4718) + if yyj4718 < len(yyv4718) { + if r.TryDecodeAsNil() { + yyv4718[yyj4718] = Endpoints{} + } else { + yyv4721 := &yyv4718[yyj4718] + yyv4721.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4718 < len(yyv4718) { + yyv4718 = yyv4718[:yyj4718] + yyc4718 = true + } else if yyj4718 == 0 && yyv4718 == nil { + yyv4718 = []Endpoints{} + yyc4718 = true + } + } + yyh4718.End() + if yyc4718 { + *v = yyv4718 + } +} + +func (x codecSelfer1234) encSliceNodeCondition(v []NodeCondition, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4722 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4723 := &yyv4722 + yy4723.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4724 := *v + yyh4724, yyl4724 := z.DecSliceHelperStart() + var yyc4724 bool + if yyl4724 == 0 { + if yyv4724 == nil { + yyv4724 = []NodeCondition{} + yyc4724 = true + } else if len(yyv4724) != 0 { + yyv4724 = yyv4724[:0] + yyc4724 = true + } + } else if yyl4724 > 0 { + var yyrr4724, yyrl4724 int + var yyrt4724 bool + if yyl4724 > cap(yyv4724) { + + yyrg4724 := len(yyv4724) > 0 + yyv24724 := yyv4724 + yyrl4724, yyrt4724 = z.DecInferLen(yyl4724, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4724 { + if yyrl4724 <= cap(yyv4724) { + yyv4724 = yyv4724[:yyrl4724] + } else { + yyv4724 = make([]NodeCondition, yyrl4724) + } + } else { + yyv4724 = make([]NodeCondition, yyrl4724) + } + yyc4724 = true + yyrr4724 = len(yyv4724) + if yyrg4724 { + copy(yyv4724, yyv24724) + } + } else if yyl4724 != len(yyv4724) { + yyv4724 = yyv4724[:yyl4724] + yyc4724 = true + } + yyj4724 := 0 + for ; yyj4724 < yyrr4724; yyj4724++ { + yyh4724.ElemContainerState(yyj4724) + if r.TryDecodeAsNil() { + yyv4724[yyj4724] = NodeCondition{} + } else { + yyv4725 := &yyv4724[yyj4724] + yyv4725.CodecDecodeSelf(d) + } + + } + if yyrt4724 { + for ; yyj4724 < yyl4724; yyj4724++ { + yyv4724 = append(yyv4724, NodeCondition{}) + yyh4724.ElemContainerState(yyj4724) + if r.TryDecodeAsNil() { + yyv4724[yyj4724] = NodeCondition{} + } else { + yyv4726 := &yyv4724[yyj4724] + yyv4726.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4724 := 0 + for ; !r.CheckBreak(); yyj4724++ { + + if yyj4724 >= len(yyv4724) { + yyv4724 = append(yyv4724, NodeCondition{}) // var yyz4724 NodeCondition + yyc4724 = true + } + yyh4724.ElemContainerState(yyj4724) + if yyj4724 < len(yyv4724) { + if r.TryDecodeAsNil() { + yyv4724[yyj4724] = NodeCondition{} + } else { + yyv4727 := &yyv4724[yyj4724] + yyv4727.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4724 < len(yyv4724) { + yyv4724 = yyv4724[:yyj4724] + yyc4724 = true + } else if yyj4724 == 0 && yyv4724 == nil { + yyv4724 = []NodeCondition{} + yyc4724 = true + } + } + yyh4724.End() + if yyc4724 { + *v = yyv4724 + } +} + +func (x codecSelfer1234) encSliceNodeAddress(v []NodeAddress, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4728 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4729 := &yyv4728 + yy4729.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4730 := *v + yyh4730, yyl4730 := z.DecSliceHelperStart() + var yyc4730 bool + if yyl4730 == 0 { + if yyv4730 == nil { + yyv4730 = []NodeAddress{} + yyc4730 = true + } else if len(yyv4730) != 0 { + yyv4730 = yyv4730[:0] + yyc4730 = true + } + } else if yyl4730 > 0 { + var yyrr4730, yyrl4730 int + var yyrt4730 bool + if yyl4730 > cap(yyv4730) { + + yyrg4730 := len(yyv4730) > 0 + yyv24730 := yyv4730 + yyrl4730, yyrt4730 = z.DecInferLen(yyl4730, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4730 { + if yyrl4730 <= cap(yyv4730) { + yyv4730 = yyv4730[:yyrl4730] + } else { + yyv4730 = make([]NodeAddress, yyrl4730) + } + } else { + yyv4730 = make([]NodeAddress, yyrl4730) + } + yyc4730 = true + yyrr4730 = len(yyv4730) + if yyrg4730 { + copy(yyv4730, yyv24730) + } + } else if yyl4730 != len(yyv4730) { + yyv4730 = yyv4730[:yyl4730] + yyc4730 = true + } + yyj4730 := 0 + for ; yyj4730 < yyrr4730; yyj4730++ { + yyh4730.ElemContainerState(yyj4730) + if r.TryDecodeAsNil() { + yyv4730[yyj4730] = NodeAddress{} + } else { + yyv4731 := &yyv4730[yyj4730] + yyv4731.CodecDecodeSelf(d) + } + + } + if yyrt4730 { + for ; yyj4730 < yyl4730; yyj4730++ { + yyv4730 = append(yyv4730, NodeAddress{}) + yyh4730.ElemContainerState(yyj4730) + if r.TryDecodeAsNil() { + yyv4730[yyj4730] = NodeAddress{} + } else { + yyv4732 := &yyv4730[yyj4730] + yyv4732.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4730 := 0 + for ; !r.CheckBreak(); yyj4730++ { + + if yyj4730 >= len(yyv4730) { + yyv4730 = append(yyv4730, NodeAddress{}) // var yyz4730 NodeAddress + yyc4730 = true + } + yyh4730.ElemContainerState(yyj4730) + if yyj4730 < len(yyv4730) { + if r.TryDecodeAsNil() { + yyv4730[yyj4730] = NodeAddress{} + } else { + yyv4733 := &yyv4730[yyj4730] + yyv4733.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4730 < len(yyv4730) { + yyv4730 = yyv4730[:yyj4730] + yyc4730 = true + } else if yyj4730 == 0 && yyv4730 == nil { + yyv4730 = []NodeAddress{} + yyc4730 = true + } + } + yyh4730.End() + if yyc4730 { + *v = yyv4730 + } +} + +func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4734 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4735 := &yyv4734 + yy4735.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4736 := *v + yyh4736, yyl4736 := z.DecSliceHelperStart() + var yyc4736 bool + if yyl4736 == 0 { + if yyv4736 == nil { + yyv4736 = []ContainerImage{} + yyc4736 = true + } else if len(yyv4736) != 0 { + yyv4736 = yyv4736[:0] + yyc4736 = true + } + } else if yyl4736 > 0 { + var yyrr4736, yyrl4736 int + var yyrt4736 bool + if yyl4736 > cap(yyv4736) { + + yyrg4736 := len(yyv4736) > 0 + yyv24736 := yyv4736 + yyrl4736, yyrt4736 = z.DecInferLen(yyl4736, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4736 { + if yyrl4736 <= cap(yyv4736) { + yyv4736 = yyv4736[:yyrl4736] + } else { + yyv4736 = make([]ContainerImage, yyrl4736) + } + } else { + yyv4736 = make([]ContainerImage, yyrl4736) + } + yyc4736 = true + yyrr4736 = len(yyv4736) + if yyrg4736 { + copy(yyv4736, yyv24736) + } + } else if yyl4736 != len(yyv4736) { + yyv4736 = yyv4736[:yyl4736] + yyc4736 = true + } + yyj4736 := 0 + for ; yyj4736 < yyrr4736; yyj4736++ { + yyh4736.ElemContainerState(yyj4736) + if r.TryDecodeAsNil() { + yyv4736[yyj4736] = ContainerImage{} + } else { + yyv4737 := &yyv4736[yyj4736] + yyv4737.CodecDecodeSelf(d) + } + + } + if yyrt4736 { + for ; yyj4736 < yyl4736; yyj4736++ { + yyv4736 = append(yyv4736, ContainerImage{}) + yyh4736.ElemContainerState(yyj4736) + if r.TryDecodeAsNil() { + yyv4736[yyj4736] = ContainerImage{} + } else { + yyv4738 := &yyv4736[yyj4736] + yyv4738.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4736 := 0 + for ; !r.CheckBreak(); yyj4736++ { + + if yyj4736 >= len(yyv4736) { + yyv4736 = append(yyv4736, ContainerImage{}) // var yyz4736 ContainerImage + yyc4736 = true + } + yyh4736.ElemContainerState(yyj4736) + if yyj4736 < len(yyv4736) { + if r.TryDecodeAsNil() { + yyv4736[yyj4736] = ContainerImage{} + } else { + yyv4739 := &yyv4736[yyj4736] + yyv4739.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4736 < len(yyv4736) { + yyv4736 = yyv4736[:yyj4736] + yyc4736 = true + } else if yyj4736 == 0 && yyv4736 == nil { + yyv4736 = []ContainerImage{} + yyc4736 = true + } + } + yyh4736.End() + if yyc4736 { + *v = yyv4736 + } +} + +func (x codecSelfer1234) encSliceUniqueVolumeName(v []UniqueVolumeName, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4740 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4740.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4741 := *v + yyh4741, yyl4741 := z.DecSliceHelperStart() + var yyc4741 bool + if yyl4741 == 0 { + if yyv4741 == nil { + yyv4741 = []UniqueVolumeName{} + yyc4741 = true + } else if len(yyv4741) != 0 { + yyv4741 = yyv4741[:0] + yyc4741 = true + } + } else if yyl4741 > 0 { + var yyrr4741, yyrl4741 int + var yyrt4741 bool + if yyl4741 > cap(yyv4741) { + + yyrl4741, yyrt4741 = z.DecInferLen(yyl4741, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4741 { + if yyrl4741 <= cap(yyv4741) { + yyv4741 = yyv4741[:yyrl4741] + } else { + yyv4741 = make([]UniqueVolumeName, yyrl4741) + } + } else { + yyv4741 = make([]UniqueVolumeName, yyrl4741) + } + yyc4741 = true + yyrr4741 = len(yyv4741) + } else if yyl4741 != len(yyv4741) { + yyv4741 = yyv4741[:yyl4741] + yyc4741 = true + } + yyj4741 := 0 + for ; yyj4741 < yyrr4741; yyj4741++ { + yyh4741.ElemContainerState(yyj4741) + if r.TryDecodeAsNil() { + yyv4741[yyj4741] = "" + } else { + yyv4741[yyj4741] = UniqueVolumeName(r.DecodeString()) + } + + } + if yyrt4741 { + for ; yyj4741 < yyl4741; yyj4741++ { + yyv4741 = append(yyv4741, "") + yyh4741.ElemContainerState(yyj4741) + if r.TryDecodeAsNil() { + yyv4741[yyj4741] = "" + } else { + yyv4741[yyj4741] = UniqueVolumeName(r.DecodeString()) + } + + } + } + + } else { + yyj4741 := 0 + for ; !r.CheckBreak(); yyj4741++ { + + if yyj4741 >= len(yyv4741) { + yyv4741 = append(yyv4741, "") // var yyz4741 UniqueVolumeName + yyc4741 = true + } + yyh4741.ElemContainerState(yyj4741) + if yyj4741 < len(yyv4741) { + if r.TryDecodeAsNil() { + yyv4741[yyj4741] = "" + } else { + yyv4741[yyj4741] = UniqueVolumeName(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4741 < len(yyv4741) { + yyv4741 = yyv4741[:yyj4741] + yyc4741 = true + } else if yyj4741 == 0 && yyv4741 == nil { + yyv4741 = []UniqueVolumeName{} + yyc4741 = true + } + } + yyh4741.End() + if yyc4741 { + *v = yyv4741 + } +} + +func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4745 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4746 := &yyv4745 + yy4746.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4747 := *v + yyh4747, yyl4747 := z.DecSliceHelperStart() + var yyc4747 bool + if yyl4747 == 0 { + if yyv4747 == nil { + yyv4747 = []AttachedVolume{} + yyc4747 = true + } else if len(yyv4747) != 0 { + yyv4747 = yyv4747[:0] + yyc4747 = true + } + } else if yyl4747 > 0 { + var yyrr4747, yyrl4747 int + var yyrt4747 bool + if yyl4747 > cap(yyv4747) { + + yyrg4747 := len(yyv4747) > 0 + yyv24747 := yyv4747 + yyrl4747, yyrt4747 = z.DecInferLen(yyl4747, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4747 { + if yyrl4747 <= cap(yyv4747) { + yyv4747 = yyv4747[:yyrl4747] + } else { + yyv4747 = make([]AttachedVolume, yyrl4747) + } + } else { + yyv4747 = make([]AttachedVolume, yyrl4747) + } + yyc4747 = true + yyrr4747 = len(yyv4747) + if yyrg4747 { + copy(yyv4747, yyv24747) + } + } else if yyl4747 != len(yyv4747) { + yyv4747 = yyv4747[:yyl4747] + yyc4747 = true + } + yyj4747 := 0 + for ; yyj4747 < yyrr4747; yyj4747++ { + yyh4747.ElemContainerState(yyj4747) + if r.TryDecodeAsNil() { + yyv4747[yyj4747] = AttachedVolume{} + } else { + yyv4748 := &yyv4747[yyj4747] + yyv4748.CodecDecodeSelf(d) + } + + } + if yyrt4747 { + for ; yyj4747 < yyl4747; yyj4747++ { + yyv4747 = append(yyv4747, AttachedVolume{}) + yyh4747.ElemContainerState(yyj4747) + if r.TryDecodeAsNil() { + yyv4747[yyj4747] = AttachedVolume{} + } else { + yyv4749 := &yyv4747[yyj4747] + yyv4749.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4747 := 0 + for ; !r.CheckBreak(); yyj4747++ { + + if yyj4747 >= len(yyv4747) { + yyv4747 = append(yyv4747, AttachedVolume{}) // var yyz4747 AttachedVolume + yyc4747 = true + } + yyh4747.ElemContainerState(yyj4747) + if yyj4747 < len(yyv4747) { + if r.TryDecodeAsNil() { + yyv4747[yyj4747] = AttachedVolume{} + } else { + yyv4750 := &yyv4747[yyj4747] + yyv4750.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4747 < len(yyv4747) { + yyv4747 = yyv4747[:yyj4747] + yyc4747 = true + } else if yyj4747 == 0 && yyv4747 == nil { + yyv4747 = []AttachedVolume{} + yyc4747 = true + } + } + yyh4747.End() + if yyc4747 { + *v = yyv4747 + } +} + +func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4751 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4752 := &yyv4751 + yy4752.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4753 := *v + yyh4753, yyl4753 := z.DecSliceHelperStart() + var yyc4753 bool + if yyl4753 == 0 { + if yyv4753 == nil { + yyv4753 = []PreferAvoidPodsEntry{} + yyc4753 = true + } else if len(yyv4753) != 0 { + yyv4753 = yyv4753[:0] + yyc4753 = true + } + } else if yyl4753 > 0 { + var yyrr4753, yyrl4753 int + var yyrt4753 bool + if yyl4753 > cap(yyv4753) { + + yyrg4753 := len(yyv4753) > 0 + yyv24753 := yyv4753 + yyrl4753, yyrt4753 = z.DecInferLen(yyl4753, z.DecBasicHandle().MaxInitLen, 64) + if yyrt4753 { + if yyrl4753 <= cap(yyv4753) { + yyv4753 = yyv4753[:yyrl4753] + } else { + yyv4753 = make([]PreferAvoidPodsEntry, yyrl4753) + } + } else { + yyv4753 = make([]PreferAvoidPodsEntry, yyrl4753) + } + yyc4753 = true + yyrr4753 = len(yyv4753) + if yyrg4753 { + copy(yyv4753, yyv24753) + } + } else if yyl4753 != len(yyv4753) { + yyv4753 = yyv4753[:yyl4753] + yyc4753 = true + } + yyj4753 := 0 + for ; yyj4753 < yyrr4753; yyj4753++ { + yyh4753.ElemContainerState(yyj4753) + if r.TryDecodeAsNil() { + yyv4753[yyj4753] = PreferAvoidPodsEntry{} + } else { + yyv4754 := &yyv4753[yyj4753] + yyv4754.CodecDecodeSelf(d) + } + + } + if yyrt4753 { + for ; yyj4753 < yyl4753; yyj4753++ { + yyv4753 = append(yyv4753, PreferAvoidPodsEntry{}) + yyh4753.ElemContainerState(yyj4753) + if r.TryDecodeAsNil() { + yyv4753[yyj4753] = PreferAvoidPodsEntry{} + } else { + yyv4755 := &yyv4753[yyj4753] + yyv4755.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4753 := 0 + for ; !r.CheckBreak(); yyj4753++ { + + if yyj4753 >= len(yyv4753) { + yyv4753 = append(yyv4753, PreferAvoidPodsEntry{}) // var yyz4753 PreferAvoidPodsEntry + yyc4753 = true + } + yyh4753.ElemContainerState(yyj4753) + if yyj4753 < len(yyv4753) { + if r.TryDecodeAsNil() { + yyv4753[yyj4753] = PreferAvoidPodsEntry{} + } else { + yyv4756 := &yyv4753[yyj4753] + yyv4756.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4753 < len(yyv4753) { + yyv4753 = yyv4753[:yyj4753] + yyc4753 = true + } else if yyj4753 == 0 && yyv4753 == nil { + yyv4753 = []PreferAvoidPodsEntry{} + yyc4753 = true + } + } + yyh4753.End() + if yyc4753 { + *v = yyv4753 + } +} + +func (x codecSelfer1234) encResourceList(v ResourceList, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeMapStart(len(v)) + for yyk4757, yyv4757 := range v { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + yyk4757.CodecEncodeSelf(e) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4758 := &yyv4757 + yym4759 := z.EncBinary() + _ = yym4759 + if false { + } else if z.HasExtensions() && z.EncExt(yy4758) { + } else if !yym4759 && z.IsJSONHandle() { + z.EncJSONMarshal(yy4758) + } else { + z.EncFallback(yy4758) + } + } + z.EncSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4760 := *v + yyl4760 := r.ReadMapStart() + yybh4760 := z.DecBasicHandle() + if yyv4760 == nil { + yyrl4760, _ := z.DecInferLen(yyl4760, yybh4760.MaxInitLen, 72) + yyv4760 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4760) + *v = yyv4760 + } + var yymk4760 ResourceName + var yymv4760 pkg3_resource.Quantity + var yymg4760 bool + if yybh4760.MapValueReset { + yymg4760 = true + } + if yyl4760 > 0 { + for yyj4760 := 0; yyj4760 < yyl4760; yyj4760++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4760 = "" + } else { + yymk4760 = ResourceName(r.DecodeString()) + } + + if yymg4760 { + yymv4760 = yyv4760[yymk4760] + } else { + yymv4760 = pkg3_resource.Quantity{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4760 = pkg3_resource.Quantity{} + } else { + yyv4762 := &yymv4760 + yym4763 := z.DecBinary() + _ = yym4763 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4762) { + } else if !yym4763 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4762) + } else { + z.DecFallback(yyv4762, false) + } + } + + if yyv4760 != nil { + yyv4760[yymk4760] = yymv4760 + } + } + } else if yyl4760 < 0 { + for yyj4760 := 0; !r.CheckBreak(); yyj4760++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4760 = "" + } else { + yymk4760 = ResourceName(r.DecodeString()) + } + + if yymg4760 { + yymv4760 = yyv4760[yymk4760] + } else { + yymv4760 = pkg3_resource.Quantity{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4760 = pkg3_resource.Quantity{} + } else { + yyv4765 := &yymv4760 + yym4766 := z.DecBinary() + _ = yym4766 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4765) { + } else if !yym4766 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4765) + } else { + z.DecFallback(yyv4765, false) + } + } + + if yyv4760 != nil { + yyv4760[yymk4760] = yymv4760 + } + } + } // else len==0: TODO: Should we clear map entries? + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) encSliceNode(v []Node, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4767 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4768 := &yyv4767 + yy4768.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4769 := *v + yyh4769, yyl4769 := z.DecSliceHelperStart() + var yyc4769 bool + if yyl4769 == 0 { + if yyv4769 == nil { + yyv4769 = []Node{} + yyc4769 = true + } else if len(yyv4769) != 0 { + yyv4769 = yyv4769[:0] + yyc4769 = true + } + } else if yyl4769 > 0 { + var yyrr4769, yyrl4769 int + var yyrt4769 bool + if yyl4769 > cap(yyv4769) { + + yyrg4769 := len(yyv4769) > 0 + yyv24769 := yyv4769 + yyrl4769, yyrt4769 = z.DecInferLen(yyl4769, z.DecBasicHandle().MaxInitLen, 632) + if yyrt4769 { + if yyrl4769 <= cap(yyv4769) { + yyv4769 = yyv4769[:yyrl4769] + } else { + yyv4769 = make([]Node, yyrl4769) + } + } else { + yyv4769 = make([]Node, yyrl4769) + } + yyc4769 = true + yyrr4769 = len(yyv4769) + if yyrg4769 { + copy(yyv4769, yyv24769) + } + } else if yyl4769 != len(yyv4769) { + yyv4769 = yyv4769[:yyl4769] + yyc4769 = true + } + yyj4769 := 0 + for ; yyj4769 < yyrr4769; yyj4769++ { + yyh4769.ElemContainerState(yyj4769) + if r.TryDecodeAsNil() { + yyv4769[yyj4769] = Node{} + } else { + yyv4770 := &yyv4769[yyj4769] + yyv4770.CodecDecodeSelf(d) + } + + } + if yyrt4769 { + for ; yyj4769 < yyl4769; yyj4769++ { + yyv4769 = append(yyv4769, Node{}) + yyh4769.ElemContainerState(yyj4769) + if r.TryDecodeAsNil() { + yyv4769[yyj4769] = Node{} + } else { + yyv4771 := &yyv4769[yyj4769] + yyv4771.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4769 := 0 + for ; !r.CheckBreak(); yyj4769++ { + + if yyj4769 >= len(yyv4769) { + yyv4769 = append(yyv4769, Node{}) // var yyz4769 Node + yyc4769 = true + } + yyh4769.ElemContainerState(yyj4769) + if yyj4769 < len(yyv4769) { + if r.TryDecodeAsNil() { + yyv4769[yyj4769] = Node{} + } else { + yyv4772 := &yyv4769[yyj4769] + yyv4772.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4769 < len(yyv4769) { + yyv4769 = yyv4769[:yyj4769] + yyc4769 = true + } else if yyj4769 == 0 && yyv4769 == nil { + yyv4769 = []Node{} + yyc4769 = true + } + } + yyh4769.End() + if yyc4769 { + *v = yyv4769 + } +} + +func (x codecSelfer1234) encSliceFinalizerName(v []FinalizerName, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4773 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4773.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4774 := *v + yyh4774, yyl4774 := z.DecSliceHelperStart() + var yyc4774 bool + if yyl4774 == 0 { + if yyv4774 == nil { + yyv4774 = []FinalizerName{} + yyc4774 = true + } else if len(yyv4774) != 0 { + yyv4774 = yyv4774[:0] + yyc4774 = true + } + } else if yyl4774 > 0 { + var yyrr4774, yyrl4774 int + var yyrt4774 bool + if yyl4774 > cap(yyv4774) { + + yyrl4774, yyrt4774 = z.DecInferLen(yyl4774, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4774 { + if yyrl4774 <= cap(yyv4774) { + yyv4774 = yyv4774[:yyrl4774] + } else { + yyv4774 = make([]FinalizerName, yyrl4774) + } + } else { + yyv4774 = make([]FinalizerName, yyrl4774) + } + yyc4774 = true + yyrr4774 = len(yyv4774) + } else if yyl4774 != len(yyv4774) { + yyv4774 = yyv4774[:yyl4774] + yyc4774 = true + } + yyj4774 := 0 + for ; yyj4774 < yyrr4774; yyj4774++ { + yyh4774.ElemContainerState(yyj4774) + if r.TryDecodeAsNil() { + yyv4774[yyj4774] = "" + } else { + yyv4774[yyj4774] = FinalizerName(r.DecodeString()) + } + + } + if yyrt4774 { + for ; yyj4774 < yyl4774; yyj4774++ { + yyv4774 = append(yyv4774, "") + yyh4774.ElemContainerState(yyj4774) + if r.TryDecodeAsNil() { + yyv4774[yyj4774] = "" + } else { + yyv4774[yyj4774] = FinalizerName(r.DecodeString()) + } + + } + } + + } else { + yyj4774 := 0 + for ; !r.CheckBreak(); yyj4774++ { + + if yyj4774 >= len(yyv4774) { + yyv4774 = append(yyv4774, "") // var yyz4774 FinalizerName + yyc4774 = true + } + yyh4774.ElemContainerState(yyj4774) + if yyj4774 < len(yyv4774) { + if r.TryDecodeAsNil() { + yyv4774[yyj4774] = "" + } else { + yyv4774[yyj4774] = FinalizerName(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4774 < len(yyv4774) { + yyv4774 = yyv4774[:yyj4774] + yyc4774 = true + } else if yyj4774 == 0 && yyv4774 == nil { + yyv4774 = []FinalizerName{} + yyc4774 = true + } + } + yyh4774.End() + if yyc4774 { + *v = yyv4774 + } +} + +func (x codecSelfer1234) encSliceNamespace(v []Namespace, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4778 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4779 := &yyv4778 + yy4779.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4780 := *v + yyh4780, yyl4780 := z.DecSliceHelperStart() + var yyc4780 bool + if yyl4780 == 0 { + if yyv4780 == nil { + yyv4780 = []Namespace{} + yyc4780 = true + } else if len(yyv4780) != 0 { + yyv4780 = yyv4780[:0] + yyc4780 = true + } + } else if yyl4780 > 0 { + var yyrr4780, yyrl4780 int + var yyrt4780 bool + if yyl4780 > cap(yyv4780) { + + yyrg4780 := len(yyv4780) > 0 + yyv24780 := yyv4780 + yyrl4780, yyrt4780 = z.DecInferLen(yyl4780, z.DecBasicHandle().MaxInitLen, 296) + if yyrt4780 { + if yyrl4780 <= cap(yyv4780) { + yyv4780 = yyv4780[:yyrl4780] + } else { + yyv4780 = make([]Namespace, yyrl4780) + } + } else { + yyv4780 = make([]Namespace, yyrl4780) + } + yyc4780 = true + yyrr4780 = len(yyv4780) + if yyrg4780 { + copy(yyv4780, yyv24780) + } + } else if yyl4780 != len(yyv4780) { + yyv4780 = yyv4780[:yyl4780] + yyc4780 = true + } + yyj4780 := 0 + for ; yyj4780 < yyrr4780; yyj4780++ { + yyh4780.ElemContainerState(yyj4780) + if r.TryDecodeAsNil() { + yyv4780[yyj4780] = Namespace{} + } else { + yyv4781 := &yyv4780[yyj4780] + yyv4781.CodecDecodeSelf(d) + } + + } + if yyrt4780 { + for ; yyj4780 < yyl4780; yyj4780++ { + yyv4780 = append(yyv4780, Namespace{}) + yyh4780.ElemContainerState(yyj4780) + if r.TryDecodeAsNil() { + yyv4780[yyj4780] = Namespace{} + } else { + yyv4782 := &yyv4780[yyj4780] + yyv4782.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4780 := 0 + for ; !r.CheckBreak(); yyj4780++ { + + if yyj4780 >= len(yyv4780) { + yyv4780 = append(yyv4780, Namespace{}) // var yyz4780 Namespace + yyc4780 = true + } + yyh4780.ElemContainerState(yyj4780) + if yyj4780 < len(yyv4780) { + if r.TryDecodeAsNil() { + yyv4780[yyj4780] = Namespace{} + } else { + yyv4783 := &yyv4780[yyj4780] + yyv4783.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4780 < len(yyv4780) { + yyv4780 = yyv4780[:yyj4780] + yyc4780 = true + } else if yyj4780 == 0 && yyv4780 == nil { + yyv4780 = []Namespace{} + yyc4780 = true + } + } + yyh4780.End() + if yyc4780 { + *v = yyv4780 + } +} + +func (x codecSelfer1234) encSliceEvent(v []Event, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4784 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4785 := &yyv4784 + yy4785.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4786 := *v + yyh4786, yyl4786 := z.DecSliceHelperStart() + var yyc4786 bool + if yyl4786 == 0 { + if yyv4786 == nil { + yyv4786 = []Event{} + yyc4786 = true + } else if len(yyv4786) != 0 { + yyv4786 = yyv4786[:0] + yyc4786 = true + } + } else if yyl4786 > 0 { + var yyrr4786, yyrl4786 int + var yyrt4786 bool + if yyl4786 > cap(yyv4786) { + + yyrg4786 := len(yyv4786) > 0 + yyv24786 := yyv4786 + yyrl4786, yyrt4786 = z.DecInferLen(yyl4786, z.DecBasicHandle().MaxInitLen, 504) + if yyrt4786 { + if yyrl4786 <= cap(yyv4786) { + yyv4786 = yyv4786[:yyrl4786] + } else { + yyv4786 = make([]Event, yyrl4786) + } + } else { + yyv4786 = make([]Event, yyrl4786) + } + yyc4786 = true + yyrr4786 = len(yyv4786) + if yyrg4786 { + copy(yyv4786, yyv24786) + } + } else if yyl4786 != len(yyv4786) { + yyv4786 = yyv4786[:yyl4786] + yyc4786 = true + } + yyj4786 := 0 + for ; yyj4786 < yyrr4786; yyj4786++ { + yyh4786.ElemContainerState(yyj4786) + if r.TryDecodeAsNil() { + yyv4786[yyj4786] = Event{} + } else { + yyv4787 := &yyv4786[yyj4786] + yyv4787.CodecDecodeSelf(d) + } + + } + if yyrt4786 { + for ; yyj4786 < yyl4786; yyj4786++ { + yyv4786 = append(yyv4786, Event{}) + yyh4786.ElemContainerState(yyj4786) + if r.TryDecodeAsNil() { + yyv4786[yyj4786] = Event{} + } else { + yyv4788 := &yyv4786[yyj4786] + yyv4788.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4786 := 0 + for ; !r.CheckBreak(); yyj4786++ { + + if yyj4786 >= len(yyv4786) { + yyv4786 = append(yyv4786, Event{}) // var yyz4786 Event + yyc4786 = true + } + yyh4786.ElemContainerState(yyj4786) + if yyj4786 < len(yyv4786) { + if r.TryDecodeAsNil() { + yyv4786[yyj4786] = Event{} + } else { + yyv4789 := &yyv4786[yyj4786] + yyv4789.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4786 < len(yyv4786) { + yyv4786 = yyv4786[:yyj4786] + yyc4786 = true + } else if yyj4786 == 0 && yyv4786 == nil { + yyv4786 = []Event{} + yyc4786 = true + } + } + yyh4786.End() + if yyc4786 { + *v = yyv4786 + } +} + +func (x codecSelfer1234) encSliceruntime_Object(v []pkg7_runtime.Object, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4790 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyv4790 == nil { + r.EncodeNil() + } else { + yym4791 := z.EncBinary() + _ = yym4791 + if false { + } else if z.HasExtensions() && z.EncExt(yyv4790) { + } else { + z.EncFallback(yyv4790) + } + } + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg7_runtime.Object, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4792 := *v + yyh4792, yyl4792 := z.DecSliceHelperStart() + var yyc4792 bool + if yyl4792 == 0 { + if yyv4792 == nil { + yyv4792 = []pkg7_runtime.Object{} + yyc4792 = true + } else if len(yyv4792) != 0 { + yyv4792 = yyv4792[:0] + yyc4792 = true + } + } else if yyl4792 > 0 { + var yyrr4792, yyrl4792 int + var yyrt4792 bool + if yyl4792 > cap(yyv4792) { + + yyrg4792 := len(yyv4792) > 0 + yyv24792 := yyv4792 + yyrl4792, yyrt4792 = z.DecInferLen(yyl4792, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4792 { + if yyrl4792 <= cap(yyv4792) { + yyv4792 = yyv4792[:yyrl4792] + } else { + yyv4792 = make([]pkg7_runtime.Object, yyrl4792) + } + } else { + yyv4792 = make([]pkg7_runtime.Object, yyrl4792) + } + yyc4792 = true + yyrr4792 = len(yyv4792) + if yyrg4792 { + copy(yyv4792, yyv24792) + } + } else if yyl4792 != len(yyv4792) { + yyv4792 = yyv4792[:yyl4792] + yyc4792 = true + } + yyj4792 := 0 + for ; yyj4792 < yyrr4792; yyj4792++ { + yyh4792.ElemContainerState(yyj4792) + if r.TryDecodeAsNil() { + yyv4792[yyj4792] = nil + } else { + yyv4793 := &yyv4792[yyj4792] + yym4794 := z.DecBinary() + _ = yym4794 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4793) { + } else { + z.DecFallback(yyv4793, true) + } + } + + } + if yyrt4792 { + for ; yyj4792 < yyl4792; yyj4792++ { + yyv4792 = append(yyv4792, nil) + yyh4792.ElemContainerState(yyj4792) + if r.TryDecodeAsNil() { + yyv4792[yyj4792] = nil + } else { + yyv4795 := &yyv4792[yyj4792] + yym4796 := z.DecBinary() + _ = yym4796 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4795) { + } else { + z.DecFallback(yyv4795, true) + } + } + + } + } + + } else { + yyj4792 := 0 + for ; !r.CheckBreak(); yyj4792++ { + + if yyj4792 >= len(yyv4792) { + yyv4792 = append(yyv4792, nil) // var yyz4792 pkg7_runtime.Object + yyc4792 = true + } + yyh4792.ElemContainerState(yyj4792) + if yyj4792 < len(yyv4792) { + if r.TryDecodeAsNil() { + yyv4792[yyj4792] = nil + } else { + yyv4797 := &yyv4792[yyj4792] + yym4798 := z.DecBinary() + _ = yym4798 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4797) { + } else { + z.DecFallback(yyv4797, true) + } + } + + } else { + z.DecSwallow() + } + + } + if yyj4792 < len(yyv4792) { + yyv4792 = yyv4792[:yyj4792] + yyc4792 = true + } else if yyj4792 == 0 && yyv4792 == nil { + yyv4792 = []pkg7_runtime.Object{} + yyc4792 = true + } + } + yyh4792.End() + if yyc4792 { + *v = yyv4792 + } +} + +func (x codecSelfer1234) encSliceLimitRangeItem(v []LimitRangeItem, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4799 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4800 := &yyv4799 + yy4800.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4801 := *v + yyh4801, yyl4801 := z.DecSliceHelperStart() + var yyc4801 bool + if yyl4801 == 0 { + if yyv4801 == nil { + yyv4801 = []LimitRangeItem{} + yyc4801 = true + } else if len(yyv4801) != 0 { + yyv4801 = yyv4801[:0] + yyc4801 = true + } + } else if yyl4801 > 0 { + var yyrr4801, yyrl4801 int + var yyrt4801 bool + if yyl4801 > cap(yyv4801) { + + yyrg4801 := len(yyv4801) > 0 + yyv24801 := yyv4801 + yyrl4801, yyrt4801 = z.DecInferLen(yyl4801, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4801 { + if yyrl4801 <= cap(yyv4801) { + yyv4801 = yyv4801[:yyrl4801] + } else { + yyv4801 = make([]LimitRangeItem, yyrl4801) + } + } else { + yyv4801 = make([]LimitRangeItem, yyrl4801) + } + yyc4801 = true + yyrr4801 = len(yyv4801) + if yyrg4801 { + copy(yyv4801, yyv24801) + } + } else if yyl4801 != len(yyv4801) { + yyv4801 = yyv4801[:yyl4801] + yyc4801 = true + } + yyj4801 := 0 + for ; yyj4801 < yyrr4801; yyj4801++ { + yyh4801.ElemContainerState(yyj4801) + if r.TryDecodeAsNil() { + yyv4801[yyj4801] = LimitRangeItem{} + } else { + yyv4802 := &yyv4801[yyj4801] + yyv4802.CodecDecodeSelf(d) + } + + } + if yyrt4801 { + for ; yyj4801 < yyl4801; yyj4801++ { + yyv4801 = append(yyv4801, LimitRangeItem{}) + yyh4801.ElemContainerState(yyj4801) + if r.TryDecodeAsNil() { + yyv4801[yyj4801] = LimitRangeItem{} + } else { + yyv4803 := &yyv4801[yyj4801] + yyv4803.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4801 := 0 + for ; !r.CheckBreak(); yyj4801++ { + + if yyj4801 >= len(yyv4801) { + yyv4801 = append(yyv4801, LimitRangeItem{}) // var yyz4801 LimitRangeItem + yyc4801 = true + } + yyh4801.ElemContainerState(yyj4801) + if yyj4801 < len(yyv4801) { + if r.TryDecodeAsNil() { + yyv4801[yyj4801] = LimitRangeItem{} + } else { + yyv4804 := &yyv4801[yyj4801] + yyv4804.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4801 < len(yyv4801) { + yyv4801 = yyv4801[:yyj4801] + yyc4801 = true + } else if yyj4801 == 0 && yyv4801 == nil { + yyv4801 = []LimitRangeItem{} + yyc4801 = true + } + } + yyh4801.End() + if yyc4801 { + *v = yyv4801 + } +} + +func (x codecSelfer1234) encSliceLimitRange(v []LimitRange, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4805 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4806 := &yyv4805 + yy4806.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4807 := *v + yyh4807, yyl4807 := z.DecSliceHelperStart() + var yyc4807 bool + if yyl4807 == 0 { + if yyv4807 == nil { + yyv4807 = []LimitRange{} + yyc4807 = true + } else if len(yyv4807) != 0 { + yyv4807 = yyv4807[:0] + yyc4807 = true + } + } else if yyl4807 > 0 { + var yyrr4807, yyrl4807 int + var yyrt4807 bool + if yyl4807 > cap(yyv4807) { + + yyrg4807 := len(yyv4807) > 0 + yyv24807 := yyv4807 + yyrl4807, yyrt4807 = z.DecInferLen(yyl4807, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4807 { + if yyrl4807 <= cap(yyv4807) { + yyv4807 = yyv4807[:yyrl4807] + } else { + yyv4807 = make([]LimitRange, yyrl4807) + } + } else { + yyv4807 = make([]LimitRange, yyrl4807) + } + yyc4807 = true + yyrr4807 = len(yyv4807) + if yyrg4807 { + copy(yyv4807, yyv24807) + } + } else if yyl4807 != len(yyv4807) { + yyv4807 = yyv4807[:yyl4807] + yyc4807 = true + } + yyj4807 := 0 + for ; yyj4807 < yyrr4807; yyj4807++ { + yyh4807.ElemContainerState(yyj4807) + if r.TryDecodeAsNil() { + yyv4807[yyj4807] = LimitRange{} + } else { + yyv4808 := &yyv4807[yyj4807] + yyv4808.CodecDecodeSelf(d) + } + + } + if yyrt4807 { + for ; yyj4807 < yyl4807; yyj4807++ { + yyv4807 = append(yyv4807, LimitRange{}) + yyh4807.ElemContainerState(yyj4807) + if r.TryDecodeAsNil() { + yyv4807[yyj4807] = LimitRange{} + } else { + yyv4809 := &yyv4807[yyj4807] + yyv4809.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4807 := 0 + for ; !r.CheckBreak(); yyj4807++ { + + if yyj4807 >= len(yyv4807) { + yyv4807 = append(yyv4807, LimitRange{}) // var yyz4807 LimitRange + yyc4807 = true + } + yyh4807.ElemContainerState(yyj4807) + if yyj4807 < len(yyv4807) { + if r.TryDecodeAsNil() { + yyv4807[yyj4807] = LimitRange{} + } else { + yyv4810 := &yyv4807[yyj4807] + yyv4810.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4807 < len(yyv4807) { + yyv4807 = yyv4807[:yyj4807] + yyc4807 = true + } else if yyj4807 == 0 && yyv4807 == nil { + yyv4807 = []LimitRange{} + yyc4807 = true + } + } + yyh4807.End() + if yyc4807 { + *v = yyv4807 + } +} + +func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4811 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4811.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4812 := *v + yyh4812, yyl4812 := z.DecSliceHelperStart() + var yyc4812 bool + if yyl4812 == 0 { + if yyv4812 == nil { + yyv4812 = []ResourceQuotaScope{} + yyc4812 = true + } else if len(yyv4812) != 0 { + yyv4812 = yyv4812[:0] + yyc4812 = true + } + } else if yyl4812 > 0 { + var yyrr4812, yyrl4812 int + var yyrt4812 bool + if yyl4812 > cap(yyv4812) { + + yyrl4812, yyrt4812 = z.DecInferLen(yyl4812, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4812 { + if yyrl4812 <= cap(yyv4812) { + yyv4812 = yyv4812[:yyrl4812] + } else { + yyv4812 = make([]ResourceQuotaScope, yyrl4812) + } + } else { + yyv4812 = make([]ResourceQuotaScope, yyrl4812) + } + yyc4812 = true + yyrr4812 = len(yyv4812) + } else if yyl4812 != len(yyv4812) { + yyv4812 = yyv4812[:yyl4812] + yyc4812 = true + } + yyj4812 := 0 + for ; yyj4812 < yyrr4812; yyj4812++ { + yyh4812.ElemContainerState(yyj4812) + if r.TryDecodeAsNil() { + yyv4812[yyj4812] = "" + } else { + yyv4812[yyj4812] = ResourceQuotaScope(r.DecodeString()) + } + + } + if yyrt4812 { + for ; yyj4812 < yyl4812; yyj4812++ { + yyv4812 = append(yyv4812, "") + yyh4812.ElemContainerState(yyj4812) + if r.TryDecodeAsNil() { + yyv4812[yyj4812] = "" + } else { + yyv4812[yyj4812] = ResourceQuotaScope(r.DecodeString()) + } + + } + } + + } else { + yyj4812 := 0 + for ; !r.CheckBreak(); yyj4812++ { + + if yyj4812 >= len(yyv4812) { + yyv4812 = append(yyv4812, "") // var yyz4812 ResourceQuotaScope + yyc4812 = true + } + yyh4812.ElemContainerState(yyj4812) + if yyj4812 < len(yyv4812) { + if r.TryDecodeAsNil() { + yyv4812[yyj4812] = "" + } else { + yyv4812[yyj4812] = ResourceQuotaScope(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4812 < len(yyv4812) { + yyv4812 = yyv4812[:yyj4812] + yyc4812 = true + } else if yyj4812 == 0 && yyv4812 == nil { + yyv4812 = []ResourceQuotaScope{} + yyc4812 = true + } + } + yyh4812.End() + if yyc4812 { + *v = yyv4812 + } +} + +func (x codecSelfer1234) encSliceResourceQuota(v []ResourceQuota, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4816 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4817 := &yyv4816 + yy4817.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4818 := *v + yyh4818, yyl4818 := z.DecSliceHelperStart() + var yyc4818 bool + if yyl4818 == 0 { + if yyv4818 == nil { + yyv4818 = []ResourceQuota{} + yyc4818 = true + } else if len(yyv4818) != 0 { + yyv4818 = yyv4818[:0] + yyc4818 = true + } + } else if yyl4818 > 0 { + var yyrr4818, yyrl4818 int + var yyrt4818 bool + if yyl4818 > cap(yyv4818) { + + yyrg4818 := len(yyv4818) > 0 + yyv24818 := yyv4818 + yyrl4818, yyrt4818 = z.DecInferLen(yyl4818, z.DecBasicHandle().MaxInitLen, 304) + if yyrt4818 { + if yyrl4818 <= cap(yyv4818) { + yyv4818 = yyv4818[:yyrl4818] + } else { + yyv4818 = make([]ResourceQuota, yyrl4818) + } + } else { + yyv4818 = make([]ResourceQuota, yyrl4818) + } + yyc4818 = true + yyrr4818 = len(yyv4818) + if yyrg4818 { + copy(yyv4818, yyv24818) + } + } else if yyl4818 != len(yyv4818) { + yyv4818 = yyv4818[:yyl4818] + yyc4818 = true + } + yyj4818 := 0 + for ; yyj4818 < yyrr4818; yyj4818++ { + yyh4818.ElemContainerState(yyj4818) + if r.TryDecodeAsNil() { + yyv4818[yyj4818] = ResourceQuota{} + } else { + yyv4819 := &yyv4818[yyj4818] + yyv4819.CodecDecodeSelf(d) + } + + } + if yyrt4818 { + for ; yyj4818 < yyl4818; yyj4818++ { + yyv4818 = append(yyv4818, ResourceQuota{}) + yyh4818.ElemContainerState(yyj4818) + if r.TryDecodeAsNil() { + yyv4818[yyj4818] = ResourceQuota{} + } else { + yyv4820 := &yyv4818[yyj4818] + yyv4820.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4818 := 0 + for ; !r.CheckBreak(); yyj4818++ { + + if yyj4818 >= len(yyv4818) { + yyv4818 = append(yyv4818, ResourceQuota{}) // var yyz4818 ResourceQuota + yyc4818 = true + } + yyh4818.ElemContainerState(yyj4818) + if yyj4818 < len(yyv4818) { + if r.TryDecodeAsNil() { + yyv4818[yyj4818] = ResourceQuota{} + } else { + yyv4821 := &yyv4818[yyj4818] + yyv4821.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4818 < len(yyv4818) { + yyv4818 = yyv4818[:yyj4818] + yyc4818 = true + } else if yyj4818 == 0 && yyv4818 == nil { + yyv4818 = []ResourceQuota{} + yyc4818 = true + } + } + yyh4818.End() + if yyc4818 { + *v = yyv4818 + } +} + func (x codecSelfer1234) encMapstringSliceuint8(v map[string][]uint8, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) - for yyk4650, yyv4650 := range v { + for yyk4822, yyv4822 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym4651 := z.EncBinary() - _ = yym4651 + yym4823 := z.EncBinary() + _ = yym4823 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk4650)) + r.EncodeString(codecSelferC_UTF81234, string(yyk4822)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv4650 == nil { + if yyv4822 == nil { r.EncodeNil() } else { - yym4652 := z.EncBinary() - _ = yym4652 + yym4824 := z.EncBinary() + _ = yym4824 if false { } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4650)) + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4822)) } } } @@ -59837,80 +61885,80 @@ func (x codecSelfer1234) decMapstringSliceuint8(v *map[string][]uint8, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4653 := *v - yyl4653 := r.ReadMapStart() - yybh4653 := z.DecBasicHandle() - if yyv4653 == nil { - yyrl4653, _ := z.DecInferLen(yyl4653, yybh4653.MaxInitLen, 40) - yyv4653 = make(map[string][]uint8, yyrl4653) - *v = yyv4653 + yyv4825 := *v + yyl4825 := r.ReadMapStart() + yybh4825 := z.DecBasicHandle() + if yyv4825 == nil { + yyrl4825, _ := z.DecInferLen(yyl4825, yybh4825.MaxInitLen, 40) + yyv4825 = make(map[string][]uint8, yyrl4825) + *v = yyv4825 } - var yymk4653 string - var yymv4653 []uint8 - var yymg4653 bool - if yybh4653.MapValueReset { - yymg4653 = true + var yymk4825 string + var yymv4825 []uint8 + var yymg4825 bool + if yybh4825.MapValueReset { + yymg4825 = true } - if yyl4653 > 0 { - for yyj4653 := 0; yyj4653 < yyl4653; yyj4653++ { + if yyl4825 > 0 { + for yyj4825 := 0; yyj4825 < yyl4825; yyj4825++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk4653 = "" + yymk4825 = "" } else { - yymk4653 = string(r.DecodeString()) + yymk4825 = string(r.DecodeString()) } - if yymg4653 { - yymv4653 = yyv4653[yymk4653] + if yymg4825 { + yymv4825 = yyv4825[yymk4825] } else { - yymv4653 = nil + yymv4825 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv4653 = nil + yymv4825 = nil } else { - yyv4655 := &yymv4653 - yym4656 := z.DecBinary() - _ = yym4656 + yyv4827 := &yymv4825 + yym4828 := z.DecBinary() + _ = yym4828 if false { } else { - *yyv4655 = r.DecodeBytes(*(*[]byte)(yyv4655), false, false) + *yyv4827 = r.DecodeBytes(*(*[]byte)(yyv4827), false, false) } } - if yyv4653 != nil { - yyv4653[yymk4653] = yymv4653 + if yyv4825 != nil { + yyv4825[yymk4825] = yymv4825 } } - } else if yyl4653 < 0 { - for yyj4653 := 0; !r.CheckBreak(); yyj4653++ { + } else if yyl4825 < 0 { + for yyj4825 := 0; !r.CheckBreak(); yyj4825++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk4653 = "" + yymk4825 = "" } else { - yymk4653 = string(r.DecodeString()) + yymk4825 = string(r.DecodeString()) } - if yymg4653 { - yymv4653 = yyv4653[yymk4653] + if yymg4825 { + yymv4825 = yyv4825[yymk4825] } else { - yymv4653 = nil + yymv4825 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv4653 = nil + yymv4825 = nil } else { - yyv4658 := &yymv4653 - yym4659 := z.DecBinary() - _ = yym4659 + yyv4830 := &yymv4825 + yym4831 := z.DecBinary() + _ = yym4831 if false { } else { - *yyv4658 = r.DecodeBytes(*(*[]byte)(yyv4658), false, false) + *yyv4830 = r.DecodeBytes(*(*[]byte)(yyv4830), false, false) } } - if yyv4653 != nil { - yyv4653[yymk4653] = yymv4653 + if yyv4825 != nil { + yyv4825[yymk4825] = yymv4825 } } } // else len==0: TODO: Should we clear map entries? @@ -59922,10 +61970,10 @@ func (x codecSelfer1234) encSliceSecret(v []Secret, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4660 := range v { + for _, yyv4832 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4661 := &yyv4660 - yy4661.CodecEncodeSelf(e) + yy4833 := &yyv4832 + yy4833.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59935,83 +61983,83 @@ func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4662 := *v - yyh4662, yyl4662 := z.DecSliceHelperStart() - var yyc4662 bool - if yyl4662 == 0 { - if yyv4662 == nil { - yyv4662 = []Secret{} - yyc4662 = true - } else if len(yyv4662) != 0 { - yyv4662 = yyv4662[:0] - yyc4662 = true + yyv4834 := *v + yyh4834, yyl4834 := z.DecSliceHelperStart() + var yyc4834 bool + if yyl4834 == 0 { + if yyv4834 == nil { + yyv4834 = []Secret{} + yyc4834 = true + } else if len(yyv4834) != 0 { + yyv4834 = yyv4834[:0] + yyc4834 = true } - } else if yyl4662 > 0 { - var yyrr4662, yyrl4662 int - var yyrt4662 bool - if yyl4662 > cap(yyv4662) { + } else if yyl4834 > 0 { + var yyrr4834, yyrl4834 int + var yyrt4834 bool + if yyl4834 > cap(yyv4834) { - yyrg4662 := len(yyv4662) > 0 - yyv24662 := yyv4662 - yyrl4662, yyrt4662 = z.DecInferLen(yyl4662, z.DecBasicHandle().MaxInitLen, 264) - if yyrt4662 { - if yyrl4662 <= cap(yyv4662) { - yyv4662 = yyv4662[:yyrl4662] + yyrg4834 := len(yyv4834) > 0 + yyv24834 := yyv4834 + yyrl4834, yyrt4834 = z.DecInferLen(yyl4834, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4834 { + if yyrl4834 <= cap(yyv4834) { + yyv4834 = yyv4834[:yyrl4834] } else { - yyv4662 = make([]Secret, yyrl4662) + yyv4834 = make([]Secret, yyrl4834) } } else { - yyv4662 = make([]Secret, yyrl4662) + yyv4834 = make([]Secret, yyrl4834) } - yyc4662 = true - yyrr4662 = len(yyv4662) - if yyrg4662 { - copy(yyv4662, yyv24662) + yyc4834 = true + yyrr4834 = len(yyv4834) + if yyrg4834 { + copy(yyv4834, yyv24834) } - } else if yyl4662 != len(yyv4662) { - yyv4662 = yyv4662[:yyl4662] - yyc4662 = true + } else if yyl4834 != len(yyv4834) { + yyv4834 = yyv4834[:yyl4834] + yyc4834 = true } - yyj4662 := 0 - for ; yyj4662 < yyrr4662; yyj4662++ { - yyh4662.ElemContainerState(yyj4662) + yyj4834 := 0 + for ; yyj4834 < yyrr4834; yyj4834++ { + yyh4834.ElemContainerState(yyj4834) if r.TryDecodeAsNil() { - yyv4662[yyj4662] = Secret{} + yyv4834[yyj4834] = Secret{} } else { - yyv4663 := &yyv4662[yyj4662] - yyv4663.CodecDecodeSelf(d) + yyv4835 := &yyv4834[yyj4834] + yyv4835.CodecDecodeSelf(d) } } - if yyrt4662 { - for ; yyj4662 < yyl4662; yyj4662++ { - yyv4662 = append(yyv4662, Secret{}) - yyh4662.ElemContainerState(yyj4662) + if yyrt4834 { + for ; yyj4834 < yyl4834; yyj4834++ { + yyv4834 = append(yyv4834, Secret{}) + yyh4834.ElemContainerState(yyj4834) if r.TryDecodeAsNil() { - yyv4662[yyj4662] = Secret{} + yyv4834[yyj4834] = Secret{} } else { - yyv4664 := &yyv4662[yyj4662] - yyv4664.CodecDecodeSelf(d) + yyv4836 := &yyv4834[yyj4834] + yyv4836.CodecDecodeSelf(d) } } } } else { - yyj4662 := 0 - for ; !r.CheckBreak(); yyj4662++ { + yyj4834 := 0 + for ; !r.CheckBreak(); yyj4834++ { - if yyj4662 >= len(yyv4662) { - yyv4662 = append(yyv4662, Secret{}) // var yyz4662 Secret - yyc4662 = true + if yyj4834 >= len(yyv4834) { + yyv4834 = append(yyv4834, Secret{}) // var yyz4834 Secret + yyc4834 = true } - yyh4662.ElemContainerState(yyj4662) - if yyj4662 < len(yyv4662) { + yyh4834.ElemContainerState(yyj4834) + if yyj4834 < len(yyv4834) { if r.TryDecodeAsNil() { - yyv4662[yyj4662] = Secret{} + yyv4834[yyj4834] = Secret{} } else { - yyv4665 := &yyv4662[yyj4662] - yyv4665.CodecDecodeSelf(d) + yyv4837 := &yyv4834[yyj4834] + yyv4837.CodecDecodeSelf(d) } } else { @@ -60019,17 +62067,17 @@ func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { } } - if yyj4662 < len(yyv4662) { - yyv4662 = yyv4662[:yyj4662] - yyc4662 = true - } else if yyj4662 == 0 && yyv4662 == nil { - yyv4662 = []Secret{} - yyc4662 = true + if yyj4834 < len(yyv4834) { + yyv4834 = yyv4834[:yyj4834] + yyc4834 = true + } else if yyj4834 == 0 && yyv4834 == nil { + yyv4834 = []Secret{} + yyc4834 = true } } - yyh4662.End() - if yyc4662 { - *v = yyv4662 + yyh4834.End() + if yyc4834 { + *v = yyv4834 } } @@ -60038,10 +62086,10 @@ func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4666 := range v { + for _, yyv4838 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4667 := &yyv4666 - yy4667.CodecEncodeSelf(e) + yy4839 := &yyv4838 + yy4839.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60051,83 +62099,83 @@ func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4668 := *v - yyh4668, yyl4668 := z.DecSliceHelperStart() - var yyc4668 bool - if yyl4668 == 0 { - if yyv4668 == nil { - yyv4668 = []ConfigMap{} - yyc4668 = true - } else if len(yyv4668) != 0 { - yyv4668 = yyv4668[:0] - yyc4668 = true + yyv4840 := *v + yyh4840, yyl4840 := z.DecSliceHelperStart() + var yyc4840 bool + if yyl4840 == 0 { + if yyv4840 == nil { + yyv4840 = []ConfigMap{} + yyc4840 = true + } else if len(yyv4840) != 0 { + yyv4840 = yyv4840[:0] + yyc4840 = true } - } else if yyl4668 > 0 { - var yyrr4668, yyrl4668 int - var yyrt4668 bool - if yyl4668 > cap(yyv4668) { + } else if yyl4840 > 0 { + var yyrr4840, yyrl4840 int + var yyrt4840 bool + if yyl4840 > cap(yyv4840) { - yyrg4668 := len(yyv4668) > 0 - yyv24668 := yyv4668 - yyrl4668, yyrt4668 = z.DecInferLen(yyl4668, z.DecBasicHandle().MaxInitLen, 248) - if yyrt4668 { - if yyrl4668 <= cap(yyv4668) { - yyv4668 = yyv4668[:yyrl4668] + yyrg4840 := len(yyv4840) > 0 + yyv24840 := yyv4840 + yyrl4840, yyrt4840 = z.DecInferLen(yyl4840, z.DecBasicHandle().MaxInitLen, 264) + if yyrt4840 { + if yyrl4840 <= cap(yyv4840) { + yyv4840 = yyv4840[:yyrl4840] } else { - yyv4668 = make([]ConfigMap, yyrl4668) + yyv4840 = make([]ConfigMap, yyrl4840) } } else { - yyv4668 = make([]ConfigMap, yyrl4668) + yyv4840 = make([]ConfigMap, yyrl4840) } - yyc4668 = true - yyrr4668 = len(yyv4668) - if yyrg4668 { - copy(yyv4668, yyv24668) + yyc4840 = true + yyrr4840 = len(yyv4840) + if yyrg4840 { + copy(yyv4840, yyv24840) } - } else if yyl4668 != len(yyv4668) { - yyv4668 = yyv4668[:yyl4668] - yyc4668 = true + } else if yyl4840 != len(yyv4840) { + yyv4840 = yyv4840[:yyl4840] + yyc4840 = true } - yyj4668 := 0 - for ; yyj4668 < yyrr4668; yyj4668++ { - yyh4668.ElemContainerState(yyj4668) + yyj4840 := 0 + for ; yyj4840 < yyrr4840; yyj4840++ { + yyh4840.ElemContainerState(yyj4840) if r.TryDecodeAsNil() { - yyv4668[yyj4668] = ConfigMap{} + yyv4840[yyj4840] = ConfigMap{} } else { - yyv4669 := &yyv4668[yyj4668] - yyv4669.CodecDecodeSelf(d) + yyv4841 := &yyv4840[yyj4840] + yyv4841.CodecDecodeSelf(d) } } - if yyrt4668 { - for ; yyj4668 < yyl4668; yyj4668++ { - yyv4668 = append(yyv4668, ConfigMap{}) - yyh4668.ElemContainerState(yyj4668) + if yyrt4840 { + for ; yyj4840 < yyl4840; yyj4840++ { + yyv4840 = append(yyv4840, ConfigMap{}) + yyh4840.ElemContainerState(yyj4840) if r.TryDecodeAsNil() { - yyv4668[yyj4668] = ConfigMap{} + yyv4840[yyj4840] = ConfigMap{} } else { - yyv4670 := &yyv4668[yyj4668] - yyv4670.CodecDecodeSelf(d) + yyv4842 := &yyv4840[yyj4840] + yyv4842.CodecDecodeSelf(d) } } } } else { - yyj4668 := 0 - for ; !r.CheckBreak(); yyj4668++ { + yyj4840 := 0 + for ; !r.CheckBreak(); yyj4840++ { - if yyj4668 >= len(yyv4668) { - yyv4668 = append(yyv4668, ConfigMap{}) // var yyz4668 ConfigMap - yyc4668 = true + if yyj4840 >= len(yyv4840) { + yyv4840 = append(yyv4840, ConfigMap{}) // var yyz4840 ConfigMap + yyc4840 = true } - yyh4668.ElemContainerState(yyj4668) - if yyj4668 < len(yyv4668) { + yyh4840.ElemContainerState(yyj4840) + if yyj4840 < len(yyv4840) { if r.TryDecodeAsNil() { - yyv4668[yyj4668] = ConfigMap{} + yyv4840[yyj4840] = ConfigMap{} } else { - yyv4671 := &yyv4668[yyj4668] - yyv4671.CodecDecodeSelf(d) + yyv4843 := &yyv4840[yyj4840] + yyv4843.CodecDecodeSelf(d) } } else { @@ -60135,17 +62183,17 @@ func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) } } - if yyj4668 < len(yyv4668) { - yyv4668 = yyv4668[:yyj4668] - yyc4668 = true - } else if yyj4668 == 0 && yyv4668 == nil { - yyv4668 = []ConfigMap{} - yyc4668 = true + if yyj4840 < len(yyv4840) { + yyv4840 = yyv4840[:yyj4840] + yyc4840 = true + } else if yyj4840 == 0 && yyv4840 == nil { + yyv4840 = []ConfigMap{} + yyc4840 = true } } - yyh4668.End() - if yyc4668 { - *v = yyv4668 + yyh4840.End() + if yyc4840 { + *v = yyv4840 } } @@ -60154,10 +62202,10 @@ func (x codecSelfer1234) encSliceComponentCondition(v []ComponentCondition, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4672 := range v { + for _, yyv4844 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4673 := &yyv4672 - yy4673.CodecEncodeSelf(e) + yy4845 := &yyv4844 + yy4845.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60167,83 +62215,83 @@ func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4674 := *v - yyh4674, yyl4674 := z.DecSliceHelperStart() - var yyc4674 bool - if yyl4674 == 0 { - if yyv4674 == nil { - yyv4674 = []ComponentCondition{} - yyc4674 = true - } else if len(yyv4674) != 0 { - yyv4674 = yyv4674[:0] - yyc4674 = true + yyv4846 := *v + yyh4846, yyl4846 := z.DecSliceHelperStart() + var yyc4846 bool + if yyl4846 == 0 { + if yyv4846 == nil { + yyv4846 = []ComponentCondition{} + yyc4846 = true + } else if len(yyv4846) != 0 { + yyv4846 = yyv4846[:0] + yyc4846 = true } - } else if yyl4674 > 0 { - var yyrr4674, yyrl4674 int - var yyrt4674 bool - if yyl4674 > cap(yyv4674) { + } else if yyl4846 > 0 { + var yyrr4846, yyrl4846 int + var yyrt4846 bool + if yyl4846 > cap(yyv4846) { - yyrg4674 := len(yyv4674) > 0 - yyv24674 := yyv4674 - yyrl4674, yyrt4674 = z.DecInferLen(yyl4674, z.DecBasicHandle().MaxInitLen, 64) - if yyrt4674 { - if yyrl4674 <= cap(yyv4674) { - yyv4674 = yyv4674[:yyrl4674] + yyrg4846 := len(yyv4846) > 0 + yyv24846 := yyv4846 + yyrl4846, yyrt4846 = z.DecInferLen(yyl4846, z.DecBasicHandle().MaxInitLen, 64) + if yyrt4846 { + if yyrl4846 <= cap(yyv4846) { + yyv4846 = yyv4846[:yyrl4846] } else { - yyv4674 = make([]ComponentCondition, yyrl4674) + yyv4846 = make([]ComponentCondition, yyrl4846) } } else { - yyv4674 = make([]ComponentCondition, yyrl4674) + yyv4846 = make([]ComponentCondition, yyrl4846) } - yyc4674 = true - yyrr4674 = len(yyv4674) - if yyrg4674 { - copy(yyv4674, yyv24674) + yyc4846 = true + yyrr4846 = len(yyv4846) + if yyrg4846 { + copy(yyv4846, yyv24846) } - } else if yyl4674 != len(yyv4674) { - yyv4674 = yyv4674[:yyl4674] - yyc4674 = true + } else if yyl4846 != len(yyv4846) { + yyv4846 = yyv4846[:yyl4846] + yyc4846 = true } - yyj4674 := 0 - for ; yyj4674 < yyrr4674; yyj4674++ { - yyh4674.ElemContainerState(yyj4674) + yyj4846 := 0 + for ; yyj4846 < yyrr4846; yyj4846++ { + yyh4846.ElemContainerState(yyj4846) if r.TryDecodeAsNil() { - yyv4674[yyj4674] = ComponentCondition{} + yyv4846[yyj4846] = ComponentCondition{} } else { - yyv4675 := &yyv4674[yyj4674] - yyv4675.CodecDecodeSelf(d) + yyv4847 := &yyv4846[yyj4846] + yyv4847.CodecDecodeSelf(d) } } - if yyrt4674 { - for ; yyj4674 < yyl4674; yyj4674++ { - yyv4674 = append(yyv4674, ComponentCondition{}) - yyh4674.ElemContainerState(yyj4674) + if yyrt4846 { + for ; yyj4846 < yyl4846; yyj4846++ { + yyv4846 = append(yyv4846, ComponentCondition{}) + yyh4846.ElemContainerState(yyj4846) if r.TryDecodeAsNil() { - yyv4674[yyj4674] = ComponentCondition{} + yyv4846[yyj4846] = ComponentCondition{} } else { - yyv4676 := &yyv4674[yyj4674] - yyv4676.CodecDecodeSelf(d) + yyv4848 := &yyv4846[yyj4846] + yyv4848.CodecDecodeSelf(d) } } } } else { - yyj4674 := 0 - for ; !r.CheckBreak(); yyj4674++ { + yyj4846 := 0 + for ; !r.CheckBreak(); yyj4846++ { - if yyj4674 >= len(yyv4674) { - yyv4674 = append(yyv4674, ComponentCondition{}) // var yyz4674 ComponentCondition - yyc4674 = true + if yyj4846 >= len(yyv4846) { + yyv4846 = append(yyv4846, ComponentCondition{}) // var yyz4846 ComponentCondition + yyc4846 = true } - yyh4674.ElemContainerState(yyj4674) - if yyj4674 < len(yyv4674) { + yyh4846.ElemContainerState(yyj4846) + if yyj4846 < len(yyv4846) { if r.TryDecodeAsNil() { - yyv4674[yyj4674] = ComponentCondition{} + yyv4846[yyj4846] = ComponentCondition{} } else { - yyv4677 := &yyv4674[yyj4674] - yyv4677.CodecDecodeSelf(d) + yyv4849 := &yyv4846[yyj4846] + yyv4849.CodecDecodeSelf(d) } } else { @@ -60251,17 +62299,17 @@ func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d * } } - if yyj4674 < len(yyv4674) { - yyv4674 = yyv4674[:yyj4674] - yyc4674 = true - } else if yyj4674 == 0 && yyv4674 == nil { - yyv4674 = []ComponentCondition{} - yyc4674 = true + if yyj4846 < len(yyv4846) { + yyv4846 = yyv4846[:yyj4846] + yyc4846 = true + } else if yyj4846 == 0 && yyv4846 == nil { + yyv4846 = []ComponentCondition{} + yyc4846 = true } } - yyh4674.End() - if yyc4674 { - *v = yyv4674 + yyh4846.End() + if yyc4846 { + *v = yyv4846 } } @@ -60270,10 +62318,10 @@ func (x codecSelfer1234) encSliceComponentStatus(v []ComponentStatus, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4678 := range v { + for _, yyv4850 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4679 := &yyv4678 - yy4679.CodecEncodeSelf(e) + yy4851 := &yyv4850 + yy4851.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60283,83 +62331,83 @@ func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4680 := *v - yyh4680, yyl4680 := z.DecSliceHelperStart() - var yyc4680 bool - if yyl4680 == 0 { - if yyv4680 == nil { - yyv4680 = []ComponentStatus{} - yyc4680 = true - } else if len(yyv4680) != 0 { - yyv4680 = yyv4680[:0] - yyc4680 = true + yyv4852 := *v + yyh4852, yyl4852 := z.DecSliceHelperStart() + var yyc4852 bool + if yyl4852 == 0 { + if yyv4852 == nil { + yyv4852 = []ComponentStatus{} + yyc4852 = true + } else if len(yyv4852) != 0 { + yyv4852 = yyv4852[:0] + yyc4852 = true } - } else if yyl4680 > 0 { - var yyrr4680, yyrl4680 int - var yyrt4680 bool - if yyl4680 > cap(yyv4680) { + } else if yyl4852 > 0 { + var yyrr4852, yyrl4852 int + var yyrt4852 bool + if yyl4852 > cap(yyv4852) { - yyrg4680 := len(yyv4680) > 0 - yyv24680 := yyv4680 - yyrl4680, yyrt4680 = z.DecInferLen(yyl4680, z.DecBasicHandle().MaxInitLen, 264) - if yyrt4680 { - if yyrl4680 <= cap(yyv4680) { - yyv4680 = yyv4680[:yyrl4680] + yyrg4852 := len(yyv4852) > 0 + yyv24852 := yyv4852 + yyrl4852, yyrt4852 = z.DecInferLen(yyl4852, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4852 { + if yyrl4852 <= cap(yyv4852) { + yyv4852 = yyv4852[:yyrl4852] } else { - yyv4680 = make([]ComponentStatus, yyrl4680) + yyv4852 = make([]ComponentStatus, yyrl4852) } } else { - yyv4680 = make([]ComponentStatus, yyrl4680) + yyv4852 = make([]ComponentStatus, yyrl4852) } - yyc4680 = true - yyrr4680 = len(yyv4680) - if yyrg4680 { - copy(yyv4680, yyv24680) + yyc4852 = true + yyrr4852 = len(yyv4852) + if yyrg4852 { + copy(yyv4852, yyv24852) } - } else if yyl4680 != len(yyv4680) { - yyv4680 = yyv4680[:yyl4680] - yyc4680 = true + } else if yyl4852 != len(yyv4852) { + yyv4852 = yyv4852[:yyl4852] + yyc4852 = true } - yyj4680 := 0 - for ; yyj4680 < yyrr4680; yyj4680++ { - yyh4680.ElemContainerState(yyj4680) + yyj4852 := 0 + for ; yyj4852 < yyrr4852; yyj4852++ { + yyh4852.ElemContainerState(yyj4852) if r.TryDecodeAsNil() { - yyv4680[yyj4680] = ComponentStatus{} + yyv4852[yyj4852] = ComponentStatus{} } else { - yyv4681 := &yyv4680[yyj4680] - yyv4681.CodecDecodeSelf(d) + yyv4853 := &yyv4852[yyj4852] + yyv4853.CodecDecodeSelf(d) } } - if yyrt4680 { - for ; yyj4680 < yyl4680; yyj4680++ { - yyv4680 = append(yyv4680, ComponentStatus{}) - yyh4680.ElemContainerState(yyj4680) + if yyrt4852 { + for ; yyj4852 < yyl4852; yyj4852++ { + yyv4852 = append(yyv4852, ComponentStatus{}) + yyh4852.ElemContainerState(yyj4852) if r.TryDecodeAsNil() { - yyv4680[yyj4680] = ComponentStatus{} + yyv4852[yyj4852] = ComponentStatus{} } else { - yyv4682 := &yyv4680[yyj4680] - yyv4682.CodecDecodeSelf(d) + yyv4854 := &yyv4852[yyj4852] + yyv4854.CodecDecodeSelf(d) } } } } else { - yyj4680 := 0 - for ; !r.CheckBreak(); yyj4680++ { + yyj4852 := 0 + for ; !r.CheckBreak(); yyj4852++ { - if yyj4680 >= len(yyv4680) { - yyv4680 = append(yyv4680, ComponentStatus{}) // var yyz4680 ComponentStatus - yyc4680 = true + if yyj4852 >= len(yyv4852) { + yyv4852 = append(yyv4852, ComponentStatus{}) // var yyz4852 ComponentStatus + yyc4852 = true } - yyh4680.ElemContainerState(yyj4680) - if yyj4680 < len(yyv4680) { + yyh4852.ElemContainerState(yyj4852) + if yyj4852 < len(yyv4852) { if r.TryDecodeAsNil() { - yyv4680[yyj4680] = ComponentStatus{} + yyv4852[yyj4852] = ComponentStatus{} } else { - yyv4683 := &yyv4680[yyj4680] - yyv4683.CodecDecodeSelf(d) + yyv4855 := &yyv4852[yyj4852] + yyv4855.CodecDecodeSelf(d) } } else { @@ -60367,16 +62415,16 @@ func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1 } } - if yyj4680 < len(yyv4680) { - yyv4680 = yyv4680[:yyj4680] - yyc4680 = true - } else if yyj4680 == 0 && yyv4680 == nil { - yyv4680 = []ComponentStatus{} - yyc4680 = true + if yyj4852 < len(yyv4852) { + yyv4852 = yyv4852[:yyj4852] + yyc4852 = true + } else if yyj4852 == 0 && yyv4852 == nil { + yyv4852 = []ComponentStatus{} + yyc4852 = true } } - yyh4680.End() - if yyc4680 { - *v = yyv4680 + yyh4852.End() + if yyc4852 { + *v = yyv4852 } } diff --git a/1.4/pkg/api/types.go b/1.4/pkg/api/types.go index 2d2f1888..900caa24 100644 --- a/1.4/pkg/api/types.go +++ b/1.4/pkg/api/types.go @@ -130,7 +130,6 @@ type ObjectMeta struct { // The prefix is optional. If the prefix is not specified, the key is assumed to be private // to the user. Other system components that wish to use labels must specify a prefix. The // "kubernetes.io/" prefix is reserved for use by kubernetes components. - // TODO: replace map[string]string with labels.LabelSet type Labels map[string]string `json:"labels,omitempty"` // Annotations are unstructured key value data stored with a resource that may be set by @@ -150,6 +149,11 @@ type ObjectMeta struct { // from the list. If the deletionTimestamp of the object is non-nil, entries // in this list can only be removed. Finalizers []string `json:"finalizers,omitempty"` + + // The name of the cluster which the object belongs to. + // This is used to distinguish resources with same name and namespace in different clusters. + // This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + ClusterName string `json:"clusterName,omitempty"` } const ( @@ -210,6 +214,10 @@ type VolumeSource struct { PersistentVolumeClaim *PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty"` // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime RBD *RBDVolumeSource `json:"rbd,omitempty"` + + // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty"` + // FlexVolume represents a generic volume resource that is // provisioned/attached using a exec based plugin. This is an alpha feature and may change in future. FlexVolume *FlexVolumeSource `json:"flexVolume,omitempty"` @@ -233,6 +241,8 @@ type VolumeSource struct { ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty"` // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty"` + // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty"` } // Similar to VolumeSource but meant for the administrator who creates PVs. @@ -255,6 +265,8 @@ type PersistentVolumeSource struct { NFS *NFSVolumeSource `json:"nfs,omitempty"` // RBD represents a Rados Block Device mount on the host that shares a pod's lifetime RBD *RBDVolumeSource `json:"rbd,omitempty"` + // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty"` // ISCSIVolumeSource represents an ISCSI resource that is attached to a // kubelet's host machine and then exposed to the pod. ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty"` @@ -273,6 +285,8 @@ type PersistentVolumeSource struct { AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty"` // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty"` + // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty"` } type PersistentVolumeClaimVolumeSource struct { @@ -607,6 +621,12 @@ type SecretVolumeSource struct { // the volume setup will error. Paths must be relative and may not contain // the '..' path or start with '..'. Items []KeyToPath `json:"items,omitempty"` + // Mode bits to use on created files by default. Must be a value between + // 0 and 0777. + // Directories within the path are not affected by this setting. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + DefaultMode *int32 `json:"defaultMode,omitempty"` } // Represents an NFS mount that lasts the lifetime of a pod. @@ -623,6 +643,30 @@ type NFSVolumeSource struct { ReadOnly bool `json:"readOnly,omitempty"` } +// Represents a Quobyte mount that lasts the lifetime of a pod. +// Quobyte volumes do not support ownership management or SELinux relabeling. +type QuobyteVolumeSource struct { + // Registry represents a single or multiple Quobyte Registry services + // specified as a string as host:port pair (multiple entries are separated with commas) + // which acts as the central registry for volumes + Registry string `json:"registry"` + + // Volume is a string that references an already created Quobyte volume by name. + Volume string `json:"volume"` + + // Defaults to false (read/write). ReadOnly here will force + // the Quobyte to be mounted with read-only permissions + ReadOnly bool `json:"readOnly,omitempty"` + + // User to map volume access to + // Defaults to the root user + User string `json:"user,omitempty"` + + // Group to map volume access to + // Default is no group + Group string `json:"group,omitempty"` +} + // Represents a Glusterfs mount that lasts the lifetime of a pod. // Glusterfs volumes do not support ownership management or SELinux relabeling. type GlusterfsVolumeSource struct { @@ -708,6 +752,12 @@ type FlockerVolumeSource struct { type DownwardAPIVolumeSource struct { // Items is a list of DownwardAPIVolume file Items []DownwardAPIVolumeFile `json:"items,omitempty"` + // Mode bits to use on created files by default. Must be a value between + // 0 and 0777. + // Directories within the path are not affected by this setting. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + DefaultMode *int32 `json:"defaultMode,omitempty"` } // Represents a single file containing information from the downward API @@ -719,6 +769,11 @@ type DownwardAPIVolumeFile struct { // Selects a resource of the container: only resources limits and requests // (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty"` + // Optional: mode bits to use on this file, must be a value between 0 + // and 0777. If not specified, the volume defaultMode will be used. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + Mode *int32 `json:"mode,omitempty"` } // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. @@ -742,6 +797,31 @@ type VsphereVirtualDiskVolumeSource struct { FSType string `json:"fsType,omitempty"` } +type AzureDataDiskCachingMode string + +const ( + AzureDataDiskCachingNone AzureDataDiskCachingMode = "None" + AzureDataDiskCachingReadOnly AzureDataDiskCachingMode = "ReadOnly" + AzureDataDiskCachingReadWrite AzureDataDiskCachingMode = "ReadWrite" +) + +// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. +type AzureDiskVolumeSource struct { + // The Name of the data disk in the blob storage + DiskName string `json:"diskName"` + // The URI the the data disk in the blob storage + DataDiskURI string `json:"diskURI"` + // Host Caching mode: None, Read Only, Read Write. + CachingMode *AzureDataDiskCachingMode `json:"cachingMode,omitempty"` + // Filesystem type to mount. + // Must be a filesystem type supported by the host operating system. + // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + FSType *string `json:"fsType,omitempty"` + // Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + ReadOnly *bool `json:"readOnly,omitempty"` +} + // Adapts a ConfigMap into a volume. // // The contents of the target ConfigMap's Data field will be presented in a @@ -758,6 +838,12 @@ type ConfigMapVolumeSource struct { // the volume setup will error. Paths must be relative and may not contain // the '..' path or start with '..'. Items []KeyToPath `json:"items,omitempty"` + // Mode bits to use on created files by default. Must be a value between + // 0 and 0777. + // Directories within the path are not affected by this setting. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + DefaultMode *int32 `json:"defaultMode,omitempty"` } // Maps a string key to a path within a volume. @@ -770,6 +856,11 @@ type KeyToPath struct { // May not contain the path element '..'. // May not start with the string '..'. Path string `json:"path"` + // Optional: mode bits to use on this file, should be a value between 0 + // and 0777. If not specified, the volume defaultMode will be used. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + Mode *int32 `json:"mode,omitempty"` } // ContainerPort represents a network port in a single container @@ -821,7 +912,8 @@ type EnvVar struct { // EnvVarSource represents a source for the value of an EnvVar. // Only one of its fields may be set. type EnvVarSource struct { - // Selects a field of the pod; only name and namespace are supported. + // Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, + // spec.nodeName, spec.serviceAccountName, status.podIP. FieldRef *ObjectFieldSelector `json:"fieldRef,omitempty"` // Selects a resource of the container: only resources limits and requests // (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. @@ -1472,6 +1564,14 @@ type PodSpec struct { Subdomain string `json:"subdomain,omitempty"` } +// Sysctl defines a kernel parameter to be set +type Sysctl struct { + // Name of a property to set + Name string `json:"name"` + // Value of a property to set + Value string `json:"value"` +} + // PodSecurityContext holds pod-level security attributes and common container settings. // Some fields are also present in container.securityContext. Field values of // container.securityContext take precedence over field values of PodSecurityContext. @@ -1636,6 +1736,9 @@ type ReplicationControllerStatus struct { // The number of pods that have labels matching the labels of the pod template of the replication controller. FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty"` + // The number of ready replicas for this replication controller. + ReadyReplicas int32 `json:"readyReplicas,omitempty"` + // ObservedGeneration is the most recent generation observed by the controller. ObservedGeneration int64 `json:"observedGeneration,omitempty"` } @@ -1704,6 +1807,11 @@ const ( // external load balancer (if the cloud provider supports it), in addition // to 'NodePort' type. ServiceTypeLoadBalancer ServiceType = "LoadBalancer" + + // ServiceTypeExternalName means a service consists of only a reference to + // an external name that kubedns or equivalent will return as a CNAME + // record, with no exposing or proxying of any pods involved. + ServiceTypeExternalName ServiceType = "ExternalName" ) // ServiceStatus represents the current status of a service @@ -1734,24 +1842,49 @@ type LoadBalancerIngress struct { // ServiceSpec describes the attributes that a user creates on a service type ServiceSpec struct { - // Type determines how the service will be exposed. Valid options: ClusterIP, NodePort, LoadBalancer + // Type determines how the Service is exposed. Defaults to ClusterIP. Valid + // options are ExternalName, ClusterIP, NodePort, and LoadBalancer. + // "ExternalName" maps to the specified externalName. + // "ClusterIP" allocates a cluster-internal IP address for load-balancing to + // endpoints. Endpoints are determined by the selector or if that is not + // specified, by manual construction of an Endpoints object. If clusterIP is + // "None", no virtual IP is allocated and the endpoints are published as a + // set of endpoints rather than a stable IP. + // "NodePort" builds on ClusterIP and allocates a port on every node which + // routes to the clusterIP. + // "LoadBalancer" builds on NodePort and creates an + // external load-balancer (if supported in the current cloud) which routes + // to the clusterIP. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#overview Type ServiceType `json:"type,omitempty"` // Required: The list of ports that are exposed by this service. Ports []ServicePort `json:"ports"` - // This service will route traffic to pods having labels matching this selector. If empty or not present, - // the service is assumed to have endpoints set by an external process and Kubernetes will not modify - // those endpoints. + // Route service traffic to pods with label keys and values matching this + // selector. If empty or not present, the service is assumed to have an + // external process managing its endpoints, which Kubernetes will not + // modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. + // Ignored if type is ExternalName. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#overview Selector map[string]string `json:"selector"` - // ClusterIP is usually assigned by the master. If specified by the user - // we will try to respect it or else fail the request. This field can - // not be changed by updates. - // Valid values are None, empty string (""), or a valid IP address - // None can be specified for headless services when proxying is not required + // ClusterIP is the IP address of the service and is usually assigned + // randomly by the master. If an address is specified manually and is not in + // use by others, it will be allocated to the service; otherwise, creation + // of the service will fail. This field can not be changed through updates. + // Valid values are "None", empty string (""), or a valid IP address. "None" + // can be specified for headless services when proxying is not required. + // Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if + // type is ExternalName. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#virtual-ips-and-service-proxies ClusterIP string `json:"clusterIP,omitempty"` + // ExternalName is the external reference that kubedns or equivalent will + // return as a CNAME record for this service. No proxying will be involved. + // Must be a valid DNS name and requires Type to be ExternalName. + ExternalName string + // ExternalIPs are used by external load balancers, or can be set by // users to handle external traffic that arrives at a node. ExternalIPs []string `json:"externalIPs,omitempty"` diff --git a/1.4/pkg/api/unversioned/group_version.go b/1.4/pkg/api/unversioned/group_version.go index 8f747892..dfbfe3a3 100644 --- a/1.4/pkg/api/unversioned/group_version.go +++ b/1.4/pkg/api/unversioned/group_version.go @@ -50,7 +50,7 @@ func (gr GroupResource) WithVersion(version string) GroupVersionResource { return GroupVersionResource{Group: gr.Group, Version: version, Resource: gr.Resource} } -func (gr GroupResource) IsEmpty() bool { +func (gr GroupResource) Empty() bool { return len(gr.Group) == 0 && len(gr.Resource) == 0 } @@ -81,7 +81,7 @@ type GroupVersionResource struct { Resource string `protobuf:"bytes,3,opt,name=resource"` } -func (gvr GroupVersionResource) IsEmpty() bool { +func (gvr GroupVersionResource) Empty() bool { return len(gvr.Group) == 0 && len(gvr.Version) == 0 && len(gvr.Resource) == 0 } @@ -106,7 +106,7 @@ type GroupKind struct { Kind string `protobuf:"bytes,2,opt,name=kind"` } -func (gk GroupKind) IsEmpty() bool { +func (gk GroupKind) Empty() bool { return len(gk.Group) == 0 && len(gk.Kind) == 0 } @@ -131,8 +131,8 @@ type GroupVersionKind struct { Kind string `protobuf:"bytes,3,opt,name=kind"` } -// IsEmpty returns true if group, version, and kind are empty -func (gvk GroupVersionKind) IsEmpty() bool { +// Empty returns true if group, version, and kind are empty +func (gvk GroupVersionKind) Empty() bool { return len(gvk.Group) == 0 && len(gvk.Version) == 0 && len(gvk.Kind) == 0 } @@ -156,8 +156,8 @@ type GroupVersion struct { Version string `protobuf:"bytes,2,opt,name=version"` } -// IsEmpty returns true if group and version are empty -func (gv GroupVersion) IsEmpty() bool { +// Empty returns true if group and version are empty +func (gv GroupVersion) Empty() bool { return len(gv.Group) == 0 && len(gv.Version) == 0 } @@ -165,7 +165,7 @@ func (gv GroupVersion) IsEmpty() bool { // it returns "v1". func (gv GroupVersion) String() string { // special case the internal apiVersion for the legacy kube types - if gv.IsEmpty() { + if gv.Empty() { return "" } @@ -179,6 +179,25 @@ func (gv GroupVersion) String() string { return gv.Version } +// KindForGroupVersionKinds identifies the preferred GroupVersionKind out of a list. It returns ok false +// if none of the options match the group. It prefers a match to group and version over just group. +// TODO: Move GroupVersion to a package under pkg/runtime, since it's used by scheme. +// TODO: Introduce an adapter type between GroupVersion and runtime.GroupVersioner, and use LegacyCodec(GroupVersion) +// in fewer places. +func (gv GroupVersion) KindForGroupVersionKinds(kinds []GroupVersionKind) (target GroupVersionKind, ok bool) { + for _, gvk := range kinds { + if gvk.Group == gv.Group && gvk.Version == gv.Version { + return gvk, true + } + } + for _, gvk := range kinds { + if gvk.Group == gv.Group { + return gv.WithKind(gvk.Kind), true + } + } + return GroupVersionKind{}, false +} + // ParseGroupVersion turns "group/version" string into a GroupVersion struct. It reports error // if it cannot parse the string. func ParseGroupVersion(gv string) (GroupVersion, error) { @@ -241,6 +260,25 @@ func (gv *GroupVersion) UnmarshalText(value []byte) error { return gv.unmarshal(value) } +// GroupVersions can be used to represent a set of desired group versions. +// TODO: Move GroupVersions to a package under pkg/runtime, since it's used by scheme. +// TODO: Introduce an adapter type between GroupVersions and runtime.GroupVersioner, and use LegacyCodec(GroupVersion) +// in fewer places. +type GroupVersions []GroupVersion + +// KindForGroupVersionKinds identifies the preferred GroupVersionKind out of a list. It returns ok false +// if none of the options match the group. +func (gvs GroupVersions) KindForGroupVersionKinds(kinds []GroupVersionKind) (target GroupVersionKind, ok bool) { + for _, gv := range gvs { + target, ok := gv.KindForGroupVersionKinds(kinds) + if !ok { + continue + } + return target, true + } + return GroupVersionKind{}, false +} + // ToAPIVersionAndKind is a convenience method for satisfying runtime.Object on types that // do not use TypeMeta. func (gvk *GroupVersionKind) ToAPIVersionAndKind() (string, string) { diff --git a/1.4/pkg/api/unversioned/helpers.go b/1.4/pkg/api/unversioned/helpers.go index 57a9a0ef..c0cbd18b 100644 --- a/1.4/pkg/api/unversioned/helpers.go +++ b/1.4/pkg/api/unversioned/helpers.go @@ -20,6 +20,7 @@ import ( "fmt" "k8s.io/client-go/1.4/pkg/labels" + "k8s.io/client-go/1.4/pkg/selection" "k8s.io/client-go/1.4/pkg/util/sets" ) @@ -35,23 +36,23 @@ func LabelSelectorAsSelector(ps *LabelSelector) (labels.Selector, error) { } selector := labels.NewSelector() for k, v := range ps.MatchLabels { - r, err := labels.NewRequirement(k, labels.EqualsOperator, sets.NewString(v)) + r, err := labels.NewRequirement(k, selection.Equals, sets.NewString(v)) if err != nil { return nil, err } selector = selector.Add(*r) } for _, expr := range ps.MatchExpressions { - var op labels.Operator + var op selection.Operator switch expr.Operator { case LabelSelectorOpIn: - op = labels.InOperator + op = selection.In case LabelSelectorOpNotIn: - op = labels.NotInOperator + op = selection.NotIn case LabelSelectorOpExists: - op = labels.ExistsOperator + op = selection.Exists case LabelSelectorOpDoesNotExist: - op = labels.DoesNotExistOperator + op = selection.DoesNotExist default: return nil, fmt.Errorf("%q is not a valid pod selector operator", expr.Operator) } @@ -108,7 +109,7 @@ func ParseToLabelSelector(selector string) (*LabelSelector, error) { for _, req := range reqs { var op LabelSelectorOperator switch req.Operator() { - case labels.EqualsOperator, labels.DoubleEqualsOperator: + case selection.Equals, selection.DoubleEquals: vals := req.Values() if vals.Len() != 1 { return nil, fmt.Errorf("equals operator must have exactly one value") @@ -119,15 +120,15 @@ func ParseToLabelSelector(selector string) (*LabelSelector, error) { } labelSelector.MatchLabels[req.Key()] = val continue - case labels.InOperator: + case selection.In: op = LabelSelectorOpIn - case labels.NotInOperator: + case selection.NotIn: op = LabelSelectorOpNotIn - case labels.ExistsOperator: + case selection.Exists: op = LabelSelectorOpExists - case labels.DoesNotExistOperator: + case selection.DoesNotExist: op = LabelSelectorOpDoesNotExist - case labels.GreaterThanOperator, labels.LessThanOperator: + case selection.GreaterThan, selection.LessThan: // Adding a separate case for these operators to indicate that this is deliberate return nil, fmt.Errorf("%q isn't supported in label selectors", req.Operator()) default: diff --git a/1.4/pkg/api/v1/conversion.go b/1.4/pkg/api/v1/conversion.go index c9ce652e..9d8674c8 100644 --- a/1.4/pkg/api/v1/conversion.go +++ b/1.4/pkg/api/v1/conversion.go @@ -164,7 +164,7 @@ func addConversionFuncs(scheme *runtime.Scheme) error { } // Add field label conversions for kinds having selectable nothing but ObjectMeta fields. - for _, kind := range []string{ + for _, k := range []string{ "Endpoints", "ResourceQuota", "PersistentVolumeClaim", @@ -172,6 +172,7 @@ func addConversionFuncs(scheme *runtime.Scheme) error { "ServiceAccount", "ConfigMap", } { + kind := k // don't close over range variables err = scheme.AddFieldLabelConversionFunc("v1", kind, func(label, value string) (string, string, error) { switch label { @@ -192,14 +193,15 @@ func addConversionFuncs(scheme *runtime.Scheme) error { err = scheme.AddFieldLabelConversionFunc("v1", "Pod", func(label, value string) (string, string, error) { switch label { - case "metadata.name", - "metadata.namespace", + case "metadata.annotations", "metadata.labels", - "metadata.annotations", - "status.phase", - "status.podIP", + "metadata.name", + "metadata.namespace", "spec.nodeName", - "spec.restartPolicy": + "spec.restartPolicy", + "spec.serviceAccountName", + "status.phase", + "status.podIP": return label, value, nil // This is for backwards compatibility with old v1 clients which send spec.host case "spec.host": @@ -419,7 +421,7 @@ func Convert_api_PodStatusResult_To_v1_PodStatusResult(in *api.PodStatusResult, } func Convert_v1_PodStatusResult_To_api_PodStatusResult(in *PodStatusResult, out *api.PodStatusResult, s conversion.Scope) error { - // TODO: when we move init container to beta, remove these conversions + // TODO: sometime after we move init container to stable, remove these conversions if value, ok := in.Annotations[PodInitContainerStatusesAnnotationKey]; ok { var values []ContainerStatus if err := json.Unmarshal([]byte(value), &values); err != nil { @@ -453,7 +455,7 @@ func Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in *api.PodTemplateSpec, return err } - // TODO: when we move init container to beta, remove these conversions + // TODO: sometime after we move init container to stable, remove these conversions. if old := out.Annotations; old != nil { out.Annotations = make(map[string]string, len(old)) for k, v := range old { @@ -469,14 +471,22 @@ func Convert_api_PodTemplateSpec_To_v1_PodTemplateSpec(in *api.PodTemplateSpec, return err } out.Annotations[PodInitContainersAnnotationKey] = string(value) + out.Annotations[PodInitContainersBetaAnnotationKey] = string(value) } else { delete(out.Annotations, PodInitContainersAnnotationKey) + delete(out.Annotations, PodInitContainersBetaAnnotationKey) } return nil } func Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in *PodTemplateSpec, out *api.PodTemplateSpec, s conversion.Scope) error { - // TODO: when we move init container to beta, remove these conversions + // TODO: sometime after we move init container to stable, remove these conversions + // If there is a beta annotation, copy to alpha key. + // See commit log for PR #31026 for why we do this. + if valueBeta, okBeta := in.Annotations[PodInitContainersBetaAnnotationKey]; okBeta { + in.Annotations[PodInitContainersAnnotationKey] = valueBeta + } + // Move the annotation to the internal repr. field if value, ok := in.Annotations[PodInitContainersAnnotationKey]; ok { var values []Container if err := json.Unmarshal([]byte(value), &values); err != nil { @@ -501,6 +511,7 @@ func Convert_v1_PodTemplateSpec_To_api_PodTemplateSpec(in *PodTemplateSpec, out out.Annotations[k] = v } delete(out.Annotations, PodInitContainersAnnotationKey) + delete(out.Annotations, PodInitContainersBetaAnnotationKey) } return nil } @@ -554,7 +565,7 @@ func Convert_api_Pod_To_v1_Pod(in *api.Pod, out *Pod, s conversion.Scope) error return err } - // TODO: when we move init container to beta, remove these conversions + // TODO: sometime after we move init container to stable, remove these conversions if len(out.Spec.InitContainers) > 0 || len(out.Status.InitContainerStatuses) > 0 { old := out.Annotations out.Annotations = make(map[string]string, len(old)) @@ -562,6 +573,7 @@ func Convert_api_Pod_To_v1_Pod(in *api.Pod, out *Pod, s conversion.Scope) error out.Annotations[k] = v } delete(out.Annotations, PodInitContainersAnnotationKey) + delete(out.Annotations, PodInitContainersBetaAnnotationKey) delete(out.Annotations, PodInitContainerStatusesAnnotationKey) } if len(out.Spec.InitContainers) > 0 { @@ -570,6 +582,7 @@ func Convert_api_Pod_To_v1_Pod(in *api.Pod, out *Pod, s conversion.Scope) error return err } out.Annotations[PodInitContainersAnnotationKey] = string(value) + out.Annotations[PodInitContainersBetaAnnotationKey] = string(value) } if len(out.Status.InitContainerStatuses) > 0 { value, err := json.Marshal(out.Status.InitContainerStatuses) @@ -594,7 +607,13 @@ func Convert_api_Pod_To_v1_Pod(in *api.Pod, out *Pod, s conversion.Scope) error } func Convert_v1_Pod_To_api_Pod(in *Pod, out *api.Pod, s conversion.Scope) error { - // TODO: when we move init container to beta, remove these conversions + // If there is a beta annotation, copy to alpha key. + // See commit log for PR #31026 for why we do this. + if valueBeta, okBeta := in.Annotations[PodInitContainersBetaAnnotationKey]; okBeta { + in.Annotations[PodInitContainersAnnotationKey] = valueBeta + } + // TODO: sometime after we move init container to stable, remove these conversions + // Move the annotation to the internal repr. field if value, ok := in.Annotations[PodInitContainersAnnotationKey]; ok { var values []Container if err := json.Unmarshal([]byte(value), &values); err != nil { @@ -632,6 +651,7 @@ func Convert_v1_Pod_To_api_Pod(in *Pod, out *api.Pod, s conversion.Scope) error out.Annotations[k] = v } delete(out.Annotations, PodInitContainersAnnotationKey) + delete(out.Annotations, PodInitContainersBetaAnnotationKey) delete(out.Annotations, PodInitContainerStatusesAnnotationKey) } return nil diff --git a/1.4/pkg/api/v1/defaults.go b/1.4/pkg/api/v1/defaults.go index e0aa6e2c..f6f5f428 100644 --- a/1.4/pkg/api/v1/defaults.go +++ b/1.4/pkg/api/v1/defaults.go @@ -35,6 +35,9 @@ func addDefaultingFuncs(scheme *runtime.Scheme) error { SetDefaults_Pod, SetDefaults_PodSpec, SetDefaults_Probe, + SetDefaults_SecretVolumeSource, + SetDefaults_ConfigMapVolumeSource, + SetDefaults_DownwardAPIVolumeSource, SetDefaults_Secret, SetDefaults_PersistentVolume, SetDefaults_PersistentVolumeClaim, @@ -174,6 +177,24 @@ func SetDefaults_Probe(obj *Probe) { obj.FailureThreshold = 3 } } +func SetDefaults_SecretVolumeSource(obj *SecretVolumeSource) { + if obj.DefaultMode == nil { + perm := int32(SecretVolumeSourceDefaultMode) + obj.DefaultMode = &perm + } +} +func SetDefaults_ConfigMapVolumeSource(obj *ConfigMapVolumeSource) { + if obj.DefaultMode == nil { + perm := int32(ConfigMapVolumeSourceDefaultMode) + obj.DefaultMode = &perm + } +} +func SetDefaults_DownwardAPIVolumeSource(obj *DownwardAPIVolumeSource) { + if obj.DefaultMode == nil { + perm := int32(DownwardAPIVolumeSourceDefaultMode) + obj.DefaultMode = &perm + } +} func SetDefaults_Secret(obj *Secret) { if obj.Type == "" { obj.Type = SecretTypeOpaque @@ -197,6 +218,20 @@ func SetDefaults_ISCSIVolumeSource(obj *ISCSIVolumeSource) { obj.ISCSIInterface = "default" } } +func SetDefaults_AzureDiskVolumeSource(obj *AzureDiskVolumeSource) { + if obj.CachingMode == nil { + obj.CachingMode = new(AzureDataDiskCachingMode) + *obj.CachingMode = AzureDataDiskCachingNone + } + if obj.FSType == nil { + obj.FSType = new(string) + *obj.FSType = "ext4" + } + if obj.ReadOnly == nil { + obj.ReadOnly = new(bool) + *obj.ReadOnly = false + } +} func SetDefaults_Endpoints(obj *Endpoints) { for i := range obj.Subsets { ss := &obj.Subsets[i] diff --git a/1.4/pkg/api/v1/generated.pb.go b/1.4/pkg/api/v1/generated.pb.go index 1eceeabf..13901c90 100644 --- a/1.4/pkg/api/v1/generated.pb.go +++ b/1.4/pkg/api/v1/generated.pb.go @@ -29,6 +29,7 @@ limitations under the License. Affinity AttachedVolume AvoidPods + AzureDiskVolumeSource AzureFileVolumeSource Binding Capabilities @@ -142,6 +143,7 @@ limitations under the License. PreferAvoidPodsEntry PreferredSchedulingTerm Probe + QuobyteVolumeSource RBDVolumeSource RangeAllocation ReplicationController @@ -223,624 +225,632 @@ func (m *AvoidPods) Reset() { *m = AvoidPods{} } func (*AvoidPods) ProtoMessage() {} func (*AvoidPods) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } +func (m *AzureDiskVolumeSource) Reset() { *m = AzureDiskVolumeSource{} } +func (*AzureDiskVolumeSource) ProtoMessage() {} +func (*AzureDiskVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } + func (m *AzureFileVolumeSource) Reset() { *m = AzureFileVolumeSource{} } func (*AzureFileVolumeSource) ProtoMessage() {} -func (*AzureFileVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{4} } +func (*AzureFileVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } func (m *Binding) Reset() { *m = Binding{} } func (*Binding) ProtoMessage() {} -func (*Binding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{5} } +func (*Binding) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } func (m *Capabilities) Reset() { *m = Capabilities{} } func (*Capabilities) ProtoMessage() {} -func (*Capabilities) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{6} } +func (*Capabilities) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } func (m *CephFSVolumeSource) Reset() { *m = CephFSVolumeSource{} } func (*CephFSVolumeSource) ProtoMessage() {} -func (*CephFSVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{7} } +func (*CephFSVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } func (m *CinderVolumeSource) Reset() { *m = CinderVolumeSource{} } func (*CinderVolumeSource) ProtoMessage() {} -func (*CinderVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{8} } +func (*CinderVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } func (m *ComponentCondition) Reset() { *m = ComponentCondition{} } func (*ComponentCondition) ProtoMessage() {} -func (*ComponentCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{9} } +func (*ComponentCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } func (m *ComponentStatus) Reset() { *m = ComponentStatus{} } func (*ComponentStatus) ProtoMessage() {} -func (*ComponentStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{10} } +func (*ComponentStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } func (m *ComponentStatusList) Reset() { *m = ComponentStatusList{} } func (*ComponentStatusList) ProtoMessage() {} -func (*ComponentStatusList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{11} } +func (*ComponentStatusList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } func (m *ConfigMap) Reset() { *m = ConfigMap{} } func (*ConfigMap) ProtoMessage() {} -func (*ConfigMap) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{12} } +func (*ConfigMap) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } func (m *ConfigMapKeySelector) Reset() { *m = ConfigMapKeySelector{} } func (*ConfigMapKeySelector) ProtoMessage() {} -func (*ConfigMapKeySelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{13} } +func (*ConfigMapKeySelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} } func (m *ConfigMapList) Reset() { *m = ConfigMapList{} } func (*ConfigMapList) ProtoMessage() {} -func (*ConfigMapList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{14} } +func (*ConfigMapList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} } func (m *ConfigMapVolumeSource) Reset() { *m = ConfigMapVolumeSource{} } func (*ConfigMapVolumeSource) ProtoMessage() {} -func (*ConfigMapVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{15} } +func (*ConfigMapVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} } func (m *Container) Reset() { *m = Container{} } func (*Container) ProtoMessage() {} -func (*Container) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{16} } +func (*Container) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} } func (m *ContainerImage) Reset() { *m = ContainerImage{} } func (*ContainerImage) ProtoMessage() {} -func (*ContainerImage) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{17} } +func (*ContainerImage) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } func (m *ContainerPort) Reset() { *m = ContainerPort{} } func (*ContainerPort) ProtoMessage() {} -func (*ContainerPort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{18} } +func (*ContainerPort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } func (m *ContainerState) Reset() { *m = ContainerState{} } func (*ContainerState) ProtoMessage() {} -func (*ContainerState) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{19} } +func (*ContainerState) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} } func (m *ContainerStateRunning) Reset() { *m = ContainerStateRunning{} } func (*ContainerStateRunning) ProtoMessage() {} -func (*ContainerStateRunning) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{20} } +func (*ContainerStateRunning) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{21} } func (m *ContainerStateTerminated) Reset() { *m = ContainerStateTerminated{} } func (*ContainerStateTerminated) ProtoMessage() {} func (*ContainerStateTerminated) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{21} + return fileDescriptorGenerated, []int{22} } func (m *ContainerStateWaiting) Reset() { *m = ContainerStateWaiting{} } func (*ContainerStateWaiting) ProtoMessage() {} -func (*ContainerStateWaiting) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{22} } +func (*ContainerStateWaiting) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{23} } func (m *ContainerStatus) Reset() { *m = ContainerStatus{} } func (*ContainerStatus) ProtoMessage() {} -func (*ContainerStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{23} } +func (*ContainerStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{24} } func (m *DaemonEndpoint) Reset() { *m = DaemonEndpoint{} } func (*DaemonEndpoint) ProtoMessage() {} -func (*DaemonEndpoint) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{24} } +func (*DaemonEndpoint) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{25} } func (m *DeleteOptions) Reset() { *m = DeleteOptions{} } func (*DeleteOptions) ProtoMessage() {} -func (*DeleteOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{25} } +func (*DeleteOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{26} } func (m *DownwardAPIVolumeFile) Reset() { *m = DownwardAPIVolumeFile{} } func (*DownwardAPIVolumeFile) ProtoMessage() {} -func (*DownwardAPIVolumeFile) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{26} } +func (*DownwardAPIVolumeFile) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{27} } func (m *DownwardAPIVolumeSource) Reset() { *m = DownwardAPIVolumeSource{} } func (*DownwardAPIVolumeSource) ProtoMessage() {} func (*DownwardAPIVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{27} + return fileDescriptorGenerated, []int{28} } func (m *EmptyDirVolumeSource) Reset() { *m = EmptyDirVolumeSource{} } func (*EmptyDirVolumeSource) ProtoMessage() {} -func (*EmptyDirVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{28} } +func (*EmptyDirVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{29} } func (m *EndpointAddress) Reset() { *m = EndpointAddress{} } func (*EndpointAddress) ProtoMessage() {} -func (*EndpointAddress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{29} } +func (*EndpointAddress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{30} } func (m *EndpointPort) Reset() { *m = EndpointPort{} } func (*EndpointPort) ProtoMessage() {} -func (*EndpointPort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{30} } +func (*EndpointPort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{31} } func (m *EndpointSubset) Reset() { *m = EndpointSubset{} } func (*EndpointSubset) ProtoMessage() {} -func (*EndpointSubset) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{31} } +func (*EndpointSubset) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{32} } func (m *Endpoints) Reset() { *m = Endpoints{} } func (*Endpoints) ProtoMessage() {} -func (*Endpoints) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{32} } +func (*Endpoints) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{33} } func (m *EndpointsList) Reset() { *m = EndpointsList{} } func (*EndpointsList) ProtoMessage() {} -func (*EndpointsList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{33} } +func (*EndpointsList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{34} } func (m *EnvVar) Reset() { *m = EnvVar{} } func (*EnvVar) ProtoMessage() {} -func (*EnvVar) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{34} } +func (*EnvVar) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{35} } func (m *EnvVarSource) Reset() { *m = EnvVarSource{} } func (*EnvVarSource) ProtoMessage() {} -func (*EnvVarSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{35} } +func (*EnvVarSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{36} } func (m *Event) Reset() { *m = Event{} } func (*Event) ProtoMessage() {} -func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{36} } +func (*Event) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{37} } func (m *EventList) Reset() { *m = EventList{} } func (*EventList) ProtoMessage() {} -func (*EventList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{37} } +func (*EventList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{38} } func (m *EventSource) Reset() { *m = EventSource{} } func (*EventSource) ProtoMessage() {} -func (*EventSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{38} } +func (*EventSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{39} } func (m *ExecAction) Reset() { *m = ExecAction{} } func (*ExecAction) ProtoMessage() {} -func (*ExecAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{39} } +func (*ExecAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{40} } func (m *ExportOptions) Reset() { *m = ExportOptions{} } func (*ExportOptions) ProtoMessage() {} -func (*ExportOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{40} } +func (*ExportOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{41} } func (m *FCVolumeSource) Reset() { *m = FCVolumeSource{} } func (*FCVolumeSource) ProtoMessage() {} -func (*FCVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{41} } +func (*FCVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{42} } func (m *FlexVolumeSource) Reset() { *m = FlexVolumeSource{} } func (*FlexVolumeSource) ProtoMessage() {} -func (*FlexVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{42} } +func (*FlexVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{43} } func (m *FlockerVolumeSource) Reset() { *m = FlockerVolumeSource{} } func (*FlockerVolumeSource) ProtoMessage() {} -func (*FlockerVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{43} } +func (*FlockerVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{44} } func (m *GCEPersistentDiskVolumeSource) Reset() { *m = GCEPersistentDiskVolumeSource{} } func (*GCEPersistentDiskVolumeSource) ProtoMessage() {} func (*GCEPersistentDiskVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{44} + return fileDescriptorGenerated, []int{45} } func (m *GitRepoVolumeSource) Reset() { *m = GitRepoVolumeSource{} } func (*GitRepoVolumeSource) ProtoMessage() {} -func (*GitRepoVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{45} } +func (*GitRepoVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{46} } func (m *GlusterfsVolumeSource) Reset() { *m = GlusterfsVolumeSource{} } func (*GlusterfsVolumeSource) ProtoMessage() {} -func (*GlusterfsVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{46} } +func (*GlusterfsVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{47} } func (m *HTTPGetAction) Reset() { *m = HTTPGetAction{} } func (*HTTPGetAction) ProtoMessage() {} -func (*HTTPGetAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{47} } +func (*HTTPGetAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{48} } func (m *HTTPHeader) Reset() { *m = HTTPHeader{} } func (*HTTPHeader) ProtoMessage() {} -func (*HTTPHeader) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{48} } +func (*HTTPHeader) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{49} } func (m *Handler) Reset() { *m = Handler{} } func (*Handler) ProtoMessage() {} -func (*Handler) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{49} } +func (*Handler) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{50} } func (m *HostPathVolumeSource) Reset() { *m = HostPathVolumeSource{} } func (*HostPathVolumeSource) ProtoMessage() {} -func (*HostPathVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{50} } +func (*HostPathVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{51} } func (m *ISCSIVolumeSource) Reset() { *m = ISCSIVolumeSource{} } func (*ISCSIVolumeSource) ProtoMessage() {} -func (*ISCSIVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{51} } +func (*ISCSIVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{52} } func (m *KeyToPath) Reset() { *m = KeyToPath{} } func (*KeyToPath) ProtoMessage() {} -func (*KeyToPath) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{52} } +func (*KeyToPath) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{53} } func (m *Lifecycle) Reset() { *m = Lifecycle{} } func (*Lifecycle) ProtoMessage() {} -func (*Lifecycle) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{53} } +func (*Lifecycle) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{54} } func (m *LimitRange) Reset() { *m = LimitRange{} } func (*LimitRange) ProtoMessage() {} -func (*LimitRange) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{54} } +func (*LimitRange) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{55} } func (m *LimitRangeItem) Reset() { *m = LimitRangeItem{} } func (*LimitRangeItem) ProtoMessage() {} -func (*LimitRangeItem) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{55} } +func (*LimitRangeItem) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{56} } func (m *LimitRangeList) Reset() { *m = LimitRangeList{} } func (*LimitRangeList) ProtoMessage() {} -func (*LimitRangeList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{56} } +func (*LimitRangeList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{57} } func (m *LimitRangeSpec) Reset() { *m = LimitRangeSpec{} } func (*LimitRangeSpec) ProtoMessage() {} -func (*LimitRangeSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{57} } +func (*LimitRangeSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{58} } func (m *List) Reset() { *m = List{} } func (*List) ProtoMessage() {} -func (*List) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{58} } +func (*List) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{59} } func (m *ListOptions) Reset() { *m = ListOptions{} } func (*ListOptions) ProtoMessage() {} -func (*ListOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{59} } +func (*ListOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{60} } func (m *LoadBalancerIngress) Reset() { *m = LoadBalancerIngress{} } func (*LoadBalancerIngress) ProtoMessage() {} -func (*LoadBalancerIngress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{60} } +func (*LoadBalancerIngress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{61} } func (m *LoadBalancerStatus) Reset() { *m = LoadBalancerStatus{} } func (*LoadBalancerStatus) ProtoMessage() {} -func (*LoadBalancerStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{61} } +func (*LoadBalancerStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{62} } func (m *LocalObjectReference) Reset() { *m = LocalObjectReference{} } func (*LocalObjectReference) ProtoMessage() {} -func (*LocalObjectReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{62} } +func (*LocalObjectReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{63} } func (m *NFSVolumeSource) Reset() { *m = NFSVolumeSource{} } func (*NFSVolumeSource) ProtoMessage() {} -func (*NFSVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{63} } +func (*NFSVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{64} } func (m *Namespace) Reset() { *m = Namespace{} } func (*Namespace) ProtoMessage() {} -func (*Namespace) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{64} } +func (*Namespace) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{65} } func (m *NamespaceList) Reset() { *m = NamespaceList{} } func (*NamespaceList) ProtoMessage() {} -func (*NamespaceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{65} } +func (*NamespaceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{66} } func (m *NamespaceSpec) Reset() { *m = NamespaceSpec{} } func (*NamespaceSpec) ProtoMessage() {} -func (*NamespaceSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{66} } +func (*NamespaceSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{67} } func (m *NamespaceStatus) Reset() { *m = NamespaceStatus{} } func (*NamespaceStatus) ProtoMessage() {} -func (*NamespaceStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{67} } +func (*NamespaceStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{68} } func (m *Node) Reset() { *m = Node{} } func (*Node) ProtoMessage() {} -func (*Node) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{68} } +func (*Node) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{69} } func (m *NodeAddress) Reset() { *m = NodeAddress{} } func (*NodeAddress) ProtoMessage() {} -func (*NodeAddress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{69} } +func (*NodeAddress) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{70} } func (m *NodeAffinity) Reset() { *m = NodeAffinity{} } func (*NodeAffinity) ProtoMessage() {} -func (*NodeAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{70} } +func (*NodeAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{71} } func (m *NodeCondition) Reset() { *m = NodeCondition{} } func (*NodeCondition) ProtoMessage() {} -func (*NodeCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{71} } +func (*NodeCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{72} } func (m *NodeDaemonEndpoints) Reset() { *m = NodeDaemonEndpoints{} } func (*NodeDaemonEndpoints) ProtoMessage() {} -func (*NodeDaemonEndpoints) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{72} } +func (*NodeDaemonEndpoints) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{73} } func (m *NodeList) Reset() { *m = NodeList{} } func (*NodeList) ProtoMessage() {} -func (*NodeList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{73} } +func (*NodeList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{74} } func (m *NodeProxyOptions) Reset() { *m = NodeProxyOptions{} } func (*NodeProxyOptions) ProtoMessage() {} -func (*NodeProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{74} } +func (*NodeProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{75} } func (m *NodeSelector) Reset() { *m = NodeSelector{} } func (*NodeSelector) ProtoMessage() {} -func (*NodeSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{75} } +func (*NodeSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{76} } func (m *NodeSelectorRequirement) Reset() { *m = NodeSelectorRequirement{} } func (*NodeSelectorRequirement) ProtoMessage() {} func (*NodeSelectorRequirement) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{76} + return fileDescriptorGenerated, []int{77} } func (m *NodeSelectorTerm) Reset() { *m = NodeSelectorTerm{} } func (*NodeSelectorTerm) ProtoMessage() {} -func (*NodeSelectorTerm) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{77} } +func (*NodeSelectorTerm) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{78} } func (m *NodeSpec) Reset() { *m = NodeSpec{} } func (*NodeSpec) ProtoMessage() {} -func (*NodeSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{78} } +func (*NodeSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{79} } func (m *NodeStatus) Reset() { *m = NodeStatus{} } func (*NodeStatus) ProtoMessage() {} -func (*NodeStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{79} } +func (*NodeStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{80} } func (m *NodeSystemInfo) Reset() { *m = NodeSystemInfo{} } func (*NodeSystemInfo) ProtoMessage() {} -func (*NodeSystemInfo) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{80} } +func (*NodeSystemInfo) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{81} } func (m *ObjectFieldSelector) Reset() { *m = ObjectFieldSelector{} } func (*ObjectFieldSelector) ProtoMessage() {} -func (*ObjectFieldSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{81} } +func (*ObjectFieldSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{82} } func (m *ObjectMeta) Reset() { *m = ObjectMeta{} } func (*ObjectMeta) ProtoMessage() {} -func (*ObjectMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{82} } +func (*ObjectMeta) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{83} } func (m *ObjectReference) Reset() { *m = ObjectReference{} } func (*ObjectReference) ProtoMessage() {} -func (*ObjectReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{83} } +func (*ObjectReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{84} } func (m *OwnerReference) Reset() { *m = OwnerReference{} } func (*OwnerReference) ProtoMessage() {} -func (*OwnerReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{84} } +func (*OwnerReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{85} } func (m *PersistentVolume) Reset() { *m = PersistentVolume{} } func (*PersistentVolume) ProtoMessage() {} -func (*PersistentVolume) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{85} } +func (*PersistentVolume) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{86} } func (m *PersistentVolumeClaim) Reset() { *m = PersistentVolumeClaim{} } func (*PersistentVolumeClaim) ProtoMessage() {} -func (*PersistentVolumeClaim) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{86} } +func (*PersistentVolumeClaim) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{87} } func (m *PersistentVolumeClaimList) Reset() { *m = PersistentVolumeClaimList{} } func (*PersistentVolumeClaimList) ProtoMessage() {} func (*PersistentVolumeClaimList) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{87} + return fileDescriptorGenerated, []int{88} } func (m *PersistentVolumeClaimSpec) Reset() { *m = PersistentVolumeClaimSpec{} } func (*PersistentVolumeClaimSpec) ProtoMessage() {} func (*PersistentVolumeClaimSpec) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{88} + return fileDescriptorGenerated, []int{89} } func (m *PersistentVolumeClaimStatus) Reset() { *m = PersistentVolumeClaimStatus{} } func (*PersistentVolumeClaimStatus) ProtoMessage() {} func (*PersistentVolumeClaimStatus) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{89} + return fileDescriptorGenerated, []int{90} } func (m *PersistentVolumeClaimVolumeSource) Reset() { *m = PersistentVolumeClaimVolumeSource{} } func (*PersistentVolumeClaimVolumeSource) ProtoMessage() {} func (*PersistentVolumeClaimVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{90} + return fileDescriptorGenerated, []int{91} } func (m *PersistentVolumeList) Reset() { *m = PersistentVolumeList{} } func (*PersistentVolumeList) ProtoMessage() {} -func (*PersistentVolumeList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{91} } +func (*PersistentVolumeList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{92} } func (m *PersistentVolumeSource) Reset() { *m = PersistentVolumeSource{} } func (*PersistentVolumeSource) ProtoMessage() {} -func (*PersistentVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{92} } +func (*PersistentVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{93} } func (m *PersistentVolumeSpec) Reset() { *m = PersistentVolumeSpec{} } func (*PersistentVolumeSpec) ProtoMessage() {} -func (*PersistentVolumeSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{93} } +func (*PersistentVolumeSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{94} } func (m *PersistentVolumeStatus) Reset() { *m = PersistentVolumeStatus{} } func (*PersistentVolumeStatus) ProtoMessage() {} -func (*PersistentVolumeStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{94} } +func (*PersistentVolumeStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{95} } func (m *Pod) Reset() { *m = Pod{} } func (*Pod) ProtoMessage() {} -func (*Pod) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{95} } +func (*Pod) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{96} } func (m *PodAffinity) Reset() { *m = PodAffinity{} } func (*PodAffinity) ProtoMessage() {} -func (*PodAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{96} } +func (*PodAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{97} } func (m *PodAffinityTerm) Reset() { *m = PodAffinityTerm{} } func (*PodAffinityTerm) ProtoMessage() {} -func (*PodAffinityTerm) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{97} } +func (*PodAffinityTerm) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{98} } func (m *PodAntiAffinity) Reset() { *m = PodAntiAffinity{} } func (*PodAntiAffinity) ProtoMessage() {} -func (*PodAntiAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{98} } +func (*PodAntiAffinity) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{99} } func (m *PodAttachOptions) Reset() { *m = PodAttachOptions{} } func (*PodAttachOptions) ProtoMessage() {} -func (*PodAttachOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{99} } +func (*PodAttachOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{100} } func (m *PodCondition) Reset() { *m = PodCondition{} } func (*PodCondition) ProtoMessage() {} -func (*PodCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{100} } +func (*PodCondition) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{101} } func (m *PodExecOptions) Reset() { *m = PodExecOptions{} } func (*PodExecOptions) ProtoMessage() {} -func (*PodExecOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{101} } +func (*PodExecOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{102} } func (m *PodList) Reset() { *m = PodList{} } func (*PodList) ProtoMessage() {} -func (*PodList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{102} } +func (*PodList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{103} } func (m *PodLogOptions) Reset() { *m = PodLogOptions{} } func (*PodLogOptions) ProtoMessage() {} -func (*PodLogOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{103} } +func (*PodLogOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{104} } func (m *PodProxyOptions) Reset() { *m = PodProxyOptions{} } func (*PodProxyOptions) ProtoMessage() {} -func (*PodProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{104} } +func (*PodProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{105} } func (m *PodSecurityContext) Reset() { *m = PodSecurityContext{} } func (*PodSecurityContext) ProtoMessage() {} -func (*PodSecurityContext) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{105} } +func (*PodSecurityContext) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{106} } func (m *PodSignature) Reset() { *m = PodSignature{} } func (*PodSignature) ProtoMessage() {} -func (*PodSignature) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{106} } +func (*PodSignature) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{107} } func (m *PodSpec) Reset() { *m = PodSpec{} } func (*PodSpec) ProtoMessage() {} -func (*PodSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{107} } +func (*PodSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{108} } func (m *PodStatus) Reset() { *m = PodStatus{} } func (*PodStatus) ProtoMessage() {} -func (*PodStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{108} } +func (*PodStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{109} } func (m *PodStatusResult) Reset() { *m = PodStatusResult{} } func (*PodStatusResult) ProtoMessage() {} -func (*PodStatusResult) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{109} } +func (*PodStatusResult) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{110} } func (m *PodTemplate) Reset() { *m = PodTemplate{} } func (*PodTemplate) ProtoMessage() {} -func (*PodTemplate) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{110} } +func (*PodTemplate) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{111} } func (m *PodTemplateList) Reset() { *m = PodTemplateList{} } func (*PodTemplateList) ProtoMessage() {} -func (*PodTemplateList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{111} } +func (*PodTemplateList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{112} } func (m *PodTemplateSpec) Reset() { *m = PodTemplateSpec{} } func (*PodTemplateSpec) ProtoMessage() {} -func (*PodTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{112} } +func (*PodTemplateSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{113} } func (m *Preconditions) Reset() { *m = Preconditions{} } func (*Preconditions) ProtoMessage() {} -func (*Preconditions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{113} } +func (*Preconditions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{114} } func (m *PreferAvoidPodsEntry) Reset() { *m = PreferAvoidPodsEntry{} } func (*PreferAvoidPodsEntry) ProtoMessage() {} -func (*PreferAvoidPodsEntry) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{114} } +func (*PreferAvoidPodsEntry) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{115} } func (m *PreferredSchedulingTerm) Reset() { *m = PreferredSchedulingTerm{} } func (*PreferredSchedulingTerm) ProtoMessage() {} func (*PreferredSchedulingTerm) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{115} + return fileDescriptorGenerated, []int{116} } func (m *Probe) Reset() { *m = Probe{} } func (*Probe) ProtoMessage() {} -func (*Probe) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{116} } +func (*Probe) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{117} } + +func (m *QuobyteVolumeSource) Reset() { *m = QuobyteVolumeSource{} } +func (*QuobyteVolumeSource) ProtoMessage() {} +func (*QuobyteVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{118} } func (m *RBDVolumeSource) Reset() { *m = RBDVolumeSource{} } func (*RBDVolumeSource) ProtoMessage() {} -func (*RBDVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{117} } +func (*RBDVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{119} } func (m *RangeAllocation) Reset() { *m = RangeAllocation{} } func (*RangeAllocation) ProtoMessage() {} -func (*RangeAllocation) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{118} } +func (*RangeAllocation) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{120} } func (m *ReplicationController) Reset() { *m = ReplicationController{} } func (*ReplicationController) ProtoMessage() {} -func (*ReplicationController) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{119} } +func (*ReplicationController) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{121} } func (m *ReplicationControllerList) Reset() { *m = ReplicationControllerList{} } func (*ReplicationControllerList) ProtoMessage() {} func (*ReplicationControllerList) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{120} + return fileDescriptorGenerated, []int{122} } func (m *ReplicationControllerSpec) Reset() { *m = ReplicationControllerSpec{} } func (*ReplicationControllerSpec) ProtoMessage() {} func (*ReplicationControllerSpec) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{121} + return fileDescriptorGenerated, []int{123} } func (m *ReplicationControllerStatus) Reset() { *m = ReplicationControllerStatus{} } func (*ReplicationControllerStatus) ProtoMessage() {} func (*ReplicationControllerStatus) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{122} + return fileDescriptorGenerated, []int{124} } func (m *ResourceFieldSelector) Reset() { *m = ResourceFieldSelector{} } func (*ResourceFieldSelector) ProtoMessage() {} -func (*ResourceFieldSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{123} } +func (*ResourceFieldSelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{125} } func (m *ResourceQuota) Reset() { *m = ResourceQuota{} } func (*ResourceQuota) ProtoMessage() {} -func (*ResourceQuota) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{124} } +func (*ResourceQuota) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{126} } func (m *ResourceQuotaList) Reset() { *m = ResourceQuotaList{} } func (*ResourceQuotaList) ProtoMessage() {} -func (*ResourceQuotaList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{125} } +func (*ResourceQuotaList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{127} } func (m *ResourceQuotaSpec) Reset() { *m = ResourceQuotaSpec{} } func (*ResourceQuotaSpec) ProtoMessage() {} -func (*ResourceQuotaSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{126} } +func (*ResourceQuotaSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{128} } func (m *ResourceQuotaStatus) Reset() { *m = ResourceQuotaStatus{} } func (*ResourceQuotaStatus) ProtoMessage() {} -func (*ResourceQuotaStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{127} } +func (*ResourceQuotaStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{129} } func (m *ResourceRequirements) Reset() { *m = ResourceRequirements{} } func (*ResourceRequirements) ProtoMessage() {} -func (*ResourceRequirements) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{128} } +func (*ResourceRequirements) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{130} } func (m *SELinuxOptions) Reset() { *m = SELinuxOptions{} } func (*SELinuxOptions) ProtoMessage() {} -func (*SELinuxOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{129} } +func (*SELinuxOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{131} } func (m *Secret) Reset() { *m = Secret{} } func (*Secret) ProtoMessage() {} -func (*Secret) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{130} } +func (*Secret) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{132} } func (m *SecretKeySelector) Reset() { *m = SecretKeySelector{} } func (*SecretKeySelector) ProtoMessage() {} -func (*SecretKeySelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{131} } +func (*SecretKeySelector) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{133} } func (m *SecretList) Reset() { *m = SecretList{} } func (*SecretList) ProtoMessage() {} -func (*SecretList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{132} } +func (*SecretList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{134} } func (m *SecretVolumeSource) Reset() { *m = SecretVolumeSource{} } func (*SecretVolumeSource) ProtoMessage() {} -func (*SecretVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{133} } +func (*SecretVolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{135} } func (m *SecurityContext) Reset() { *m = SecurityContext{} } func (*SecurityContext) ProtoMessage() {} -func (*SecurityContext) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{134} } +func (*SecurityContext) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{136} } func (m *SerializedReference) Reset() { *m = SerializedReference{} } func (*SerializedReference) ProtoMessage() {} -func (*SerializedReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{135} } +func (*SerializedReference) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{137} } func (m *Service) Reset() { *m = Service{} } func (*Service) ProtoMessage() {} -func (*Service) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{136} } +func (*Service) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{138} } func (m *ServiceAccount) Reset() { *m = ServiceAccount{} } func (*ServiceAccount) ProtoMessage() {} -func (*ServiceAccount) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{137} } +func (*ServiceAccount) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{139} } func (m *ServiceAccountList) Reset() { *m = ServiceAccountList{} } func (*ServiceAccountList) ProtoMessage() {} -func (*ServiceAccountList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{138} } +func (*ServiceAccountList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{140} } func (m *ServiceList) Reset() { *m = ServiceList{} } func (*ServiceList) ProtoMessage() {} -func (*ServiceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{139} } +func (*ServiceList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{141} } func (m *ServicePort) Reset() { *m = ServicePort{} } func (*ServicePort) ProtoMessage() {} -func (*ServicePort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{140} } +func (*ServicePort) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{142} } func (m *ServiceProxyOptions) Reset() { *m = ServiceProxyOptions{} } func (*ServiceProxyOptions) ProtoMessage() {} -func (*ServiceProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{141} } +func (*ServiceProxyOptions) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{143} } func (m *ServiceSpec) Reset() { *m = ServiceSpec{} } func (*ServiceSpec) ProtoMessage() {} -func (*ServiceSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{142} } +func (*ServiceSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{144} } func (m *ServiceStatus) Reset() { *m = ServiceStatus{} } func (*ServiceStatus) ProtoMessage() {} -func (*ServiceStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{143} } +func (*ServiceStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{145} } func (m *TCPSocketAction) Reset() { *m = TCPSocketAction{} } func (*TCPSocketAction) ProtoMessage() {} -func (*TCPSocketAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{144} } +func (*TCPSocketAction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{146} } func (m *Taint) Reset() { *m = Taint{} } func (*Taint) ProtoMessage() {} -func (*Taint) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{145} } +func (*Taint) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{147} } func (m *Toleration) Reset() { *m = Toleration{} } func (*Toleration) ProtoMessage() {} -func (*Toleration) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{146} } +func (*Toleration) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{148} } func (m *Volume) Reset() { *m = Volume{} } func (*Volume) ProtoMessage() {} -func (*Volume) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{147} } +func (*Volume) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{149} } func (m *VolumeMount) Reset() { *m = VolumeMount{} } func (*VolumeMount) ProtoMessage() {} -func (*VolumeMount) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{148} } +func (*VolumeMount) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{150} } func (m *VolumeSource) Reset() { *m = VolumeSource{} } func (*VolumeSource) ProtoMessage() {} -func (*VolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{149} } +func (*VolumeSource) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{151} } func (m *VsphereVirtualDiskVolumeSource) Reset() { *m = VsphereVirtualDiskVolumeSource{} } func (*VsphereVirtualDiskVolumeSource) ProtoMessage() {} func (*VsphereVirtualDiskVolumeSource) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{150} + return fileDescriptorGenerated, []int{152} } func (m *WeightedPodAffinityTerm) Reset() { *m = WeightedPodAffinityTerm{} } func (*WeightedPodAffinityTerm) ProtoMessage() {} func (*WeightedPodAffinityTerm) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{151} + return fileDescriptorGenerated, []int{153} } func init() { @@ -848,6 +858,7 @@ func init() { proto.RegisterType((*Affinity)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Affinity") proto.RegisterType((*AttachedVolume)(nil), "k8s.io.client-go.1.4.pkg.api.v1.AttachedVolume") proto.RegisterType((*AvoidPods)(nil), "k8s.io.client-go.1.4.pkg.api.v1.AvoidPods") + proto.RegisterType((*AzureDiskVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.AzureDiskVolumeSource") proto.RegisterType((*AzureFileVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.AzureFileVolumeSource") proto.RegisterType((*Binding)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Binding") proto.RegisterType((*Capabilities)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Capabilities") @@ -961,6 +972,7 @@ func init() { proto.RegisterType((*PreferAvoidPodsEntry)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PreferAvoidPodsEntry") proto.RegisterType((*PreferredSchedulingTerm)(nil), "k8s.io.client-go.1.4.pkg.api.v1.PreferredSchedulingTerm") proto.RegisterType((*Probe)(nil), "k8s.io.client-go.1.4.pkg.api.v1.Probe") + proto.RegisterType((*QuobyteVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.QuobyteVolumeSource") proto.RegisterType((*RBDVolumeSource)(nil), "k8s.io.client-go.1.4.pkg.api.v1.RBDVolumeSource") proto.RegisterType((*RangeAllocation)(nil), "k8s.io.client-go.1.4.pkg.api.v1.RangeAllocation") proto.RegisterType((*ReplicationController)(nil), "k8s.io.client-go.1.4.pkg.api.v1.ReplicationController") @@ -1138,6 +1150,54 @@ func (m *AvoidPods) MarshalTo(data []byte) (int, error) { return i, nil } +func (m *AzureDiskVolumeSource) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *AzureDiskVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.DiskName))) + i += copy(data[i:], m.DiskName) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.DataDiskURI))) + i += copy(data[i:], m.DataDiskURI) + if m.CachingMode != nil { + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(*m.CachingMode))) + i += copy(data[i:], *m.CachingMode) + } + if m.FSType != nil { + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(*m.FSType))) + i += copy(data[i:], *m.FSType) + } + if m.ReadOnly != nil { + data[i] = 0x28 + i++ + if *m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + } + return i, nil +} + func (m *AzureFileVolumeSource) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) @@ -1607,6 +1667,11 @@ func (m *ConfigMapVolumeSource) MarshalTo(data []byte) (int, error) { i += n } } + if m.DefaultMode != nil { + data[i] = 0x18 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.DefaultMode)) + } return i, nil } @@ -2180,6 +2245,11 @@ func (m *DownwardAPIVolumeFile) MarshalTo(data []byte) (int, error) { } i += n28 } + if m.Mode != nil { + data[i] = 0x20 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.Mode)) + } return i, nil } @@ -2210,6 +2280,11 @@ func (m *DownwardAPIVolumeSource) MarshalTo(data []byte) (int, error) { i += n } } + if m.DefaultMode != nil { + data[i] = 0x10 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.DefaultMode)) + } return i, nil } @@ -3182,6 +3257,11 @@ func (m *KeyToPath) MarshalTo(data []byte) (int, error) { i++ i = encodeVarintGenerated(data, i, uint64(len(m.Path))) i += copy(data[i:], m.Path) + if m.Mode != nil { + data[i] = 0x18 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.Mode)) + } return i, nil } @@ -4523,6 +4603,10 @@ func (m *ObjectMeta) MarshalTo(data []byte) (int, error) { i += copy(data[i:], s) } } + data[i] = 0x7a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ClusterName))) + i += copy(data[i:], m.ClusterName) return i, nil } @@ -5075,6 +5159,28 @@ func (m *PersistentVolumeSource) MarshalTo(data []byte) (int, error) { } i += n101 } + if m.Quobyte != nil { + data[i] = 0x7a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Quobyte.Size())) + n102, err := m.Quobyte.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n102 + } + if m.AzureDisk != nil { + data[i] = 0x82 + i++ + data[i] = 0x1 + i++ + i = encodeVarintGenerated(data, i, uint64(m.AzureDisk.Size())) + n103, err := m.AzureDisk.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n103 + } return i, nil } @@ -5108,21 +5214,21 @@ func (m *PersistentVolumeSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n102, err := (&v).MarshalTo(data[i:]) + n104, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n102 + i += n104 } } data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.PersistentVolumeSource.Size())) - n103, err := m.PersistentVolumeSource.MarshalTo(data[i:]) + n105, err := m.PersistentVolumeSource.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n103 + i += n105 if len(m.AccessModes) > 0 { for _, s := range m.AccessModes { data[i] = 0x1a @@ -5142,11 +5248,11 @@ func (m *PersistentVolumeSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(m.ClaimRef.Size())) - n104, err := m.ClaimRef.MarshalTo(data[i:]) + n106, err := m.ClaimRef.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n104 + i += n106 } data[i] = 0x2a i++ @@ -5203,27 +5309,27 @@ func (m *Pod) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n105, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n105 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n106, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n106 - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n107, err := m.Status.MarshalTo(data[i:]) + n107, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n107 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n108, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n108 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n109, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n109 return i, nil } @@ -5288,11 +5394,11 @@ func (m *PodAffinityTerm) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.LabelSelector.Size())) - n108, err := m.LabelSelector.MarshalTo(data[i:]) + n110, err := m.LabelSelector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n108 + i += n110 } if len(m.Namespaces) > 0 { for _, s := range m.Namespaces { @@ -5438,19 +5544,19 @@ func (m *PodCondition) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.LastProbeTime.Size())) - n109, err := m.LastProbeTime.MarshalTo(data[i:]) + n111, err := m.LastProbeTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n109 + i += n111 data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(m.LastTransitionTime.Size())) - n110, err := m.LastTransitionTime.MarshalTo(data[i:]) + n112, err := m.LastTransitionTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n110 + i += n112 data[i] = 0x2a i++ i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) @@ -5549,11 +5655,11 @@ func (m *PodList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n111, err := m.ListMeta.MarshalTo(data[i:]) + n113, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n111 + i += n113 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -5613,11 +5719,11 @@ func (m *PodLogOptions) MarshalTo(data []byte) (int, error) { data[i] = 0x2a i++ i = encodeVarintGenerated(data, i, uint64(m.SinceTime.Size())) - n112, err := m.SinceTime.MarshalTo(data[i:]) + n114, err := m.SinceTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n112 + i += n114 } data[i] = 0x30 i++ @@ -5681,11 +5787,11 @@ func (m *PodSecurityContext) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.SELinuxOptions.Size())) - n113, err := m.SELinuxOptions.MarshalTo(data[i:]) + n115, err := m.SELinuxOptions.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n113 + i += n115 } if m.RunAsUser != nil { data[i] = 0x10 @@ -5736,11 +5842,11 @@ func (m *PodSignature) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.PodController.Size())) - n114, err := m.PodController.MarshalTo(data[i:]) + n116, err := m.PodController.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n114 + i += n116 } return i, nil } @@ -5859,11 +5965,11 @@ func (m *PodSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x72 i++ i = encodeVarintGenerated(data, i, uint64(m.SecurityContext.Size())) - n115, err := m.SecurityContext.MarshalTo(data[i:]) + n117, err := m.SecurityContext.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n115 + i += n117 } if len(m.ImagePullSecrets) > 0 { for _, msg := range m.ImagePullSecrets { @@ -5943,11 +6049,11 @@ func (m *PodStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x3a i++ i = encodeVarintGenerated(data, i, uint64(m.StartTime.Size())) - n116, err := m.StartTime.MarshalTo(data[i:]) + n118, err := m.StartTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n116 + i += n118 } if len(m.ContainerStatuses) > 0 { for _, msg := range m.ContainerStatuses { @@ -5982,19 +6088,19 @@ func (m *PodStatusResult) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n117, err := m.ObjectMeta.MarshalTo(data[i:]) + n119, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n117 + i += n119 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n118, err := m.Status.MarshalTo(data[i:]) + n120, err := m.Status.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n118 + i += n120 return i, nil } @@ -6016,19 +6122,19 @@ func (m *PodTemplate) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n119, err := m.ObjectMeta.MarshalTo(data[i:]) + n121, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n119 + i += n121 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n120, err := m.Template.MarshalTo(data[i:]) + n122, err := m.Template.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n120 + i += n122 return i, nil } @@ -6050,11 +6156,11 @@ func (m *PodTemplateList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n121, err := m.ListMeta.MarshalTo(data[i:]) + n123, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n121 + i += n123 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -6088,19 +6194,19 @@ func (m *PodTemplateSpec) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n122, err := m.ObjectMeta.MarshalTo(data[i:]) + n124, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n122 + i += n124 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n123, err := m.Spec.MarshalTo(data[i:]) + n125, err := m.Spec.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n123 + i += n125 return i, nil } @@ -6146,19 +6252,19 @@ func (m *PreferAvoidPodsEntry) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.PodSignature.Size())) - n124, err := m.PodSignature.MarshalTo(data[i:]) + n126, err := m.PodSignature.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n124 + i += n126 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.EvictionTime.Size())) - n125, err := m.EvictionTime.MarshalTo(data[i:]) + n127, err := m.EvictionTime.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n125 + i += n127 data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) @@ -6191,11 +6297,11 @@ func (m *PreferredSchedulingTerm) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Preference.Size())) - n126, err := m.Preference.MarshalTo(data[i:]) + n128, err := m.Preference.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n126 + i += n128 return i, nil } @@ -6217,11 +6323,11 @@ func (m *Probe) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Handler.Size())) - n127, err := m.Handler.MarshalTo(data[i:]) + n129, err := m.Handler.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n127 + i += n129 data[i] = 0x10 i++ i = encodeVarintGenerated(data, i, uint64(m.InitialDelaySeconds)) @@ -6240,6 +6346,48 @@ func (m *Probe) MarshalTo(data []byte) (int, error) { return i, nil } +func (m *QuobyteVolumeSource) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *QuobyteVolumeSource) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Registry))) + i += copy(data[i:], m.Registry) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Volume))) + i += copy(data[i:], m.Volume) + data[i] = 0x18 + i++ + if m.ReadOnly { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x22 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.User))) + i += copy(data[i:], m.User) + data[i] = 0x2a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Group))) + i += copy(data[i:], m.Group) + return i, nil +} + func (m *RBDVolumeSource) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) @@ -6294,11 +6442,11 @@ func (m *RBDVolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x3a i++ i = encodeVarintGenerated(data, i, uint64(m.SecretRef.Size())) - n128, err := m.SecretRef.MarshalTo(data[i:]) + n130, err := m.SecretRef.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n128 + i += n130 } data[i] = 0x40 i++ @@ -6329,11 +6477,11 @@ func (m *RangeAllocation) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n129, err := m.ObjectMeta.MarshalTo(data[i:]) + n131, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n129 + i += n131 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(len(m.Range))) @@ -6365,27 +6513,27 @@ func (m *ReplicationController) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n130, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n130 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n131, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n131 - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n132, err := m.Status.MarshalTo(data[i:]) + n132, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n132 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n133, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n133 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n134, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n134 return i, nil } @@ -6407,11 +6555,11 @@ func (m *ReplicationControllerList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n133, err := m.ListMeta.MarshalTo(data[i:]) + n135, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n133 + i += n135 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -6468,11 +6616,11 @@ func (m *ReplicationControllerSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Template.Size())) - n134, err := m.Template.MarshalTo(data[i:]) + n136, err := m.Template.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n134 + i += n136 } return i, nil } @@ -6501,6 +6649,9 @@ func (m *ReplicationControllerStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x18 i++ i = encodeVarintGenerated(data, i, uint64(m.ObservedGeneration)) + data[i] = 0x20 + i++ + i = encodeVarintGenerated(data, i, uint64(m.ReadyReplicas)) return i, nil } @@ -6530,11 +6681,11 @@ func (m *ResourceFieldSelector) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.Divisor.Size())) - n135, err := m.Divisor.MarshalTo(data[i:]) + n137, err := m.Divisor.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n135 + i += n137 return i, nil } @@ -6556,27 +6707,27 @@ func (m *ResourceQuota) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n136, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n136 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n137, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n137 - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n138, err := m.Status.MarshalTo(data[i:]) + n138, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n138 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n139, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n139 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n140, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n140 return i, nil } @@ -6598,11 +6749,11 @@ func (m *ResourceQuotaList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n139, err := m.ListMeta.MarshalTo(data[i:]) + n141, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n139 + i += n141 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -6648,11 +6799,11 @@ func (m *ResourceQuotaSpec) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n140, err := (&v).MarshalTo(data[i:]) + n142, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n140 + i += n142 } } if len(m.Scopes) > 0 { @@ -6703,11 +6854,11 @@ func (m *ResourceQuotaStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n141, err := (&v).MarshalTo(data[i:]) + n143, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n141 + i += n143 } } if len(m.Used) > 0 { @@ -6725,11 +6876,11 @@ func (m *ResourceQuotaStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n142, err := (&v).MarshalTo(data[i:]) + n144, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n142 + i += n144 } } return i, nil @@ -6765,11 +6916,11 @@ func (m *ResourceRequirements) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n143, err := (&v).MarshalTo(data[i:]) + n145, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n143 + i += n145 } } if len(m.Requests) > 0 { @@ -6787,11 +6938,11 @@ func (m *ResourceRequirements) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64((&v).Size())) - n144, err := (&v).MarshalTo(data[i:]) + n146, err := (&v).MarshalTo(data[i:]) if err != nil { return 0, err } - i += n144 + i += n146 } } return i, nil @@ -6849,11 +7000,11 @@ func (m *Secret) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n145, err := m.ObjectMeta.MarshalTo(data[i:]) + n147, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n145 + i += n147 if len(m.Data) > 0 { for k := range m.Data { data[i] = 0x12 @@ -6913,11 +7064,11 @@ func (m *SecretKeySelector) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.LocalObjectReference.Size())) - n146, err := m.LocalObjectReference.MarshalTo(data[i:]) + n148, err := m.LocalObjectReference.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n146 + i += n148 data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(len(m.Key))) @@ -6943,11 +7094,11 @@ func (m *SecretList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n147, err := m.ListMeta.MarshalTo(data[i:]) + n149, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n147 + i += n149 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -6994,6 +7145,11 @@ func (m *SecretVolumeSource) MarshalTo(data []byte) (int, error) { i += n } } + if m.DefaultMode != nil { + data[i] = 0x18 + i++ + i = encodeVarintGenerated(data, i, uint64(*m.DefaultMode)) + } return i, nil } @@ -7016,11 +7172,11 @@ func (m *SecurityContext) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Capabilities.Size())) - n148, err := m.Capabilities.MarshalTo(data[i:]) + n150, err := m.Capabilities.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n148 + i += n150 } if m.Privileged != nil { data[i] = 0x10 @@ -7036,11 +7192,11 @@ func (m *SecurityContext) MarshalTo(data []byte) (int, error) { data[i] = 0x1a i++ i = encodeVarintGenerated(data, i, uint64(m.SELinuxOptions.Size())) - n149, err := m.SELinuxOptions.MarshalTo(data[i:]) + n151, err := m.SELinuxOptions.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n149 + i += n151 } if m.RunAsUser != nil { data[i] = 0x20 @@ -7088,11 +7244,11 @@ func (m *SerializedReference) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Reference.Size())) - n150, err := m.Reference.MarshalTo(data[i:]) + n152, err := m.Reference.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n150 + i += n152 return i, nil } @@ -7114,27 +7270,27 @@ func (m *Service) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n151, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n151 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n152, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n152 - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n153, err := m.Status.MarshalTo(data[i:]) + n153, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n153 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n154, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n154 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n155, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n155 return i, nil } @@ -7156,11 +7312,11 @@ func (m *ServiceAccount) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n154, err := m.ObjectMeta.MarshalTo(data[i:]) + n156, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n154 + i += n156 if len(m.Secrets) > 0 { for _, msg := range m.Secrets { data[i] = 0x12 @@ -7206,11 +7362,11 @@ func (m *ServiceAccountList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n155, err := m.ListMeta.MarshalTo(data[i:]) + n157, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n155 + i += n157 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -7244,11 +7400,11 @@ func (m *ServiceList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n156, err := m.ListMeta.MarshalTo(data[i:]) + n158, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n156 + i += n158 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -7293,11 +7449,11 @@ func (m *ServicePort) MarshalTo(data []byte) (int, error) { data[i] = 0x22 i++ i = encodeVarintGenerated(data, i, uint64(m.TargetPort.Size())) - n157, err := m.TargetPort.MarshalTo(data[i:]) + n159, err := m.TargetPort.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n157 + i += n159 data[i] = 0x28 i++ i = encodeVarintGenerated(data, i, uint64(m.NodePort)) @@ -7431,6 +7587,10 @@ func (m *ServiceSpec) MarshalTo(data []byte) (int, error) { i += copy(data[i:], s) } } + data[i] = 0x52 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.ExternalName))) + i += copy(data[i:], m.ExternalName) return i, nil } @@ -7452,11 +7612,11 @@ func (m *ServiceStatus) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.LoadBalancer.Size())) - n158, err := m.LoadBalancer.MarshalTo(data[i:]) + n160, err := m.LoadBalancer.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n158 + i += n160 return i, nil } @@ -7478,11 +7638,11 @@ func (m *TCPSocketAction) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.Port.Size())) - n159, err := m.Port.MarshalTo(data[i:]) + n161, err := m.Port.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n159 + i += n161 return i, nil } @@ -7572,11 +7732,11 @@ func (m *Volume) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.VolumeSource.Size())) - n160, err := m.VolumeSource.MarshalTo(data[i:]) + n162, err := m.VolumeSource.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n160 + i += n162 return i, nil } @@ -7637,163 +7797,163 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.HostPath.Size())) - n161, err := m.HostPath.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n161 - } - if m.EmptyDir != nil { - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.EmptyDir.Size())) - n162, err := m.EmptyDir.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n162 - } - if m.GCEPersistentDisk != nil { - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.GCEPersistentDisk.Size())) - n163, err := m.GCEPersistentDisk.MarshalTo(data[i:]) + n163, err := m.HostPath.MarshalTo(data[i:]) if err != nil { return 0, err } i += n163 } - if m.AWSElasticBlockStore != nil { - data[i] = 0x22 + if m.EmptyDir != nil { + data[i] = 0x12 i++ - i = encodeVarintGenerated(data, i, uint64(m.AWSElasticBlockStore.Size())) - n164, err := m.AWSElasticBlockStore.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.EmptyDir.Size())) + n164, err := m.EmptyDir.MarshalTo(data[i:]) if err != nil { return 0, err } i += n164 } - if m.GitRepo != nil { - data[i] = 0x2a + if m.GCEPersistentDisk != nil { + data[i] = 0x1a i++ - i = encodeVarintGenerated(data, i, uint64(m.GitRepo.Size())) - n165, err := m.GitRepo.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.GCEPersistentDisk.Size())) + n165, err := m.GCEPersistentDisk.MarshalTo(data[i:]) if err != nil { return 0, err } i += n165 } - if m.Secret != nil { - data[i] = 0x32 + if m.AWSElasticBlockStore != nil { + data[i] = 0x22 i++ - i = encodeVarintGenerated(data, i, uint64(m.Secret.Size())) - n166, err := m.Secret.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.AWSElasticBlockStore.Size())) + n166, err := m.AWSElasticBlockStore.MarshalTo(data[i:]) if err != nil { return 0, err } i += n166 } - if m.NFS != nil { - data[i] = 0x3a + if m.GitRepo != nil { + data[i] = 0x2a i++ - i = encodeVarintGenerated(data, i, uint64(m.NFS.Size())) - n167, err := m.NFS.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.GitRepo.Size())) + n167, err := m.GitRepo.MarshalTo(data[i:]) if err != nil { return 0, err } i += n167 } - if m.ISCSI != nil { - data[i] = 0x42 + if m.Secret != nil { + data[i] = 0x32 i++ - i = encodeVarintGenerated(data, i, uint64(m.ISCSI.Size())) - n168, err := m.ISCSI.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.Secret.Size())) + n168, err := m.Secret.MarshalTo(data[i:]) if err != nil { return 0, err } i += n168 } - if m.Glusterfs != nil { - data[i] = 0x4a + if m.NFS != nil { + data[i] = 0x3a i++ - i = encodeVarintGenerated(data, i, uint64(m.Glusterfs.Size())) - n169, err := m.Glusterfs.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.NFS.Size())) + n169, err := m.NFS.MarshalTo(data[i:]) if err != nil { return 0, err } i += n169 } - if m.PersistentVolumeClaim != nil { - data[i] = 0x52 + if m.ISCSI != nil { + data[i] = 0x42 i++ - i = encodeVarintGenerated(data, i, uint64(m.PersistentVolumeClaim.Size())) - n170, err := m.PersistentVolumeClaim.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.ISCSI.Size())) + n170, err := m.ISCSI.MarshalTo(data[i:]) if err != nil { return 0, err } i += n170 } - if m.RBD != nil { - data[i] = 0x5a + if m.Glusterfs != nil { + data[i] = 0x4a i++ - i = encodeVarintGenerated(data, i, uint64(m.RBD.Size())) - n171, err := m.RBD.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.Glusterfs.Size())) + n171, err := m.Glusterfs.MarshalTo(data[i:]) if err != nil { return 0, err } i += n171 } - if m.FlexVolume != nil { - data[i] = 0x62 + if m.PersistentVolumeClaim != nil { + data[i] = 0x52 i++ - i = encodeVarintGenerated(data, i, uint64(m.FlexVolume.Size())) - n172, err := m.FlexVolume.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.PersistentVolumeClaim.Size())) + n172, err := m.PersistentVolumeClaim.MarshalTo(data[i:]) if err != nil { return 0, err } i += n172 } - if m.Cinder != nil { - data[i] = 0x6a + if m.RBD != nil { + data[i] = 0x5a i++ - i = encodeVarintGenerated(data, i, uint64(m.Cinder.Size())) - n173, err := m.Cinder.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.RBD.Size())) + n173, err := m.RBD.MarshalTo(data[i:]) if err != nil { return 0, err } i += n173 } - if m.CephFS != nil { - data[i] = 0x72 + if m.FlexVolume != nil { + data[i] = 0x62 i++ - i = encodeVarintGenerated(data, i, uint64(m.CephFS.Size())) - n174, err := m.CephFS.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.FlexVolume.Size())) + n174, err := m.FlexVolume.MarshalTo(data[i:]) if err != nil { return 0, err } i += n174 } - if m.Flocker != nil { - data[i] = 0x7a + if m.Cinder != nil { + data[i] = 0x6a i++ - i = encodeVarintGenerated(data, i, uint64(m.Flocker.Size())) - n175, err := m.Flocker.MarshalTo(data[i:]) + i = encodeVarintGenerated(data, i, uint64(m.Cinder.Size())) + n175, err := m.Cinder.MarshalTo(data[i:]) if err != nil { return 0, err } i += n175 } + if m.CephFS != nil { + data[i] = 0x72 + i++ + i = encodeVarintGenerated(data, i, uint64(m.CephFS.Size())) + n176, err := m.CephFS.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n176 + } + if m.Flocker != nil { + data[i] = 0x7a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Flocker.Size())) + n177, err := m.Flocker.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n177 + } if m.DownwardAPI != nil { data[i] = 0x82 i++ data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.DownwardAPI.Size())) - n176, err := m.DownwardAPI.MarshalTo(data[i:]) + n178, err := m.DownwardAPI.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n176 + i += n178 } if m.FC != nil { data[i] = 0x8a @@ -7801,11 +7961,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.FC.Size())) - n177, err := m.FC.MarshalTo(data[i:]) + n179, err := m.FC.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n177 + i += n179 } if m.AzureFile != nil { data[i] = 0x92 @@ -7813,11 +7973,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.AzureFile.Size())) - n178, err := m.AzureFile.MarshalTo(data[i:]) + n180, err := m.AzureFile.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n178 + i += n180 } if m.ConfigMap != nil { data[i] = 0x9a @@ -7825,11 +7985,11 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.ConfigMap.Size())) - n179, err := m.ConfigMap.MarshalTo(data[i:]) + n181, err := m.ConfigMap.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n179 + i += n181 } if m.VsphereVolume != nil { data[i] = 0xa2 @@ -7837,11 +7997,35 @@ func (m *VolumeSource) MarshalTo(data []byte) (int, error) { data[i] = 0x1 i++ i = encodeVarintGenerated(data, i, uint64(m.VsphereVolume.Size())) - n180, err := m.VsphereVolume.MarshalTo(data[i:]) + n182, err := m.VsphereVolume.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n180 + i += n182 + } + if m.Quobyte != nil { + data[i] = 0xaa + i++ + data[i] = 0x1 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Quobyte.Size())) + n183, err := m.Quobyte.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n183 + } + if m.AzureDisk != nil { + data[i] = 0xb2 + i++ + data[i] = 0x1 + i++ + i = encodeVarintGenerated(data, i, uint64(m.AzureDisk.Size())) + n184, err := m.AzureDisk.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n184 } return i, nil } @@ -7893,11 +8077,11 @@ func (m *WeightedPodAffinityTerm) MarshalTo(data []byte) (int, error) { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.PodAffinityTerm.Size())) - n181, err := m.PodAffinityTerm.MarshalTo(data[i:]) + n185, err := m.PodAffinityTerm.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n181 + i += n185 return i, nil } @@ -7980,6 +8164,27 @@ func (m *AvoidPods) Size() (n int) { return n } +func (m *AzureDiskVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.DiskName) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.DataDiskURI) + n += 1 + l + sovGenerated(uint64(l)) + if m.CachingMode != nil { + l = len(*m.CachingMode) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.FSType != nil { + l = len(*m.FSType) + n += 1 + l + sovGenerated(uint64(l)) + } + if m.ReadOnly != nil { + n += 2 + } + return n +} + func (m *AzureFileVolumeSource) Size() (n int) { var l int _ = l @@ -8146,6 +8351,9 @@ func (m *ConfigMapVolumeSource) Size() (n int) { n += 1 + l + sovGenerated(uint64(l)) } } + if m.DefaultMode != nil { + n += 1 + sovGenerated(uint64(*m.DefaultMode)) + } return n } @@ -8353,6 +8561,9 @@ func (m *DownwardAPIVolumeFile) Size() (n int) { l = m.ResourceFieldRef.Size() n += 1 + l + sovGenerated(uint64(l)) } + if m.Mode != nil { + n += 1 + sovGenerated(uint64(*m.Mode)) + } return n } @@ -8365,6 +8576,9 @@ func (m *DownwardAPIVolumeSource) Size() (n int) { n += 1 + l + sovGenerated(uint64(l)) } } + if m.DefaultMode != nil { + n += 1 + sovGenerated(uint64(*m.DefaultMode)) + } return n } @@ -8723,6 +8937,9 @@ func (m *KeyToPath) Size() (n int) { n += 1 + l + sovGenerated(uint64(l)) l = len(m.Path) n += 1 + l + sovGenerated(uint64(l)) + if m.Mode != nil { + n += 1 + sovGenerated(uint64(*m.Mode)) + } return n } @@ -9234,6 +9451,8 @@ func (m *ObjectMeta) Size() (n int) { n += 1 + l + sovGenerated(uint64(l)) } } + l = len(m.ClusterName) + n += 1 + l + sovGenerated(uint64(l)) return n } @@ -9437,6 +9656,14 @@ func (m *PersistentVolumeSource) Size() (n int) { l = m.VsphereVolume.Size() n += 1 + l + sovGenerated(uint64(l)) } + if m.Quobyte != nil { + l = m.Quobyte.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + if m.AzureDisk != nil { + l = m.AzureDisk.Size() + n += 2 + l + sovGenerated(uint64(l)) + } return n } @@ -9856,6 +10083,21 @@ func (m *Probe) Size() (n int) { return n } +func (m *QuobyteVolumeSource) Size() (n int) { + var l int + _ = l + l = len(m.Registry) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Volume) + n += 1 + l + sovGenerated(uint64(l)) + n += 2 + l = len(m.User) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Group) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + func (m *RBDVolumeSource) Size() (n int) { var l int _ = l @@ -9950,6 +10192,7 @@ func (m *ReplicationControllerStatus) Size() (n int) { n += 1 + sovGenerated(uint64(m.Replicas)) n += 1 + sovGenerated(uint64(m.FullyLabeledReplicas)) n += 1 + sovGenerated(uint64(m.ObservedGeneration)) + n += 1 + sovGenerated(uint64(m.ReadyReplicas)) return n } @@ -10135,6 +10378,9 @@ func (m *SecretVolumeSource) Size() (n int) { n += 1 + l + sovGenerated(uint64(l)) } } + if m.DefaultMode != nil { + n += 1 + sovGenerated(uint64(*m.DefaultMode)) + } return n } @@ -10297,6 +10543,8 @@ func (m *ServiceSpec) Size() (n int) { n += 1 + l + sovGenerated(uint64(l)) } } + l = len(m.ExternalName) + n += 1 + l + sovGenerated(uint64(l)) return n } @@ -10448,6 +10696,14 @@ func (m *VolumeSource) Size() (n int) { l = m.VsphereVolume.Size() n += 2 + l + sovGenerated(uint64(l)) } + if m.Quobyte != nil { + l = m.Quobyte.Size() + n += 2 + l + sovGenerated(uint64(l)) + } + if m.AzureDisk != nil { + l = m.AzureDisk.Size() + n += 2 + l + sovGenerated(uint64(l)) + } return n } @@ -10529,6 +10785,20 @@ func (this *AvoidPods) String() string { }, "") return s } +func (this *AzureDiskVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&AzureDiskVolumeSource{`, + `DiskName:` + fmt.Sprintf("%v", this.DiskName) + `,`, + `DataDiskURI:` + fmt.Sprintf("%v", this.DataDiskURI) + `,`, + `CachingMode:` + valueToStringGenerated(this.CachingMode) + `,`, + `FSType:` + valueToStringGenerated(this.FSType) + `,`, + `ReadOnly:` + valueToStringGenerated(this.ReadOnly) + `,`, + `}`, + }, "") + return s +} func (this *AzureFileVolumeSource) String() string { if this == nil { return "nil" @@ -10675,6 +10945,7 @@ func (this *ConfigMapVolumeSource) String() string { s := strings.Join([]string{`&ConfigMapVolumeSource{`, `LocalObjectReference:` + strings.Replace(strings.Replace(this.LocalObjectReference.String(), "LocalObjectReference", "LocalObjectReference", 1), `&`, ``, 1) + `,`, `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "KeyToPath", "KeyToPath", 1), `&`, ``, 1) + `,`, + `DefaultMode:` + valueToStringGenerated(this.DefaultMode) + `,`, `}`, }, "") return s @@ -10827,6 +11098,7 @@ func (this *DownwardAPIVolumeFile) String() string { `Path:` + fmt.Sprintf("%v", this.Path) + `,`, `FieldRef:` + strings.Replace(fmt.Sprintf("%v", this.FieldRef), "ObjectFieldSelector", "ObjectFieldSelector", 1) + `,`, `ResourceFieldRef:` + strings.Replace(fmt.Sprintf("%v", this.ResourceFieldRef), "ResourceFieldSelector", "ResourceFieldSelector", 1) + `,`, + `Mode:` + valueToStringGenerated(this.Mode) + `,`, `}`, }, "") return s @@ -10837,6 +11109,7 @@ func (this *DownwardAPIVolumeSource) String() string { } s := strings.Join([]string{`&DownwardAPIVolumeSource{`, `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "DownwardAPIVolumeFile", "DownwardAPIVolumeFile", 1), `&`, ``, 1) + `,`, + `DefaultMode:` + valueToStringGenerated(this.DefaultMode) + `,`, `}`, }, "") return s @@ -11149,6 +11422,7 @@ func (this *KeyToPath) String() string { s := strings.Join([]string{`&KeyToPath{`, `Key:` + fmt.Sprintf("%v", this.Key) + `,`, `Path:` + fmt.Sprintf("%v", this.Path) + `,`, + `Mode:` + valueToStringGenerated(this.Mode) + `,`, `}`, }, "") return s @@ -11605,6 +11879,7 @@ func (this *ObjectMeta) String() string { `Annotations:` + mapStringForAnnotations + `,`, `OwnerReferences:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.OwnerReferences), "OwnerReference", "OwnerReference", 1), `&`, ``, 1) + `,`, `Finalizers:` + fmt.Sprintf("%v", this.Finalizers) + `,`, + `ClusterName:` + fmt.Sprintf("%v", this.ClusterName) + `,`, `}`, }, "") return s @@ -11750,6 +12025,8 @@ func (this *PersistentVolumeSource) String() string { `FlexVolume:` + strings.Replace(fmt.Sprintf("%v", this.FlexVolume), "FlexVolumeSource", "FlexVolumeSource", 1) + `,`, `AzureFile:` + strings.Replace(fmt.Sprintf("%v", this.AzureFile), "AzureFileVolumeSource", "AzureFileVolumeSource", 1) + `,`, `VsphereVolume:` + strings.Replace(fmt.Sprintf("%v", this.VsphereVolume), "VsphereVirtualDiskVolumeSource", "VsphereVirtualDiskVolumeSource", 1) + `,`, + `Quobyte:` + strings.Replace(fmt.Sprintf("%v", this.Quobyte), "QuobyteVolumeSource", "QuobyteVolumeSource", 1) + `,`, + `AzureDisk:` + strings.Replace(fmt.Sprintf("%v", this.AzureDisk), "AzureDiskVolumeSource", "AzureDiskVolumeSource", 1) + `,`, `}`, }, "") return s @@ -12088,6 +12365,20 @@ func (this *Probe) String() string { }, "") return s } +func (this *QuobyteVolumeSource) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&QuobyteVolumeSource{`, + `Registry:` + fmt.Sprintf("%v", this.Registry) + `,`, + `Volume:` + fmt.Sprintf("%v", this.Volume) + `,`, + `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`, + `User:` + fmt.Sprintf("%v", this.User) + `,`, + `Group:` + fmt.Sprintf("%v", this.Group) + `,`, + `}`, + }, "") + return s +} func (this *RBDVolumeSource) String() string { if this == nil { return "nil" @@ -12170,6 +12461,7 @@ func (this *ReplicationControllerStatus) String() string { `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, `FullyLabeledReplicas:` + fmt.Sprintf("%v", this.FullyLabeledReplicas) + `,`, `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, + `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, `}`, }, "") return s @@ -12367,6 +12659,7 @@ func (this *SecretVolumeSource) String() string { s := strings.Join([]string{`&SecretVolumeSource{`, `SecretName:` + fmt.Sprintf("%v", this.SecretName) + `,`, `Items:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Items), "KeyToPath", "KeyToPath", 1), `&`, ``, 1) + `,`, + `DefaultMode:` + valueToStringGenerated(this.DefaultMode) + `,`, `}`, }, "") return s @@ -12490,6 +12783,7 @@ func (this *ServiceSpec) String() string { `SessionAffinity:` + fmt.Sprintf("%v", this.SessionAffinity) + `,`, `LoadBalancerIP:` + fmt.Sprintf("%v", this.LoadBalancerIP) + `,`, `LoadBalancerSourceRanges:` + fmt.Sprintf("%v", this.LoadBalancerSourceRanges) + `,`, + `ExternalName:` + fmt.Sprintf("%v", this.ExternalName) + `,`, `}`, }, "") return s @@ -12588,6 +12882,8 @@ func (this *VolumeSource) String() string { `AzureFile:` + strings.Replace(fmt.Sprintf("%v", this.AzureFile), "AzureFileVolumeSource", "AzureFileVolumeSource", 1) + `,`, `ConfigMap:` + strings.Replace(fmt.Sprintf("%v", this.ConfigMap), "ConfigMapVolumeSource", "ConfigMapVolumeSource", 1) + `,`, `VsphereVolume:` + strings.Replace(fmt.Sprintf("%v", this.VsphereVolume), "VsphereVirtualDiskVolumeSource", "VsphereVirtualDiskVolumeSource", 1) + `,`, + `Quobyte:` + strings.Replace(fmt.Sprintf("%v", this.Quobyte), "QuobyteVolumeSource", "QuobyteVolumeSource", 1) + `,`, + `AzureDisk:` + strings.Replace(fmt.Sprintf("%v", this.AzureDisk), "AzureDiskVolumeSource", "AzureDiskVolumeSource", 1) + `,`, `}`, }, "") return s @@ -13107,6 +13403,195 @@ func (m *AvoidPods) Unmarshal(data []byte) error { } return nil } +func (m *AzureDiskVolumeSource) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: AzureDiskVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: AzureDiskVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DiskName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DiskName = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DataDiskURI", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DataDiskURI = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field CachingMode", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := AzureDataDiskCachingMode(data[iNdEx:postIndex]) + m.CachingMode = &s + iNdEx = postIndex + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + s := string(data[iNdEx:postIndex]) + m.FSType = &s + iNdEx = postIndex + case 5: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + b := bool(v != 0) + m.ReadOnly = &b + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *AzureFileVolumeSource) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -14689,6 +15174,26 @@ func (m *ConfigMapVolumeSource) Unmarshal(data []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMode", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.DefaultMode = &v default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -16705,6 +17210,26 @@ func (m *DownwardAPIVolumeFile) Unmarshal(data []byte) error { return err } iNdEx = postIndex + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Mode = &v default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -16786,6 +17311,26 @@ func (m *DownwardAPIVolumeSource) Unmarshal(data []byte) error { return err } iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMode", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.DefaultMode = &v default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -20303,6 +20848,26 @@ func (m *KeyToPath) Unmarshal(data []byte) error { } m.Path = string(data[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Mode = &v default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -25367,6 +25932,35 @@ func (m *ObjectMeta) Unmarshal(data []byte) error { } m.Finalizers = append(m.Finalizers, string(data[iNdEx:postIndex])) iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ClusterName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ClusterName = string(data[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -27315,6 +27909,72 @@ func (m *PersistentVolumeSource) Unmarshal(data []byte) error { return err } iNdEx = postIndex + case 15: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Quobyte", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Quobyte == nil { + m.Quobyte = &QuobyteVolumeSource{} + } + if err := m.Quobyte.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 16: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AzureDisk", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AzureDisk == nil { + m.AzureDisk = &AzureDiskVolumeSource{} + } + if err := m.AzureDisk.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -31350,6 +32010,192 @@ func (m *Probe) Unmarshal(data []byte) error { } return nil } +func (m *QuobyteVolumeSource) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: QuobyteVolumeSource: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: QuobyteVolumeSource: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Registry", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Registry = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Volume", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Volume = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.ReadOnly = bool(v != 0) + case 4: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field User", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.User = string(data[iNdEx:postIndex]) + iNdEx = postIndex + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Group", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Group = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *RBDVolumeSource) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -32318,6 +33164,25 @@ func (m *ReplicationControllerStatus) Unmarshal(data []byte) error { break } } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) + } + m.ReadyReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ReadyReplicas |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -34294,6 +35159,26 @@ func (m *SecretVolumeSource) Unmarshal(data []byte) error { return err } iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultMode", wireType) + } + var v int32 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.DefaultMode = &v default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -35727,6 +36612,35 @@ func (m *ServiceSpec) Unmarshal(data []byte) error { } m.LoadBalancerSourceRanges = append(m.LoadBalancerSourceRanges, string(data[iNdEx:postIndex])) iNdEx = postIndex + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ExternalName", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ExternalName = string(data[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -37166,6 +38080,72 @@ func (m *VolumeSource) Unmarshal(data []byte) error { return err } iNdEx = postIndex + case 21: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Quobyte", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.Quobyte == nil { + m.Quobyte = &QuobyteVolumeSource{} + } + if err := m.Quobyte.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 22: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field AzureDisk", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.AzureDisk == nil { + m.AzureDisk = &AzureDiskVolumeSource{} + } + if err := m.AzureDisk.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -37500,597 +38480,615 @@ var ( ) var fileDescriptorGenerated = []byte{ - // 9468 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xec, 0x7d, 0x6d, 0x8c, 0x64, 0x57, - 0x76, 0xd0, 0x56, 0x55, 0x7f, 0xd5, 0xed, 0xcf, 0x79, 0x33, 0x63, 0xb7, 0x7b, 0xd7, 0x5f, 0x6f, - 0x6d, 0xaf, 0x3d, 0xf6, 0xf4, 0x78, 0xc6, 0x76, 0x6c, 0xef, 0x2e, 0xbb, 0xee, 0xee, 0xea, 0x9e, - 0xe9, 0x4c, 0xcf, 0x4c, 0xf9, 0x54, 0x7b, 0x66, 0x37, 0x6b, 0x36, 0x7e, 0x5d, 0xf5, 0xba, 0xfb, - 0xed, 0x54, 0xd7, 0x2b, 0xbf, 0xf7, 0xaa, 0x67, 0xda, 0x4b, 0xa4, 0x10, 0x85, 0x20, 0x44, 0x08, - 0xfb, 0x83, 0x00, 0x12, 0x20, 0x05, 0x24, 0x24, 0x3e, 0x44, 0xc8, 0x86, 0x25, 0xf1, 0x42, 0x14, - 0x21, 0x11, 0x56, 0x2b, 0x20, 0xc8, 0x2b, 0x01, 0x89, 0x12, 0x69, 0x61, 0x13, 0x21, 0x84, 0xc4, - 0x0f, 0x24, 0x7e, 0x61, 0x45, 0xc0, 0x3d, 0xf7, 0xfb, 0xbe, 0x7a, 0xd5, 0xef, 0x55, 0x7b, 0xaa, - 0x99, 0x44, 0xfc, 0x68, 0xa9, 0xeb, 0x9e, 0x73, 0xcf, 0xfd, 0x78, 0xe7, 0x9e, 0x7b, 0xce, 0xb9, - 0xe7, 0x9e, 0x4b, 0x5e, 0xba, 0xfb, 0x46, 0xbc, 0x1c, 0x84, 0x97, 0xee, 0xf6, 0x76, 0xfc, 0xa8, - 0xe3, 0x27, 0x7e, 0x7c, 0xa9, 0x7b, 0x77, 0xef, 0x92, 0xd7, 0x0d, 0x2e, 0x1d, 0x5e, 0xbe, 0xb4, - 0xe7, 0x77, 0xfc, 0xc8, 0x4b, 0xfc, 0xd6, 0x72, 0x37, 0x0a, 0x93, 0xd0, 0xf9, 0x0c, 0xc7, 0x5e, - 0xd6, 0xd8, 0xcb, 0x14, 0x7b, 0x99, 0x62, 0x2f, 0x1f, 0x5e, 0x5e, 0xba, 0xb8, 0x17, 0x24, 0xfb, - 0xbd, 0x9d, 0xe5, 0x66, 0x78, 0x70, 0x69, 0x2f, 0xdc, 0x0b, 0x2f, 0xb1, 0x4a, 0x3b, 0xbd, 0x5d, - 0xf6, 0x8b, 0xfd, 0x60, 0xff, 0x71, 0x62, 0x4b, 0x57, 0x06, 0x37, 0x1d, 0xf9, 0x71, 0xd8, 0x8b, - 0x9a, 0x7e, 0xba, 0x03, 0x4b, 0xaf, 0x0d, 0xae, 0xd3, 0xeb, 0x1c, 0xfa, 0x51, 0x1c, 0x84, 0x1d, - 0xbf, 0xd5, 0x57, 0xed, 0x62, 0x76, 0xb5, 0xa8, 0xd7, 0x49, 0x82, 0x83, 0xfe, 0x56, 0x2e, 0x67, - 0xa3, 0xf7, 0x92, 0xa0, 0x7d, 0x29, 0xe8, 0x24, 0x71, 0x12, 0xa5, 0xab, 0xb8, 0xbf, 0x53, 0x22, - 0x4f, 0xad, 0xdc, 0x69, 0xac, 0xb7, 0xbd, 0x38, 0x09, 0x9a, 0xab, 0xed, 0xb0, 0x79, 0xb7, 0x91, - 0x84, 0x91, 0x7f, 0x3b, 0x6c, 0xf7, 0x0e, 0xfc, 0x06, 0x1b, 0x8d, 0xf3, 0x12, 0x99, 0x3a, 0x64, - 0xbf, 0x37, 0x6b, 0x8b, 0xa5, 0xa7, 0x4a, 0xcf, 0x57, 0x57, 0x17, 0xbe, 0xff, 0xc3, 0x27, 0x3f, - 0xf5, 0x07, 0x3f, 0x7c, 0x72, 0xea, 0xb6, 0x28, 0x07, 0x85, 0xe1, 0x3c, 0x47, 0x26, 0x76, 0xe3, - 0xed, 0xa3, 0xae, 0xbf, 0x58, 0x66, 0xb8, 0x73, 0x02, 0x77, 0x62, 0xa3, 0x81, 0xa5, 0x20, 0xa0, - 0xce, 0x25, 0x52, 0xed, 0x7a, 0x51, 0x12, 0x24, 0x74, 0xec, 0x8b, 0x15, 0x8a, 0x3a, 0xbe, 0x7a, - 0x46, 0xa0, 0x56, 0xeb, 0x12, 0x00, 0x1a, 0x07, 0xbb, 0x11, 0xf9, 0x5e, 0xeb, 0x56, 0xa7, 0x7d, - 0xb4, 0x38, 0x46, 0xf1, 0xa7, 0x74, 0x37, 0x40, 0x94, 0x83, 0xc2, 0x70, 0x3f, 0x2c, 0x93, 0xa9, - 0x95, 0xdd, 0xdd, 0xa0, 0x13, 0x24, 0x47, 0xce, 0x7b, 0x64, 0xa6, 0x13, 0xb6, 0x7c, 0xf9, 0x9b, - 0x8d, 0x62, 0xfa, 0xca, 0x85, 0xe5, 0xe3, 0xf8, 0x62, 0xf9, 0xa6, 0x51, 0x63, 0x75, 0x81, 0x36, - 0x33, 0x63, 0x96, 0x80, 0x45, 0xd1, 0x79, 0x97, 0x4c, 0x77, 0xc3, 0x96, 0x6a, 0xa0, 0xcc, 0x1a, - 0x78, 0xe1, 0xf8, 0x06, 0xea, 0xba, 0xc2, 0xea, 0x3c, 0xa5, 0x3f, 0x6d, 0x14, 0x80, 0x49, 0xce, - 0x69, 0x93, 0x79, 0xfc, 0x49, 0x3f, 0xbb, 0x6a, 0xa1, 0xc2, 0x5a, 0xb8, 0x98, 0xdf, 0x82, 0x51, - 0x69, 0xf5, 0x2c, 0x6d, 0x65, 0x3e, 0x55, 0x08, 0x69, 0xd2, 0xee, 0x07, 0x64, 0x6e, 0x25, 0x49, - 0xbc, 0xe6, 0xbe, 0xdf, 0xe2, 0xdf, 0xd7, 0x79, 0x95, 0x8c, 0x75, 0xbc, 0x03, 0x5f, 0x7c, 0xfd, - 0xa7, 0xc4, 0xb4, 0x8f, 0xdd, 0xa4, 0x65, 0x1f, 0xff, 0xf0, 0xc9, 0x85, 0x77, 0x3a, 0xc1, 0xfb, - 0x3d, 0xc1, 0x33, 0x58, 0x06, 0x0c, 0xdb, 0xb9, 0x42, 0x48, 0xcb, 0x3f, 0x0c, 0x9a, 0x7e, 0xdd, - 0x4b, 0xf6, 0x05, 0x37, 0x38, 0xa2, 0x2e, 0xa9, 0x29, 0x08, 0x18, 0x58, 0xee, 0xcf, 0x94, 0x48, - 0x75, 0xe5, 0x30, 0x0c, 0x5a, 0xb4, 0x97, 0xb1, 0xd3, 0xa3, 0xe3, 0x8e, 0xfc, 0x5d, 0x3f, 0x52, - 0x45, 0xb4, 0x0b, 0x15, 0x3a, 0xee, 0x2b, 0x39, 0xe3, 0xb6, 0x2b, 0xad, 0x77, 0x92, 0xe8, 0x68, - 0xf5, 0x51, 0xd1, 0xf4, 0x7c, 0x0a, 0x0a, 0xe9, 0x36, 0xdc, 0x7f, 0x50, 0x22, 0xe7, 0x57, 0x3e, - 0xe8, 0x45, 0xfe, 0x46, 0xd0, 0xb6, 0x97, 0x02, 0x1d, 0x52, 0xec, 0x37, 0x23, 0x3f, 0xb9, 0xa9, - 0xa7, 0x43, 0x0d, 0xa9, 0xa1, 0x20, 0x60, 0x60, 0x21, 0xa3, 0xc7, 0xfb, 0x5e, 0xc4, 0x66, 0x46, - 0xcc, 0x82, 0x62, 0xf4, 0x86, 0x04, 0x80, 0xc6, 0xb1, 0x18, 0xbd, 0x92, 0xcb, 0xe8, 0xff, 0xac, - 0x44, 0x26, 0x57, 0x83, 0x4e, 0x2b, 0xe8, 0xec, 0x39, 0x5f, 0x21, 0x53, 0x07, 0x7e, 0xe2, 0xb5, - 0xbc, 0xc4, 0x13, 0x3c, 0xfe, 0xfc, 0xf1, 0x13, 0x75, 0x6b, 0xe7, 0x1b, 0x7e, 0x33, 0xb9, 0x41, - 0xeb, 0xe8, 0x61, 0xe8, 0x32, 0x50, 0xd4, 0x9c, 0x77, 0xc8, 0x44, 0xe2, 0x45, 0x7b, 0x7e, 0x22, - 0x58, 0xfb, 0x62, 0x11, 0xba, 0x80, 0xd3, 0xea, 0x77, 0x9a, 0xbe, 0x16, 0x02, 0xdb, 0x8c, 0x08, - 0x08, 0x62, 0x6e, 0x93, 0xcc, 0xac, 0x79, 0x5d, 0x6f, 0x27, 0x68, 0xd3, 0x35, 0xee, 0xc7, 0xce, - 0xe7, 0x48, 0xc5, 0x6b, 0xb5, 0xd8, 0x47, 0xae, 0xae, 0x9e, 0xa7, 0x15, 0x2a, 0x2b, 0xad, 0x16, - 0x65, 0x31, 0xa2, 0xb0, 0x8e, 0x00, 0x31, 0x9c, 0x0b, 0x64, 0xac, 0x15, 0x85, 0x5d, 0xda, 0x1b, - 0xc4, 0x7c, 0x04, 0xb9, 0xb1, 0x46, 0x7f, 0xa7, 0x50, 0x19, 0x8e, 0xfb, 0xaf, 0xca, 0xc4, 0x59, - 0xf3, 0xbb, 0xfb, 0x1b, 0x0d, 0xeb, 0x5b, 0x3e, 0x4f, 0x27, 0x2b, 0xa4, 0x0c, 0x1f, 0x46, 0xb1, - 0x68, 0x70, 0x06, 0xa7, 0xf8, 0x86, 0x28, 0x03, 0x05, 0x75, 0x9e, 0x22, 0x63, 0x5d, 0xcd, 0xc2, - 0x33, 0x92, 0xfd, 0x19, 0xf3, 0x32, 0x08, 0x62, 0xf4, 0x62, 0x3f, 0x62, 0x9f, 0xcb, 0xc0, 0x78, - 0x87, 0x96, 0x01, 0x83, 0x68, 0xce, 0x41, 0x9e, 0x62, 0xf2, 0xab, 0x8f, 0x73, 0x10, 0x02, 0x06, - 0x96, 0xf3, 0x93, 0x94, 0x73, 0xd8, 0x2f, 0x3a, 0x91, 0x8b, 0xe3, 0x6c, 0xde, 0x73, 0x18, 0x7f, - 0x2b, 0x6c, 0x7a, 0xed, 0xf4, 0xe4, 0xcf, 0x32, 0x4e, 0x93, 0x84, 0x40, 0xd3, 0xb4, 0x38, 0x6d, - 0x22, 0x97, 0xd3, 0xfe, 0x7a, 0x89, 0xce, 0x23, 0xe5, 0x34, 0x3f, 0x3a, 0x85, 0xed, 0x61, 0xb8, - 0x45, 0xf0, 0xfb, 0xd8, 0xb5, 0xf0, 0xa0, 0x4b, 0xb7, 0xd1, 0x4e, 0xb2, 0x16, 0xd2, 0xd5, 0xc0, - 0xb6, 0x8c, 0xcf, 0x93, 0xb1, 0x04, 0x9b, 0xe2, 0xdd, 0x7a, 0x4e, 0x7e, 0x16, 0x6c, 0x80, 0x72, - 0xca, 0x23, 0xfd, 0x35, 0x58, 0x17, 0x58, 0x1d, 0xe7, 0x4d, 0x32, 0x11, 0x27, 0x5e, 0xd2, 0x8b, - 0x45, 0x47, 0x9f, 0x96, 0x1d, 0x6d, 0xb0, 0x52, 0x5a, 0x7f, 0x5e, 0x55, 0xe3, 0x45, 0x20, 0x2a, - 0x38, 0x2f, 0x90, 0xc9, 0x03, 0x3f, 0x8e, 0xbd, 0x3d, 0x5f, 0x30, 0xc4, 0xbc, 0xa8, 0x3b, 0x79, - 0x83, 0x17, 0x83, 0x84, 0x3b, 0x9f, 0x25, 0xe3, 0x7e, 0x14, 0x85, 0x91, 0xe0, 0x88, 0x59, 0x81, - 0x38, 0xbe, 0x8e, 0x85, 0xc0, 0x61, 0xee, 0x0f, 0x4a, 0x64, 0x5e, 0xf5, 0x95, 0xb7, 0x35, 0xc2, - 0xa5, 0xde, 0x22, 0xa4, 0x29, 0x07, 0x16, 0xb3, 0x05, 0x36, 0x7d, 0xe5, 0xe5, 0xe3, 0x69, 0xf7, - 0x4f, 0xa4, 0x6e, 0x43, 0x15, 0xc5, 0x60, 0xd0, 0x75, 0xbf, 0x5f, 0x22, 0x67, 0x53, 0x63, 0xda, - 0x0a, 0xe2, 0xc4, 0xf9, 0xd3, 0x7d, 0xe3, 0xba, 0x74, 0x4c, 0xdb, 0x86, 0xf6, 0xb4, 0x8c, 0xd5, - 0xd9, 0xf0, 0x14, 0xa3, 0xc8, 0x12, 0x63, 0x70, 0x40, 0xc6, 0x83, 0xc4, 0x3f, 0x90, 0xe3, 0xba, - 0x58, 0x70, 0x5c, 0xbc, 0x83, 0xfa, 0xf3, 0x6c, 0x22, 0x0d, 0xe0, 0xa4, 0xdc, 0xff, 0x49, 0xf7, - 0x2c, 0x3a, 0xca, 0xdd, 0x60, 0xef, 0x86, 0xd7, 0x1d, 0xe1, 0x87, 0x69, 0x50, 0x99, 0x87, 0x54, - 0x79, 0xd7, 0x2f, 0xe7, 0x75, 0x5d, 0x74, 0x68, 0xb9, 0x46, 0xeb, 0xf0, 0x1d, 0x50, 0xc9, 0x25, - 0x2c, 0x02, 0x46, 0x6c, 0xe9, 0x75, 0x52, 0x55, 0x08, 0xce, 0x02, 0xa9, 0xdc, 0xf5, 0xb9, 0x7a, - 0x54, 0x05, 0xfc, 0xd7, 0x39, 0x47, 0xc6, 0x0f, 0xbd, 0x76, 0x4f, 0xac, 0x56, 0xe0, 0x3f, 0x3e, - 0x5f, 0x7e, 0xa3, 0xe4, 0xfe, 0x46, 0x89, 0x9c, 0x53, 0x8d, 0x5c, 0xf7, 0x8f, 0x1a, 0x7e, 0x9b, - 0x76, 0x39, 0x8c, 0x9c, 0x9f, 0xa5, 0x80, 0x76, 0x86, 0x1c, 0x12, 0xb3, 0x71, 0x12, 0x09, 0xf6, - 0x19, 0xd1, 0xf1, 0x73, 0x59, 0x50, 0xc8, 0x6c, 0xcd, 0x79, 0x9c, 0x8f, 0x85, 0x2f, 0xde, 0x69, - 0x41, 0xa0, 0x42, 0x3b, 0xca, 0x06, 0x86, 0xdd, 0x9f, 0x55, 0xdd, 0x3f, 0x0d, 0xce, 0xdb, 0xb2, - 0x39, 0xef, 0x73, 0x05, 0x3f, 0xdf, 0x00, 0x9e, 0xfb, 0xef, 0x54, 0x45, 0x51, 0x38, 0x96, 0x38, - 0x7e, 0x48, 0xa6, 0x7f, 0xb8, 0xe1, 0xd2, 0xcf, 0xb2, 0x1d, 0xe2, 0x7e, 0x3a, 0x60, 0xb8, 0xbf, - 0x5d, 0x65, 0x4b, 0x2c, 0xf1, 0x02, 0x6a, 0xbf, 0xe0, 0x6e, 0x6b, 0xa8, 0xa3, 0x33, 0xa6, 0x3a, - 0x2a, 0x54, 0x4f, 0x2a, 0x56, 0x83, 0x03, 0x94, 0xbf, 0x65, 0x5b, 0xac, 0x6e, 0x62, 0x21, 0x70, - 0x98, 0xf3, 0x2c, 0x99, 0xa4, 0x36, 0xdf, 0x81, 0xd7, 0x69, 0x51, 0x31, 0x8d, 0xfb, 0xff, 0x34, - 0x8a, 0xe8, 0x35, 0x5e, 0x04, 0x12, 0xe6, 0x7c, 0x86, 0x8c, 0x51, 0x65, 0x25, 0xa6, 0x12, 0x1a, - 0x71, 0xa6, 0xb0, 0xa5, 0x15, 0xfa, 0x1b, 0x58, 0x29, 0xee, 0xeb, 0xf7, 0xc2, 0xe8, 0x2e, 0xd5, - 0xbe, 0x6a, 0x41, 0xc4, 0x36, 0x69, 0x63, 0x5f, 0xbf, 0xa3, 0x20, 0x60, 0x60, 0x39, 0x75, 0x32, - 0xde, 0x0d, 0xa3, 0x24, 0xa6, 0x7b, 0x2e, 0xce, 0xcd, 0x8b, 0xb9, 0xac, 0xc0, 0xc7, 0x5d, 0xa7, - 0x75, 0xf4, 0x50, 0xf0, 0x17, 0x9d, 0x1f, 0x46, 0xc8, 0x59, 0x23, 0x15, 0xbf, 0x73, 0xb8, 0x38, - 0xc9, 0xe8, 0x3d, 0x73, 0x3c, 0xbd, 0xf5, 0xce, 0xe1, 0x6d, 0x2f, 0xd2, 0x4b, 0x82, 0xfe, 0x06, - 0xac, 0xed, 0x34, 0x49, 0x55, 0x5a, 0xb0, 0xf1, 0xe2, 0x54, 0x11, 0x6e, 0x01, 0x81, 0x0e, 0xfe, - 0xfb, 0xbd, 0x20, 0xf2, 0x0f, 0xa8, 0xa4, 0x8c, 0xb5, 0x72, 0x2b, 0xa1, 0x31, 0x68, 0xba, 0xb4, - 0x91, 0x19, 0xae, 0x0b, 0xdc, 0x08, 0xa9, 0x19, 0x1b, 0x2f, 0x56, 0x59, 0x97, 0x73, 0x2c, 0xa5, - 0xdb, 0xba, 0xc6, 0xea, 0x39, 0x41, 0x7e, 0xc6, 0x28, 0x8c, 0xc1, 0x22, 0x4a, 0xad, 0xb1, 0xd9, - 0x76, 0x70, 0x48, 0x6d, 0xdd, 0x38, 0xae, 0x47, 0xe1, 0x8e, 0xbf, 0x48, 0xd8, 0x68, 0x3e, 0x9b, - 0x67, 0x35, 0x50, 0xd4, 0xd5, 0x33, 0x94, 0xf6, 0xec, 0x96, 0x59, 0x1b, 0x6c, 0x62, 0x54, 0x2d, - 0x9b, 0x43, 0xc5, 0x23, 0xd0, 0xe4, 0xa7, 0x8b, 0x93, 0x77, 0x28, 0xf9, 0x39, 0xb0, 0xaa, 0x43, - 0x8a, 0x9c, 0xb3, 0x4d, 0xaa, 0xed, 0x60, 0xd7, 0x6f, 0x1e, 0x35, 0xa9, 0xaa, 0x38, 0xc3, 0x68, - 0xe7, 0xac, 0x9f, 0x2d, 0x89, 0xce, 0x95, 0x3d, 0xf5, 0x13, 0x34, 0x21, 0xe7, 0x36, 0x79, 0x24, - 0xf1, 0xa3, 0x83, 0xa0, 0xe3, 0xe1, 0x0e, 0x2c, 0x34, 0x11, 0x66, 0x9a, 0xcd, 0x32, 0xae, 0x7d, - 0x42, 0x4c, 0xec, 0x23, 0xdb, 0x99, 0x58, 0x30, 0xa0, 0xb6, 0x73, 0x8b, 0xcc, 0xb3, 0xf5, 0x54, - 0xef, 0xb5, 0xdb, 0xf5, 0xb0, 0x1d, 0x34, 0x8f, 0x16, 0xe7, 0x18, 0xc1, 0x67, 0xa5, 0xc1, 0xb5, - 0x69, 0x83, 0x51, 0x49, 0xd7, 0xbf, 0x20, 0x5d, 0x1b, 0xad, 0x5d, 0xaa, 0xa2, 0xf6, 0x22, 0xaa, - 0xc1, 0x23, 0xef, 0xfb, 0xf7, 0x93, 0xc5, 0xf9, 0x22, 0x46, 0x47, 0xc3, 0xae, 0xc4, 0xad, 0xdd, - 0x54, 0x21, 0xa4, 0x49, 0xa3, 0xa8, 0x88, 0x13, 0x3a, 0xfb, 0x8b, 0x0b, 0x4c, 0xcb, 0x54, 0xeb, - 0xab, 0x81, 0x85, 0xc0, 0x61, 0xcc, 0x86, 0xc3, 0x7f, 0x6e, 0xa1, 0x20, 0x3d, 0xc3, 0x10, 0xb5, - 0x0d, 0x27, 0x01, 0xa0, 0x71, 0x70, 0xf7, 0x49, 0xa8, 0x95, 0xee, 0x30, 0x54, 0xb5, 0xd4, 0xb6, - 0xb7, 0xbf, 0x0a, 0x58, 0xee, 0xee, 0x90, 0x39, 0xb5, 0xac, 0xd9, 0xec, 0x38, 0x4f, 0x92, 0x71, - 0x94, 0x5c, 0xd2, 0x14, 0xa9, 0x62, 0x17, 0x50, 0xa0, 0xd1, 0x25, 0xce, 0xca, 0x59, 0x17, 0x82, - 0x0f, 0xfc, 0xd5, 0x23, 0x3a, 0x6a, 0x26, 0xd6, 0x2a, 0x46, 0x17, 0x24, 0x00, 0x34, 0x8e, 0xfb, - 0xbf, 0xf9, 0x0e, 0xa7, 0x65, 0x47, 0x01, 0xb9, 0x49, 0xb5, 0xee, 0xfd, 0x30, 0x4e, 0x10, 0x9b, - 0xb5, 0x31, 0xae, 0xb7, 0xb4, 0x6b, 0xa2, 0x1c, 0x14, 0x86, 0xf3, 0x05, 0x32, 0xdb, 0x34, 0x1b, - 0x10, 0x6e, 0x9c, 0xf3, 0xa2, 0x8a, 0xdd, 0x3a, 0xd8, 0xb8, 0xce, 0x1b, 0x64, 0x8a, 0xf9, 0xa0, - 0x9a, 0x61, 0x5b, 0x28, 0xbf, 0x72, 0x9b, 0x99, 0xaa, 0x8b, 0xf2, 0x8f, 0x8d, 0xff, 0x41, 0x61, - 0xa3, 0x09, 0x81, 0x5d, 0xd8, 0xac, 0x0b, 0x71, 0xab, 0x4c, 0x88, 0x6b, 0xac, 0x14, 0x04, 0xd4, - 0xfd, 0x95, 0xb2, 0x31, 0xcb, 0xa8, 0xc1, 0xf9, 0xce, 0x4f, 0x90, 0xc9, 0x7b, 0x1e, 0xd5, 0x40, - 0x3b, 0x7b, 0x62, 0x3b, 0x7c, 0xa5, 0xa0, 0xec, 0x65, 0xd5, 0xef, 0xf0, 0xaa, 0x7c, 0x9f, 0x10, - 0x3f, 0x40, 0x12, 0x44, 0xda, 0x51, 0xaf, 0xd3, 0x41, 0xda, 0xe5, 0xe1, 0x69, 0x03, 0xaf, 0xca, - 0x69, 0x8b, 0x1f, 0x20, 0x09, 0x3a, 0xbb, 0x84, 0xc8, 0xd5, 0xe7, 0xb7, 0x84, 0xef, 0xe7, 0xc7, - 0x86, 0x21, 0xbf, 0xad, 0x6a, 0xaf, 0xce, 0xe1, 0xce, 0xa4, 0x7f, 0x83, 0x41, 0xd9, 0xed, 0x31, - 0xad, 0xa2, 0xbf, 0x5b, 0x54, 0xa2, 0x52, 0xe6, 0xf6, 0x22, 0x8a, 0xb3, 0x92, 0x88, 0xa9, 0x7b, - 0xb1, 0xa0, 0x76, 0xb4, 0x1d, 0x1c, 0xf8, 0xe6, 0x6a, 0x11, 0x54, 0x40, 0x13, 0x74, 0xbf, 0x5b, - 0x21, 0x8b, 0x83, 0xfa, 0x8b, 0x3c, 0xe9, 0xdf, 0x0f, 0xa8, 0x69, 0xd1, 0xe2, 0x9c, 0x6b, 0xf0, - 0xe4, 0xba, 0x28, 0x07, 0x85, 0x81, 0xcc, 0x11, 0x07, 0x7b, 0x1d, 0xaf, 0x2d, 0xf8, 0x57, 0x31, - 0x47, 0x83, 0x95, 0x82, 0x80, 0x22, 0x1e, 0x95, 0xba, 0xb1, 0xf0, 0x3d, 0x1a, 0x4c, 0x04, 0xac, - 0x14, 0x04, 0xd4, 0xb4, 0xe5, 0xc6, 0x72, 0x6c, 0x39, 0x6b, 0x8e, 0xc6, 0x1f, 0xf0, 0x1c, 0xd1, - 0x5d, 0x87, 0xa0, 0x7f, 0x2e, 0xde, 0x67, 0xe4, 0x27, 0x86, 0x27, 0xaf, 0xb4, 0x92, 0x0d, 0x45, - 0x06, 0x0c, 0x92, 0xce, 0x6b, 0x64, 0x5a, 0xad, 0x50, 0x6a, 0xca, 0x4f, 0xb2, 0xd1, 0x9e, 0x15, - 0x95, 0xa6, 0xb5, 0xb8, 0xaa, 0x81, 0x89, 0xe7, 0x7e, 0x23, 0xcd, 0x32, 0x62, 0x61, 0x18, 0x33, - 0x5c, 0x2a, 0x3a, 0xc3, 0xe5, 0xe3, 0x67, 0xd8, 0xfd, 0x8f, 0x15, 0x34, 0x84, 0x8d, 0xc6, 0x7a, - 0x71, 0x01, 0xa1, 0xf6, 0x36, 0x4a, 0x78, 0xda, 0x31, 0xb1, 0x2c, 0x5f, 0x1a, 0x66, 0xdd, 0x98, - 0xfb, 0x01, 0x2e, 0x07, 0x4e, 0xc9, 0xd9, 0xa7, 0x3b, 0xb4, 0x17, 0x33, 0xb3, 0xd0, 0x17, 0xcb, - 0x71, 0x38, 0xb2, 0x5a, 0xa5, 0xa6, 0x64, 0x8c, 0x0d, 0x97, 0xb7, 0xa2, 0x89, 0xe3, 0xf6, 0x84, - 0xda, 0x81, 0x74, 0x79, 0xab, 0xee, 0xa0, 0x0a, 0x71, 0x04, 0x1c, 0x46, 0x65, 0xe9, 0x0c, 0xd5, - 0xb0, 0x90, 0x55, 0xd6, 0x50, 0x01, 0x62, 0xcc, 0x37, 0xae, 0x35, 0x25, 0x30, 0x60, 0x60, 0x61, - 0x6a, 0x45, 0x79, 0xe2, 0x18, 0x45, 0x99, 0x7e, 0x21, 0xf6, 0x8f, 0xe2, 0x0a, 0xf5, 0x85, 0x36, - 0x79, 0x31, 0x48, 0x78, 0x9a, 0x89, 0xa6, 0x0a, 0x32, 0xd1, 0x05, 0x32, 0x57, 0xf3, 0xfc, 0x83, - 0xb0, 0xb3, 0xde, 0x69, 0x75, 0xc3, 0x80, 0x76, 0x6c, 0x91, 0x8c, 0xb1, 0x2d, 0x85, 0xaf, 0xf8, - 0x31, 0xa4, 0x00, 0x63, 0xa8, 0xec, 0xba, 0xff, 0x87, 0xee, 0x6b, 0x35, 0x6a, 0x6c, 0x26, 0xfe, - 0xad, 0x2e, 0xf3, 0x25, 0x38, 0x1b, 0xc4, 0xd9, 0x8b, 0xbc, 0xa6, 0x5f, 0xf7, 0xa3, 0x20, 0x6c, - 0xd1, 0x1d, 0x3f, 0xec, 0x30, 0x4f, 0x31, 0xee, 0x91, 0xe8, 0x1a, 0x74, 0xae, 0xf6, 0x41, 0x21, - 0xa3, 0x86, 0xd3, 0x22, 0xb3, 0xdd, 0xc8, 0xb7, 0x9c, 0x1f, 0xa5, 0x7c, 0xfd, 0xbc, 0x6e, 0x56, - 0xe1, 0xea, 0xa3, 0x55, 0x04, 0x36, 0x51, 0xe7, 0x2d, 0xb2, 0x10, 0x46, 0xdd, 0x7d, 0xaf, 0x53, - 0xf3, 0xbb, 0x7e, 0xa7, 0x85, 0x3a, 0xb3, 0xf0, 0x70, 0x9d, 0xa3, 0x75, 0x17, 0x6e, 0xa5, 0x60, - 0xd0, 0x87, 0xed, 0xfe, 0xa5, 0x32, 0x39, 0x5f, 0x0b, 0xef, 0x75, 0xee, 0x79, 0x51, 0x6b, 0xa5, - 0xbe, 0xc9, 0x15, 0x61, 0xe6, 0x31, 0x94, 0x9e, 0xca, 0xd2, 0x40, 0x4f, 0xe5, 0xd7, 0xc8, 0xd4, - 0x6e, 0xe0, 0xb7, 0x5b, 0xe8, 0x52, 0xe4, 0xc3, 0xbb, 0x5c, 0xc4, 0x3d, 0xb1, 0x81, 0x75, 0xa4, - 0x89, 0xcf, 0x1d, 0xa5, 0x1b, 0x82, 0x0c, 0x28, 0x82, 0x4e, 0x8f, 0x2c, 0x48, 0x4d, 0x5f, 0x42, - 0xc5, 0xea, 0x78, 0xa5, 0x98, 0x21, 0x61, 0x37, 0xc3, 0xe6, 0x03, 0x52, 0x04, 0xa1, 0xaf, 0x09, - 0x37, 0x26, 0x8f, 0xf6, 0x4d, 0x87, 0xb0, 0x86, 0xbf, 0x22, 0xcd, 0x50, 0x7e, 0x6e, 0x90, 0xd3, - 0x8d, 0xcc, 0x49, 0x1d, 0x60, 0x92, 0xde, 0x22, 0xe7, 0xd6, 0x0f, 0xba, 0xc9, 0x11, 0x35, 0xe8, - 0xac, 0x16, 0x5f, 0x27, 0x13, 0x07, 0x7e, 0x2b, 0xe8, 0x1d, 0x88, 0x8f, 0xf0, 0xa4, 0x14, 0x7b, - 0x37, 0x58, 0x29, 0xd5, 0x69, 0x66, 0xf1, 0x88, 0x8d, 0x2e, 0x17, 0x5e, 0x00, 0x02, 0xdd, 0xfd, - 0x51, 0x89, 0xcc, 0x4b, 0xf6, 0x5f, 0x69, 0xb5, 0xe8, 0x28, 0x63, 0x67, 0x89, 0x94, 0x83, 0xae, - 0x20, 0x44, 0x04, 0xa1, 0x32, 0x55, 0x71, 0x68, 0x29, 0xd5, 0x37, 0xaa, 0xdc, 0x8b, 0xae, 0x3f, - 0xe5, 0x90, 0x5e, 0x79, 0x66, 0x2b, 0x6c, 0x4b, 0x1a, 0xa0, 0xc9, 0x49, 0x3d, 0x90, 0x09, 0xd6, - 0x8a, 0xed, 0xd3, 0xbd, 0x26, 0xca, 0x41, 0x61, 0xa0, 0x27, 0x1d, 0x0f, 0xc3, 0xd8, 0x01, 0x07, - 0xdf, 0x24, 0x19, 0x83, 0xdc, 0x14, 0x65, 0xa0, 0xa0, 0xee, 0xcf, 0x97, 0xc8, 0x8c, 0x1c, 0x63, - 0x41, 0x95, 0x14, 0x59, 0x5a, 0xab, 0xa3, 0x9a, 0xa5, 0x51, 0xa5, 0x64, 0x10, 0x4b, 0x93, 0xac, - 0x0c, 0xa3, 0x49, 0xba, 0xdf, 0xa5, 0x1a, 0xa2, 0xec, 0x4e, 0xa3, 0xb7, 0x13, 0xfb, 0x89, 0xf3, - 0x75, 0x52, 0xf5, 0xf8, 0xe4, 0xfb, 0x92, 0x69, 0x2e, 0xe6, 0xd9, 0xd3, 0xd6, 0x37, 0xd3, 0xdb, - 0xf8, 0x8a, 0xa4, 0x03, 0x9a, 0xa4, 0x73, 0x48, 0xce, 0x74, 0xc2, 0x84, 0x49, 0x6f, 0x05, 0x2f, - 0xe6, 0x8c, 0x4c, 0xb7, 0xf3, 0x98, 0x68, 0xe7, 0xcc, 0xcd, 0x34, 0x3d, 0xe8, 0x6f, 0x82, 0x5a, - 0x69, 0xc2, 0xe7, 0x50, 0x61, 0x6d, 0x5d, 0x28, 0xd6, 0xd6, 0x60, 0x97, 0x83, 0xfb, 0x9b, 0x25, - 0x52, 0x95, 0x68, 0xa3, 0x74, 0x47, 0xdf, 0x21, 0x93, 0x31, 0xfb, 0x34, 0x72, 0x9a, 0x5e, 0x2a, - 0xd6, 0x75, 0xfe, 0x3d, 0xf5, 0x56, 0xc5, 0x7f, 0xc7, 0x20, 0xa9, 0x31, 0x0f, 0xa0, 0x1a, 0xc0, - 0xc3, 0xe7, 0x01, 0x54, 0x5d, 0x1b, 0x20, 0x7f, 0xfe, 0x5e, 0x89, 0x4c, 0x70, 0x57, 0x4e, 0x31, - 0x7f, 0x98, 0xe1, 0xc6, 0xd5, 0x14, 0x6f, 0x63, 0xa1, 0xf0, 0xea, 0xd2, 0x99, 0xae, 0xb2, 0x7f, - 0x36, 0xa2, 0xf0, 0x40, 0x88, 0xed, 0x0b, 0x45, 0x5c, 0x49, 0x5c, 0xf0, 0x71, 0x69, 0x72, 0x5b, - 0x12, 0x00, 0x4d, 0xcb, 0xfd, 0x8d, 0x0a, 0xae, 0x7a, 0x8d, 0x6a, 0x6d, 0x42, 0xa5, 0xd3, 0xd8, - 0x84, 0xca, 0x23, 0xdf, 0x84, 0x9c, 0xf7, 0xc9, 0x7c, 0xd3, 0x70, 0x87, 0xeb, 0xad, 0xef, 0x4a, - 0x41, 0x4f, 0xaf, 0xe1, 0x43, 0xe7, 0xae, 0x8b, 0x35, 0x9b, 0x1c, 0xa4, 0xe9, 0x3b, 0x3e, 0x99, - 0xe1, 0x67, 0x79, 0xa2, 0xbd, 0xb1, 0x5c, 0x9e, 0xe5, 0x5e, 0x12, 0x5e, 0x43, 0x35, 0xc6, 0x62, - 0x1b, 0x1a, 0x06, 0x21, 0xb0, 0xc8, 0xba, 0x7f, 0x65, 0x9c, 0x8c, 0xaf, 0x1f, 0x52, 0xcd, 0x63, - 0x84, 0xab, 0xfc, 0x80, 0xcc, 0x05, 0x9d, 0xc3, 0xb0, 0x7d, 0xe8, 0xb7, 0x38, 0xfc, 0x64, 0x3b, - 0xda, 0x23, 0xa2, 0x91, 0xb9, 0x4d, 0x8b, 0x18, 0xa4, 0x88, 0x8f, 0xc2, 0xfa, 0x7b, 0x9b, 0x1a, - 0x9e, 0x8c, 0x23, 0x84, 0xe9, 0x97, 0xe3, 0xd2, 0x64, 0x13, 0x2a, 0x56, 0x8e, 0xb6, 0x51, 0xb9, - 0x37, 0x55, 0x10, 0x72, 0xee, 0x92, 0xb9, 0xdd, 0x20, 0xa2, 0xf6, 0x01, 0x35, 0xdf, 0xa8, 0xce, - 0x7e, 0xd0, 0x3d, 0x89, 0xd9, 0xa7, 0xa6, 0x64, 0xc3, 0x22, 0x05, 0x29, 0xd2, 0xd4, 0xa4, 0x99, - 0x45, 0xab, 0x43, 0xb7, 0x35, 0x39, 0x7c, 0x5b, 0xca, 0xf3, 0xb3, 0x65, 0x52, 0x02, 0x9b, 0x30, - 0x0a, 0xa3, 0x26, 0x33, 0x53, 0xa6, 0xd8, 0x96, 0xae, 0x84, 0x11, 0xb7, 0x4f, 0x38, 0x0c, 0x65, - 0x1a, 0x3b, 0xba, 0xad, 0xda, 0x32, 0x4d, 0x1f, 0xd0, 0xba, 0xdf, 0xc1, 0x0d, 0x08, 0x67, 0xf1, - 0x34, 0x64, 0xf7, 0x35, 0x5b, 0x76, 0x7f, 0xb6, 0xc0, 0xc7, 0x1d, 0x20, 0xb7, 0xdf, 0x23, 0xd3, - 0xc6, 0xb7, 0x47, 0xb7, 0x5e, 0x53, 0x9e, 0x32, 0x0a, 0x01, 0xae, 0x14, 0x08, 0x75, 0xfc, 0x08, - 0x1a, 0x07, 0x27, 0x06, 0x15, 0xaf, 0x74, 0x30, 0x02, 0xaa, 0x65, 0xc0, 0x20, 0xee, 0x2b, 0x84, - 0xac, 0xdf, 0xf7, 0x9b, 0x2b, 0x4d, 0x76, 0x06, 0x6e, 0x9c, 0x72, 0x94, 0x06, 0x9f, 0x72, 0xb8, - 0xef, 0xd2, 0xcd, 0xf0, 0x3e, 0xee, 0xec, 0xd2, 0xa8, 0xa2, 0x4b, 0xc4, 0x67, 0x05, 0xac, 0x57, - 0x53, 0x9a, 0x49, 0x39, 0x1a, 0x08, 0x28, 0x3b, 0xc1, 0xbe, 0xef, 0x89, 0x05, 0x6b, 0x18, 0xa8, - 0xeb, 0x58, 0x08, 0x1c, 0xe6, 0x7e, 0xbb, 0x44, 0xe6, 0x36, 0xd6, 0x2c, 0x3d, 0x79, 0x99, 0x10, - 0xae, 0x6f, 0xde, 0xb9, 0x73, 0x53, 0x7a, 0x3d, 0xb9, 0x6b, 0x4a, 0x95, 0x82, 0x81, 0xe1, 0x3c, - 0x46, 0x2a, 0xed, 0x5e, 0x47, 0xa8, 0x81, 0x93, 0xe8, 0x4d, 0xdd, 0xea, 0x75, 0x00, 0xcb, 0x8c, - 0x98, 0x82, 0x4a, 0xe1, 0x98, 0x82, 0xfc, 0x08, 0xb2, 0x5f, 0xac, 0x90, 0x85, 0x8d, 0xb6, 0x7f, - 0xdf, 0xea, 0x35, 0x6d, 0xaa, 0x15, 0x05, 0x94, 0x79, 0xd2, 0x4e, 0x8d, 0x1a, 0x2b, 0x05, 0x01, - 0x2d, 0x1c, 0xe6, 0x60, 0x85, 0x78, 0x54, 0x46, 0x1c, 0xe2, 0x91, 0x3b, 0x66, 0x67, 0x97, 0x4c, - 0x86, 0xfc, 0xfb, 0x53, 0x29, 0x86, 0x8c, 0xfe, 0x85, 0xe3, 0x3b, 0x93, 0x9e, 0x9f, 0x65, 0xc1, - 0x3d, 0xfc, 0xbc, 0x59, 0x09, 0x4b, 0x51, 0x0a, 0x92, 0xf8, 0xd2, 0xe7, 0xc9, 0x8c, 0x89, 0x39, - 0xd4, 0xc1, 0xf3, 0x16, 0x39, 0xbb, 0x81, 0x81, 0x8a, 0xa9, 0x30, 0x94, 0xd7, 0xc8, 0x34, 0xae, - 0xd4, 0xd8, 0x8a, 0xcd, 0x52, 0x9e, 0x87, 0x9a, 0x06, 0x81, 0x89, 0xe7, 0xfe, 0xbb, 0x12, 0x79, - 0xfc, 0xea, 0xda, 0x7a, 0x1d, 0xc5, 0x41, 0x9c, 0xd0, 0x05, 0x56, 0x0b, 0xe2, 0xbb, 0xe9, 0x4f, - 0xde, 0x6d, 0x19, 0x34, 0xd5, 0xa7, 0xac, 0xd7, 0x18, 0x39, 0x01, 0x7d, 0x58, 0x02, 0x1f, 0xa9, - 0x5e, 0x78, 0xf6, 0x6a, 0x40, 0xbf, 0x7d, 0x37, 0x4c, 0x87, 0xae, 0x45, 0xb4, 0x2c, 0xc6, 0x90, - 0xa6, 0xa3, 0x74, 0xe8, 0x1a, 0x28, 0x08, 0x18, 0x58, 0xbc, 0xe5, 0xc3, 0x00, 0x05, 0xa5, 0x18, - 0x94, 0xd1, 0x32, 0x2f, 0x07, 0x85, 0x81, 0x03, 0x6b, 0x05, 0x11, 0xd3, 0x29, 0x8e, 0xc4, 0x4a, - 0x54, 0x03, 0xab, 0x49, 0x00, 0x68, 0x1c, 0xf7, 0x6f, 0x96, 0xc8, 0xf9, 0xab, 0xed, 0x1e, 0x9d, - 0xf6, 0x68, 0x37, 0xb6, 0x3a, 0xfb, 0x0a, 0xa9, 0xfa, 0x52, 0xff, 0x15, 0x7d, 0x55, 0x7b, 0x8b, - 0x52, 0x8c, 0x79, 0xdc, 0x9c, 0xc2, 0x2b, 0x10, 0xa6, 0x35, 0x5c, 0x50, 0xd1, 0x3f, 0x2f, 0x93, - 0xd9, 0x6b, 0xdb, 0xdb, 0xf5, 0xab, 0x7e, 0x22, 0x64, 0x69, 0xbe, 0x7b, 0xa5, 0x6e, 0x58, 0xab, - 0xd3, 0x57, 0x96, 0x07, 0xac, 0x1e, 0x0c, 0xc9, 0x5d, 0xe6, 0x21, 0xb9, 0xcb, 0x9b, 0x9d, 0xe4, - 0x56, 0xd4, 0x48, 0x22, 0x74, 0xfe, 0x67, 0x59, 0xb7, 0x52, 0xde, 0x57, 0x06, 0xc9, 0x7b, 0x3a, - 0x59, 0x13, 0x71, 0x73, 0xdf, 0x57, 0xc6, 0xf7, 0xa7, 0x95, 0x3a, 0xc1, 0x4a, 0xa9, 0xed, 0x5b, - 0x7d, 0x07, 0x36, 0xf9, 0x0f, 0x10, 0xa8, 0x54, 0xf0, 0x4c, 0xef, 0x27, 0x49, 0xf7, 0x1a, 0x1d, - 0x2c, 0x65, 0x7d, 0xb1, 0xda, 0x73, 0xb4, 0x39, 0x9c, 0x0c, 0x5e, 0x41, 0x2f, 0x2c, 0x5d, 0x16, - 0x83, 0x49, 0xd1, 0x6d, 0x10, 0xa2, 0x61, 0x0f, 0xc8, 0x44, 0x71, 0xff, 0x6c, 0x99, 0x4c, 0x5e, - 0xa3, 0xdb, 0x55, 0x9b, 0x92, 0xdc, 0x20, 0x63, 0x3e, 0xdd, 0xe6, 0x8a, 0x29, 0xa2, 0x7a, 0x43, - 0xe4, 0x27, 0xf8, 0xf8, 0x1b, 0x58, 0x7d, 0x07, 0xc8, 0x24, 0xf6, 0xfb, 0xaa, 0x8a, 0x6d, 0x7c, - 0x31, 0x7f, 0x16, 0x14, 0x4b, 0xf0, 0xdd, 0x54, 0x14, 0x81, 0x24, 0xc4, 0x7c, 0x33, 0xcd, 0x6e, - 0x03, 0xa5, 0x54, 0x52, 0x2c, 0x54, 0x77, 0x7b, 0xad, 0xce, 0xd1, 0x05, 0x5d, 0xee, 0x9b, 0x91, - 0x85, 0xa0, 0xc9, 0xb9, 0x6f, 0x90, 0x73, 0xec, 0x2c, 0x8e, 0xb2, 0x9b, 0xb5, 0x66, 0x72, 0x99, - 0xd3, 0xfd, 0xdb, 0x65, 0x72, 0x66, 0xb3, 0xb1, 0xd6, 0xb0, 0x5d, 0x64, 0x6f, 0x90, 0x19, 0xbe, - 0xcd, 0x22, 0xd3, 0x79, 0x6d, 0x51, 0x5f, 0x39, 0x8f, 0xb7, 0x0d, 0x18, 0x58, 0x98, 0x78, 0xc8, - 0x19, 0xbc, 0xdf, 0x49, 0x87, 0xd8, 0x6c, 0xbe, 0x7d, 0x13, 0xb0, 0x1c, 0xc1, 0xb8, 0x63, 0x73, - 0x11, 0xa7, 0xc0, 0x6a, 0xd7, 0xfe, 0x12, 0x55, 0xf9, 0xe3, 0x66, 0x1c, 0xd0, 0x05, 0x40, 0xd7, - 0xbf, 0xd7, 0x94, 0xec, 0xab, 0x75, 0x78, 0xec, 0xaa, 0x82, 0x42, 0x0a, 0xdb, 0x90, 0xb7, 0xe3, - 0x85, 0x77, 0xfd, 0xfc, 0x20, 0xc7, 0x2d, 0x52, 0x55, 0xc1, 0x28, 0x32, 0x86, 0xa8, 0x94, 0x1d, - 0x43, 0x94, 0x2f, 0x70, 0xdc, 0x7f, 0x44, 0x75, 0x54, 0x75, 0x18, 0x4f, 0x39, 0xad, 0x4a, 0x45, - 0x6b, 0xc2, 0x8e, 0x77, 0x04, 0xdb, 0x3e, 0x9b, 0xc3, 0x6b, 0x9c, 0xd7, 0x39, 0x37, 0xd4, 0x65, - 0x5d, 0xd0, 0x64, 0x9c, 0x2d, 0x32, 0xd9, 0x8d, 0xfc, 0x46, 0xc2, 0x62, 0x61, 0x87, 0xa0, 0xc8, - 0xf8, 0xb6, 0xce, 0x6b, 0x82, 0x24, 0xe1, 0xfe, 0x5a, 0x89, 0x90, 0xad, 0xe0, 0x80, 0x6e, 0x1f, - 0x5e, 0x67, 0xcf, 0x1f, 0xa1, 0xbd, 0x77, 0x93, 0x8c, 0xc5, 0x5d, 0xba, 0x78, 0x0b, 0x1d, 0xc9, - 0xe8, 0x1e, 0x35, 0x68, 0x1d, 0x3d, 0xd1, 0xf8, 0x0b, 0x18, 0x1d, 0xf7, 0x97, 0x09, 0x99, 0xd3, - 0x68, 0xa8, 0x70, 0x3b, 0x17, 0xad, 0xe0, 0xcf, 0xc7, 0x52, 0xc1, 0x9f, 0x55, 0x86, 0x6d, 0xc4, - 0x7b, 0x26, 0xa4, 0x72, 0xe0, 0xdd, 0x17, 0xfa, 0xfd, 0x6b, 0x45, 0x3b, 0x84, 0x2d, 0x2d, 0xdf, - 0xf0, 0xee, 0x73, 0x85, 0xe7, 0x45, 0xc9, 0x22, 0xb4, 0xe4, 0x63, 0x7e, 0xf0, 0xc2, 0xd6, 0x18, - 0x1a, 0x14, 0x3f, 0xf3, 0x9f, 0xf4, 0x6f, 0x26, 0xf6, 0xb0, 0x39, 0xd6, 0x6a, 0xd0, 0x11, 0x4e, - 0xb9, 0x21, 0x5b, 0x0d, 0x3a, 0xe9, 0x56, 0x83, 0x4e, 0x81, 0x56, 0x83, 0x0e, 0xc6, 0x88, 0x4d, - 0xb6, 0xfc, 0x5d, 0xaf, 0xd7, 0x4e, 0x58, 0x58, 0xd3, 0xf4, 0x95, 0x37, 0x87, 0x6a, 0xba, 0xc6, - 0xeb, 0xf2, 0xe6, 0x2f, 0x49, 0x2d, 0x4f, 0x94, 0xe6, 0x76, 0x41, 0x36, 0xed, 0xfc, 0x12, 0xb5, - 0x0a, 0xc4, 0xff, 0x18, 0x41, 0x44, 0xcd, 0x43, 0xb1, 0x0f, 0xbd, 0x75, 0x92, 0xde, 0x08, 0x12, - 0xbc, 0x53, 0x3f, 0x26, 0x85, 0x88, 0x0d, 0xcc, 0xed, 0x5b, 0xaa, 0x3f, 0xce, 0x87, 0x25, 0x72, - 0x8e, 0x7e, 0x27, 0xde, 0x22, 0x2f, 0x03, 0x3c, 0xa8, 0x13, 0xa1, 0x5b, 0x1b, 0xc3, 0xf2, 0x49, - 0x1f, 0x21, 0xde, 0xdd, 0x2f, 0xca, 0xe3, 0xc0, 0x2c, 0x94, 0xdc, 0x4e, 0x67, 0xf6, 0x70, 0xa9, - 0x45, 0xa6, 0x24, 0x63, 0x66, 0xe8, 0xd7, 0xab, 0xe6, 0x76, 0x7b, 0xfc, 0x0a, 0x94, 0xae, 0xae, - 0xe5, 0xb7, 0x7b, 0x5e, 0x27, 0xc1, 0xb8, 0x7a, 0xad, 0x8d, 0xb3, 0x56, 0x04, 0x23, 0x8e, 0xb0, - 0x95, 0x7d, 0x32, 0x63, 0xf2, 0xdc, 0x08, 0x5b, 0x0a, 0xc9, 0xd9, 0x0c, 0x7e, 0x1a, 0x61, 0x83, - 0x3d, 0xf2, 0xd8, 0x40, 0xbe, 0x18, 0x5d, 0xb3, 0xe8, 0xbe, 0x37, 0x04, 0xe6, 0x69, 0xb8, 0x50, - 0x6e, 0xd8, 0x2e, 0x94, 0xe7, 0x8b, 0x2e, 0x9d, 0x01, 0x7e, 0x94, 0x5d, 0xb3, 0xff, 0xb8, 0x13, - 0x38, 0xdb, 0x64, 0xa2, 0x8d, 0x25, 0xf2, 0xdc, 0xe6, 0xa5, 0x61, 0x16, 0xa7, 0x56, 0x1f, 0x58, - 0x79, 0x0c, 0x82, 0x96, 0xfb, 0xeb, 0x25, 0x32, 0x76, 0x1a, 0xd3, 0x53, 0xb7, 0xa7, 0x67, 0x90, - 0x12, 0x2a, 0x2e, 0xff, 0x2d, 0x83, 0x77, 0x6f, 0xfd, 0x3e, 0xb5, 0x57, 0x63, 0xa6, 0x2c, 0x66, - 0xce, 0xd0, 0x3f, 0x2c, 0x93, 0x69, 0x6c, 0x48, 0x7a, 0x74, 0xbe, 0x80, 0x1e, 0xbe, 0x1d, 0xbf, - 0x2d, 0x1d, 0xbf, 0x69, 0xc3, 0x6a, 0xcb, 0x04, 0x82, 0x8d, 0x8b, 0x95, 0x77, 0x4d, 0xbf, 0xb8, - 0x50, 0x7a, 0x54, 0x65, 0xcb, 0x69, 0x0e, 0x36, 0x2e, 0xea, 0xf6, 0xf7, 0xbc, 0xa4, 0xb9, 0x2f, - 0x8c, 0x2e, 0xd5, 0xdd, 0x3b, 0x58, 0x08, 0x1c, 0xe6, 0xac, 0x90, 0x79, 0xc9, 0xb1, 0xb7, 0xf9, - 0xd4, 0x09, 0x85, 0x50, 0x5d, 0xdc, 0x02, 0x1b, 0x0c, 0x69, 0x7c, 0xe7, 0xf3, 0x64, 0x0e, 0x27, - 0x27, 0xec, 0x25, 0x32, 0x08, 0x60, 0x9c, 0x05, 0x01, 0xb0, 0xa0, 0xcb, 0x6d, 0x0b, 0x02, 0x29, - 0x4c, 0xf7, 0x27, 0xc9, 0xd9, 0xad, 0xd0, 0x6b, 0xad, 0x7a, 0x6d, 0xaf, 0xd3, 0xf4, 0xa3, 0xcd, - 0xce, 0x5e, 0xee, 0x09, 0xac, 0x79, 0x4a, 0x5a, 0xce, 0x3b, 0x25, 0x75, 0x23, 0xe2, 0x98, 0x0d, - 0x88, 0xf0, 0x95, 0x77, 0xc9, 0x64, 0xc0, 0x9b, 0x12, 0x5c, 0x7b, 0x39, 0xcf, 0xfd, 0xd3, 0xd7, - 0x47, 0x23, 0x1c, 0x83, 0x17, 0x80, 0x24, 0x89, 0xb6, 0x42, 0x96, 0xbf, 0x28, 0xdf, 0x1c, 0x73, - 0xff, 0x42, 0x89, 0xcc, 0xdf, 0x4c, 0xdd, 0x98, 0xc2, 0xd8, 0x2a, 0x3f, 0xca, 0x70, 0x7e, 0x35, - 0x58, 0x29, 0x08, 0xe8, 0x03, 0x37, 0xc4, 0xff, 0x62, 0x99, 0x54, 0x59, 0x2c, 0x64, 0xd7, 0x6b, - 0x8e, 0x52, 0x29, 0xbd, 0x61, 0x29, 0xa5, 0x39, 0x66, 0xa0, 0xea, 0xd0, 0x20, 0x9d, 0x14, 0xef, - 0xcc, 0x89, 0x1b, 0x44, 0x85, 0x2c, 0x40, 0x4d, 0x90, 0x5f, 0x36, 0x99, 0xb3, 0x2f, 0x1c, 0xc9, - 0xdb, 0x45, 0xec, 0xdc, 0x52, 0xe1, 0x3e, 0x7c, 0xe7, 0x96, 0xaa, 0x6b, 0x03, 0xa4, 0x52, 0xdd, - 0xe8, 0x3d, 0x13, 0xdb, 0x5f, 0x66, 0x81, 0x6d, 0x5e, 0x3b, 0xf8, 0xc0, 0x57, 0x37, 0xf1, 0x9e, - 0x14, 0x71, 0x6a, 0xa2, 0xf4, 0x63, 0x26, 0x60, 0xc4, 0x2f, 0x7e, 0xc1, 0x52, 0x57, 0x71, 0xaf, - 0x51, 0x4e, 0xb5, 0xe7, 0xce, 0x79, 0x8d, 0x8c, 0x77, 0xf7, 0xbd, 0xd8, 0x4f, 0xc5, 0x60, 0x8c, - 0xd7, 0xb1, 0x90, 0x52, 0x9b, 0x53, 0x15, 0x58, 0x09, 0x70, 0x6c, 0xf7, 0x8f, 0xa8, 0xac, 0xc7, - 0xa8, 0x85, 0x11, 0xf2, 0xd8, 0x35, 0x8b, 0xc7, 0x9e, 0xcb, 0xbf, 0x82, 0x3c, 0x90, 0xbd, 0xea, - 0x29, 0xf6, 0x7a, 0xbe, 0x00, 0xad, 0xe3, 0x39, 0xeb, 0x80, 0x4c, 0xb3, 0x2b, 0xce, 0x22, 0xf8, - 0xe4, 0x15, 0xcb, 0x80, 0x7a, 0x32, 0x65, 0x40, 0xcd, 0x1b, 0xa8, 0x86, 0x19, 0xf5, 0x02, 0x99, - 0x14, 0xc1, 0x0e, 0xe9, 0x68, 0x3e, 0x81, 0x0b, 0x12, 0xee, 0xfe, 0x6a, 0x85, 0x58, 0x57, 0xaa, - 0x9d, 0xef, 0x95, 0x08, 0x55, 0x5a, 0xd8, 0x55, 0x82, 0x56, 0xad, 0x87, 0x1e, 0x31, 0x74, 0x5a, - 0xb5, 0x7a, 0x6d, 0xfa, 0xdf, 0xe6, 0x5e, 0x27, 0x54, 0xc5, 0xe8, 0xbd, 0xe9, 0x31, 0xff, 0x69, - 0xe1, 0x9b, 0xdc, 0xea, 0xb4, 0xf3, 0x0a, 0xed, 0xcb, 0x32, 0x0c, 0xd5, 0x0a, 0x0c, 0xd9, 0x2b, - 0xe7, 0x77, 0x4b, 0xe4, 0x12, 0xbf, 0x54, 0x5c, 0x7c, 0x24, 0x85, 0x0c, 0xcf, 0xba, 0x24, 0xaa, - 0xc9, 0x61, 0xf0, 0xe0, 0xea, 0xeb, 0x62, 0x92, 0x2f, 0xd5, 0x87, 0x6b, 0x15, 0x86, 0xed, 0xa6, - 0xfb, 0x2f, 0x2b, 0x74, 0xfd, 0xd2, 0xf9, 0xd4, 0x97, 0x2c, 0x5f, 0xb3, 0xd8, 0xe4, 0xe9, 0x14, - 0x9b, 0x9c, 0xb1, 0x90, 0x1f, 0xcc, 0xfd, 0xca, 0x84, 0x9c, 0xc1, 0x13, 0xc5, 0x6b, 0xbe, 0x17, - 0x25, 0x3b, 0xbe, 0xc7, 0x8e, 0x16, 0xc5, 0x22, 0x18, 0xea, 0xb8, 0x52, 0x45, 0xd0, 0x6c, 0xa5, - 0xa9, 0x41, 0x7f, 0x03, 0xce, 0x3d, 0xe2, 0xb0, 0x73, 0xcc, 0xc8, 0xa3, 0x4a, 0x17, 0x1b, 0x4c, - 0x20, 0x5c, 0xae, 0x43, 0x36, 0xbb, 0x24, 0x9a, 0x75, 0xb6, 0xfa, 0xc8, 0x41, 0x46, 0x13, 0xc6, - 0x61, 0xf5, 0x78, 0xd1, 0xc3, 0xea, 0x89, 0x9c, 0x40, 0xda, 0x9f, 0x2b, 0x91, 0xb3, 0xf8, 0x61, - 0xec, 0xa0, 0xcb, 0xd8, 0x09, 0xc9, 0x3c, 0x8e, 0xa0, 0xed, 0x27, 0xb2, 0x4c, 0xac, 0xb0, 0x1c, - 0x5d, 0xda, 0xa6, 0xa3, 0x35, 0xb6, 0xeb, 0x36, 0x31, 0x48, 0x53, 0x77, 0x7f, 0xb5, 0x44, 0x58, - 0x9c, 0xd8, 0x69, 0xec, 0x63, 0x57, 0xed, 0x7d, 0xcc, 0xcd, 0x17, 0x1a, 0x03, 0xb6, 0xb0, 0x57, - 0xc9, 0x02, 0x42, 0xeb, 0x51, 0x78, 0xff, 0x48, 0x2a, 0xd7, 0xf9, 0xde, 0xd7, 0x3f, 0x5f, 0xe2, - 0xe2, 0x4e, 0x69, 0xc5, 0xf7, 0x30, 0x14, 0x4c, 0xff, 0xc6, 0x85, 0x2c, 0x95, 0xc0, 0xe5, 0xe2, - 0x02, 0x8d, 0xad, 0x7f, 0x23, 0x16, 0x2c, 0x45, 0x10, 0xfa, 0xdb, 0x70, 0xff, 0x4e, 0x89, 0x3c, - 0x6a, 0x22, 0x1a, 0xd7, 0xb7, 0xf2, 0x5c, 0x9e, 0x35, 0x32, 0x15, 0x76, 0x31, 0x85, 0x88, 0xb2, - 0x00, 0x9e, 0x97, 0x33, 0x7e, 0x4b, 0x94, 0xd3, 0x95, 0x7b, 0xce, 0xa4, 0x2e, 0xcb, 0x41, 0xd5, - 0x74, 0x5c, 0x32, 0xc1, 0x2c, 0xd1, 0x58, 0x5c, 0xbc, 0x23, 0xc8, 0xcd, 0xcc, 0xd1, 0x4f, 0x17, - 0x39, 0x87, 0xb8, 0x7f, 0xb9, 0xc4, 0x67, 0xd9, 0xec, 0xba, 0xf3, 0x4d, 0xb2, 0x70, 0x80, 0xc6, - 0xc2, 0xfa, 0xfd, 0x2e, 0x6e, 0x21, 0xec, 0xa0, 0xb2, 0x54, 0x44, 0x70, 0x0e, 0x18, 0xee, 0xea, - 0xa2, 0xe8, 0xfd, 0xc2, 0x8d, 0x14, 0x59, 0xe8, 0x6b, 0xc8, 0xfd, 0x3d, 0xc1, 0xab, 0x4c, 0x6b, - 0xa1, 0x8b, 0xad, 0x1b, 0xb6, 0xd6, 0x36, 0x6b, 0x20, 0xe6, 0x4a, 0x2d, 0xb6, 0x3a, 0x2f, 0x06, - 0x09, 0xc7, 0x93, 0x37, 0x9f, 0x9a, 0x6a, 0x11, 0x55, 0x58, 0x36, 0x6b, 0xe9, 0x3c, 0x18, 0xeb, - 0x0a, 0x02, 0x06, 0x16, 0xd6, 0xe9, 0x46, 0xe1, 0x61, 0xd0, 0x62, 0x61, 0xd4, 0x15, 0xbb, 0x4e, - 0x5d, 0x41, 0xc0, 0xc0, 0x42, 0x13, 0xad, 0xd7, 0x89, 0xb9, 0x00, 0xf7, 0x76, 0x44, 0x96, 0x81, - 0x29, 0x6d, 0xa2, 0xbd, 0x63, 0x02, 0xc1, 0xc6, 0x75, 0x7f, 0x50, 0x25, 0x44, 0xab, 0x08, 0xe8, - 0x21, 0x9c, 0x6a, 0x7a, 0x54, 0x41, 0xe2, 0xe9, 0x52, 0x2a, 0xf9, 0xf7, 0x4d, 0x74, 0xe5, 0xe5, - 0x35, 0x51, 0x91, 0xfb, 0xb6, 0x5e, 0x96, 0x0c, 0x22, 0x8b, 0x73, 0xfd, 0x59, 0xaa, 0x65, 0xe7, - 0x5b, 0x25, 0x32, 0xed, 0xb5, 0xf1, 0x82, 0x69, 0xc2, 0x46, 0x54, 0x2e, 0xe2, 0xac, 0x34, 0x7a, - 0xb2, 0xa2, 0xeb, 0xf2, 0xce, 0xbc, 0x22, 0xcf, 0xad, 0x0c, 0x48, 0x6e, 0x7f, 0xcc, 0x2e, 0x38, - 0x2f, 0x4b, 0xd5, 0x92, 0x7f, 0x94, 0xa5, 0xb4, 0x6a, 0x59, 0x65, 0xa2, 0xc1, 0xd0, 0x2a, 0xf1, - 0xe6, 0x86, 0x11, 0x53, 0x3e, 0x56, 0xe4, 0xce, 0xa7, 0xb5, 0x69, 0xe6, 0xdd, 0xa5, 0xc7, 0xd3, - 0x26, 0x1d, 0xb3, 0x3a, 0x5e, 0xe4, 0x42, 0xa5, 0xa1, 0xbb, 0xe5, 0xc4, 0xab, 0x26, 0x64, 0xbe, - 0x65, 0x6f, 0x12, 0x22, 0x08, 0xe9, 0x72, 0x7e, 0x0b, 0xa9, 0xdd, 0x45, 0x6f, 0x0b, 0x29, 0x00, - 0xa4, 0x9b, 0xa0, 0x23, 0x62, 0x31, 0xc3, 0x9b, 0x9d, 0xdd, 0x50, 0xc4, 0x21, 0xbd, 0x54, 0xe0, - 0x9b, 0x1f, 0xc5, 0x54, 0x3c, 0x63, 0x1d, 0xbd, 0x0d, 0xdc, 0x14, 0x54, 0x40, 0xd1, 0x43, 0x37, - 0x11, 0xbb, 0xad, 0x80, 0x77, 0x5c, 0x2b, 0x43, 0x5c, 0xdc, 0x60, 0x77, 0x1d, 0xf4, 0xe6, 0xcb, - 0x7e, 0x52, 0x71, 0xc5, 0x69, 0x51, 0xbd, 0x5e, 0x5c, 0x41, 0x8d, 0x37, 0x3b, 0xef, 0xc4, 0x3e, - 0xbb, 0xd7, 0x5a, 0x5d, 0x7d, 0x46, 0x5f, 0x54, 0xe5, 0xe5, 0x99, 0xe9, 0x72, 0xac, 0x9a, 0xb8, - 0x07, 0x8b, 0xdf, 0x32, 0x0b, 0xcf, 0x22, 0x29, 0xd2, 0x51, 0x3b, 0x67, 0x8f, 0x9e, 0xec, 0xdb, - 0x36, 0x31, 0x48, 0x53, 0x5f, 0x0a, 0xc8, 0xac, 0xb5, 0x62, 0x47, 0xe8, 0xec, 0x6c, 0x93, 0x85, - 0xf4, 0x92, 0x1c, 0xa1, 0x8f, 0xf3, 0x0f, 0xc7, 0xc8, 0x9c, 0xcd, 0x18, 0x18, 0xa3, 0x70, 0x40, - 0x47, 0x4d, 0xbf, 0xa7, 0xca, 0x56, 0xa2, 0xf8, 0xff, 0x86, 0x04, 0x80, 0xc6, 0x61, 0x79, 0x5b, - 0x58, 0xf5, 0x77, 0xde, 0xe9, 0x17, 0xde, 0x0d, 0x05, 0x01, 0x03, 0x0b, 0x15, 0xb6, 0x9d, 0x30, - 0x4c, 0x94, 0xe0, 0x56, 0x3c, 0xb3, 0xca, 0x4a, 0x41, 0x40, 0x51, 0x60, 0xdf, 0xc5, 0x01, 0xb5, - 0x6d, 0x7f, 0x97, 0x12, 0xd8, 0xd7, 0x4d, 0x20, 0xd8, 0xb8, 0xb8, 0x01, 0x85, 0x31, 0x63, 0x42, - 0xa1, 0x16, 0xea, 0x68, 0x9b, 0x06, 0xbf, 0xbd, 0x23, 0xe1, 0xce, 0x57, 0xc9, 0xa3, 0xea, 0xb2, - 0x0d, 0x70, 0xff, 0xa1, 0x6c, 0x71, 0xc2, 0xb2, 0xed, 0x1e, 0x5d, 0xcb, 0x46, 0x83, 0x41, 0xf5, - 0xf1, 0x10, 0x57, 0xa8, 0x74, 0x92, 0xe2, 0xa4, 0x7d, 0x88, 0x7b, 0xdd, 0x82, 0x42, 0x0a, 0x9b, - 0xea, 0x13, 0x0b, 0x58, 0xc2, 0x54, 0x29, 0x49, 0x81, 0x5f, 0x1a, 0x52, 0x3b, 0xf3, 0xf5, 0x14, - 0x1c, 0xfa, 0x6a, 0xa0, 0xeb, 0x90, 0xeb, 0x16, 0x68, 0xc1, 0xb0, 0xef, 0x20, 0xe2, 0x06, 0xd5, - 0x22, 0xb8, 0x65, 0x83, 0x21, 0x8d, 0x8f, 0xa7, 0xe0, 0x5e, 0x44, 0x3f, 0x7a, 0x42, 0x55, 0x84, - 0x5e, 0xc4, 0x6f, 0x8c, 0x1b, 0xa7, 0xe0, 0x2b, 0x06, 0x0c, 0x2c, 0x4c, 0xf7, 0x03, 0x72, 0x36, - 0x23, 0x3c, 0x19, 0x19, 0x87, 0x32, 0xa8, 0x1c, 0x53, 0x2a, 0xde, 0x06, 0x2f, 0x98, 0x88, 0xd1, - 0x18, 0x58, 0xc8, 0x9d, 0xcc, 0x71, 0x6a, 0x24, 0xcc, 0x52, 0xdc, 0xb9, 0x21, 0x01, 0xa0, 0x71, - 0xdc, 0xef, 0xd0, 0x5d, 0x5b, 0xbb, 0x19, 0x0a, 0x44, 0x59, 0xd0, 0x61, 0xca, 0x1c, 0x70, 0x46, - 0x3e, 0x2a, 0x35, 0xcc, 0xab, 0x06, 0x0c, 0x2c, 0x4c, 0xec, 0x5b, 0x47, 0x3a, 0x4d, 0xd2, 0xd1, - 0x3d, 0xca, 0x9b, 0x02, 0x1a, 0x07, 0x7d, 0x7c, 0xb1, 0xdf, 0xde, 0xdd, 0x0a, 0x3a, 0x77, 0x05, - 0x63, 0x2b, 0xa9, 0xdc, 0x10, 0xe5, 0xa0, 0x30, 0x9c, 0xb7, 0x48, 0xa5, 0x17, 0xb4, 0x04, 0x2b, - 0x2f, 0x4b, 0xbd, 0x93, 0xae, 0x26, 0x2a, 0x31, 0x9f, 0xcc, 0x4e, 0x6c, 0x87, 0x66, 0x64, 0xbc, - 0x8c, 0x8b, 0x0f, 0xab, 0x66, 0xf9, 0x8f, 0x27, 0x86, 0xf4, 0x1f, 0xd3, 0x6f, 0x26, 0xc6, 0x2c, - 0x39, 0xb9, 0xa2, 0xbf, 0xd9, 0x55, 0x05, 0x01, 0x03, 0x0b, 0x8d, 0xd1, 0x26, 0x35, 0xc0, 0xa4, - 0xb5, 0xc6, 0x63, 0x67, 0xa7, 0x3e, 0x81, 0x31, 0xba, 0x96, 0xa6, 0x06, 0xfd, 0x0d, 0x38, 0x5d, - 0x72, 0xa6, 0x85, 0xeb, 0xc8, 0x6a, 0xb5, 0x7a, 0x82, 0x88, 0x5d, 0x6c, 0xb1, 0x96, 0xa6, 0x04, - 0xfd, 0xc4, 0x9d, 0xaf, 0x93, 0x25, 0x59, 0xd8, 0x7f, 0x9d, 0x8e, 0x2d, 0x97, 0xca, 0xea, 0x13, - 0x94, 0xda, 0x52, 0x6d, 0x20, 0x16, 0x1c, 0x43, 0xc1, 0x79, 0x97, 0x4c, 0xb0, 0x13, 0x87, 0x78, - 0x71, 0x9a, 0xed, 0x76, 0xaf, 0x16, 0x75, 0xb8, 0x2d, 0xb3, 0x73, 0x0b, 0x11, 0x72, 0xa8, 0x4f, - 0x71, 0x58, 0x21, 0x08, 0x9a, 0x74, 0xbe, 0xa6, 0xbd, 0x4e, 0x27, 0x4c, 0x3c, 0xae, 0x84, 0xcd, - 0x14, 0xd1, 0x23, 0x8d, 0x26, 0x56, 0x74, 0x5d, 0xde, 0x8e, 0x8a, 0x7f, 0x32, 0x20, 0x60, 0x36, - 0x81, 0xdb, 0x78, 0x78, 0x0f, 0x05, 0xa6, 0x74, 0xba, 0xc7, 0x8b, 0xb3, 0x45, 0xb6, 0xf1, 0x5b, - 0x56, 0x25, 0x43, 0x82, 0xd9, 0xc4, 0x20, 0x4d, 0x1d, 0x03, 0x6a, 0x0d, 0x3f, 0xea, 0x9c, 0x0e, - 0xa8, 0xd5, 0x7e, 0x54, 0xd3, 0x6d, 0xba, 0xf4, 0x26, 0x99, 0x36, 0x66, 0x6e, 0x98, 0x10, 0xcc, - 0xa5, 0x2f, 0xd1, 0x6d, 0x3c, 0x35, 0x23, 0x43, 0x85, 0x70, 0xfe, 0x8f, 0x32, 0x99, 0xcf, 0x38, - 0x92, 0xb8, 0x1b, 0xb0, 0x20, 0x65, 0x4b, 0x76, 0x5d, 0xa7, 0x65, 0xc0, 0x20, 0xb6, 0x04, 0x2a, - 0x17, 0x90, 0x40, 0x52, 0x1c, 0x56, 0x06, 0x8a, 0x43, 0x21, 0x75, 0xc6, 0x4e, 0x2e, 0x75, 0x6c, - 0x31, 0x3f, 0x5e, 0x48, 0xcc, 0x3f, 0x00, 0x49, 0x65, 0xed, 0x14, 0x93, 0x05, 0x76, 0x8a, 0x8f, - 0x4b, 0x64, 0xce, 0x66, 0xa1, 0x02, 0x33, 0xfe, 0xb0, 0x4e, 0xe0, 0x32, 0xb3, 0xa8, 0x92, 0x28, - 0x6c, 0xb7, 0xfd, 0x48, 0x04, 0x75, 0xcd, 0x09, 0x03, 0x49, 0x94, 0x82, 0x81, 0xe1, 0xfe, 0x52, - 0x99, 0x2c, 0xe8, 0x08, 0x5f, 0x91, 0xd4, 0x72, 0x74, 0x3e, 0xfe, 0x6d, 0xcb, 0xc7, 0x9f, 0x97, - 0xab, 0x32, 0xd5, 0xaf, 0x81, 0xfe, 0xfe, 0x77, 0x53, 0xfe, 0xfe, 0x57, 0x87, 0xa4, 0x7b, 0xbc, - 0xef, 0xff, 0x1f, 0x97, 0xc9, 0xf9, 0x74, 0x95, 0xb5, 0xb6, 0x17, 0x1c, 0x8c, 0x70, 0x9e, 0xbe, - 0x6a, 0xcd, 0xd3, 0xeb, 0xc3, 0x8d, 0x87, 0x75, 0x6e, 0xe0, 0x64, 0x79, 0xa9, 0xc9, 0x7a, 0xf3, - 0x24, 0xc4, 0x8f, 0x9f, 0xb1, 0x7f, 0x5f, 0x22, 0x8f, 0x65, 0xd6, 0x3b, 0x0d, 0x5f, 0xe6, 0x57, - 0x6c, 0x5f, 0xe6, 0x2b, 0x27, 0x18, 0xde, 0x00, 0xe7, 0xe6, 0x7f, 0x29, 0x0f, 0x18, 0x16, 0x73, - 0x7b, 0xdd, 0xa2, 0xfb, 0x68, 0x93, 0xee, 0x36, 0xf1, 0x0d, 0x6a, 0x57, 0xc9, 0xd3, 0xba, 0x8b, - 0x6c, 0x23, 0xd4, 0xc5, 0x74, 0xed, 0x2f, 0xa5, 0x49, 0x68, 0x30, 0x98, 0x14, 0xec, 0xa4, 0x53, - 0xe5, 0x11, 0x25, 0x9d, 0xa2, 0x32, 0xe6, 0x50, 0x99, 0xdb, 0x69, 0x6f, 0x9a, 0x61, 0x88, 0x1b, - 0x58, 0x54, 0xdf, 0x41, 0xe5, 0x94, 0xc7, 0x3a, 0x8c, 0xe5, 0x2e, 0x38, 0xeb, 0x03, 0x9a, 0x81, - 0x13, 0xfc, 0x9a, 0xa2, 0x72, 0x3d, 0x2a, 0x9a, 0xee, 0x77, 0x2a, 0xe4, 0xd3, 0xc7, 0xb0, 0x1d, - 0xdd, 0x24, 0xac, 0x23, 0xcc, 0x17, 0xd3, 0x7e, 0xa6, 0xa5, 0xcc, 0xca, 0x96, 0xe3, 0x29, 0xf5, - 0xb1, 0xca, 0x9f, 0xf8, 0x63, 0xfd, 0xa2, 0xe9, 0x15, 0xe4, 0x31, 0x8b, 0x57, 0x4f, 0xbc, 0xb0, - 0x1e, 0x9c, 0x9b, 0xf0, 0x14, 0x3d, 0x18, 0x98, 0xa0, 0xf8, 0xe9, 0xcc, 0x41, 0x59, 0x91, 0x12, - 0x78, 0xab, 0x0b, 0x0b, 0x8d, 0x6b, 0x23, 0xfa, 0x56, 0x97, 0x04, 0x80, 0xc6, 0xb1, 0x02, 0x22, - 0xca, 0xb9, 0x01, 0x11, 0xff, 0xba, 0x44, 0xce, 0xa5, 0x3b, 0x71, 0x1a, 0x52, 0xa7, 0x61, 0x4b, - 0x9d, 0xe5, 0xe1, 0xbe, 0xfd, 0x00, 0x81, 0xf3, 0x1f, 0x08, 0x79, 0xa4, 0x6f, 0xb3, 0xe2, 0xd3, - 0xf8, 0xd3, 0x25, 0x72, 0x66, 0x8f, 0x19, 0x0a, 0xc6, 0xe5, 0x1c, 0x31, 0xb0, 0x9c, 0x9b, 0x49, - 0xc7, 0xde, 0xe9, 0xe1, 0x66, 0x4f, 0x1f, 0x0a, 0xf4, 0x37, 0xe6, 0xfc, 0x3c, 0x9d, 0x6a, 0xef, - 0x5e, 0xdc, 0x97, 0x21, 0x5d, 0xf0, 0xd1, 0x97, 0x72, 0x7c, 0x72, 0x39, 0xb9, 0xd5, 0x57, 0x17, - 0x31, 0xe8, 0x33, 0x0b, 0x0b, 0x32, 0x5b, 0xa5, 0x4a, 0x00, 0x4f, 0xbf, 0x85, 0x6a, 0x5f, 0xa1, - 0xeb, 0x62, 0x59, 0x57, 0x05, 0xb8, 0x4c, 0x92, 0x10, 0x50, 0x14, 0x9d, 0xf7, 0x48, 0x75, 0x4f, - 0xde, 0xc7, 0x11, 0x42, 0x2f, 0x67, 0x67, 0xc9, 0xbc, 0xbe, 0xc3, 0xc3, 0xd5, 0x15, 0x08, 0x34, - 0x51, 0xe7, 0x1a, 0xa9, 0x74, 0x76, 0x63, 0x71, 0x45, 0x36, 0x2f, 0x20, 0xc6, 0x0e, 0x3f, 0xe2, - 0x97, 0xfe, 0x68, 0x21, 0x20, 0x09, 0xa4, 0x14, 0xed, 0xb4, 0x84, 0x33, 0x3a, 0x87, 0x12, 0xac, - 0xd6, 0xfa, 0x29, 0xd1, 0x42, 0x40, 0x12, 0x2c, 0xf2, 0x0e, 0xaf, 0x16, 0x08, 0x4f, 0x73, 0xce, - 0xfd, 0xe9, 0xbe, 0x0b, 0x14, 0x3c, 0x57, 0x1b, 0x2b, 0x06, 0x4e, 0x08, 0x5d, 0xcc, 0x4d, 0x96, - 0x28, 0x59, 0x38, 0x02, 0xf2, 0xd2, 0xe7, 0xf6, 0x25, 0x55, 0xe6, 0x27, 0x62, 0xbc, 0x1c, 0x04, - 0x2d, 0x46, 0xd5, 0xef, 0xee, 0xef, 0xc6, 0xc2, 0xd0, 0xcf, 0xa3, 0xda, 0x97, 0xf2, 0x5a, 0x50, - 0x65, 0xe5, 0x20, 0x68, 0x39, 0x35, 0x52, 0xde, 0x6d, 0x8a, 0x04, 0x89, 0x39, 0xa6, 0xa9, 0x7d, - 0x83, 0x73, 0x75, 0x02, 0x43, 0xe1, 0x36, 0xd6, 0x80, 0xd6, 0xa7, 0xfa, 0xc8, 0xe4, 0x2e, 0xbf, - 0x94, 0x27, 0x92, 0x21, 0x5e, 0xce, 0xbb, 0x38, 0xd8, 0x77, 0x83, 0x8f, 0x5f, 0x49, 0x10, 0x00, - 0x90, 0xe4, 0xe8, 0x3e, 0x4c, 0x76, 0xd5, 0x2d, 0x43, 0x91, 0x0d, 0x71, 0x79, 0xb8, 0x5b, 0x89, - 0xc2, 0x0c, 0x56, 0xa5, 0x60, 0x50, 0x44, 0x9e, 0xf7, 0x64, 0xae, 0x77, 0x96, 0x09, 0x31, 0x97, - 0xe7, 0x33, 0x53, 0xc3, 0x73, 0x9e, 0x57, 0x20, 0xd0, 0x44, 0x9d, 0x1e, 0x99, 0x3d, 0x8c, 0xbb, - 0xfb, 0xbe, 0x5c, 0xfa, 0x2c, 0x3d, 0xe2, 0xf4, 0x95, 0x2f, 0xe6, 0xe4, 0xbc, 0x14, 0x55, 0x82, - 0x28, 0xe9, 0x79, 0xed, 0x3e, 0x09, 0xc6, 0xf2, 0x0c, 0xdd, 0x36, 0xc9, 0x82, 0xdd, 0x8a, 0xfb, - 0x7b, 0xe3, 0xfd, 0x9b, 0x04, 0xd3, 0xe1, 0x7e, 0xa1, 0xff, 0x6c, 0xef, 0xad, 0xe1, 0x6d, 0x94, - 0x07, 0x78, 0xca, 0x47, 0x65, 0xec, 0x23, 0xdd, 0xcc, 0x1d, 0x40, 0x48, 0xd9, 0x61, 0x4d, 0x1d, - 0x3e, 0x45, 0x2a, 0xa1, 0x65, 0x36, 0x1c, 0x06, 0xb4, 0x99, 0x56, 0x9b, 0x2a, 0x9f, 0x58, 0x6d, - 0xba, 0x43, 0xe7, 0x1b, 0x77, 0x7a, 0x9d, 0xa3, 0x61, 0xc8, 0xb4, 0x06, 0x4c, 0x5e, 0xaf, 0x09, - 0x12, 0xa0, 0x88, 0xe1, 0xc4, 0x3d, 0x9e, 0x1e, 0x04, 0xf8, 0x0c, 0x2c, 0x32, 0x71, 0x72, 0x7b, - 0x7a, 0x43, 0xcc, 0xc4, 0xe3, 0xf5, 0xe3, 0x90, 0x3f, 0xce, 0x43, 0x80, 0xe3, 0x1b, 0x3b, 0x4d, - 0x35, 0xec, 0xef, 0x97, 0x32, 0x94, 0x06, 0xae, 0x38, 0x7f, 0xd1, 0x56, 0x9c, 0x9f, 0x4b, 0x2b, - 0xce, 0x7d, 0x66, 0xae, 0xa5, 0x33, 0x17, 0xcf, 0x46, 0x57, 0x34, 0x89, 0x84, 0xfb, 0xbf, 0x4a, - 0xa4, 0x52, 0x0f, 0x5b, 0x23, 0x34, 0xa4, 0xaf, 0x5a, 0x86, 0xf4, 0xb3, 0xb9, 0x8f, 0x82, 0x0c, - 0x34, 0x9b, 0x6f, 0xa5, 0xcc, 0xe6, 0xcf, 0xe5, 0x93, 0x3a, 0xde, 0x48, 0xfe, 0xb0, 0x42, 0xcc, - 0x67, 0x4d, 0x9c, 0xdf, 0x3e, 0x49, 0x88, 0x5f, 0xa5, 0xd8, 0x4b, 0x27, 0xa2, 0x0d, 0x16, 0x10, - 0x23, 0xef, 0xff, 0xfc, 0xb1, 0x8d, 0xf4, 0xbb, 0xe3, 0x07, 0x7b, 0xfb, 0x89, 0xdf, 0x4a, 0x0f, - 0xec, 0xf4, 0x22, 0xfd, 0xfe, 0x6b, 0x89, 0xcc, 0xa7, 0x5a, 0x77, 0x0e, 0xb2, 0xae, 0x10, 0x9c, - 0xd4, 0x32, 0x3e, 0x93, 0x7b, 0xe9, 0x60, 0x99, 0x10, 0xe5, 0xcd, 0x95, 0xf6, 0x2b, 0xdb, 0xcb, - 0x95, 0xbb, 0x37, 0x06, 0x03, 0x03, 0x73, 0x00, 0x24, 0x61, 0x37, 0x6c, 0x87, 0x7b, 0x47, 0xd7, - 0x7d, 0x79, 0x07, 0x5d, 0xb9, 0xea, 0xb7, 0x35, 0x08, 0x4c, 0x3c, 0xcc, 0x4f, 0x94, 0x7e, 0x15, - 0xe7, 0xff, 0x33, 0xea, 0x1f, 0x1f, 0x46, 0xfd, 0x9d, 0x12, 0x59, 0xc0, 0xd6, 0x59, 0x3c, 0x83, - 0x8c, 0xc7, 0x53, 0x69, 0x9d, 0x4b, 0xc7, 0xa4, 0x75, 0xc6, 0x0b, 0x0d, 0x49, 0x2b, 0xec, 0xc9, - 0xe4, 0x25, 0x86, 0x14, 0xc3, 0x52, 0x10, 0x50, 0x81, 0x47, 0xfb, 0x24, 0x2e, 0x2b, 0x98, 0x78, - 0xb4, 0x14, 0x04, 0x54, 0x66, 0x7d, 0x1e, 0xcb, 0xce, 0xfa, 0xcc, 0x73, 0xbd, 0x88, 0x73, 0x74, - 0xb1, 0x33, 0x1b, 0xb9, 0x5e, 0xe4, 0x01, 0xbb, 0xc6, 0x71, 0xff, 0x69, 0x85, 0xcc, 0x60, 0x38, - 0x99, 0x8a, 0xb5, 0x7d, 0xd5, 0x8a, 0xb5, 0x7d, 0x2a, 0x15, 0x6b, 0xbb, 0x60, 0xe2, 0x3e, 0x98, - 0x50, 0x5b, 0x91, 0x15, 0x88, 0xe5, 0x25, 0x3f, 0x69, 0x98, 0xad, 0x95, 0x15, 0x48, 0x51, 0x02, - 0x9b, 0xf0, 0x9f, 0xa8, 0xf0, 0xda, 0x3f, 0x2a, 0x91, 0x39, 0xfa, 0x2d, 0x90, 0x45, 0xff, 0x24, - 0xf1, 0xa3, 0x99, 0x4b, 0x68, 0xe2, 0x98, 0x5c, 0x42, 0xbf, 0x52, 0x22, 0x18, 0x05, 0x79, 0x1a, - 0x1e, 0xa9, 0x0d, 0xdb, 0x23, 0xf5, 0x74, 0xae, 0xf0, 0x1d, 0xe0, 0x84, 0xfa, 0xf5, 0x0a, 0x99, - 0xc5, 0x2e, 0x87, 0x7b, 0xf2, 0x83, 0x59, 0x93, 0x53, 0x2a, 0x30, 0x39, 0x98, 0x8f, 0x20, 0x6c, - 0xb7, 0xc3, 0x7b, 0xe9, 0x8f, 0xb7, 0xc1, 0x4a, 0x41, 0x40, 0xd1, 0xd5, 0xd7, 0xc5, 0x9c, 0x29, - 0x61, 0x2f, 0x4e, 0xdf, 0x7d, 0xaa, 0x8b, 0x72, 0x50, 0x18, 0x74, 0xc5, 0xcf, 0xc4, 0x01, 0xb5, - 0x01, 0xe4, 0x41, 0xfb, 0x18, 0x3b, 0x68, 0xe7, 0x29, 0xdb, 0x8c, 0x72, 0xb0, 0xb0, 0xa8, 0xaa, - 0x59, 0x65, 0xbf, 0xd9, 0x1a, 0x3a, 0x41, 0x2a, 0x6a, 0x9e, 0x4f, 0x48, 0x52, 0x00, 0x4d, 0x0c, - 0x5d, 0xe9, 0x89, 0x8c, 0x09, 0x88, 0xc5, 0xd1, 0x9b, 0x52, 0x4e, 0x55, 0xb4, 0x00, 0xa6, 0x6e, - 0x52, 0xff, 0x3b, 0x2f, 0x62, 0xa6, 0xd2, 0xa0, 0xbd, 0x85, 0x4f, 0x1c, 0x88, 0xa8, 0x0a, 0x91, - 0x7a, 0x54, 0x14, 0x82, 0x86, 0xe3, 0x9e, 0xcf, 0x6e, 0x5e, 0xf2, 0x44, 0xf7, 0x53, 0x0c, 0x9b, - 0xed, 0xf9, 0x5b, 0xaa, 0x14, 0x0c, 0x0c, 0xf7, 0x15, 0xb6, 0x77, 0x0f, 0x19, 0x8b, 0xfd, 0x51, - 0x99, 0x38, 0x75, 0x16, 0x7b, 0x60, 0xbd, 0x05, 0xb0, 0x4f, 0xe6, 0x62, 0x6a, 0xac, 0x76, 0x7a, - 0xf7, 0x05, 0xa9, 0x62, 0xd1, 0xef, 0x8d, 0x75, 0xb3, 0x0e, 0xbf, 0x6d, 0x68, 0x97, 0x41, 0x8a, - 0x2e, 0x4e, 0x49, 0xd4, 0xeb, 0xac, 0xc4, 0xf8, 0x42, 0x98, 0xc8, 0xe6, 0xcf, 0xa6, 0x04, 0x64, - 0x21, 0x68, 0x38, 0xf2, 0x00, 0xfb, 0x71, 0x93, 0x4a, 0xa3, 0x30, 0x4c, 0x24, 0xd7, 0xb0, 0xd4, - 0xce, 0x46, 0x39, 0x58, 0x58, 0x98, 0x15, 0x39, 0xee, 0x75, 0xbb, 0x6d, 0x76, 0x42, 0xe2, 0xb5, - 0xaf, 0x46, 0x61, 0xaf, 0xcb, 0xc3, 0x4f, 0x45, 0x56, 0xe4, 0x46, 0x1f, 0x14, 0x32, 0x6a, 0xe0, - 0xa2, 0xdf, 0x8d, 0xd9, 0xff, 0xe2, 0x36, 0x25, 0xf7, 0xd3, 0x34, 0x58, 0x11, 0x48, 0x98, 0xdb, - 0x63, 0x5b, 0x15, 0xcb, 0xb2, 0x8e, 0x61, 0x51, 0x8e, 0x4f, 0x66, 0xbb, 0x6c, 0x3b, 0x92, 0xc7, - 0xb4, 0x85, 0xa6, 0x32, 0x15, 0xfd, 0xc0, 0xb3, 0x29, 0x9b, 0x64, 0xc0, 0xa6, 0xea, 0xfe, 0x5b, - 0xc2, 0x64, 0x8d, 0x38, 0x9c, 0x9a, 0x14, 0xb1, 0x8d, 0x42, 0x17, 0x7b, 0xa6, 0xc8, 0xb3, 0x22, - 0x5a, 0x8e, 0x8b, 0x48, 0x49, 0x90, 0x54, 0x9c, 0xaf, 0xf1, 0x73, 0x66, 0xb6, 0xbe, 0x8b, 0x3f, - 0xdc, 0xc3, 0xf1, 0xad, 0xa8, 0x5d, 0x41, 0x02, 0x0c, 0x72, 0xce, 0x16, 0x99, 0x15, 0xa9, 0xb8, - 0x85, 0xad, 0x5e, 0xb1, 0xec, 0xd5, 0x59, 0x30, 0x81, 0x1f, 0xa7, 0x0b, 0xc0, 0xae, 0xec, 0xec, - 0x91, 0xc7, 0x8d, 0xf7, 0x39, 0x32, 0x22, 0x74, 0xb8, 0xe0, 0x78, 0x1a, 0xbd, 0x00, 0xdb, 0xc7, - 0x21, 0xc2, 0xf1, 0x74, 0xe8, 0x24, 0x9f, 0xf7, 0x9a, 0x49, 0x70, 0xe8, 0xd7, 0x7c, 0xaf, 0x45, - 0xb5, 0x32, 0xdf, 0xbe, 0x6a, 0xfb, 0x18, 0x6d, 0xe0, 0xfc, 0x4a, 0x16, 0x02, 0x64, 0xd7, 0xa3, - 0xf6, 0x7a, 0xb5, 0xd5, 0x89, 0xc5, 0x1c, 0x4c, 0x58, 0x4f, 0x91, 0x54, 0x6b, 0x37, 0x1b, 0x6a, - 0xfc, 0xfa, 0x07, 0xe8, 0x0a, 0xce, 0xfb, 0xfc, 0x69, 0x4f, 0x65, 0x90, 0xf0, 0x27, 0x70, 0x5e, - 0x2f, 0x64, 0x02, 0x5b, 0xb7, 0x02, 0xb8, 0x1b, 0x4b, 0x45, 0xc2, 0x59, 0x17, 0x06, 0xac, 0x26, - 0x9c, 0x1f, 0xa7, 0x0b, 0xcb, 0x8f, 0xf0, 0xc9, 0xca, 0x95, 0x26, 0x4b, 0x56, 0xc8, 0x4e, 0x79, - 0xa6, 0xac, 0x70, 0x70, 0xa7, 0xd1, 0x87, 0x01, 0x19, 0xb5, 0x9c, 0x6b, 0x28, 0x71, 0xcc, 0x52, - 0x11, 0xb8, 0x28, 0x55, 0xbb, 0xc5, 0x9a, 0x8f, 0xd9, 0xc3, 0xf1, 0x21, 0x04, 0x9b, 0x22, 0xa4, - 0xea, 0xe1, 0xb6, 0xa2, 0x92, 0x30, 0x13, 0x3b, 0xdc, 0xae, 0x3f, 0x11, 0x33, 0x5a, 0x4a, 0xe8, - 0xf5, 0xbf, 0xe9, 0x27, 0xf8, 0x2e, 0x11, 0xf3, 0xd9, 0x4e, 0x19, 0x49, 0x9d, 0x34, 0x08, 0x4c, - 0x3c, 0xd4, 0x81, 0xd8, 0x61, 0xc1, 0x66, 0x8d, 0x79, 0x62, 0xa7, 0xf4, 0xda, 0xb9, 0xc6, 0x8b, - 0x41, 0xc2, 0x25, 0xea, 0x66, 0x7d, 0x8d, 0x79, 0x55, 0x53, 0xa8, 0xb4, 0x18, 0x24, 0x1c, 0x43, - 0xa5, 0xd2, 0x0f, 0xbe, 0xcc, 0x15, 0xf1, 0x70, 0xf7, 0x4b, 0xf0, 0x82, 0x6f, 0xbe, 0xdc, 0x27, - 0x0b, 0xea, 0xd1, 0x19, 0x9e, 0x35, 0x2f, 0x5e, 0x9c, 0x2f, 0xf2, 0xb0, 0x68, 0x66, 0xf2, 0x3d, - 0x15, 0xa9, 0xba, 0x99, 0xa2, 0x09, 0x7d, 0xad, 0x58, 0x57, 0xc6, 0x17, 0x72, 0x13, 0x6b, 0xe3, - 0x9b, 0x2f, 0xbd, 0x9d, 0x56, 0x78, 0x40, 0x45, 0x06, 0x7b, 0x76, 0xc6, 0x7c, 0x3a, 0x54, 0x02, - 0x40, 0xe3, 0x2c, 0x7d, 0x99, 0x9c, 0xe9, 0xe3, 0xe9, 0xa1, 0x22, 0xb3, 0x7e, 0x61, 0x8c, 0x54, - 0x95, 0x57, 0x87, 0xb6, 0x6f, 0xb9, 0xd2, 0x1e, 0x4b, 0xbb, 0xd2, 0xa6, 0x70, 0xe7, 0x35, 0xbd, - 0x67, 0x5f, 0xcf, 0x78, 0x3b, 0xf0, 0x42, 0xee, 0x47, 0x2c, 0x7e, 0xd3, 0x61, 0x88, 0x97, 0x15, - 0xb5, 0x5a, 0x3f, 0x76, 0xac, 0x5a, 0x5f, 0xf0, 0x35, 0x19, 0x54, 0xe0, 0xe9, 0xce, 0x43, 0xd1, - 0x52, 0x2f, 0x25, 0xd4, 0xb1, 0x10, 0x38, 0x8c, 0xe9, 0x5d, 0x28, 0x94, 0x99, 0xde, 0x35, 0x79, - 0x52, 0xbd, 0x4b, 0x52, 0x00, 0x4d, 0x0c, 0xf3, 0x86, 0x37, 0xed, 0x97, 0x2f, 0xd4, 0x05, 0x86, - 0x8b, 0x43, 0xbc, 0x3c, 0xd1, 0x33, 0xf2, 0x86, 0xaf, 0xa5, 0xe9, 0x41, 0x7f, 0x13, 0x78, 0xdb, - 0x7c, 0x5e, 0x31, 0x04, 0xdd, 0x81, 0x30, 0x6f, 0xcf, 0xe8, 0x1c, 0x99, 0xb7, 0x2c, 0x4b, 0xf5, - 0x01, 0xf8, 0x1f, 0x7f, 0xab, 0xc4, 0xfc, 0x8f, 0xdb, 0xfe, 0x41, 0xb7, 0x8d, 0xcf, 0x69, 0x8c, - 0xae, 0xeb, 0x5f, 0x23, 0x53, 0x89, 0x68, 0xa5, 0x58, 0xee, 0x62, 0xa3, 0x5b, 0xcc, 0x1f, 0xab, - 0x04, 0x81, 0x2c, 0x05, 0x45, 0xd0, 0xfd, 0x17, 0xfc, 0x2b, 0x48, 0xc8, 0x69, 0x58, 0x56, 0x37, - 0x6d, 0xcb, 0xea, 0x85, 0xc2, 0x83, 0x19, 0x60, 0x61, 0x7d, 0xc7, 0x1e, 0x02, 0x53, 0xd8, 0x1e, - 0x7e, 0x8f, 0xb8, 0x7b, 0x83, 0xd8, 0xaf, 0x79, 0x50, 0x75, 0x85, 0x45, 0x3c, 0x72, 0x89, 0x78, - 0x61, 0xc8, 0x68, 0x47, 0xf7, 0xd7, 0xca, 0xe4, 0x5c, 0xd6, 0xeb, 0xd4, 0x4e, 0x8b, 0xcc, 0x74, - 0x0d, 0xf5, 0xb9, 0xd8, 0xc5, 0x76, 0x53, 0xe1, 0xd6, 0xaa, 0x8b, 0x59, 0x0a, 0x16, 0x55, 0xcc, - 0x18, 0x8e, 0x6f, 0x6d, 0x2b, 0xf7, 0x4a, 0x79, 0x78, 0x11, 0xa5, 0x9a, 0x59, 0x37, 0x08, 0x81, - 0x45, 0x76, 0x04, 0xe9, 0xb5, 0xdd, 0xbf, 0x5b, 0x22, 0x8f, 0x0e, 0xb8, 0xfd, 0x8e, 0xcd, 0xdd, - 0x63, 0x5e, 0x48, 0xf1, 0x5a, 0x8c, 0x6a, 0x8e, 0xfb, 0x26, 0x41, 0x40, 0x9d, 0x1d, 0xbc, 0x54, - 0xa9, 0xde, 0xc3, 0x2c, 0x17, 0x39, 0x4a, 0xee, 0xbb, 0x69, 0x6b, 0x5c, 0xc2, 0x54, 0x2f, 0x60, - 0x1a, 0x54, 0xdd, 0x6f, 0x57, 0xc8, 0x38, 0x7f, 0xc5, 0xaf, 0x4e, 0x15, 0x20, 0x9e, 0x6c, 0x6f, - 0xb8, 0x5c, 0x7f, 0x5a, 0x4f, 0xe2, 0x05, 0x20, 0xc9, 0x38, 0x37, 0xc8, 0x59, 0xf4, 0xaf, 0x06, - 0x5e, 0xbb, 0xe6, 0xb7, 0xbd, 0x23, 0xa9, 0x78, 0xf3, 0x94, 0xc8, 0x32, 0xeb, 0xe7, 0xd9, 0xcd, - 0x7e, 0x14, 0xc8, 0xaa, 0x87, 0x77, 0x77, 0x52, 0xd9, 0x72, 0x78, 0xaa, 0x46, 0x75, 0x77, 0xe7, - 0xf8, 0x8c, 0x39, 0x78, 0x7d, 0xa9, 0xdb, 0x67, 0x62, 0x18, 0xcf, 0xbf, 0xd9, 0x66, 0x85, 0x8d, - 0x8b, 0x17, 0x7f, 0xe2, 0x1e, 0x3b, 0x23, 0xdd, 0xde, 0xa7, 0x96, 0xcc, 0x7e, 0xd8, 0x6e, 0x89, - 0x67, 0x8b, 0x94, 0x3a, 0xd5, 0x48, 0xc1, 0xa1, 0xaf, 0x06, 0x52, 0xd9, 0xf5, 0x82, 0x36, 0x65, - 0x6d, 0x4d, 0x65, 0xc2, 0xa6, 0xb2, 0x91, 0x82, 0x43, 0x5f, 0x0d, 0xcc, 0xf4, 0x3c, 0x9f, 0x0a, - 0x11, 0x41, 0x45, 0x2d, 0xf5, 0x3a, 0x38, 0xb3, 0xb7, 0x31, 0x78, 0x22, 0xe3, 0x85, 0xf0, 0xe7, - 0xec, 0xf7, 0x46, 0x75, 0xec, 0xd6, 0x6a, 0xcd, 0x7a, 0x49, 0xa9, 0x68, 0xa6, 0xea, 0xcf, 0x62, - 0x1a, 0x59, 0xf5, 0x30, 0x9e, 0xe2, 0x08, 0x4a, 0xae, 0x4e, 0x8b, 0x81, 0x01, 0xa9, 0x61, 0xce, - 0x1f, 0x1d, 0x4f, 0x79, 0xee, 0xc0, 0x6b, 0x85, 0xb1, 0xf1, 0xf2, 0x38, 0x5d, 0x64, 0x54, 0xe7, - 0x43, 0x97, 0x79, 0xda, 0x6f, 0x79, 0x9d, 0x17, 0x83, 0x84, 0xdb, 0xd9, 0xa8, 0x27, 0x47, 0x9c, - 0x8d, 0x7a, 0x2a, 0x37, 0xcc, 0xed, 0x97, 0xe9, 0x96, 0xc1, 0x12, 0x74, 0x89, 0x3b, 0x83, 0xe8, - 0x01, 0x1f, 0xdd, 0x96, 0x81, 0x2f, 0x6d, 0x61, 0x63, 0xe9, 0x04, 0xb4, 0xac, 0x07, 0xc0, 0x61, - 0xf8, 0x18, 0x2c, 0x6b, 0x1a, 0x3f, 0xdf, 0x0c, 0x4f, 0x25, 0xab, 0x1f, 0x53, 0x66, 0x41, 0xd4, - 0xe0, 0x77, 0xa9, 0x61, 0xca, 0x3a, 0xab, 0xdd, 0x14, 0x0f, 0x4b, 0x10, 0x75, 0x66, 0xe7, 0x1e, - 0x54, 0x10, 0x75, 0x36, 0xf1, 0xfc, 0x20, 0xea, 0xcc, 0x7a, 0x0f, 0x5f, 0x10, 0x75, 0x66, 0x37, - 0x07, 0x28, 0x3b, 0x1f, 0x95, 0x07, 0x0c, 0x8b, 0xa9, 0x3d, 0xcf, 0xe3, 0x2a, 0x60, 0xc0, 0x58, - 0xec, 0x58, 0x33, 0x7c, 0x05, 0xf0, 0x32, 0x50, 0x50, 0x27, 0x36, 0x82, 0x90, 0x79, 0x27, 0xd7, - 0x4f, 0xf8, 0x81, 0x97, 0x6d, 0x3f, 0x87, 0x79, 0x15, 0x2f, 0x15, 0x99, 0x8c, 0xe1, 0x2a, 0x4a, - 0x93, 0xad, 0x9c, 0x44, 0x93, 0x9d, 0xc9, 0xd6, 0x62, 0x97, 0xe8, 0x86, 0x71, 0x72, 0xcb, 0xf4, - 0xbf, 0x95, 0xc8, 0xa7, 0x8f, 0xe1, 0x30, 0x2e, 0x5a, 0xac, 0x49, 0x35, 0x44, 0x4b, 0xdf, 0xc4, - 0xd6, 0xc9, 0xb9, 0x5d, 0x6a, 0x96, 0x1f, 0xb1, 0xe3, 0x67, 0xbf, 0x25, 0x31, 0xc4, 0x5e, 0xaa, - 0x5e, 0xe7, 0xdb, 0xc8, 0xc0, 0x81, 0xcc, 0x9a, 0xe8, 0x15, 0x0a, 0x77, 0x58, 0x02, 0xb4, 0x96, - 0xbe, 0x29, 0xc8, 0xe6, 0xaf, 0xa2, 0xbd, 0x42, 0xb7, 0xfa, 0x30, 0x20, 0xa3, 0x96, 0xfb, 0xfb, - 0x25, 0x94, 0x23, 0x19, 0xaf, 0xd1, 0x58, 0x4f, 0xae, 0x1a, 0xc1, 0xc5, 0xfd, 0x4f, 0xae, 0x32, - 0x7f, 0x8f, 0x8d, 0xcb, 0xa7, 0x28, 0xd6, 0x81, 0x55, 0x56, 0x3a, 0x77, 0x11, 0x54, 0xaf, 0x30, - 0xf0, 0xe1, 0xa5, 0x56, 0x70, 0x18, 0xc4, 0x61, 0x54, 0xe0, 0x85, 0xc3, 0xbe, 0x60, 0x1d, 0xbd, - 0xcb, 0xd4, 0x38, 0x11, 0x90, 0xd4, 0xdc, 0xbf, 0x56, 0x26, 0xb3, 0xb2, 0xbd, 0xb7, 0x7b, 0x21, - 0x5b, 0x88, 0xa3, 0x92, 0x8e, 0x6f, 0x5b, 0xd2, 0xf1, 0x52, 0xb1, 0x9b, 0x05, 0xac, 0x53, 0x03, - 0xa5, 0xe2, 0x57, 0x53, 0x52, 0xf1, 0xf2, 0x30, 0x44, 0x73, 0xad, 0xd5, 0x33, 0x16, 0xfe, 0x43, - 0x94, 0x78, 0x32, 0x6b, 0x38, 0x03, 0xa4, 0xdf, 0xb7, 0xcb, 0xa9, 0x61, 0x30, 0xa9, 0xf7, 0x4d, - 0x32, 0xb6, 0xef, 0x45, 0x2d, 0xe1, 0x9a, 0x7f, 0x73, 0xc8, 0x4f, 0x41, 0xd5, 0xe3, 0xa8, 0xc5, - 0x65, 0xd7, 0x4b, 0x2a, 0x07, 0x3e, 0x2d, 0xca, 0x0d, 0x33, 0x64, 0x8d, 0x3a, 0x6f, 0x60, 0x8e, - 0xfc, 0xb0, 0xab, 0xa2, 0x48, 0x9e, 0xe2, 0xf9, 0xf1, 0xb1, 0x84, 0x52, 0x70, 0xec, 0xe6, 0xb0, - 0x18, 0x04, 0xfe, 0x92, 0x4f, 0xaa, 0xaa, 0xe9, 0x11, 0x06, 0xb4, 0xfd, 0xa8, 0x42, 0xce, 0x66, - 0xb0, 0x8a, 0xf3, 0x53, 0xd6, 0xac, 0x7d, 0x61, 0x68, 0x5e, 0xfb, 0x84, 0xf3, 0xf6, 0x53, 0x4c, - 0xc7, 0x6c, 0x09, 0xde, 0x38, 0x41, 0xf3, 0x54, 0x11, 0x4d, 0x37, 0x8f, 0x45, 0xf9, 0xcd, 0x63, - 0xb3, 0xa7, 0x34, 0xf9, 0xd8, 0x8c, 0xea, 0xe7, 0x08, 0xbf, 0xf1, 0xcf, 0x8e, 0x91, 0x73, 0x59, - 0xb7, 0x97, 0x9c, 0x9f, 0x2b, 0xa5, 0x52, 0xd7, 0x7e, 0x69, 0xf8, 0x2b, 0x50, 0x3c, 0x9f, 0xad, - 0xb8, 0x9e, 0xbc, 0x6c, 0x27, 0xb3, 0xcd, 0x9d, 0x6d, 0xd1, 0x3a, 0x0b, 0x0d, 0x8e, 0x78, 0x16, - 0x62, 0x29, 0x0f, 0xde, 0x3a, 0x41, 0x57, 0x44, 0x22, 0xe3, 0x38, 0x15, 0x1a, 0x2c, 0x8b, 0xf3, - 0x43, 0x83, 0x65, 0x1f, 0x96, 0xf6, 0x30, 0x85, 0xad, 0x1a, 0xd7, 0x08, 0x59, 0x20, 0xc0, 0x3d, - 0xc9, 0xe8, 0xf5, 0x08, 0xd9, 0xe0, 0x6f, 0x94, 0x48, 0xea, 0x78, 0x18, 0x4f, 0xac, 0x99, 0x29, - 0x97, 0x3a, 0xb1, 0x36, 0xac, 0x38, 0x8a, 0x41, 0xd5, 0x1d, 0x3f, 0x9d, 0x53, 0x15, 0x68, 0x19, - 0x30, 0x88, 0x7a, 0x31, 0xab, 0x32, 0xe8, 0xc5, 0x2c, 0xb4, 0x70, 0xda, 0xfe, 0xa1, 0x2f, 0xcd, - 0x4a, 0x25, 0xbc, 0xb7, 0xb0, 0x10, 0x38, 0xcc, 0xfd, 0x5e, 0x85, 0x4c, 0x70, 0xdb, 0x6d, 0x84, - 0xdb, 0x72, 0x5d, 0x98, 0x51, 0x85, 0xee, 0x11, 0xf1, 0xde, 0x2c, 0xa3, 0x9d, 0xc5, 0x19, 0x4a, - 0x8d, 0x4d, 0x9b, 0x5e, 0xce, 0xb2, 0x35, 0xfa, 0xa5, 0x54, 0x64, 0x14, 0xe1, 0x34, 0x8c, 0xb9, - 0xd8, 0x27, 0x24, 0x66, 0x8f, 0xae, 0x20, 0x0d, 0x91, 0x94, 0xe9, 0xd5, 0x42, 0xfd, 0x68, 0xa8, - 0x6a, 0xbc, 0x37, 0x3a, 0x1b, 0x8c, 0x02, 0x80, 0x41, 0x7b, 0xe9, 0x75, 0x52, 0x55, 0xc8, 0x79, - 0x1a, 0xef, 0x8c, 0xc9, 0x92, 0x7f, 0x8a, 0xcc, 0xa7, 0xda, 0x1a, 0x4a, 0x61, 0xfe, 0x2e, 0x55, - 0x26, 0xfa, 0x1e, 0xfb, 0xc3, 0xc4, 0x5e, 0xe7, 0xda, 0x19, 0x46, 0xbb, 0xf8, 0xc0, 0x27, 0x31, - 0xf7, 0xf5, 0x5b, 0xd6, 0x19, 0x50, 0xc8, 0x6c, 0x4d, 0xa6, 0x99, 0x2b, 0x67, 0xa7, 0x99, 0x63, - 0xef, 0x50, 0xf0, 0xbe, 0x9f, 0x86, 0x06, 0xb4, 0x69, 0x6b, 0x40, 0xcf, 0x14, 0x61, 0x83, 0x01, - 0xaa, 0xcf, 0x5f, 0x2d, 0x11, 0x87, 0x23, 0xa4, 0x1f, 0x5f, 0xe2, 0x4e, 0x10, 0x43, 0x67, 0xd7, - 0x7c, 0xa3, 0x20, 0x60, 0x60, 0x0d, 0x99, 0x76, 0x57, 0x3d, 0x5a, 0x32, 0xa0, 0x63, 0xbf, 0x55, - 0x21, 0xe9, 0x73, 0x51, 0xe7, 0x3d, 0x32, 0x83, 0x77, 0x30, 0x76, 0x82, 0x76, 0x90, 0x04, 0x7e, - 0x5c, 0xcc, 0xe7, 0xbc, 0x66, 0xd4, 0x10, 0x3e, 0x31, 0xa3, 0x04, 0x2c, 0x8a, 0x18, 0xcc, 0xd3, - 0x8d, 0xa8, 0xda, 0xdf, 0xf6, 0xf7, 0x98, 0x12, 0xa1, 0x2e, 0xea, 0xd7, 0x55, 0x29, 0x18, 0x18, - 0x19, 0x01, 0x38, 0x95, 0xd3, 0x08, 0xc0, 0x19, 0x1b, 0x32, 0x00, 0x67, 0xbc, 0x50, 0x00, 0x0e, - 0x90, 0x47, 0xa4, 0x2b, 0x0b, 0x7f, 0xe3, 0x5d, 0x20, 0x9e, 0x24, 0x4a, 0x84, 0x4d, 0x2d, 0xe1, - 0xdd, 0x14, 0xc8, 0xc4, 0x80, 0x01, 0x35, 0xdd, 0x1e, 0x39, 0xdb, 0xf0, 0xa3, 0x80, 0xe5, 0xf0, - 0x68, 0xe9, 0xe5, 0xf4, 0x75, 0xbc, 0x45, 0x6d, 0xaf, 0xe4, 0x21, 0xaf, 0x98, 0x18, 0x17, 0xa8, - 0xe5, 0xca, 0xd5, 0x24, 0xdd, 0x3f, 0x57, 0x26, 0x93, 0x22, 0xfe, 0x60, 0x84, 0xbb, 0xc2, 0x75, - 0xcb, 0x58, 0x7b, 0x21, 0x6f, 0x19, 0xb2, 0xee, 0x0c, 0x34, 0xd3, 0x1a, 0x29, 0x33, 0xed, 0xc5, - 0x62, 0xe4, 0x8e, 0x37, 0xd0, 0x7e, 0xb3, 0x4c, 0xb7, 0x6e, 0x3b, 0xee, 0x62, 0x74, 0xd3, 0xf1, - 0x15, 0x32, 0x19, 0x8b, 0xe0, 0x84, 0x42, 0x0f, 0x44, 0xa7, 0x3f, 0xa9, 0x7e, 0xfa, 0x58, 0x84, - 0x23, 0x48, 0x72, 0x99, 0xf1, 0x0f, 0x95, 0xd3, 0x88, 0x7f, 0x70, 0xbf, 0xc7, 0xe4, 0xa3, 0x39, - 0x81, 0xa7, 0x21, 0xe0, 0xdf, 0xb6, 0x45, 0xe9, 0x4b, 0x85, 0x58, 0x41, 0xf4, 0x6f, 0x80, 0x3c, - 0xfd, 0xb0, 0x44, 0xa6, 0x05, 0xe2, 0x69, 0x8c, 0xe0, 0xc7, 0xed, 0x11, 0x3c, 0x5b, 0x68, 0x04, - 0x03, 0xba, 0xfe, 0xb7, 0xca, 0xaa, 0xeb, 0x05, 0xdf, 0x60, 0x37, 0x5f, 0x58, 0x2f, 0x0f, 0xf3, - 0xc2, 0xba, 0x7a, 0xbd, 0xbd, 0x32, 0xf0, 0xf5, 0xf6, 0x1d, 0xf9, 0x0e, 0x28, 0x96, 0x89, 0x78, - 0xef, 0x61, 0xdf, 0xcd, 0xd3, 0x01, 0xa8, 0x8a, 0x12, 0x18, 0x54, 0x65, 0x6c, 0x14, 0x6b, 0x61, - 0xdc, 0xf6, 0x0d, 0xde, 0x14, 0xe5, 0xa0, 0x30, 0xdc, 0xd7, 0x99, 0x8c, 0x65, 0xd3, 0x33, 0x5c, - 0x54, 0xe9, 0x0f, 0xc6, 0xd5, 0xc4, 0x32, 0x8f, 0xc7, 0x4d, 0xf9, 0xe6, 0x7a, 0xa9, 0xc8, 0x11, - 0xba, 0xf1, 0x49, 0xb2, 0x9f, 0x5c, 0x77, 0xfc, 0x3e, 0x6f, 0xf0, 0xeb, 0x85, 0x65, 0xe4, 0x10, - 0xfe, 0x5f, 0x96, 0xbc, 0x80, 0x5d, 0xd8, 0xde, 0xac, 0xa7, 0x33, 0xbd, 0xad, 0x49, 0x00, 0x68, - 0x1c, 0x5a, 0x81, 0xeb, 0xde, 0xf6, 0xf3, 0x83, 0x52, 0xf7, 0x96, 0x53, 0x62, 0x28, 0xdf, 0x97, - 0xc9, 0xb4, 0xca, 0x75, 0x5b, 0xe7, 0x29, 0x4b, 0xab, 0xab, 0xf3, 0x18, 0x79, 0xb6, 0xae, 0x8b, - 0xc1, 0xc4, 0xa1, 0x3a, 0xda, 0xd9, 0x96, 0x0a, 0x85, 0xab, 0xf7, 0x76, 0xda, 0x41, 0x13, 0xab, - 0xf2, 0x30, 0xf4, 0x47, 0xf1, 0xdc, 0xb3, 0xd6, 0x0f, 0x86, 0xac, 0x3a, 0xce, 0x36, 0x86, 0x9b, - 0xb1, 0x9c, 0xbe, 0xf2, 0xc2, 0x8a, 0xc8, 0xa0, 0x74, 0x41, 0xa6, 0x5f, 0x6a, 0xd8, 0xe0, 0x8f, - 0x59, 0x11, 0x17, 0x0a, 0xa2, 0x08, 0xd2, 0x24, 0xf0, 0x34, 0xb5, 0x6d, 0xbe, 0xcd, 0x51, 0x17, - 0x11, 0x81, 0xea, 0x34, 0xd5, 0x7a, 0xb9, 0xa3, 0x0e, 0x29, 0x6c, 0x2a, 0xed, 0x17, 0xcd, 0x12, - 0x71, 0x47, 0x15, 0x0f, 0x9d, 0x62, 0x91, 0x4c, 0xf4, 0x33, 0x18, 0x0f, 0xb8, 0x35, 0x00, 0x07, - 0x06, 0xd6, 0xfe, 0x64, 0x6e, 0xf7, 0x6f, 0x62, 0x65, 0x63, 0x6b, 0x74, 0xbe, 0x41, 0x66, 0xcc, - 0x96, 0x84, 0xb0, 0x7b, 0xb9, 0xf8, 0xab, 0x25, 0x62, 0x8b, 0x55, 0x71, 0x04, 0x26, 0x0c, 0x2c, - 0xda, 0x6e, 0x93, 0xcc, 0xa7, 0xde, 0x45, 0x54, 0x0f, 0x6c, 0x96, 0x1e, 0xd4, 0x03, 0x9b, 0x98, - 0xd1, 0x63, 0x7c, 0xdb, 0x0b, 0xf2, 0x73, 0x5f, 0x17, 0x7a, 0x44, 0xff, 0x35, 0x32, 0xe1, 0xef, - 0xee, 0xe2, 0x03, 0xe6, 0x7c, 0xe5, 0x3c, 0xae, 0x9e, 0x4d, 0x66, 0xa5, 0xb8, 0x1e, 0x58, 0x63, - 0xfc, 0x27, 0x08, 0x64, 0xf7, 0xdf, 0x50, 0x83, 0x67, 0x9b, 0x5a, 0xf1, 0x22, 0xa9, 0x60, 0x4e, - 0x4f, 0x56, 0xfb, 0xb2, 0x70, 0x3f, 0x97, 0x91, 0x85, 0xdb, 0xd1, 0x04, 0x33, 0x72, 0x70, 0xab, - 0xd1, 0x54, 0x0a, 0x8d, 0x66, 0x6c, 0x98, 0xd1, 0x7c, 0xab, 0x44, 0x26, 0xc4, 0xf5, 0xfa, 0xfc, - 0xcd, 0xa5, 0x25, 0x33, 0xe7, 0x5a, 0x57, 0xbe, 0x2f, 0x14, 0x09, 0xdd, 0x16, 0x17, 0xbd, 0x15, - 0x2b, 0x59, 0xd7, 0xbb, 0x2d, 0xaa, 0x68, 0x0d, 0x4f, 0x73, 0xf0, 0x0d, 0xf9, 0xbe, 0x78, 0x4e, - 0xbf, 0x86, 0x4a, 0xc9, 0xc2, 0x12, 0xcb, 0x22, 0x61, 0x95, 0x99, 0xc3, 0x4c, 0x2c, 0x2b, 0x01, - 0xa0, 0x71, 0xf0, 0x58, 0x3e, 0xee, 0xed, 0x30, 0xf4, 0xd4, 0x29, 0x7f, 0x83, 0x17, 0x83, 0x84, - 0xbb, 0x1f, 0xce, 0x13, 0x6b, 0x68, 0x56, 0x16, 0x90, 0xd2, 0x03, 0xcf, 0x02, 0x42, 0xa9, 0xfb, - 0x07, 0xdd, 0xe4, 0xa8, 0x16, 0x44, 0xc5, 0x32, 0x32, 0xad, 0x0b, 0xec, 0x7e, 0xea, 0x12, 0x02, - 0x8a, 0xe2, 0x80, 0x9c, 0x2e, 0x95, 0x87, 0x22, 0xa7, 0xcb, 0xd8, 0xff, 0x93, 0x9c, 0x2e, 0x54, - 0xcf, 0xdf, 0xe3, 0x0f, 0x36, 0x8b, 0xab, 0x3a, 0x39, 0x27, 0x4a, 0x19, 0xaf, 0x3b, 0xf3, 0x3b, - 0x19, 0x02, 0x00, 0x92, 0x1c, 0x66, 0x0c, 0xe1, 0x2a, 0xbf, 0x48, 0x93, 0xf2, 0x72, 0x11, 0xcf, - 0x46, 0x7f, 0xc6, 0x10, 0x11, 0xca, 0x21, 0x68, 0xc9, 0x1c, 0x2e, 0x93, 0x9f, 0x3c, 0x87, 0x8b, - 0xca, 0xbc, 0x32, 0xf5, 0xa0, 0x32, 0xaf, 0x58, 0x19, 0x6c, 0xaa, 0xa3, 0xc8, 0x60, 0x43, 0x65, - 0xdb, 0xf9, 0x6e, 0x56, 0x02, 0x28, 0x91, 0x43, 0xe5, 0xcb, 0x27, 0x48, 0x88, 0x65, 0x35, 0xcd, - 0x6e, 0x50, 0x64, 0xa2, 0x41, 0x76, 0xc3, 0x32, 0x15, 0xce, 0xf4, 0x27, 0x4f, 0x85, 0x33, 0xea, - 0x64, 0x2b, 0x3a, 0x31, 0xce, 0xec, 0x48, 0x12, 0xe3, 0xcc, 0x3d, 0xc0, 0xc4, 0x38, 0x46, 0x4a, - 0x9b, 0xf9, 0x07, 0x9b, 0xd2, 0x66, 0x9f, 0x4c, 0xb7, 0xc2, 0x7b, 0x9d, 0x7b, 0x5e, 0xd4, 0x5a, - 0xa9, 0x6f, 0xb2, 0x7b, 0x00, 0xb9, 0xd7, 0xac, 0x6b, 0xba, 0x82, 0xd5, 0x02, 0xd3, 0x9a, 0x0d, - 0x20, 0x98, 0xa4, 0x45, 0x72, 0x9f, 0x33, 0x9f, 0x30, 0xb9, 0x8f, 0x95, 0x22, 0xc7, 0x19, 0x45, - 0x8a, 0x9c, 0xf7, 0xd8, 0x65, 0xcb, 0xdd, 0x60, 0xef, 0x86, 0xd7, 0x5d, 0x3c, 0x5b, 0xa4, 0x85, - 0x35, 0x89, 0xde, 0xdf, 0x82, 0x02, 0x81, 0x26, 0xda, 0x9f, 0x84, 0xe7, 0xdc, 0xa9, 0x24, 0xe1, - 0xf9, 0x33, 0xe4, 0x89, 0xe3, 0x69, 0xe8, 0xdc, 0x84, 0x75, 0x6d, 0x5c, 0xa6, 0x72, 0x13, 0xb2, - 0xfd, 0xd9, 0xc0, 0x32, 0xc2, 0x08, 0xcb, 0xc7, 0x85, 0x11, 0xba, 0xff, 0xa4, 0x44, 0x1e, 0x1d, - 0x70, 0x3f, 0xbf, 0x70, 0xd0, 0x6c, 0x97, 0xcc, 0x77, 0xed, 0xaa, 0x85, 0xc3, 0xdb, 0xad, 0x7c, - 0x00, 0x2a, 0xb7, 0x6d, 0x0a, 0x00, 0x69, 0xf2, 0xab, 0xcf, 0x7c, 0xff, 0x47, 0x4f, 0x7c, 0xea, - 0x23, 0xfa, 0xf7, 0xbb, 0xf4, 0xef, 0xa7, 0xff, 0xe0, 0x89, 0xd2, 0xf7, 0xe9, 0xdf, 0x47, 0xf4, - 0xef, 0x3f, 0xd3, 0xbf, 0x6f, 0xfd, 0xe1, 0x13, 0x9f, 0xfa, 0x89, 0xf2, 0xe1, 0xe5, 0xff, 0x1b, - 0x00, 0x00, 0xff, 0xff, 0xfe, 0xa5, 0x80, 0xea, 0x03, 0xac, 0x00, 0x00, + // 9750 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xec, 0x7d, 0x6d, 0x8c, 0x24, 0xc7, + 0x75, 0x98, 0x66, 0x66, 0xbf, 0xa6, 0xf6, 0xf3, 0xfa, 0x8e, 0xc7, 0xe5, 0x4a, 0xfc, 0x50, 0x8b, + 0xa4, 0xc8, 0x23, 0x6f, 0x8f, 0x77, 0x24, 0x4d, 0x52, 0x52, 0x24, 0xee, 0xee, 0xec, 0xde, 0xad, + 0x6f, 0xef, 0x6e, 0xf8, 0x66, 0xef, 0x4e, 0xb2, 0x18, 0x99, 0xbd, 0x33, 0xbd, 0xbb, 0xad, 0x9b, + 0x9d, 0x1e, 0x76, 0xf7, 0xec, 0xdd, 0x52, 0x31, 0xe0, 0x18, 0x8e, 0x83, 0xc0, 0x86, 0x23, 0x03, + 0x31, 0x12, 0x20, 0x09, 0xe2, 0x04, 0x88, 0x91, 0xc4, 0x88, 0x63, 0x39, 0x8a, 0x2d, 0x25, 0x86, + 0x11, 0x20, 0x8e, 0xa0, 0x7c, 0x38, 0x90, 0x81, 0x20, 0x36, 0x6c, 0x40, 0xb1, 0x6c, 0x04, 0xf9, + 0x91, 0x3f, 0x01, 0x92, 0x3f, 0x21, 0x8c, 0x24, 0xf5, 0xea, 0xbb, 0x7a, 0x7a, 0xb6, 0x7b, 0x96, + 0x37, 0x9b, 0xb3, 0x91, 0x1f, 0x0b, 0xec, 0xbc, 0xf7, 0xea, 0xd5, 0x47, 0x57, 0xbd, 0x7a, 0xef, + 0xd5, 0xab, 0x57, 0xe4, 0xe5, 0x7b, 0x6f, 0xc6, 0xcb, 0x41, 0x78, 0xe9, 0x5e, 0x6f, 0xc7, 0x8f, + 0x3a, 0x7e, 0xe2, 0xc7, 0x97, 0xba, 0xf7, 0xf6, 0x2e, 0x79, 0xdd, 0xe0, 0xd2, 0xe1, 0xe5, 0x4b, + 0x7b, 0x7e, 0xc7, 0x8f, 0xbc, 0xc4, 0x6f, 0x2d, 0x77, 0xa3, 0x30, 0x09, 0x9d, 0x4f, 0x70, 0xea, + 0x65, 0x4d, 0xbd, 0x4c, 0xa9, 0x97, 0x29, 0xf5, 0xf2, 0xe1, 0xe5, 0xa5, 0x8b, 0x7b, 0x41, 0xb2, + 0xdf, 0xdb, 0x59, 0x6e, 0x86, 0x07, 0x97, 0xf6, 0xc2, 0xbd, 0xf0, 0x12, 0x2b, 0xb4, 0xd3, 0xdb, + 0x65, 0xbf, 0xd8, 0x0f, 0xf6, 0x1f, 0x67, 0xb6, 0x74, 0x65, 0x70, 0xd5, 0x91, 0x1f, 0x87, 0xbd, + 0xa8, 0xe9, 0xa7, 0x1b, 0xb0, 0xf4, 0xfa, 0xe0, 0x32, 0xbd, 0xce, 0xa1, 0x1f, 0xc5, 0x41, 0xd8, + 0xf1, 0x5b, 0x7d, 0xc5, 0x2e, 0x66, 0x17, 0x8b, 0x7a, 0x9d, 0x24, 0x38, 0xe8, 0xaf, 0xe5, 0x72, + 0x36, 0x79, 0x2f, 0x09, 0xda, 0x97, 0x82, 0x4e, 0x12, 0x27, 0x51, 0xba, 0x88, 0xfb, 0xbb, 0x25, + 0xf2, 0xcc, 0xca, 0xdd, 0xc6, 0x7a, 0xdb, 0x8b, 0x93, 0xa0, 0xb9, 0xda, 0x0e, 0x9b, 0xf7, 0x1a, + 0x49, 0x18, 0xf9, 0x77, 0xc2, 0x76, 0xef, 0xc0, 0x6f, 0xb0, 0xde, 0x38, 0x2f, 0x93, 0xa9, 0x43, + 0xf6, 0x7b, 0xb3, 0xb6, 0x58, 0x7a, 0xa6, 0xf4, 0x42, 0x75, 0x75, 0xe1, 0xbb, 0xdf, 0x7f, 0xfa, + 0x63, 0x7f, 0xf4, 0xfd, 0xa7, 0xa7, 0xee, 0x08, 0x38, 0x28, 0x0a, 0xe7, 0x79, 0x32, 0xb1, 0x1b, + 0x6f, 0x1f, 0x75, 0xfd, 0xc5, 0x32, 0xa3, 0x9d, 0x13, 0xb4, 0x13, 0x1b, 0x0d, 0x84, 0x82, 0xc0, + 0x3a, 0x97, 0x48, 0xb5, 0xeb, 0x45, 0x49, 0x90, 0xd0, 0xbe, 0x2f, 0x56, 0x28, 0xe9, 0xf8, 0xea, + 0x19, 0x41, 0x5a, 0xad, 0x4b, 0x04, 0x68, 0x1a, 0x6c, 0x46, 0xe4, 0x7b, 0xad, 0x5b, 0x9d, 0xf6, + 0xd1, 0xe2, 0x18, 0xa5, 0x9f, 0xd2, 0xcd, 0x00, 0x01, 0x07, 0x45, 0xe1, 0x7e, 0xab, 0x4c, 0xa6, + 0x56, 0x76, 0x77, 0x83, 0x4e, 0x90, 0x1c, 0x39, 0xef, 0x91, 0x99, 0x4e, 0xd8, 0xf2, 0xe5, 0x6f, + 0xd6, 0x8b, 0xe9, 0x2b, 0x17, 0x96, 0x8f, 0x9b, 0x17, 0xcb, 0x37, 0x8d, 0x12, 0xab, 0x0b, 0xb4, + 0x9a, 0x19, 0x13, 0x02, 0x16, 0x47, 0xe7, 0x5d, 0x32, 0xdd, 0x0d, 0x5b, 0xaa, 0x82, 0x32, 0xab, + 0xe0, 0xc5, 0xe3, 0x2b, 0xa8, 0xeb, 0x02, 0xab, 0xf3, 0x94, 0xff, 0xb4, 0x01, 0x00, 0x93, 0x9d, + 0xd3, 0x26, 0xf3, 0xf8, 0x93, 0x7e, 0x76, 0x55, 0x43, 0x85, 0xd5, 0x70, 0x31, 0xbf, 0x06, 0xa3, + 0xd0, 0xea, 0x59, 0x5a, 0xcb, 0x7c, 0x0a, 0x08, 0x69, 0xd6, 0xee, 0x07, 0x64, 0x6e, 0x25, 0x49, + 0xbc, 0xe6, 0xbe, 0xdf, 0xe2, 0xdf, 0xd7, 0x79, 0x8d, 0x8c, 0x75, 0xbc, 0x03, 0x5f, 0x7c, 0xfd, + 0x67, 0xc4, 0xb0, 0x8f, 0xdd, 0xa4, 0xb0, 0x0f, 0xbf, 0xff, 0xf4, 0xc2, 0xed, 0x4e, 0xf0, 0x7e, + 0x4f, 0xcc, 0x19, 0x84, 0x01, 0xa3, 0x76, 0xae, 0x10, 0xd2, 0xf2, 0x0f, 0x83, 0xa6, 0x5f, 0xf7, + 0x92, 0x7d, 0x31, 0x1b, 0x1c, 0x51, 0x96, 0xd4, 0x14, 0x06, 0x0c, 0x2a, 0xf7, 0x27, 0x4a, 0xa4, + 0xba, 0x72, 0x18, 0x06, 0x2d, 0xda, 0xca, 0xd8, 0xe9, 0xd1, 0x7e, 0x47, 0xfe, 0xae, 0x1f, 0x29, + 0x10, 0x6d, 0x42, 0x85, 0xf6, 0xfb, 0x4a, 0x4e, 0xbf, 0xed, 0x42, 0xeb, 0x9d, 0x24, 0x3a, 0x5a, + 0x7d, 0x5c, 0x54, 0x3d, 0x9f, 0xc2, 0x42, 0xba, 0x0e, 0xf7, 0xe7, 0xca, 0xe4, 0xb1, 0x95, 0x0f, + 0x7a, 0x91, 0x5f, 0x0b, 0xe2, 0x7b, 0xe9, 0xa5, 0xd0, 0xa2, 0xb0, 0x9b, 0x7a, 0x30, 0xd4, 0x1c, + 0xac, 0x09, 0x38, 0x28, 0x0a, 0xe7, 0x22, 0x99, 0xc4, 0xff, 0x6f, 0xc3, 0xa6, 0xe8, 0xfd, 0x59, + 0x41, 0x3c, 0x5d, 0xf3, 0x12, 0xaf, 0xc6, 0x51, 0x20, 0x69, 0x9c, 0x1b, 0x64, 0xba, 0x49, 0x47, + 0x3d, 0xe8, 0xec, 0xdd, 0xa0, 0x53, 0x8b, 0x7d, 0xe1, 0xea, 0xea, 0x4b, 0x48, 0xbe, 0xa6, 0xc1, + 0x74, 0xbc, 0x17, 0x79, 0xdb, 0x04, 0x0b, 0x03, 0x07, 0x66, 0x79, 0xc7, 0x55, 0x0b, 0x71, 0x8c, + 0x71, 0x22, 0x19, 0x8b, 0xf0, 0x05, 0x63, 0x4d, 0x8d, 0xb3, 0x35, 0x35, 0x33, 0x60, 0x3d, 0xfd, + 0xa3, 0x92, 0x18, 0x93, 0x8d, 0xa0, 0x6d, 0x8b, 0x07, 0xfa, 0x99, 0x63, 0xbf, 0x19, 0xf9, 0x89, + 0x31, 0x2a, 0xea, 0x33, 0x37, 0x14, 0x06, 0x0c, 0x2a, 0x5c, 0xfc, 0xf1, 0xbe, 0x17, 0xb1, 0xd9, + 0x22, 0xc6, 0x46, 0x2d, 0xfe, 0x86, 0x44, 0x80, 0xa6, 0xb1, 0x16, 0x7f, 0x25, 0x77, 0xf1, 0xff, + 0xf3, 0x12, 0x99, 0x5c, 0x0d, 0x3a, 0x2d, 0x3a, 0x14, 0xce, 0x17, 0xc9, 0xd4, 0x81, 0x9f, 0x78, + 0x2d, 0x3a, 0x5c, 0x62, 0xdd, 0xbf, 0x70, 0xfc, 0xe4, 0xb9, 0xb5, 0xf3, 0x55, 0xbf, 0x99, 0xdc, + 0xa0, 0x65, 0x74, 0x37, 0x34, 0x0c, 0x14, 0x37, 0xe7, 0x36, 0x99, 0x48, 0xbc, 0x68, 0xcf, 0x4f, + 0xc4, 0x72, 0xbf, 0x58, 0x84, 0x2f, 0xe0, 0x54, 0xf3, 0x3b, 0x4d, 0x5f, 0x0b, 0xc6, 0x6d, 0xc6, + 0x04, 0x04, 0x33, 0xb7, 0x49, 0x66, 0xd6, 0xbc, 0xae, 0xb7, 0x13, 0xb4, 0xa9, 0xdc, 0xf3, 0x63, + 0xe7, 0xd3, 0xa4, 0xe2, 0xb5, 0x5a, 0x6c, 0xe2, 0x57, 0x57, 0x1f, 0xa3, 0x05, 0x2a, 0x2b, 0xad, + 0x16, 0x9d, 0x06, 0x44, 0x51, 0x1d, 0x01, 0x52, 0x38, 0x17, 0xc8, 0x58, 0x2b, 0x0a, 0xbb, 0xb4, + 0x35, 0x48, 0x79, 0x1e, 0x57, 0x68, 0x8d, 0xfe, 0x4e, 0x91, 0x32, 0x1a, 0xf7, 0x5f, 0x97, 0x89, + 0xb3, 0xe6, 0x77, 0xf7, 0x37, 0x1a, 0xd6, 0xb7, 0xa4, 0xf3, 0xe1, 0x20, 0xa4, 0x42, 0x20, 0x8c, + 0x62, 0x51, 0x21, 0x9b, 0x0f, 0x37, 0x04, 0x0c, 0x14, 0xd6, 0x79, 0x86, 0x8c, 0x75, 0xf5, 0xb2, + 0x9e, 0x91, 0x22, 0x81, 0x2d, 0x68, 0x86, 0x41, 0x8a, 0x5e, 0xec, 0x47, 0x62, 0x1e, 0x2b, 0x8a, + 0xdb, 0x14, 0x06, 0x0c, 0xa3, 0x67, 0x0e, 0xce, 0x29, 0x31, 0x4b, 0x53, 0x33, 0x07, 0x31, 0x60, + 0x50, 0x39, 0x3f, 0x4a, 0x67, 0x0e, 0xfb, 0x45, 0x07, 0x92, 0x4d, 0xd9, 0x5c, 0x61, 0xb0, 0x15, + 0x36, 0xbd, 0x76, 0x7a, 0xf0, 0x67, 0xd9, 0x4c, 0x93, 0x8c, 0x40, 0xf3, 0xb4, 0x66, 0xda, 0x44, + 0xee, 0x4c, 0xfb, 0x1b, 0x25, 0x3a, 0x8e, 0x74, 0xa6, 0xf9, 0xd1, 0x29, 0x6c, 0x99, 0xc3, 0x2d, + 0x82, 0x3f, 0xc0, 0xa6, 0x85, 0x07, 0x5d, 0xaa, 0x5a, 0x74, 0x92, 0xb5, 0x90, 0xae, 0x06, 0xb6, + 0x8d, 0x7e, 0x86, 0x8c, 0x25, 0x58, 0x15, 0x6f, 0xd6, 0xf3, 0xf2, 0xb3, 0x60, 0x05, 0x74, 0xa6, + 0x9c, 0xef, 0x2f, 0xc1, 0x9a, 0xc0, 0xca, 0x38, 0x6f, 0x91, 0x89, 0x38, 0xf1, 0x92, 0x5e, 0x2c, + 0x1a, 0xfa, 0x49, 0xd9, 0xd0, 0x06, 0x83, 0xd2, 0xf2, 0xf3, 0xaa, 0x18, 0x07, 0x81, 0x28, 0xe0, + 0xbc, 0x48, 0x26, 0x0f, 0xfc, 0x38, 0xf6, 0xf6, 0xa4, 0x60, 0x9b, 0x17, 0x65, 0x27, 0x6f, 0x70, + 0x30, 0x48, 0xbc, 0xf3, 0x29, 0x32, 0xee, 0x47, 0x51, 0x18, 0x89, 0x19, 0x31, 0x2b, 0x08, 0xc7, + 0xd7, 0x11, 0x08, 0x1c, 0xe7, 0xfe, 0x4e, 0x89, 0xcc, 0xab, 0xb6, 0xf2, 0xba, 0x46, 0xb8, 0xd4, + 0x5b, 0x84, 0x34, 0x65, 0xc7, 0x62, 0xb6, 0xc0, 0xa6, 0xaf, 0xbc, 0x72, 0x3c, 0xef, 0xfe, 0x81, + 0xd4, 0x75, 0x28, 0x50, 0x0c, 0x06, 0x5f, 0xf7, 0xbb, 0x25, 0x72, 0x36, 0xd5, 0xa7, 0xad, 0x20, + 0x4e, 0x9c, 0x3f, 0xdf, 0xd7, 0xaf, 0x4b, 0xc7, 0xd4, 0x6d, 0x68, 0x94, 0xcb, 0x58, 0x9c, 0x75, + 0x4f, 0x4d, 0x14, 0x09, 0x31, 0x3a, 0x07, 0x64, 0x3c, 0x48, 0xfc, 0x03, 0xd9, 0xaf, 0x8b, 0x05, + 0xfb, 0xc5, 0x1b, 0xa8, 0x3f, 0xcf, 0x26, 0xf2, 0x00, 0xce, 0xca, 0xfd, 0x1f, 0x74, 0x1f, 0xa7, + 0xbd, 0xdc, 0x0d, 0xf6, 0x6e, 0x78, 0xdd, 0x11, 0x7e, 0x98, 0x06, 0x95, 0x79, 0xc8, 0x95, 0x37, + 0xfd, 0x72, 0x5e, 0xd3, 0x45, 0x83, 0x96, 0x71, 0xf3, 0xe4, 0x5a, 0x81, 0x92, 0x4b, 0x08, 0x02, + 0xc6, 0x6c, 0xe9, 0x0d, 0x52, 0x55, 0x04, 0xce, 0x02, 0xa9, 0xdc, 0xf3, 0xb9, 0xca, 0x58, 0x05, + 0xfc, 0xd7, 0x39, 0x47, 0xc6, 0x0f, 0xbd, 0x76, 0x4f, 0xac, 0x56, 0xe0, 0x3f, 0x3e, 0x53, 0x7e, + 0xb3, 0xe4, 0xfe, 0x46, 0x89, 0x9c, 0x53, 0x95, 0x5c, 0xf7, 0x8f, 0x1a, 0x7e, 0x9b, 0x36, 0x39, + 0x8c, 0x9c, 0x9f, 0xa4, 0x88, 0x76, 0x86, 0x1c, 0x12, 0xa3, 0x71, 0x12, 0x09, 0xf6, 0x09, 0xd1, + 0xf0, 0x73, 0x59, 0x58, 0xc8, 0xac, 0xcd, 0x79, 0x92, 0xf7, 0x85, 0x2f, 0xde, 0x69, 0xc1, 0xa0, + 0x42, 0x1b, 0xca, 0x3a, 0x86, 0xcd, 0x9f, 0x55, 0xcd, 0x3f, 0x8d, 0x99, 0xb7, 0x65, 0xcf, 0xbc, + 0x4f, 0x17, 0xfc, 0x7c, 0x03, 0xe6, 0xdc, 0xdf, 0xa1, 0x6a, 0x9b, 0xa2, 0xb1, 0xc4, 0xf1, 0x23, + 0x32, 0xfc, 0xc3, 0x75, 0x97, 0x7e, 0x96, 0xed, 0x10, 0xf7, 0xd3, 0xec, 0xee, 0x3a, 0x97, 0xc9, + 0x74, 0xcb, 0xdf, 0xf5, 0x7a, 0xed, 0x44, 0xa9, 0x8b, 0xe3, 0xdc, 0x8e, 0xa8, 0x69, 0x30, 0x98, + 0x34, 0xee, 0x6f, 0x57, 0xd9, 0xaa, 0x4c, 0xbc, 0x80, 0x9a, 0x81, 0xb8, 0x41, 0x1b, 0x5a, 0xfd, + 0x8c, 0xa9, 0xd5, 0x0b, 0x0d, 0x9e, 0x4a, 0xe2, 0xe0, 0x00, 0x45, 0x76, 0xd9, 0x96, 0xc4, 0x9b, + 0x08, 0x04, 0x8e, 0x73, 0x9e, 0x23, 0x93, 0xd4, 0x74, 0x3e, 0xf0, 0x3a, 0x2d, 0xda, 0x06, 0x54, + 0x19, 0xa6, 0x51, 0xaa, 0xaf, 0x71, 0x10, 0x48, 0x9c, 0xf3, 0x09, 0x32, 0x46, 0xf5, 0x9b, 0x98, + 0x0a, 0x75, 0xa4, 0x99, 0xc2, 0x9a, 0x56, 0xe8, 0x6f, 0x60, 0x50, 0x54, 0x05, 0xee, 0x87, 0xd1, + 0x3d, 0xaa, 0xb0, 0xd5, 0x82, 0x88, 0xed, 0xeb, 0x86, 0x2a, 0x70, 0x57, 0x61, 0xc0, 0xa0, 0x72, + 0xea, 0x64, 0xbc, 0x1b, 0x46, 0x49, 0x4c, 0xb7, 0x69, 0x1c, 0xce, 0x97, 0x72, 0x67, 0x0f, 0xef, + 0x77, 0x9d, 0x96, 0xd1, 0x5d, 0xc1, 0x5f, 0x74, 0x48, 0x19, 0x23, 0x67, 0x8d, 0x54, 0xfc, 0xce, + 0xe1, 0xe2, 0x24, 0xe3, 0xf7, 0xec, 0xf1, 0xfc, 0xd6, 0x3b, 0x87, 0x77, 0xbc, 0x48, 0xaf, 0x22, + 0xfa, 0x1b, 0xb0, 0xb4, 0xd3, 0x24, 0x55, 0xe9, 0x08, 0x88, 0x17, 0xa7, 0x8a, 0x4c, 0x30, 0x10, + 0xe4, 0xe0, 0xbf, 0xdf, 0x0b, 0x22, 0xff, 0x80, 0x0a, 0xd7, 0x58, 0xeb, 0xc3, 0x12, 0x1b, 0x83, + 0xe6, 0x4b, 0x2b, 0x99, 0xe1, 0xea, 0xc3, 0x8d, 0xb0, 0x47, 0xa9, 0x17, 0xab, 0xac, 0xc9, 0x39, + 0x06, 0xe7, 0x1d, 0x5d, 0x62, 0xf5, 0x9c, 0x60, 0x3f, 0x63, 0x00, 0x63, 0xb0, 0x98, 0x52, 0xa3, + 0x76, 0xb6, 0x1d, 0x1c, 0xfa, 0x1d, 0xba, 0x2f, 0xd7, 0xa3, 0x70, 0xc7, 0x5f, 0x24, 0xac, 0x37, + 0x9f, 0xca, 0x33, 0xbe, 0x28, 0xe9, 0xea, 0x19, 0xca, 0x7b, 0x76, 0xcb, 0x2c, 0x0d, 0x36, 0x33, + 0xaa, 0xc9, 0xcd, 0xa1, 0xae, 0x12, 0x68, 0xf6, 0xd3, 0xc5, 0xd9, 0x3b, 0x94, 0xfd, 0x1c, 0x58, + 0xc5, 0x21, 0xc5, 0xce, 0xd9, 0x26, 0xd5, 0x76, 0xb0, 0xeb, 0x37, 0x8f, 0x9a, 0x54, 0xbb, 0x9c, + 0x61, 0xbc, 0x73, 0x96, 0xdc, 0x96, 0x24, 0xe7, 0xfa, 0xa1, 0xfa, 0x09, 0x9a, 0x91, 0x73, 0x87, + 0x9c, 0x4f, 0xfc, 0xe8, 0x20, 0xe8, 0x78, 0xb8, 0x69, 0x0b, 0xe5, 0x85, 0x59, 0xb8, 0xb3, 0x6c, + 0xd6, 0x3e, 0x25, 0x06, 0xf6, 0xfc, 0x76, 0x26, 0x15, 0x0c, 0x28, 0xed, 0xdc, 0x22, 0xf3, 0x6c, + 0x3d, 0xd5, 0x7b, 0xed, 0x76, 0x3d, 0x6c, 0x07, 0xcd, 0xa3, 0xc5, 0x39, 0xc6, 0xf0, 0x39, 0x69, + 0xb7, 0x6e, 0xda, 0x68, 0xd4, 0xeb, 0xf5, 0x2f, 0x48, 0x97, 0x46, 0xa7, 0x01, 0xd5, 0x6a, 0x7b, + 0x11, 0x55, 0xfa, 0x71, 0xee, 0xfb, 0x0f, 0x92, 0xc5, 0xf9, 0x22, 0x76, 0x4a, 0xc3, 0x2e, 0xc4, + 0x9d, 0x06, 0x29, 0x20, 0xa4, 0x59, 0xa3, 0xa8, 0x88, 0x13, 0x3a, 0xfa, 0x8b, 0x0b, 0x4c, 0x31, + 0x55, 0xeb, 0xab, 0x81, 0x40, 0xe0, 0x38, 0x66, 0xf6, 0xe1, 0x3f, 0xb7, 0x50, 0xf6, 0x9e, 0x61, + 0x84, 0xda, 0xec, 0x93, 0x08, 0xd0, 0x34, 0xb8, 0x61, 0x25, 0xc9, 0xd1, 0xa2, 0xc3, 0x48, 0xd5, + 0x52, 0xdb, 0xde, 0xfe, 0x12, 0x20, 0xdc, 0xdd, 0x21, 0x73, 0x6a, 0x59, 0xb3, 0xd1, 0x71, 0x9e, + 0x26, 0xe3, 0x28, 0xb9, 0xa4, 0xf5, 0x52, 0xc5, 0x26, 0xa0, 0x40, 0xa3, 0x4b, 0x9c, 0xc1, 0x59, + 0x13, 0x82, 0x0f, 0xfc, 0xd5, 0x23, 0xda, 0x6b, 0x26, 0xd6, 0x2a, 0x46, 0x13, 0x24, 0x02, 0x34, + 0x8d, 0xfb, 0xbf, 0xf9, 0xa6, 0xa8, 0x65, 0x47, 0x01, 0xb9, 0x49, 0x15, 0xf5, 0xfd, 0x30, 0x4e, + 0x90, 0x9a, 0xd5, 0x31, 0xae, 0x77, 0xc1, 0x6b, 0x02, 0x0e, 0x8a, 0xc2, 0xf9, 0x2c, 0x99, 0x6d, + 0x9a, 0x15, 0x08, 0x51, 0xfe, 0x98, 0x28, 0x62, 0xd7, 0x0e, 0x36, 0xad, 0xf3, 0x26, 0x99, 0x62, + 0xae, 0xbc, 0x66, 0xd8, 0x16, 0xfa, 0xb2, 0xdc, 0x99, 0xa6, 0xea, 0x02, 0xfe, 0xa1, 0xf1, 0x3f, + 0x28, 0x6a, 0xb4, 0x3a, 0xb0, 0x09, 0x9b, 0x75, 0x21, 0x6e, 0x95, 0xd5, 0x71, 0x8d, 0x41, 0x41, + 0x60, 0xdd, 0x5f, 0x29, 0x1b, 0xa3, 0x8c, 0x4a, 0x9f, 0xef, 0xfc, 0x08, 0x99, 0xbc, 0xef, 0x51, + 0xa5, 0xb5, 0xb3, 0x27, 0x76, 0xd0, 0x57, 0x0b, 0xca, 0x5e, 0x56, 0xfc, 0x2e, 0x2f, 0xca, 0xf7, + 0x09, 0xf1, 0x03, 0x24, 0x43, 0xe4, 0x1d, 0xf5, 0x3a, 0x1d, 0xe4, 0x5d, 0x1e, 0x9e, 0x37, 0xf0, + 0xa2, 0x9c, 0xb7, 0xf8, 0x01, 0x92, 0xa1, 0xb3, 0x4b, 0x88, 0x5c, 0x7d, 0x7e, 0x4b, 0xb8, 0xd0, + 0x7e, 0x68, 0x18, 0xf6, 0xdb, 0xaa, 0xf4, 0xea, 0x1c, 0xee, 0x4c, 0xfa, 0x37, 0x18, 0x9c, 0xdd, + 0x1e, 0x53, 0x44, 0xfa, 0x9b, 0x45, 0x25, 0x2a, 0x9d, 0xdc, 0x5e, 0x44, 0x69, 0x56, 0x12, 0x31, + 0x74, 0x2f, 0x15, 0x54, 0xa8, 0xb6, 0x83, 0x03, 0xdf, 0x5c, 0x2d, 0x82, 0x0b, 0x68, 0x86, 0xee, + 0xb7, 0x2b, 0x64, 0x71, 0x50, 0x7b, 0x71, 0x4e, 0xfa, 0x0f, 0x02, 0x6a, 0x8d, 0xb4, 0xf8, 0xcc, + 0x35, 0xe6, 0xe4, 0xba, 0x80, 0x83, 0xa2, 0xc0, 0xc9, 0x11, 0x07, 0x7b, 0x1d, 0xaf, 0x2d, 0xe6, + 0xaf, 0x9a, 0x1c, 0x0d, 0x06, 0x05, 0x81, 0x45, 0x3a, 0x2a, 0x75, 0x63, 0xe1, 0xc2, 0x35, 0x26, + 0x11, 0x30, 0x28, 0x08, 0xac, 0x69, 0xfe, 0x8d, 0xe5, 0x98, 0x7f, 0xd6, 0x18, 0x8d, 0x3f, 0xe4, + 0x31, 0xa2, 0xbb, 0x0e, 0x41, 0x37, 0x67, 0xbc, 0xcf, 0xd8, 0x4f, 0x0c, 0xcf, 0x5e, 0x69, 0x25, + 0x1b, 0x8a, 0x0d, 0x18, 0x2c, 0x9d, 0xd7, 0xc9, 0xb4, 0x5a, 0xa1, 0xd4, 0xfa, 0x9f, 0xb4, 0x1d, + 0x7f, 0x5a, 0x5c, 0xd5, 0xc0, 0xa4, 0x73, 0xbf, 0x9a, 0x9e, 0x32, 0x62, 0x61, 0x18, 0x23, 0x5c, + 0x2a, 0x3a, 0xc2, 0xe5, 0xe3, 0x47, 0xd8, 0xfd, 0x4f, 0x15, 0xb4, 0x9d, 0x8d, 0xca, 0x7a, 0x71, + 0x01, 0xa1, 0xf6, 0x0e, 0x4a, 0x78, 0xda, 0x30, 0xb1, 0x2c, 0x5f, 0x1e, 0x66, 0xdd, 0x98, 0xfb, + 0x01, 0x2e, 0x07, 0xce, 0xc9, 0xd9, 0xa7, 0x3b, 0xb4, 0x17, 0x33, 0x4b, 0xd2, 0x17, 0xcb, 0x71, + 0x38, 0xb6, 0x5a, 0x0b, 0xa7, 0x6c, 0x8c, 0x0d, 0x97, 0xd7, 0xa2, 0x99, 0xe3, 0xf6, 0x84, 0xda, + 0x81, 0x3c, 0x39, 0x50, 0xcd, 0x41, 0x15, 0xe2, 0x08, 0x38, 0x8e, 0xca, 0xd2, 0x19, 0xaa, 0x61, + 0xe1, 0x54, 0x59, 0x43, 0x05, 0x88, 0x4d, 0xbe, 0x71, 0xad, 0x29, 0x81, 0x81, 0x03, 0x8b, 0x52, + 0x2b, 0xca, 0x13, 0xc7, 0x28, 0xca, 0xf4, 0x0b, 0xb1, 0x7f, 0xd4, 0xac, 0x50, 0x5f, 0x68, 0x93, + 0x83, 0x41, 0xe2, 0xd3, 0x93, 0x68, 0xaa, 0xe0, 0x24, 0xba, 0x40, 0xe6, 0x6a, 0x9e, 0x7f, 0x10, + 0x76, 0xd6, 0x3b, 0xad, 0x6e, 0x18, 0xd0, 0x86, 0x2d, 0x92, 0x31, 0xb6, 0xa5, 0xf0, 0x15, 0x3f, + 0x86, 0x1c, 0x60, 0x0c, 0x95, 0x5d, 0xf7, 0xff, 0xd0, 0x7d, 0xad, 0x46, 0xed, 0xd3, 0xc4, 0xbf, + 0xd5, 0x65, 0xee, 0x07, 0x67, 0x83, 0x38, 0x7b, 0x91, 0xd7, 0xf4, 0xeb, 0x7e, 0x14, 0x84, 0x2d, + 0xba, 0xe3, 0x87, 0x1d, 0xe6, 0x70, 0xc7, 0x3d, 0x12, 0xbd, 0x89, 0xce, 0xd5, 0x3e, 0x2c, 0x64, + 0x94, 0x70, 0x5a, 0x64, 0xb6, 0x1b, 0xf9, 0x96, 0xbf, 0xa4, 0x94, 0xaf, 0x9f, 0xd7, 0xcd, 0x22, + 0x5c, 0x7d, 0xb4, 0x40, 0x60, 0x33, 0x75, 0xde, 0x26, 0x0b, 0x61, 0xd4, 0xdd, 0xf7, 0x3a, 0x35, + 0xbf, 0xeb, 0x77, 0x5a, 0xa8, 0x33, 0x0b, 0xa7, 0xd8, 0x39, 0x5a, 0x76, 0xe1, 0x56, 0x0a, 0x07, + 0x7d, 0xd4, 0xee, 0x2f, 0x51, 0x7b, 0xb1, 0x16, 0xde, 0xef, 0xdc, 0xf7, 0xa2, 0xd6, 0x4a, 0x7d, + 0x93, 0x2b, 0xc2, 0xcc, 0xc9, 0x28, 0x9d, 0x9b, 0xa5, 0x81, 0xce, 0xcd, 0x2f, 0x93, 0xa9, 0xdd, + 0xc0, 0x6f, 0xb7, 0xd0, 0x0b, 0xc9, 0xbb, 0x77, 0xb9, 0x88, 0x47, 0x63, 0x03, 0xcb, 0x48, 0xaf, + 0x00, 0xf7, 0xad, 0x6e, 0x08, 0x36, 0xa0, 0x18, 0x3a, 0x3d, 0xb2, 0x20, 0x35, 0x7d, 0x89, 0x15, + 0xab, 0xe3, 0xd5, 0x62, 0x86, 0x84, 0x5d, 0x0d, 0x1b, 0x0f, 0x48, 0x31, 0x84, 0xbe, 0x2a, 0xd0, + 0x42, 0x3b, 0xc0, 0xdd, 0x61, 0x8c, 0xcd, 0x15, 0x66, 0xa1, 0x31, 0x13, 0x92, 0x41, 0xdd, 0x5f, + 0x2c, 0x91, 0xc7, 0xfb, 0x46, 0x4b, 0xd8, 0xd7, 0x5f, 0x94, 0x86, 0x2d, 0x3f, 0x9d, 0xc9, 0x69, + 0x65, 0xe6, 0x98, 0x17, 0x33, 0x72, 0xcb, 0x05, 0x8c, 0xdc, 0x5b, 0xe4, 0xdc, 0xfa, 0x41, 0x37, + 0x39, 0xa2, 0x26, 0xa2, 0xd5, 0xc8, 0x37, 0xc8, 0xc4, 0x81, 0xdf, 0x0a, 0x7a, 0x07, 0xe2, 0xb3, + 0x3e, 0x2d, 0x05, 0xe9, 0x0d, 0x06, 0xa5, 0x5a, 0xd2, 0x2c, 0x9e, 0x7d, 0xd2, 0x05, 0xc8, 0x01, + 0x20, 0xc8, 0xdd, 0x1f, 0x94, 0xc8, 0xbc, 0x5c, 0x50, 0x2b, 0xad, 0x16, 0x1d, 0xb7, 0xd8, 0x59, + 0x22, 0xe5, 0xa0, 0x2b, 0x18, 0x11, 0xc1, 0xa8, 0x4c, 0x95, 0x26, 0x0a, 0xa5, 0x1a, 0x4c, 0x95, + 0xbb, 0xf2, 0xf5, 0xe4, 0x18, 0xf2, 0x68, 0x80, 0x59, 0x1f, 0xdb, 0x92, 0x07, 0x68, 0x76, 0x52, + 0xb3, 0x64, 0xa2, 0xba, 0x62, 0x3b, 0x96, 0xaf, 0x09, 0x38, 0x28, 0x0a, 0x74, 0xe7, 0xe3, 0x29, + 0x25, 0x3b, 0x65, 0xe1, 0xdb, 0x2e, 0x9b, 0x72, 0x37, 0x05, 0x0c, 0x14, 0xd6, 0xfd, 0x99, 0x12, + 0x99, 0x91, 0x7d, 0x2c, 0xa8, 0xe4, 0xe2, 0x22, 0xd1, 0x0a, 0xae, 0x5e, 0x24, 0xa8, 0xa4, 0x32, + 0x8c, 0xa5, 0x9b, 0x56, 0x86, 0xd1, 0x4d, 0xdd, 0x6f, 0x53, 0x9d, 0x53, 0x36, 0xa7, 0xd1, 0xdb, + 0x89, 0xfd, 0xc4, 0xf9, 0x0a, 0xa9, 0x7a, 0x7c, 0xf0, 0x7d, 0x39, 0xcf, 0x2e, 0xe6, 0x59, 0xe8, + 0xd6, 0x37, 0xd3, 0x8a, 0xc1, 0x8a, 0xe4, 0x03, 0x9a, 0xa5, 0x73, 0x48, 0xce, 0x74, 0xc2, 0x84, + 0xed, 0x07, 0x0a, 0x5f, 0xcc, 0x23, 0x9a, 0xae, 0xe7, 0x09, 0x51, 0xcf, 0x99, 0x9b, 0x69, 0x7e, + 0xd0, 0x5f, 0x05, 0xb5, 0xfb, 0x84, 0x17, 0xa3, 0xc2, 0xea, 0xba, 0x50, 0xac, 0xae, 0xc1, 0x4e, + 0x0c, 0xf7, 0x37, 0x4b, 0xa4, 0x2a, 0xc9, 0x46, 0xe9, 0x13, 0xbf, 0x4b, 0x26, 0x63, 0xf6, 0x69, + 0xe4, 0x30, 0xbd, 0x5c, 0xac, 0xe9, 0xfc, 0x7b, 0xea, 0xcd, 0x8f, 0xff, 0x8e, 0x41, 0x72, 0x63, + 0x6e, 0x48, 0xd5, 0x81, 0x47, 0xcf, 0x0d, 0xa9, 0x9a, 0x36, 0xc0, 0x0d, 0xf9, 0x0f, 0x4a, 0x64, + 0x82, 0x3b, 0x87, 0x8a, 0x79, 0xd8, 0x0c, 0x5f, 0xb2, 0xe6, 0x78, 0x07, 0x81, 0xc2, 0xb5, 0x4c, + 0x47, 0xba, 0xca, 0xfe, 0xd9, 0x88, 0xc2, 0x03, 0xb1, 0x11, 0x5c, 0x28, 0xe2, 0x9c, 0xe2, 0x82, + 0x8f, 0x4b, 0x93, 0x3b, 0x92, 0x01, 0x68, 0x5e, 0xee, 0x6f, 0x54, 0x70, 0xd5, 0x6b, 0x52, 0x6b, + 0x5b, 0x2b, 0x9d, 0xc6, 0xb6, 0x56, 0x1e, 0xfd, 0xb6, 0xf6, 0x3e, 0x99, 0x6f, 0x1a, 0x3e, 0x79, + 0xbd, 0x99, 0x5e, 0x29, 0xe8, 0x6e, 0x36, 0x1c, 0xf9, 0xdc, 0x19, 0xb2, 0x66, 0xb3, 0x83, 0x34, + 0x7f, 0xc7, 0x27, 0x33, 0xfc, 0x40, 0x51, 0xd4, 0x37, 0x96, 0x3b, 0x67, 0xb9, 0xdf, 0x85, 0x97, + 0x50, 0x95, 0xb1, 0xa0, 0x93, 0x86, 0xc1, 0x08, 0x2c, 0xb6, 0xee, 0x5f, 0x1b, 0x27, 0xe3, 0xeb, + 0x87, 0x54, 0x97, 0x19, 0xe1, 0x2a, 0x3f, 0x20, 0x73, 0x41, 0xe7, 0x30, 0x6c, 0x1f, 0xfa, 0x2d, + 0x8e, 0x3f, 0xd9, 0x8e, 0x76, 0x5e, 0x54, 0x32, 0xb7, 0x69, 0x31, 0x83, 0x14, 0xf3, 0x51, 0xd8, + 0x93, 0xef, 0x50, 0x53, 0x96, 0xcd, 0x08, 0x61, 0x4c, 0xe6, 0x38, 0x49, 0xd9, 0x80, 0x8a, 0x95, + 0xa3, 0xad, 0x5e, 0xee, 0x9f, 0x15, 0x8c, 0x9c, 0x7b, 0x64, 0x6e, 0x37, 0x88, 0xa8, 0xc5, 0x41, + 0x0d, 0x42, 0x6a, 0x05, 0x1c, 0x74, 0x4f, 0x62, 0x48, 0xaa, 0x21, 0xd9, 0xb0, 0x58, 0x41, 0x8a, + 0x35, 0x35, 0x92, 0x66, 0xd1, 0x8e, 0xd1, 0x75, 0x4d, 0x0e, 0x5f, 0x97, 0xf2, 0x25, 0x6d, 0x99, + 0x9c, 0xc0, 0x66, 0x8c, 0xc2, 0xa8, 0xc9, 0x0c, 0x9f, 0x29, 0xb6, 0xa5, 0x2b, 0x61, 0xc4, 0x2d, + 0x1e, 0x8e, 0x43, 0x99, 0xc6, 0xce, 0x8f, 0xab, 0xb6, 0x4c, 0xd3, 0xa7, 0xc4, 0xee, 0x37, 0x71, + 0x03, 0xc2, 0x51, 0x3c, 0x0d, 0xd9, 0x7d, 0xcd, 0x96, 0xdd, 0x9f, 0x2a, 0xf0, 0x71, 0x07, 0xc8, + 0xed, 0xf7, 0xc8, 0xb4, 0xf1, 0xed, 0xd1, 0x51, 0xd8, 0x94, 0x47, 0x9d, 0x42, 0x80, 0x2b, 0x05, + 0x42, 0x9d, 0x81, 0x82, 0xa6, 0xc1, 0x81, 0x41, 0xc5, 0x2b, 0x1d, 0x11, 0x81, 0x6a, 0x19, 0x30, + 0x8c, 0xfb, 0x2a, 0x21, 0xeb, 0x0f, 0xfc, 0xe6, 0x4a, 0x93, 0x1d, 0xc4, 0x1b, 0xe7, 0x26, 0xa5, + 0xc1, 0xe7, 0x26, 0xee, 0xbb, 0x74, 0x33, 0x7c, 0x80, 0x3b, 0xbb, 0x34, 0xd3, 0xe8, 0x12, 0xf1, + 0x19, 0x80, 0xb5, 0x6a, 0x4a, 0x4f, 0x52, 0x4e, 0x06, 0x02, 0xcb, 0x8e, 0xd1, 0x1f, 0x78, 0x62, + 0xc1, 0x1a, 0x26, 0xef, 0x3a, 0x02, 0x81, 0xe3, 0xdc, 0x6f, 0x94, 0xc8, 0xdc, 0xc6, 0x9a, 0xa5, + 0x27, 0x2f, 0x13, 0xc2, 0xf5, 0xcd, 0xbb, 0x77, 0x6f, 0x4a, 0x3f, 0x2a, 0x77, 0x76, 0x29, 0x28, + 0x18, 0x14, 0xce, 0x13, 0xa4, 0xd2, 0xee, 0x75, 0x84, 0x1a, 0x38, 0x89, 0xfe, 0xd9, 0xad, 0x5e, + 0x07, 0x10, 0x66, 0x04, 0x36, 0x54, 0x0a, 0x07, 0x36, 0xe4, 0x87, 0xf6, 0xfd, 0x7c, 0x85, 0x2c, + 0x6c, 0xb4, 0xfd, 0x07, 0x56, 0xab, 0x69, 0x55, 0xad, 0x28, 0xa0, 0x93, 0x27, 0xed, 0x26, 0xa9, + 0x31, 0x28, 0x08, 0x6c, 0xe1, 0x58, 0x0b, 0x2b, 0xce, 0xa4, 0x32, 0xe2, 0x38, 0x93, 0xdc, 0x3e, + 0x3b, 0xbb, 0x64, 0x32, 0xe4, 0xdf, 0x9f, 0x4a, 0x31, 0x9c, 0xe8, 0x9f, 0x3d, 0xbe, 0x31, 0xe9, + 0xf1, 0x59, 0x16, 0xb3, 0x87, 0x1f, 0x7a, 0x2b, 0x61, 0x29, 0xa0, 0x20, 0x99, 0x2f, 0x7d, 0x86, + 0xcc, 0x98, 0x94, 0x43, 0x9d, 0x7e, 0x6f, 0x91, 0xb3, 0x1b, 0x18, 0x41, 0x9a, 0x8a, 0x85, 0x79, + 0x9d, 0x9a, 0x70, 0x74, 0xa5, 0xc6, 0x56, 0x80, 0x98, 0x15, 0x09, 0x27, 0x50, 0x60, 0xd2, 0xb9, + 0xff, 0xa1, 0x44, 0x9e, 0xbc, 0xba, 0xb6, 0x5e, 0x47, 0x71, 0x10, 0x27, 0x74, 0x81, 0xf5, 0x05, + 0xe3, 0xd1, 0x4f, 0xd9, 0x6d, 0x19, 0x3c, 0xd5, 0xa7, 0xac, 0xd7, 0x18, 0x3b, 0x81, 0x7d, 0x54, + 0x22, 0x52, 0xa9, 0x5e, 0x78, 0xf6, 0x6a, 0x40, 0xbf, 0x7d, 0x37, 0x4c, 0xc7, 0xcf, 0x45, 0x14, + 0x16, 0x63, 0x5c, 0xd5, 0x51, 0x3a, 0x7e, 0x0e, 0x14, 0x06, 0x0c, 0x2a, 0x5e, 0xf3, 0x61, 0x80, + 0x82, 0x52, 0x74, 0xca, 0xa8, 0x99, 0xc3, 0x41, 0x51, 0x60, 0xc7, 0x5a, 0x41, 0xc4, 0x74, 0x8a, + 0x23, 0xb1, 0x12, 0x55, 0xc7, 0x6a, 0x12, 0x01, 0x9a, 0xc6, 0xfd, 0x5b, 0x25, 0xf2, 0xd8, 0xd5, + 0x76, 0x8f, 0x0e, 0x7b, 0xb4, 0x1b, 0x5b, 0x8d, 0x7d, 0x95, 0x54, 0x7d, 0xa9, 0xff, 0x8a, 0xb6, + 0xaa, 0xbd, 0x45, 0x29, 0xc6, 0x3c, 0x78, 0x4f, 0xd1, 0x15, 0x88, 0x15, 0x1b, 0x2e, 0xb2, 0xe9, + 0x5f, 0x94, 0xc9, 0xec, 0xb5, 0xed, 0xed, 0xfa, 0x55, 0x3f, 0x11, 0xb2, 0x34, 0xdf, 0x61, 0x53, + 0x37, 0xac, 0xd5, 0xe9, 0x2b, 0xcb, 0x03, 0x56, 0x0f, 0xc6, 0x4a, 0x2f, 0xf3, 0x58, 0xe9, 0xe5, + 0xcd, 0x4e, 0x72, 0x2b, 0x6a, 0x24, 0x11, 0x1e, 0x27, 0x64, 0x59, 0xb7, 0x52, 0xde, 0x57, 0x06, + 0xc9, 0x7b, 0x3a, 0x58, 0x13, 0x71, 0x73, 0xdf, 0x57, 0xc6, 0xf7, 0xc7, 0x95, 0x3a, 0xc1, 0xa0, + 0xd4, 0xf6, 0xad, 0xde, 0x86, 0x4d, 0xfe, 0x03, 0x04, 0x29, 0x15, 0x3c, 0xd3, 0xfb, 0x49, 0xd2, + 0xbd, 0x46, 0x3b, 0x4b, 0xa7, 0xbe, 0x58, 0xed, 0x39, 0xda, 0x1c, 0x0e, 0x06, 0x2f, 0xa0, 0x17, + 0x96, 0x86, 0xc5, 0x60, 0x72, 0x74, 0x1b, 0x84, 0x68, 0xdc, 0x43, 0x32, 0x51, 0xdc, 0xbf, 0x58, + 0x26, 0x93, 0xd7, 0xe8, 0x76, 0xd5, 0xa6, 0x2c, 0x37, 0xc8, 0x98, 0x4f, 0xb7, 0xb9, 0x62, 0x8a, + 0xa8, 0xde, 0x10, 0xb9, 0xc7, 0x09, 0x7f, 0x03, 0x2b, 0xef, 0x00, 0x99, 0xc4, 0x76, 0x5f, 0x55, + 0x01, 0x96, 0x2f, 0xe5, 0x8f, 0x82, 0x9a, 0x12, 0x7c, 0x37, 0x15, 0x20, 0x90, 0x8c, 0x98, 0x6f, + 0xa6, 0xd9, 0x6d, 0xa0, 0x94, 0x4a, 0x8a, 0xc5, 0x50, 0x6f, 0xaf, 0xd5, 0x39, 0xb9, 0xe0, 0xcb, + 0x7d, 0x33, 0x12, 0x08, 0x9a, 0x9d, 0xfb, 0x26, 0x39, 0xc7, 0x4e, 0xf7, 0xe8, 0x74, 0xb3, 0xd6, + 0x4c, 0xee, 0xe4, 0x74, 0xff, 0x6e, 0x99, 0x9c, 0xd9, 0x6c, 0xac, 0x35, 0x6c, 0xaf, 0xda, 0x9b, + 0x64, 0x86, 0x6f, 0xb3, 0x38, 0xe9, 0xbc, 0xb6, 0x28, 0xaf, 0xdc, 0xd1, 0xdb, 0x06, 0x0e, 0x2c, + 0x4a, 0x3c, 0x36, 0x0d, 0xde, 0xef, 0xa4, 0xe3, 0x7c, 0x36, 0xdf, 0xb9, 0x09, 0x08, 0x47, 0x34, + 0xee, 0xd8, 0x5c, 0xc4, 0x29, 0xb4, 0xda, 0xb5, 0x3f, 0x4f, 0x55, 0xfe, 0xb8, 0x19, 0x07, 0x74, + 0x01, 0xd0, 0xf5, 0xef, 0x35, 0xe5, 0xf4, 0xd5, 0x3a, 0x3c, 0x36, 0x55, 0x61, 0x21, 0x45, 0x6d, + 0xc8, 0xdb, 0xf1, 0xc2, 0xbb, 0x7e, 0x7e, 0xa4, 0xe5, 0x57, 0x49, 0x55, 0x45, 0xc4, 0xc8, 0x40, + 0xa6, 0x52, 0x76, 0x20, 0x53, 0x01, 0x81, 0x23, 0x7d, 0x9d, 0x95, 0x4c, 0x5f, 0xe7, 0x3f, 0xa6, + 0x1a, 0xac, 0x3a, 0xfc, 0xa7, 0xf3, 0xb0, 0x4a, 0x05, 0x6f, 0xc2, 0x8e, 0x93, 0xc4, 0xa4, 0x7e, + 0x2e, 0x67, 0x26, 0xf2, 0x95, 0xc0, 0xe7, 0x4a, 0x5d, 0x96, 0x05, 0xcd, 0xc6, 0xd9, 0x22, 0x93, + 0xdd, 0xc8, 0x6f, 0x24, 0x2c, 0x5c, 0x77, 0x08, 0x8e, 0x6c, 0x56, 0xd7, 0x79, 0x49, 0x90, 0x2c, + 0xdc, 0x5f, 0x2b, 0x11, 0xb2, 0x15, 0x1c, 0xd0, 0xcd, 0xc5, 0xeb, 0xec, 0xf9, 0x23, 0xb4, 0x06, + 0x6f, 0x92, 0xb1, 0xb8, 0x4b, 0x97, 0x76, 0xa1, 0x23, 0x20, 0xdd, 0xa2, 0x06, 0x2d, 0xa3, 0x3f, + 0x03, 0xfe, 0x02, 0xc6, 0xc7, 0xfd, 0x65, 0x42, 0xe6, 0x34, 0x19, 0xaa, 0xe3, 0xce, 0x45, 0x2b, + 0x3e, 0xf5, 0x89, 0x54, 0x7c, 0x6a, 0x95, 0x51, 0x1b, 0x21, 0xa9, 0x09, 0xa9, 0x1c, 0x78, 0x0f, + 0x84, 0xf6, 0xff, 0x7a, 0xd1, 0x06, 0x61, 0x4d, 0xcb, 0x37, 0xbc, 0x07, 0x5c, 0x1d, 0x7a, 0x49, + 0x4e, 0x20, 0x0a, 0xf9, 0x90, 0x1f, 0xf4, 0xb0, 0x15, 0x88, 0xe6, 0xc6, 0x4f, 0xfc, 0x67, 0xfd, + 0x9b, 0x09, 0x45, 0xac, 0x8e, 0xd5, 0x1a, 0x74, 0x84, 0xcb, 0x6e, 0xc8, 0x5a, 0x83, 0x4e, 0xba, + 0xd6, 0xa0, 0x53, 0xa0, 0xd6, 0xa0, 0x83, 0x61, 0x6c, 0x93, 0xc2, 0xd3, 0xcd, 0xc2, 0xa8, 0xa6, + 0xaf, 0xbc, 0x35, 0x54, 0xd5, 0xc2, 0x65, 0xce, 0xab, 0xbf, 0x24, 0x75, 0x40, 0x01, 0xcd, 0x6d, + 0x82, 0xac, 0xda, 0xf9, 0x05, 0x6a, 0x33, 0x88, 0xff, 0x31, 0x62, 0x89, 0x1a, 0x8f, 0x62, 0x97, + 0x7a, 0xfb, 0x24, 0xad, 0x11, 0x2c, 0x78, 0xa3, 0x7e, 0x48, 0x8a, 0x18, 0x1b, 0x99, 0xdb, 0xb6, + 0x54, 0x7b, 0x9c, 0x6f, 0x95, 0xc8, 0x39, 0xfa, 0x9d, 0x78, 0x8d, 0x1c, 0x06, 0x78, 0x30, 0x28, + 0x42, 0xc5, 0x36, 0x86, 0x9d, 0x27, 0x7d, 0x8c, 0x78, 0x73, 0x3f, 0x27, 0x8f, 0x1f, 0xb3, 0x48, + 0x72, 0x1b, 0x9d, 0xd9, 0xc2, 0xa5, 0x16, 0x99, 0x92, 0x13, 0x33, 0x43, 0xfb, 0x5e, 0x35, 0x37, + 0xe3, 0xe3, 0x57, 0xa0, 0x74, 0x84, 0x2d, 0xbf, 0xd3, 0xf3, 0x3a, 0x09, 0x86, 0xfe, 0x6b, 0x5d, + 0x9d, 0xd5, 0x22, 0x26, 0xe2, 0x08, 0x6b, 0xd9, 0x27, 0x33, 0xe6, 0x9c, 0x1b, 0x61, 0x4d, 0x21, + 0x39, 0x9b, 0x31, 0x9f, 0x46, 0x58, 0x61, 0x8f, 0x3c, 0x31, 0x70, 0x5e, 0x8c, 0xae, 0x5a, 0x74, + 0xee, 0x1b, 0x02, 0xf3, 0x34, 0x1c, 0x2c, 0x37, 0x6c, 0x07, 0xcb, 0x0b, 0x45, 0x97, 0xce, 0x00, + 0x2f, 0xcb, 0xae, 0xd9, 0x7e, 0xdc, 0x09, 0x9c, 0x6d, 0x32, 0xd1, 0x46, 0x88, 0x3c, 0xd5, 0x79, + 0x79, 0x98, 0xc5, 0xa9, 0x95, 0x0b, 0x06, 0x8f, 0x41, 0xf0, 0x72, 0x7f, 0xbd, 0x44, 0xc6, 0x4e, + 0x63, 0x78, 0xea, 0xf6, 0xf0, 0x0c, 0x52, 0x51, 0xc5, 0x9d, 0xcd, 0x65, 0xf0, 0xee, 0xaf, 0x3f, + 0xa0, 0xd6, 0x6c, 0xcc, 0x54, 0xc9, 0xcc, 0x11, 0xfa, 0xa5, 0x32, 0x99, 0xc6, 0x8a, 0xa4, 0xbf, + 0xe7, 0xb3, 0xe8, 0xff, 0xdb, 0xf1, 0xdb, 0xd2, 0x2d, 0x9c, 0x36, 0xbb, 0xb6, 0x4c, 0x24, 0xd8, + 0xb4, 0x58, 0x78, 0xd7, 0xf4, 0x9a, 0x0b, 0x95, 0x48, 0x15, 0xb6, 0x5c, 0xea, 0x60, 0xd3, 0xa2, + 0xe6, 0x7f, 0xdf, 0x4b, 0x9a, 0xfb, 0xc2, 0x24, 0x53, 0xcd, 0xbd, 0x8b, 0x40, 0xe0, 0x38, 0x67, + 0x85, 0xcc, 0xcb, 0x19, 0x7b, 0x87, 0x0f, 0x9d, 0x50, 0x17, 0xd5, 0x7d, 0x3b, 0xb0, 0xd1, 0x90, + 0xa6, 0x77, 0x3e, 0x43, 0xe6, 0x70, 0x70, 0xc2, 0x5e, 0x22, 0x83, 0x0e, 0xc6, 0x59, 0xd0, 0x01, + 0x0b, 0xf2, 0xdc, 0xb6, 0x30, 0x90, 0xa2, 0x74, 0x7f, 0x94, 0x9c, 0xdd, 0x0a, 0xbd, 0xd6, 0xaa, + 0xd7, 0xf6, 0x3a, 0x4d, 0x3f, 0xda, 0xec, 0xec, 0xe5, 0x9e, 0xcf, 0x9a, 0x67, 0xa8, 0xe5, 0xbc, + 0x33, 0x54, 0x37, 0x22, 0x8e, 0x59, 0x81, 0x08, 0x97, 0x79, 0x97, 0x4c, 0x06, 0xbc, 0x2a, 0x31, + 0x6b, 0x2f, 0xe7, 0x39, 0x87, 0xfa, 0xda, 0x68, 0x84, 0x7f, 0x70, 0x00, 0x48, 0x96, 0x68, 0x49, + 0x64, 0x79, 0x93, 0xf2, 0x8d, 0x35, 0xf7, 0xaf, 0x94, 0xc8, 0xfc, 0xcd, 0xd4, 0xa5, 0x2e, 0x8c, + 0xe5, 0xf2, 0xa3, 0x0c, 0xd7, 0x58, 0x83, 0x41, 0x41, 0x60, 0x1f, 0xba, 0x99, 0xfe, 0xd3, 0x65, + 0x52, 0x65, 0xb1, 0x97, 0x5d, 0xaf, 0x39, 0x4a, 0xa5, 0xf4, 0x86, 0xa5, 0x94, 0xe6, 0x18, 0x89, + 0xaa, 0x41, 0x83, 0x74, 0x52, 0xbc, 0xd6, 0x27, 0x2e, 0x39, 0x15, 0xb2, 0x0f, 0x35, 0x43, 0x7e, + 0x1f, 0x66, 0xce, 0xbe, 0x13, 0x25, 0x2f, 0x40, 0xb1, 0x53, 0x4d, 0x45, 0xfb, 0xe8, 0x9d, 0x6a, + 0xaa, 0xa6, 0x0d, 0x90, 0x4a, 0x75, 0xa3, 0xf5, 0x4c, 0x6c, 0x7f, 0x81, 0x05, 0xd2, 0x79, 0xed, + 0xe0, 0x03, 0x5f, 0x5d, 0x16, 0x7c, 0x5a, 0xc4, 0xc5, 0x09, 0xe8, 0x87, 0x4c, 0xc0, 0x88, 0x5f, + 0xfc, 0x0e, 0xa8, 0x2e, 0xe2, 0x5e, 0xa3, 0x33, 0xd5, 0x1e, 0x3b, 0xe7, 0x75, 0x32, 0xde, 0xdd, + 0xf7, 0x62, 0x3f, 0x15, 0xa1, 0x31, 0x5e, 0x47, 0x20, 0xe5, 0x36, 0xa7, 0x0a, 0x30, 0x08, 0x70, + 0x6a, 0xf7, 0x4f, 0xa8, 0xac, 0xc7, 0x98, 0x86, 0x11, 0xce, 0xb1, 0x6b, 0xd6, 0x1c, 0x7b, 0x3e, + 0xff, 0xe6, 0xf8, 0xc0, 0xe9, 0x55, 0x4f, 0x4d, 0xaf, 0x17, 0x0a, 0xf0, 0x3a, 0x7e, 0x66, 0x1d, + 0x90, 0x69, 0x76, 0x33, 0x5d, 0x84, 0xa6, 0xbc, 0x6a, 0x19, 0x50, 0x4f, 0xa7, 0x0c, 0xa8, 0x79, + 0x83, 0xd4, 0x30, 0xa3, 0x5e, 0x24, 0x93, 0x22, 0x14, 0x22, 0x1d, 0x3d, 0x28, 0x68, 0x41, 0xe2, + 0xdd, 0x5f, 0xad, 0x10, 0xeb, 0x26, 0xbc, 0xf3, 0x9d, 0x12, 0xa1, 0x4a, 0x0b, 0xbb, 0xba, 0xd0, + 0xaa, 0xf5, 0xd0, 0x5f, 0x86, 0x2e, 0xad, 0x56, 0xaf, 0x4d, 0xff, 0xdb, 0xdc, 0xeb, 0x84, 0x0a, + 0x8c, 0xbe, 0x9d, 0x1e, 0xf3, 0xae, 0x16, 0xbe, 0x80, 0xaf, 0xce, 0x42, 0xaf, 0xd0, 0xb6, 0x2c, + 0xc3, 0x50, 0xb5, 0xc0, 0x90, 0xad, 0x72, 0x7e, 0xaf, 0x44, 0x2e, 0xf1, 0xbb, 0xe0, 0xc5, 0x7b, + 0x52, 0xc8, 0xf0, 0xac, 0x4b, 0xa6, 0x9a, 0x1d, 0x06, 0x2b, 0xae, 0xbe, 0x21, 0x06, 0xf9, 0x52, + 0x7d, 0xb8, 0x5a, 0x61, 0xd8, 0x66, 0xba, 0xff, 0xaa, 0x42, 0xd7, 0x2f, 0x1d, 0x4f, 0x7d, 0x0f, + 0xf4, 0x75, 0x6b, 0x9a, 0x7c, 0x32, 0x35, 0x4d, 0xce, 0x58, 0xc4, 0x0f, 0xe7, 0x0a, 0x68, 0x42, + 0xce, 0xe0, 0x79, 0xe3, 0x35, 0xdf, 0x8b, 0x92, 0x1d, 0xdf, 0x63, 0x07, 0x8f, 0x62, 0x11, 0x0c, + 0x75, 0x98, 0xa9, 0xe2, 0x6b, 0xb6, 0xd2, 0xdc, 0xa0, 0xbf, 0x02, 0xe7, 0x3e, 0x71, 0xd8, 0x29, + 0x67, 0xe4, 0x51, 0xa5, 0x8b, 0x75, 0x26, 0x10, 0x0e, 0xd9, 0x21, 0xab, 0x5d, 0x12, 0xd5, 0x3a, + 0x5b, 0x7d, 0xec, 0x20, 0xa3, 0x0a, 0xe3, 0x28, 0x7b, 0xbc, 0xe8, 0x51, 0xf6, 0x44, 0x4e, 0xe0, + 0xee, 0x4f, 0x95, 0xc8, 0x59, 0xfc, 0x30, 0x76, 0x90, 0x67, 0xec, 0x84, 0x64, 0x1e, 0x7b, 0xd0, + 0xf6, 0x13, 0x09, 0x13, 0x2b, 0x2c, 0x47, 0x97, 0xb6, 0xf9, 0x68, 0x8d, 0xed, 0xba, 0xcd, 0x0c, + 0xd2, 0xdc, 0xdd, 0x5f, 0x2d, 0x11, 0x16, 0x45, 0x76, 0x1a, 0xfb, 0xd8, 0x55, 0x7b, 0x1f, 0x73, + 0xf3, 0x85, 0xc6, 0x80, 0x2d, 0xec, 0x35, 0xb2, 0x80, 0xd8, 0x7a, 0x14, 0x3e, 0x38, 0x92, 0xca, + 0x75, 0xbe, 0x6f, 0xf6, 0x2f, 0x97, 0xb8, 0xb8, 0x53, 0x5a, 0xf1, 0x7d, 0x0c, 0x14, 0xd3, 0xbf, + 0x71, 0x21, 0x4b, 0x25, 0x70, 0xb9, 0xb8, 0x40, 0x63, 0xeb, 0xdf, 0x88, 0x14, 0x4b, 0x31, 0x84, + 0xfe, 0x3a, 0xdc, 0xbf, 0x57, 0x22, 0x8f, 0x9b, 0x84, 0xc6, 0x75, 0xb1, 0x3c, 0x87, 0x68, 0x8d, + 0x4c, 0x85, 0x5d, 0xcc, 0xfc, 0xa2, 0x2c, 0x80, 0x17, 0xe4, 0x88, 0xdf, 0x12, 0x70, 0xba, 0x72, + 0xcf, 0x99, 0xdc, 0x25, 0x1c, 0x54, 0x49, 0xcc, 0x28, 0xc1, 0x2c, 0xd1, 0x58, 0x5c, 0xf4, 0x63, + 0x19, 0x25, 0xd8, 0x31, 0x00, 0x5d, 0xe4, 0x1c, 0xe3, 0xfe, 0xd5, 0x12, 0x1f, 0x65, 0xb3, 0xe9, + 0xce, 0xd7, 0xc8, 0xc2, 0x01, 0x1a, 0x0b, 0xeb, 0x0f, 0xba, 0xb8, 0x85, 0xb0, 0x63, 0xcc, 0x52, + 0x11, 0xc1, 0x39, 0xa0, 0xbb, 0xab, 0x8b, 0xa2, 0xf5, 0x0b, 0x37, 0x52, 0x6c, 0xa1, 0xaf, 0x22, + 0xf7, 0xf7, 0xc5, 0x5c, 0x65, 0x5a, 0x0b, 0x5d, 0x6c, 0xdd, 0xb0, 0xb5, 0xb6, 0x59, 0x03, 0x31, + 0x56, 0x6a, 0xb1, 0xd5, 0x39, 0x18, 0x24, 0x1e, 0xcf, 0xe5, 0x7c, 0x6a, 0xaa, 0x45, 0x54, 0x61, + 0xd9, 0xac, 0xa5, 0xd3, 0x97, 0xac, 0x2b, 0x0c, 0x18, 0x54, 0x58, 0xa6, 0x1b, 0x85, 0x87, 0x41, + 0x8b, 0x85, 0x6d, 0x57, 0xec, 0x32, 0x75, 0x85, 0x01, 0x83, 0x0a, 0x4d, 0xb4, 0x5e, 0x27, 0xe6, + 0x02, 0xdc, 0xdb, 0x11, 0x89, 0x10, 0xa6, 0xb4, 0x89, 0x76, 0xdb, 0x44, 0x82, 0x4d, 0xeb, 0xfe, + 0x4e, 0x95, 0x10, 0xad, 0x22, 0xa0, 0x87, 0x70, 0xaa, 0xe9, 0x51, 0x05, 0x89, 0x67, 0xb9, 0xa9, + 0xe4, 0xdf, 0x6f, 0xd1, 0x85, 0x97, 0xd7, 0x44, 0x41, 0xee, 0xdb, 0x7a, 0x45, 0x4e, 0x10, 0x09, + 0xce, 0xf5, 0x67, 0xa9, 0x9a, 0x9d, 0xaf, 0x97, 0xc8, 0xb4, 0xd7, 0xc6, 0x3b, 0xb0, 0x09, 0xeb, + 0x51, 0xb9, 0x88, 0xb3, 0xd2, 0x68, 0xc9, 0x8a, 0x2e, 0xcb, 0x1b, 0xf3, 0xaa, 0x3c, 0xd5, 0x32, + 0x30, 0xb9, 0xed, 0x31, 0x9b, 0xe0, 0xbc, 0x22, 0x55, 0x4b, 0xfe, 0x51, 0x96, 0xd2, 0xaa, 0x65, + 0x95, 0x89, 0x06, 0x43, 0xab, 0xc4, 0x9b, 0x22, 0x46, 0x0c, 0xfb, 0x58, 0x91, 0x3b, 0xa6, 0xd6, + 0xa6, 0x99, 0x77, 0xdd, 0x1f, 0xcf, 0xa2, 0x74, 0x44, 0xeb, 0x78, 0x91, 0x0b, 0x9c, 0x86, 0xee, + 0x96, 0x13, 0xcd, 0x9a, 0x90, 0xf9, 0x96, 0xbd, 0x49, 0x88, 0x10, 0xa5, 0xcb, 0xf9, 0x35, 0xa4, + 0x76, 0x17, 0xbd, 0x2d, 0xa4, 0x10, 0x90, 0xae, 0x82, 0xf6, 0x88, 0x45, 0x14, 0x6f, 0x76, 0x76, + 0x43, 0x11, 0xa5, 0xf4, 0x72, 0x81, 0x6f, 0x7e, 0x14, 0x53, 0xf1, 0x8c, 0x65, 0xf4, 0x36, 0x70, + 0x53, 0x70, 0x01, 0xc5, 0x0f, 0xdd, 0x44, 0xec, 0x76, 0x04, 0xde, 0xa9, 0xad, 0x0c, 0x71, 0x51, + 0x84, 0xdd, 0xad, 0xd0, 0x9b, 0x2f, 0xfb, 0x49, 0xc5, 0x15, 0xe7, 0x45, 0xf5, 0x7a, 0x71, 0xe5, + 0x35, 0xde, 0xec, 0xdc, 0x8e, 0x7d, 0x76, 0x8f, 0xb6, 0xba, 0xfa, 0xac, 0xbe, 0x18, 0xcb, 0xe1, + 0x99, 0x59, 0x8e, 0xac, 0x92, 0xb8, 0x07, 0x8b, 0xdf, 0x32, 0x79, 0xd2, 0x22, 0x29, 0xd2, 0x50, + 0x3b, 0xd5, 0x92, 0x1e, 0xec, 0x3b, 0x36, 0x33, 0x48, 0x73, 0x5f, 0x0a, 0xc8, 0xac, 0xb5, 0x62, + 0x47, 0xe8, 0xec, 0x6c, 0x93, 0x85, 0xf4, 0x92, 0x1c, 0xa1, 0x8f, 0xf3, 0x8f, 0xc7, 0xc8, 0x9c, + 0x3d, 0x31, 0x30, 0x82, 0xe1, 0x80, 0xa5, 0x36, 0xd2, 0x09, 0x55, 0xd4, 0xfc, 0xbf, 0x21, 0x11, + 0xa0, 0x69, 0x58, 0x6a, 0x19, 0x56, 0xfc, 0xf6, 0xed, 0x7e, 0xe1, 0xdd, 0x50, 0x18, 0x30, 0xa8, + 0x50, 0x61, 0xdb, 0x09, 0xc3, 0x44, 0x09, 0x6e, 0x35, 0x67, 0x56, 0x19, 0x14, 0x04, 0x16, 0x05, + 0xf6, 0x3d, 0xec, 0x50, 0xdb, 0xf6, 0x77, 0x29, 0x81, 0x7d, 0xdd, 0x44, 0x82, 0x4d, 0x8b, 0x1b, + 0x50, 0x18, 0xb3, 0x49, 0x28, 0xd4, 0x42, 0x1d, 0x8b, 0xd3, 0xe0, 0xb7, 0x85, 0x24, 0xde, 0xf9, + 0x12, 0x79, 0x5c, 0x5d, 0xee, 0x01, 0xee, 0x3f, 0x94, 0x35, 0x4e, 0x58, 0xb6, 0xdd, 0xe3, 0x6b, + 0xd9, 0x64, 0x30, 0xa8, 0x3c, 0x1e, 0xf1, 0x0a, 0x95, 0x4e, 0x72, 0x9c, 0xb4, 0x8f, 0x78, 0xaf, + 0x5b, 0x58, 0x48, 0x51, 0x53, 0x7d, 0x62, 0x01, 0x21, 0x4c, 0x95, 0x92, 0x1c, 0xf8, 0x25, 0x25, + 0xb5, 0x33, 0x5f, 0x4f, 0xe1, 0xa1, 0xaf, 0x04, 0xba, 0x0e, 0xb9, 0x6e, 0x81, 0x16, 0x0c, 0xfb, + 0x0e, 0x22, 0xaa, 0x50, 0x2d, 0x82, 0x5b, 0x36, 0x1a, 0xd2, 0xf4, 0x78, 0x46, 0xee, 0x45, 0xf4, + 0xa3, 0x27, 0x54, 0x45, 0xe8, 0x45, 0xfc, 0x86, 0xba, 0x71, 0x46, 0xbe, 0x62, 0xe0, 0xc0, 0xa2, + 0x74, 0x3f, 0x20, 0x67, 0x33, 0x82, 0x97, 0x71, 0xe2, 0xd0, 0x09, 0x2a, 0xfb, 0x94, 0x8a, 0xc6, + 0xc1, 0x1b, 0x2b, 0xa2, 0x37, 0x06, 0x15, 0xce, 0x4e, 0xe6, 0x38, 0x35, 0xf2, 0x9c, 0xa9, 0xd9, + 0xb9, 0x21, 0x11, 0xa0, 0x69, 0xdc, 0xff, 0x46, 0x77, 0x6d, 0xed, 0x66, 0x28, 0x10, 0x83, 0x41, + 0xbb, 0x29, 0x53, 0xf7, 0x19, 0x29, 0xb3, 0x54, 0x37, 0xaf, 0x1a, 0x38, 0xb0, 0x28, 0xb1, 0x6d, + 0x1d, 0xe9, 0x34, 0x49, 0xc7, 0xfe, 0x28, 0x6f, 0x0a, 0x68, 0x1a, 0xf4, 0xf1, 0xc5, 0x7e, 0x7b, + 0x77, 0x2b, 0xe8, 0xdc, 0x13, 0x13, 0x5b, 0x49, 0xe5, 0x86, 0x80, 0x83, 0xa2, 0x70, 0xde, 0x26, + 0x95, 0x5e, 0xd0, 0x12, 0x53, 0x79, 0x59, 0xea, 0x9d, 0x74, 0x35, 0x51, 0x89, 0xf9, 0x74, 0x76, + 0x3e, 0x42, 0x34, 0x23, 0xe3, 0x65, 0x5c, 0x7c, 0x58, 0x34, 0xcb, 0x7f, 0x3c, 0x31, 0xa4, 0xff, + 0x98, 0x7e, 0x33, 0xd1, 0x67, 0x39, 0x93, 0x2b, 0xfa, 0x9b, 0x5d, 0x55, 0x18, 0x30, 0xa8, 0xd0, + 0x18, 0x6d, 0x52, 0x03, 0x4c, 0x5a, 0x6b, 0x3c, 0xb2, 0x76, 0xea, 0x23, 0x18, 0xa3, 0x6b, 0x69, + 0x6e, 0xd0, 0x5f, 0x81, 0xd3, 0x25, 0x67, 0x5a, 0xb8, 0x8e, 0xac, 0x5a, 0xab, 0x27, 0x88, 0xe7, + 0xc5, 0x1a, 0x6b, 0x69, 0x4e, 0xd0, 0xcf, 0xdc, 0xf9, 0x0a, 0x59, 0x92, 0xc0, 0xfe, 0xeb, 0x7b, + 0x6c, 0xb9, 0x54, 0x56, 0x9f, 0xa2, 0xdc, 0x96, 0x6a, 0x03, 0xa9, 0xe0, 0x18, 0x0e, 0xce, 0xbb, + 0x64, 0x82, 0x9d, 0x38, 0xc4, 0x8b, 0xd3, 0x6c, 0xb7, 0x7b, 0xad, 0xa8, 0xc3, 0x6d, 0x99, 0x9d, + 0x5b, 0x88, 0x80, 0x44, 0x7d, 0x8a, 0xc3, 0x80, 0x20, 0x78, 0xd2, 0xf1, 0x9a, 0xf6, 0x3a, 0x9d, + 0x30, 0xf1, 0xb8, 0x12, 0x36, 0x53, 0x44, 0x8f, 0x34, 0xaa, 0x58, 0xd1, 0x65, 0x79, 0x3d, 0x2a, + 0x3a, 0xca, 0xc0, 0x80, 0x59, 0x05, 0x6e, 0xe3, 0xe1, 0x7d, 0x14, 0x98, 0xd2, 0xe9, 0x1e, 0x2f, + 0xce, 0x16, 0xd9, 0xc6, 0x6f, 0x59, 0x85, 0x0c, 0x09, 0x66, 0x33, 0x83, 0x34, 0x77, 0x0c, 0xb7, + 0x35, 0xfc, 0xa8, 0x73, 0x3a, 0xdc, 0x56, 0xfb, 0x51, 0x4d, 0xb7, 0x29, 0xbb, 0x1a, 0xca, 0x43, + 0xf3, 0x98, 0x24, 0x98, 0x4f, 0x5d, 0x0d, 0xd5, 0x28, 0x30, 0xe9, 0x96, 0xde, 0x22, 0xd3, 0xc6, + 0x80, 0x0f, 0x13, 0xd7, 0xb9, 0xf4, 0x79, 0xba, 0xfb, 0xa7, 0x06, 0x72, 0xa8, 0xb8, 0xd0, 0xff, + 0x5e, 0x26, 0xf3, 0x19, 0x27, 0x19, 0xf7, 0x02, 0x16, 0xf9, 0x6c, 0x89, 0xbc, 0xeb, 0x14, 0x06, + 0x0c, 0x63, 0x0b, 0xae, 0x72, 0x01, 0xc1, 0x25, 0xa5, 0x68, 0x65, 0xa0, 0x14, 0x15, 0xc2, 0x6a, + 0xec, 0xe4, 0xc2, 0xca, 0xde, 0x1d, 0xc6, 0x0b, 0xed, 0x0e, 0x0f, 0x41, 0xc0, 0x59, 0x1b, 0xcc, + 0x64, 0x81, 0x0d, 0xe6, 0xc3, 0x12, 0x99, 0xb3, 0x67, 0x5e, 0x81, 0x11, 0x7f, 0x54, 0x07, 0x70, + 0x99, 0x19, 0x62, 0x49, 0x14, 0xb6, 0xdb, 0x7e, 0x24, 0x22, 0xc5, 0xe6, 0x84, 0x5d, 0x25, 0xa0, + 0x60, 0x50, 0xb8, 0xbf, 0x50, 0x26, 0x0b, 0x3a, 0x6c, 0x58, 0xa4, 0x30, 0x1d, 0xdd, 0xd1, 0xc0, + 0xb6, 0x75, 0x34, 0x90, 0x97, 0x99, 0x34, 0xd5, 0xae, 0x81, 0xc7, 0x04, 0xef, 0xa6, 0x8e, 0x09, + 0x5e, 0x1b, 0x92, 0xef, 0xf1, 0x47, 0x06, 0xff, 0xa4, 0x4c, 0x1e, 0x4b, 0x17, 0x59, 0x6b, 0x7b, + 0xc1, 0xc1, 0x08, 0xc7, 0xe9, 0x4b, 0xd6, 0x38, 0xbd, 0x31, 0x5c, 0x7f, 0x58, 0xe3, 0x06, 0x0e, + 0x96, 0x97, 0x1a, 0xac, 0xb7, 0x4e, 0xc2, 0xfc, 0xf8, 0x11, 0xfb, 0x8f, 0x25, 0xf2, 0x44, 0x66, + 0xb9, 0xd3, 0x70, 0x81, 0x7e, 0xd1, 0x76, 0x81, 0xbe, 0x7a, 0x82, 0xee, 0x0d, 0xf0, 0x89, 0xfe, + 0x97, 0xf2, 0x80, 0x6e, 0x31, 0x6f, 0xd9, 0x2d, 0xba, 0xfd, 0x36, 0xe9, 0x26, 0x15, 0x63, 0x6c, + 0xa4, 0x3c, 0xe4, 0xbb, 0xc8, 0xf6, 0x4f, 0x0d, 0xa6, 0x6b, 0x7f, 0x29, 0xcd, 0x42, 0xa3, 0xc1, + 0xe4, 0x60, 0xe7, 0xc6, 0x2a, 0x8f, 0x28, 0x37, 0x16, 0x95, 0x31, 0x87, 0xca, 0x4a, 0x4f, 0x3b, + 0xe1, 0x0c, 0xfb, 0xdd, 0xa0, 0xa2, 0x6a, 0x12, 0xea, 0xb4, 0x3c, 0x44, 0x62, 0x2c, 0x77, 0xc1, + 0x59, 0x1f, 0xd0, 0x8c, 0xb7, 0xe0, 0x77, 0x1f, 0x95, 0xc7, 0x52, 0xf1, 0x74, 0xbf, 0x59, 0x21, + 0x1f, 0x3f, 0x66, 0xda, 0xd1, 0x4d, 0xc2, 0x3a, 0xf9, 0x7c, 0x29, 0xed, 0x9e, 0x5a, 0xca, 0x2c, + 0x6c, 0xf9, 0xab, 0x52, 0x1f, 0xab, 0xfc, 0x91, 0x3f, 0xd6, 0xcf, 0x9b, 0xce, 0x44, 0x1e, 0xea, + 0x78, 0xf5, 0xc4, 0x0b, 0xeb, 0xe1, 0x79, 0x17, 0x4f, 0xd1, 0xf1, 0x81, 0xe9, 0xa8, 0x3f, 0x99, + 0xd9, 0x29, 0x2b, 0xc0, 0x02, 0xaf, 0x8a, 0x21, 0xd0, 0xb8, 0x8b, 0xa2, 0xaf, 0x8a, 0x49, 0x04, + 0x68, 0x1a, 0x2b, 0x8e, 0xa2, 0x9c, 0x1b, 0x47, 0xf1, 0x6f, 0x4b, 0xe4, 0x5c, 0xba, 0x11, 0xa7, + 0x21, 0x75, 0x1a, 0xb6, 0xd4, 0x59, 0x1e, 0xee, 0xdb, 0x0f, 0x10, 0x38, 0x3f, 0x37, 0x43, 0xce, + 0xf7, 0x6d, 0x56, 0x7c, 0x18, 0x7f, 0xbc, 0x44, 0xce, 0xec, 0x31, 0xfb, 0xc2, 0xb8, 0xf1, 0x23, + 0x3a, 0x96, 0x73, 0xdd, 0xe9, 0xd8, 0x8b, 0x42, 0xdc, 0x5a, 0xea, 0x23, 0x81, 0xfe, 0xca, 0x9c, + 0x9f, 0xa1, 0x43, 0xed, 0xdd, 0x8f, 0xfb, 0xf2, 0xe1, 0x8b, 0x79, 0xf4, 0xf9, 0x1c, 0x57, 0x5e, + 0x4e, 0x26, 0xfd, 0xd5, 0x45, 0x8c, 0x15, 0xcd, 0xa2, 0x82, 0xcc, 0x5a, 0xa9, 0x12, 0xc0, 0xb3, + 0x84, 0xa1, 0xda, 0x57, 0xe8, 0x0e, 0x5a, 0xd6, 0xfd, 0x03, 0x2e, 0x93, 0x24, 0x06, 0x14, 0x47, + 0xe7, 0x3d, 0x52, 0xdd, 0x93, 0x97, 0x7c, 0x84, 0xd0, 0xcb, 0xd9, 0x59, 0x32, 0xef, 0x04, 0xf1, + 0x28, 0x77, 0x85, 0x02, 0xcd, 0xd4, 0xb9, 0x46, 0x2a, 0x9d, 0xdd, 0x58, 0xdc, 0xbb, 0xcd, 0x8b, + 0xa3, 0xb1, 0xa3, 0x96, 0xf8, 0x4d, 0x42, 0x0a, 0x04, 0x64, 0x81, 0x9c, 0xa2, 0x9d, 0x96, 0xf0, + 0x61, 0xe7, 0x70, 0x82, 0xd5, 0x5a, 0x3f, 0x27, 0x0a, 0x04, 0x64, 0xc1, 0x02, 0xf6, 0xf0, 0xbe, + 0x82, 0x70, 0x50, 0xe7, 0x5c, 0xca, 0xee, 0xbb, 0x95, 0xc1, 0x53, 0xca, 0x31, 0x30, 0x70, 0x46, + 0xe8, 0x99, 0x6e, 0xb2, 0x14, 0xd0, 0xc2, 0x7f, 0x90, 0x97, 0x18, 0xb8, 0x2f, 0x5d, 0x34, 0x3f, + 0x48, 0xe3, 0x70, 0x10, 0xbc, 0x18, 0x57, 0xbf, 0xbb, 0xbf, 0x1b, 0x0b, 0xff, 0x40, 0x1e, 0xd7, + 0xbe, 0x64, 0xde, 0x82, 0x2b, 0x83, 0x83, 0xe0, 0xe5, 0xd4, 0x48, 0x79, 0xb7, 0x29, 0xf2, 0x38, + 0xe6, 0x58, 0xb4, 0xf6, 0xb5, 0xd0, 0xd5, 0x09, 0x8c, 0xa0, 0xdb, 0x58, 0x03, 0x5a, 0x9e, 0xea, + 0x23, 0x93, 0xbb, 0xfc, 0xa6, 0x9f, 0xc8, 0xd9, 0x78, 0x39, 0xef, 0x36, 0x62, 0xdf, 0xb5, 0x40, + 0x7e, 0x93, 0x41, 0x20, 0x40, 0xb2, 0xa3, 0xfb, 0x30, 0xd9, 0x55, 0x57, 0x17, 0x45, 0xd2, 0xc6, + 0xe5, 0xe1, 0xae, 0x3a, 0x0a, 0xeb, 0x59, 0x41, 0xc1, 0xe0, 0x88, 0x73, 0xde, 0x93, 0x59, 0xec, + 0x59, 0xc2, 0xc6, 0xdc, 0x39, 0x9f, 0x99, 0xf4, 0x9e, 0xcf, 0x79, 0x85, 0x02, 0xcd, 0xd4, 0xe9, + 0x91, 0xd9, 0xc3, 0xb8, 0xbb, 0xef, 0xcb, 0xa5, 0xcf, 0xb2, 0x38, 0x4e, 0x5f, 0xf9, 0x5c, 0x4e, + 0x6a, 0x4e, 0x51, 0x24, 0x88, 0x92, 0x9e, 0xd7, 0xee, 0x93, 0x60, 0x2c, 0x1d, 0xd2, 0x1d, 0x93, + 0x2d, 0xd8, 0xb5, 0xe0, 0x27, 0x79, 0xbf, 0x17, 0xee, 0x1c, 0x25, 0xbe, 0xc8, 0xf2, 0x98, 0xf3, + 0x49, 0xde, 0xe1, 0xc4, 0xfd, 0x9f, 0x44, 0x20, 0x40, 0xb2, 0x53, 0x43, 0xc6, 0xa4, 0xf1, 0x42, + 0xe1, 0x21, 0xeb, 0xeb, 0x83, 0x1e, 0x32, 0x26, 0x7d, 0x35, 0x53, 0xf7, 0xf7, 0xc7, 0xfb, 0x37, + 0x38, 0xa6, 0x7f, 0xfe, 0x6c, 0xff, 0x71, 0xe6, 0xdb, 0xc3, 0xdb, 0x57, 0x0f, 0xf1, 0x60, 0x93, + 0xee, 0x0f, 0xe7, 0xbb, 0x99, 0xbb, 0x97, 0xd8, 0x21, 0x86, 0x35, 0xd3, 0xf8, 0xd0, 0xa8, 0x9c, + 0xa1, 0xd9, 0x78, 0x18, 0x50, 0x67, 0x5a, 0xe5, 0xab, 0x7c, 0x64, 0x95, 0xef, 0x2e, 0x1d, 0x6f, + 0xd4, 0x52, 0x74, 0xd2, 0x8a, 0x21, 0xf3, 0x3c, 0xb0, 0xbd, 0x66, 0x4d, 0xb0, 0x00, 0xc5, 0x0c, + 0x07, 0xee, 0xc9, 0x74, 0x27, 0xc0, 0x67, 0x68, 0x91, 0xec, 0x94, 0xfb, 0x02, 0x36, 0xc4, 0x48, + 0x3c, 0x59, 0x3f, 0x8e, 0xf8, 0xc3, 0x3c, 0x02, 0x38, 0xbe, 0xb2, 0xd3, 0x54, 0x21, 0xff, 0x61, + 0x29, 0x43, 0xe1, 0xe1, 0x4a, 0xff, 0xe7, 0x6c, 0xa5, 0xff, 0xf9, 0xb4, 0xd2, 0xdf, 0x67, 0xa2, + 0x5b, 0xfa, 0x7e, 0xf1, 0x84, 0x7f, 0x45, 0xb3, 0x6a, 0xb8, 0xff, 0xab, 0x44, 0x2a, 0xf5, 0xb0, + 0x35, 0x42, 0x27, 0xc0, 0x55, 0xcb, 0x09, 0xf0, 0x5c, 0xee, 0xf3, 0x35, 0x03, 0x4d, 0xfe, 0x5b, + 0x29, 0x93, 0xff, 0xd3, 0xf9, 0xac, 0x8e, 0x37, 0xf0, 0xbf, 0x55, 0x21, 0xe6, 0x03, 0x3c, 0xce, + 0x6f, 0x9f, 0x24, 0xaa, 0xb1, 0x52, 0xec, 0x4d, 0x1e, 0x51, 0x07, 0x8b, 0x01, 0x92, 0x57, 0x9e, + 0xfe, 0xd4, 0x06, 0x37, 0xde, 0xf5, 0x83, 0xbd, 0xfd, 0xc4, 0x6f, 0xa5, 0x3b, 0x76, 0x7a, 0xc1, + 0x8d, 0xff, 0xb5, 0x44, 0xe6, 0x53, 0xb5, 0x3b, 0x07, 0x59, 0xb7, 0x26, 0x4e, 0x6a, 0xd5, 0x9f, + 0xc9, 0xbd, 0x67, 0xb1, 0x4c, 0x88, 0xf2, 0x44, 0x4b, 0xdb, 0x9b, 0xe9, 0x21, 0xca, 0x55, 0x1d, + 0x83, 0x41, 0x81, 0x5e, 0xfc, 0x24, 0xec, 0x86, 0xed, 0x70, 0xef, 0xe8, 0xba, 0x2f, 0x2f, 0xe5, + 0x2b, 0x2f, 0xfe, 0xb6, 0x46, 0x81, 0x49, 0x87, 0x09, 0x9b, 0xd2, 0xef, 0x37, 0xfd, 0xff, 0x89, + 0xfa, 0xa7, 0x67, 0xa2, 0xfe, 0x6e, 0x89, 0x2c, 0x60, 0xed, 0x2c, 0x84, 0x43, 0x86, 0x20, 0xaa, + 0xcc, 0xd9, 0xa5, 0x63, 0x32, 0x67, 0xe3, 0x1d, 0x8e, 0xa4, 0x15, 0xf6, 0x64, 0x36, 0x17, 0x43, + 0x8a, 0x21, 0x14, 0x04, 0x56, 0xd0, 0xd1, 0x36, 0x89, 0xfb, 0x19, 0x26, 0x1d, 0x85, 0x82, 0xc0, + 0xca, 0xc4, 0xda, 0x63, 0xd9, 0x89, 0xb5, 0x79, 0xf2, 0x1b, 0x11, 0x3a, 0x20, 0x76, 0x66, 0x23, + 0xf9, 0x8d, 0x8c, 0x29, 0xd0, 0x34, 0xee, 0x3f, 0xab, 0x90, 0x19, 0x8c, 0xa0, 0x53, 0xe1, 0xc5, + 0xaf, 0x59, 0xe1, 0xc5, 0xcf, 0xa4, 0xc2, 0x8b, 0x17, 0x4c, 0xda, 0x87, 0x13, 0x5d, 0x2c, 0xd2, + 0x24, 0xb1, 0xd4, 0xef, 0x27, 0x8d, 0x2c, 0xb6, 0xd2, 0x24, 0x29, 0x4e, 0x60, 0x33, 0xfe, 0x33, + 0x15, 0x51, 0xfc, 0x27, 0x25, 0x32, 0x47, 0xbf, 0x05, 0x4e, 0xd1, 0x3f, 0x4b, 0xf3, 0xd1, 0x4c, + 0xae, 0x34, 0x71, 0x4c, 0x72, 0xa5, 0x5f, 0x29, 0x11, 0x0c, 0xfc, 0x3c, 0x0d, 0x6f, 0xda, 0x86, + 0xed, 0x4d, 0xfb, 0x64, 0xae, 0xf0, 0x1d, 0xe0, 0x40, 0xfb, 0xf5, 0x0a, 0x99, 0xc5, 0x26, 0x87, + 0x7b, 0xf2, 0x83, 0x59, 0x83, 0x53, 0x2a, 0x30, 0x38, 0x98, 0xa0, 0x21, 0x6c, 0xb7, 0xc3, 0xfb, + 0xe9, 0x8f, 0xb7, 0xc1, 0xa0, 0x20, 0xb0, 0xe8, 0xa6, 0xec, 0x62, 0x12, 0x99, 0xb0, 0x17, 0xa7, + 0xaf, 0x7b, 0xd5, 0x05, 0x1c, 0x14, 0x05, 0x5d, 0xf1, 0x33, 0x71, 0x40, 0x6d, 0x00, 0x19, 0x5b, + 0x30, 0xc6, 0x62, 0x0b, 0x78, 0x0e, 0x3b, 0x03, 0x0e, 0x16, 0x15, 0x55, 0x35, 0xab, 0xec, 0x37, + 0x5b, 0x43, 0x27, 0xc8, 0xf6, 0xcd, 0x13, 0x2c, 0x49, 0x0e, 0xa0, 0x99, 0xe1, 0x31, 0x40, 0x22, + 0xc3, 0x20, 0x62, 0x71, 0x6c, 0xa8, 0x94, 0x53, 0x15, 0x20, 0x81, 0xb9, 0xac, 0xd4, 0xff, 0xce, + 0x4b, 0x98, 0xba, 0x35, 0x68, 0x6f, 0xe1, 0x2b, 0x12, 0x22, 0x90, 0x44, 0xe4, 0x62, 0x15, 0x40, + 0xd0, 0x78, 0xdc, 0xf3, 0xd9, 0x65, 0x53, 0xfe, 0x96, 0xc0, 0x14, 0xa3, 0x66, 0x7b, 0xfe, 0x96, + 0x82, 0x82, 0x41, 0xe1, 0xbe, 0xca, 0xf6, 0xee, 0x21, 0xc3, 0xcf, 0xbf, 0x57, 0x26, 0x4e, 0x9d, + 0x85, 0x5b, 0x58, 0xcf, 0x2d, 0xec, 0x93, 0xb9, 0x98, 0x1a, 0xab, 0x9d, 0xde, 0x03, 0xc1, 0xaa, + 0x58, 0xc0, 0x7f, 0x63, 0xdd, 0x2c, 0xc3, 0x2f, 0x58, 0xda, 0x30, 0x48, 0xf1, 0xc5, 0x21, 0x89, + 0x7a, 0x9d, 0x95, 0x18, 0xdf, 0x6d, 0x13, 0x0f, 0x26, 0xb0, 0x21, 0x01, 0x09, 0x04, 0x8d, 0xc7, + 0x39, 0xc0, 0x7e, 0xdc, 0xa4, 0xd2, 0x28, 0x0c, 0x13, 0x39, 0x6b, 0x58, 0xf6, 0x6c, 0x03, 0x0e, + 0x16, 0x15, 0x26, 0x9e, 0x8e, 0x7b, 0xdd, 0x6e, 0x9b, 0x9d, 0xee, 0x78, 0xed, 0xab, 0x51, 0xd8, + 0xeb, 0xf2, 0x88, 0x5b, 0x91, 0x78, 0xba, 0xd1, 0x87, 0x85, 0x8c, 0x12, 0xb8, 0xe8, 0x77, 0x63, + 0xf6, 0xbf, 0xb8, 0x40, 0xca, 0x7d, 0x4c, 0x0d, 0x06, 0x02, 0x89, 0x73, 0x7b, 0x6c, 0xab, 0x62, + 0x89, 0xec, 0x31, 0x12, 0xcc, 0xf1, 0xc9, 0x6c, 0x97, 0x6d, 0x47, 0xf2, 0x88, 0xb9, 0xd0, 0x50, + 0xa6, 0x02, 0x3e, 0x78, 0xc2, 0x6a, 0x93, 0x0d, 0xd8, 0x5c, 0xdd, 0x7f, 0x4f, 0x98, 0xac, 0x11, + 0x07, 0x6b, 0x93, 0x22, 0x9c, 0x53, 0xe8, 0x62, 0xcf, 0x16, 0x79, 0xb9, 0x45, 0xcb, 0x71, 0x11, + 0x1c, 0x0a, 0x92, 0x8b, 0xf3, 0x65, 0x7e, 0x46, 0xce, 0xd6, 0x77, 0xf1, 0xe7, 0x94, 0x38, 0xbd, + 0x15, 0xa8, 0x2c, 0x58, 0x80, 0xc1, 0xce, 0xd9, 0x22, 0xb3, 0x22, 0xdb, 0xb9, 0xb0, 0xd5, 0x2b, + 0x96, 0xbd, 0x3a, 0x0b, 0x26, 0xf2, 0xc3, 0x34, 0x00, 0xec, 0xc2, 0xce, 0x1e, 0x79, 0xd2, 0x78, + 0x02, 0x25, 0x23, 0x28, 0x89, 0x0b, 0x8e, 0x4f, 0xa2, 0x17, 0x60, 0xfb, 0x38, 0x42, 0x38, 0x9e, + 0x0f, 0x1d, 0xe4, 0xc7, 0xbc, 0x66, 0x12, 0x1c, 0xfa, 0x35, 0xdf, 0x6b, 0x51, 0xad, 0xcc, 0xb7, + 0x6f, 0x17, 0x3f, 0x41, 0x2b, 0x78, 0x6c, 0x25, 0x8b, 0x00, 0xb2, 0xcb, 0x51, 0x7b, 0xbd, 0xda, + 0xea, 0xc4, 0x62, 0x0c, 0x26, 0xac, 0xd7, 0x5e, 0xaa, 0xb5, 0x9b, 0x0d, 0xd5, 0x7f, 0xfd, 0x03, + 0x74, 0x01, 0xe7, 0x7d, 0xfe, 0x08, 0xad, 0x32, 0x48, 0xf8, 0x2b, 0x43, 0x6f, 0x14, 0x32, 0x81, + 0xad, 0x8b, 0x10, 0xdc, 0x8d, 0xa5, 0x82, 0xff, 0xac, 0x3b, 0x12, 0x56, 0x15, 0xce, 0x0f, 0xd3, + 0x85, 0xe5, 0x47, 0xf8, 0xb8, 0xea, 0x4a, 0x93, 0x65, 0x6f, 0x64, 0x27, 0x54, 0x53, 0x56, 0x04, + 0xbc, 0xd3, 0xe8, 0xa3, 0x80, 0x8c, 0x52, 0xce, 0x35, 0x94, 0x38, 0x26, 0x54, 0xc4, 0x6a, 0x4a, + 0xd5, 0x6e, 0xb1, 0xe6, 0x63, 0x82, 0x76, 0x7c, 0x6b, 0xc2, 0xe6, 0x08, 0xa9, 0x72, 0xb8, 0xad, + 0xa8, 0xac, 0xd4, 0xc4, 0x8e, 0x30, 0xec, 0xcf, 0x4c, 0x8d, 0x96, 0x12, 0x9e, 0x58, 0xdc, 0xf4, + 0x13, 0x7c, 0xfa, 0x89, 0xf9, 0x9b, 0xa7, 0x8c, 0x2c, 0x57, 0x1a, 0x05, 0x26, 0x1d, 0xea, 0x40, + 0xec, 0xa0, 0x63, 0xb3, 0xc6, 0xbc, 0xc8, 0x53, 0x7a, 0xed, 0x5c, 0xe3, 0x60, 0x90, 0x78, 0x49, + 0xba, 0x59, 0x5f, 0x63, 0x1e, 0xe1, 0x14, 0x29, 0x05, 0x83, 0xc4, 0x63, 0x74, 0x58, 0xfa, 0x4d, + 0x9d, 0xb9, 0x22, 0xde, 0xf9, 0x7e, 0x09, 0x5e, 0xf0, 0x59, 0x9d, 0x07, 0x64, 0x41, 0xbd, 0xeb, + 0xc3, 0xd3, 0x08, 0xc6, 0x8b, 0xf3, 0x45, 0x9e, 0xc0, 0xcd, 0xcc, 0x46, 0xa8, 0x82, 0x73, 0x37, + 0x53, 0x3c, 0xa1, 0xaf, 0x16, 0xeb, 0x96, 0xfc, 0x42, 0x6e, 0xa6, 0x71, 0x7c, 0x56, 0xa7, 0xb7, + 0xd3, 0x0a, 0x0f, 0xa8, 0xc8, 0x60, 0x2f, 0xfb, 0x98, 0x0f, 0xba, 0x4a, 0x04, 0x68, 0x9a, 0xa5, + 0x2f, 0x90, 0x33, 0x7d, 0x73, 0x7a, 0xa8, 0xa8, 0xb2, 0x9f, 0x1d, 0x23, 0x55, 0xe5, 0xd5, 0xa1, + 0xf5, 0x5b, 0xae, 0xb4, 0x27, 0xd2, 0xae, 0xb4, 0x29, 0xdc, 0x79, 0x4d, 0xef, 0xd9, 0x57, 0x32, + 0x5e, 0x74, 0xbc, 0x90, 0xfb, 0x11, 0x8b, 0x5f, 0xee, 0x18, 0xe2, 0xbd, 0x4b, 0xad, 0xd6, 0x8f, + 0x1d, 0xab, 0xd6, 0x17, 0x7c, 0xb0, 0x07, 0x15, 0x78, 0xba, 0xf3, 0x50, 0xb2, 0xd4, 0x63, 0x14, + 0x75, 0x04, 0x02, 0xc7, 0x31, 0xbd, 0x0b, 0x85, 0x32, 0xd3, 0xbb, 0x26, 0x4f, 0xaa, 0x77, 0x49, + 0x0e, 0xa0, 0x99, 0x61, 0x22, 0xf5, 0xa6, 0xfd, 0xb8, 0x88, 0xba, 0xb3, 0x71, 0x71, 0x88, 0xc7, + 0x3d, 0x7a, 0x46, 0x22, 0xf5, 0xb5, 0x34, 0x3f, 0xe8, 0xaf, 0x02, 0x2f, 0xd8, 0xcf, 0xab, 0x09, + 0x41, 0x77, 0x20, 0x4c, 0x55, 0x34, 0x3a, 0x47, 0xe6, 0x2d, 0xcb, 0x52, 0x7d, 0x08, 0xfe, 0xc7, + 0xdf, 0x2a, 0x31, 0xff, 0xe3, 0xb6, 0x7f, 0xd0, 0x6d, 0xe3, 0x8b, 0x25, 0xa3, 0x6b, 0xfa, 0x97, + 0xc9, 0x54, 0x22, 0x6a, 0x29, 0x96, 0xcc, 0xd9, 0x68, 0x16, 0xf3, 0xc7, 0x2a, 0x41, 0x20, 0xa1, + 0xa0, 0x18, 0xba, 0xff, 0x92, 0x7f, 0x05, 0x89, 0x39, 0x0d, 0xcb, 0xea, 0xa6, 0x6d, 0x59, 0xbd, + 0x58, 0xb8, 0x33, 0x03, 0x2c, 0xac, 0x6f, 0xda, 0x5d, 0x60, 0x0a, 0xdb, 0xa3, 0xef, 0x11, 0x77, + 0x6f, 0x10, 0xfb, 0xc1, 0x14, 0xaa, 0xae, 0xb0, 0x68, 0x4d, 0x2e, 0x11, 0x2f, 0x0c, 0x19, 0xa9, + 0xe9, 0xfe, 0x5a, 0x99, 0x9c, 0xcb, 0x7a, 0x47, 0xdd, 0x69, 0x91, 0x99, 0xae, 0xa1, 0x3e, 0x17, + 0xbb, 0xcb, 0x6f, 0x2a, 0xdc, 0x5a, 0x75, 0x31, 0xa1, 0x60, 0x71, 0xc5, 0x14, 0xea, 0xf8, 0x2a, + 0xbc, 0x72, 0xaf, 0x94, 0x87, 0x17, 0x51, 0xaa, 0x9a, 0x75, 0x83, 0x11, 0x58, 0x6c, 0x47, 0x90, + 0x6f, 0xdc, 0xfd, 0xfb, 0x25, 0xf2, 0xf8, 0x80, 0x0b, 0xff, 0x58, 0xdd, 0x7d, 0xe6, 0x85, 0x14, + 0x0f, 0xf2, 0xa8, 0xea, 0xb8, 0x6f, 0x12, 0x04, 0xd6, 0xd9, 0xc1, 0x7b, 0xa4, 0xea, 0x95, 0xd2, + 0x72, 0x91, 0x63, 0xf0, 0xbe, 0xcb, 0xc5, 0xc6, 0xbd, 0x53, 0xf5, 0x2e, 0xa9, 0xc1, 0xd5, 0xfd, + 0x46, 0x85, 0x8c, 0xf3, 0x87, 0x12, 0xeb, 0x54, 0x01, 0xe2, 0xf9, 0x05, 0x87, 0x4b, 0x6f, 0xa8, + 0xf5, 0x24, 0x0e, 0x00, 0xc9, 0xc6, 0xb9, 0x41, 0xce, 0xa2, 0x7f, 0x35, 0xf0, 0xda, 0x35, 0xbf, + 0xed, 0x1d, 0x49, 0xc5, 0x9b, 0xe7, 0x88, 0x96, 0x69, 0x50, 0xcf, 0x6e, 0xf6, 0x93, 0x40, 0x56, + 0x39, 0xbc, 0xae, 0x94, 0x4a, 0x10, 0xc4, 0xf3, 0x36, 0xaa, 0xeb, 0x4a, 0xc7, 0x27, 0x09, 0xc2, + 0x1b, 0x5b, 0xdd, 0x3e, 0x13, 0xc3, 0x78, 0x61, 0xcf, 0x36, 0x2b, 0x6c, 0x5a, 0xbc, 0xeb, 0x14, + 0xf7, 0xd8, 0x19, 0xe9, 0xf6, 0x3e, 0xb5, 0x64, 0xf6, 0xc3, 0x76, 0x4b, 0xbc, 0x0c, 0xa5, 0xd4, + 0xa9, 0x46, 0x0a, 0x0f, 0x7d, 0x25, 0x90, 0xcb, 0xae, 0x17, 0xb4, 0xe9, 0xd4, 0xd6, 0x5c, 0x26, + 0x6c, 0x2e, 0x1b, 0x29, 0x3c, 0xf4, 0x95, 0x70, 0xff, 0xb0, 0x44, 0xce, 0x66, 0x9c, 0xdc, 0xf3, + 0x80, 0xb2, 0x3d, 0x2a, 0x1a, 0x55, 0x06, 0x61, 0x23, 0xa0, 0x8c, 0xc3, 0x41, 0x51, 0xe0, 0x2c, + 0xe4, 0x76, 0x63, 0x3a, 0x21, 0xb2, 0x38, 0x2a, 0x15, 0xd8, 0xe1, 0xd2, 0xfd, 0xa8, 0xf7, 0xde, + 0xc7, 0x06, 0xbe, 0xf7, 0x4e, 0x15, 0x93, 0x3d, 0x65, 0x9d, 0x1b, 0x8a, 0x09, 0xb7, 0xcf, 0x39, + 0x0e, 0xb3, 0x7b, 0xcf, 0xa7, 0x22, 0x78, 0xb0, 0x21, 0xa9, 0x67, 0xe9, 0x99, 0x4b, 0x01, 0x63, + 0x5b, 0x32, 0x9e, 0xa6, 0x7f, 0xde, 0x7e, 0xb5, 0x56, 0xb7, 0x79, 0xb5, 0x66, 0xbd, 0xc7, 0x55, + 0x34, 0x3b, 0xf9, 0xa7, 0x30, 0x75, 0xb0, 0x7a, 0x5e, 0x51, 0x4d, 0x7a, 0xca, 0xae, 0x4e, 0xc1, + 0xc0, 0x90, 0xce, 0x73, 0xa2, 0xf7, 0x29, 0xe7, 0x24, 0x78, 0xad, 0x30, 0x36, 0x86, 0x80, 0xca, + 0x11, 0xaa, 0xd6, 0xe2, 0xa9, 0x40, 0xda, 0x35, 0x7b, 0x9d, 0x83, 0x41, 0xe2, 0xed, 0x0c, 0xe4, + 0x93, 0x23, 0xce, 0x40, 0x3e, 0x95, 0x1b, 0x85, 0xf8, 0xcb, 0x74, 0x57, 0x64, 0x69, 0xd7, 0xc4, + 0x4d, 0x50, 0x74, 0xf2, 0x8f, 0x6e, 0x57, 0xc4, 0xf7, 0xda, 0xb0, 0xb2, 0x74, 0xd2, 0x61, 0xd6, + 0x02, 0xe0, 0x38, 0x4c, 0xe2, 0xca, 0xaa, 0xc6, 0xcf, 0x37, 0xc3, 0x93, 0xb8, 0xea, 0x57, 0xbc, + 0x59, 0x8c, 0x3b, 0xf8, 0x5d, 0x6a, 0x7b, 0xb3, 0xc6, 0x6a, 0x4f, 0xcc, 0xa3, 0x12, 0xe3, 0x9e, + 0xd9, 0xb8, 0x87, 0x15, 0xe3, 0x9e, 0xcd, 0x3c, 0x3f, 0xc6, 0x3d, 0xb3, 0xdc, 0xa3, 0x17, 0xe3, + 0x9e, 0xd9, 0xcc, 0x01, 0xfa, 0xdc, 0xf7, 0xca, 0x03, 0xba, 0xc5, 0x34, 0xbb, 0x17, 0x70, 0x15, + 0x30, 0x64, 0x2c, 0x36, 0xe5, 0x19, 0xbe, 0x02, 0x38, 0x0c, 0x14, 0xd6, 0x89, 0x8d, 0x18, 0x71, + 0xde, 0xc8, 0xf5, 0x13, 0x7e, 0xe0, 0x65, 0xdb, 0x95, 0x63, 0x5e, 0xb0, 0x4c, 0x05, 0x8e, 0x63, + 0x44, 0x8e, 0x52, 0xd6, 0x2b, 0x27, 0x51, 0xd6, 0x67, 0xb2, 0x15, 0xf5, 0x25, 0xba, 0x27, 0x9e, + 0xdc, 0xf8, 0xfe, 0xc5, 0x32, 0xf9, 0xf8, 0x31, 0x33, 0x8c, 0x8b, 0x16, 0x6b, 0x50, 0x0d, 0xd1, + 0xd2, 0x37, 0xb0, 0x75, 0x72, 0x6e, 0xb7, 0xd7, 0x6e, 0x1f, 0xb1, 0x13, 0x76, 0xbf, 0x25, 0x29, + 0x84, 0xba, 0xa0, 0xde, 0x78, 0xdc, 0xc8, 0xa0, 0x81, 0xcc, 0x92, 0xe8, 0xf8, 0x0a, 0x77, 0x58, + 0x5a, 0xbb, 0x96, 0xbe, 0xff, 0xc9, 0xc6, 0xaf, 0xa2, 0x1d, 0x5f, 0xb7, 0xfa, 0x28, 0x20, 0xa3, + 0x14, 0x2a, 0x0f, 0xec, 0x79, 0x48, 0xd5, 0xac, 0x94, 0xf2, 0x00, 0x26, 0x12, 0x6c, 0x5a, 0xf7, + 0x0f, 0x4a, 0x28, 0x84, 0x32, 0x9e, 0x2f, 0xb2, 0x5e, 0xfd, 0x35, 0x02, 0xc7, 0xfb, 0x5f, 0xfd, + 0x65, 0xfe, 0x30, 0x9b, 0x96, 0x8f, 0x6f, 0xac, 0x03, 0xcf, 0xac, 0xfd, 0x5e, 0x5c, 0x98, 0x50, + 0x14, 0xf8, 0x52, 0x57, 0x2b, 0x38, 0x0c, 0xe2, 0x30, 0x2a, 0xf0, 0xc8, 0x66, 0x5f, 0x30, 0x93, + 0xde, 0xa2, 0x6a, 0x9c, 0x09, 0x48, 0x6e, 0xee, 0x5f, 0x2f, 0x93, 0x59, 0x59, 0x1f, 0x55, 0x4b, + 0xd8, 0x2a, 0x1e, 0x95, 0x68, 0x7d, 0xc7, 0x12, 0xad, 0x97, 0x8a, 0xdd, 0x1a, 0x61, 0x8d, 0x1a, + 0x28, 0x52, 0xbf, 0x94, 0x12, 0xa9, 0x97, 0x87, 0x61, 0x9a, 0x6b, 0xcd, 0x9f, 0xb1, 0xe8, 0x1f, + 0xa1, 0x5c, 0xa4, 0x59, 0xdd, 0x19, 0x20, 0x3a, 0xbf, 0x51, 0x4e, 0x75, 0x83, 0x89, 0xcc, 0xaf, + 0x91, 0xb1, 0x7d, 0x2f, 0x6a, 0x89, 0xa3, 0x8b, 0xb7, 0x86, 0xfc, 0x14, 0xd4, 0x7c, 0x88, 0x5a, + 0x5c, 0xf0, 0xbd, 0xac, 0x1e, 0x4d, 0xa0, 0xa0, 0xdc, 0x30, 0x4c, 0x56, 0xa9, 0xf3, 0x26, 0x3e, + 0xaa, 0x10, 0x76, 0x55, 0x94, 0xcd, 0x33, 0xfc, 0x41, 0x05, 0x84, 0x50, 0x0e, 0x8e, 0x5d, 0x1d, + 0x82, 0x41, 0xd0, 0x2f, 0xf9, 0xa4, 0xaa, 0xaa, 0x1e, 0x61, 0xc0, 0xdf, 0x0f, 0x2a, 0xe4, 0x6c, + 0xc6, 0x54, 0x71, 0x7e, 0xcc, 0x1a, 0xb5, 0xcf, 0x0e, 0x3d, 0xd7, 0x3e, 0xe2, 0xb8, 0xfd, 0x18, + 0x53, 0x50, 0x5b, 0x62, 0x6e, 0x9c, 0xa0, 0x7a, 0xaa, 0xc5, 0xa6, 0xab, 0x47, 0x50, 0x7e, 0xf5, + 0x58, 0xed, 0x29, 0x0d, 0x3e, 0x56, 0xa3, 0xda, 0x39, 0xc2, 0x6f, 0xfc, 0x93, 0x63, 0xe4, 0x5c, + 0xd6, 0xcd, 0x34, 0xe7, 0xa7, 0x4a, 0xa9, 0x6c, 0xc6, 0x9f, 0x1f, 0xfe, 0x7a, 0x1b, 0x4f, 0x71, + 0x2c, 0x6e, 0xac, 0x2f, 0xdb, 0xf9, 0x8d, 0x73, 0x47, 0x5b, 0xd4, 0xce, 0x42, 0xa7, 0x23, 0x9e, + 0x98, 0x5a, 0xca, 0x83, 0xb7, 0x4f, 0xd0, 0x14, 0x91, 0xdb, 0x3a, 0x4e, 0x85, 0x4e, 0x4b, 0x70, + 0x7e, 0xe8, 0xb4, 0x6c, 0xc3, 0xd2, 0x1e, 0x66, 0x35, 0x56, 0xfd, 0x1a, 0xe1, 0x14, 0x08, 0x70, + 0x4f, 0x32, 0x5a, 0x3d, 0xc2, 0x69, 0xf0, 0x37, 0x4b, 0x24, 0x75, 0x7c, 0xae, 0xac, 0xe0, 0xd2, + 0x40, 0x2b, 0x98, 0x52, 0x50, 0x5d, 0xc9, 0x4f, 0xa7, 0xd9, 0x05, 0x0a, 0x03, 0x86, 0x51, 0x4f, + 0xac, 0x55, 0x06, 0x3d, 0xb1, 0x86, 0xe6, 0x51, 0xdb, 0x3f, 0xf4, 0xa5, 0x4d, 0xaa, 0x84, 0xf7, + 0x16, 0x02, 0x81, 0xe3, 0xdc, 0xef, 0x54, 0xc8, 0x04, 0x37, 0xfc, 0x46, 0xb8, 0x2d, 0xd7, 0x85, + 0x0d, 0x56, 0xe8, 0x8e, 0x18, 0x6f, 0xcd, 0x32, 0x1a, 0x69, 0x7c, 0x42, 0xa9, 0xbe, 0x69, 0xbb, + 0xcd, 0x59, 0xb6, 0x7a, 0xbf, 0x94, 0x8a, 0x1c, 0x23, 0x9c, 0x87, 0x31, 0x16, 0xfb, 0x84, 0xc4, + 0xec, 0x95, 0x1e, 0xe4, 0x21, 0xf2, 0x74, 0xbd, 0x56, 0xa8, 0x1d, 0x0d, 0x55, 0x8c, 0xb7, 0x46, + 0x27, 0x08, 0x52, 0x08, 0x30, 0x78, 0x2f, 0xbd, 0x41, 0xaa, 0x8a, 0x38, 0x4f, 0x5d, 0x9e, 0x31, + 0xa7, 0xe4, 0x9f, 0x23, 0xf3, 0xa9, 0xba, 0x86, 0xd2, 0xb6, 0xbf, 0x4d, 0x95, 0x89, 0xbe, 0xd7, + 0x21, 0x31, 0xd7, 0xdb, 0xb9, 0x76, 0x86, 0xc5, 0x2f, 0x3e, 0xf0, 0x49, 0x7c, 0x05, 0xfa, 0x39, + 0xf5, 0x0c, 0x2c, 0x64, 0xd6, 0x26, 0x33, 0x0f, 0x96, 0xb3, 0x33, 0x0f, 0xb2, 0xa7, 0x49, 0x78, + 0xdb, 0x4f, 0x43, 0x03, 0xda, 0xb4, 0x35, 0xa0, 0x67, 0x8b, 0x4c, 0x83, 0x01, 0xaa, 0xcf, 0xbf, + 0x29, 0x11, 0x87, 0x13, 0xa4, 0x5f, 0xeb, 0xe2, 0x1e, 0x14, 0x43, 0x67, 0xd7, 0xf3, 0x46, 0x61, + 0xc0, 0xa0, 0x1a, 0x32, 0x13, 0xb3, 0x7a, 0xe5, 0xa6, 0xd8, 0x93, 0xd8, 0x95, 0x02, 0x4f, 0x62, + 0xff, 0x56, 0x85, 0xa4, 0x8f, 0x9a, 0x9d, 0xf7, 0xc8, 0x0c, 0x5e, 0x6b, 0xd9, 0x09, 0xda, 0x41, + 0x12, 0xf8, 0x71, 0x31, 0x37, 0xfe, 0x9a, 0x51, 0x42, 0xf8, 0xe0, 0x0c, 0x08, 0x58, 0x1c, 0x31, + 0x3e, 0xaa, 0x1b, 0x51, 0x4b, 0xa1, 0xed, 0xef, 0x31, 0xbd, 0x43, 0xe5, 0x6d, 0xa8, 0x2b, 0x28, + 0x18, 0x14, 0x19, 0x31, 0x4d, 0x95, 0xd3, 0x88, 0x69, 0x1a, 0x1b, 0x32, 0xa6, 0x69, 0xbc, 0x50, + 0x4c, 0x13, 0x90, 0xf3, 0xd2, 0x75, 0x86, 0xbf, 0xf1, 0x6a, 0x18, 0x4f, 0x35, 0x26, 0x22, 0xd1, + 0x96, 0xf0, 0xba, 0x0f, 0x64, 0x52, 0xc0, 0x80, 0x92, 0x6e, 0x8f, 0x9c, 0x6d, 0xf8, 0x51, 0xc0, + 0x32, 0xc1, 0xb4, 0xf4, 0x0a, 0xfc, 0x0a, 0x5e, 0xaa, 0xb7, 0x17, 0xff, 0x90, 0xb7, 0x76, 0x8c, + 0xfb, 0xf4, 0x72, 0xb1, 0x6b, 0x96, 0xee, 0x5f, 0x2a, 0x93, 0x49, 0x11, 0xd2, 0x31, 0xc2, 0x8d, + 0xe4, 0xba, 0x65, 0xdf, 0xbd, 0x98, 0xb7, 0x72, 0x59, 0x73, 0x06, 0x5a, 0x76, 0x8d, 0x94, 0x65, + 0xf7, 0x52, 0x31, 0x76, 0xc7, 0xdb, 0x74, 0xbf, 0x59, 0xa6, 0xbb, 0xbd, 0x1d, 0xca, 0x32, 0xba, + 0xe1, 0xf8, 0x22, 0x99, 0x8c, 0x45, 0xbc, 0x47, 0xa1, 0x47, 0xc8, 0xd3, 0x9f, 0x54, 0x3f, 0xaf, + 0x2d, 0x22, 0x3c, 0x24, 0xbb, 0xcc, 0x90, 0x92, 0xca, 0x69, 0x84, 0x94, 0xb8, 0xdf, 0x61, 0x22, + 0xd5, 0x1c, 0xc0, 0xd3, 0xd8, 0x13, 0xde, 0xb1, 0xa5, 0xef, 0xcb, 0x85, 0xa6, 0x82, 0x68, 0xdf, + 0x80, 0xbd, 0xe1, 0x5b, 0x25, 0x32, 0x2d, 0x08, 0x4f, 0xa3, 0x07, 0x3f, 0x6c, 0xf7, 0xe0, 0xb9, + 0x42, 0x3d, 0x18, 0xd0, 0xf4, 0xbf, 0x5d, 0x56, 0x4d, 0x2f, 0xf8, 0xce, 0xbf, 0xf9, 0x8a, 0x7f, + 0x79, 0x98, 0x57, 0xfc, 0x59, 0x74, 0x2b, 0xbe, 0xb9, 0xc8, 0xb7, 0xa8, 0xac, 0x37, 0x14, 0x77, + 0xe4, 0x5b, 0xb3, 0x08, 0x13, 0x21, 0xf4, 0xc3, 0xbe, 0xcd, 0xa8, 0x63, 0x7a, 0x15, 0x27, 0x30, + 0xb8, 0xca, 0x70, 0x33, 0x56, 0xc3, 0xb8, 0xed, 0x8b, 0xbc, 0x29, 0xe0, 0xa0, 0x28, 0xdc, 0x37, + 0x98, 0x8c, 0x65, 0xc3, 0x33, 0x5c, 0xa0, 0xee, 0x4f, 0x4f, 0xa8, 0x81, 0x65, 0x4e, 0x92, 0x9b, + 0xf2, 0x5d, 0xff, 0x52, 0x91, 0xa8, 0x04, 0xe3, 0x93, 0x64, 0x3f, 0xeb, 0xef, 0xf8, 0x7d, 0xde, + 0xe7, 0x37, 0x0a, 0xcb, 0xc8, 0x21, 0xfc, 0xcd, 0x2c, 0x97, 0x05, 0xbb, 0xbf, 0xbf, 0x59, 0x4f, + 0xe7, 0x0b, 0x5c, 0x93, 0x08, 0xd0, 0x34, 0xb4, 0x00, 0x57, 0xd7, 0xed, 0x27, 0x2e, 0xa5, 0xba, + 0x2e, 0x87, 0xc4, 0xd0, 0xd7, 0xa9, 0xfe, 0xa2, 0x32, 0x26, 0xd7, 0x79, 0xe2, 0xdb, 0x2a, 0xd7, + 0x5f, 0xd6, 0x35, 0x18, 0x4c, 0x1a, 0xaa, 0xd6, 0x9d, 0x6d, 0xa9, 0xe8, 0xc2, 0x7a, 0x6f, 0xa7, + 0x1d, 0x34, 0xb1, 0x28, 0x8f, 0xec, 0x7f, 0x1c, 0x8f, 0x92, 0x6b, 0xfd, 0x68, 0xc8, 0x2a, 0xe3, + 0x6c, 0x63, 0x04, 0x1f, 0xcb, 0x0c, 0x2d, 0xef, 0x00, 0x89, 0x84, 0x5a, 0x17, 0x64, 0x36, 0xae, + 0x86, 0x8d, 0xfe, 0x90, 0x81, 0xb8, 0x50, 0x10, 0x20, 0x48, 0xb3, 0xc0, 0x03, 0xea, 0xb6, 0xf9, + 0xc2, 0x4b, 0x5d, 0x04, 0x59, 0xaa, 0x03, 0x6a, 0xeb, 0xfd, 0x97, 0x3a, 0xa4, 0xa8, 0xa9, 0xb4, + 0x5f, 0x34, 0x21, 0xe2, 0xda, 0x2f, 0x1e, 0x72, 0xc5, 0x22, 0x25, 0xed, 0x27, 0x30, 0xc4, 0x72, + 0x6b, 0x00, 0x0d, 0x0c, 0x2c, 0x8d, 0x99, 0x23, 0xe5, 0x48, 0x1a, 0x01, 0x97, 0x3a, 0x34, 0xc2, + 0xc0, 0x81, 0x45, 0xf9, 0xd1, 0x0e, 0x08, 0xbe, 0x86, 0x85, 0x8d, 0x4d, 0xd5, 0xf9, 0x2a, 0x99, + 0x31, 0xdb, 0x28, 0xc4, 0xe4, 0x2b, 0xc5, 0x5f, 0xcd, 0x11, 0x9b, 0xb3, 0x6a, 0xb9, 0x89, 0x03, + 0x8b, 0xb7, 0xdb, 0x24, 0xf3, 0xa9, 0x57, 0x3b, 0xd5, 0xf3, 0xaf, 0xa5, 0x87, 0xf5, 0xfc, 0x2b, + 0xa6, 0x86, 0x19, 0xdf, 0xf6, 0x82, 0xfc, 0xdc, 0xeb, 0x45, 0xde, 0x4f, 0x75, 0x5e, 0x27, 0x13, + 0xfe, 0xee, 0x2e, 0x3e, 0xaf, 0xcf, 0xd7, 0xdc, 0x93, 0xea, 0x51, 0x6f, 0x06, 0xc5, 0x95, 0xc4, + 0x2a, 0xe3, 0x3f, 0x41, 0x10, 0xbb, 0xff, 0x8e, 0x5a, 0x57, 0xdb, 0x61, 0x5b, 0x1e, 0x55, 0xe4, + 0xb4, 0x64, 0xb5, 0x2f, 0x0b, 0xfc, 0xf3, 0x19, 0x59, 0xe0, 0x1d, 0xcd, 0x30, 0x23, 0x07, 0xbc, + 0xea, 0x4d, 0xa5, 0x50, 0x6f, 0xc6, 0x86, 0xe9, 0xcd, 0xd7, 0x4b, 0x44, 0x84, 0x20, 0x14, 0xd8, + 0x96, 0x5a, 0x32, 0x73, 0xb3, 0x75, 0xff, 0xfe, 0x42, 0x91, 0x38, 0x7a, 0x71, 0xeb, 0x5e, 0x4d, + 0x25, 0xeb, 0xae, 0xbd, 0xc5, 0x15, 0x4d, 0xef, 0x69, 0x8e, 0xbe, 0x21, 0x5f, 0xbf, 0xcf, 0x69, + 0xd7, 0x50, 0xb9, 0x7d, 0x58, 0x62, 0x63, 0x64, 0xac, 0x52, 0xbc, 0x98, 0x89, 0x8d, 0x25, 0x02, + 0x34, 0x0d, 0x06, 0x10, 0xc4, 0xbd, 0x1d, 0x46, 0x9e, 0x8a, 0x47, 0x68, 0x70, 0x30, 0x48, 0xbc, + 0xfb, 0x3f, 0x17, 0x88, 0xd5, 0x35, 0x2b, 0x9d, 0x4c, 0xe9, 0xa1, 0xa7, 0x93, 0xa1, 0xdc, 0xfd, + 0x83, 0x6e, 0x72, 0x54, 0x0b, 0xa2, 0x62, 0xa9, 0xbd, 0xd6, 0x05, 0x75, 0x3f, 0x77, 0x89, 0x01, + 0xc5, 0x71, 0x40, 0x72, 0xa0, 0xca, 0x23, 0x91, 0x1c, 0x68, 0xec, 0xff, 0x49, 0x72, 0x20, 0x6a, + 0x21, 0xec, 0xf1, 0xe7, 0xc4, 0xc5, 0xbd, 0xa9, 0x9c, 0xe3, 0xab, 0x8c, 0xb7, 0xc7, 0xf9, 0x05, + 0x19, 0x81, 0x00, 0xc9, 0x0e, 0x53, 0xcf, 0x70, 0x63, 0x41, 0xe4, 0xdb, 0x79, 0xa5, 0x88, 0x1b, + 0xa5, 0x3f, 0xf5, 0x8c, 0x08, 0x3a, 0x11, 0xbc, 0x64, 0x32, 0xa0, 0xc9, 0x8f, 0x9e, 0x0c, 0x48, + 0xa5, 0xf0, 0x99, 0x7a, 0x58, 0x29, 0x7c, 0xac, 0x54, 0x48, 0xd5, 0x51, 0xa4, 0x42, 0xa2, 0xb2, + 0xed, 0xb1, 0x6e, 0x56, 0x26, 0x31, 0x91, 0x8c, 0xe7, 0x0b, 0x27, 0xc8, 0xac, 0x66, 0x55, 0xcd, + 0xae, 0xb3, 0x64, 0x92, 0x41, 0x76, 0xc5, 0x32, 0xa7, 0xd2, 0xf4, 0x47, 0xcf, 0xa9, 0x34, 0xea, + 0xac, 0x3d, 0x3a, 0xc3, 0xd2, 0xec, 0x48, 0x32, 0x2c, 0xcd, 0x3d, 0xc4, 0x0c, 0x4b, 0x46, 0x6e, + 0xa4, 0xf9, 0x87, 0x9b, 0x1b, 0x69, 0x9f, 0x4c, 0xb7, 0xc2, 0xfb, 0x9d, 0xfb, 0x5e, 0xd4, 0x5a, + 0xa9, 0x6f, 0x8a, 0x54, 0x3c, 0x39, 0x77, 0xde, 0x6b, 0xba, 0x80, 0x55, 0x03, 0xf7, 0x17, 0x6a, + 0x24, 0x98, 0xac, 0x45, 0x96, 0xa8, 0x33, 0x1f, 0x31, 0x4b, 0x94, 0x95, 0x6b, 0xc9, 0x19, 0x45, + 0xae, 0xa5, 0xf7, 0xd8, 0xcd, 0xd7, 0xdd, 0x60, 0xef, 0x86, 0xd7, 0x5d, 0x3c, 0x5b, 0xa4, 0x86, + 0x35, 0x49, 0xde, 0x5f, 0x83, 0x42, 0x81, 0x66, 0xda, 0x9f, 0xcd, 0xe9, 0xdc, 0x69, 0x67, 0x73, + 0x7a, 0x6c, 0x84, 0xd9, 0x9c, 0xce, 0x8f, 0x22, 0x9b, 0xd3, 0x5f, 0x20, 0x4f, 0x1d, 0xdf, 0x7f, + 0x9d, 0xa0, 0xb3, 0xae, 0x4d, 0xea, 0x54, 0x82, 0x4e, 0xa6, 0x5b, 0x18, 0x54, 0x46, 0xb0, 0x66, + 0xf9, 0xb8, 0x60, 0x4d, 0xf7, 0x9f, 0x96, 0xc8, 0xe3, 0x03, 0x12, 0x3d, 0x14, 0x8e, 0xbe, 0xee, + 0x92, 0xf9, 0xae, 0x5d, 0xb4, 0xf0, 0x3d, 0x09, 0x2b, 0xb1, 0x84, 0x4a, 0xf0, 0x9c, 0x42, 0x40, + 0x9a, 0xfd, 0xea, 0xb3, 0xdf, 0xfd, 0xc1, 0x53, 0x1f, 0xfb, 0x1e, 0xfd, 0xfb, 0x3d, 0xfa, 0xf7, + 0xe3, 0x7f, 0xf4, 0x54, 0xe9, 0xbb, 0xf4, 0xef, 0x7b, 0xf4, 0xef, 0x0f, 0xe9, 0xdf, 0xd7, 0xff, + 0xf8, 0xa9, 0x8f, 0xfd, 0x48, 0xf9, 0xf0, 0xf2, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xf4, 0x77, + 0x02, 0x29, 0xf6, 0xb0, 0x00, 0x00, } diff --git a/1.4/pkg/api/v1/generated.proto b/1.4/pkg/api/v1/generated.proto index 4b82d68d..32fb099f 100644 --- a/1.4/pkg/api/v1/generated.proto +++ b/1.4/pkg/api/v1/generated.proto @@ -89,6 +89,27 @@ message AvoidPods { repeated PreferAvoidPodsEntry preferAvoidPods = 1; } +// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. +message AzureDiskVolumeSource { + // The Name of the data disk in the blob storage + optional string diskName = 1; + + // The URI the data disk in the blob storage + optional string diskURI = 2; + + // Host Caching mode: None, Read Only, Read Write. + optional string cachingMode = 3; + + // Filesystem type to mount. + // Must be a filesystem type supported by the host operating system. + // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + optional string fsType = 4; + + // Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + optional bool readOnly = 5; +} + // AzureFile represents an Azure File Service mount on the host and bind mount to the pod. message AzureFileVolumeSource { // the name of secret that contains Azure Storage Account Name and Key @@ -256,6 +277,13 @@ message ConfigMapVolumeSource { // the volume setup will error. Paths must be relative and may not contain // the '..' path or start with '..'. repeated KeyToPath items = 2; + + // Optional: mode bits to use on created files by default. Must be a + // value between 0 and 0777. Defaults to 0644. + // Directories within the path are not affected by this setting. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + optional int32 defaultMode = 3; } // A single application container that you want to run within a pod. @@ -526,6 +554,12 @@ message DownwardAPIVolumeFile { // Selects a resource of the container: only resources limits and requests // (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. optional ResourceFieldSelector resourceFieldRef = 3; + + // Optional: mode bits to use on this file, must be a value between 0 + // and 0777. If not specified, the volume defaultMode will be used. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + optional int32 mode = 4; } // DownwardAPIVolumeSource represents a volume containing downward API info. @@ -533,6 +567,13 @@ message DownwardAPIVolumeFile { message DownwardAPIVolumeSource { // Items is a list of downward API volume file repeated DownwardAPIVolumeFile items = 1; + + // Optional: mode bits to use on created files by default. Must be a + // value between 0 and 0777. Defaults to 0644. + // Directories within the path are not affected by this setting. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + optional int32 defaultMode = 2; } // Represents an empty directory for a pod. @@ -663,7 +704,8 @@ message EnvVar { // EnvVarSource represents a source for the value of an EnvVar. message EnvVarSource { - // Selects a field of the pod; only name and namespace are supported. + // Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, + // spec.nodeName, spec.serviceAccountName, status.podIP. optional ObjectFieldSelector fieldRef = 1; // Selects a resource of the container: only resources limits and requests @@ -963,6 +1005,12 @@ message KeyToPath { // May not contain the path element '..'. // May not start with the string '..'. optional string path = 2; + + // Optional: mode bits to use on this file, must be a value between 0 + // and 0777. If not specified, the volume defaultMode will be used. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + optional int32 mode = 3; } // Lifecycle describes actions that the management system should take in response to container lifecycle @@ -1479,7 +1527,6 @@ message ObjectMeta { // (scope and select) objects. May match selectors of replication controllers // and services. // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md - // TODO: replace map[string]string with labels.LabelSet type map labels = 11; // Annotations is an unstructured key value map stored with a resource that may be @@ -1499,6 +1546,11 @@ message ObjectMeta { // from the list. If the deletionTimestamp of the object is non-nil, entries // in this list can only be removed. repeated string finalizers = 14; + + // The name of the cluster which the object belongs to. + // This is used to distinguish resources with same name and namespace in different clusters. + // This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + optional string clusterName = 15; } // ObjectReference contains enough information to let you inspect or modify the referred object. @@ -1723,6 +1775,12 @@ message PersistentVolumeSource { // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine optional VsphereVirtualDiskVolumeSource vsphereVolume = 14; + + // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + optional QuobyteVolumeSource quobyte = 15; + + // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + optional AzureDiskVolumeSource azureDisk = 16; } // PersistentVolumeSpec is the specification of a persistent volume. @@ -2292,6 +2350,30 @@ message Probe { optional int32 failureThreshold = 6; } +// Represents a Quobyte mount that lasts the lifetime of a pod. +// Quobyte volumes do not support ownership management or SELinux relabeling. +message QuobyteVolumeSource { + // Registry represents a single or multiple Quobyte Registry services + // specified as a string as host:port pair (multiple entries are separated with commas) + // which acts as the central registry for volumes + optional string registry = 1; + + // Volume is a string that references an already created Quobyte volume by name. + optional string volume = 2; + + // ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. + // Defaults to false. + optional bool readOnly = 3; + + // User to map volume access to + // Defaults to serivceaccount user + optional string user = 4; + + // Group to map volume access to + // Default is no group + optional string group = 5; +} + // Represents a Rados Block Device mount that lasts the lifetime of a pod. // RBD volumes support ownership management and SELinux relabeling. message RBDVolumeSource { @@ -2411,6 +2493,9 @@ message ReplicationControllerStatus { // The number of pods that have labels matching the labels of the pod template of the replication controller. optional int32 fullyLabeledReplicas = 2; + // The number of ready replicas for this replication controller. + optional int32 readyReplicas = 4; + // ObservedGeneration reflects the generation of the most recently observed replication controller. optional int64 observedGeneration = 3; } @@ -2477,13 +2562,13 @@ message ResourceQuotaStatus { // ResourceRequirements describes the compute resource requirements. message ResourceRequirements { // Limits describes the maximum amount of compute resources allowed. - // More info: http://releases.k8s.io/HEAD/docs/design/resources.md#resource-specifications + // More info: http://kubernetes.io/docs/user-guide/compute-resources/ map limits = 1; // Requests describes the minimum amount of compute resources required. // If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, // otherwise to an implementation-defined value. - // More info: http://releases.k8s.io/HEAD/docs/design/resources.md#resource-specifications + // More info: http://kubernetes.io/docs/user-guide/compute-resources/ map requests = 2; } @@ -2565,6 +2650,13 @@ message SecretVolumeSource { // the volume setup will error. Paths must be relative and may not contain // the '..' path or start with '..'. repeated KeyToPath items = 2; + + // Optional: mode bits to use on created files by default. Must be a + // value between 0 and 0777. Defaults to 0644. + // Directories within the path are not affected by this setting. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + optional int32 defaultMode = 3; } // SecurityContext holds security configuration that will be applied to a container. @@ -2720,24 +2812,39 @@ message ServiceSpec { // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#virtual-ips-and-service-proxies repeated ServicePort ports = 1; - // This service will route traffic to pods having labels matching this selector. - // Label keys and values that must match in order to receive traffic for this service. - // If not specified, endpoints must be manually specified and the system will not automatically manage them. + // Route service traffic to pods with label keys and values matching this + // selector. If empty or not present, the service is assumed to have an + // external process managing its endpoints, which Kubernetes will not + // modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. + // Ignored if type is ExternalName. // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#overview map selector = 2; - // ClusterIP is usually assigned by the master and is the IP address of the service. - // If specified, it will be allocated to the service if it is unused - // or else creation of the service will fail. - // Valid values are None, empty string (""), or a valid IP address. - // 'None' can be specified for a headless service when proxying is not required. - // Cannot be updated. + // clusterIP is the IP address of the service and is usually assigned + // randomly by the master. If an address is specified manually and is not in + // use by others, it will be allocated to the service; otherwise, creation + // of the service will fail. This field can not be changed through updates. + // Valid values are "None", empty string (""), or a valid IP address. "None" + // can be specified for headless services when proxying is not required. + // Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if + // type is ExternalName. // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#virtual-ips-and-service-proxies optional string clusterIP = 3; - // Type of exposed service. Must be ClusterIP, NodePort, or LoadBalancer. - // Defaults to ClusterIP. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#external-services + // type determines how the Service is exposed. Defaults to ClusterIP. Valid + // options are ExternalName, ClusterIP, NodePort, and LoadBalancer. + // "ExternalName" maps to the specified externalName. + // "ClusterIP" allocates a cluster-internal IP address for load-balancing to + // endpoints. Endpoints are determined by the selector or if that is not + // specified, by manual construction of an Endpoints object. If clusterIP is + // "None", no virtual IP is allocated and the endpoints are published as a + // set of endpoints rather than a stable IP. + // "NodePort" builds on ClusterIP and allocates a port on every node which + // routes to the clusterIP. + // "LoadBalancer" builds on NodePort and creates an + // external load-balancer (if supported in the current cloud) which routes + // to the clusterIP. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#overview optional string type = 4; // externalIPs is a list of IP addresses for which nodes in the cluster @@ -2776,6 +2883,11 @@ message ServiceSpec { // cloud-provider does not support the feature." // More info: http://releases.k8s.io/HEAD/docs/user-guide/services-firewalls.md repeated string loadBalancerSourceRanges = 9; + + // externalName is the external reference that kubedns or equivalent will + // return as a CNAME record for this service. No proxying will be involved. + // Must be a valid DNS name and requires Type to be ExternalName. + optional string externalName = 10; } // ServiceStatus represents the current status of a service. @@ -2945,6 +3057,12 @@ message VolumeSource { // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine optional VsphereVirtualDiskVolumeSource vsphereVolume = 20; + + // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + optional QuobyteVolumeSource quobyte = 21; + + // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + optional AzureDiskVolumeSource azureDisk = 22; } // Represents a vSphere volume resource. diff --git a/1.4/pkg/api/v1/meta.go b/1.4/pkg/api/v1/meta.go index 284b8641..0b948fd8 100644 --- a/1.4/pkg/api/v1/meta.go +++ b/1.4/pkg/api/v1/meta.go @@ -83,3 +83,10 @@ func (meta *ObjectMeta) SetOwnerReferences(references []metatypes.OwnerReference } meta.OwnerReferences = newReferences } + +func (meta *ObjectMeta) GetClusterName() string { + return meta.ClusterName +} +func (meta *ObjectMeta) SetClusterName(clusterName string) { + meta.ClusterName = clusterName +} diff --git a/1.4/pkg/api/v1/types.generated.go b/1.4/pkg/api/v1/types.generated.go index f2b24921..ba8b4bea 100644 --- a/1.4/pkg/api/v1/types.generated.go +++ b/1.4/pkg/api/v1/types.generated.go @@ -89,7 +89,7 @@ func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [14]bool + var yyq2 [15]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false yyq2[0] = x.Name != "" @@ -106,9 +106,10 @@ func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) { yyq2[11] = len(x.Annotations) != 0 yyq2[12] = len(x.OwnerReferences) != 0 yyq2[13] = len(x.Finalizers) != 0 + yyq2[14] = x.ClusterName != "" var yynn2 int if yyr2 || yy2arr2 { - r.EncodeArrayStart(14) + r.EncodeArrayStart(15) } else { yynn2 = 0 for _, b := range yyq2 { @@ -543,6 +544,31 @@ func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) { } } } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[14] { + yym50 := z.EncBinary() + _ = yym50 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym51 := z.EncBinary() + _ = yym51 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } + } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { @@ -556,25 +582,25 @@ func (x *ObjectMeta) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym49 := z.DecBinary() - _ = yym49 + yym52 := z.DecBinary() + _ = yym52 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct50 := r.ContainerType() - if yyct50 == codecSelferValueTypeMap1234 { - yyl50 := r.ReadMapStart() - if yyl50 == 0 { + yyct53 := r.ContainerType() + if yyct53 == codecSelferValueTypeMap1234 { + yyl53 := r.ReadMapStart() + if yyl53 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl50, d) + x.codecDecodeSelfFromMap(yyl53, d) } - } else if yyct50 == codecSelferValueTypeArray1234 { - yyl50 := r.ReadArrayStart() - if yyl50 == 0 { + } else if yyct53 == codecSelferValueTypeArray1234 { + yyl53 := r.ReadArrayStart() + if yyl53 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl50, d) + x.codecDecodeSelfFromArray(yyl53, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -586,12 +612,12 @@ func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys51Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys51Slc - var yyhl51 bool = l >= 0 - for yyj51 := 0; ; yyj51++ { - if yyhl51 { - if yyj51 >= l { + var yys54Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys54Slc + var yyhl54 bool = l >= 0 + for yyj54 := 0; ; yyj54++ { + if yyhl54 { + if yyj54 >= l { break } } else { @@ -600,10 +626,10 @@ func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys51Slc = r.DecodeBytes(yys51Slc, true, true) - yys51 := string(yys51Slc) + yys54Slc = r.DecodeBytes(yys54Slc, true, true) + yys54 := string(yys54Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys51 { + switch yys54 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -650,17 +676,17 @@ func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.CreationTimestamp = pkg2_unversioned.Time{} } else { - yyv59 := &x.CreationTimestamp - yym60 := z.DecBinary() - _ = yym60 + yyv62 := &x.CreationTimestamp + yym63 := z.DecBinary() + _ = yym63 if false { - } else if z.HasExtensions() && z.DecExt(yyv59) { - } else if yym60 { - z.DecBinaryUnmarshal(yyv59) - } else if !yym60 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv59) + } else if z.HasExtensions() && z.DecExt(yyv62) { + } else if yym63 { + z.DecBinaryUnmarshal(yyv62) + } else if !yym63 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv62) } else { - z.DecFallback(yyv59, false) + z.DecFallback(yyv62, false) } } case "deletionTimestamp": @@ -672,13 +698,13 @@ func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg2_unversioned.Time) } - yym62 := z.DecBinary() - _ = yym62 + yym65 := z.DecBinary() + _ = yym65 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym62 { + } else if yym65 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym62 && z.IsJSONHandle() { + } else if !yym65 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) @@ -693,8 +719,8 @@ func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } - yym64 := z.DecBinary() - _ = yym64 + yym67 := z.DecBinary() + _ = yym67 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -704,54 +730,60 @@ func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Labels = nil } else { - yyv65 := &x.Labels - yym66 := z.DecBinary() - _ = yym66 + yyv68 := &x.Labels + yym69 := z.DecBinary() + _ = yym69 if false { } else { - z.F.DecMapStringStringX(yyv65, false, d) + z.F.DecMapStringStringX(yyv68, false, d) } } case "annotations": if r.TryDecodeAsNil() { x.Annotations = nil } else { - yyv67 := &x.Annotations - yym68 := z.DecBinary() - _ = yym68 + yyv70 := &x.Annotations + yym71 := z.DecBinary() + _ = yym71 if false { } else { - z.F.DecMapStringStringX(yyv67, false, d) + z.F.DecMapStringStringX(yyv70, false, d) } } case "ownerReferences": if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { - yyv69 := &x.OwnerReferences - yym70 := z.DecBinary() - _ = yym70 + yyv72 := &x.OwnerReferences + yym73 := z.DecBinary() + _ = yym73 if false { } else { - h.decSliceOwnerReference((*[]OwnerReference)(yyv69), d) + h.decSliceOwnerReference((*[]OwnerReference)(yyv72), d) } } case "finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv71 := &x.Finalizers - yym72 := z.DecBinary() - _ = yym72 + yyv74 := &x.Finalizers + yym75 := z.DecBinary() + _ = yym75 if false { } else { - z.F.DecSliceStringX(yyv71, false, d) + z.F.DecSliceStringX(yyv74, false, d) } } + case "clusterName": + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys51) - } // end switch yys51 - } // end for yyj51 + z.DecStructFieldNotFound(-1, yys54) + } // end switch yys54 + } // end for yyj54 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -759,16 +791,16 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj73 int - var yyb73 bool - var yyhl73 bool = l >= 0 - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + var yyj77 int + var yyb77 bool + var yyhl77 bool = l >= 0 + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -778,13 +810,13 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -794,13 +826,13 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.GenerateName = string(r.DecodeString()) } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -810,13 +842,13 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Namespace = string(r.DecodeString()) } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -826,13 +858,13 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SelfLink = string(r.DecodeString()) } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -842,13 +874,13 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -858,13 +890,13 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ResourceVersion = string(r.DecodeString()) } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -874,13 +906,13 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Generation = int64(r.DecodeInt(64)) } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -888,26 +920,26 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.CreationTimestamp = pkg2_unversioned.Time{} } else { - yyv81 := &x.CreationTimestamp - yym82 := z.DecBinary() - _ = yym82 + yyv85 := &x.CreationTimestamp + yym86 := z.DecBinary() + _ = yym86 if false { - } else if z.HasExtensions() && z.DecExt(yyv81) { - } else if yym82 { - z.DecBinaryUnmarshal(yyv81) - } else if !yym82 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv81) + } else if z.HasExtensions() && z.DecExt(yyv85) { + } else if yym86 { + z.DecBinaryUnmarshal(yyv85) + } else if !yym86 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv85) } else { - z.DecFallback(yyv81, false) + z.DecFallback(yyv85, false) } } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -920,25 +952,25 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg2_unversioned.Time) } - yym84 := z.DecBinary() - _ = yym84 + yym88 := z.DecBinary() + _ = yym88 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym84 { + } else if yym88 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym84 && z.IsJSONHandle() { + } else if !yym88 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) } } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -951,20 +983,20 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } - yym86 := z.DecBinary() - _ = yym86 + yym90 := z.DecBinary() + _ = yym90 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -972,21 +1004,21 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Labels = nil } else { - yyv87 := &x.Labels - yym88 := z.DecBinary() - _ = yym88 + yyv91 := &x.Labels + yym92 := z.DecBinary() + _ = yym92 if false { } else { - z.F.DecMapStringStringX(yyv87, false, d) + z.F.DecMapStringStringX(yyv91, false, d) } } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -994,21 +1026,21 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Annotations = nil } else { - yyv89 := &x.Annotations - yym90 := z.DecBinary() - _ = yym90 + yyv93 := &x.Annotations + yym94 := z.DecBinary() + _ = yym94 if false { } else { - z.F.DecMapStringStringX(yyv89, false, d) + z.F.DecMapStringStringX(yyv93, false, d) } } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1016,21 +1048,21 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { - yyv91 := &x.OwnerReferences - yym92 := z.DecBinary() - _ = yym92 + yyv95 := &x.OwnerReferences + yym96 := z.DecBinary() + _ = yym96 if false { } else { - h.decSliceOwnerReference((*[]OwnerReference)(yyv91), d) + h.decSliceOwnerReference((*[]OwnerReference)(yyv95), d) } } - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1038,26 +1070,42 @@ func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv93 := &x.Finalizers - yym94 := z.DecBinary() - _ = yym94 + yyv97 := &x.Finalizers + yym98 := z.DecBinary() + _ = yym98 if false { } else { - z.F.DecSliceStringX(yyv93, false, d) + z.F.DecSliceStringX(yyv97, false, d) } } + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l + } else { + yyb77 = r.CheckBreak() + } + if yyb77 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } for { - yyj73++ - if yyhl73 { - yyb73 = yyj73 > l + yyj77++ + if yyhl77 { + yyb77 = yyj77 > l } else { - yyb73 = r.CheckBreak() + yyb77 = r.CheckBreak() } - if yyb73 { + if yyb77 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj73-1, "") + z.DecStructFieldNotFound(yyj77-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1069,53 +1117,55 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym95 := z.EncBinary() - _ = yym95 + yym100 := z.EncBinary() + _ = yym100 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep96 := !z.EncBinary() - yy2arr96 := z.EncBasicHandle().StructToArray - var yyq96 [21]bool - _, _, _ = yysep96, yyq96, yy2arr96 - const yyr96 bool = false - yyq96[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil - yyq96[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil - yyq96[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil - yyq96[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil - yyq96[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil - yyq96[6] = x.VolumeSource.Secret != nil && x.Secret != nil - yyq96[7] = x.VolumeSource.NFS != nil && x.NFS != nil - yyq96[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil - yyq96[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil - yyq96[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil - yyq96[11] = x.VolumeSource.RBD != nil && x.RBD != nil - yyq96[12] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil - yyq96[13] = x.VolumeSource.Cinder != nil && x.Cinder != nil - yyq96[14] = x.VolumeSource.CephFS != nil && x.CephFS != nil - yyq96[15] = x.VolumeSource.Flocker != nil && x.Flocker != nil - yyq96[16] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil - yyq96[17] = x.VolumeSource.FC != nil && x.FC != nil - yyq96[18] = x.VolumeSource.AzureFile != nil && x.AzureFile != nil - yyq96[19] = x.VolumeSource.ConfigMap != nil && x.ConfigMap != nil - yyq96[20] = x.VolumeSource.VsphereVolume != nil && x.VsphereVolume != nil - var yynn96 int - if yyr96 || yy2arr96 { - r.EncodeArrayStart(21) + yysep101 := !z.EncBinary() + yy2arr101 := z.EncBasicHandle().StructToArray + var yyq101 [23]bool + _, _, _ = yysep101, yyq101, yy2arr101 + const yyr101 bool = false + yyq101[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil + yyq101[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil + yyq101[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil + yyq101[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil + yyq101[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil + yyq101[6] = x.VolumeSource.Secret != nil && x.Secret != nil + yyq101[7] = x.VolumeSource.NFS != nil && x.NFS != nil + yyq101[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil + yyq101[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil + yyq101[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil + yyq101[11] = x.VolumeSource.RBD != nil && x.RBD != nil + yyq101[12] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil + yyq101[13] = x.VolumeSource.Cinder != nil && x.Cinder != nil + yyq101[14] = x.VolumeSource.CephFS != nil && x.CephFS != nil + yyq101[15] = x.VolumeSource.Flocker != nil && x.Flocker != nil + yyq101[16] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil + yyq101[17] = x.VolumeSource.FC != nil && x.FC != nil + yyq101[18] = x.VolumeSource.AzureFile != nil && x.AzureFile != nil + yyq101[19] = x.VolumeSource.ConfigMap != nil && x.ConfigMap != nil + yyq101[20] = x.VolumeSource.VsphereVolume != nil && x.VsphereVolume != nil + yyq101[21] = x.VolumeSource.Quobyte != nil && x.Quobyte != nil + yyq101[22] = x.VolumeSource.AzureDisk != nil && x.AzureDisk != nil + var yynn101 int + if yyr101 || yy2arr101 { + r.EncodeArrayStart(23) } else { - yynn96 = 1 - for _, b := range yyq96 { + yynn101 = 1 + for _, b := range yyq101 { if b { - yynn96++ + yynn101++ } } - r.EncodeMapStart(yynn96) - yynn96 = 0 + r.EncodeMapStart(yynn101) + yynn101 = 0 } - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym98 := z.EncBinary() - _ = yym98 + yym103 := z.EncBinary() + _ = yym103 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -1124,728 +1174,728 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym99 := z.EncBinary() - _ = yym99 + yym104 := z.EncBinary() + _ = yym104 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - var yyn100 bool - if x.VolumeSource.HostPath == nil { - yyn100 = true - goto LABEL100 - } - LABEL100: - if yyr96 || yy2arr96 { - if yyn100 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[1] { - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq96[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hostPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn100 { - r.EncodeNil() - } else { - if x.HostPath == nil { - r.EncodeNil() - } else { - x.HostPath.CodecEncodeSelf(e) - } - } - } - } - var yyn101 bool - if x.VolumeSource.EmptyDir == nil { - yyn101 = true - goto LABEL101 - } - LABEL101: - if yyr96 || yy2arr96 { - if yyn101 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[2] { - if x.EmptyDir == nil { - r.EncodeNil() - } else { - x.EmptyDir.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq96[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn101 { - r.EncodeNil() - } else { - if x.EmptyDir == nil { - r.EncodeNil() - } else { - x.EmptyDir.CodecEncodeSelf(e) - } - } - } - } - var yyn102 bool - if x.VolumeSource.GCEPersistentDisk == nil { - yyn102 = true - goto LABEL102 - } - LABEL102: - if yyr96 || yy2arr96 { - if yyn102 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[3] { - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq96[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn102 { - r.EncodeNil() - } else { - if x.GCEPersistentDisk == nil { - r.EncodeNil() - } else { - x.GCEPersistentDisk.CodecEncodeSelf(e) - } - } - } - } - var yyn103 bool - if x.VolumeSource.AWSElasticBlockStore == nil { - yyn103 = true - goto LABEL103 - } - LABEL103: - if yyr96 || yy2arr96 { - if yyn103 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[4] { - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq96[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn103 { - r.EncodeNil() - } else { - if x.AWSElasticBlockStore == nil { - r.EncodeNil() - } else { - x.AWSElasticBlockStore.CodecEncodeSelf(e) - } - } - } - } - var yyn104 bool - if x.VolumeSource.GitRepo == nil { - yyn104 = true - goto LABEL104 - } - LABEL104: - if yyr96 || yy2arr96 { - if yyn104 { - r.EncodeNil() - } else { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[5] { - if x.GitRepo == nil { - r.EncodeNil() - } else { - x.GitRepo.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } - } else { - if yyq96[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn104 { - r.EncodeNil() - } else { - if x.GitRepo == nil { - r.EncodeNil() - } else { - x.GitRepo.CodecEncodeSelf(e) - } - } - } - } var yyn105 bool - if x.VolumeSource.Secret == nil { + if x.VolumeSource.HostPath == nil { yyn105 = true goto LABEL105 } LABEL105: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn105 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[6] { - if x.Secret == nil { + if yyq101[1] { + if x.HostPath == nil { r.EncodeNil() } else { - x.Secret.CodecEncodeSelf(e) + x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[6] { + if yyq101[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("secret")) + r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn105 { r.EncodeNil() } else { - if x.Secret == nil { + if x.HostPath == nil { r.EncodeNil() } else { - x.Secret.CodecEncodeSelf(e) + x.HostPath.CodecEncodeSelf(e) } } } } var yyn106 bool - if x.VolumeSource.NFS == nil { + if x.VolumeSource.EmptyDir == nil { yyn106 = true goto LABEL106 } LABEL106: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn106 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[7] { - if x.NFS == nil { + if yyq101[2] { + if x.EmptyDir == nil { r.EncodeNil() } else { - x.NFS.CodecEncodeSelf(e) + x.EmptyDir.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[7] { + if yyq101[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nfs")) + r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn106 { r.EncodeNil() } else { - if x.NFS == nil { + if x.EmptyDir == nil { r.EncodeNil() } else { - x.NFS.CodecEncodeSelf(e) + x.EmptyDir.CodecEncodeSelf(e) } } } } var yyn107 bool - if x.VolumeSource.ISCSI == nil { + if x.VolumeSource.GCEPersistentDisk == nil { yyn107 = true goto LABEL107 } LABEL107: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn107 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[8] { - if x.ISCSI == nil { + if yyq101[3] { + if x.GCEPersistentDisk == nil { r.EncodeNil() } else { - x.ISCSI.CodecEncodeSelf(e) + x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[8] { + if yyq101[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("iscsi")) + r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn107 { r.EncodeNil() } else { - if x.ISCSI == nil { + if x.GCEPersistentDisk == nil { r.EncodeNil() } else { - x.ISCSI.CodecEncodeSelf(e) + x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn108 bool - if x.VolumeSource.Glusterfs == nil { + if x.VolumeSource.AWSElasticBlockStore == nil { yyn108 = true goto LABEL108 } LABEL108: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn108 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[9] { - if x.Glusterfs == nil { + if yyq101[4] { + if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { - x.Glusterfs.CodecEncodeSelf(e) + x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[9] { + if yyq101[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) + r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn108 { r.EncodeNil() } else { - if x.Glusterfs == nil { + if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { - x.Glusterfs.CodecEncodeSelf(e) + x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn109 bool - if x.VolumeSource.PersistentVolumeClaim == nil { + if x.VolumeSource.GitRepo == nil { yyn109 = true goto LABEL109 } LABEL109: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn109 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[10] { - if x.PersistentVolumeClaim == nil { + if yyq101[5] { + if x.GitRepo == nil { r.EncodeNil() } else { - x.PersistentVolumeClaim.CodecEncodeSelf(e) + x.GitRepo.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[10] { + if yyq101[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) + r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn109 { r.EncodeNil() } else { - if x.PersistentVolumeClaim == nil { + if x.GitRepo == nil { r.EncodeNil() } else { - x.PersistentVolumeClaim.CodecEncodeSelf(e) + x.GitRepo.CodecEncodeSelf(e) } } } } var yyn110 bool - if x.VolumeSource.RBD == nil { + if x.VolumeSource.Secret == nil { yyn110 = true goto LABEL110 } LABEL110: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn110 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[11] { - if x.RBD == nil { + if yyq101[6] { + if x.Secret == nil { r.EncodeNil() } else { - x.RBD.CodecEncodeSelf(e) + x.Secret.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[11] { + if yyq101[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rbd")) + r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn110 { r.EncodeNil() } else { - if x.RBD == nil { + if x.Secret == nil { r.EncodeNil() } else { - x.RBD.CodecEncodeSelf(e) + x.Secret.CodecEncodeSelf(e) } } } } var yyn111 bool - if x.VolumeSource.FlexVolume == nil { + if x.VolumeSource.NFS == nil { yyn111 = true goto LABEL111 } LABEL111: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn111 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[12] { - if x.FlexVolume == nil { + if yyq101[7] { + if x.NFS == nil { r.EncodeNil() } else { - x.FlexVolume.CodecEncodeSelf(e) + x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[12] { + if yyq101[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) + r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn111 { r.EncodeNil() } else { - if x.FlexVolume == nil { + if x.NFS == nil { r.EncodeNil() } else { - x.FlexVolume.CodecEncodeSelf(e) + x.NFS.CodecEncodeSelf(e) } } } } var yyn112 bool - if x.VolumeSource.Cinder == nil { + if x.VolumeSource.ISCSI == nil { yyn112 = true goto LABEL112 } LABEL112: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn112 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[13] { - if x.Cinder == nil { + if yyq101[8] { + if x.ISCSI == nil { r.EncodeNil() } else { - x.Cinder.CodecEncodeSelf(e) + x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[13] { + if yyq101[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cinder")) + r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn112 { r.EncodeNil() } else { - if x.Cinder == nil { + if x.ISCSI == nil { r.EncodeNil() } else { - x.Cinder.CodecEncodeSelf(e) + x.ISCSI.CodecEncodeSelf(e) } } } } var yyn113 bool - if x.VolumeSource.CephFS == nil { + if x.VolumeSource.Glusterfs == nil { yyn113 = true goto LABEL113 } LABEL113: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn113 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[14] { - if x.CephFS == nil { + if yyq101[9] { + if x.Glusterfs == nil { r.EncodeNil() } else { - x.CephFS.CodecEncodeSelf(e) + x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[14] { + if yyq101[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cephfs")) + r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn113 { r.EncodeNil() } else { - if x.CephFS == nil { + if x.Glusterfs == nil { r.EncodeNil() } else { - x.CephFS.CodecEncodeSelf(e) + x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn114 bool - if x.VolumeSource.Flocker == nil { + if x.VolumeSource.PersistentVolumeClaim == nil { yyn114 = true goto LABEL114 } LABEL114: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn114 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[15] { - if x.Flocker == nil { + if yyq101[10] { + if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { - x.Flocker.CodecEncodeSelf(e) + x.PersistentVolumeClaim.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[15] { + if yyq101[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("flocker")) + r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn114 { r.EncodeNil() } else { - if x.Flocker == nil { + if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { - x.Flocker.CodecEncodeSelf(e) + x.PersistentVolumeClaim.CodecEncodeSelf(e) } } } } var yyn115 bool - if x.VolumeSource.DownwardAPI == nil { + if x.VolumeSource.RBD == nil { yyn115 = true goto LABEL115 } LABEL115: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn115 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[16] { - if x.DownwardAPI == nil { + if yyq101[11] { + if x.RBD == nil { r.EncodeNil() } else { - x.DownwardAPI.CodecEncodeSelf(e) + x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[16] { + if yyq101[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) + r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn115 { r.EncodeNil() } else { - if x.DownwardAPI == nil { + if x.RBD == nil { r.EncodeNil() } else { - x.DownwardAPI.CodecEncodeSelf(e) + x.RBD.CodecEncodeSelf(e) } } } } var yyn116 bool - if x.VolumeSource.FC == nil { + if x.VolumeSource.FlexVolume == nil { yyn116 = true goto LABEL116 } LABEL116: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn116 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[17] { - if x.FC == nil { + if yyq101[12] { + if x.FlexVolume == nil { r.EncodeNil() } else { - x.FC.CodecEncodeSelf(e) + x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[17] { + if yyq101[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fc")) + r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn116 { r.EncodeNil() } else { - if x.FC == nil { + if x.FlexVolume == nil { r.EncodeNil() } else { - x.FC.CodecEncodeSelf(e) + x.FlexVolume.CodecEncodeSelf(e) } } } } var yyn117 bool - if x.VolumeSource.AzureFile == nil { + if x.VolumeSource.Cinder == nil { yyn117 = true goto LABEL117 } LABEL117: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn117 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[18] { - if x.AzureFile == nil { + if yyq101[13] { + if x.Cinder == nil { r.EncodeNil() } else { - x.AzureFile.CodecEncodeSelf(e) + x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[18] { + if yyq101[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn117 { r.EncodeNil() } else { - if x.AzureFile == nil { + if x.Cinder == nil { r.EncodeNil() } else { - x.AzureFile.CodecEncodeSelf(e) + x.Cinder.CodecEncodeSelf(e) } } } } var yyn118 bool - if x.VolumeSource.ConfigMap == nil { + if x.VolumeSource.CephFS == nil { yyn118 = true goto LABEL118 } LABEL118: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn118 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[19] { - if x.ConfigMap == nil { + if yyq101[14] { + if x.CephFS == nil { r.EncodeNil() } else { - x.ConfigMap.CodecEncodeSelf(e) + x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { - if yyq96[19] { + if yyq101[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("configMap")) + r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn118 { r.EncodeNil() } else { - if x.ConfigMap == nil { + if x.CephFS == nil { r.EncodeNil() } else { - x.ConfigMap.CodecEncodeSelf(e) + x.CephFS.CodecEncodeSelf(e) } } } } var yyn119 bool - if x.VolumeSource.VsphereVolume == nil { + if x.VolumeSource.Flocker == nil { yyn119 = true goto LABEL119 } LABEL119: - if yyr96 || yy2arr96 { + if yyr101 || yy2arr101 { if yyn119 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq96[20] { + if yyq101[15] { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("flocker")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn119 { + r.EncodeNil() + } else { + if x.Flocker == nil { + r.EncodeNil() + } else { + x.Flocker.CodecEncodeSelf(e) + } + } + } + } + var yyn120 bool + if x.VolumeSource.DownwardAPI == nil { + yyn120 = true + goto LABEL120 + } + LABEL120: + if yyr101 || yy2arr101 { + if yyn120 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[16] { + if x.DownwardAPI == nil { + r.EncodeNil() + } else { + x.DownwardAPI.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn120 { + r.EncodeNil() + } else { + if x.DownwardAPI == nil { + r.EncodeNil() + } else { + x.DownwardAPI.CodecEncodeSelf(e) + } + } + } + } + var yyn121 bool + if x.VolumeSource.FC == nil { + yyn121 = true + goto LABEL121 + } + LABEL121: + if yyr101 || yy2arr101 { + if yyn121 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[17] { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[17] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fc")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn121 { + r.EncodeNil() + } else { + if x.FC == nil { + r.EncodeNil() + } else { + x.FC.CodecEncodeSelf(e) + } + } + } + } + var yyn122 bool + if x.VolumeSource.AzureFile == nil { + yyn122 = true + goto LABEL122 + } + LABEL122: + if yyr101 || yy2arr101 { + if yyn122 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[18] { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[18] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureFile")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn122 { + r.EncodeNil() + } else { + if x.AzureFile == nil { + r.EncodeNil() + } else { + x.AzureFile.CodecEncodeSelf(e) + } + } + } + } + var yyn123 bool + if x.VolumeSource.ConfigMap == nil { + yyn123 = true + goto LABEL123 + } + LABEL123: + if yyr101 || yy2arr101 { + if yyn123 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[19] { + if x.ConfigMap == nil { + r.EncodeNil() + } else { + x.ConfigMap.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[19] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("configMap")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn123 { + r.EncodeNil() + } else { + if x.ConfigMap == nil { + r.EncodeNil() + } else { + x.ConfigMap.CodecEncodeSelf(e) + } + } + } + } + var yyn124 bool + if x.VolumeSource.VsphereVolume == nil { + yyn124 = true + goto LABEL124 + } + LABEL124: + if yyr101 || yy2arr101 { + if yyn124 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[20] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -1856,11 +1906,11 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq96[20] { + if yyq101[20] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn119 { + if yyn124 { r.EncodeNil() } else { if x.VsphereVolume == nil { @@ -1871,7 +1921,81 @@ func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr96 || yy2arr96 { + var yyn125 bool + if x.VolumeSource.Quobyte == nil { + yyn125 = true + goto LABEL125 + } + LABEL125: + if yyr101 || yy2arr101 { + if yyn125 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[21] { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[21] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("quobyte")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn125 { + r.EncodeNil() + } else { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } + } + } + var yyn126 bool + if x.VolumeSource.AzureDisk == nil { + yyn126 = true + goto LABEL126 + } + LABEL126: + if yyr101 || yy2arr101 { + if yyn126 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq101[22] { + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq101[22] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn126 { + r.EncodeNil() + } else { + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } + } + } + if yyr101 || yy2arr101 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1884,25 +2008,25 @@ func (x *Volume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym120 := z.DecBinary() - _ = yym120 + yym127 := z.DecBinary() + _ = yym127 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct121 := r.ContainerType() - if yyct121 == codecSelferValueTypeMap1234 { - yyl121 := r.ReadMapStart() - if yyl121 == 0 { + yyct128 := r.ContainerType() + if yyct128 == codecSelferValueTypeMap1234 { + yyl128 := r.ReadMapStart() + if yyl128 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl121, d) + x.codecDecodeSelfFromMap(yyl128, d) } - } else if yyct121 == codecSelferValueTypeArray1234 { - yyl121 := r.ReadArrayStart() - if yyl121 == 0 { + } else if yyct128 == codecSelferValueTypeArray1234 { + yyl128 := r.ReadArrayStart() + if yyl128 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl121, d) + x.codecDecodeSelfFromArray(yyl128, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1914,12 +2038,12 @@ func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys122Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys122Slc - var yyhl122 bool = l >= 0 - for yyj122 := 0; ; yyj122++ { - if yyhl122 { - if yyj122 >= l { + var yys129Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys129Slc + var yyhl129 bool = l >= 0 + for yyj129 := 0; ; yyj129++ { + if yyhl129 { + if yyj129 >= l { break } } else { @@ -1928,10 +2052,10 @@ func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys122Slc = r.DecodeBytes(yys122Slc, true, true) - yys122 := string(yys122Slc) + yys129Slc = r.DecodeBytes(yys129Slc, true, true) + yys129 := string(yys129Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys122 { + switch yys129 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -2218,10 +2342,38 @@ func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } x.VsphereVolume.CodecDecodeSelf(d) } + case "quobyte": + if x.VolumeSource.Quobyte == nil { + x.VolumeSource.Quobyte = new(QuobyteVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil + } + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } + case "azureDisk": + if x.VolumeSource.AzureDisk == nil { + x.VolumeSource.AzureDisk = new(AzureDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil + } + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys122) - } // end switch yys122 - } // end for yyj122 + z.DecStructFieldNotFound(-1, yys129) + } // end switch yys129 + } // end for yyj129 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2229,16 +2381,16 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj144 int - var yyb144 bool - var yyhl144 bool = l >= 0 - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + var yyj153 int + var yyb153 bool + var yyhl153 bool = l >= 0 + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2251,13 +2403,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.HostPath == nil { x.VolumeSource.HostPath = new(HostPathVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2275,13 +2427,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.EmptyDir == nil { x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2299,13 +2451,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.GCEPersistentDisk == nil { x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2323,13 +2475,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.AWSElasticBlockStore == nil { x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2347,13 +2499,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.GitRepo == nil { x.VolumeSource.GitRepo = new(GitRepoVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2371,13 +2523,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Secret == nil { x.VolumeSource.Secret = new(SecretVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2395,13 +2547,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.NFS == nil { x.VolumeSource.NFS = new(NFSVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2419,13 +2571,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.ISCSI == nil { x.VolumeSource.ISCSI = new(ISCSIVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2443,13 +2595,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Glusterfs == nil { x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2467,13 +2619,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.PersistentVolumeClaim == nil { x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2491,13 +2643,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.RBD == nil { x.VolumeSource.RBD = new(RBDVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2515,13 +2667,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.FlexVolume == nil { x.VolumeSource.FlexVolume = new(FlexVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2539,13 +2691,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Cinder == nil { x.VolumeSource.Cinder = new(CinderVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2563,13 +2715,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.CephFS == nil { x.VolumeSource.CephFS = new(CephFSVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2587,13 +2739,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.Flocker == nil { x.VolumeSource.Flocker = new(FlockerVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2611,13 +2763,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.DownwardAPI == nil { x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2635,13 +2787,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.FC == nil { x.VolumeSource.FC = new(FCVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2659,13 +2811,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.AzureFile == nil { x.VolumeSource.AzureFile = new(AzureFileVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2683,13 +2835,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.ConfigMap == nil { x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2707,13 +2859,13 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.VolumeSource.VsphereVolume == nil { x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l } else { - yyb144 = r.CheckBreak() + yyb153 = r.CheckBreak() } - if yyb144 { + if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2728,18 +2880,66 @@ func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.VsphereVolume.CodecDecodeSelf(d) } - for { - yyj144++ - if yyhl144 { - yyb144 = yyj144 > l - } else { - yyb144 = r.CheckBreak() + if x.VolumeSource.Quobyte == nil { + x.VolumeSource.Quobyte = new(QuobyteVolumeSource) + } + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l + } else { + yyb153 = r.CheckBreak() + } + if yyb153 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil } - if yyb144 { + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } + if x.VolumeSource.AzureDisk == nil { + x.VolumeSource.AzureDisk = new(AzureDiskVolumeSource) + } + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l + } else { + yyb153 = r.CheckBreak() + } + if yyb153 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil + } + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } + for { + yyj153++ + if yyhl153 { + yyb153 = yyj153 > l + } else { + yyb153 = r.CheckBreak() + } + if yyb153 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj144-1, "") + z.DecStructFieldNotFound(yyj153-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2751,52 +2951,54 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym166 := z.EncBinary() - _ = yym166 + yym177 := z.EncBinary() + _ = yym177 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep167 := !z.EncBinary() - yy2arr167 := z.EncBasicHandle().StructToArray - var yyq167 [20]bool - _, _, _ = yysep167, yyq167, yy2arr167 - const yyr167 bool = false - yyq167[0] = x.HostPath != nil - yyq167[1] = x.EmptyDir != nil - yyq167[2] = x.GCEPersistentDisk != nil - yyq167[3] = x.AWSElasticBlockStore != nil - yyq167[4] = x.GitRepo != nil - yyq167[5] = x.Secret != nil - yyq167[6] = x.NFS != nil - yyq167[7] = x.ISCSI != nil - yyq167[8] = x.Glusterfs != nil - yyq167[9] = x.PersistentVolumeClaim != nil - yyq167[10] = x.RBD != nil - yyq167[11] = x.FlexVolume != nil - yyq167[12] = x.Cinder != nil - yyq167[13] = x.CephFS != nil - yyq167[14] = x.Flocker != nil - yyq167[15] = x.DownwardAPI != nil - yyq167[16] = x.FC != nil - yyq167[17] = x.AzureFile != nil - yyq167[18] = x.ConfigMap != nil - yyq167[19] = x.VsphereVolume != nil - var yynn167 int - if yyr167 || yy2arr167 { - r.EncodeArrayStart(20) + yysep178 := !z.EncBinary() + yy2arr178 := z.EncBasicHandle().StructToArray + var yyq178 [22]bool + _, _, _ = yysep178, yyq178, yy2arr178 + const yyr178 bool = false + yyq178[0] = x.HostPath != nil + yyq178[1] = x.EmptyDir != nil + yyq178[2] = x.GCEPersistentDisk != nil + yyq178[3] = x.AWSElasticBlockStore != nil + yyq178[4] = x.GitRepo != nil + yyq178[5] = x.Secret != nil + yyq178[6] = x.NFS != nil + yyq178[7] = x.ISCSI != nil + yyq178[8] = x.Glusterfs != nil + yyq178[9] = x.PersistentVolumeClaim != nil + yyq178[10] = x.RBD != nil + yyq178[11] = x.FlexVolume != nil + yyq178[12] = x.Cinder != nil + yyq178[13] = x.CephFS != nil + yyq178[14] = x.Flocker != nil + yyq178[15] = x.DownwardAPI != nil + yyq178[16] = x.FC != nil + yyq178[17] = x.AzureFile != nil + yyq178[18] = x.ConfigMap != nil + yyq178[19] = x.VsphereVolume != nil + yyq178[20] = x.Quobyte != nil + yyq178[21] = x.AzureDisk != nil + var yynn178 int + if yyr178 || yy2arr178 { + r.EncodeArrayStart(22) } else { - yynn167 = 0 - for _, b := range yyq167 { + yynn178 = 0 + for _, b := range yyq178 { if b { - yynn167++ + yynn178++ } } - r.EncodeMapStart(yynn167) - yynn167 = 0 + r.EncodeMapStart(yynn178) + yynn178 = 0 } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[0] { + if yyq178[0] { if x.HostPath == nil { r.EncodeNil() } else { @@ -2806,7 +3008,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[0] { + if yyq178[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2817,9 +3019,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[1] { + if yyq178[1] { if x.EmptyDir == nil { r.EncodeNil() } else { @@ -2829,7 +3031,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[1] { + if yyq178[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2840,9 +3042,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[2] { + if yyq178[2] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { @@ -2852,7 +3054,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[2] { + if yyq178[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2863,9 +3065,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[3] { + if yyq178[3] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { @@ -2875,7 +3077,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[3] { + if yyq178[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2886,9 +3088,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[4] { + if yyq178[4] { if x.GitRepo == nil { r.EncodeNil() } else { @@ -2898,7 +3100,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[4] { + if yyq178[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2909,9 +3111,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[5] { + if yyq178[5] { if x.Secret == nil { r.EncodeNil() } else { @@ -2921,7 +3123,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[5] { + if yyq178[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2932,9 +3134,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[6] { + if yyq178[6] { if x.NFS == nil { r.EncodeNil() } else { @@ -2944,7 +3146,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[6] { + if yyq178[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2955,9 +3157,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[7] { + if yyq178[7] { if x.ISCSI == nil { r.EncodeNil() } else { @@ -2967,7 +3169,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[7] { + if yyq178[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -2978,9 +3180,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[8] { + if yyq178[8] { if x.Glusterfs == nil { r.EncodeNil() } else { @@ -2990,7 +3192,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[8] { + if yyq178[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3001,9 +3203,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[9] { + if yyq178[9] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { @@ -3013,7 +3215,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[9] { + if yyq178[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3024,9 +3226,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[10] { + if yyq178[10] { if x.RBD == nil { r.EncodeNil() } else { @@ -3036,7 +3238,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[10] { + if yyq178[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3047,9 +3249,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[11] { + if yyq178[11] { if x.FlexVolume == nil { r.EncodeNil() } else { @@ -3059,7 +3261,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[11] { + if yyq178[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3070,9 +3272,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[12] { + if yyq178[12] { if x.Cinder == nil { r.EncodeNil() } else { @@ -3082,7 +3284,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[12] { + if yyq178[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3093,9 +3295,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[13] { + if yyq178[13] { if x.CephFS == nil { r.EncodeNil() } else { @@ -3105,7 +3307,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[13] { + if yyq178[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3116,9 +3318,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[14] { + if yyq178[14] { if x.Flocker == nil { r.EncodeNil() } else { @@ -3128,7 +3330,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[14] { + if yyq178[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3139,9 +3341,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[15] { + if yyq178[15] { if x.DownwardAPI == nil { r.EncodeNil() } else { @@ -3151,7 +3353,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[15] { + if yyq178[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3162,9 +3364,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[16] { + if yyq178[16] { if x.FC == nil { r.EncodeNil() } else { @@ -3174,7 +3376,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[16] { + if yyq178[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3185,9 +3387,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[17] { + if yyq178[17] { if x.AzureFile == nil { r.EncodeNil() } else { @@ -3197,7 +3399,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[17] { + if yyq178[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3208,9 +3410,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[18] { + if yyq178[18] { if x.ConfigMap == nil { r.EncodeNil() } else { @@ -3220,7 +3422,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[18] { + if yyq178[18] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMap")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3231,9 +3433,9 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq167[19] { + if yyq178[19] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -3243,7 +3445,7 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq167[19] { + if yyq178[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -3254,7 +3456,53 @@ func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr167 || yy2arr167 { + if yyr178 || yy2arr178 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq178[20] { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq178[20] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("quobyte")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } + } + if yyr178 || yy2arr178 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq178[21] { + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq178[21] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } + } + if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3267,25 +3515,25 @@ func (x *VolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym188 := z.DecBinary() - _ = yym188 + yym201 := z.DecBinary() + _ = yym201 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct189 := r.ContainerType() - if yyct189 == codecSelferValueTypeMap1234 { - yyl189 := r.ReadMapStart() - if yyl189 == 0 { + yyct202 := r.ContainerType() + if yyct202 == codecSelferValueTypeMap1234 { + yyl202 := r.ReadMapStart() + if yyl202 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl189, d) + x.codecDecodeSelfFromMap(yyl202, d) } - } else if yyct189 == codecSelferValueTypeArray1234 { - yyl189 := r.ReadArrayStart() - if yyl189 == 0 { + } else if yyct202 == codecSelferValueTypeArray1234 { + yyl202 := r.ReadArrayStart() + if yyl202 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl189, d) + x.codecDecodeSelfFromArray(yyl202, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3297,12 +3545,12 @@ func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys190Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys190Slc - var yyhl190 bool = l >= 0 - for yyj190 := 0; ; yyj190++ { - if yyhl190 { - if yyj190 >= l { + var yys203Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys203Slc + var yyhl203 bool = l >= 0 + for yyj203 := 0; ; yyj203++ { + if yyhl203 { + if yyj203 >= l { break } } else { @@ -3311,10 +3559,10 @@ func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys190Slc = r.DecodeBytes(yys190Slc, true, true) - yys190 := string(yys190Slc) + yys203Slc = r.DecodeBytes(yys203Slc, true, true) + yys203 := string(yys203Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys190 { + switch yys203 { case "hostPath": if r.TryDecodeAsNil() { if x.HostPath != nil { @@ -3535,10 +3783,32 @@ func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } x.VsphereVolume.CodecDecodeSelf(d) } + case "quobyte": + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil + } + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } + case "azureDisk": + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil + } + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys190) - } // end switch yys190 - } // end for yyj190 + z.DecStructFieldNotFound(-1, yys203) + } // end switch yys203 + } // end for yyj203 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3546,16 +3816,16 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj211 int - var yyb211 bool - var yyhl211 bool = l >= 0 - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + var yyj226 int + var yyb226 bool + var yyhl226 bool = l >= 0 + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3570,13 +3840,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.HostPath.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3591,13 +3861,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.EmptyDir.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3612,13 +3882,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.GCEPersistentDisk.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3633,13 +3903,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AWSElasticBlockStore.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3654,13 +3924,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.GitRepo.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3675,13 +3945,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Secret.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3696,13 +3966,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.NFS.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3717,13 +3987,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ISCSI.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3738,13 +4008,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Glusterfs.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3759,13 +4029,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PersistentVolumeClaim.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3780,13 +4050,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RBD.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3801,13 +4071,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FlexVolume.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3822,13 +4092,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Cinder.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3843,13 +4113,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.CephFS.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3864,13 +4134,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Flocker.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3885,13 +4155,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.DownwardAPI.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3906,13 +4176,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FC.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3927,13 +4197,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.AzureFile.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3948,13 +4218,13 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ConfigMap.CodecDecodeSelf(d) } - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l } else { - yyb211 = r.CheckBreak() + yyb226 = r.CheckBreak() } - if yyb211 { + if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3969,18 +4239,60 @@ func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.VsphereVolume.CodecDecodeSelf(d) } - for { - yyj211++ - if yyhl211 { - yyb211 = yyj211 > l - } else { - yyb211 = r.CheckBreak() + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l + } else { + yyb226 = r.CheckBreak() + } + if yyb226 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil } - if yyb211 { + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l + } else { + yyb226 = r.CheckBreak() + } + if yyb226 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil + } + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } + for { + yyj226++ + if yyhl226 { + yyb226 = yyj226 > l + } else { + yyb226 = r.CheckBreak() + } + if yyb226 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj211-1, "") + z.DecStructFieldNotFound(yyj226-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3992,34 +4304,34 @@ func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder if x == nil { r.EncodeNil() } else { - yym232 := z.EncBinary() - _ = yym232 + yym249 := z.EncBinary() + _ = yym249 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep233 := !z.EncBinary() - yy2arr233 := z.EncBasicHandle().StructToArray - var yyq233 [2]bool - _, _, _ = yysep233, yyq233, yy2arr233 - const yyr233 bool = false - yyq233[1] = x.ReadOnly != false - var yynn233 int - if yyr233 || yy2arr233 { + yysep250 := !z.EncBinary() + yy2arr250 := z.EncBasicHandle().StructToArray + var yyq250 [2]bool + _, _, _ = yysep250, yyq250, yy2arr250 + const yyr250 bool = false + yyq250[1] = x.ReadOnly != false + var yynn250 int + if yyr250 || yy2arr250 { r.EncodeArrayStart(2) } else { - yynn233 = 1 - for _, b := range yyq233 { + yynn250 = 1 + for _, b := range yyq250 { if b { - yynn233++ + yynn250++ } } - r.EncodeMapStart(yynn233) - yynn233 = 0 + r.EncodeMapStart(yynn250) + yynn250 = 0 } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym235 := z.EncBinary() - _ = yym235 + yym252 := z.EncBinary() + _ = yym252 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) @@ -4028,18 +4340,18 @@ func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("claimName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym236 := z.EncBinary() - _ = yym236 + yym253 := z.EncBinary() + _ = yym253 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq233[1] { - yym238 := z.EncBinary() - _ = yym238 + if yyq250[1] { + yym255 := z.EncBinary() + _ = yym255 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -4048,19 +4360,19 @@ func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder r.EncodeBool(false) } } else { - if yyq233[1] { + if yyq250[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym239 := z.EncBinary() - _ = yym239 + yym256 := z.EncBinary() + _ = yym256 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr233 || yy2arr233 { + if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4073,25 +4385,25 @@ func (x *PersistentVolumeClaimVolumeSource) CodecDecodeSelf(d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym240 := z.DecBinary() - _ = yym240 + yym257 := z.DecBinary() + _ = yym257 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct241 := r.ContainerType() - if yyct241 == codecSelferValueTypeMap1234 { - yyl241 := r.ReadMapStart() - if yyl241 == 0 { + yyct258 := r.ContainerType() + if yyct258 == codecSelferValueTypeMap1234 { + yyl258 := r.ReadMapStart() + if yyl258 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl241, d) + x.codecDecodeSelfFromMap(yyl258, d) } - } else if yyct241 == codecSelferValueTypeArray1234 { - yyl241 := r.ReadArrayStart() - if yyl241 == 0 { + } else if yyct258 == codecSelferValueTypeArray1234 { + yyl258 := r.ReadArrayStart() + if yyl258 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl241, d) + x.codecDecodeSelfFromArray(yyl258, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4103,12 +4415,12 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *cod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys242Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys242Slc - var yyhl242 bool = l >= 0 - for yyj242 := 0; ; yyj242++ { - if yyhl242 { - if yyj242 >= l { + var yys259Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys259Slc + var yyhl259 bool = l >= 0 + for yyj259 := 0; ; yyj259++ { + if yyhl259 { + if yyj259 >= l { break } } else { @@ -4117,10 +4429,10 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *cod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys242Slc = r.DecodeBytes(yys242Slc, true, true) - yys242 := string(yys242Slc) + yys259Slc = r.DecodeBytes(yys259Slc, true, true) + yys259 := string(yys259Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys242 { + switch yys259 { case "claimName": if r.TryDecodeAsNil() { x.ClaimName = "" @@ -4134,9 +4446,9 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *cod x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys242) - } // end switch yys242 - } // end for yyj242 + z.DecStructFieldNotFound(-1, yys259) + } // end switch yys259 + } // end for yyj259 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4144,16 +4456,16 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *c var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj245 int - var yyb245 bool - var yyhl245 bool = l >= 0 - yyj245++ - if yyhl245 { - yyb245 = yyj245 > l + var yyj262 int + var yyb262 bool + var yyhl262 bool = l >= 0 + yyj262++ + if yyhl262 { + yyb262 = yyj262 > l } else { - yyb245 = r.CheckBreak() + yyb262 = r.CheckBreak() } - if yyb245 { + if yyb262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4163,13 +4475,13 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *c } else { x.ClaimName = string(r.DecodeString()) } - yyj245++ - if yyhl245 { - yyb245 = yyj245 > l + yyj262++ + if yyhl262 { + yyb262 = yyj262 > l } else { - yyb245 = r.CheckBreak() + yyb262 = r.CheckBreak() } - if yyb245 { + if yyb262 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4180,17 +4492,17 @@ func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *c x.ReadOnly = bool(r.DecodeBool()) } for { - yyj245++ - if yyhl245 { - yyb245 = yyj245 > l + yyj262++ + if yyhl262 { + yyb262 = yyj262 > l } else { - yyb245 = r.CheckBreak() + yyb262 = r.CheckBreak() } - if yyb245 { + if yyb262 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj245-1, "") + z.DecStructFieldNotFound(yyj262-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4202,46 +4514,48 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym248 := z.EncBinary() - _ = yym248 + yym265 := z.EncBinary() + _ = yym265 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep249 := !z.EncBinary() - yy2arr249 := z.EncBasicHandle().StructToArray - var yyq249 [14]bool - _, _, _ = yysep249, yyq249, yy2arr249 - const yyr249 bool = false - yyq249[0] = x.GCEPersistentDisk != nil - yyq249[1] = x.AWSElasticBlockStore != nil - yyq249[2] = x.HostPath != nil - yyq249[3] = x.Glusterfs != nil - yyq249[4] = x.NFS != nil - yyq249[5] = x.RBD != nil - yyq249[6] = x.ISCSI != nil - yyq249[7] = x.Cinder != nil - yyq249[8] = x.CephFS != nil - yyq249[9] = x.FC != nil - yyq249[10] = x.Flocker != nil - yyq249[11] = x.FlexVolume != nil - yyq249[12] = x.AzureFile != nil - yyq249[13] = x.VsphereVolume != nil - var yynn249 int - if yyr249 || yy2arr249 { - r.EncodeArrayStart(14) + yysep266 := !z.EncBinary() + yy2arr266 := z.EncBasicHandle().StructToArray + var yyq266 [16]bool + _, _, _ = yysep266, yyq266, yy2arr266 + const yyr266 bool = false + yyq266[0] = x.GCEPersistentDisk != nil + yyq266[1] = x.AWSElasticBlockStore != nil + yyq266[2] = x.HostPath != nil + yyq266[3] = x.Glusterfs != nil + yyq266[4] = x.NFS != nil + yyq266[5] = x.RBD != nil + yyq266[6] = x.ISCSI != nil + yyq266[7] = x.Cinder != nil + yyq266[8] = x.CephFS != nil + yyq266[9] = x.FC != nil + yyq266[10] = x.Flocker != nil + yyq266[11] = x.FlexVolume != nil + yyq266[12] = x.AzureFile != nil + yyq266[13] = x.VsphereVolume != nil + yyq266[14] = x.Quobyte != nil + yyq266[15] = x.AzureDisk != nil + var yynn266 int + if yyr266 || yy2arr266 { + r.EncodeArrayStart(16) } else { - yynn249 = 0 - for _, b := range yyq249 { + yynn266 = 0 + for _, b := range yyq266 { if b { - yynn249++ + yynn266++ } } - r.EncodeMapStart(yynn249) - yynn249 = 0 + r.EncodeMapStart(yynn266) + yynn266 = 0 } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq249[0] { + if yyq266[0] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { @@ -4251,7 +4565,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq249[0] { + if yyq266[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4262,9 +4576,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq249[1] { + if yyq266[1] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { @@ -4274,7 +4588,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq249[1] { + if yyq266[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4285,9 +4599,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq249[2] { + if yyq266[2] { if x.HostPath == nil { r.EncodeNil() } else { @@ -4297,7 +4611,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq249[2] { + if yyq266[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4308,9 +4622,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq249[3] { + if yyq266[3] { if x.Glusterfs == nil { r.EncodeNil() } else { @@ -4320,7 +4634,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq249[3] { + if yyq266[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4331,9 +4645,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq249[4] { + if yyq266[4] { if x.NFS == nil { r.EncodeNil() } else { @@ -4343,7 +4657,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq249[4] { + if yyq266[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4354,9 +4668,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq249[5] { + if yyq266[5] { if x.RBD == nil { r.EncodeNil() } else { @@ -4366,7 +4680,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq249[5] { + if yyq266[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4377,9 +4691,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq249[6] { + if yyq266[6] { if x.ISCSI == nil { r.EncodeNil() } else { @@ -4389,7 +4703,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq249[6] { + if yyq266[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4400,9 +4714,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq249[7] { + if yyq266[7] { if x.Cinder == nil { r.EncodeNil() } else { @@ -4412,7 +4726,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq249[7] { + if yyq266[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4423,9 +4737,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq249[8] { + if yyq266[8] { if x.CephFS == nil { r.EncodeNil() } else { @@ -4435,7 +4749,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq249[8] { + if yyq266[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4446,9 +4760,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq249[9] { + if yyq266[9] { if x.FC == nil { r.EncodeNil() } else { @@ -4458,7 +4772,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq249[9] { + if yyq266[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4469,9 +4783,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq249[10] { + if yyq266[10] { if x.Flocker == nil { r.EncodeNil() } else { @@ -4481,7 +4795,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq249[10] { + if yyq266[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4492,9 +4806,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq249[11] { + if yyq266[11] { if x.FlexVolume == nil { r.EncodeNil() } else { @@ -4504,7 +4818,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq249[11] { + if yyq266[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4515,9 +4829,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq249[12] { + if yyq266[12] { if x.AzureFile == nil { r.EncodeNil() } else { @@ -4527,7 +4841,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq249[12] { + if yyq266[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4538,9 +4852,9 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq249[13] { + if yyq266[13] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -4550,7 +4864,7 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq249[13] { + if yyq266[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -4561,7 +4875,53 @@ func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr249 || yy2arr249 { + if yyr266 || yy2arr266 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq266[14] { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq266[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("quobyte")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } + } + if yyr266 || yy2arr266 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq266[15] { + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq266[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } + } + if yyr266 || yy2arr266 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4574,25 +4934,25 @@ func (x *PersistentVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym264 := z.DecBinary() - _ = yym264 + yym283 := z.DecBinary() + _ = yym283 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct265 := r.ContainerType() - if yyct265 == codecSelferValueTypeMap1234 { - yyl265 := r.ReadMapStart() - if yyl265 == 0 { + yyct284 := r.ContainerType() + if yyct284 == codecSelferValueTypeMap1234 { + yyl284 := r.ReadMapStart() + if yyl284 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl265, d) + x.codecDecodeSelfFromMap(yyl284, d) } - } else if yyct265 == codecSelferValueTypeArray1234 { - yyl265 := r.ReadArrayStart() - if yyl265 == 0 { + } else if yyct284 == codecSelferValueTypeArray1234 { + yyl284 := r.ReadArrayStart() + if yyl284 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl265, d) + x.codecDecodeSelfFromArray(yyl284, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4604,12 +4964,12 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys266Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys266Slc - var yyhl266 bool = l >= 0 - for yyj266 := 0; ; yyj266++ { - if yyhl266 { - if yyj266 >= l { + var yys285Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys285Slc + var yyhl285 bool = l >= 0 + for yyj285 := 0; ; yyj285++ { + if yyhl285 { + if yyj285 >= l { break } } else { @@ -4618,10 +4978,10 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys266Slc = r.DecodeBytes(yys266Slc, true, true) - yys266 := string(yys266Slc) + yys285Slc = r.DecodeBytes(yys285Slc, true, true) + yys285 := string(yys285Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys266 { + switch yys285 { case "gcePersistentDisk": if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { @@ -4776,10 +5136,32 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Deco } x.VsphereVolume.CodecDecodeSelf(d) } + case "quobyte": + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil + } + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } + case "azureDisk": + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil + } + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } default: - z.DecStructFieldNotFound(-1, yys266) - } // end switch yys266 - } // end for yyj266 + z.DecStructFieldNotFound(-1, yys285) + } // end switch yys285 + } // end for yyj285 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4787,16 +5169,16 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj281 int - var yyb281 bool - var yyhl281 bool = l >= 0 - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l + var yyj302 int + var yyb302 bool + var yyhl302 bool = l >= 0 + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb281 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb281 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4811,13 +5193,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.GCEPersistentDisk.CodecDecodeSelf(d) } - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb281 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb281 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4832,13 +5214,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.AWSElasticBlockStore.CodecDecodeSelf(d) } - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb281 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb281 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4853,13 +5235,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.HostPath.CodecDecodeSelf(d) } - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb281 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb281 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4874,13 +5256,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Glusterfs.CodecDecodeSelf(d) } - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb281 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb281 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4895,13 +5277,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.NFS.CodecDecodeSelf(d) } - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb281 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb281 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4916,13 +5298,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.RBD.CodecDecodeSelf(d) } - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb281 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb281 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4937,13 +5319,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.ISCSI.CodecDecodeSelf(d) } - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb281 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb281 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4958,13 +5340,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Cinder.CodecDecodeSelf(d) } - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb281 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb281 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4979,13 +5361,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.CephFS.CodecDecodeSelf(d) } - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb281 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb281 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5000,13 +5382,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.FC.CodecDecodeSelf(d) } - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb281 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb281 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5021,13 +5403,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.Flocker.CodecDecodeSelf(d) } - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb281 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb281 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5042,13 +5424,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.FlexVolume.CodecDecodeSelf(d) } - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb281 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb281 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5063,13 +5445,13 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.AzureFile.CodecDecodeSelf(d) } - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l } else { - yyb281 = r.CheckBreak() + yyb302 = r.CheckBreak() } - if yyb281 { + if yyb302 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5084,18 +5466,60 @@ func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.De } x.VsphereVolume.CodecDecodeSelf(d) } - for { - yyj281++ - if yyhl281 { - yyb281 = yyj281 > l - } else { - yyb281 = r.CheckBreak() + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l + } else { + yyb302 = r.CheckBreak() + } + if yyb302 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil } - if yyb281 { + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l + } else { + yyb302 = r.CheckBreak() + } + if yyb302 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil + } + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } + for { + yyj302++ + if yyhl302 { + yyb302 = yyj302 > l + } else { + yyb302 = r.CheckBreak() + } + if yyb302 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj281-1, "") + z.DecStructFieldNotFound(yyj302-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5107,39 +5531,39 @@ func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym296 := z.EncBinary() - _ = yym296 + yym319 := z.EncBinary() + _ = yym319 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep297 := !z.EncBinary() - yy2arr297 := z.EncBasicHandle().StructToArray - var yyq297 [5]bool - _, _, _ = yysep297, yyq297, yy2arr297 - const yyr297 bool = false - yyq297[0] = x.Kind != "" - yyq297[1] = x.APIVersion != "" - yyq297[2] = true - yyq297[3] = true - yyq297[4] = true - var yynn297 int - if yyr297 || yy2arr297 { + yysep320 := !z.EncBinary() + yy2arr320 := z.EncBasicHandle().StructToArray + var yyq320 [5]bool + _, _, _ = yysep320, yyq320, yy2arr320 + const yyr320 bool = false + yyq320[0] = x.Kind != "" + yyq320[1] = x.APIVersion != "" + yyq320[2] = true + yyq320[3] = true + yyq320[4] = true + var yynn320 int + if yyr320 || yy2arr320 { r.EncodeArrayStart(5) } else { - yynn297 = 0 - for _, b := range yyq297 { + yynn320 = 0 + for _, b := range yyq320 { if b { - yynn297++ + yynn320++ } } - r.EncodeMapStart(yynn297) - yynn297 = 0 + r.EncodeMapStart(yynn320) + yynn320 = 0 } - if yyr297 || yy2arr297 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq297[0] { - yym299 := z.EncBinary() - _ = yym299 + if yyq320[0] { + yym322 := z.EncBinary() + _ = yym322 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -5148,23 +5572,23 @@ func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq297[0] { + if yyq320[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym300 := z.EncBinary() - _ = yym300 + yym323 := z.EncBinary() + _ = yym323 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr297 || yy2arr297 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq297[1] { - yym302 := z.EncBinary() - _ = yym302 + if yyq320[1] { + yym325 := z.EncBinary() + _ = yym325 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -5173,70 +5597,70 @@ func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq297[1] { + if yyq320[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym303 := z.EncBinary() - _ = yym303 + yym326 := z.EncBinary() + _ = yym326 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr297 || yy2arr297 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq297[2] { - yy305 := &x.ObjectMeta - yy305.CodecEncodeSelf(e) + if yyq320[2] { + yy328 := &x.ObjectMeta + yy328.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq297[2] { + if yyq320[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy306 := &x.ObjectMeta - yy306.CodecEncodeSelf(e) + yy329 := &x.ObjectMeta + yy329.CodecEncodeSelf(e) } } - if yyr297 || yy2arr297 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq297[3] { - yy308 := &x.Spec - yy308.CodecEncodeSelf(e) + if yyq320[3] { + yy331 := &x.Spec + yy331.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq297[3] { + if yyq320[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy309 := &x.Spec - yy309.CodecEncodeSelf(e) + yy332 := &x.Spec + yy332.CodecEncodeSelf(e) } } - if yyr297 || yy2arr297 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq297[4] { - yy311 := &x.Status - yy311.CodecEncodeSelf(e) + if yyq320[4] { + yy334 := &x.Status + yy334.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq297[4] { + if yyq320[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy312 := &x.Status - yy312.CodecEncodeSelf(e) + yy335 := &x.Status + yy335.CodecEncodeSelf(e) } } - if yyr297 || yy2arr297 { + if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -5249,25 +5673,25 @@ func (x *PersistentVolume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym313 := z.DecBinary() - _ = yym313 + yym336 := z.DecBinary() + _ = yym336 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct314 := r.ContainerType() - if yyct314 == codecSelferValueTypeMap1234 { - yyl314 := r.ReadMapStart() - if yyl314 == 0 { + yyct337 := r.ContainerType() + if yyct337 == codecSelferValueTypeMap1234 { + yyl337 := r.ReadMapStart() + if yyl337 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl314, d) + x.codecDecodeSelfFromMap(yyl337, d) } - } else if yyct314 == codecSelferValueTypeArray1234 { - yyl314 := r.ReadArrayStart() - if yyl314 == 0 { + } else if yyct337 == codecSelferValueTypeArray1234 { + yyl337 := r.ReadArrayStart() + if yyl337 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl314, d) + x.codecDecodeSelfFromArray(yyl337, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5279,12 +5703,12 @@ func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys315Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys315Slc - var yyhl315 bool = l >= 0 - for yyj315 := 0; ; yyj315++ { - if yyhl315 { - if yyj315 >= l { + var yys338Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys338Slc + var yyhl338 bool = l >= 0 + for yyj338 := 0; ; yyj338++ { + if yyhl338 { + if yyj338 >= l { break } } else { @@ -5293,10 +5717,10 @@ func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys315Slc = r.DecodeBytes(yys315Slc, true, true) - yys315 := string(yys315Slc) + yys338Slc = r.DecodeBytes(yys338Slc, true, true) + yys338 := string(yys338Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys315 { + switch yys338 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -5313,27 +5737,27 @@ func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv318 := &x.ObjectMeta - yyv318.CodecDecodeSelf(d) + yyv341 := &x.ObjectMeta + yyv341.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { - yyv319 := &x.Spec - yyv319.CodecDecodeSelf(d) + yyv342 := &x.Spec + yyv342.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { - yyv320 := &x.Status - yyv320.CodecDecodeSelf(d) + yyv343 := &x.Status + yyv343.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys315) - } // end switch yys315 - } // end for yyj315 + z.DecStructFieldNotFound(-1, yys338) + } // end switch yys338 + } // end for yyj338 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5341,16 +5765,16 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj321 int - var yyb321 bool - var yyhl321 bool = l >= 0 - yyj321++ - if yyhl321 { - yyb321 = yyj321 > l + var yyj344 int + var yyb344 bool + var yyhl344 bool = l >= 0 + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb321 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb321 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5360,13 +5784,13 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj321++ - if yyhl321 { - yyb321 = yyj321 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb321 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb321 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5376,13 +5800,13 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj321++ - if yyhl321 { - yyb321 = yyj321 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb321 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb321 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5390,16 +5814,16 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv324 := &x.ObjectMeta - yyv324.CodecDecodeSelf(d) + yyv347 := &x.ObjectMeta + yyv347.CodecDecodeSelf(d) } - yyj321++ - if yyhl321 { - yyb321 = yyj321 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb321 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb321 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5407,16 +5831,16 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { - yyv325 := &x.Spec - yyv325.CodecDecodeSelf(d) + yyv348 := &x.Spec + yyv348.CodecDecodeSelf(d) } - yyj321++ - if yyhl321 { - yyb321 = yyj321 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb321 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb321 { + if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5424,21 +5848,21 @@ func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { - yyv326 := &x.Status - yyv326.CodecDecodeSelf(d) + yyv349 := &x.Status + yyv349.CodecDecodeSelf(d) } for { - yyj321++ - if yyhl321 { - yyb321 = yyj321 > l + yyj344++ + if yyhl344 { + yyb344 = yyj344 > l } else { - yyb321 = r.CheckBreak() + yyb344 = r.CheckBreak() } - if yyb321 { + if yyb344 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj321-1, "") + z.DecStructFieldNotFound(yyj344-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5450,50 +5874,52 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym327 := z.EncBinary() - _ = yym327 + yym350 := z.EncBinary() + _ = yym350 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep328 := !z.EncBinary() - yy2arr328 := z.EncBasicHandle().StructToArray - var yyq328 [18]bool - _, _, _ = yysep328, yyq328, yy2arr328 - const yyr328 bool = false - yyq328[0] = len(x.Capacity) != 0 - yyq328[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil - yyq328[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil - yyq328[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil - yyq328[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil - yyq328[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil - yyq328[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil - yyq328[7] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil - yyq328[8] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil - yyq328[9] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil - yyq328[10] = x.PersistentVolumeSource.FC != nil && x.FC != nil - yyq328[11] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil - yyq328[12] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil - yyq328[13] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil - yyq328[14] = x.PersistentVolumeSource.VsphereVolume != nil && x.VsphereVolume != nil - yyq328[15] = len(x.AccessModes) != 0 - yyq328[16] = x.ClaimRef != nil - yyq328[17] = x.PersistentVolumeReclaimPolicy != "" - var yynn328 int - if yyr328 || yy2arr328 { - r.EncodeArrayStart(18) + yysep351 := !z.EncBinary() + yy2arr351 := z.EncBasicHandle().StructToArray + var yyq351 [20]bool + _, _, _ = yysep351, yyq351, yy2arr351 + const yyr351 bool = false + yyq351[0] = len(x.Capacity) != 0 + yyq351[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil + yyq351[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil + yyq351[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil + yyq351[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil + yyq351[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil + yyq351[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil + yyq351[7] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil + yyq351[8] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil + yyq351[9] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil + yyq351[10] = x.PersistentVolumeSource.FC != nil && x.FC != nil + yyq351[11] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil + yyq351[12] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil + yyq351[13] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil + yyq351[14] = x.PersistentVolumeSource.VsphereVolume != nil && x.VsphereVolume != nil + yyq351[15] = x.PersistentVolumeSource.Quobyte != nil && x.Quobyte != nil + yyq351[16] = x.PersistentVolumeSource.AzureDisk != nil && x.AzureDisk != nil + yyq351[17] = len(x.AccessModes) != 0 + yyq351[18] = x.ClaimRef != nil + yyq351[19] = x.PersistentVolumeReclaimPolicy != "" + var yynn351 int + if yyr351 || yy2arr351 { + r.EncodeArrayStart(20) } else { - yynn328 = 0 - for _, b := range yyq328 { + yynn351 = 0 + for _, b := range yyq351 { if b { - yynn328++ + yynn351++ } } - r.EncodeMapStart(yynn328) - yynn328 = 0 + r.EncodeMapStart(yynn351) + yynn351 = 0 } - if yyr328 || yy2arr328 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[0] { + if yyq351[0] { if x.Capacity == nil { r.EncodeNil() } else { @@ -5503,7 +5929,7 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq328[0] { + if yyq351[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -5514,18 +5940,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn330 bool + var yyn353 bool if x.PersistentVolumeSource.GCEPersistentDisk == nil { - yyn330 = true - goto LABEL330 + yyn353 = true + goto LABEL353 } - LABEL330: - if yyr328 || yy2arr328 { - if yyn330 { + LABEL353: + if yyr351 || yy2arr351 { + if yyn353 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[1] { + if yyq351[1] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { @@ -5536,11 +5962,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[1] { + if yyq351[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn330 { + if yyn353 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { @@ -5551,18 +5977,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn331 bool + var yyn354 bool if x.PersistentVolumeSource.AWSElasticBlockStore == nil { - yyn331 = true - goto LABEL331 + yyn354 = true + goto LABEL354 } - LABEL331: - if yyr328 || yy2arr328 { - if yyn331 { + LABEL354: + if yyr351 || yy2arr351 { + if yyn354 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[2] { + if yyq351[2] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { @@ -5573,11 +5999,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[2] { + if yyq351[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn331 { + if yyn354 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { @@ -5588,18 +6014,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn332 bool + var yyn355 bool if x.PersistentVolumeSource.HostPath == nil { - yyn332 = true - goto LABEL332 + yyn355 = true + goto LABEL355 } - LABEL332: - if yyr328 || yy2arr328 { - if yyn332 { + LABEL355: + if yyr351 || yy2arr351 { + if yyn355 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[3] { + if yyq351[3] { if x.HostPath == nil { r.EncodeNil() } else { @@ -5610,11 +6036,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[3] { + if yyq351[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn332 { + if yyn355 { r.EncodeNil() } else { if x.HostPath == nil { @@ -5625,18 +6051,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn333 bool + var yyn356 bool if x.PersistentVolumeSource.Glusterfs == nil { - yyn333 = true - goto LABEL333 + yyn356 = true + goto LABEL356 } - LABEL333: - if yyr328 || yy2arr328 { - if yyn333 { + LABEL356: + if yyr351 || yy2arr351 { + if yyn356 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[4] { + if yyq351[4] { if x.Glusterfs == nil { r.EncodeNil() } else { @@ -5647,11 +6073,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[4] { + if yyq351[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn333 { + if yyn356 { r.EncodeNil() } else { if x.Glusterfs == nil { @@ -5662,18 +6088,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn334 bool + var yyn357 bool if x.PersistentVolumeSource.NFS == nil { - yyn334 = true - goto LABEL334 + yyn357 = true + goto LABEL357 } - LABEL334: - if yyr328 || yy2arr328 { - if yyn334 { + LABEL357: + if yyr351 || yy2arr351 { + if yyn357 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[5] { + if yyq351[5] { if x.NFS == nil { r.EncodeNil() } else { @@ -5684,11 +6110,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[5] { + if yyq351[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn334 { + if yyn357 { r.EncodeNil() } else { if x.NFS == nil { @@ -5699,18 +6125,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn335 bool + var yyn358 bool if x.PersistentVolumeSource.RBD == nil { - yyn335 = true - goto LABEL335 + yyn358 = true + goto LABEL358 } - LABEL335: - if yyr328 || yy2arr328 { - if yyn335 { + LABEL358: + if yyr351 || yy2arr351 { + if yyn358 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[6] { + if yyq351[6] { if x.RBD == nil { r.EncodeNil() } else { @@ -5721,11 +6147,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[6] { + if yyq351[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn335 { + if yyn358 { r.EncodeNil() } else { if x.RBD == nil { @@ -5736,18 +6162,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn336 bool + var yyn359 bool if x.PersistentVolumeSource.ISCSI == nil { - yyn336 = true - goto LABEL336 + yyn359 = true + goto LABEL359 } - LABEL336: - if yyr328 || yy2arr328 { - if yyn336 { + LABEL359: + if yyr351 || yy2arr351 { + if yyn359 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[7] { + if yyq351[7] { if x.ISCSI == nil { r.EncodeNil() } else { @@ -5758,11 +6184,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[7] { + if yyq351[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn336 { + if yyn359 { r.EncodeNil() } else { if x.ISCSI == nil { @@ -5773,18 +6199,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn337 bool + var yyn360 bool if x.PersistentVolumeSource.Cinder == nil { - yyn337 = true - goto LABEL337 + yyn360 = true + goto LABEL360 } - LABEL337: - if yyr328 || yy2arr328 { - if yyn337 { + LABEL360: + if yyr351 || yy2arr351 { + if yyn360 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[8] { + if yyq351[8] { if x.Cinder == nil { r.EncodeNil() } else { @@ -5795,11 +6221,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[8] { + if yyq351[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn337 { + if yyn360 { r.EncodeNil() } else { if x.Cinder == nil { @@ -5810,18 +6236,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn338 bool + var yyn361 bool if x.PersistentVolumeSource.CephFS == nil { - yyn338 = true - goto LABEL338 + yyn361 = true + goto LABEL361 } - LABEL338: - if yyr328 || yy2arr328 { - if yyn338 { + LABEL361: + if yyr351 || yy2arr351 { + if yyn361 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[9] { + if yyq351[9] { if x.CephFS == nil { r.EncodeNil() } else { @@ -5832,11 +6258,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[9] { + if yyq351[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn338 { + if yyn361 { r.EncodeNil() } else { if x.CephFS == nil { @@ -5847,18 +6273,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn339 bool + var yyn362 bool if x.PersistentVolumeSource.FC == nil { - yyn339 = true - goto LABEL339 + yyn362 = true + goto LABEL362 } - LABEL339: - if yyr328 || yy2arr328 { - if yyn339 { + LABEL362: + if yyr351 || yy2arr351 { + if yyn362 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[10] { + if yyq351[10] { if x.FC == nil { r.EncodeNil() } else { @@ -5869,11 +6295,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[10] { + if yyq351[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn339 { + if yyn362 { r.EncodeNil() } else { if x.FC == nil { @@ -5884,18 +6310,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn340 bool + var yyn363 bool if x.PersistentVolumeSource.Flocker == nil { - yyn340 = true - goto LABEL340 + yyn363 = true + goto LABEL363 } - LABEL340: - if yyr328 || yy2arr328 { - if yyn340 { + LABEL363: + if yyr351 || yy2arr351 { + if yyn363 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[11] { + if yyq351[11] { if x.Flocker == nil { r.EncodeNil() } else { @@ -5906,11 +6332,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[11] { + if yyq351[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn340 { + if yyn363 { r.EncodeNil() } else { if x.Flocker == nil { @@ -5921,18 +6347,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn341 bool + var yyn364 bool if x.PersistentVolumeSource.FlexVolume == nil { - yyn341 = true - goto LABEL341 + yyn364 = true + goto LABEL364 } - LABEL341: - if yyr328 || yy2arr328 { - if yyn341 { + LABEL364: + if yyr351 || yy2arr351 { + if yyn364 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[12] { + if yyq351[12] { if x.FlexVolume == nil { r.EncodeNil() } else { @@ -5943,11 +6369,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[12] { + if yyq351[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn341 { + if yyn364 { r.EncodeNil() } else { if x.FlexVolume == nil { @@ -5958,18 +6384,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn342 bool + var yyn365 bool if x.PersistentVolumeSource.AzureFile == nil { - yyn342 = true - goto LABEL342 + yyn365 = true + goto LABEL365 } - LABEL342: - if yyr328 || yy2arr328 { - if yyn342 { + LABEL365: + if yyr351 || yy2arr351 { + if yyn365 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[13] { + if yyq351[13] { if x.AzureFile == nil { r.EncodeNil() } else { @@ -5980,11 +6406,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[13] { + if yyq351[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn342 { + if yyn365 { r.EncodeNil() } else { if x.AzureFile == nil { @@ -5995,18 +6421,18 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn343 bool + var yyn366 bool if x.PersistentVolumeSource.VsphereVolume == nil { - yyn343 = true - goto LABEL343 + yyn366 = true + goto LABEL366 } - LABEL343: - if yyr328 || yy2arr328 { - if yyn343 { + LABEL366: + if yyr351 || yy2arr351 { + if yyn366 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[14] { + if yyq351[14] { if x.VsphereVolume == nil { r.EncodeNil() } else { @@ -6017,11 +6443,11 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq328[14] { + if yyq351[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn343 { + if yyn366 { r.EncodeNil() } else { if x.VsphereVolume == nil { @@ -6032,14 +6458,88 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr328 || yy2arr328 { + var yyn367 bool + if x.PersistentVolumeSource.Quobyte == nil { + yyn367 = true + goto LABEL367 + } + LABEL367: + if yyr351 || yy2arr351 { + if yyn367 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq351[15] { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq351[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("quobyte")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn367 { + r.EncodeNil() + } else { + if x.Quobyte == nil { + r.EncodeNil() + } else { + x.Quobyte.CodecEncodeSelf(e) + } + } + } + } + var yyn368 bool + if x.PersistentVolumeSource.AzureDisk == nil { + yyn368 = true + goto LABEL368 + } + LABEL368: + if yyr351 || yy2arr351 { + if yyn368 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq351[16] { + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } + } else { + if yyq351[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn368 { + r.EncodeNil() + } else { + if x.AzureDisk == nil { + r.EncodeNil() + } else { + x.AzureDisk.CodecEncodeSelf(e) + } + } + } + } + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[15] { + if yyq351[17] { if x.AccessModes == nil { r.EncodeNil() } else { - yym345 := z.EncBinary() - _ = yym345 + yym370 := z.EncBinary() + _ = yym370 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -6049,15 +6549,15 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq328[15] { + if yyq351[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { - yym346 := z.EncBinary() - _ = yym346 + yym371 := z.EncBinary() + _ = yym371 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -6065,9 +6565,9 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr328 || yy2arr328 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[16] { + if yyq351[18] { if x.ClaimRef == nil { r.EncodeNil() } else { @@ -6077,7 +6577,7 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq328[16] { + if yyq351[18] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("claimRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -6088,22 +6588,22 @@ func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr328 || yy2arr328 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq328[17] { + if yyq351[19] { x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq328[17] { + if yyq351[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } } - if yyr328 || yy2arr328 { + if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6116,25 +6616,25 @@ func (x *PersistentVolumeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym349 := z.DecBinary() - _ = yym349 + yym374 := z.DecBinary() + _ = yym374 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct350 := r.ContainerType() - if yyct350 == codecSelferValueTypeMap1234 { - yyl350 := r.ReadMapStart() - if yyl350 == 0 { + yyct375 := r.ContainerType() + if yyct375 == codecSelferValueTypeMap1234 { + yyl375 := r.ReadMapStart() + if yyl375 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl350, d) + x.codecDecodeSelfFromMap(yyl375, d) } - } else if yyct350 == codecSelferValueTypeArray1234 { - yyl350 := r.ReadArrayStart() - if yyl350 == 0 { + } else if yyct375 == codecSelferValueTypeArray1234 { + yyl375 := r.ReadArrayStart() + if yyl375 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl350, d) + x.codecDecodeSelfFromArray(yyl375, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6146,12 +6646,12 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys351Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys351Slc - var yyhl351 bool = l >= 0 - for yyj351 := 0; ; yyj351++ { - if yyhl351 { - if yyj351 >= l { + var yys376Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys376Slc + var yyhl376 bool = l >= 0 + for yyj376 := 0; ; yyj376++ { + if yyhl376 { + if yyj376 >= l { break } } else { @@ -6160,16 +6660,16 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys351Slc = r.DecodeBytes(yys351Slc, true, true) - yys351 := string(yys351Slc) + yys376Slc = r.DecodeBytes(yys376Slc, true, true) + yys376 := string(yys376Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys351 { + switch yys376 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv352 := &x.Capacity - yyv352.CodecDecodeSelf(d) + yyv377 := &x.Capacity + yyv377.CodecDecodeSelf(d) } case "gcePersistentDisk": if x.PersistentVolumeSource.GCEPersistentDisk == nil { @@ -6367,16 +6867,44 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode } x.VsphereVolume.CodecDecodeSelf(d) } + case "quobyte": + if x.PersistentVolumeSource.Quobyte == nil { + x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource) + } + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil + } + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } + case "azureDisk": + if x.PersistentVolumeSource.AzureDisk == nil { + x.PersistentVolumeSource.AzureDisk = new(AzureDiskVolumeSource) + } + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil + } + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv367 := &x.AccessModes - yym368 := z.DecBinary() - _ = yym368 + yyv394 := &x.AccessModes + yym395 := z.DecBinary() + _ = yym395 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv367), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv394), d) } } case "claimRef": @@ -6397,9 +6925,9 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys351) - } // end switch yys351 - } // end for yyj351 + z.DecStructFieldNotFound(-1, yys376) + } // end switch yys376 + } // end for yyj376 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6407,16 +6935,16 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj371 int - var yyb371 bool - var yyhl371 bool = l >= 0 - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + var yyj398 int + var yyb398 bool + var yyhl398 bool = l >= 0 + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6424,19 +6952,19 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv372 := &x.Capacity - yyv372.CodecDecodeSelf(d) + yyv399 := &x.Capacity + yyv399.CodecDecodeSelf(d) } if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6454,13 +6982,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.AWSElasticBlockStore == nil { x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6478,13 +7006,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.HostPath == nil { x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6502,13 +7030,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Glusterfs == nil { x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6526,13 +7054,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.NFS == nil { x.PersistentVolumeSource.NFS = new(NFSVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6550,13 +7078,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.RBD == nil { x.PersistentVolumeSource.RBD = new(RBDVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6574,13 +7102,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.ISCSI == nil { x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6598,13 +7126,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6622,13 +7150,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.CephFS == nil { x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6646,13 +7174,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.FC == nil { x.PersistentVolumeSource.FC = new(FCVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6670,13 +7198,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.Flocker == nil { x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6694,13 +7222,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.FlexVolume == nil { x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6718,13 +7246,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.AzureFile == nil { x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6742,13 +7270,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if x.PersistentVolumeSource.VsphereVolume == nil { x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6763,13 +7291,61 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco } x.VsphereVolume.CodecDecodeSelf(d) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l - } else { - yyb371 = r.CheckBreak() + if x.PersistentVolumeSource.Quobyte == nil { + x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource) } - if yyb371 { + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l + } else { + yyb398 = r.CheckBreak() + } + if yyb398 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Quobyte != nil { + x.Quobyte = nil + } + } else { + if x.Quobyte == nil { + x.Quobyte = new(QuobyteVolumeSource) + } + x.Quobyte.CodecDecodeSelf(d) + } + if x.PersistentVolumeSource.AzureDisk == nil { + x.PersistentVolumeSource.AzureDisk = new(AzureDiskVolumeSource) + } + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l + } else { + yyb398 = r.CheckBreak() + } + if yyb398 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.AzureDisk != nil { + x.AzureDisk = nil + } + } else { + if x.AzureDisk == nil { + x.AzureDisk = new(AzureDiskVolumeSource) + } + x.AzureDisk.CodecDecodeSelf(d) + } + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l + } else { + yyb398 = r.CheckBreak() + } + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6777,21 +7353,21 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv387 := &x.AccessModes - yym388 := z.DecBinary() - _ = yym388 + yyv416 := &x.AccessModes + yym417 := z.DecBinary() + _ = yym417 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv387), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv416), d) } } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6806,13 +7382,13 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco } x.ClaimRef.CodecDecodeSelf(d) } - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6823,17 +7399,17 @@ func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } for { - yyj371++ - if yyhl371 { - yyb371 = yyj371 > l + yyj398++ + if yyhl398 { + yyb398 = yyj398 > l } else { - yyb371 = r.CheckBreak() + yyb398 = r.CheckBreak() } - if yyb371 { + if yyb398 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj371-1, "") + z.DecStructFieldNotFound(yyj398-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6842,8 +7418,8 @@ func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym391 := z.EncBinary() - _ = yym391 + yym420 := z.EncBinary() + _ = yym420 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -6855,8 +7431,8 @@ func (x *PersistentVolumeReclaimPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym392 := z.DecBinary() - _ = yym392 + yym421 := z.DecBinary() + _ = yym421 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -6871,52 +7447,52 @@ func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym393 := z.EncBinary() - _ = yym393 + yym422 := z.EncBinary() + _ = yym422 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep394 := !z.EncBinary() - yy2arr394 := z.EncBasicHandle().StructToArray - var yyq394 [3]bool - _, _, _ = yysep394, yyq394, yy2arr394 - const yyr394 bool = false - yyq394[0] = x.Phase != "" - yyq394[1] = x.Message != "" - yyq394[2] = x.Reason != "" - var yynn394 int - if yyr394 || yy2arr394 { + yysep423 := !z.EncBinary() + yy2arr423 := z.EncBasicHandle().StructToArray + var yyq423 [3]bool + _, _, _ = yysep423, yyq423, yy2arr423 + const yyr423 bool = false + yyq423[0] = x.Phase != "" + yyq423[1] = x.Message != "" + yyq423[2] = x.Reason != "" + var yynn423 int + if yyr423 || yy2arr423 { r.EncodeArrayStart(3) } else { - yynn394 = 0 - for _, b := range yyq394 { + yynn423 = 0 + for _, b := range yyq423 { if b { - yynn394++ + yynn423++ } } - r.EncodeMapStart(yynn394) - yynn394 = 0 + r.EncodeMapStart(yynn423) + yynn423 = 0 } - if yyr394 || yy2arr394 { + if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq394[0] { + if yyq423[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq394[0] { + if yyq423[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr394 || yy2arr394 { + if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq394[1] { - yym397 := z.EncBinary() - _ = yym397 + if yyq423[1] { + yym426 := z.EncBinary() + _ = yym426 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -6925,23 +7501,23 @@ func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq394[1] { + if yyq423[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym398 := z.EncBinary() - _ = yym398 + yym427 := z.EncBinary() + _ = yym427 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr394 || yy2arr394 { + if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq394[2] { - yym400 := z.EncBinary() - _ = yym400 + if yyq423[2] { + yym429 := z.EncBinary() + _ = yym429 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -6950,19 +7526,19 @@ func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq394[2] { + if yyq423[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym401 := z.EncBinary() - _ = yym401 + yym430 := z.EncBinary() + _ = yym430 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr394 || yy2arr394 { + if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6975,25 +7551,25 @@ func (x *PersistentVolumeStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym402 := z.DecBinary() - _ = yym402 + yym431 := z.DecBinary() + _ = yym431 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct403 := r.ContainerType() - if yyct403 == codecSelferValueTypeMap1234 { - yyl403 := r.ReadMapStart() - if yyl403 == 0 { + yyct432 := r.ContainerType() + if yyct432 == codecSelferValueTypeMap1234 { + yyl432 := r.ReadMapStart() + if yyl432 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl403, d) + x.codecDecodeSelfFromMap(yyl432, d) } - } else if yyct403 == codecSelferValueTypeArray1234 { - yyl403 := r.ReadArrayStart() - if yyl403 == 0 { + } else if yyct432 == codecSelferValueTypeArray1234 { + yyl432 := r.ReadArrayStart() + if yyl432 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl403, d) + x.codecDecodeSelfFromArray(yyl432, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7005,12 +7581,12 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys404Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys404Slc - var yyhl404 bool = l >= 0 - for yyj404 := 0; ; yyj404++ { - if yyhl404 { - if yyj404 >= l { + var yys433Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys433Slc + var yyhl433 bool = l >= 0 + for yyj433 := 0; ; yyj433++ { + if yyhl433 { + if yyj433 >= l { break } } else { @@ -7019,10 +7595,10 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys404Slc = r.DecodeBytes(yys404Slc, true, true) - yys404 := string(yys404Slc) + yys433Slc = r.DecodeBytes(yys433Slc, true, true) + yys433 := string(yys433Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys404 { + switch yys433 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -7042,328 +7618,13 @@ func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Deco x.Reason = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys404) - } // end switch yys404 - } // end for yyj404 + z.DecStructFieldNotFound(-1, yys433) + } // end switch yys433 + } // end for yyj433 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj408 int - var yyb408 bool - var yyhl408 bool = l >= 0 - yyj408++ - if yyhl408 { - yyb408 = yyj408 > l - } else { - yyb408 = r.CheckBreak() - } - if yyb408 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = PersistentVolumePhase(r.DecodeString()) - } - yyj408++ - if yyhl408 { - yyb408 = yyj408 > l - } else { - yyb408 = r.CheckBreak() - } - if yyb408 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - yyj408++ - if yyhl408 { - yyb408 = yyj408 > l - } else { - yyb408 = r.CheckBreak() - } - if yyb408 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - for { - yyj408++ - if yyhl408 { - yyb408 = yyj408 > l - } else { - yyb408 = r.CheckBreak() - } - if yyb408 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj408-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym412 := z.EncBinary() - _ = yym412 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep413 := !z.EncBinary() - yy2arr413 := z.EncBasicHandle().StructToArray - var yyq413 [4]bool - _, _, _ = yysep413, yyq413, yy2arr413 - const yyr413 bool = false - yyq413[0] = x.Kind != "" - yyq413[1] = x.APIVersion != "" - yyq413[2] = true - var yynn413 int - if yyr413 || yy2arr413 { - r.EncodeArrayStart(4) - } else { - yynn413 = 1 - for _, b := range yyq413 { - if b { - yynn413++ - } - } - r.EncodeMapStart(yynn413) - yynn413 = 0 - } - if yyr413 || yy2arr413 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq413[0] { - yym415 := z.EncBinary() - _ = yym415 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq413[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym416 := z.EncBinary() - _ = yym416 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr413 || yy2arr413 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq413[1] { - yym418 := z.EncBinary() - _ = yym418 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq413[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym419 := z.EncBinary() - _ = yym419 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr413 || yy2arr413 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq413[2] { - yy421 := &x.ListMeta - yym422 := z.EncBinary() - _ = yym422 - if false { - } else if z.HasExtensions() && z.EncExt(yy421) { - } else { - z.EncFallback(yy421) - } - } else { - r.EncodeNil() - } - } else { - if yyq413[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy423 := &x.ListMeta - yym424 := z.EncBinary() - _ = yym424 - if false { - } else if z.HasExtensions() && z.EncExt(yy423) { - } else { - z.EncFallback(yy423) - } - } - } - if yyr413 || yy2arr413 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym426 := z.EncBinary() - _ = yym426 - if false { - } else { - h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym427 := z.EncBinary() - _ = yym427 - if false { - } else { - h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) - } - } - } - if yyr413 || yy2arr413 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PersistentVolumeList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym428 := z.DecBinary() - _ = yym428 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct429 := r.ContainerType() - if yyct429 == codecSelferValueTypeMap1234 { - yyl429 := r.ReadMapStart() - if yyl429 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl429, d) - } - } else if yyct429 == codecSelferValueTypeArray1234 { - yyl429 := r.ReadArrayStart() - if yyl429 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl429, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys430Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys430Slc - var yyhl430 bool = l >= 0 - for yyj430 := 0; ; yyj430++ { - if yyhl430 { - if yyj430 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys430Slc = r.DecodeBytes(yys430Slc, true, true) - yys430 := string(yys430Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys430 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv433 := &x.ListMeta - yym434 := z.DecBinary() - _ = yym434 - if false { - } else if z.HasExtensions() && z.DecExt(yyv433) { - } else { - z.DecFallback(yyv433, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv435 := &x.Items - yym436 := z.DecBinary() - _ = yym436 - if false { - } else { - h.decSlicePersistentVolume((*[]PersistentVolume)(yyv435), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys430) - } // end switch yys430 - } // end for yyj430 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -7382,9 +7643,9 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Kind = "" + x.Phase = "" } else { - x.Kind = string(r.DecodeString()) + x.Phase = PersistentVolumePhase(r.DecodeString()) } yyj437++ if yyhl437 { @@ -7398,9 +7659,9 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.APIVersion = "" + x.Message = "" } else { - x.APIVersion = string(r.DecodeString()) + x.Message = string(r.DecodeString()) } yyj437++ if yyhl437 { @@ -7414,38 +7675,9 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Reason = "" } else { - yyv440 := &x.ListMeta - yym441 := z.DecBinary() - _ = yym441 - if false { - } else if z.HasExtensions() && z.DecExt(yyv440) { - } else { - z.DecFallback(yyv440, false) - } - } - yyj437++ - if yyhl437 { - yyb437 = yyj437 > l - } else { - yyb437 = r.CheckBreak() - } - if yyb437 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv442 := &x.Items - yym443 := z.DecBinary() - _ = yym443 - if false { - } else { - h.decSlicePersistentVolume((*[]PersistentVolume)(yyv442), d) - } + x.Reason = string(r.DecodeString()) } for { yyj437++ @@ -7463,46 +7695,44 @@ func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Deco z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym444 := z.EncBinary() - _ = yym444 + yym441 := z.EncBinary() + _ = yym441 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep445 := !z.EncBinary() - yy2arr445 := z.EncBasicHandle().StructToArray - var yyq445 [5]bool - _, _, _ = yysep445, yyq445, yy2arr445 - const yyr445 bool = false - yyq445[0] = x.Kind != "" - yyq445[1] = x.APIVersion != "" - yyq445[2] = true - yyq445[3] = true - yyq445[4] = true - var yynn445 int - if yyr445 || yy2arr445 { - r.EncodeArrayStart(5) + yysep442 := !z.EncBinary() + yy2arr442 := z.EncBasicHandle().StructToArray + var yyq442 [4]bool + _, _, _ = yysep442, yyq442, yy2arr442 + const yyr442 bool = false + yyq442[0] = x.Kind != "" + yyq442[1] = x.APIVersion != "" + yyq442[2] = true + var yynn442 int + if yyr442 || yy2arr442 { + r.EncodeArrayStart(4) } else { - yynn445 = 0 - for _, b := range yyq445 { + yynn442 = 1 + for _, b := range yyq442 { if b { - yynn445++ + yynn442++ } } - r.EncodeMapStart(yynn445) - yynn445 = 0 + r.EncodeMapStart(yynn442) + yynn442 = 0 } - if yyr445 || yy2arr445 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq445[0] { - yym447 := z.EncBinary() - _ = yym447 + if yyq442[0] { + yym444 := z.EncBinary() + _ = yym444 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -7511,423 +7741,82 @@ func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq445[0] { + if yyq442[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym445 := z.EncBinary() + _ = yym445 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr442 || yy2arr442 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq442[1] { + yym447 := z.EncBinary() + _ = yym447 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq442[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) yym448 := z.EncBinary() _ = yym448 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr445 || yy2arr445 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq445[1] { - yym450 := z.EncBinary() - _ = yym450 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq445[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyq442[2] { + yy450 := &x.ListMeta yym451 := z.EncBinary() _ = yym451 if false { + } else if z.HasExtensions() && z.EncExt(yy450) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + z.EncFallback(yy450) } - } - } - if yyr445 || yy2arr445 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq445[2] { - yy453 := &x.ObjectMeta - yy453.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq445[2] { + if yyq442[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy454 := &x.ObjectMeta - yy454.CodecEncodeSelf(e) - } - } - if yyr445 || yy2arr445 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq445[3] { - yy456 := &x.Spec - yy456.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq445[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy457 := &x.Spec - yy457.CodecEncodeSelf(e) - } - } - if yyr445 || yy2arr445 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq445[4] { - yy459 := &x.Status - yy459.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq445[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy460 := &x.Status - yy460.CodecEncodeSelf(e) - } - } - if yyr445 || yy2arr445 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *PersistentVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym461 := z.DecBinary() - _ = yym461 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct462 := r.ContainerType() - if yyct462 == codecSelferValueTypeMap1234 { - yyl462 := r.ReadMapStart() - if yyl462 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl462, d) - } - } else if yyct462 == codecSelferValueTypeArray1234 { - yyl462 := r.ReadArrayStart() - if yyl462 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl462, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys463Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys463Slc - var yyhl463 bool = l >= 0 - for yyj463 := 0; ; yyj463++ { - if yyhl463 { - if yyj463 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys463Slc = r.DecodeBytes(yys463Slc, true, true) - yys463 := string(yys463Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys463 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv466 := &x.ObjectMeta - yyv466.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeClaimSpec{} - } else { - yyv467 := &x.Spec - yyv467.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = PersistentVolumeClaimStatus{} - } else { - yyv468 := &x.Status - yyv468.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys463) - } // end switch yys463 - } // end for yyj463 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj469 int - var yyb469 bool - var yyhl469 bool = l >= 0 - yyj469++ - if yyhl469 { - yyb469 = yyj469 > l - } else { - yyb469 = r.CheckBreak() - } - if yyb469 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj469++ - if yyhl469 { - yyb469 = yyj469 > l - } else { - yyb469 = r.CheckBreak() - } - if yyb469 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj469++ - if yyhl469 { - yyb469 = yyj469 > l - } else { - yyb469 = r.CheckBreak() - } - if yyb469 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv472 := &x.ObjectMeta - yyv472.CodecDecodeSelf(d) - } - yyj469++ - if yyhl469 { - yyb469 = yyj469 > l - } else { - yyb469 = r.CheckBreak() - } - if yyb469 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = PersistentVolumeClaimSpec{} - } else { - yyv473 := &x.Spec - yyv473.CodecDecodeSelf(d) - } - yyj469++ - if yyhl469 { - yyb469 = yyj469 > l - } else { - yyb469 = r.CheckBreak() - } - if yyb469 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = PersistentVolumeClaimStatus{} - } else { - yyv474 := &x.Status - yyv474.CodecDecodeSelf(d) - } - for { - yyj469++ - if yyhl469 { - yyb469 = yyj469 > l - } else { - yyb469 = r.CheckBreak() - } - if yyb469 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj469-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym475 := z.EncBinary() - _ = yym475 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep476 := !z.EncBinary() - yy2arr476 := z.EncBasicHandle().StructToArray - var yyq476 [4]bool - _, _, _ = yysep476, yyq476, yy2arr476 - const yyr476 bool = false - yyq476[0] = x.Kind != "" - yyq476[1] = x.APIVersion != "" - yyq476[2] = true - var yynn476 int - if yyr476 || yy2arr476 { - r.EncodeArrayStart(4) - } else { - yynn476 = 1 - for _, b := range yyq476 { - if b { - yynn476++ - } - } - r.EncodeMapStart(yynn476) - yynn476 = 0 - } - if yyr476 || yy2arr476 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq476[0] { - yym478 := z.EncBinary() - _ = yym478 + yy452 := &x.ListMeta + yym453 := z.EncBinary() + _ = yym453 if false { + } else if z.HasExtensions() && z.EncExt(yy452) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq476[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym479 := z.EncBinary() - _ = yym479 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + z.EncFallback(yy452) } } } - if yyr476 || yy2arr476 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq476[1] { - yym481 := z.EncBinary() - _ = yym481 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq476[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym482 := z.EncBinary() - _ = yym482 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr476 || yy2arr476 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq476[2] { - yy484 := &x.ListMeta - yym485 := z.EncBinary() - _ = yym485 - if false { - } else if z.HasExtensions() && z.EncExt(yy484) { - } else { - z.EncFallback(yy484) - } - } else { - r.EncodeNil() - } - } else { - if yyq476[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy486 := &x.ListMeta - yym487 := z.EncBinary() - _ = yym487 - if false { - } else if z.HasExtensions() && z.EncExt(yy486) { - } else { - z.EncFallback(yy486) - } - } - } - if yyr476 || yy2arr476 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym489 := z.EncBinary() - _ = yym489 + yym455 := z.EncBinary() + _ = yym455 if false { } else { - h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) + h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } else { @@ -7937,15 +7826,15 @@ func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym490 := z.EncBinary() - _ = yym490 + yym456 := z.EncBinary() + _ = yym456 if false { } else { - h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) + h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } - if yyr476 || yy2arr476 { + if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -7954,29 +7843,29 @@ func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *PersistentVolumeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym491 := z.DecBinary() - _ = yym491 + yym457 := z.DecBinary() + _ = yym457 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct492 := r.ContainerType() - if yyct492 == codecSelferValueTypeMap1234 { - yyl492 := r.ReadMapStart() - if yyl492 == 0 { + yyct458 := r.ContainerType() + if yyct458 == codecSelferValueTypeMap1234 { + yyl458 := r.ReadMapStart() + if yyl458 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl492, d) + x.codecDecodeSelfFromMap(yyl458, d) } - } else if yyct492 == codecSelferValueTypeArray1234 { - yyl492 := r.ReadArrayStart() - if yyl492 == 0 { + } else if yyct458 == codecSelferValueTypeArray1234 { + yyl458 := r.ReadArrayStart() + if yyl458 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl492, d) + x.codecDecodeSelfFromArray(yyl458, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -7984,16 +7873,16 @@ func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys493Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys493Slc - var yyhl493 bool = l >= 0 - for yyj493 := 0; ; yyj493++ { - if yyhl493 { - if yyj493 >= l { + var yys459Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys459Slc + var yyhl459 bool = l >= 0 + for yyj459 := 0; ; yyj459++ { + if yyhl459 { + if yyj459 >= l { break } } else { @@ -8002,10 +7891,10 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys493Slc = r.DecodeBytes(yys493Slc, true, true) - yys493 := string(yys493Slc) + yys459Slc = r.DecodeBytes(yys459Slc, true, true) + yys459 := string(yys459Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys493 { + switch yys459 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -8022,48 +7911,48 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv496 := &x.ListMeta - yym497 := z.DecBinary() - _ = yym497 + yyv462 := &x.ListMeta + yym463 := z.DecBinary() + _ = yym463 if false { - } else if z.HasExtensions() && z.DecExt(yyv496) { + } else if z.HasExtensions() && z.DecExt(yyv462) { } else { - z.DecFallback(yyv496, false) + z.DecFallback(yyv462, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv498 := &x.Items - yym499 := z.DecBinary() - _ = yym499 + yyv464 := &x.Items + yym465 := z.DecBinary() + _ = yym465 if false { } else { - h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv498), d) + h.decSlicePersistentVolume((*[]PersistentVolume)(yyv464), d) } } default: - z.DecStructFieldNotFound(-1, yys493) - } // end switch yys493 - } // end for yyj493 + z.DecStructFieldNotFound(-1, yys459) + } // end switch yys459 + } // end for yyj459 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj500 int - var yyb500 bool - var yyhl500 bool = l >= 0 - yyj500++ - if yyhl500 { - yyb500 = yyj500 > l + var yyj466 int + var yyb466 bool + var yyhl466 bool = l >= 0 + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb500 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb500 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8073,13 +7962,13 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Kind = string(r.DecodeString()) } - yyj500++ - if yyhl500 { - yyb500 = yyj500 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb500 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb500 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8089,13 +7978,13 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.APIVersion = string(r.DecodeString()) } - yyj500++ - if yyhl500 { - yyb500 = yyj500 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb500 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb500 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8103,22 +7992,22 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv503 := &x.ListMeta - yym504 := z.DecBinary() - _ = yym504 + yyv469 := &x.ListMeta + yym470 := z.DecBinary() + _ = yym470 if false { - } else if z.HasExtensions() && z.DecExt(yyv503) { + } else if z.HasExtensions() && z.DecExt(yyv469) { } else { - z.DecFallback(yyv503, false) + z.DecFallback(yyv469, false) } } - yyj500++ - if yyhl500 { - yyb500 = yyj500 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb500 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb500 { + if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8126,26 +8015,713 @@ func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Items = nil } else { - yyv505 := &x.Items - yym506 := z.DecBinary() - _ = yym506 + yyv471 := &x.Items + yym472 := z.DecBinary() + _ = yym472 if false { } else { - h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv505), d) + h.decSlicePersistentVolume((*[]PersistentVolume)(yyv471), d) } } for { - yyj500++ - if yyhl500 { - yyb500 = yyj500 > l + yyj466++ + if yyhl466 { + yyb466 = yyj466 > l } else { - yyb500 = r.CheckBreak() + yyb466 = r.CheckBreak() } - if yyb500 { + if yyb466 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj500-1, "") + z.DecStructFieldNotFound(yyj466-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym473 := z.EncBinary() + _ = yym473 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep474 := !z.EncBinary() + yy2arr474 := z.EncBasicHandle().StructToArray + var yyq474 [5]bool + _, _, _ = yysep474, yyq474, yy2arr474 + const yyr474 bool = false + yyq474[0] = x.Kind != "" + yyq474[1] = x.APIVersion != "" + yyq474[2] = true + yyq474[3] = true + yyq474[4] = true + var yynn474 int + if yyr474 || yy2arr474 { + r.EncodeArrayStart(5) + } else { + yynn474 = 0 + for _, b := range yyq474 { + if b { + yynn474++ + } + } + r.EncodeMapStart(yynn474) + yynn474 = 0 + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq474[0] { + yym476 := z.EncBinary() + _ = yym476 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq474[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym477 := z.EncBinary() + _ = yym477 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq474[1] { + yym479 := z.EncBinary() + _ = yym479 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq474[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym480 := z.EncBinary() + _ = yym480 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq474[2] { + yy482 := &x.ObjectMeta + yy482.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq474[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy483 := &x.ObjectMeta + yy483.CodecEncodeSelf(e) + } + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq474[3] { + yy485 := &x.Spec + yy485.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq474[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy486 := &x.Spec + yy486.CodecEncodeSelf(e) + } + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq474[4] { + yy488 := &x.Status + yy488.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq474[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy489 := &x.Status + yy489.CodecEncodeSelf(e) + } + } + if yyr474 || yy2arr474 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym490 := z.DecBinary() + _ = yym490 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct491 := r.ContainerType() + if yyct491 == codecSelferValueTypeMap1234 { + yyl491 := r.ReadMapStart() + if yyl491 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl491, d) + } + } else if yyct491 == codecSelferValueTypeArray1234 { + yyl491 := r.ReadArrayStart() + if yyl491 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl491, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys492Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys492Slc + var yyhl492 bool = l >= 0 + for yyj492 := 0; ; yyj492++ { + if yyhl492 { + if yyj492 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys492Slc = r.DecodeBytes(yys492Slc, true, true) + yys492 := string(yys492Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys492 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv495 := &x.ObjectMeta + yyv495.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = PersistentVolumeClaimSpec{} + } else { + yyv496 := &x.Spec + yyv496.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = PersistentVolumeClaimStatus{} + } else { + yyv497 := &x.Status + yyv497.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys492) + } // end switch yys492 + } // end for yyj492 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj498 int + var yyb498 bool + var yyhl498 bool = l >= 0 + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l + } else { + yyb498 = r.CheckBreak() + } + if yyb498 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l + } else { + yyb498 = r.CheckBreak() + } + if yyb498 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l + } else { + yyb498 = r.CheckBreak() + } + if yyb498 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv501 := &x.ObjectMeta + yyv501.CodecDecodeSelf(d) + } + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l + } else { + yyb498 = r.CheckBreak() + } + if yyb498 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = PersistentVolumeClaimSpec{} + } else { + yyv502 := &x.Spec + yyv502.CodecDecodeSelf(d) + } + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l + } else { + yyb498 = r.CheckBreak() + } + if yyb498 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = PersistentVolumeClaimStatus{} + } else { + yyv503 := &x.Status + yyv503.CodecDecodeSelf(d) + } + for { + yyj498++ + if yyhl498 { + yyb498 = yyj498 > l + } else { + yyb498 = r.CheckBreak() + } + if yyb498 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj498-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym504 := z.EncBinary() + _ = yym504 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep505 := !z.EncBinary() + yy2arr505 := z.EncBasicHandle().StructToArray + var yyq505 [4]bool + _, _, _ = yysep505, yyq505, yy2arr505 + const yyr505 bool = false + yyq505[0] = x.Kind != "" + yyq505[1] = x.APIVersion != "" + yyq505[2] = true + var yynn505 int + if yyr505 || yy2arr505 { + r.EncodeArrayStart(4) + } else { + yynn505 = 1 + for _, b := range yyq505 { + if b { + yynn505++ + } + } + r.EncodeMapStart(yynn505) + yynn505 = 0 + } + if yyr505 || yy2arr505 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq505[0] { + yym507 := z.EncBinary() + _ = yym507 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq505[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym508 := z.EncBinary() + _ = yym508 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr505 || yy2arr505 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq505[1] { + yym510 := z.EncBinary() + _ = yym510 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq505[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym511 := z.EncBinary() + _ = yym511 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr505 || yy2arr505 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq505[2] { + yy513 := &x.ListMeta + yym514 := z.EncBinary() + _ = yym514 + if false { + } else if z.HasExtensions() && z.EncExt(yy513) { + } else { + z.EncFallback(yy513) + } + } else { + r.EncodeNil() + } + } else { + if yyq505[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy515 := &x.ListMeta + yym516 := z.EncBinary() + _ = yym516 + if false { + } else if z.HasExtensions() && z.EncExt(yy515) { + } else { + z.EncFallback(yy515) + } + } + } + if yyr505 || yy2arr505 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym518 := z.EncBinary() + _ = yym518 + if false { + } else { + h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym519 := z.EncBinary() + _ = yym519 + if false { + } else { + h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) + } + } + } + if yyr505 || yy2arr505 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym520 := z.DecBinary() + _ = yym520 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct521 := r.ContainerType() + if yyct521 == codecSelferValueTypeMap1234 { + yyl521 := r.ReadMapStart() + if yyl521 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl521, d) + } + } else if yyct521 == codecSelferValueTypeArray1234 { + yyl521 := r.ReadArrayStart() + if yyl521 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl521, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys522Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys522Slc + var yyhl522 bool = l >= 0 + for yyj522 := 0; ; yyj522++ { + if yyhl522 { + if yyj522 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys522Slc = r.DecodeBytes(yys522Slc, true, true) + yys522 := string(yys522Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys522 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv525 := &x.ListMeta + yym526 := z.DecBinary() + _ = yym526 + if false { + } else if z.HasExtensions() && z.DecExt(yyv525) { + } else { + z.DecFallback(yyv525, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv527 := &x.Items + yym528 := z.DecBinary() + _ = yym528 + if false { + } else { + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv527), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys522) + } // end switch yys522 + } // end for yyj522 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj529 int + var yyb529 bool + var yyhl529 bool = l >= 0 + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l + } else { + yyb529 = r.CheckBreak() + } + if yyb529 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l + } else { + yyb529 = r.CheckBreak() + } + if yyb529 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l + } else { + yyb529 = r.CheckBreak() + } + if yyb529 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv532 := &x.ListMeta + yym533 := z.DecBinary() + _ = yym533 + if false { + } else if z.HasExtensions() && z.DecExt(yyv532) { + } else { + z.DecFallback(yyv532, false) + } + } + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l + } else { + yyb529 = r.CheckBreak() + } + if yyb529 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv534 := &x.Items + yym535 := z.DecBinary() + _ = yym535 + if false { + } else { + h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv534), d) + } + } + for { + yyj529++ + if yyhl529 { + yyb529 = yyj529 > l + } else { + yyb529 = r.CheckBreak() + } + if yyb529 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj529-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8157,41 +8733,41 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym507 := z.EncBinary() - _ = yym507 + yym536 := z.EncBinary() + _ = yym536 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep508 := !z.EncBinary() - yy2arr508 := z.EncBasicHandle().StructToArray - var yyq508 [4]bool - _, _, _ = yysep508, yyq508, yy2arr508 - const yyr508 bool = false - yyq508[0] = len(x.AccessModes) != 0 - yyq508[1] = x.Selector != nil - yyq508[2] = true - yyq508[3] = x.VolumeName != "" - var yynn508 int - if yyr508 || yy2arr508 { + yysep537 := !z.EncBinary() + yy2arr537 := z.EncBasicHandle().StructToArray + var yyq537 [4]bool + _, _, _ = yysep537, yyq537, yy2arr537 + const yyr537 bool = false + yyq537[0] = len(x.AccessModes) != 0 + yyq537[1] = x.Selector != nil + yyq537[2] = true + yyq537[3] = x.VolumeName != "" + var yynn537 int + if yyr537 || yy2arr537 { r.EncodeArrayStart(4) } else { - yynn508 = 0 - for _, b := range yyq508 { + yynn537 = 0 + for _, b := range yyq537 { if b { - yynn508++ + yynn537++ } } - r.EncodeMapStart(yynn508) - yynn508 = 0 + r.EncodeMapStart(yynn537) + yynn537 = 0 } - if yyr508 || yy2arr508 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq508[0] { + if yyq537[0] { if x.AccessModes == nil { r.EncodeNil() } else { - yym510 := z.EncBinary() - _ = yym510 + yym539 := z.EncBinary() + _ = yym539 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -8201,15 +8777,15 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq508[0] { + if yyq537[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { - yym511 := z.EncBinary() - _ = yym511 + yym540 := z.EncBinary() + _ = yym540 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -8217,14 +8793,14 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr508 || yy2arr508 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq508[1] { + if yyq537[1] { if x.Selector == nil { r.EncodeNil() } else { - yym513 := z.EncBinary() - _ = yym513 + yym542 := z.EncBinary() + _ = yym542 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -8235,15 +8811,15 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq508[1] { + if yyq537[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym514 := z.EncBinary() - _ = yym514 + yym543 := z.EncBinary() + _ = yym543 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { @@ -8252,28 +8828,28 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr508 || yy2arr508 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq508[2] { - yy516 := &x.Resources - yy516.CodecEncodeSelf(e) + if yyq537[2] { + yy545 := &x.Resources + yy545.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq508[2] { + if yyq537[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy517 := &x.Resources - yy517.CodecEncodeSelf(e) + yy546 := &x.Resources + yy546.CodecEncodeSelf(e) } } - if yyr508 || yy2arr508 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq508[3] { - yym519 := z.EncBinary() - _ = yym519 + if yyq537[3] { + yym548 := z.EncBinary() + _ = yym548 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) @@ -8282,19 +8858,19 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq508[3] { + if yyq537[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym520 := z.EncBinary() - _ = yym520 + yym549 := z.EncBinary() + _ = yym549 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } } - if yyr508 || yy2arr508 { + if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8307,25 +8883,25 @@ func (x *PersistentVolumeClaimSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym521 := z.DecBinary() - _ = yym521 + yym550 := z.DecBinary() + _ = yym550 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct522 := r.ContainerType() - if yyct522 == codecSelferValueTypeMap1234 { - yyl522 := r.ReadMapStart() - if yyl522 == 0 { + yyct551 := r.ContainerType() + if yyct551 == codecSelferValueTypeMap1234 { + yyl551 := r.ReadMapStart() + if yyl551 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl522, d) + x.codecDecodeSelfFromMap(yyl551, d) } - } else if yyct522 == codecSelferValueTypeArray1234 { - yyl522 := r.ReadArrayStart() - if yyl522 == 0 { + } else if yyct551 == codecSelferValueTypeArray1234 { + yyl551 := r.ReadArrayStart() + if yyl551 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl522, d) + x.codecDecodeSelfFromArray(yyl551, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8337,12 +8913,12 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys523Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys523Slc - var yyhl523 bool = l >= 0 - for yyj523 := 0; ; yyj523++ { - if yyhl523 { - if yyj523 >= l { + var yys552Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys552Slc + var yyhl552 bool = l >= 0 + for yyj552 := 0; ; yyj552++ { + if yyhl552 { + if yyj552 >= l { break } } else { @@ -8351,20 +8927,20 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys523Slc = r.DecodeBytes(yys523Slc, true, true) - yys523 := string(yys523Slc) + yys552Slc = r.DecodeBytes(yys552Slc, true, true) + yys552 := string(yys552Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys523 { + switch yys552 { case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv524 := &x.AccessModes - yym525 := z.DecBinary() - _ = yym525 + yyv553 := &x.AccessModes + yym554 := z.DecBinary() + _ = yym554 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv524), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv553), d) } } case "selector": @@ -8376,8 +8952,8 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } - yym527 := z.DecBinary() - _ = yym527 + yym556 := z.DecBinary() + _ = yym556 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { @@ -8388,8 +8964,8 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv528 := &x.Resources - yyv528.CodecDecodeSelf(d) + yyv557 := &x.Resources + yyv557.CodecDecodeSelf(d) } case "volumeName": if r.TryDecodeAsNil() { @@ -8398,9 +8974,9 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D x.VolumeName = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys523) - } // end switch yys523 - } // end for yyj523 + z.DecStructFieldNotFound(-1, yys552) + } // end switch yys552 + } // end for yyj552 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8408,16 +8984,16 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj530 int - var yyb530 bool - var yyhl530 bool = l >= 0 - yyj530++ - if yyhl530 { - yyb530 = yyj530 > l + var yyj559 int + var yyb559 bool + var yyhl559 bool = l >= 0 + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb530 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb530 { + if yyb559 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8425,21 +9001,21 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv531 := &x.AccessModes - yym532 := z.DecBinary() - _ = yym532 + yyv560 := &x.AccessModes + yym561 := z.DecBinary() + _ = yym561 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv531), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv560), d) } } - yyj530++ - if yyhl530 { - yyb530 = yyj530 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb530 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb530 { + if yyb559 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8452,21 +9028,21 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } - yym534 := z.DecBinary() - _ = yym534 + yym563 := z.DecBinary() + _ = yym563 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } - yyj530++ - if yyhl530 { - yyb530 = yyj530 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb530 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb530 { + if yyb559 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8474,16 +9050,16 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv535 := &x.Resources - yyv535.CodecDecodeSelf(d) + yyv564 := &x.Resources + yyv564.CodecDecodeSelf(d) } - yyj530++ - if yyhl530 { - yyb530 = yyj530 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb530 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb530 { + if yyb559 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8494,17 +9070,17 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978 x.VolumeName = string(r.DecodeString()) } for { - yyj530++ - if yyhl530 { - yyb530 = yyj530 > l + yyj559++ + if yyhl559 { + yyb559 = yyj559 > l } else { - yyb530 = r.CheckBreak() + yyb559 = r.CheckBreak() } - if yyb530 { + if yyb559 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj530-1, "") + z.DecStructFieldNotFound(yyj559-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -8516,55 +9092,55 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym537 := z.EncBinary() - _ = yym537 + yym566 := z.EncBinary() + _ = yym566 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep538 := !z.EncBinary() - yy2arr538 := z.EncBasicHandle().StructToArray - var yyq538 [3]bool - _, _, _ = yysep538, yyq538, yy2arr538 - const yyr538 bool = false - yyq538[0] = x.Phase != "" - yyq538[1] = len(x.AccessModes) != 0 - yyq538[2] = len(x.Capacity) != 0 - var yynn538 int - if yyr538 || yy2arr538 { + yysep567 := !z.EncBinary() + yy2arr567 := z.EncBasicHandle().StructToArray + var yyq567 [3]bool + _, _, _ = yysep567, yyq567, yy2arr567 + const yyr567 bool = false + yyq567[0] = x.Phase != "" + yyq567[1] = len(x.AccessModes) != 0 + yyq567[2] = len(x.Capacity) != 0 + var yynn567 int + if yyr567 || yy2arr567 { r.EncodeArrayStart(3) } else { - yynn538 = 0 - for _, b := range yyq538 { + yynn567 = 0 + for _, b := range yyq567 { if b { - yynn538++ + yynn567++ } } - r.EncodeMapStart(yynn538) - yynn538 = 0 + r.EncodeMapStart(yynn567) + yynn567 = 0 } - if yyr538 || yy2arr538 { + if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq538[0] { + if yyq567[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq538[0] { + if yyq567[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr538 || yy2arr538 { + if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq538[1] { + if yyq567[1] { if x.AccessModes == nil { r.EncodeNil() } else { - yym541 := z.EncBinary() - _ = yym541 + yym570 := z.EncBinary() + _ = yym570 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -8574,15 +9150,15 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq538[1] { + if yyq567[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { - yym542 := z.EncBinary() - _ = yym542 + yym571 := z.EncBinary() + _ = yym571 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) @@ -8590,9 +9166,9 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr538 || yy2arr538 { + if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq538[2] { + if yyq567[2] { if x.Capacity == nil { r.EncodeNil() } else { @@ -8602,7 +9178,7 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq538[2] { + if yyq567[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -8613,7 +9189,7 @@ func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr538 || yy2arr538 { + if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8626,25 +9202,25 @@ func (x *PersistentVolumeClaimStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym544 := z.DecBinary() - _ = yym544 + yym573 := z.DecBinary() + _ = yym573 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct545 := r.ContainerType() - if yyct545 == codecSelferValueTypeMap1234 { - yyl545 := r.ReadMapStart() - if yyl545 == 0 { + yyct574 := r.ContainerType() + if yyct574 == codecSelferValueTypeMap1234 { + yyl574 := r.ReadMapStart() + if yyl574 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl545, d) + x.codecDecodeSelfFromMap(yyl574, d) } - } else if yyct545 == codecSelferValueTypeArray1234 { - yyl545 := r.ReadArrayStart() - if yyl545 == 0 { + } else if yyct574 == codecSelferValueTypeArray1234 { + yyl574 := r.ReadArrayStart() + if yyl574 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl545, d) + x.codecDecodeSelfFromArray(yyl574, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8656,12 +9232,12 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys546Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys546Slc - var yyhl546 bool = l >= 0 - for yyj546 := 0; ; yyj546++ { - if yyhl546 { - if yyj546 >= l { + var yys575Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys575Slc + var yyhl575 bool = l >= 0 + for yyj575 := 0; ; yyj575++ { + if yyhl575 { + if yyj575 >= l { break } } else { @@ -8670,10 +9246,10 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys546Slc = r.DecodeBytes(yys546Slc, true, true) - yys546 := string(yys546Slc) + yys575Slc = r.DecodeBytes(yys575Slc, true, true) + yys575 := string(yys575Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys546 { + switch yys575 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -8684,467 +9260,29 @@ func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978 if r.TryDecodeAsNil() { x.AccessModes = nil } else { - yyv548 := &x.AccessModes - yym549 := z.DecBinary() - _ = yym549 + yyv577 := &x.AccessModes + yym578 := z.DecBinary() + _ = yym578 if false { } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv548), d) + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv577), d) } } case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv550 := &x.Capacity - yyv550.CodecDecodeSelf(d) + yyv579 := &x.Capacity + yyv579.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys546) - } // end switch yys546 - } // end for yyj546 + z.DecStructFieldNotFound(-1, yys575) + } // end switch yys575 + } // end for yyj575 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj551 int - var yyb551 bool - var yyhl551 bool = l >= 0 - yyj551++ - if yyhl551 { - yyb551 = yyj551 > l - } else { - yyb551 = r.CheckBreak() - } - if yyb551 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) - } - yyj551++ - if yyhl551 { - yyb551 = yyj551 > l - } else { - yyb551 = r.CheckBreak() - } - if yyb551 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.AccessModes = nil - } else { - yyv553 := &x.AccessModes - yym554 := z.DecBinary() - _ = yym554 - if false { - } else { - h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv553), d) - } - } - yyj551++ - if yyhl551 { - yyb551 = yyj551 > l - } else { - yyb551 = r.CheckBreak() - } - if yyb551 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Capacity = nil - } else { - yyv555 := &x.Capacity - yyv555.CodecDecodeSelf(d) - } - for { - yyj551++ - if yyhl551 { - yyb551 = yyj551 > l - } else { - yyb551 = r.CheckBreak() - } - if yyb551 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj551-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym556 := z.EncBinary() - _ = yym556 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *PersistentVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym557 := z.DecBinary() - _ = yym557 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x PersistentVolumePhase) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym558 := z.EncBinary() - _ = yym558 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *PersistentVolumePhase) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym559 := z.DecBinary() - _ = yym559 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x PersistentVolumeClaimPhase) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym560 := z.EncBinary() - _ = yym560 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *PersistentVolumeClaimPhase) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym561 := z.DecBinary() - _ = yym561 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym562 := z.EncBinary() - _ = yym562 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep563 := !z.EncBinary() - yy2arr563 := z.EncBasicHandle().StructToArray - var yyq563 [1]bool - _, _, _ = yysep563, yyq563, yy2arr563 - const yyr563 bool = false - var yynn563 int - if yyr563 || yy2arr563 { - r.EncodeArrayStart(1) - } else { - yynn563 = 1 - for _, b := range yyq563 { - if b { - yynn563++ - } - } - r.EncodeMapStart(yynn563) - yynn563 = 0 - } - if yyr563 || yy2arr563 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym565 := z.EncBinary() - _ = yym565 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("path")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym566 := z.EncBinary() - _ = yym566 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - if yyr563 || yy2arr563 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *HostPathVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym567 := z.DecBinary() - _ = yym567 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct568 := r.ContainerType() - if yyct568 == codecSelferValueTypeMap1234 { - yyl568 := r.ReadMapStart() - if yyl568 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl568, d) - } - } else if yyct568 == codecSelferValueTypeArray1234 { - yyl568 := r.ReadArrayStart() - if yyl568 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl568, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys569Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys569Slc - var yyhl569 bool = l >= 0 - for yyj569 := 0; ; yyj569++ { - if yyhl569 { - if yyj569 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys569Slc = r.DecodeBytes(yys569Slc, true, true) - yys569 := string(yys569Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys569 { - case "path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys569) - } // end switch yys569 - } // end for yyj569 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj571 int - var yyb571 bool - var yyhl571 bool = l >= 0 - yyj571++ - if yyhl571 { - yyb571 = yyj571 > l - } else { - yyb571 = r.CheckBreak() - } - if yyb571 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - for { - yyj571++ - if yyhl571 { - yyb571 = yyj571 > l - } else { - yyb571 = r.CheckBreak() - } - if yyb571 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj571-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EmptyDirVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym573 := z.EncBinary() - _ = yym573 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep574 := !z.EncBinary() - yy2arr574 := z.EncBasicHandle().StructToArray - var yyq574 [1]bool - _, _, _ = yysep574, yyq574, yy2arr574 - const yyr574 bool = false - yyq574[0] = x.Medium != "" - var yynn574 int - if yyr574 || yy2arr574 { - r.EncodeArrayStart(1) - } else { - yynn574 = 0 - for _, b := range yyq574 { - if b { - yynn574++ - } - } - r.EncodeMapStart(yynn574) - yynn574 = 0 - } - if yyr574 || yy2arr574 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq574[0] { - x.Medium.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq574[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("medium")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Medium.CodecEncodeSelf(e) - } - } - if yyr574 || yy2arr574 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EmptyDirVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym576 := z.DecBinary() - _ = yym576 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct577 := r.ContainerType() - if yyct577 == codecSelferValueTypeMap1234 { - yyl577 := r.ReadMapStart() - if yyl577 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl577, d) - } - } else if yyct577 == codecSelferValueTypeArray1234 { - yyl577 := r.ReadArrayStart() - if yyl577 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl577, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys578Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys578Slc - var yyhl578 bool = l >= 0 - for yyj578 := 0; ; yyj578++ { - if yyhl578 { - if yyj578 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys578Slc = r.DecodeBytes(yys578Slc, true, true) - yys578 := string(yys578Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys578 { - case "medium": - if r.TryDecodeAsNil() { - x.Medium = "" - } else { - x.Medium = StorageMedium(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys578) - } // end switch yys578 - } // end for yyj578 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -9163,9 +9301,48 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Medium = "" + x.Phase = "" } else { - x.Medium = StorageMedium(r.DecodeString()) + x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) + } + yyj580++ + if yyhl580 { + yyb580 = yyj580 > l + } else { + yyb580 = r.CheckBreak() + } + if yyb580 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AccessModes = nil + } else { + yyv582 := &x.AccessModes + yym583 := z.DecBinary() + _ = yym583 + if false { + } else { + h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv582), d) + } + } + yyj580++ + if yyhl580 { + yyb580 = yyj580 > l + } else { + yyb580 = r.CheckBreak() + } + if yyb580 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Capacity = nil + } else { + yyv584 := &x.Capacity + yyv584.CodecDecodeSelf(d) } for { yyj580++ @@ -9183,60 +9360,118 @@ func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Deco z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { +func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym585 := z.EncBinary() + _ = yym585 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PersistentVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym586 := z.DecBinary() + _ = yym586 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x PersistentVolumePhase) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym587 := z.EncBinary() + _ = yym587 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PersistentVolumePhase) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym588 := z.DecBinary() + _ = yym588 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x PersistentVolumeClaimPhase) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym589 := z.EncBinary() + _ = yym589 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *PersistentVolumeClaimPhase) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym590 := z.DecBinary() + _ = yym590 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym582 := z.EncBinary() - _ = yym582 + yym591 := z.EncBinary() + _ = yym591 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep583 := !z.EncBinary() - yy2arr583 := z.EncBasicHandle().StructToArray - var yyq583 [3]bool - _, _, _ = yysep583, yyq583, yy2arr583 - const yyr583 bool = false - yyq583[2] = x.ReadOnly != false - var yynn583 int - if yyr583 || yy2arr583 { - r.EncodeArrayStart(3) + yysep592 := !z.EncBinary() + yy2arr592 := z.EncBasicHandle().StructToArray + var yyq592 [1]bool + _, _, _ = yysep592, yyq592, yy2arr592 + const yyr592 bool = false + var yynn592 int + if yyr592 || yy2arr592 { + r.EncodeArrayStart(1) } else { - yynn583 = 2 - for _, b := range yyq583 { + yynn592 = 1 + for _, b := range yyq592 { if b { - yynn583++ + yynn592++ } } - r.EncodeMapStart(yynn583) - yynn583 = 0 + r.EncodeMapStart(yynn592) + yynn592 = 0 } - if yyr583 || yy2arr583 { + if yyr592 || yy2arr592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym585 := z.EncBinary() - _ = yym585 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("endpoints")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym586 := z.EncBinary() - _ = yym586 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) - } - } - if yyr583 || yy2arr583 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym588 := z.EncBinary() - _ = yym588 + yym594 := z.EncBinary() + _ = yym594 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -9245,18 +9480,359 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym589 := z.EncBinary() - _ = yym589 + yym595 := z.EncBinary() + _ = yym595 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr583 || yy2arr583 { + if yyr592 || yy2arr592 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *HostPathVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym596 := z.DecBinary() + _ = yym596 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct597 := r.ContainerType() + if yyct597 == codecSelferValueTypeMap1234 { + yyl597 := r.ReadMapStart() + if yyl597 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl597, d) + } + } else if yyct597 == codecSelferValueTypeArray1234 { + yyl597 := r.ReadArrayStart() + if yyl597 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl597, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys598Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys598Slc + var yyhl598 bool = l >= 0 + for yyj598 := 0; ; yyj598++ { + if yyhl598 { + if yyj598 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys598Slc = r.DecodeBytes(yys598Slc, true, true) + yys598 := string(yys598Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys598 { + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys598) + } // end switch yys598 + } // end for yyj598 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj600 int + var yyb600 bool + var yyhl600 bool = l >= 0 + yyj600++ + if yyhl600 { + yyb600 = yyj600 > l + } else { + yyb600 = r.CheckBreak() + } + if yyb600 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + for { + yyj600++ + if yyhl600 { + yyb600 = yyj600 > l + } else { + yyb600 = r.CheckBreak() + } + if yyb600 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj600-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *EmptyDirVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym602 := z.EncBinary() + _ = yym602 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep603 := !z.EncBinary() + yy2arr603 := z.EncBasicHandle().StructToArray + var yyq603 [1]bool + _, _, _ = yysep603, yyq603, yy2arr603 + const yyr603 bool = false + yyq603[0] = x.Medium != "" + var yynn603 int + if yyr603 || yy2arr603 { + r.EncodeArrayStart(1) + } else { + yynn603 = 0 + for _, b := range yyq603 { + if b { + yynn603++ + } + } + r.EncodeMapStart(yynn603) + yynn603 = 0 + } + if yyr603 || yy2arr603 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq583[2] { - yym591 := z.EncBinary() - _ = yym591 + if yyq603[0] { + x.Medium.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq603[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("medium")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Medium.CodecEncodeSelf(e) + } + } + if yyr603 || yy2arr603 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *EmptyDirVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym605 := z.DecBinary() + _ = yym605 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct606 := r.ContainerType() + if yyct606 == codecSelferValueTypeMap1234 { + yyl606 := r.ReadMapStart() + if yyl606 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl606, d) + } + } else if yyct606 == codecSelferValueTypeArray1234 { + yyl606 := r.ReadArrayStart() + if yyl606 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl606, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys607Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys607Slc + var yyhl607 bool = l >= 0 + for yyj607 := 0; ; yyj607++ { + if yyhl607 { + if yyj607 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys607Slc = r.DecodeBytes(yys607Slc, true, true) + yys607 := string(yys607Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys607 { + case "medium": + if r.TryDecodeAsNil() { + x.Medium = "" + } else { + x.Medium = StorageMedium(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys607) + } // end switch yys607 + } // end for yyj607 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj609 int + var yyb609 bool + var yyhl609 bool = l >= 0 + yyj609++ + if yyhl609 { + yyb609 = yyj609 > l + } else { + yyb609 = r.CheckBreak() + } + if yyb609 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Medium = "" + } else { + x.Medium = StorageMedium(r.DecodeString()) + } + for { + yyj609++ + if yyhl609 { + yyb609 = yyj609 > l + } else { + yyb609 = r.CheckBreak() + } + if yyb609 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj609-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym611 := z.EncBinary() + _ = yym611 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep612 := !z.EncBinary() + yy2arr612 := z.EncBasicHandle().StructToArray + var yyq612 [3]bool + _, _, _ = yysep612, yyq612, yy2arr612 + const yyr612 bool = false + yyq612[2] = x.ReadOnly != false + var yynn612 int + if yyr612 || yy2arr612 { + r.EncodeArrayStart(3) + } else { + yynn612 = 2 + for _, b := range yyq612 { + if b { + yynn612++ + } + } + r.EncodeMapStart(yynn612) + yynn612 = 0 + } + if yyr612 || yy2arr612 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym614 := z.EncBinary() + _ = yym614 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("endpoints")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym615 := z.EncBinary() + _ = yym615 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) + } + } + if yyr612 || yy2arr612 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym617 := z.EncBinary() + _ = yym617 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("path")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym618 := z.EncBinary() + _ = yym618 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr612 || yy2arr612 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq612[2] { + yym620 := z.EncBinary() + _ = yym620 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -9265,19 +9841,19 @@ func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq583[2] { + if yyq612[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym592 := z.EncBinary() - _ = yym592 + yym621 := z.EncBinary() + _ = yym621 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr583 || yy2arr583 { + if yyr612 || yy2arr612 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9290,25 +9866,25 @@ func (x *GlusterfsVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym593 := z.DecBinary() - _ = yym593 + yym622 := z.DecBinary() + _ = yym622 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct594 := r.ContainerType() - if yyct594 == codecSelferValueTypeMap1234 { - yyl594 := r.ReadMapStart() - if yyl594 == 0 { + yyct623 := r.ContainerType() + if yyct623 == codecSelferValueTypeMap1234 { + yyl623 := r.ReadMapStart() + if yyl623 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl594, d) + x.codecDecodeSelfFromMap(yyl623, d) } - } else if yyct594 == codecSelferValueTypeArray1234 { - yyl594 := r.ReadArrayStart() - if yyl594 == 0 { + } else if yyct623 == codecSelferValueTypeArray1234 { + yyl623 := r.ReadArrayStart() + if yyl623 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl594, d) + x.codecDecodeSelfFromArray(yyl623, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9320,12 +9896,12 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys595Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys595Slc - var yyhl595 bool = l >= 0 - for yyj595 := 0; ; yyj595++ { - if yyhl595 { - if yyj595 >= l { + var yys624Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys624Slc + var yyhl624 bool = l >= 0 + for yyj624 := 0; ; yyj624++ { + if yyhl624 { + if yyj624 >= l { break } } else { @@ -9334,10 +9910,10 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys595Slc = r.DecodeBytes(yys595Slc, true, true) - yys595 := string(yys595Slc) + yys624Slc = r.DecodeBytes(yys624Slc, true, true) + yys624 := string(yys624Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys595 { + switch yys624 { case "endpoints": if r.TryDecodeAsNil() { x.EndpointsName = "" @@ -9357,9 +9933,9 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys595) - } // end switch yys595 - } // end for yyj595 + z.DecStructFieldNotFound(-1, yys624) + } // end switch yys624 + } // end for yyj624 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9367,16 +9943,16 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj599 int - var yyb599 bool - var yyhl599 bool = l >= 0 - yyj599++ - if yyhl599 { - yyb599 = yyj599 > l + var yyj628 int + var yyb628 bool + var yyhl628 bool = l >= 0 + yyj628++ + if yyhl628 { + yyb628 = yyj628 > l } else { - yyb599 = r.CheckBreak() + yyb628 = r.CheckBreak() } - if yyb599 { + if yyb628 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9386,13 +9962,13 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.EndpointsName = string(r.DecodeString()) } - yyj599++ - if yyhl599 { - yyb599 = yyj599 > l + yyj628++ + if yyhl628 { + yyb628 = yyj628 > l } else { - yyb599 = r.CheckBreak() + yyb628 = r.CheckBreak() } - if yyb599 { + if yyb628 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9402,13 +9978,13 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Path = string(r.DecodeString()) } - yyj599++ - if yyhl599 { - yyb599 = yyj599 > l + yyj628++ + if yyhl628 { + yyb628 = yyj628 > l } else { - yyb599 = r.CheckBreak() + yyb628 = r.CheckBreak() } - if yyb599 { + if yyb628 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9419,17 +9995,17 @@ func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.ReadOnly = bool(r.DecodeBool()) } for { - yyj599++ - if yyhl599 { - yyb599 = yyj599 > l + yyj628++ + if yyhl628 { + yyb628 = yyj628 > l } else { - yyb599 = r.CheckBreak() + yyb628 = r.CheckBreak() } - if yyb599 { + if yyb628 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj599-1, "") + z.DecStructFieldNotFound(yyj628-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9441,42 +10017,42 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym603 := z.EncBinary() - _ = yym603 + yym632 := z.EncBinary() + _ = yym632 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep604 := !z.EncBinary() - yy2arr604 := z.EncBasicHandle().StructToArray - var yyq604 [8]bool - _, _, _ = yysep604, yyq604, yy2arr604 - const yyr604 bool = false - yyq604[2] = x.FSType != "" - yyq604[3] = x.RBDPool != "" - yyq604[4] = x.RadosUser != "" - yyq604[5] = x.Keyring != "" - yyq604[6] = x.SecretRef != nil - yyq604[7] = x.ReadOnly != false - var yynn604 int - if yyr604 || yy2arr604 { + yysep633 := !z.EncBinary() + yy2arr633 := z.EncBasicHandle().StructToArray + var yyq633 [8]bool + _, _, _ = yysep633, yyq633, yy2arr633 + const yyr633 bool = false + yyq633[2] = x.FSType != "" + yyq633[3] = x.RBDPool != "" + yyq633[4] = x.RadosUser != "" + yyq633[5] = x.Keyring != "" + yyq633[6] = x.SecretRef != nil + yyq633[7] = x.ReadOnly != false + var yynn633 int + if yyr633 || yy2arr633 { r.EncodeArrayStart(8) } else { - yynn604 = 2 - for _, b := range yyq604 { + yynn633 = 2 + for _, b := range yyq633 { if b { - yynn604++ + yynn633++ } } - r.EncodeMapStart(yynn604) - yynn604 = 0 + r.EncodeMapStart(yynn633) + yynn633 = 0 } - if yyr604 || yy2arr604 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.CephMonitors == nil { r.EncodeNil() } else { - yym606 := z.EncBinary() - _ = yym606 + yym635 := z.EncBinary() + _ = yym635 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) @@ -9489,18 +10065,18 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.CephMonitors == nil { r.EncodeNil() } else { - yym607 := z.EncBinary() - _ = yym607 + yym636 := z.EncBinary() + _ = yym636 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } - if yyr604 || yy2arr604 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym609 := z.EncBinary() - _ = yym609 + yym638 := z.EncBinary() + _ = yym638 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) @@ -9509,18 +10085,18 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym610 := z.EncBinary() - _ = yym610 + yym639 := z.EncBinary() + _ = yym639 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } - if yyr604 || yy2arr604 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq604[2] { - yym612 := z.EncBinary() - _ = yym612 + if yyq633[2] { + yym641 := z.EncBinary() + _ = yym641 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -9529,23 +10105,23 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq604[2] { + if yyq633[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym613 := z.EncBinary() - _ = yym613 + yym642 := z.EncBinary() + _ = yym642 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr604 || yy2arr604 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq604[3] { - yym615 := z.EncBinary() - _ = yym615 + if yyq633[3] { + yym644 := z.EncBinary() + _ = yym644 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) @@ -9554,23 +10130,23 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq604[3] { + if yyq633[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pool")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym616 := z.EncBinary() - _ = yym616 + yym645 := z.EncBinary() + _ = yym645 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } } - if yyr604 || yy2arr604 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq604[4] { - yym618 := z.EncBinary() - _ = yym618 + if yyq633[4] { + yym647 := z.EncBinary() + _ = yym647 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) @@ -9579,23 +10155,23 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq604[4] { + if yyq633[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym619 := z.EncBinary() - _ = yym619 + yym648 := z.EncBinary() + _ = yym648 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } } - if yyr604 || yy2arr604 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq604[5] { - yym621 := z.EncBinary() - _ = yym621 + if yyq633[5] { + yym650 := z.EncBinary() + _ = yym650 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) @@ -9604,21 +10180,21 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq604[5] { + if yyq633[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("keyring")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym622 := z.EncBinary() - _ = yym622 + yym651 := z.EncBinary() + _ = yym651 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } } - if yyr604 || yy2arr604 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq604[6] { + if yyq633[6] { if x.SecretRef == nil { r.EncodeNil() } else { @@ -9628,7 +10204,7 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq604[6] { + if yyq633[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -9639,11 +10215,11 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr604 || yy2arr604 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq604[7] { - yym625 := z.EncBinary() - _ = yym625 + if yyq633[7] { + yym654 := z.EncBinary() + _ = yym654 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -9652,19 +10228,19 @@ func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq604[7] { + if yyq633[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym626 := z.EncBinary() - _ = yym626 + yym655 := z.EncBinary() + _ = yym655 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr604 || yy2arr604 { + if yyr633 || yy2arr633 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9677,25 +10253,25 @@ func (x *RBDVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym627 := z.DecBinary() - _ = yym627 + yym656 := z.DecBinary() + _ = yym656 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct628 := r.ContainerType() - if yyct628 == codecSelferValueTypeMap1234 { - yyl628 := r.ReadMapStart() - if yyl628 == 0 { + yyct657 := r.ContainerType() + if yyct657 == codecSelferValueTypeMap1234 { + yyl657 := r.ReadMapStart() + if yyl657 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl628, d) + x.codecDecodeSelfFromMap(yyl657, d) } - } else if yyct628 == codecSelferValueTypeArray1234 { - yyl628 := r.ReadArrayStart() - if yyl628 == 0 { + } else if yyct657 == codecSelferValueTypeArray1234 { + yyl657 := r.ReadArrayStart() + if yyl657 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl628, d) + x.codecDecodeSelfFromArray(yyl657, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9707,12 +10283,12 @@ func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys629Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys629Slc - var yyhl629 bool = l >= 0 - for yyj629 := 0; ; yyj629++ { - if yyhl629 { - if yyj629 >= l { + var yys658Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys658Slc + var yyhl658 bool = l >= 0 + for yyj658 := 0; ; yyj658++ { + if yyhl658 { + if yyj658 >= l { break } } else { @@ -9721,20 +10297,20 @@ func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys629Slc = r.DecodeBytes(yys629Slc, true, true) - yys629 := string(yys629Slc) + yys658Slc = r.DecodeBytes(yys658Slc, true, true) + yys658 := string(yys658Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys629 { + switch yys658 { case "monitors": if r.TryDecodeAsNil() { x.CephMonitors = nil } else { - yyv630 := &x.CephMonitors - yym631 := z.DecBinary() - _ = yym631 + yyv659 := &x.CephMonitors + yym660 := z.DecBinary() + _ = yym660 if false { } else { - z.F.DecSliceStringX(yyv630, false, d) + z.F.DecSliceStringX(yyv659, false, d) } } case "image": @@ -9785,9 +10361,9 @@ func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys629) - } // end switch yys629 - } // end for yyj629 + z.DecStructFieldNotFound(-1, yys658) + } // end switch yys658 + } // end for yyj658 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9795,16 +10371,16 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj639 int - var yyb639 bool - var yyhl639 bool = l >= 0 - yyj639++ - if yyhl639 { - yyb639 = yyj639 > l + var yyj668 int + var yyb668 bool + var yyhl668 bool = l >= 0 + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb639 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb639 { + if yyb668 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9812,21 +10388,21 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.CephMonitors = nil } else { - yyv640 := &x.CephMonitors - yym641 := z.DecBinary() - _ = yym641 + yyv669 := &x.CephMonitors + yym670 := z.DecBinary() + _ = yym670 if false { } else { - z.F.DecSliceStringX(yyv640, false, d) + z.F.DecSliceStringX(yyv669, false, d) } } - yyj639++ - if yyhl639 { - yyb639 = yyj639 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb639 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb639 { + if yyb668 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9836,13 +10412,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RBDImage = string(r.DecodeString()) } - yyj639++ - if yyhl639 { - yyb639 = yyj639 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb639 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb639 { + if yyb668 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9852,13 +10428,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.FSType = string(r.DecodeString()) } - yyj639++ - if yyhl639 { - yyb639 = yyj639 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb639 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb639 { + if yyb668 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9868,13 +10444,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RBDPool = string(r.DecodeString()) } - yyj639++ - if yyhl639 { - yyb639 = yyj639 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb639 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb639 { + if yyb668 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9884,13 +10460,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RadosUser = string(r.DecodeString()) } - yyj639++ - if yyhl639 { - yyb639 = yyj639 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb639 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb639 { + if yyb668 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9900,13 +10476,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Keyring = string(r.DecodeString()) } - yyj639++ - if yyhl639 { - yyb639 = yyj639 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb639 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb639 { + if yyb668 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9921,13 +10497,13 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SecretRef.CodecDecodeSelf(d) } - yyj639++ - if yyhl639 { - yyb639 = yyj639 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb639 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb639 { + if yyb668 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9938,17 +10514,17 @@ func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } for { - yyj639++ - if yyhl639 { - yyb639 = yyj639 > l + yyj668++ + if yyhl668 { + yyb668 = yyj668 > l } else { - yyb639 = r.CheckBreak() + yyb668 = r.CheckBreak() } - if yyb639 { + if yyb668 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj639-1, "") + z.DecStructFieldNotFound(yyj668-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9960,35 +10536,35 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym649 := z.EncBinary() - _ = yym649 + yym678 := z.EncBinary() + _ = yym678 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep650 := !z.EncBinary() - yy2arr650 := z.EncBasicHandle().StructToArray - var yyq650 [3]bool - _, _, _ = yysep650, yyq650, yy2arr650 - const yyr650 bool = false - yyq650[1] = x.FSType != "" - yyq650[2] = x.ReadOnly != false - var yynn650 int - if yyr650 || yy2arr650 { + yysep679 := !z.EncBinary() + yy2arr679 := z.EncBasicHandle().StructToArray + var yyq679 [3]bool + _, _, _ = yysep679, yyq679, yy2arr679 + const yyr679 bool = false + yyq679[1] = x.FSType != "" + yyq679[2] = x.ReadOnly != false + var yynn679 int + if yyr679 || yy2arr679 { r.EncodeArrayStart(3) } else { - yynn650 = 1 - for _, b := range yyq650 { + yynn679 = 1 + for _, b := range yyq679 { if b { - yynn650++ + yynn679++ } } - r.EncodeMapStart(yynn650) - yynn650 = 0 + r.EncodeMapStart(yynn679) + yynn679 = 0 } - if yyr650 || yy2arr650 { + if yyr679 || yy2arr679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym652 := z.EncBinary() - _ = yym652 + yym681 := z.EncBinary() + _ = yym681 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) @@ -9997,18 +10573,18 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym653 := z.EncBinary() - _ = yym653 + yym682 := z.EncBinary() + _ = yym682 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } - if yyr650 || yy2arr650 { + if yyr679 || yy2arr679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq650[1] { - yym655 := z.EncBinary() - _ = yym655 + if yyq679[1] { + yym684 := z.EncBinary() + _ = yym684 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -10017,23 +10593,23 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq650[1] { + if yyq679[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym656 := z.EncBinary() - _ = yym656 + yym685 := z.EncBinary() + _ = yym685 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr650 || yy2arr650 { + if yyr679 || yy2arr679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq650[2] { - yym658 := z.EncBinary() - _ = yym658 + if yyq679[2] { + yym687 := z.EncBinary() + _ = yym687 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -10042,19 +10618,19 @@ func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq650[2] { + if yyq679[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym659 := z.EncBinary() - _ = yym659 + yym688 := z.EncBinary() + _ = yym688 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr650 || yy2arr650 { + if yyr679 || yy2arr679 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10067,25 +10643,25 @@ func (x *CinderVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym660 := z.DecBinary() - _ = yym660 + yym689 := z.DecBinary() + _ = yym689 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct661 := r.ContainerType() - if yyct661 == codecSelferValueTypeMap1234 { - yyl661 := r.ReadMapStart() - if yyl661 == 0 { + yyct690 := r.ContainerType() + if yyct690 == codecSelferValueTypeMap1234 { + yyl690 := r.ReadMapStart() + if yyl690 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl661, d) + x.codecDecodeSelfFromMap(yyl690, d) } - } else if yyct661 == codecSelferValueTypeArray1234 { - yyl661 := r.ReadArrayStart() - if yyl661 == 0 { + } else if yyct690 == codecSelferValueTypeArray1234 { + yyl690 := r.ReadArrayStart() + if yyl690 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl661, d) + x.codecDecodeSelfFromArray(yyl690, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10097,12 +10673,12 @@ func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys662Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys662Slc - var yyhl662 bool = l >= 0 - for yyj662 := 0; ; yyj662++ { - if yyhl662 { - if yyj662 >= l { + var yys691Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys691Slc + var yyhl691 bool = l >= 0 + for yyj691 := 0; ; yyj691++ { + if yyhl691 { + if yyj691 >= l { break } } else { @@ -10111,10 +10687,10 @@ func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys662Slc = r.DecodeBytes(yys662Slc, true, true) - yys662 := string(yys662Slc) + yys691Slc = r.DecodeBytes(yys691Slc, true, true) + yys691 := string(yys691Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys662 { + switch yys691 { case "volumeID": if r.TryDecodeAsNil() { x.VolumeID = "" @@ -10134,9 +10710,9 @@ func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys662) - } // end switch yys662 - } // end for yyj662 + z.DecStructFieldNotFound(-1, yys691) + } // end switch yys691 + } // end for yyj691 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10144,16 +10720,16 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj666 int - var yyb666 bool - var yyhl666 bool = l >= 0 - yyj666++ - if yyhl666 { - yyb666 = yyj666 > l + var yyj695 int + var yyb695 bool + var yyhl695 bool = l >= 0 + yyj695++ + if yyhl695 { + yyb695 = yyj695 > l } else { - yyb666 = r.CheckBreak() + yyb695 = r.CheckBreak() } - if yyb666 { + if yyb695 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10163,13 +10739,13 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.VolumeID = string(r.DecodeString()) } - yyj666++ - if yyhl666 { - yyb666 = yyj666 > l + yyj695++ + if yyhl695 { + yyb695 = yyj695 > l } else { - yyb666 = r.CheckBreak() + yyb695 = r.CheckBreak() } - if yyb666 { + if yyb695 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10179,13 +10755,13 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.FSType = string(r.DecodeString()) } - yyj666++ - if yyhl666 { - yyb666 = yyj666 > l + yyj695++ + if yyhl695 { + yyb695 = yyj695 > l } else { - yyb666 = r.CheckBreak() + yyb695 = r.CheckBreak() } - if yyb666 { + if yyb695 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10196,17 +10772,17 @@ func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.ReadOnly = bool(r.DecodeBool()) } for { - yyj666++ - if yyhl666 { - yyb666 = yyj666 > l + yyj695++ + if yyhl695 { + yyb695 = yyj695 > l } else { - yyb666 = r.CheckBreak() + yyb695 = r.CheckBreak() } - if yyb666 { + if yyb695 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj666-1, "") + z.DecStructFieldNotFound(yyj695-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10218,41 +10794,41 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym670 := z.EncBinary() - _ = yym670 + yym699 := z.EncBinary() + _ = yym699 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep671 := !z.EncBinary() - yy2arr671 := z.EncBasicHandle().StructToArray - var yyq671 [6]bool - _, _, _ = yysep671, yyq671, yy2arr671 - const yyr671 bool = false - yyq671[1] = x.Path != "" - yyq671[2] = x.User != "" - yyq671[3] = x.SecretFile != "" - yyq671[4] = x.SecretRef != nil - yyq671[5] = x.ReadOnly != false - var yynn671 int - if yyr671 || yy2arr671 { + yysep700 := !z.EncBinary() + yy2arr700 := z.EncBasicHandle().StructToArray + var yyq700 [6]bool + _, _, _ = yysep700, yyq700, yy2arr700 + const yyr700 bool = false + yyq700[1] = x.Path != "" + yyq700[2] = x.User != "" + yyq700[3] = x.SecretFile != "" + yyq700[4] = x.SecretRef != nil + yyq700[5] = x.ReadOnly != false + var yynn700 int + if yyr700 || yy2arr700 { r.EncodeArrayStart(6) } else { - yynn671 = 1 - for _, b := range yyq671 { + yynn700 = 1 + for _, b := range yyq700 { if b { - yynn671++ + yynn700++ } } - r.EncodeMapStart(yynn671) - yynn671 = 0 + r.EncodeMapStart(yynn700) + yynn700 = 0 } - if yyr671 || yy2arr671 { + if yyr700 || yy2arr700 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Monitors == nil { r.EncodeNil() } else { - yym673 := z.EncBinary() - _ = yym673 + yym702 := z.EncBinary() + _ = yym702 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) @@ -10265,19 +10841,19 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.Monitors == nil { r.EncodeNil() } else { - yym674 := z.EncBinary() - _ = yym674 + yym703 := z.EncBinary() + _ = yym703 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } - if yyr671 || yy2arr671 { + if yyr700 || yy2arr700 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq671[1] { - yym676 := z.EncBinary() - _ = yym676 + if yyq700[1] { + yym705 := z.EncBinary() + _ = yym705 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -10286,23 +10862,23 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq671[1] { + if yyq700[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym677 := z.EncBinary() - _ = yym677 + yym706 := z.EncBinary() + _ = yym706 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr671 || yy2arr671 { + if yyr700 || yy2arr700 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq671[2] { - yym679 := z.EncBinary() - _ = yym679 + if yyq700[2] { + yym708 := z.EncBinary() + _ = yym708 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -10311,23 +10887,23 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq671[2] { + if yyq700[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym680 := z.EncBinary() - _ = yym680 + yym709 := z.EncBinary() + _ = yym709 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } - if yyr671 || yy2arr671 { + if yyr700 || yy2arr700 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq671[3] { - yym682 := z.EncBinary() - _ = yym682 + if yyq700[3] { + yym711 := z.EncBinary() + _ = yym711 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) @@ -10336,21 +10912,21 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq671[3] { + if yyq700[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym683 := z.EncBinary() - _ = yym683 + yym712 := z.EncBinary() + _ = yym712 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } } - if yyr671 || yy2arr671 { + if yyr700 || yy2arr700 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq671[4] { + if yyq700[4] { if x.SecretRef == nil { r.EncodeNil() } else { @@ -10360,7 +10936,7 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq671[4] { + if yyq700[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -10371,11 +10947,11 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr671 || yy2arr671 { + if yyr700 || yy2arr700 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq671[5] { - yym686 := z.EncBinary() - _ = yym686 + if yyq700[5] { + yym715 := z.EncBinary() + _ = yym715 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -10384,19 +10960,19 @@ func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq671[5] { + if yyq700[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym687 := z.EncBinary() - _ = yym687 + yym716 := z.EncBinary() + _ = yym716 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr671 || yy2arr671 { + if yyr700 || yy2arr700 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10409,25 +10985,25 @@ func (x *CephFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym688 := z.DecBinary() - _ = yym688 + yym717 := z.DecBinary() + _ = yym717 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct689 := r.ContainerType() - if yyct689 == codecSelferValueTypeMap1234 { - yyl689 := r.ReadMapStart() - if yyl689 == 0 { + yyct718 := r.ContainerType() + if yyct718 == codecSelferValueTypeMap1234 { + yyl718 := r.ReadMapStart() + if yyl718 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl689, d) + x.codecDecodeSelfFromMap(yyl718, d) } - } else if yyct689 == codecSelferValueTypeArray1234 { - yyl689 := r.ReadArrayStart() - if yyl689 == 0 { + } else if yyct718 == codecSelferValueTypeArray1234 { + yyl718 := r.ReadArrayStart() + if yyl718 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl689, d) + x.codecDecodeSelfFromArray(yyl718, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10439,12 +11015,12 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys690Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys690Slc - var yyhl690 bool = l >= 0 - for yyj690 := 0; ; yyj690++ { - if yyhl690 { - if yyj690 >= l { + var yys719Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys719Slc + var yyhl719 bool = l >= 0 + for yyj719 := 0; ; yyj719++ { + if yyhl719 { + if yyj719 >= l { break } } else { @@ -10453,20 +11029,20 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys690Slc = r.DecodeBytes(yys690Slc, true, true) - yys690 := string(yys690Slc) + yys719Slc = r.DecodeBytes(yys719Slc, true, true) + yys719 := string(yys719Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys690 { + switch yys719 { case "monitors": if r.TryDecodeAsNil() { x.Monitors = nil } else { - yyv691 := &x.Monitors - yym692 := z.DecBinary() - _ = yym692 + yyv720 := &x.Monitors + yym721 := z.DecBinary() + _ = yym721 if false { } else { - z.F.DecSliceStringX(yyv691, false, d) + z.F.DecSliceStringX(yyv720, false, d) } } case "path": @@ -10505,9 +11081,9 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys690) - } // end switch yys690 - } // end for yyj690 + z.DecStructFieldNotFound(-1, yys719) + } // end switch yys719 + } // end for yyj719 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10515,16 +11091,16 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj698 int - var yyb698 bool - var yyhl698 bool = l >= 0 - yyj698++ - if yyhl698 { - yyb698 = yyj698 > l + var yyj727 int + var yyb727 bool + var yyhl727 bool = l >= 0 + yyj727++ + if yyhl727 { + yyb727 = yyj727 > l } else { - yyb698 = r.CheckBreak() + yyb727 = r.CheckBreak() } - if yyb698 { + if yyb727 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10532,21 +11108,21 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Monitors = nil } else { - yyv699 := &x.Monitors - yym700 := z.DecBinary() - _ = yym700 + yyv728 := &x.Monitors + yym729 := z.DecBinary() + _ = yym729 if false { } else { - z.F.DecSliceStringX(yyv699, false, d) + z.F.DecSliceStringX(yyv728, false, d) } } - yyj698++ - if yyhl698 { - yyb698 = yyj698 > l + yyj727++ + if yyhl727 { + yyb727 = yyj727 > l } else { - yyb698 = r.CheckBreak() + yyb727 = r.CheckBreak() } - if yyb698 { + if yyb727 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10556,13 +11132,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Path = string(r.DecodeString()) } - yyj698++ - if yyhl698 { - yyb698 = yyj698 > l + yyj727++ + if yyhl727 { + yyb727 = yyj727 > l } else { - yyb698 = r.CheckBreak() + yyb727 = r.CheckBreak() } - if yyb698 { + if yyb727 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10572,13 +11148,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.User = string(r.DecodeString()) } - yyj698++ - if yyhl698 { - yyb698 = yyj698 > l + yyj727++ + if yyhl727 { + yyb727 = yyj727 > l } else { - yyb698 = r.CheckBreak() + yyb727 = r.CheckBreak() } - if yyb698 { + if yyb727 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10588,13 +11164,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.SecretFile = string(r.DecodeString()) } - yyj698++ - if yyhl698 { - yyb698 = yyj698 > l + yyj727++ + if yyhl727 { + yyb727 = yyj727 > l } else { - yyb698 = r.CheckBreak() + yyb727 = r.CheckBreak() } - if yyb698 { + if yyb727 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10609,13 +11185,13 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } x.SecretRef.CodecDecodeSelf(d) } - yyj698++ - if yyhl698 { - yyb698 = yyj698 > l + yyj727++ + if yyhl727 { + yyb727 = yyj727 > l } else { - yyb698 = r.CheckBreak() + yyb727 = r.CheckBreak() } - if yyb698 { + if yyb727 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10626,17 +11202,17 @@ func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.ReadOnly = bool(r.DecodeBool()) } for { - yyj698++ - if yyhl698 { - yyb698 = yyj698 > l + yyj727++ + if yyhl727 { + yyb727 = yyj727 > l } else { - yyb698 = r.CheckBreak() + yyb727 = r.CheckBreak() } - if yyb698 { + if yyb727 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj698-1, "") + z.DecStructFieldNotFound(yyj727-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10648,33 +11224,33 @@ func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym706 := z.EncBinary() - _ = yym706 + yym735 := z.EncBinary() + _ = yym735 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep707 := !z.EncBinary() - yy2arr707 := z.EncBasicHandle().StructToArray - var yyq707 [1]bool - _, _, _ = yysep707, yyq707, yy2arr707 - const yyr707 bool = false - var yynn707 int - if yyr707 || yy2arr707 { + yysep736 := !z.EncBinary() + yy2arr736 := z.EncBasicHandle().StructToArray + var yyq736 [1]bool + _, _, _ = yysep736, yyq736, yy2arr736 + const yyr736 bool = false + var yynn736 int + if yyr736 || yy2arr736 { r.EncodeArrayStart(1) } else { - yynn707 = 1 - for _, b := range yyq707 { + yynn736 = 1 + for _, b := range yyq736 { if b { - yynn707++ + yynn736++ } } - r.EncodeMapStart(yynn707) - yynn707 = 0 + r.EncodeMapStart(yynn736) + yynn736 = 0 } - if yyr707 || yy2arr707 { + if yyr736 || yy2arr736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym709 := z.EncBinary() - _ = yym709 + yym738 := z.EncBinary() + _ = yym738 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) @@ -10683,14 +11259,14 @@ func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("datasetName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym710 := z.EncBinary() - _ = yym710 + yym739 := z.EncBinary() + _ = yym739 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) } } - if yyr707 || yy2arr707 { + if yyr736 || yy2arr736 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10703,25 +11279,25 @@ func (x *FlockerVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym711 := z.DecBinary() - _ = yym711 + yym740 := z.DecBinary() + _ = yym740 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct712 := r.ContainerType() - if yyct712 == codecSelferValueTypeMap1234 { - yyl712 := r.ReadMapStart() - if yyl712 == 0 { + yyct741 := r.ContainerType() + if yyct741 == codecSelferValueTypeMap1234 { + yyl741 := r.ReadMapStart() + if yyl741 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl712, d) + x.codecDecodeSelfFromMap(yyl741, d) } - } else if yyct712 == codecSelferValueTypeArray1234 { - yyl712 := r.ReadArrayStart() - if yyl712 == 0 { + } else if yyct741 == codecSelferValueTypeArray1234 { + yyl741 := r.ReadArrayStart() + if yyl741 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl712, d) + x.codecDecodeSelfFromArray(yyl741, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10733,12 +11309,12 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys713Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys713Slc - var yyhl713 bool = l >= 0 - for yyj713 := 0; ; yyj713++ { - if yyhl713 { - if yyj713 >= l { + var yys742Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys742Slc + var yyhl742 bool = l >= 0 + for yyj742 := 0; ; yyj742++ { + if yyhl742 { + if yyj742 >= l { break } } else { @@ -10747,10 +11323,10 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys713Slc = r.DecodeBytes(yys713Slc, true, true) - yys713 := string(yys713Slc) + yys742Slc = r.DecodeBytes(yys742Slc, true, true) + yys742 := string(yys742Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys713 { + switch yys742 { case "datasetName": if r.TryDecodeAsNil() { x.DatasetName = "" @@ -10758,9 +11334,9 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.DatasetName = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys713) - } // end switch yys713 - } // end for yyj713 + z.DecStructFieldNotFound(-1, yys742) + } // end switch yys742 + } // end for yyj742 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10768,16 +11344,16 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj715 int - var yyb715 bool - var yyhl715 bool = l >= 0 - yyj715++ - if yyhl715 { - yyb715 = yyj715 > l + var yyj744 int + var yyb744 bool + var yyhl744 bool = l >= 0 + yyj744++ + if yyhl744 { + yyb744 = yyj744 > l } else { - yyb715 = r.CheckBreak() + yyb744 = r.CheckBreak() } - if yyb715 { + if yyb744 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10788,17 +11364,17 @@ func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.DatasetName = string(r.DecodeString()) } for { - yyj715++ - if yyhl715 { - yyb715 = yyj715 > l + yyj744++ + if yyhl744 { + yyb744 = yyj744 > l } else { - yyb715 = r.CheckBreak() + yyb744 = r.CheckBreak() } - if yyb715 { + if yyb744 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj715-1, "") + z.DecStructFieldNotFound(yyj744-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10807,8 +11383,8 @@ func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym717 := z.EncBinary() - _ = yym717 + yym746 := z.EncBinary() + _ = yym746 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -10820,8 +11396,8 @@ func (x *StorageMedium) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym718 := z.DecBinary() - _ = yym718 + yym747 := z.DecBinary() + _ = yym747 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -10833,8 +11409,8 @@ func (x Protocol) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym719 := z.EncBinary() - _ = yym719 + yym748 := z.EncBinary() + _ = yym748 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -10846,8 +11422,8 @@ func (x *Protocol) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym720 := z.DecBinary() - _ = yym720 + yym749 := z.DecBinary() + _ = yym749 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -10862,36 +11438,36 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym721 := z.EncBinary() - _ = yym721 + yym750 := z.EncBinary() + _ = yym750 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep722 := !z.EncBinary() - yy2arr722 := z.EncBasicHandle().StructToArray - var yyq722 [4]bool - _, _, _ = yysep722, yyq722, yy2arr722 - const yyr722 bool = false - yyq722[1] = x.FSType != "" - yyq722[2] = x.Partition != 0 - yyq722[3] = x.ReadOnly != false - var yynn722 int - if yyr722 || yy2arr722 { + yysep751 := !z.EncBinary() + yy2arr751 := z.EncBasicHandle().StructToArray + var yyq751 [4]bool + _, _, _ = yysep751, yyq751, yy2arr751 + const yyr751 bool = false + yyq751[1] = x.FSType != "" + yyq751[2] = x.Partition != 0 + yyq751[3] = x.ReadOnly != false + var yynn751 int + if yyr751 || yy2arr751 { r.EncodeArrayStart(4) } else { - yynn722 = 1 - for _, b := range yyq722 { + yynn751 = 1 + for _, b := range yyq751 { if b { - yynn722++ + yynn751++ } } - r.EncodeMapStart(yynn722) - yynn722 = 0 + r.EncodeMapStart(yynn751) + yynn751 = 0 } - if yyr722 || yy2arr722 { + if yyr751 || yy2arr751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym724 := z.EncBinary() - _ = yym724 + yym753 := z.EncBinary() + _ = yym753 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) @@ -10900,18 +11476,18 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pdName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym725 := z.EncBinary() - _ = yym725 + yym754 := z.EncBinary() + _ = yym754 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) } } - if yyr722 || yy2arr722 { + if yyr751 || yy2arr751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq722[1] { - yym727 := z.EncBinary() - _ = yym727 + if yyq751[1] { + yym756 := z.EncBinary() + _ = yym756 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -10920,23 +11496,23 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq722[1] { + if yyq751[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym728 := z.EncBinary() - _ = yym728 + yym757 := z.EncBinary() + _ = yym757 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr722 || yy2arr722 { + if yyr751 || yy2arr751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq722[2] { - yym730 := z.EncBinary() - _ = yym730 + if yyq751[2] { + yym759 := z.EncBinary() + _ = yym759 if false { } else { r.EncodeInt(int64(x.Partition)) @@ -10945,23 +11521,23 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq722[2] { + if yyq751[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym731 := z.EncBinary() - _ = yym731 + yym760 := z.EncBinary() + _ = yym760 if false { } else { r.EncodeInt(int64(x.Partition)) } } } - if yyr722 || yy2arr722 { + if yyr751 || yy2arr751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq722[3] { - yym733 := z.EncBinary() - _ = yym733 + if yyq751[3] { + yym762 := z.EncBinary() + _ = yym762 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -10970,19 +11546,19 @@ func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq722[3] { + if yyq751[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym734 := z.EncBinary() - _ = yym734 + yym763 := z.EncBinary() + _ = yym763 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr722 || yy2arr722 { + if yyr751 || yy2arr751 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10995,25 +11571,25 @@ func (x *GCEPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym735 := z.DecBinary() - _ = yym735 + yym764 := z.DecBinary() + _ = yym764 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct736 := r.ContainerType() - if yyct736 == codecSelferValueTypeMap1234 { - yyl736 := r.ReadMapStart() - if yyl736 == 0 { + yyct765 := r.ContainerType() + if yyct765 == codecSelferValueTypeMap1234 { + yyl765 := r.ReadMapStart() + if yyl765 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl736, d) + x.codecDecodeSelfFromMap(yyl765, d) } - } else if yyct736 == codecSelferValueTypeArray1234 { - yyl736 := r.ReadArrayStart() - if yyl736 == 0 { + } else if yyct765 == codecSelferValueTypeArray1234 { + yyl765 := r.ReadArrayStart() + if yyl765 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl736, d) + x.codecDecodeSelfFromArray(yyl765, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11025,12 +11601,12 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys737Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys737Slc - var yyhl737 bool = l >= 0 - for yyj737 := 0; ; yyj737++ { - if yyhl737 { - if yyj737 >= l { + var yys766Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys766Slc + var yyhl766 bool = l >= 0 + for yyj766 := 0; ; yyj766++ { + if yyhl766 { + if yyj766 >= l { break } } else { @@ -11039,10 +11615,10 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec19 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys737Slc = r.DecodeBytes(yys737Slc, true, true) - yys737 := string(yys737Slc) + yys766Slc = r.DecodeBytes(yys766Slc, true, true) + yys766 := string(yys766Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys737 { + switch yys766 { case "pdName": if r.TryDecodeAsNil() { x.PDName = "" @@ -11068,9 +11644,9 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec19 x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys737) - } // end switch yys737 - } // end for yyj737 + z.DecStructFieldNotFound(-1, yys766) + } // end switch yys766 + } // end for yyj766 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11078,16 +11654,16 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj742 int - var yyb742 bool - var yyhl742 bool = l >= 0 - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + var yyj771 int + var yyb771 bool + var yyhl771 bool = l >= 0 + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l } else { - yyb742 = r.CheckBreak() + yyb771 = r.CheckBreak() } - if yyb742 { + if yyb771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11097,13 +11673,13 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec } else { x.PDName = string(r.DecodeString()) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l } else { - yyb742 = r.CheckBreak() + yyb771 = r.CheckBreak() } - if yyb742 { + if yyb771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11113,13 +11689,13 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec } else { x.FSType = string(r.DecodeString()) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l } else { - yyb742 = r.CheckBreak() + yyb771 = r.CheckBreak() } - if yyb742 { + if yyb771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11129,13 +11705,13 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec } else { x.Partition = int32(r.DecodeInt(32)) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l } else { - yyb742 = r.CheckBreak() + yyb771 = r.CheckBreak() } - if yyb742 { + if yyb771 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11146,17 +11722,364 @@ func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec x.ReadOnly = bool(r.DecodeBool()) } for { - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj771++ + if yyhl771 { + yyb771 = yyj771 > l } else { - yyb742 = r.CheckBreak() + yyb771 = r.CheckBreak() } - if yyb742 { + if yyb771 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj742-1, "") + z.DecStructFieldNotFound(yyj771-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym776 := z.EncBinary() + _ = yym776 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep777 := !z.EncBinary() + yy2arr777 := z.EncBasicHandle().StructToArray + var yyq777 [5]bool + _, _, _ = yysep777, yyq777, yy2arr777 + const yyr777 bool = false + yyq777[2] = x.ReadOnly != false + yyq777[3] = x.User != "" + yyq777[4] = x.Group != "" + var yynn777 int + if yyr777 || yy2arr777 { + r.EncodeArrayStart(5) + } else { + yynn777 = 2 + for _, b := range yyq777 { + if b { + yynn777++ + } + } + r.EncodeMapStart(yynn777) + yynn777 = 0 + } + if yyr777 || yy2arr777 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym779 := z.EncBinary() + _ = yym779 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Registry)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("registry")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym780 := z.EncBinary() + _ = yym780 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Registry)) + } + } + if yyr777 || yy2arr777 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym782 := z.EncBinary() + _ = yym782 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Volume)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("volume")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym783 := z.EncBinary() + _ = yym783 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Volume)) + } + } + if yyr777 || yy2arr777 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq777[2] { + yym785 := z.EncBinary() + _ = yym785 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } else { + r.EncodeBool(false) + } + } else { + if yyq777[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym786 := z.EncBinary() + _ = yym786 + if false { + } else { + r.EncodeBool(bool(x.ReadOnly)) + } + } + } + if yyr777 || yy2arr777 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq777[3] { + yym788 := z.EncBinary() + _ = yym788 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq777[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("user")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym789 := z.EncBinary() + _ = yym789 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } + } + if yyr777 || yy2arr777 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq777[4] { + yym791 := z.EncBinary() + _ = yym791 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Group)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq777[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("group")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym792 := z.EncBinary() + _ = yym792 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Group)) + } + } + } + if yyr777 || yy2arr777 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *QuobyteVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym793 := z.DecBinary() + _ = yym793 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct794 := r.ContainerType() + if yyct794 == codecSelferValueTypeMap1234 { + yyl794 := r.ReadMapStart() + if yyl794 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl794, d) + } + } else if yyct794 == codecSelferValueTypeArray1234 { + yyl794 := r.ReadArrayStart() + if yyl794 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl794, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *QuobyteVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys795Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys795Slc + var yyhl795 bool = l >= 0 + for yyj795 := 0; ; yyj795++ { + if yyhl795 { + if yyj795 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys795Slc = r.DecodeBytes(yys795Slc, true, true) + yys795 := string(yys795Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys795 { + case "registry": + if r.TryDecodeAsNil() { + x.Registry = "" + } else { + x.Registry = string(r.DecodeString()) + } + case "volume": + if r.TryDecodeAsNil() { + x.Volume = "" + } else { + x.Volume = string(r.DecodeString()) + } + case "readOnly": + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + case "user": + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = string(r.DecodeString()) + } + case "group": + if r.TryDecodeAsNil() { + x.Group = "" + } else { + x.Group = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys795) + } // end switch yys795 + } // end for yyj795 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj801 int + var yyb801 bool + var yyhl801 bool = l >= 0 + yyj801++ + if yyhl801 { + yyb801 = yyj801 > l + } else { + yyb801 = r.CheckBreak() + } + if yyb801 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Registry = "" + } else { + x.Registry = string(r.DecodeString()) + } + yyj801++ + if yyhl801 { + yyb801 = yyj801 > l + } else { + yyb801 = r.CheckBreak() + } + if yyb801 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Volume = "" + } else { + x.Volume = string(r.DecodeString()) + } + yyj801++ + if yyhl801 { + yyb801 = yyj801 > l + } else { + yyb801 = r.CheckBreak() + } + if yyb801 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadOnly = false + } else { + x.ReadOnly = bool(r.DecodeBool()) + } + yyj801++ + if yyhl801 { + yyb801 = yyj801 > l + } else { + yyb801 = r.CheckBreak() + } + if yyb801 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.User = "" + } else { + x.User = string(r.DecodeString()) + } + yyj801++ + if yyhl801 { + yyb801 = yyj801 > l + } else { + yyb801 = r.CheckBreak() + } + if yyb801 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Group = "" + } else { + x.Group = string(r.DecodeString()) + } + for { + yyj801++ + if yyhl801 { + yyb801 = yyj801 > l + } else { + yyb801 = r.CheckBreak() + } + if yyb801 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj801-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11168,37 +12091,37 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym747 := z.EncBinary() - _ = yym747 + yym807 := z.EncBinary() + _ = yym807 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep748 := !z.EncBinary() - yy2arr748 := z.EncBasicHandle().StructToArray - var yyq748 [5]bool - _, _, _ = yysep748, yyq748, yy2arr748 - const yyr748 bool = false - yyq748[1] = x.FSType != "" - yyq748[2] = x.SecretRef != nil - yyq748[3] = x.ReadOnly != false - yyq748[4] = len(x.Options) != 0 - var yynn748 int - if yyr748 || yy2arr748 { + yysep808 := !z.EncBinary() + yy2arr808 := z.EncBasicHandle().StructToArray + var yyq808 [5]bool + _, _, _ = yysep808, yyq808, yy2arr808 + const yyr808 bool = false + yyq808[1] = x.FSType != "" + yyq808[2] = x.SecretRef != nil + yyq808[3] = x.ReadOnly != false + yyq808[4] = len(x.Options) != 0 + var yynn808 int + if yyr808 || yy2arr808 { r.EncodeArrayStart(5) } else { - yynn748 = 1 - for _, b := range yyq748 { + yynn808 = 1 + for _, b := range yyq808 { if b { - yynn748++ + yynn808++ } } - r.EncodeMapStart(yynn748) - yynn748 = 0 + r.EncodeMapStart(yynn808) + yynn808 = 0 } - if yyr748 || yy2arr748 { + if yyr808 || yy2arr808 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym750 := z.EncBinary() - _ = yym750 + yym810 := z.EncBinary() + _ = yym810 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) @@ -11207,18 +12130,18 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("driver")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym751 := z.EncBinary() - _ = yym751 + yym811 := z.EncBinary() + _ = yym811 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) } } - if yyr748 || yy2arr748 { + if yyr808 || yy2arr808 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq748[1] { - yym753 := z.EncBinary() - _ = yym753 + if yyq808[1] { + yym813 := z.EncBinary() + _ = yym813 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -11227,21 +12150,21 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq748[1] { + if yyq808[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym754 := z.EncBinary() - _ = yym754 + yym814 := z.EncBinary() + _ = yym814 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr748 || yy2arr748 { + if yyr808 || yy2arr808 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq748[2] { + if yyq808[2] { if x.SecretRef == nil { r.EncodeNil() } else { @@ -11251,7 +12174,7 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq748[2] { + if yyq808[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -11262,11 +12185,11 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr748 || yy2arr748 { + if yyr808 || yy2arr808 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq748[3] { - yym757 := z.EncBinary() - _ = yym757 + if yyq808[3] { + yym817 := z.EncBinary() + _ = yym817 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -11275,26 +12198,26 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq748[3] { + if yyq808[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym758 := z.EncBinary() - _ = yym758 + yym818 := z.EncBinary() + _ = yym818 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr748 || yy2arr748 { + if yyr808 || yy2arr808 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq748[4] { + if yyq808[4] { if x.Options == nil { r.EncodeNil() } else { - yym760 := z.EncBinary() - _ = yym760 + yym820 := z.EncBinary() + _ = yym820 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) @@ -11304,15 +12227,15 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq748[4] { + if yyq808[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("options")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Options == nil { r.EncodeNil() } else { - yym761 := z.EncBinary() - _ = yym761 + yym821 := z.EncBinary() + _ = yym821 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) @@ -11320,7 +12243,7 @@ func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr748 || yy2arr748 { + if yyr808 || yy2arr808 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11333,25 +12256,25 @@ func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym762 := z.DecBinary() - _ = yym762 + yym822 := z.DecBinary() + _ = yym822 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct763 := r.ContainerType() - if yyct763 == codecSelferValueTypeMap1234 { - yyl763 := r.ReadMapStart() - if yyl763 == 0 { + yyct823 := r.ContainerType() + if yyct823 == codecSelferValueTypeMap1234 { + yyl823 := r.ReadMapStart() + if yyl823 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl763, d) + x.codecDecodeSelfFromMap(yyl823, d) } - } else if yyct763 == codecSelferValueTypeArray1234 { - yyl763 := r.ReadArrayStart() - if yyl763 == 0 { + } else if yyct823 == codecSelferValueTypeArray1234 { + yyl823 := r.ReadArrayStart() + if yyl823 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl763, d) + x.codecDecodeSelfFromArray(yyl823, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11363,12 +12286,12 @@ func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys764Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys764Slc - var yyhl764 bool = l >= 0 - for yyj764 := 0; ; yyj764++ { - if yyhl764 { - if yyj764 >= l { + var yys824Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys824Slc + var yyhl824 bool = l >= 0 + for yyj824 := 0; ; yyj824++ { + if yyhl824 { + if yyj824 >= l { break } } else { @@ -11377,10 +12300,10 @@ func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys764Slc = r.DecodeBytes(yys764Slc, true, true) - yys764 := string(yys764Slc) + yys824Slc = r.DecodeBytes(yys824Slc, true, true) + yys824 := string(yys824Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys764 { + switch yys824 { case "driver": if r.TryDecodeAsNil() { x.Driver = "" @@ -11414,18 +12337,18 @@ func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Options = nil } else { - yyv769 := &x.Options - yym770 := z.DecBinary() - _ = yym770 + yyv829 := &x.Options + yym830 := z.DecBinary() + _ = yym830 if false { } else { - z.F.DecMapStringStringX(yyv769, false, d) + z.F.DecMapStringStringX(yyv829, false, d) } } default: - z.DecStructFieldNotFound(-1, yys764) - } // end switch yys764 - } // end for yyj764 + z.DecStructFieldNotFound(-1, yys824) + } // end switch yys824 + } // end for yyj824 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11433,16 +12356,16 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj771 int - var yyb771 bool - var yyhl771 bool = l >= 0 - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l + var yyj831 int + var yyb831 bool + var yyhl831 bool = l >= 0 + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb771 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb771 { + if yyb831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11452,13 +12375,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Driver = string(r.DecodeString()) } - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb771 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb771 { + if yyb831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11468,13 +12391,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.FSType = string(r.DecodeString()) } - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb771 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb771 { + if yyb831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11489,13 +12412,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } x.SecretRef.CodecDecodeSelf(d) } - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb771 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb771 { + if yyb831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11505,13 +12428,13 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ReadOnly = bool(r.DecodeBool()) } - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb771 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb771 { + if yyb831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11519,26 +12442,26 @@ func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Options = nil } else { - yyv776 := &x.Options - yym777 := z.DecBinary() - _ = yym777 + yyv836 := &x.Options + yym837 := z.DecBinary() + _ = yym837 if false { } else { - z.F.DecMapStringStringX(yyv776, false, d) + z.F.DecMapStringStringX(yyv836, false, d) } } for { - yyj771++ - if yyhl771 { - yyb771 = yyj771 > l + yyj831++ + if yyhl831 { + yyb831 = yyj831 > l } else { - yyb771 = r.CheckBreak() + yyb831 = r.CheckBreak() } - if yyb771 { + if yyb831 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj771-1, "") + z.DecStructFieldNotFound(yyj831-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11550,36 +12473,36 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) if x == nil { r.EncodeNil() } else { - yym778 := z.EncBinary() - _ = yym778 + yym838 := z.EncBinary() + _ = yym838 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep779 := !z.EncBinary() - yy2arr779 := z.EncBasicHandle().StructToArray - var yyq779 [4]bool - _, _, _ = yysep779, yyq779, yy2arr779 - const yyr779 bool = false - yyq779[1] = x.FSType != "" - yyq779[2] = x.Partition != 0 - yyq779[3] = x.ReadOnly != false - var yynn779 int - if yyr779 || yy2arr779 { + yysep839 := !z.EncBinary() + yy2arr839 := z.EncBasicHandle().StructToArray + var yyq839 [4]bool + _, _, _ = yysep839, yyq839, yy2arr839 + const yyr839 bool = false + yyq839[1] = x.FSType != "" + yyq839[2] = x.Partition != 0 + yyq839[3] = x.ReadOnly != false + var yynn839 int + if yyr839 || yy2arr839 { r.EncodeArrayStart(4) } else { - yynn779 = 1 - for _, b := range yyq779 { + yynn839 = 1 + for _, b := range yyq839 { if b { - yynn779++ + yynn839++ } } - r.EncodeMapStart(yynn779) - yynn779 = 0 + r.EncodeMapStart(yynn839) + yynn839 = 0 } - if yyr779 || yy2arr779 { + if yyr839 || yy2arr839 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym781 := z.EncBinary() - _ = yym781 + yym841 := z.EncBinary() + _ = yym841 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) @@ -11588,18 +12511,18 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym782 := z.EncBinary() - _ = yym782 + yym842 := z.EncBinary() + _ = yym842 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } - if yyr779 || yy2arr779 { + if yyr839 || yy2arr839 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq779[1] { - yym784 := z.EncBinary() - _ = yym784 + if yyq839[1] { + yym844 := z.EncBinary() + _ = yym844 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -11608,23 +12531,23 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq779[1] { + if yyq839[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym785 := z.EncBinary() - _ = yym785 + yym845 := z.EncBinary() + _ = yym845 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr779 || yy2arr779 { + if yyr839 || yy2arr839 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq779[2] { - yym787 := z.EncBinary() - _ = yym787 + if yyq839[2] { + yym847 := z.EncBinary() + _ = yym847 if false { } else { r.EncodeInt(int64(x.Partition)) @@ -11633,23 +12556,23 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeInt(0) } } else { - if yyq779[2] { + if yyq839[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym788 := z.EncBinary() - _ = yym788 + yym848 := z.EncBinary() + _ = yym848 if false { } else { r.EncodeInt(int64(x.Partition)) } } } - if yyr779 || yy2arr779 { + if yyr839 || yy2arr839 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq779[3] { - yym790 := z.EncBinary() - _ = yym790 + if yyq839[3] { + yym850 := z.EncBinary() + _ = yym850 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -11658,19 +12581,19 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) r.EncodeBool(false) } } else { - if yyq779[3] { + if yyq839[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym791 := z.EncBinary() - _ = yym791 + yym851 := z.EncBinary() + _ = yym851 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr779 || yy2arr779 { + if yyr839 || yy2arr839 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11683,25 +12606,25 @@ func (x *AWSElasticBlockStoreVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym792 := z.DecBinary() - _ = yym792 + yym852 := z.DecBinary() + _ = yym852 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct793 := r.ContainerType() - if yyct793 == codecSelferValueTypeMap1234 { - yyl793 := r.ReadMapStart() - if yyl793 == 0 { + yyct853 := r.ContainerType() + if yyct853 == codecSelferValueTypeMap1234 { + yyl853 := r.ReadMapStart() + if yyl853 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl793, d) + x.codecDecodeSelfFromMap(yyl853, d) } - } else if yyct793 == codecSelferValueTypeArray1234 { - yyl793 := r.ReadArrayStart() - if yyl793 == 0 { + } else if yyct853 == codecSelferValueTypeArray1234 { + yyl853 := r.ReadArrayStart() + if yyl853 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl793, d) + x.codecDecodeSelfFromArray(yyl853, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11713,12 +12636,12 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *code var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys794Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys794Slc - var yyhl794 bool = l >= 0 - for yyj794 := 0; ; yyj794++ { - if yyhl794 { - if yyj794 >= l { + var yys854Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys854Slc + var yyhl854 bool = l >= 0 + for yyj854 := 0; ; yyj854++ { + if yyhl854 { + if yyj854 >= l { break } } else { @@ -11727,10 +12650,10 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *code } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys794Slc = r.DecodeBytes(yys794Slc, true, true) - yys794 := string(yys794Slc) + yys854Slc = r.DecodeBytes(yys854Slc, true, true) + yys854 := string(yys854Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys794 { + switch yys854 { case "volumeID": if r.TryDecodeAsNil() { x.VolumeID = "" @@ -11756,9 +12679,9 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *code x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys794) - } // end switch yys794 - } // end for yyj794 + z.DecStructFieldNotFound(-1, yys854) + } // end switch yys854 + } // end for yyj854 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11766,16 +12689,16 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj799 int - var yyb799 bool - var yyhl799 bool = l >= 0 - yyj799++ - if yyhl799 { - yyb799 = yyj799 > l + var yyj859 int + var yyb859 bool + var yyhl859 bool = l >= 0 + yyj859++ + if yyhl859 { + yyb859 = yyj859 > l } else { - yyb799 = r.CheckBreak() + yyb859 = r.CheckBreak() } - if yyb799 { + if yyb859 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11785,13 +12708,13 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co } else { x.VolumeID = string(r.DecodeString()) } - yyj799++ - if yyhl799 { - yyb799 = yyj799 > l + yyj859++ + if yyhl859 { + yyb859 = yyj859 > l } else { - yyb799 = r.CheckBreak() + yyb859 = r.CheckBreak() } - if yyb799 { + if yyb859 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11801,13 +12724,13 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co } else { x.FSType = string(r.DecodeString()) } - yyj799++ - if yyhl799 { - yyb799 = yyj799 > l + yyj859++ + if yyhl859 { + yyb859 = yyj859 > l } else { - yyb799 = r.CheckBreak() + yyb859 = r.CheckBreak() } - if yyb799 { + if yyb859 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11817,13 +12740,13 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co } else { x.Partition = int32(r.DecodeInt(32)) } - yyj799++ - if yyhl799 { - yyb799 = yyj799 > l + yyj859++ + if yyhl859 { + yyb859 = yyj859 > l } else { - yyb799 = r.CheckBreak() + yyb859 = r.CheckBreak() } - if yyb799 { + if yyb859 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11834,17 +12757,17 @@ func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *co x.ReadOnly = bool(r.DecodeBool()) } for { - yyj799++ - if yyhl799 { - yyb799 = yyj799 > l + yyj859++ + if yyhl859 { + yyb859 = yyj859 > l } else { - yyb799 = r.CheckBreak() + yyb859 = r.CheckBreak() } - if yyb799 { + if yyb859 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj799-1, "") + z.DecStructFieldNotFound(yyj859-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11856,35 +12779,35 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym804 := z.EncBinary() - _ = yym804 + yym864 := z.EncBinary() + _ = yym864 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep805 := !z.EncBinary() - yy2arr805 := z.EncBasicHandle().StructToArray - var yyq805 [3]bool - _, _, _ = yysep805, yyq805, yy2arr805 - const yyr805 bool = false - yyq805[1] = x.Revision != "" - yyq805[2] = x.Directory != "" - var yynn805 int - if yyr805 || yy2arr805 { + yysep865 := !z.EncBinary() + yy2arr865 := z.EncBasicHandle().StructToArray + var yyq865 [3]bool + _, _, _ = yysep865, yyq865, yy2arr865 + const yyr865 bool = false + yyq865[1] = x.Revision != "" + yyq865[2] = x.Directory != "" + var yynn865 int + if yyr865 || yy2arr865 { r.EncodeArrayStart(3) } else { - yynn805 = 1 - for _, b := range yyq805 { + yynn865 = 1 + for _, b := range yyq865 { if b { - yynn805++ + yynn865++ } } - r.EncodeMapStart(yynn805) - yynn805 = 0 + r.EncodeMapStart(yynn865) + yynn865 = 0 } - if yyr805 || yy2arr805 { + if yyr865 || yy2arr865 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym807 := z.EncBinary() - _ = yym807 + yym867 := z.EncBinary() + _ = yym867 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) @@ -11893,18 +12816,18 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("repository")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym808 := z.EncBinary() - _ = yym808 + yym868 := z.EncBinary() + _ = yym868 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) } } - if yyr805 || yy2arr805 { + if yyr865 || yy2arr865 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq805[1] { - yym810 := z.EncBinary() - _ = yym810 + if yyq865[1] { + yym870 := z.EncBinary() + _ = yym870 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) @@ -11913,23 +12836,23 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq805[1] { + if yyq865[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym811 := z.EncBinary() - _ = yym811 + yym871 := z.EncBinary() + _ = yym871 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } } - if yyr805 || yy2arr805 { + if yyr865 || yy2arr865 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq805[2] { - yym813 := z.EncBinary() - _ = yym813 + if yyq865[2] { + yym873 := z.EncBinary() + _ = yym873 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) @@ -11938,19 +12861,19 @@ func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq805[2] { + if yyq865[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("directory")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym814 := z.EncBinary() - _ = yym814 + yym874 := z.EncBinary() + _ = yym874 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) } } } - if yyr805 || yy2arr805 { + if yyr865 || yy2arr865 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11963,25 +12886,25 @@ func (x *GitRepoVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym815 := z.DecBinary() - _ = yym815 + yym875 := z.DecBinary() + _ = yym875 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct816 := r.ContainerType() - if yyct816 == codecSelferValueTypeMap1234 { - yyl816 := r.ReadMapStart() - if yyl816 == 0 { + yyct876 := r.ContainerType() + if yyct876 == codecSelferValueTypeMap1234 { + yyl876 := r.ReadMapStart() + if yyl876 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl816, d) + x.codecDecodeSelfFromMap(yyl876, d) } - } else if yyct816 == codecSelferValueTypeArray1234 { - yyl816 := r.ReadArrayStart() - if yyl816 == 0 { + } else if yyct876 == codecSelferValueTypeArray1234 { + yyl876 := r.ReadArrayStart() + if yyl876 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl816, d) + x.codecDecodeSelfFromArray(yyl876, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11993,12 +12916,12 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys817Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys817Slc - var yyhl817 bool = l >= 0 - for yyj817 := 0; ; yyj817++ { - if yyhl817 { - if yyj817 >= l { + var yys877Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys877Slc + var yyhl877 bool = l >= 0 + for yyj877 := 0; ; yyj877++ { + if yyhl877 { + if yyj877 >= l { break } } else { @@ -12007,10 +12930,10 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys817Slc = r.DecodeBytes(yys817Slc, true, true) - yys817 := string(yys817Slc) + yys877Slc = r.DecodeBytes(yys877Slc, true, true) + yys877 := string(yys877Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys817 { + switch yys877 { case "repository": if r.TryDecodeAsNil() { x.Repository = "" @@ -12030,9 +12953,9 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Directory = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys817) - } // end switch yys817 - } // end for yyj817 + z.DecStructFieldNotFound(-1, yys877) + } // end switch yys877 + } // end for yyj877 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12040,16 +12963,16 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj821 int - var yyb821 bool - var yyhl821 bool = l >= 0 - yyj821++ - if yyhl821 { - yyb821 = yyj821 > l + var yyj881 int + var yyb881 bool + var yyhl881 bool = l >= 0 + yyj881++ + if yyhl881 { + yyb881 = yyj881 > l } else { - yyb821 = r.CheckBreak() + yyb881 = r.CheckBreak() } - if yyb821 { + if yyb881 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12059,13 +12982,13 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Repository = string(r.DecodeString()) } - yyj821++ - if yyhl821 { - yyb821 = yyj821 > l + yyj881++ + if yyhl881 { + yyb881 = yyj881 > l } else { - yyb821 = r.CheckBreak() + yyb881 = r.CheckBreak() } - if yyb821 { + if yyb881 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12075,13 +12998,13 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Revision = string(r.DecodeString()) } - yyj821++ - if yyhl821 { - yyb821 = yyj821 > l + yyj881++ + if yyhl881 { + yyb881 = yyj881 > l } else { - yyb821 = r.CheckBreak() + yyb881 = r.CheckBreak() } - if yyb821 { + if yyb881 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12092,17 +13015,17 @@ func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Directory = string(r.DecodeString()) } for { - yyj821++ - if yyhl821 { - yyb821 = yyj821 > l + yyj881++ + if yyhl881 { + yyb881 = yyj881 > l } else { - yyb821 = r.CheckBreak() + yyb881 = r.CheckBreak() } - if yyb821 { + if yyb881 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj821-1, "") + z.DecStructFieldNotFound(yyj881-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12114,36 +13037,37 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym825 := z.EncBinary() - _ = yym825 + yym885 := z.EncBinary() + _ = yym885 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep826 := !z.EncBinary() - yy2arr826 := z.EncBasicHandle().StructToArray - var yyq826 [2]bool - _, _, _ = yysep826, yyq826, yy2arr826 - const yyr826 bool = false - yyq826[0] = x.SecretName != "" - yyq826[1] = len(x.Items) != 0 - var yynn826 int - if yyr826 || yy2arr826 { - r.EncodeArrayStart(2) + yysep886 := !z.EncBinary() + yy2arr886 := z.EncBasicHandle().StructToArray + var yyq886 [3]bool + _, _, _ = yysep886, yyq886, yy2arr886 + const yyr886 bool = false + yyq886[0] = x.SecretName != "" + yyq886[1] = len(x.Items) != 0 + yyq886[2] = x.DefaultMode != nil + var yynn886 int + if yyr886 || yy2arr886 { + r.EncodeArrayStart(3) } else { - yynn826 = 0 - for _, b := range yyq826 { + yynn886 = 0 + for _, b := range yyq886 { if b { - yynn826++ + yynn886++ } } - r.EncodeMapStart(yynn826) - yynn826 = 0 + r.EncodeMapStart(yynn886) + yynn886 = 0 } - if yyr826 || yy2arr826 { + if yyr886 || yy2arr886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq826[0] { - yym828 := z.EncBinary() - _ = yym828 + if yyq886[0] { + yym888 := z.EncBinary() + _ = yym888 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) @@ -12152,26 +13076,26 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq826[0] { + if yyq886[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym829 := z.EncBinary() - _ = yym829 + yym889 := z.EncBinary() + _ = yym889 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } } - if yyr826 || yy2arr826 { + if yyr886 || yy2arr886 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq826[1] { + if yyq886[1] { if x.Items == nil { r.EncodeNil() } else { - yym831 := z.EncBinary() - _ = yym831 + yym891 := z.EncBinary() + _ = yym891 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -12181,15 +13105,15 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq826[1] { + if yyq886[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { - yym832 := z.EncBinary() - _ = yym832 + yym892 := z.EncBinary() + _ = yym892 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -12197,7 +13121,42 @@ func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr826 || yy2arr826 { + if yyr886 || yy2arr886 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq886[2] { + if x.DefaultMode == nil { + r.EncodeNil() + } else { + yy894 := *x.DefaultMode + yym895 := z.EncBinary() + _ = yym895 + if false { + } else { + r.EncodeInt(int64(yy894)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq886[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DefaultMode == nil { + r.EncodeNil() + } else { + yy896 := *x.DefaultMode + yym897 := z.EncBinary() + _ = yym897 + if false { + } else { + r.EncodeInt(int64(yy896)) + } + } + } + } + if yyr886 || yy2arr886 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12210,25 +13169,25 @@ func (x *SecretVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym833 := z.DecBinary() - _ = yym833 + yym898 := z.DecBinary() + _ = yym898 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct834 := r.ContainerType() - if yyct834 == codecSelferValueTypeMap1234 { - yyl834 := r.ReadMapStart() - if yyl834 == 0 { + yyct899 := r.ContainerType() + if yyct899 == codecSelferValueTypeMap1234 { + yyl899 := r.ReadMapStart() + if yyl899 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl834, d) + x.codecDecodeSelfFromMap(yyl899, d) } - } else if yyct834 == codecSelferValueTypeArray1234 { - yyl834 := r.ReadArrayStart() - if yyl834 == 0 { + } else if yyct899 == codecSelferValueTypeArray1234 { + yyl899 := r.ReadArrayStart() + if yyl899 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl834, d) + x.codecDecodeSelfFromArray(yyl899, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12240,12 +13199,12 @@ func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys835Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys835Slc - var yyhl835 bool = l >= 0 - for yyj835 := 0; ; yyj835++ { - if yyhl835 { - if yyj835 >= l { + var yys900Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys900Slc + var yyhl900 bool = l >= 0 + for yyj900 := 0; ; yyj900++ { + if yyhl900 { + if yyj900 >= l { break } } else { @@ -12254,10 +13213,10 @@ func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys835Slc = r.DecodeBytes(yys835Slc, true, true) - yys835 := string(yys835Slc) + yys900Slc = r.DecodeBytes(yys900Slc, true, true) + yys900 := string(yys900Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys835 { + switch yys900 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" @@ -12268,18 +13227,34 @@ func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Items = nil } else { - yyv837 := &x.Items - yym838 := z.DecBinary() - _ = yym838 + yyv902 := &x.Items + yym903 := z.DecBinary() + _ = yym903 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv837), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv902), d) + } + } + case "defaultMode": + if r.TryDecodeAsNil() { + if x.DefaultMode != nil { + x.DefaultMode = nil + } + } else { + if x.DefaultMode == nil { + x.DefaultMode = new(int32) + } + yym905 := z.DecBinary() + _ = yym905 + if false { + } else { + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys835) - } // end switch yys835 - } // end for yyj835 + z.DecStructFieldNotFound(-1, yys900) + } // end switch yys900 + } // end for yyj900 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12287,16 +13262,16 @@ func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj839 int - var yyb839 bool - var yyhl839 bool = l >= 0 - yyj839++ - if yyhl839 { - yyb839 = yyj839 > l + var yyj906 int + var yyb906 bool + var yyhl906 bool = l >= 0 + yyj906++ + if yyhl906 { + yyb906 = yyj906 > l } else { - yyb839 = r.CheckBreak() + yyb906 = r.CheckBreak() } - if yyb839 { + if yyb906 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12306,13 +13281,13 @@ func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.SecretName = string(r.DecodeString()) } - yyj839++ - if yyhl839 { - yyb839 = yyj839 > l + yyj906++ + if yyhl906 { + yyb906 = yyj906 > l } else { - yyb839 = r.CheckBreak() + yyb906 = r.CheckBreak() } - if yyb839 { + if yyb906 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12320,26 +13295,52 @@ func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Items = nil } else { - yyv841 := &x.Items - yym842 := z.DecBinary() - _ = yym842 + yyv908 := &x.Items + yym909 := z.DecBinary() + _ = yym909 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv841), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv908), d) + } + } + yyj906++ + if yyhl906 { + yyb906 = yyj906 > l + } else { + yyb906 = r.CheckBreak() + } + if yyb906 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DefaultMode != nil { + x.DefaultMode = nil + } + } else { + if x.DefaultMode == nil { + x.DefaultMode = new(int32) + } + yym911 := z.DecBinary() + _ = yym911 + if false { + } else { + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { - yyj839++ - if yyhl839 { - yyb839 = yyj839 > l + yyj906++ + if yyhl906 { + yyb906 = yyj906 > l } else { - yyb839 = r.CheckBreak() + yyb906 = r.CheckBreak() } - if yyb839 { + if yyb906 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj839-1, "") + z.DecStructFieldNotFound(yyj906-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12351,34 +13352,34 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym843 := z.EncBinary() - _ = yym843 + yym912 := z.EncBinary() + _ = yym912 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep844 := !z.EncBinary() - yy2arr844 := z.EncBasicHandle().StructToArray - var yyq844 [3]bool - _, _, _ = yysep844, yyq844, yy2arr844 - const yyr844 bool = false - yyq844[2] = x.ReadOnly != false - var yynn844 int - if yyr844 || yy2arr844 { + yysep913 := !z.EncBinary() + yy2arr913 := z.EncBasicHandle().StructToArray + var yyq913 [3]bool + _, _, _ = yysep913, yyq913, yy2arr913 + const yyr913 bool = false + yyq913[2] = x.ReadOnly != false + var yynn913 int + if yyr913 || yy2arr913 { r.EncodeArrayStart(3) } else { - yynn844 = 2 - for _, b := range yyq844 { + yynn913 = 2 + for _, b := range yyq913 { if b { - yynn844++ + yynn913++ } } - r.EncodeMapStart(yynn844) - yynn844 = 0 + r.EncodeMapStart(yynn913) + yynn913 = 0 } - if yyr844 || yy2arr844 { + if yyr913 || yy2arr913 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym846 := z.EncBinary() - _ = yym846 + yym915 := z.EncBinary() + _ = yym915 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) @@ -12387,17 +13388,17 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("server")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym847 := z.EncBinary() - _ = yym847 + yym916 := z.EncBinary() + _ = yym916 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } - if yyr844 || yy2arr844 { + if yyr913 || yy2arr913 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym849 := z.EncBinary() - _ = yym849 + yym918 := z.EncBinary() + _ = yym918 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -12406,18 +13407,18 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym850 := z.EncBinary() - _ = yym850 + yym919 := z.EncBinary() + _ = yym919 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr844 || yy2arr844 { + if yyr913 || yy2arr913 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq844[2] { - yym852 := z.EncBinary() - _ = yym852 + if yyq913[2] { + yym921 := z.EncBinary() + _ = yym921 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -12426,19 +13427,19 @@ func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq844[2] { + if yyq913[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym853 := z.EncBinary() - _ = yym853 + yym922 := z.EncBinary() + _ = yym922 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr844 || yy2arr844 { + if yyr913 || yy2arr913 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12451,25 +13452,25 @@ func (x *NFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym854 := z.DecBinary() - _ = yym854 + yym923 := z.DecBinary() + _ = yym923 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct855 := r.ContainerType() - if yyct855 == codecSelferValueTypeMap1234 { - yyl855 := r.ReadMapStart() - if yyl855 == 0 { + yyct924 := r.ContainerType() + if yyct924 == codecSelferValueTypeMap1234 { + yyl924 := r.ReadMapStart() + if yyl924 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl855, d) + x.codecDecodeSelfFromMap(yyl924, d) } - } else if yyct855 == codecSelferValueTypeArray1234 { - yyl855 := r.ReadArrayStart() - if yyl855 == 0 { + } else if yyct924 == codecSelferValueTypeArray1234 { + yyl924 := r.ReadArrayStart() + if yyl924 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl855, d) + x.codecDecodeSelfFromArray(yyl924, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12481,12 +13482,12 @@ func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys856Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys856Slc - var yyhl856 bool = l >= 0 - for yyj856 := 0; ; yyj856++ { - if yyhl856 { - if yyj856 >= l { + var yys925Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys925Slc + var yyhl925 bool = l >= 0 + for yyj925 := 0; ; yyj925++ { + if yyhl925 { + if yyj925 >= l { break } } else { @@ -12495,10 +13496,10 @@ func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys856Slc = r.DecodeBytes(yys856Slc, true, true) - yys856 := string(yys856Slc) + yys925Slc = r.DecodeBytes(yys925Slc, true, true) + yys925 := string(yys925Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys856 { + switch yys925 { case "server": if r.TryDecodeAsNil() { x.Server = "" @@ -12518,9 +13519,9 @@ func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys856) - } // end switch yys856 - } // end for yyj856 + z.DecStructFieldNotFound(-1, yys925) + } // end switch yys925 + } // end for yyj925 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12528,16 +13529,16 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj860 int - var yyb860 bool - var yyhl860 bool = l >= 0 - yyj860++ - if yyhl860 { - yyb860 = yyj860 > l + var yyj929 int + var yyb929 bool + var yyhl929 bool = l >= 0 + yyj929++ + if yyhl929 { + yyb929 = yyj929 > l } else { - yyb860 = r.CheckBreak() + yyb929 = r.CheckBreak() } - if yyb860 { + if yyb929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12547,13 +13548,13 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Server = string(r.DecodeString()) } - yyj860++ - if yyhl860 { - yyb860 = yyj860 > l + yyj929++ + if yyhl929 { + yyb929 = yyj929 > l } else { - yyb860 = r.CheckBreak() + yyb929 = r.CheckBreak() } - if yyb860 { + if yyb929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12563,13 +13564,13 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Path = string(r.DecodeString()) } - yyj860++ - if yyhl860 { - yyb860 = yyj860 > l + yyj929++ + if yyhl929 { + yyb929 = yyj929 > l } else { - yyb860 = r.CheckBreak() + yyb929 = r.CheckBreak() } - if yyb860 { + if yyb929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12580,17 +13581,17 @@ func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } for { - yyj860++ - if yyhl860 { - yyb860 = yyj860 > l + yyj929++ + if yyhl929 { + yyb929 = yyj929 > l } else { - yyb860 = r.CheckBreak() + yyb929 = r.CheckBreak() } - if yyb860 { + if yyb929 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj860-1, "") + z.DecStructFieldNotFound(yyj929-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12602,36 +13603,36 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym864 := z.EncBinary() - _ = yym864 + yym933 := z.EncBinary() + _ = yym933 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep865 := !z.EncBinary() - yy2arr865 := z.EncBasicHandle().StructToArray - var yyq865 [6]bool - _, _, _ = yysep865, yyq865, yy2arr865 - const yyr865 bool = false - yyq865[3] = x.ISCSIInterface != "" - yyq865[4] = x.FSType != "" - yyq865[5] = x.ReadOnly != false - var yynn865 int - if yyr865 || yy2arr865 { + yysep934 := !z.EncBinary() + yy2arr934 := z.EncBasicHandle().StructToArray + var yyq934 [6]bool + _, _, _ = yysep934, yyq934, yy2arr934 + const yyr934 bool = false + yyq934[3] = x.ISCSIInterface != "" + yyq934[4] = x.FSType != "" + yyq934[5] = x.ReadOnly != false + var yynn934 int + if yyr934 || yy2arr934 { r.EncodeArrayStart(6) } else { - yynn865 = 3 - for _, b := range yyq865 { + yynn934 = 3 + for _, b := range yyq934 { if b { - yynn865++ + yynn934++ } } - r.EncodeMapStart(yynn865) - yynn865 = 0 + r.EncodeMapStart(yynn934) + yynn934 = 0 } - if yyr865 || yy2arr865 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym867 := z.EncBinary() - _ = yym867 + yym936 := z.EncBinary() + _ = yym936 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) @@ -12640,17 +13641,17 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPortal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym868 := z.EncBinary() - _ = yym868 + yym937 := z.EncBinary() + _ = yym937 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } - if yyr865 || yy2arr865 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym870 := z.EncBinary() - _ = yym870 + yym939 := z.EncBinary() + _ = yym939 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) @@ -12659,17 +13660,17 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iqn")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym871 := z.EncBinary() - _ = yym871 + yym940 := z.EncBinary() + _ = yym940 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } - if yyr865 || yy2arr865 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym873 := z.EncBinary() - _ = yym873 + yym942 := z.EncBinary() + _ = yym942 if false { } else { r.EncodeInt(int64(x.Lun)) @@ -12678,18 +13679,18 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym874 := z.EncBinary() - _ = yym874 + yym943 := z.EncBinary() + _ = yym943 if false { } else { r.EncodeInt(int64(x.Lun)) } } - if yyr865 || yy2arr865 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq865[3] { - yym876 := z.EncBinary() - _ = yym876 + if yyq934[3] { + yym945 := z.EncBinary() + _ = yym945 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) @@ -12698,23 +13699,23 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq865[3] { + if yyq934[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym877 := z.EncBinary() - _ = yym877 + yym946 := z.EncBinary() + _ = yym946 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) } } } - if yyr865 || yy2arr865 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq865[4] { - yym879 := z.EncBinary() - _ = yym879 + if yyq934[4] { + yym948 := z.EncBinary() + _ = yym948 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -12723,23 +13724,23 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq865[4] { + if yyq934[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym880 := z.EncBinary() - _ = yym880 + yym949 := z.EncBinary() + _ = yym949 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr865 || yy2arr865 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq865[5] { - yym882 := z.EncBinary() - _ = yym882 + if yyq934[5] { + yym951 := z.EncBinary() + _ = yym951 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -12748,19 +13749,19 @@ func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq865[5] { + if yyq934[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym883 := z.EncBinary() - _ = yym883 + yym952 := z.EncBinary() + _ = yym952 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr865 || yy2arr865 { + if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12773,25 +13774,25 @@ func (x *ISCSIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym884 := z.DecBinary() - _ = yym884 + yym953 := z.DecBinary() + _ = yym953 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct885 := r.ContainerType() - if yyct885 == codecSelferValueTypeMap1234 { - yyl885 := r.ReadMapStart() - if yyl885 == 0 { + yyct954 := r.ContainerType() + if yyct954 == codecSelferValueTypeMap1234 { + yyl954 := r.ReadMapStart() + if yyl954 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl885, d) + x.codecDecodeSelfFromMap(yyl954, d) } - } else if yyct885 == codecSelferValueTypeArray1234 { - yyl885 := r.ReadArrayStart() - if yyl885 == 0 { + } else if yyct954 == codecSelferValueTypeArray1234 { + yyl954 := r.ReadArrayStart() + if yyl954 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl885, d) + x.codecDecodeSelfFromArray(yyl954, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12803,12 +13804,12 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys886Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys886Slc - var yyhl886 bool = l >= 0 - for yyj886 := 0; ; yyj886++ { - if yyhl886 { - if yyj886 >= l { + var yys955Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys955Slc + var yyhl955 bool = l >= 0 + for yyj955 := 0; ; yyj955++ { + if yyhl955 { + if yyj955 >= l { break } } else { @@ -12817,10 +13818,10 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys886Slc = r.DecodeBytes(yys886Slc, true, true) - yys886 := string(yys886Slc) + yys955Slc = r.DecodeBytes(yys955Slc, true, true) + yys955 := string(yys955Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys886 { + switch yys955 { case "targetPortal": if r.TryDecodeAsNil() { x.TargetPortal = "" @@ -12858,9 +13859,9 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys886) - } // end switch yys886 - } // end for yyj886 + z.DecStructFieldNotFound(-1, yys955) + } // end switch yys955 + } // end for yyj955 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12868,16 +13869,16 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj893 int - var yyb893 bool - var yyhl893 bool = l >= 0 - yyj893++ - if yyhl893 { - yyb893 = yyj893 > l + var yyj962 int + var yyb962 bool + var yyhl962 bool = l >= 0 + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb893 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb893 { + if yyb962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12887,13 +13888,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.TargetPortal = string(r.DecodeString()) } - yyj893++ - if yyhl893 { - yyb893 = yyj893 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb893 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb893 { + if yyb962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12903,13 +13904,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.IQN = string(r.DecodeString()) } - yyj893++ - if yyhl893 { - yyb893 = yyj893 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb893 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb893 { + if yyb962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12919,13 +13920,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Lun = int32(r.DecodeInt(32)) } - yyj893++ - if yyhl893 { - yyb893 = yyj893 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb893 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb893 { + if yyb962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12935,13 +13936,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.ISCSIInterface = string(r.DecodeString()) } - yyj893++ - if yyhl893 { - yyb893 = yyj893 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb893 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb893 { + if yyb962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12951,13 +13952,13 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.FSType = string(r.DecodeString()) } - yyj893++ - if yyhl893 { - yyb893 = yyj893 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb893 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb893 { + if yyb962 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12968,17 +13969,17 @@ func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder x.ReadOnly = bool(r.DecodeBool()) } for { - yyj893++ - if yyhl893 { - yyb893 = yyj893 > l + yyj962++ + if yyhl962 { + yyb962 = yyj962 > l } else { - yyb893 = r.CheckBreak() + yyb962 = r.CheckBreak() } - if yyb893 { + if yyb962 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj893-1, "") + z.DecStructFieldNotFound(yyj962-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12990,38 +13991,38 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym900 := z.EncBinary() - _ = yym900 + yym969 := z.EncBinary() + _ = yym969 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep901 := !z.EncBinary() - yy2arr901 := z.EncBasicHandle().StructToArray - var yyq901 [4]bool - _, _, _ = yysep901, yyq901, yy2arr901 - const yyr901 bool = false - yyq901[2] = x.FSType != "" - yyq901[3] = x.ReadOnly != false - var yynn901 int - if yyr901 || yy2arr901 { + yysep970 := !z.EncBinary() + yy2arr970 := z.EncBasicHandle().StructToArray + var yyq970 [4]bool + _, _, _ = yysep970, yyq970, yy2arr970 + const yyr970 bool = false + yyq970[2] = x.FSType != "" + yyq970[3] = x.ReadOnly != false + var yynn970 int + if yyr970 || yy2arr970 { r.EncodeArrayStart(4) } else { - yynn901 = 2 - for _, b := range yyq901 { + yynn970 = 2 + for _, b := range yyq970 { if b { - yynn901++ + yynn970++ } } - r.EncodeMapStart(yynn901) - yynn901 = 0 + r.EncodeMapStart(yynn970) + yynn970 = 0 } - if yyr901 || yy2arr901 { + if yyr970 || yy2arr970 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetWWNs == nil { r.EncodeNil() } else { - yym903 := z.EncBinary() - _ = yym903 + yym972 := z.EncBinary() + _ = yym972 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) @@ -13034,25 +14035,25 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.TargetWWNs == nil { r.EncodeNil() } else { - yym904 := z.EncBinary() - _ = yym904 + yym973 := z.EncBinary() + _ = yym973 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) } } } - if yyr901 || yy2arr901 { + if yyr970 || yy2arr970 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Lun == nil { r.EncodeNil() } else { - yy906 := *x.Lun - yym907 := z.EncBinary() - _ = yym907 + yy975 := *x.Lun + yym976 := z.EncBinary() + _ = yym976 if false { } else { - r.EncodeInt(int64(yy906)) + r.EncodeInt(int64(yy975)) } } } else { @@ -13062,20 +14063,20 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x.Lun == nil { r.EncodeNil() } else { - yy908 := *x.Lun - yym909 := z.EncBinary() - _ = yym909 + yy977 := *x.Lun + yym978 := z.EncBinary() + _ = yym978 if false { } else { - r.EncodeInt(int64(yy908)) + r.EncodeInt(int64(yy977)) } } } - if yyr901 || yy2arr901 { + if yyr970 || yy2arr970 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq901[2] { - yym911 := z.EncBinary() - _ = yym911 + if yyq970[2] { + yym980 := z.EncBinary() + _ = yym980 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -13084,23 +14085,23 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq901[2] { + if yyq970[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym912 := z.EncBinary() - _ = yym912 + yym981 := z.EncBinary() + _ = yym981 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr901 || yy2arr901 { + if yyr970 || yy2arr970 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq901[3] { - yym914 := z.EncBinary() - _ = yym914 + if yyq970[3] { + yym983 := z.EncBinary() + _ = yym983 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -13109,19 +14110,19 @@ func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq901[3] { + if yyq970[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym915 := z.EncBinary() - _ = yym915 + yym984 := z.EncBinary() + _ = yym984 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr901 || yy2arr901 { + if yyr970 || yy2arr970 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13134,25 +14135,25 @@ func (x *FCVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym916 := z.DecBinary() - _ = yym916 + yym985 := z.DecBinary() + _ = yym985 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct917 := r.ContainerType() - if yyct917 == codecSelferValueTypeMap1234 { - yyl917 := r.ReadMapStart() - if yyl917 == 0 { + yyct986 := r.ContainerType() + if yyct986 == codecSelferValueTypeMap1234 { + yyl986 := r.ReadMapStart() + if yyl986 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl917, d) + x.codecDecodeSelfFromMap(yyl986, d) } - } else if yyct917 == codecSelferValueTypeArray1234 { - yyl917 := r.ReadArrayStart() - if yyl917 == 0 { + } else if yyct986 == codecSelferValueTypeArray1234 { + yyl986 := r.ReadArrayStart() + if yyl986 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl917, d) + x.codecDecodeSelfFromArray(yyl986, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13164,12 +14165,12 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys918Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys918Slc - var yyhl918 bool = l >= 0 - for yyj918 := 0; ; yyj918++ { - if yyhl918 { - if yyj918 >= l { + var yys987Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys987Slc + var yyhl987 bool = l >= 0 + for yyj987 := 0; ; yyj987++ { + if yyhl987 { + if yyj987 >= l { break } } else { @@ -13178,20 +14179,20 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys918Slc = r.DecodeBytes(yys918Slc, true, true) - yys918 := string(yys918Slc) + yys987Slc = r.DecodeBytes(yys987Slc, true, true) + yys987 := string(yys987Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys918 { + switch yys987 { case "targetWWNs": if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { - yyv919 := &x.TargetWWNs - yym920 := z.DecBinary() - _ = yym920 + yyv988 := &x.TargetWWNs + yym989 := z.DecBinary() + _ = yym989 if false { } else { - z.F.DecSliceStringX(yyv919, false, d) + z.F.DecSliceStringX(yyv988, false, d) } } case "lun": @@ -13203,8 +14204,8 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Lun == nil { x.Lun = new(int32) } - yym922 := z.DecBinary() - _ = yym922 + yym991 := z.DecBinary() + _ = yym991 if false { } else { *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) @@ -13223,9 +14224,9 @@ func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys918) - } // end switch yys918 - } // end for yyj918 + z.DecStructFieldNotFound(-1, yys987) + } // end switch yys987 + } // end for yyj987 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13233,16 +14234,16 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj925 int - var yyb925 bool - var yyhl925 bool = l >= 0 - yyj925++ - if yyhl925 { - yyb925 = yyj925 > l + var yyj994 int + var yyb994 bool + var yyhl994 bool = l >= 0 + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb925 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb925 { + if yyb994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13250,21 +14251,21 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { - yyv926 := &x.TargetWWNs - yym927 := z.DecBinary() - _ = yym927 + yyv995 := &x.TargetWWNs + yym996 := z.DecBinary() + _ = yym996 if false { } else { - z.F.DecSliceStringX(yyv926, false, d) + z.F.DecSliceStringX(yyv995, false, d) } } - yyj925++ - if yyhl925 { - yyb925 = yyj925 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb925 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb925 { + if yyb994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13277,20 +14278,20 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Lun == nil { x.Lun = new(int32) } - yym929 := z.DecBinary() - _ = yym929 + yym998 := z.DecBinary() + _ = yym998 if false { } else { *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) } } - yyj925++ - if yyhl925 { - yyb925 = yyj925 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb925 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb925 { + if yyb994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13300,13 +14301,13 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.FSType = string(r.DecodeString()) } - yyj925++ - if yyhl925 { - yyb925 = yyj925 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb925 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb925 { + if yyb994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13317,17 +14318,17 @@ func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.ReadOnly = bool(r.DecodeBool()) } for { - yyj925++ - if yyhl925 { - yyb925 = yyj925 > l + yyj994++ + if yyhl994 { + yyb994 = yyj994 > l } else { - yyb925 = r.CheckBreak() + yyb994 = r.CheckBreak() } - if yyb925 { + if yyb994 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj925-1, "") + z.DecStructFieldNotFound(yyj994-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13339,34 +14340,34 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym932 := z.EncBinary() - _ = yym932 + yym1001 := z.EncBinary() + _ = yym1001 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep933 := !z.EncBinary() - yy2arr933 := z.EncBasicHandle().StructToArray - var yyq933 [3]bool - _, _, _ = yysep933, yyq933, yy2arr933 - const yyr933 bool = false - yyq933[2] = x.ReadOnly != false - var yynn933 int - if yyr933 || yy2arr933 { + yysep1002 := !z.EncBinary() + yy2arr1002 := z.EncBasicHandle().StructToArray + var yyq1002 [3]bool + _, _, _ = yysep1002, yyq1002, yy2arr1002 + const yyr1002 bool = false + yyq1002[2] = x.ReadOnly != false + var yynn1002 int + if yyr1002 || yy2arr1002 { r.EncodeArrayStart(3) } else { - yynn933 = 2 - for _, b := range yyq933 { + yynn1002 = 2 + for _, b := range yyq1002 { if b { - yynn933++ + yynn1002++ } } - r.EncodeMapStart(yynn933) - yynn933 = 0 + r.EncodeMapStart(yynn1002) + yynn1002 = 0 } - if yyr933 || yy2arr933 { + if yyr1002 || yy2arr1002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym935 := z.EncBinary() - _ = yym935 + yym1004 := z.EncBinary() + _ = yym1004 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) @@ -13375,17 +14376,17 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym936 := z.EncBinary() - _ = yym936 + yym1005 := z.EncBinary() + _ = yym1005 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } - if yyr933 || yy2arr933 { + if yyr1002 || yy2arr1002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym938 := z.EncBinary() - _ = yym938 + yym1007 := z.EncBinary() + _ = yym1007 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) @@ -13394,18 +14395,18 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("shareName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym939 := z.EncBinary() - _ = yym939 + yym1008 := z.EncBinary() + _ = yym1008 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) } } - if yyr933 || yy2arr933 { + if yyr1002 || yy2arr1002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq933[2] { - yym941 := z.EncBinary() - _ = yym941 + if yyq1002[2] { + yym1010 := z.EncBinary() + _ = yym1010 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -13414,19 +14415,19 @@ func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq933[2] { + if yyq1002[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym942 := z.EncBinary() - _ = yym942 + yym1011 := z.EncBinary() + _ = yym1011 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr933 || yy2arr933 { + if yyr1002 || yy2arr1002 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13439,25 +14440,25 @@ func (x *AzureFileVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym943 := z.DecBinary() - _ = yym943 + yym1012 := z.DecBinary() + _ = yym1012 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct944 := r.ContainerType() - if yyct944 == codecSelferValueTypeMap1234 { - yyl944 := r.ReadMapStart() - if yyl944 == 0 { + yyct1013 := r.ContainerType() + if yyct1013 == codecSelferValueTypeMap1234 { + yyl1013 := r.ReadMapStart() + if yyl1013 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl944, d) + x.codecDecodeSelfFromMap(yyl1013, d) } - } else if yyct944 == codecSelferValueTypeArray1234 { - yyl944 := r.ReadArrayStart() - if yyl944 == 0 { + } else if yyct1013 == codecSelferValueTypeArray1234 { + yyl1013 := r.ReadArrayStart() + if yyl1013 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl944, d) + x.codecDecodeSelfFromArray(yyl1013, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13469,12 +14470,12 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys945Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys945Slc - var yyhl945 bool = l >= 0 - for yyj945 := 0; ; yyj945++ { - if yyhl945 { - if yyj945 >= l { + var yys1014Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1014Slc + var yyhl1014 bool = l >= 0 + for yyj1014 := 0; ; yyj1014++ { + if yyhl1014 { + if yyj1014 >= l { break } } else { @@ -13483,10 +14484,10 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys945Slc = r.DecodeBytes(yys945Slc, true, true) - yys945 := string(yys945Slc) + yys1014Slc = r.DecodeBytes(yys1014Slc, true, true) + yys1014 := string(yys1014Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys945 { + switch yys1014 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" @@ -13506,9 +14507,9 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.ReadOnly = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys945) - } // end switch yys945 - } // end for yyj945 + z.DecStructFieldNotFound(-1, yys1014) + } // end switch yys1014 + } // end for yyj1014 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13516,16 +14517,16 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj949 int - var yyb949 bool - var yyhl949 bool = l >= 0 - yyj949++ - if yyhl949 { - yyb949 = yyj949 > l + var yyj1018 int + var yyb1018 bool + var yyhl1018 bool = l >= 0 + yyj1018++ + if yyhl1018 { + yyb1018 = yyj1018 > l } else { - yyb949 = r.CheckBreak() + yyb1018 = r.CheckBreak() } - if yyb949 { + if yyb1018 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13535,13 +14536,13 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.SecretName = string(r.DecodeString()) } - yyj949++ - if yyhl949 { - yyb949 = yyj949 > l + yyj1018++ + if yyhl1018 { + yyb1018 = yyj1018 > l } else { - yyb949 = r.CheckBreak() + yyb1018 = r.CheckBreak() } - if yyb949 { + if yyb1018 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13551,13 +14552,13 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.ShareName = string(r.DecodeString()) } - yyj949++ - if yyhl949 { - yyb949 = yyj949 > l + yyj1018++ + if yyhl1018 { + yyb1018 = yyj1018 > l } else { - yyb949 = r.CheckBreak() + yyb1018 = r.CheckBreak() } - if yyb949 { + if yyb1018 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13568,17 +14569,17 @@ func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.ReadOnly = bool(r.DecodeBool()) } for { - yyj949++ - if yyhl949 { - yyb949 = yyj949 > l + yyj1018++ + if yyhl1018 { + yyb1018 = yyj1018 > l } else { - yyb949 = r.CheckBreak() + yyb1018 = r.CheckBreak() } - if yyb949 { + if yyb1018 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj949-1, "") + z.DecStructFieldNotFound(yyj1018-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13590,34 +14591,34 @@ func (x *VsphereVirtualDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym953 := z.EncBinary() - _ = yym953 + yym1022 := z.EncBinary() + _ = yym1022 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep954 := !z.EncBinary() - yy2arr954 := z.EncBasicHandle().StructToArray - var yyq954 [2]bool - _, _, _ = yysep954, yyq954, yy2arr954 - const yyr954 bool = false - yyq954[1] = x.FSType != "" - var yynn954 int - if yyr954 || yy2arr954 { + yysep1023 := !z.EncBinary() + yy2arr1023 := z.EncBasicHandle().StructToArray + var yyq1023 [2]bool + _, _, _ = yysep1023, yyq1023, yy2arr1023 + const yyr1023 bool = false + yyq1023[1] = x.FSType != "" + var yynn1023 int + if yyr1023 || yy2arr1023 { r.EncodeArrayStart(2) } else { - yynn954 = 1 - for _, b := range yyq954 { + yynn1023 = 1 + for _, b := range yyq1023 { if b { - yynn954++ + yynn1023++ } } - r.EncodeMapStart(yynn954) - yynn954 = 0 + r.EncodeMapStart(yynn1023) + yynn1023 = 0 } - if yyr954 || yy2arr954 { + if yyr1023 || yy2arr1023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym956 := z.EncBinary() - _ = yym956 + yym1025 := z.EncBinary() + _ = yym1025 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) @@ -13626,18 +14627,18 @@ func (x *VsphereVirtualDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym957 := z.EncBinary() - _ = yym957 + yym1026 := z.EncBinary() + _ = yym1026 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) } } - if yyr954 || yy2arr954 { + if yyr1023 || yy2arr1023 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq954[1] { - yym959 := z.EncBinary() - _ = yym959 + if yyq1023[1] { + yym1028 := z.EncBinary() + _ = yym1028 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) @@ -13646,19 +14647,19 @@ func (x *VsphereVirtualDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq954[1] { + if yyq1023[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym960 := z.EncBinary() - _ = yym960 + yym1029 := z.EncBinary() + _ = yym1029 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } - if yyr954 || yy2arr954 { + if yyr1023 || yy2arr1023 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13671,25 +14672,25 @@ func (x *VsphereVirtualDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym961 := z.DecBinary() - _ = yym961 + yym1030 := z.DecBinary() + _ = yym1030 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct962 := r.ContainerType() - if yyct962 == codecSelferValueTypeMap1234 { - yyl962 := r.ReadMapStart() - if yyl962 == 0 { + yyct1031 := r.ContainerType() + if yyct1031 == codecSelferValueTypeMap1234 { + yyl1031 := r.ReadMapStart() + if yyl1031 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl962, d) + x.codecDecodeSelfFromMap(yyl1031, d) } - } else if yyct962 == codecSelferValueTypeArray1234 { - yyl962 := r.ReadArrayStart() - if yyl962 == 0 { + } else if yyct1031 == codecSelferValueTypeArray1234 { + yyl1031 := r.ReadArrayStart() + if yyl1031 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl962, d) + x.codecDecodeSelfFromArray(yyl1031, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13701,12 +14702,12 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys963Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys963Slc - var yyhl963 bool = l >= 0 - for yyj963 := 0; ; yyj963++ { - if yyhl963 { - if yyj963 >= l { + var yys1032Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1032Slc + var yyhl1032 bool = l >= 0 + for yyj1032 := 0; ; yyj1032++ { + if yyhl1032 { + if yyj1032 >= l { break } } else { @@ -13715,10 +14716,10 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys963Slc = r.DecodeBytes(yys963Slc, true, true) - yys963 := string(yys963Slc) + yys1032Slc = r.DecodeBytes(yys1032Slc, true, true) + yys1032 := string(yys1032Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys963 { + switch yys1032 { case "volumePath": if r.TryDecodeAsNil() { x.VolumePath = "" @@ -13732,9 +14733,9 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1 x.FSType = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys963) - } // end switch yys963 - } // end for yyj963 + z.DecStructFieldNotFound(-1, yys1032) + } // end switch yys1032 + } // end for yyj1032 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13742,16 +14743,16 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *code var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj966 int - var yyb966 bool - var yyhl966 bool = l >= 0 - yyj966++ - if yyhl966 { - yyb966 = yyj966 > l + var yyj1035 int + var yyb1035 bool + var yyhl1035 bool = l >= 0 + yyj1035++ + if yyhl1035 { + yyb1035 = yyj1035 > l } else { - yyb966 = r.CheckBreak() + yyb1035 = r.CheckBreak() } - if yyb966 { + if yyb1035 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13761,13 +14762,13 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *code } else { x.VolumePath = string(r.DecodeString()) } - yyj966++ - if yyhl966 { - yyb966 = yyj966 > l + yyj1035++ + if yyhl1035 { + yyb1035 = yyj1035 > l } else { - yyb966 = r.CheckBreak() + yyb1035 = r.CheckBreak() } - if yyb966 { + if yyb1035 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13778,17 +14779,460 @@ func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *code x.FSType = string(r.DecodeString()) } for { - yyj966++ - if yyhl966 { - yyb966 = yyj966 > l + yyj1035++ + if yyhl1035 { + yyb1035 = yyj1035 > l } else { - yyb966 = r.CheckBreak() + yyb1035 = r.CheckBreak() } - if yyb966 { + if yyb1035 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj966-1, "") + z.DecStructFieldNotFound(yyj1035-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x AzureDataDiskCachingMode) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym1038 := z.EncBinary() + _ = yym1038 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *AzureDataDiskCachingMode) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1039 := z.DecBinary() + _ = yym1039 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *AzureDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1040 := z.EncBinary() + _ = yym1040 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep1041 := !z.EncBinary() + yy2arr1041 := z.EncBasicHandle().StructToArray + var yyq1041 [5]bool + _, _, _ = yysep1041, yyq1041, yy2arr1041 + const yyr1041 bool = false + yyq1041[2] = x.CachingMode != nil + yyq1041[3] = x.FSType != nil + yyq1041[4] = x.ReadOnly != nil + var yynn1041 int + if yyr1041 || yy2arr1041 { + r.EncodeArrayStart(5) + } else { + yynn1041 = 2 + for _, b := range yyq1041 { + if b { + yynn1041++ + } + } + r.EncodeMapStart(yynn1041) + yynn1041 = 0 + } + if yyr1041 || yy2arr1041 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1043 := z.EncBinary() + _ = yym1043 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DiskName)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("diskName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1044 := z.EncBinary() + _ = yym1044 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DiskName)) + } + } + if yyr1041 || yy2arr1041 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1046 := z.EncBinary() + _ = yym1046 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("diskURI")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1047 := z.EncBinary() + _ = yym1047 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI)) + } + } + if yyr1041 || yy2arr1041 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1041[2] { + if x.CachingMode == nil { + r.EncodeNil() + } else { + yy1049 := *x.CachingMode + yy1049.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq1041[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cachingMode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.CachingMode == nil { + r.EncodeNil() + } else { + yy1050 := *x.CachingMode + yy1050.CodecEncodeSelf(e) + } + } + } + if yyr1041 || yy2arr1041 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1041[3] { + if x.FSType == nil { + r.EncodeNil() + } else { + yy1052 := *x.FSType + yym1053 := z.EncBinary() + _ = yym1053 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy1052)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1041[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fsType")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.FSType == nil { + r.EncodeNil() + } else { + yy1054 := *x.FSType + yym1055 := z.EncBinary() + _ = yym1055 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy1054)) + } + } + } + } + if yyr1041 || yy2arr1041 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1041[4] { + if x.ReadOnly == nil { + r.EncodeNil() + } else { + yy1057 := *x.ReadOnly + yym1058 := z.EncBinary() + _ = yym1058 + if false { + } else { + r.EncodeBool(bool(yy1057)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1041[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnly")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ReadOnly == nil { + r.EncodeNil() + } else { + yy1059 := *x.ReadOnly + yym1060 := z.EncBinary() + _ = yym1060 + if false { + } else { + r.EncodeBool(bool(yy1059)) + } + } + } + } + if yyr1041 || yy2arr1041 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *AzureDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym1061 := z.DecBinary() + _ = yym1061 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct1062 := r.ContainerType() + if yyct1062 == codecSelferValueTypeMap1234 { + yyl1062 := r.ReadMapStart() + if yyl1062 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl1062, d) + } + } else if yyct1062 == codecSelferValueTypeArray1234 { + yyl1062 := r.ReadArrayStart() + if yyl1062 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl1062, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *AzureDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys1063Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1063Slc + var yyhl1063 bool = l >= 0 + for yyj1063 := 0; ; yyj1063++ { + if yyhl1063 { + if yyj1063 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys1063Slc = r.DecodeBytes(yys1063Slc, true, true) + yys1063 := string(yys1063Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys1063 { + case "diskName": + if r.TryDecodeAsNil() { + x.DiskName = "" + } else { + x.DiskName = string(r.DecodeString()) + } + case "diskURI": + if r.TryDecodeAsNil() { + x.DataDiskURI = "" + } else { + x.DataDiskURI = string(r.DecodeString()) + } + case "cachingMode": + if r.TryDecodeAsNil() { + if x.CachingMode != nil { + x.CachingMode = nil + } + } else { + if x.CachingMode == nil { + x.CachingMode = new(AzureDataDiskCachingMode) + } + x.CachingMode.CodecDecodeSelf(d) + } + case "fsType": + if r.TryDecodeAsNil() { + if x.FSType != nil { + x.FSType = nil + } + } else { + if x.FSType == nil { + x.FSType = new(string) + } + yym1068 := z.DecBinary() + _ = yym1068 + if false { + } else { + *((*string)(x.FSType)) = r.DecodeString() + } + } + case "readOnly": + if r.TryDecodeAsNil() { + if x.ReadOnly != nil { + x.ReadOnly = nil + } + } else { + if x.ReadOnly == nil { + x.ReadOnly = new(bool) + } + yym1070 := z.DecBinary() + _ = yym1070 + if false { + } else { + *((*bool)(x.ReadOnly)) = r.DecodeBool() + } + } + default: + z.DecStructFieldNotFound(-1, yys1063) + } // end switch yys1063 + } // end for yyj1063 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj1071 int + var yyb1071 bool + var yyhl1071 bool = l >= 0 + yyj1071++ + if yyhl1071 { + yyb1071 = yyj1071 > l + } else { + yyb1071 = r.CheckBreak() + } + if yyb1071 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DiskName = "" + } else { + x.DiskName = string(r.DecodeString()) + } + yyj1071++ + if yyhl1071 { + yyb1071 = yyj1071 > l + } else { + yyb1071 = r.CheckBreak() + } + if yyb1071 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DataDiskURI = "" + } else { + x.DataDiskURI = string(r.DecodeString()) + } + yyj1071++ + if yyhl1071 { + yyb1071 = yyj1071 > l + } else { + yyb1071 = r.CheckBreak() + } + if yyb1071 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.CachingMode != nil { + x.CachingMode = nil + } + } else { + if x.CachingMode == nil { + x.CachingMode = new(AzureDataDiskCachingMode) + } + x.CachingMode.CodecDecodeSelf(d) + } + yyj1071++ + if yyhl1071 { + yyb1071 = yyj1071 > l + } else { + yyb1071 = r.CheckBreak() + } + if yyb1071 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FSType != nil { + x.FSType = nil + } + } else { + if x.FSType == nil { + x.FSType = new(string) + } + yym1076 := z.DecBinary() + _ = yym1076 + if false { + } else { + *((*string)(x.FSType)) = r.DecodeString() + } + } + yyj1071++ + if yyhl1071 { + yyb1071 = yyj1071 > l + } else { + yyb1071 = r.CheckBreak() + } + if yyb1071 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ReadOnly != nil { + x.ReadOnly = nil + } + } else { + if x.ReadOnly == nil { + x.ReadOnly = new(bool) + } + yym1078 := z.DecBinary() + _ = yym1078 + if false { + } else { + *((*bool)(x.ReadOnly)) = r.DecodeBool() + } + } + for { + yyj1071++ + if yyhl1071 { + yyb1071 = yyj1071 > l + } else { + yyb1071 = r.CheckBreak() + } + if yyb1071 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj1071-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13800,36 +15244,37 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym969 := z.EncBinary() - _ = yym969 + yym1079 := z.EncBinary() + _ = yym1079 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep970 := !z.EncBinary() - yy2arr970 := z.EncBasicHandle().StructToArray - var yyq970 [2]bool - _, _, _ = yysep970, yyq970, yy2arr970 - const yyr970 bool = false - yyq970[0] = x.Name != "" - yyq970[1] = len(x.Items) != 0 - var yynn970 int - if yyr970 || yy2arr970 { - r.EncodeArrayStart(2) + yysep1080 := !z.EncBinary() + yy2arr1080 := z.EncBasicHandle().StructToArray + var yyq1080 [3]bool + _, _, _ = yysep1080, yyq1080, yy2arr1080 + const yyr1080 bool = false + yyq1080[0] = x.Name != "" + yyq1080[1] = len(x.Items) != 0 + yyq1080[2] = x.DefaultMode != nil + var yynn1080 int + if yyr1080 || yy2arr1080 { + r.EncodeArrayStart(3) } else { - yynn970 = 0 - for _, b := range yyq970 { + yynn1080 = 0 + for _, b := range yyq1080 { if b { - yynn970++ + yynn1080++ } } - r.EncodeMapStart(yynn970) - yynn970 = 0 + r.EncodeMapStart(yynn1080) + yynn1080 = 0 } - if yyr970 || yy2arr970 { + if yyr1080 || yy2arr1080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq970[0] { - yym972 := z.EncBinary() - _ = yym972 + if yyq1080[0] { + yym1082 := z.EncBinary() + _ = yym1082 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -13838,26 +15283,26 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq970[0] { + if yyq1080[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym973 := z.EncBinary() - _ = yym973 + yym1083 := z.EncBinary() + _ = yym1083 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr970 || yy2arr970 { + if yyr1080 || yy2arr1080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq970[1] { + if yyq1080[1] { if x.Items == nil { r.EncodeNil() } else { - yym975 := z.EncBinary() - _ = yym975 + yym1085 := z.EncBinary() + _ = yym1085 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -13867,15 +15312,15 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq970[1] { + if yyq1080[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { - yym976 := z.EncBinary() - _ = yym976 + yym1086 := z.EncBinary() + _ = yym1086 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) @@ -13883,7 +15328,42 @@ func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr970 || yy2arr970 { + if yyr1080 || yy2arr1080 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1080[2] { + if x.DefaultMode == nil { + r.EncodeNil() + } else { + yy1088 := *x.DefaultMode + yym1089 := z.EncBinary() + _ = yym1089 + if false { + } else { + r.EncodeInt(int64(yy1088)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1080[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DefaultMode == nil { + r.EncodeNil() + } else { + yy1090 := *x.DefaultMode + yym1091 := z.EncBinary() + _ = yym1091 + if false { + } else { + r.EncodeInt(int64(yy1090)) + } + } + } + } + if yyr1080 || yy2arr1080 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13896,25 +15376,25 @@ func (x *ConfigMapVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym977 := z.DecBinary() - _ = yym977 + yym1092 := z.DecBinary() + _ = yym1092 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct978 := r.ContainerType() - if yyct978 == codecSelferValueTypeMap1234 { - yyl978 := r.ReadMapStart() - if yyl978 == 0 { + yyct1093 := r.ContainerType() + if yyct1093 == codecSelferValueTypeMap1234 { + yyl1093 := r.ReadMapStart() + if yyl1093 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl978, d) + x.codecDecodeSelfFromMap(yyl1093, d) } - } else if yyct978 == codecSelferValueTypeArray1234 { - yyl978 := r.ReadArrayStart() - if yyl978 == 0 { + } else if yyct1093 == codecSelferValueTypeArray1234 { + yyl1093 := r.ReadArrayStart() + if yyl1093 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl978, d) + x.codecDecodeSelfFromArray(yyl1093, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13926,12 +15406,12 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys979Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys979Slc - var yyhl979 bool = l >= 0 - for yyj979 := 0; ; yyj979++ { - if yyhl979 { - if yyj979 >= l { + var yys1094Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1094Slc + var yyhl1094 bool = l >= 0 + for yyj1094 := 0; ; yyj1094++ { + if yyhl1094 { + if yyj1094 >= l { break } } else { @@ -13940,10 +15420,10 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys979Slc = r.DecodeBytes(yys979Slc, true, true) - yys979 := string(yys979Slc) + yys1094Slc = r.DecodeBytes(yys1094Slc, true, true) + yys1094 := string(yys1094Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys979 { + switch yys1094 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -13954,18 +15434,34 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Items = nil } else { - yyv981 := &x.Items - yym982 := z.DecBinary() - _ = yym982 + yyv1096 := &x.Items + yym1097 := z.DecBinary() + _ = yym1097 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv981), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv1096), d) + } + } + case "defaultMode": + if r.TryDecodeAsNil() { + if x.DefaultMode != nil { + x.DefaultMode = nil + } + } else { + if x.DefaultMode == nil { + x.DefaultMode = new(int32) + } + yym1099 := z.DecBinary() + _ = yym1099 + if false { + } else { + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: - z.DecStructFieldNotFound(-1, yys979) - } // end switch yys979 - } // end for yyj979 + z.DecStructFieldNotFound(-1, yys1094) + } // end switch yys1094 + } // end for yyj1094 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13973,16 +15469,16 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj983 int - var yyb983 bool - var yyhl983 bool = l >= 0 - yyj983++ - if yyhl983 { - yyb983 = yyj983 > l + var yyj1100 int + var yyb1100 bool + var yyhl1100 bool = l >= 0 + yyj1100++ + if yyhl1100 { + yyb1100 = yyj1100 > l } else { - yyb983 = r.CheckBreak() + yyb1100 = r.CheckBreak() } - if yyb983 { + if yyb1100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13992,13 +15488,13 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Name = string(r.DecodeString()) } - yyj983++ - if yyhl983 { - yyb983 = yyj983 > l + yyj1100++ + if yyhl1100 { + yyb1100 = yyj1100 > l } else { - yyb983 = r.CheckBreak() + yyb1100 = r.CheckBreak() } - if yyb983 { + if yyb1100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14006,26 +15502,52 @@ func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Items = nil } else { - yyv985 := &x.Items - yym986 := z.DecBinary() - _ = yym986 + yyv1102 := &x.Items + yym1103 := z.DecBinary() + _ = yym1103 if false { } else { - h.decSliceKeyToPath((*[]KeyToPath)(yyv985), d) + h.decSliceKeyToPath((*[]KeyToPath)(yyv1102), d) + } + } + yyj1100++ + if yyhl1100 { + yyb1100 = yyj1100 > l + } else { + yyb1100 = r.CheckBreak() + } + if yyb1100 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DefaultMode != nil { + x.DefaultMode = nil + } + } else { + if x.DefaultMode == nil { + x.DefaultMode = new(int32) + } + yym1105 := z.DecBinary() + _ = yym1105 + if false { + } else { + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { - yyj983++ - if yyhl983 { - yyb983 = yyj983 > l + yyj1100++ + if yyhl1100 { + yyb1100 = yyj1100 > l } else { - yyb983 = r.CheckBreak() + yyb1100 = r.CheckBreak() } - if yyb983 { + if yyb1100 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj983-1, "") + z.DecStructFieldNotFound(yyj1100-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14037,33 +15559,34 @@ func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym987 := z.EncBinary() - _ = yym987 + yym1106 := z.EncBinary() + _ = yym1106 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep988 := !z.EncBinary() - yy2arr988 := z.EncBasicHandle().StructToArray - var yyq988 [2]bool - _, _, _ = yysep988, yyq988, yy2arr988 - const yyr988 bool = false - var yynn988 int - if yyr988 || yy2arr988 { - r.EncodeArrayStart(2) + yysep1107 := !z.EncBinary() + yy2arr1107 := z.EncBasicHandle().StructToArray + var yyq1107 [3]bool + _, _, _ = yysep1107, yyq1107, yy2arr1107 + const yyr1107 bool = false + yyq1107[2] = x.Mode != nil + var yynn1107 int + if yyr1107 || yy2arr1107 { + r.EncodeArrayStart(3) } else { - yynn988 = 2 - for _, b := range yyq988 { + yynn1107 = 2 + for _, b := range yyq1107 { if b { - yynn988++ + yynn1107++ } } - r.EncodeMapStart(yynn988) - yynn988 = 0 + r.EncodeMapStart(yynn1107) + yynn1107 = 0 } - if yyr988 || yy2arr988 { + if yyr1107 || yy2arr1107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym990 := z.EncBinary() - _ = yym990 + yym1109 := z.EncBinary() + _ = yym1109 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -14072,17 +15595,17 @@ func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym991 := z.EncBinary() - _ = yym991 + yym1110 := z.EncBinary() + _ = yym1110 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr988 || yy2arr988 { + if yyr1107 || yy2arr1107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym993 := z.EncBinary() - _ = yym993 + yym1112 := z.EncBinary() + _ = yym1112 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -14091,14 +15614,49 @@ func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym994 := z.EncBinary() - _ = yym994 + yym1113 := z.EncBinary() + _ = yym1113 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr988 || yy2arr988 { + if yyr1107 || yy2arr1107 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1107[2] { + if x.Mode == nil { + r.EncodeNil() + } else { + yy1115 := *x.Mode + yym1116 := z.EncBinary() + _ = yym1116 + if false { + } else { + r.EncodeInt(int64(yy1115)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq1107[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("mode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Mode == nil { + r.EncodeNil() + } else { + yy1117 := *x.Mode + yym1118 := z.EncBinary() + _ = yym1118 + if false { + } else { + r.EncodeInt(int64(yy1117)) + } + } + } + } + if yyr1107 || yy2arr1107 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14111,25 +15669,25 @@ func (x *KeyToPath) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym995 := z.DecBinary() - _ = yym995 + yym1119 := z.DecBinary() + _ = yym1119 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct996 := r.ContainerType() - if yyct996 == codecSelferValueTypeMap1234 { - yyl996 := r.ReadMapStart() - if yyl996 == 0 { + yyct1120 := r.ContainerType() + if yyct1120 == codecSelferValueTypeMap1234 { + yyl1120 := r.ReadMapStart() + if yyl1120 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl996, d) + x.codecDecodeSelfFromMap(yyl1120, d) } - } else if yyct996 == codecSelferValueTypeArray1234 { - yyl996 := r.ReadArrayStart() - if yyl996 == 0 { + } else if yyct1120 == codecSelferValueTypeArray1234 { + yyl1120 := r.ReadArrayStart() + if yyl1120 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl996, d) + x.codecDecodeSelfFromArray(yyl1120, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14141,12 +15699,12 @@ func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys997Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys997Slc - var yyhl997 bool = l >= 0 - for yyj997 := 0; ; yyj997++ { - if yyhl997 { - if yyj997 >= l { + var yys1121Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1121Slc + var yyhl1121 bool = l >= 0 + for yyj1121 := 0; ; yyj1121++ { + if yyhl1121 { + if yyj1121 >= l { break } } else { @@ -14155,10 +15713,10 @@ func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys997Slc = r.DecodeBytes(yys997Slc, true, true) - yys997 := string(yys997Slc) + yys1121Slc = r.DecodeBytes(yys1121Slc, true, true) + yys1121 := string(yys1121Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys997 { + switch yys1121 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -14171,10 +15729,26 @@ func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.Path = string(r.DecodeString()) } + case "mode": + if r.TryDecodeAsNil() { + if x.Mode != nil { + x.Mode = nil + } + } else { + if x.Mode == nil { + x.Mode = new(int32) + } + yym1125 := z.DecBinary() + _ = yym1125 + if false { + } else { + *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) + } + } default: - z.DecStructFieldNotFound(-1, yys997) - } // end switch yys997 - } // end for yyj997 + z.DecStructFieldNotFound(-1, yys1121) + } // end switch yys1121 + } // end for yyj1121 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14182,16 +15756,16 @@ func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1000 int - var yyb1000 bool - var yyhl1000 bool = l >= 0 - yyj1000++ - if yyhl1000 { - yyb1000 = yyj1000 > l + var yyj1126 int + var yyb1126 bool + var yyhl1126 bool = l >= 0 + yyj1126++ + if yyhl1126 { + yyb1126 = yyj1126 > l } else { - yyb1000 = r.CheckBreak() + yyb1126 = r.CheckBreak() } - if yyb1000 { + if yyb1126 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14201,13 +15775,13 @@ func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Key = string(r.DecodeString()) } - yyj1000++ - if yyhl1000 { - yyb1000 = yyj1000 > l + yyj1126++ + if yyhl1126 { + yyb1126 = yyj1126 > l } else { - yyb1000 = r.CheckBreak() + yyb1126 = r.CheckBreak() } - if yyb1000 { + if yyb1126 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14217,18 +15791,44 @@ func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Path = string(r.DecodeString()) } - for { - yyj1000++ - if yyhl1000 { - yyb1000 = yyj1000 > l - } else { - yyb1000 = r.CheckBreak() + yyj1126++ + if yyhl1126 { + yyb1126 = yyj1126 > l + } else { + yyb1126 = r.CheckBreak() + } + if yyb1126 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Mode != nil { + x.Mode = nil } - if yyb1000 { + } else { + if x.Mode == nil { + x.Mode = new(int32) + } + yym1130 := z.DecBinary() + _ = yym1130 + if false { + } else { + *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) + } + } + for { + yyj1126++ + if yyhl1126 { + yyb1126 = yyj1126 > l + } else { + yyb1126 = r.CheckBreak() + } + if yyb1126 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1000-1, "") + z.DecStructFieldNotFound(yyj1126-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14240,38 +15840,38 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1003 := z.EncBinary() - _ = yym1003 + yym1131 := z.EncBinary() + _ = yym1131 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1004 := !z.EncBinary() - yy2arr1004 := z.EncBasicHandle().StructToArray - var yyq1004 [5]bool - _, _, _ = yysep1004, yyq1004, yy2arr1004 - const yyr1004 bool = false - yyq1004[0] = x.Name != "" - yyq1004[1] = x.HostPort != 0 - yyq1004[3] = x.Protocol != "" - yyq1004[4] = x.HostIP != "" - var yynn1004 int - if yyr1004 || yy2arr1004 { + yysep1132 := !z.EncBinary() + yy2arr1132 := z.EncBasicHandle().StructToArray + var yyq1132 [5]bool + _, _, _ = yysep1132, yyq1132, yy2arr1132 + const yyr1132 bool = false + yyq1132[0] = x.Name != "" + yyq1132[1] = x.HostPort != 0 + yyq1132[3] = x.Protocol != "" + yyq1132[4] = x.HostIP != "" + var yynn1132 int + if yyr1132 || yy2arr1132 { r.EncodeArrayStart(5) } else { - yynn1004 = 1 - for _, b := range yyq1004 { + yynn1132 = 1 + for _, b := range yyq1132 { if b { - yynn1004++ + yynn1132++ } } - r.EncodeMapStart(yynn1004) - yynn1004 = 0 + r.EncodeMapStart(yynn1132) + yynn1132 = 0 } - if yyr1004 || yy2arr1004 { + if yyr1132 || yy2arr1132 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1004[0] { - yym1006 := z.EncBinary() - _ = yym1006 + if yyq1132[0] { + yym1134 := z.EncBinary() + _ = yym1134 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -14280,23 +15880,23 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1004[0] { + if yyq1132[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1007 := z.EncBinary() - _ = yym1007 + yym1135 := z.EncBinary() + _ = yym1135 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr1004 || yy2arr1004 { + if yyr1132 || yy2arr1132 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1004[1] { - yym1009 := z.EncBinary() - _ = yym1009 + if yyq1132[1] { + yym1137 := z.EncBinary() + _ = yym1137 if false { } else { r.EncodeInt(int64(x.HostPort)) @@ -14305,22 +15905,22 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1004[1] { + if yyq1132[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1010 := z.EncBinary() - _ = yym1010 + yym1138 := z.EncBinary() + _ = yym1138 if false { } else { r.EncodeInt(int64(x.HostPort)) } } } - if yyr1004 || yy2arr1004 { + if yyr1132 || yy2arr1132 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1012 := z.EncBinary() - _ = yym1012 + yym1140 := z.EncBinary() + _ = yym1140 if false { } else { r.EncodeInt(int64(x.ContainerPort)) @@ -14329,33 +15929,33 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1013 := z.EncBinary() - _ = yym1013 + yym1141 := z.EncBinary() + _ = yym1141 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } - if yyr1004 || yy2arr1004 { + if yyr1132 || yy2arr1132 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1004[3] { + if yyq1132[3] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1004[3] { + if yyq1132[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } - if yyr1004 || yy2arr1004 { + if yyr1132 || yy2arr1132 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1004[4] { - yym1016 := z.EncBinary() - _ = yym1016 + if yyq1132[4] { + yym1144 := z.EncBinary() + _ = yym1144 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) @@ -14364,19 +15964,19 @@ func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1004[4] { + if yyq1132[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1017 := z.EncBinary() - _ = yym1017 + yym1145 := z.EncBinary() + _ = yym1145 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } - if yyr1004 || yy2arr1004 { + if yyr1132 || yy2arr1132 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14389,25 +15989,25 @@ func (x *ContainerPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1018 := z.DecBinary() - _ = yym1018 + yym1146 := z.DecBinary() + _ = yym1146 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1019 := r.ContainerType() - if yyct1019 == codecSelferValueTypeMap1234 { - yyl1019 := r.ReadMapStart() - if yyl1019 == 0 { + yyct1147 := r.ContainerType() + if yyct1147 == codecSelferValueTypeMap1234 { + yyl1147 := r.ReadMapStart() + if yyl1147 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1019, d) + x.codecDecodeSelfFromMap(yyl1147, d) } - } else if yyct1019 == codecSelferValueTypeArray1234 { - yyl1019 := r.ReadArrayStart() - if yyl1019 == 0 { + } else if yyct1147 == codecSelferValueTypeArray1234 { + yyl1147 := r.ReadArrayStart() + if yyl1147 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1019, d) + x.codecDecodeSelfFromArray(yyl1147, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14419,12 +16019,12 @@ func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1020Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1020Slc - var yyhl1020 bool = l >= 0 - for yyj1020 := 0; ; yyj1020++ { - if yyhl1020 { - if yyj1020 >= l { + var yys1148Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1148Slc + var yyhl1148 bool = l >= 0 + for yyj1148 := 0; ; yyj1148++ { + if yyhl1148 { + if yyj1148 >= l { break } } else { @@ -14433,10 +16033,10 @@ func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1020Slc = r.DecodeBytes(yys1020Slc, true, true) - yys1020 := string(yys1020Slc) + yys1148Slc = r.DecodeBytes(yys1148Slc, true, true) + yys1148 := string(yys1148Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1020 { + switch yys1148 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -14468,9 +16068,9 @@ func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.HostIP = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1020) - } // end switch yys1020 - } // end for yyj1020 + z.DecStructFieldNotFound(-1, yys1148) + } // end switch yys1148 + } // end for yyj1148 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14478,16 +16078,16 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1026 int - var yyb1026 bool - var yyhl1026 bool = l >= 0 - yyj1026++ - if yyhl1026 { - yyb1026 = yyj1026 > l + var yyj1154 int + var yyb1154 bool + var yyhl1154 bool = l >= 0 + yyj1154++ + if yyhl1154 { + yyb1154 = yyj1154 > l } else { - yyb1026 = r.CheckBreak() + yyb1154 = r.CheckBreak() } - if yyb1026 { + if yyb1154 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14497,13 +16097,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1026++ - if yyhl1026 { - yyb1026 = yyj1026 > l + yyj1154++ + if yyhl1154 { + yyb1154 = yyj1154 > l } else { - yyb1026 = r.CheckBreak() + yyb1154 = r.CheckBreak() } - if yyb1026 { + if yyb1154 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14513,13 +16113,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostPort = int32(r.DecodeInt(32)) } - yyj1026++ - if yyhl1026 { - yyb1026 = yyj1026 > l + yyj1154++ + if yyhl1154 { + yyb1154 = yyj1154 > l } else { - yyb1026 = r.CheckBreak() + yyb1154 = r.CheckBreak() } - if yyb1026 { + if yyb1154 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14529,13 +16129,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ContainerPort = int32(r.DecodeInt(32)) } - yyj1026++ - if yyhl1026 { - yyb1026 = yyj1026 > l + yyj1154++ + if yyhl1154 { + yyb1154 = yyj1154 > l } else { - yyb1026 = r.CheckBreak() + yyb1154 = r.CheckBreak() } - if yyb1026 { + if yyb1154 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14545,13 +16145,13 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Protocol = Protocol(r.DecodeString()) } - yyj1026++ - if yyhl1026 { - yyb1026 = yyj1026 > l + yyj1154++ + if yyhl1154 { + yyb1154 = yyj1154 > l } else { - yyb1026 = r.CheckBreak() + yyb1154 = r.CheckBreak() } - if yyb1026 { + if yyb1154 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14562,17 +16162,17 @@ func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.HostIP = string(r.DecodeString()) } for { - yyj1026++ - if yyhl1026 { - yyb1026 = yyj1026 > l + yyj1154++ + if yyhl1154 { + yyb1154 = yyj1154 > l } else { - yyb1026 = r.CheckBreak() + yyb1154 = r.CheckBreak() } - if yyb1026 { + if yyb1154 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1026-1, "") + z.DecStructFieldNotFound(yyj1154-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14584,35 +16184,35 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1032 := z.EncBinary() - _ = yym1032 + yym1160 := z.EncBinary() + _ = yym1160 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1033 := !z.EncBinary() - yy2arr1033 := z.EncBasicHandle().StructToArray - var yyq1033 [4]bool - _, _, _ = yysep1033, yyq1033, yy2arr1033 - const yyr1033 bool = false - yyq1033[1] = x.ReadOnly != false - yyq1033[3] = x.SubPath != "" - var yynn1033 int - if yyr1033 || yy2arr1033 { + yysep1161 := !z.EncBinary() + yy2arr1161 := z.EncBasicHandle().StructToArray + var yyq1161 [4]bool + _, _, _ = yysep1161, yyq1161, yy2arr1161 + const yyr1161 bool = false + yyq1161[1] = x.ReadOnly != false + yyq1161[3] = x.SubPath != "" + var yynn1161 int + if yyr1161 || yy2arr1161 { r.EncodeArrayStart(4) } else { - yynn1033 = 2 - for _, b := range yyq1033 { + yynn1161 = 2 + for _, b := range yyq1161 { if b { - yynn1033++ + yynn1161++ } } - r.EncodeMapStart(yynn1033) - yynn1033 = 0 + r.EncodeMapStart(yynn1161) + yynn1161 = 0 } - if yyr1033 || yy2arr1033 { + if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1035 := z.EncBinary() - _ = yym1035 + yym1163 := z.EncBinary() + _ = yym1163 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -14621,18 +16221,18 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1036 := z.EncBinary() - _ = yym1036 + yym1164 := z.EncBinary() + _ = yym1164 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1033 || yy2arr1033 { + if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1033[1] { - yym1038 := z.EncBinary() - _ = yym1038 + if yyq1161[1] { + yym1166 := z.EncBinary() + _ = yym1166 if false { } else { r.EncodeBool(bool(x.ReadOnly)) @@ -14641,22 +16241,22 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1033[1] { + if yyq1161[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1039 := z.EncBinary() - _ = yym1039 + yym1167 := z.EncBinary() + _ = yym1167 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } - if yyr1033 || yy2arr1033 { + if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1041 := z.EncBinary() - _ = yym1041 + yym1169 := z.EncBinary() + _ = yym1169 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) @@ -14665,18 +16265,18 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("mountPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1042 := z.EncBinary() - _ = yym1042 + yym1170 := z.EncBinary() + _ = yym1170 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } - if yyr1033 || yy2arr1033 { + if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1033[3] { - yym1044 := z.EncBinary() - _ = yym1044 + if yyq1161[3] { + yym1172 := z.EncBinary() + _ = yym1172 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) @@ -14685,19 +16285,19 @@ func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1033[3] { + if yyq1161[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1045 := z.EncBinary() - _ = yym1045 + yym1173 := z.EncBinary() + _ = yym1173 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) } } } - if yyr1033 || yy2arr1033 { + if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14710,25 +16310,25 @@ func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1046 := z.DecBinary() - _ = yym1046 + yym1174 := z.DecBinary() + _ = yym1174 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1047 := r.ContainerType() - if yyct1047 == codecSelferValueTypeMap1234 { - yyl1047 := r.ReadMapStart() - if yyl1047 == 0 { + yyct1175 := r.ContainerType() + if yyct1175 == codecSelferValueTypeMap1234 { + yyl1175 := r.ReadMapStart() + if yyl1175 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1047, d) + x.codecDecodeSelfFromMap(yyl1175, d) } - } else if yyct1047 == codecSelferValueTypeArray1234 { - yyl1047 := r.ReadArrayStart() - if yyl1047 == 0 { + } else if yyct1175 == codecSelferValueTypeArray1234 { + yyl1175 := r.ReadArrayStart() + if yyl1175 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1047, d) + x.codecDecodeSelfFromArray(yyl1175, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14740,12 +16340,12 @@ func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1048Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1048Slc - var yyhl1048 bool = l >= 0 - for yyj1048 := 0; ; yyj1048++ { - if yyhl1048 { - if yyj1048 >= l { + var yys1176Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1176Slc + var yyhl1176 bool = l >= 0 + for yyj1176 := 0; ; yyj1176++ { + if yyhl1176 { + if yyj1176 >= l { break } } else { @@ -14754,10 +16354,10 @@ func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1048Slc = r.DecodeBytes(yys1048Slc, true, true) - yys1048 := string(yys1048Slc) + yys1176Slc = r.DecodeBytes(yys1176Slc, true, true) + yys1176 := string(yys1176Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1048 { + switch yys1176 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -14783,9 +16383,9 @@ func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SubPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1048) - } // end switch yys1048 - } // end for yyj1048 + z.DecStructFieldNotFound(-1, yys1176) + } // end switch yys1176 + } // end for yyj1176 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14793,16 +16393,16 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1053 int - var yyb1053 bool - var yyhl1053 bool = l >= 0 - yyj1053++ - if yyhl1053 { - yyb1053 = yyj1053 > l + var yyj1181 int + var yyb1181 bool + var yyhl1181 bool = l >= 0 + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l } else { - yyb1053 = r.CheckBreak() + yyb1181 = r.CheckBreak() } - if yyb1053 { + if yyb1181 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14812,13 +16412,13 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1053++ - if yyhl1053 { - yyb1053 = yyj1053 > l + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l } else { - yyb1053 = r.CheckBreak() + yyb1181 = r.CheckBreak() } - if yyb1053 { + if yyb1181 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14828,13 +16428,13 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ReadOnly = bool(r.DecodeBool()) } - yyj1053++ - if yyhl1053 { - yyb1053 = yyj1053 > l + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l } else { - yyb1053 = r.CheckBreak() + yyb1181 = r.CheckBreak() } - if yyb1053 { + if yyb1181 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14844,13 +16444,13 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MountPath = string(r.DecodeString()) } - yyj1053++ - if yyhl1053 { - yyb1053 = yyj1053 > l + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l } else { - yyb1053 = r.CheckBreak() + yyb1181 = r.CheckBreak() } - if yyb1053 { + if yyb1181 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14861,17 +16461,17 @@ func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SubPath = string(r.DecodeString()) } for { - yyj1053++ - if yyhl1053 { - yyb1053 = yyj1053 > l + yyj1181++ + if yyhl1181 { + yyb1181 = yyj1181 > l } else { - yyb1053 = r.CheckBreak() + yyb1181 = r.CheckBreak() } - if yyb1053 { + if yyb1181 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1053-1, "") + z.DecStructFieldNotFound(yyj1181-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14883,35 +16483,35 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1058 := z.EncBinary() - _ = yym1058 + yym1186 := z.EncBinary() + _ = yym1186 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1059 := !z.EncBinary() - yy2arr1059 := z.EncBasicHandle().StructToArray - var yyq1059 [3]bool - _, _, _ = yysep1059, yyq1059, yy2arr1059 - const yyr1059 bool = false - yyq1059[1] = x.Value != "" - yyq1059[2] = x.ValueFrom != nil - var yynn1059 int - if yyr1059 || yy2arr1059 { + yysep1187 := !z.EncBinary() + yy2arr1187 := z.EncBasicHandle().StructToArray + var yyq1187 [3]bool + _, _, _ = yysep1187, yyq1187, yy2arr1187 + const yyr1187 bool = false + yyq1187[1] = x.Value != "" + yyq1187[2] = x.ValueFrom != nil + var yynn1187 int + if yyr1187 || yy2arr1187 { r.EncodeArrayStart(3) } else { - yynn1059 = 1 - for _, b := range yyq1059 { + yynn1187 = 1 + for _, b := range yyq1187 { if b { - yynn1059++ + yynn1187++ } } - r.EncodeMapStart(yynn1059) - yynn1059 = 0 + r.EncodeMapStart(yynn1187) + yynn1187 = 0 } - if yyr1059 || yy2arr1059 { + if yyr1187 || yy2arr1187 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1061 := z.EncBinary() - _ = yym1061 + yym1189 := z.EncBinary() + _ = yym1189 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -14920,18 +16520,18 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1062 := z.EncBinary() - _ = yym1062 + yym1190 := z.EncBinary() + _ = yym1190 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1059 || yy2arr1059 { + if yyr1187 || yy2arr1187 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1059[1] { - yym1064 := z.EncBinary() - _ = yym1064 + if yyq1187[1] { + yym1192 := z.EncBinary() + _ = yym1192 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -14940,21 +16540,21 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1059[1] { + if yyq1187[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1065 := z.EncBinary() - _ = yym1065 + yym1193 := z.EncBinary() + _ = yym1193 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr1059 || yy2arr1059 { + if yyr1187 || yy2arr1187 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1059[2] { + if yyq1187[2] { if x.ValueFrom == nil { r.EncodeNil() } else { @@ -14964,7 +16564,7 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1059[2] { + if yyq1187[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("valueFrom")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -14975,7 +16575,7 @@ func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1059 || yy2arr1059 { + if yyr1187 || yy2arr1187 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14988,25 +16588,25 @@ func (x *EnvVar) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1067 := z.DecBinary() - _ = yym1067 + yym1195 := z.DecBinary() + _ = yym1195 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1068 := r.ContainerType() - if yyct1068 == codecSelferValueTypeMap1234 { - yyl1068 := r.ReadMapStart() - if yyl1068 == 0 { + yyct1196 := r.ContainerType() + if yyct1196 == codecSelferValueTypeMap1234 { + yyl1196 := r.ReadMapStart() + if yyl1196 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1068, d) + x.codecDecodeSelfFromMap(yyl1196, d) } - } else if yyct1068 == codecSelferValueTypeArray1234 { - yyl1068 := r.ReadArrayStart() - if yyl1068 == 0 { + } else if yyct1196 == codecSelferValueTypeArray1234 { + yyl1196 := r.ReadArrayStart() + if yyl1196 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1068, d) + x.codecDecodeSelfFromArray(yyl1196, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15018,12 +16618,12 @@ func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1069Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1069Slc - var yyhl1069 bool = l >= 0 - for yyj1069 := 0; ; yyj1069++ { - if yyhl1069 { - if yyj1069 >= l { + var yys1197Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1197Slc + var yyhl1197 bool = l >= 0 + for yyj1197 := 0; ; yyj1197++ { + if yyhl1197 { + if yyj1197 >= l { break } } else { @@ -15032,10 +16632,10 @@ func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1069Slc = r.DecodeBytes(yys1069Slc, true, true) - yys1069 := string(yys1069Slc) + yys1197Slc = r.DecodeBytes(yys1197Slc, true, true) + yys1197 := string(yys1197Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1069 { + switch yys1197 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -15060,9 +16660,9 @@ func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ValueFrom.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1069) - } // end switch yys1069 - } // end for yyj1069 + z.DecStructFieldNotFound(-1, yys1197) + } // end switch yys1197 + } // end for yyj1197 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15070,16 +16670,16 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1073 int - var yyb1073 bool - var yyhl1073 bool = l >= 0 - yyj1073++ - if yyhl1073 { - yyb1073 = yyj1073 > l + var yyj1201 int + var yyb1201 bool + var yyhl1201 bool = l >= 0 + yyj1201++ + if yyhl1201 { + yyb1201 = yyj1201 > l } else { - yyb1073 = r.CheckBreak() + yyb1201 = r.CheckBreak() } - if yyb1073 { + if yyb1201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15089,13 +16689,13 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1073++ - if yyhl1073 { - yyb1073 = yyj1073 > l + yyj1201++ + if yyhl1201 { + yyb1201 = yyj1201 > l } else { - yyb1073 = r.CheckBreak() + yyb1201 = r.CheckBreak() } - if yyb1073 { + if yyb1201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15105,13 +16705,13 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Value = string(r.DecodeString()) } - yyj1073++ - if yyhl1073 { - yyb1073 = yyj1073 > l + yyj1201++ + if yyhl1201 { + yyb1201 = yyj1201 > l } else { - yyb1073 = r.CheckBreak() + yyb1201 = r.CheckBreak() } - if yyb1073 { + if yyb1201 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15127,17 +16727,17 @@ func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.ValueFrom.CodecDecodeSelf(d) } for { - yyj1073++ - if yyhl1073 { - yyb1073 = yyj1073 > l + yyj1201++ + if yyhl1201 { + yyb1201 = yyj1201 > l } else { - yyb1073 = r.CheckBreak() + yyb1201 = r.CheckBreak() } - if yyb1073 { + if yyb1201 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1073-1, "") + z.DecStructFieldNotFound(yyj1201-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15149,36 +16749,36 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1077 := z.EncBinary() - _ = yym1077 + yym1205 := z.EncBinary() + _ = yym1205 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1078 := !z.EncBinary() - yy2arr1078 := z.EncBasicHandle().StructToArray - var yyq1078 [4]bool - _, _, _ = yysep1078, yyq1078, yy2arr1078 - const yyr1078 bool = false - yyq1078[0] = x.FieldRef != nil - yyq1078[1] = x.ResourceFieldRef != nil - yyq1078[2] = x.ConfigMapKeyRef != nil - yyq1078[3] = x.SecretKeyRef != nil - var yynn1078 int - if yyr1078 || yy2arr1078 { + yysep1206 := !z.EncBinary() + yy2arr1206 := z.EncBasicHandle().StructToArray + var yyq1206 [4]bool + _, _, _ = yysep1206, yyq1206, yy2arr1206 + const yyr1206 bool = false + yyq1206[0] = x.FieldRef != nil + yyq1206[1] = x.ResourceFieldRef != nil + yyq1206[2] = x.ConfigMapKeyRef != nil + yyq1206[3] = x.SecretKeyRef != nil + var yynn1206 int + if yyr1206 || yy2arr1206 { r.EncodeArrayStart(4) } else { - yynn1078 = 0 - for _, b := range yyq1078 { + yynn1206 = 0 + for _, b := range yyq1206 { if b { - yynn1078++ + yynn1206++ } } - r.EncodeMapStart(yynn1078) - yynn1078 = 0 + r.EncodeMapStart(yynn1206) + yynn1206 = 0 } - if yyr1078 || yy2arr1078 { + if yyr1206 || yy2arr1206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1078[0] { + if yyq1206[0] { if x.FieldRef == nil { r.EncodeNil() } else { @@ -15188,7 +16788,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1078[0] { + if yyq1206[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -15199,9 +16799,9 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1078 || yy2arr1078 { + if yyr1206 || yy2arr1206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1078[1] { + if yyq1206[1] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { @@ -15211,7 +16811,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1078[1] { + if yyq1206[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -15222,9 +16822,9 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1078 || yy2arr1078 { + if yyr1206 || yy2arr1206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1078[2] { + if yyq1206[2] { if x.ConfigMapKeyRef == nil { r.EncodeNil() } else { @@ -15234,7 +16834,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1078[2] { + if yyq1206[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -15245,9 +16845,9 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1078 || yy2arr1078 { + if yyr1206 || yy2arr1206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1078[3] { + if yyq1206[3] { if x.SecretKeyRef == nil { r.EncodeNil() } else { @@ -15257,7 +16857,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1078[3] { + if yyq1206[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -15268,7 +16868,7 @@ func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1078 || yy2arr1078 { + if yyr1206 || yy2arr1206 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15281,25 +16881,25 @@ func (x *EnvVarSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1083 := z.DecBinary() - _ = yym1083 + yym1211 := z.DecBinary() + _ = yym1211 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1084 := r.ContainerType() - if yyct1084 == codecSelferValueTypeMap1234 { - yyl1084 := r.ReadMapStart() - if yyl1084 == 0 { + yyct1212 := r.ContainerType() + if yyct1212 == codecSelferValueTypeMap1234 { + yyl1212 := r.ReadMapStart() + if yyl1212 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1084, d) + x.codecDecodeSelfFromMap(yyl1212, d) } - } else if yyct1084 == codecSelferValueTypeArray1234 { - yyl1084 := r.ReadArrayStart() - if yyl1084 == 0 { + } else if yyct1212 == codecSelferValueTypeArray1234 { + yyl1212 := r.ReadArrayStart() + if yyl1212 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1084, d) + x.codecDecodeSelfFromArray(yyl1212, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15311,12 +16911,12 @@ func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1085Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1085Slc - var yyhl1085 bool = l >= 0 - for yyj1085 := 0; ; yyj1085++ { - if yyhl1085 { - if yyj1085 >= l { + var yys1213Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1213Slc + var yyhl1213 bool = l >= 0 + for yyj1213 := 0; ; yyj1213++ { + if yyhl1213 { + if yyj1213 >= l { break } } else { @@ -15325,10 +16925,10 @@ func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1085Slc = r.DecodeBytes(yys1085Slc, true, true) - yys1085 := string(yys1085Slc) + yys1213Slc = r.DecodeBytes(yys1213Slc, true, true) + yys1213 := string(yys1213Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1085 { + switch yys1213 { case "fieldRef": if r.TryDecodeAsNil() { if x.FieldRef != nil { @@ -15374,9 +16974,9 @@ func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SecretKeyRef.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1085) - } // end switch yys1085 - } // end for yyj1085 + z.DecStructFieldNotFound(-1, yys1213) + } // end switch yys1213 + } // end for yyj1213 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15384,16 +16984,16 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1090 int - var yyb1090 bool - var yyhl1090 bool = l >= 0 - yyj1090++ - if yyhl1090 { - yyb1090 = yyj1090 > l + var yyj1218 int + var yyb1218 bool + var yyhl1218 bool = l >= 0 + yyj1218++ + if yyhl1218 { + yyb1218 = yyj1218 > l } else { - yyb1090 = r.CheckBreak() + yyb1218 = r.CheckBreak() } - if yyb1090 { + if yyb1218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15408,13 +17008,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.FieldRef.CodecDecodeSelf(d) } - yyj1090++ - if yyhl1090 { - yyb1090 = yyj1090 > l + yyj1218++ + if yyhl1218 { + yyb1218 = yyj1218 > l } else { - yyb1090 = r.CheckBreak() + yyb1218 = r.CheckBreak() } - if yyb1090 { + if yyb1218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15429,13 +17029,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ResourceFieldRef.CodecDecodeSelf(d) } - yyj1090++ - if yyhl1090 { - yyb1090 = yyj1090 > l + yyj1218++ + if yyhl1218 { + yyb1218 = yyj1218 > l } else { - yyb1090 = r.CheckBreak() + yyb1218 = r.CheckBreak() } - if yyb1090 { + if yyb1218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15450,13 +17050,13 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ConfigMapKeyRef.CodecDecodeSelf(d) } - yyj1090++ - if yyhl1090 { - yyb1090 = yyj1090 > l + yyj1218++ + if yyhl1218 { + yyb1218 = yyj1218 > l } else { - yyb1090 = r.CheckBreak() + yyb1218 = r.CheckBreak() } - if yyb1090 { + if yyb1218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15472,17 +17072,17 @@ func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SecretKeyRef.CodecDecodeSelf(d) } for { - yyj1090++ - if yyhl1090 { - yyb1090 = yyj1090 > l + yyj1218++ + if yyhl1218 { + yyb1218 = yyj1218 > l } else { - yyb1090 = r.CheckBreak() + yyb1218 = r.CheckBreak() } - if yyb1090 { + if yyb1218 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1090-1, "") + z.DecStructFieldNotFound(yyj1218-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15494,35 +17094,35 @@ func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1095 := z.EncBinary() - _ = yym1095 + yym1223 := z.EncBinary() + _ = yym1223 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1096 := !z.EncBinary() - yy2arr1096 := z.EncBasicHandle().StructToArray - var yyq1096 [2]bool - _, _, _ = yysep1096, yyq1096, yy2arr1096 - const yyr1096 bool = false - yyq1096[0] = x.APIVersion != "" - var yynn1096 int - if yyr1096 || yy2arr1096 { + yysep1224 := !z.EncBinary() + yy2arr1224 := z.EncBasicHandle().StructToArray + var yyq1224 [2]bool + _, _, _ = yysep1224, yyq1224, yy2arr1224 + const yyr1224 bool = false + yyq1224[0] = x.APIVersion != "" + var yynn1224 int + if yyr1224 || yy2arr1224 { r.EncodeArrayStart(2) } else { - yynn1096 = 1 - for _, b := range yyq1096 { + yynn1224 = 1 + for _, b := range yyq1224 { if b { - yynn1096++ + yynn1224++ } } - r.EncodeMapStart(yynn1096) - yynn1096 = 0 + r.EncodeMapStart(yynn1224) + yynn1224 = 0 } - if yyr1096 || yy2arr1096 { + if yyr1224 || yy2arr1224 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1096[0] { - yym1098 := z.EncBinary() - _ = yym1098 + if yyq1224[0] { + yym1226 := z.EncBinary() + _ = yym1226 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -15531,22 +17131,22 @@ func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1096[0] { + if yyq1224[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1099 := z.EncBinary() - _ = yym1099 + yym1227 := z.EncBinary() + _ = yym1227 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1096 || yy2arr1096 { + if yyr1224 || yy2arr1224 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1101 := z.EncBinary() - _ = yym1101 + yym1229 := z.EncBinary() + _ = yym1229 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) @@ -15555,14 +17155,14 @@ func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1102 := z.EncBinary() - _ = yym1102 + yym1230 := z.EncBinary() + _ = yym1230 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } - if yyr1096 || yy2arr1096 { + if yyr1224 || yy2arr1224 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15575,25 +17175,25 @@ func (x *ObjectFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1103 := z.DecBinary() - _ = yym1103 + yym1231 := z.DecBinary() + _ = yym1231 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1104 := r.ContainerType() - if yyct1104 == codecSelferValueTypeMap1234 { - yyl1104 := r.ReadMapStart() - if yyl1104 == 0 { + yyct1232 := r.ContainerType() + if yyct1232 == codecSelferValueTypeMap1234 { + yyl1232 := r.ReadMapStart() + if yyl1232 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1104, d) + x.codecDecodeSelfFromMap(yyl1232, d) } - } else if yyct1104 == codecSelferValueTypeArray1234 { - yyl1104 := r.ReadArrayStart() - if yyl1104 == 0 { + } else if yyct1232 == codecSelferValueTypeArray1234 { + yyl1232 := r.ReadArrayStart() + if yyl1232 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1104, d) + x.codecDecodeSelfFromArray(yyl1232, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15605,12 +17205,12 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1105Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1105Slc - var yyhl1105 bool = l >= 0 - for yyj1105 := 0; ; yyj1105++ { - if yyhl1105 { - if yyj1105 >= l { + var yys1233Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1233Slc + var yyhl1233 bool = l >= 0 + for yyj1233 := 0; ; yyj1233++ { + if yyhl1233 { + if yyj1233 >= l { break } } else { @@ -15619,10 +17219,10 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1105Slc = r.DecodeBytes(yys1105Slc, true, true) - yys1105 := string(yys1105Slc) + yys1233Slc = r.DecodeBytes(yys1233Slc, true, true) + yys1233 := string(yys1233Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1105 { + switch yys1233 { case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" @@ -15636,9 +17236,9 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.FieldPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1105) - } // end switch yys1105 - } // end for yyj1105 + z.DecStructFieldNotFound(-1, yys1233) + } // end switch yys1233 + } // end for yyj1233 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15646,16 +17246,16 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1108 int - var yyb1108 bool - var yyhl1108 bool = l >= 0 - yyj1108++ - if yyhl1108 { - yyb1108 = yyj1108 > l + var yyj1236 int + var yyb1236 bool + var yyhl1236 bool = l >= 0 + yyj1236++ + if yyhl1236 { + yyb1236 = yyj1236 > l } else { - yyb1108 = r.CheckBreak() + yyb1236 = r.CheckBreak() } - if yyb1108 { + if yyb1236 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15665,13 +17265,13 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj1108++ - if yyhl1108 { - yyb1108 = yyj1108 > l + yyj1236++ + if yyhl1236 { + yyb1236 = yyj1236 > l } else { - yyb1108 = r.CheckBreak() + yyb1236 = r.CheckBreak() } - if yyb1108 { + if yyb1236 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15682,17 +17282,17 @@ func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.FieldPath = string(r.DecodeString()) } for { - yyj1108++ - if yyhl1108 { - yyb1108 = yyj1108 > l + yyj1236++ + if yyhl1236 { + yyb1236 = yyj1236 > l } else { - yyb1108 = r.CheckBreak() + yyb1236 = r.CheckBreak() } - if yyb1108 { + if yyb1236 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1108-1, "") + z.DecStructFieldNotFound(yyj1236-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15704,36 +17304,36 @@ func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1111 := z.EncBinary() - _ = yym1111 + yym1239 := z.EncBinary() + _ = yym1239 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1112 := !z.EncBinary() - yy2arr1112 := z.EncBasicHandle().StructToArray - var yyq1112 [3]bool - _, _, _ = yysep1112, yyq1112, yy2arr1112 - const yyr1112 bool = false - yyq1112[0] = x.ContainerName != "" - yyq1112[2] = true - var yynn1112 int - if yyr1112 || yy2arr1112 { + yysep1240 := !z.EncBinary() + yy2arr1240 := z.EncBasicHandle().StructToArray + var yyq1240 [3]bool + _, _, _ = yysep1240, yyq1240, yy2arr1240 + const yyr1240 bool = false + yyq1240[0] = x.ContainerName != "" + yyq1240[2] = true + var yynn1240 int + if yyr1240 || yy2arr1240 { r.EncodeArrayStart(3) } else { - yynn1112 = 1 - for _, b := range yyq1112 { + yynn1240 = 1 + for _, b := range yyq1240 { if b { - yynn1112++ + yynn1240++ } } - r.EncodeMapStart(yynn1112) - yynn1112 = 0 + r.EncodeMapStart(yynn1240) + yynn1240 = 0 } - if yyr1112 || yy2arr1112 { + if yyr1240 || yy2arr1240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1112[0] { - yym1114 := z.EncBinary() - _ = yym1114 + if yyq1240[0] { + yym1242 := z.EncBinary() + _ = yym1242 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) @@ -15742,22 +17342,22 @@ func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1112[0] { + if yyq1240[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1115 := z.EncBinary() - _ = yym1115 + yym1243 := z.EncBinary() + _ = yym1243 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) } } } - if yyr1112 || yy2arr1112 { + if yyr1240 || yy2arr1240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1117 := z.EncBinary() - _ = yym1117 + yym1245 := z.EncBinary() + _ = yym1245 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) @@ -15766,47 +17366,47 @@ func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resource")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1118 := z.EncBinary() - _ = yym1118 + yym1246 := z.EncBinary() + _ = yym1246 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) } } - if yyr1112 || yy2arr1112 { + if yyr1240 || yy2arr1240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1112[2] { - yy1120 := &x.Divisor - yym1121 := z.EncBinary() - _ = yym1121 + if yyq1240[2] { + yy1248 := &x.Divisor + yym1249 := z.EncBinary() + _ = yym1249 if false { - } else if z.HasExtensions() && z.EncExt(yy1120) { - } else if !yym1121 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1120) + } else if z.HasExtensions() && z.EncExt(yy1248) { + } else if !yym1249 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1248) } else { - z.EncFallback(yy1120) + z.EncFallback(yy1248) } } else { r.EncodeNil() } } else { - if yyq1112[2] { + if yyq1240[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("divisor")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1122 := &x.Divisor - yym1123 := z.EncBinary() - _ = yym1123 + yy1250 := &x.Divisor + yym1251 := z.EncBinary() + _ = yym1251 if false { - } else if z.HasExtensions() && z.EncExt(yy1122) { - } else if !yym1123 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1122) + } else if z.HasExtensions() && z.EncExt(yy1250) { + } else if !yym1251 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1250) } else { - z.EncFallback(yy1122) + z.EncFallback(yy1250) } } } - if yyr1112 || yy2arr1112 { + if yyr1240 || yy2arr1240 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15819,25 +17419,25 @@ func (x *ResourceFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1124 := z.DecBinary() - _ = yym1124 + yym1252 := z.DecBinary() + _ = yym1252 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1125 := r.ContainerType() - if yyct1125 == codecSelferValueTypeMap1234 { - yyl1125 := r.ReadMapStart() - if yyl1125 == 0 { + yyct1253 := r.ContainerType() + if yyct1253 == codecSelferValueTypeMap1234 { + yyl1253 := r.ReadMapStart() + if yyl1253 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1125, d) + x.codecDecodeSelfFromMap(yyl1253, d) } - } else if yyct1125 == codecSelferValueTypeArray1234 { - yyl1125 := r.ReadArrayStart() - if yyl1125 == 0 { + } else if yyct1253 == codecSelferValueTypeArray1234 { + yyl1253 := r.ReadArrayStart() + if yyl1253 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1125, d) + x.codecDecodeSelfFromArray(yyl1253, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15849,12 +17449,12 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1126Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1126Slc - var yyhl1126 bool = l >= 0 - for yyj1126 := 0; ; yyj1126++ { - if yyhl1126 { - if yyj1126 >= l { + var yys1254Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1254Slc + var yyhl1254 bool = l >= 0 + for yyj1254 := 0; ; yyj1254++ { + if yyhl1254 { + if yyj1254 >= l { break } } else { @@ -15863,10 +17463,10 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1126Slc = r.DecodeBytes(yys1126Slc, true, true) - yys1126 := string(yys1126Slc) + yys1254Slc = r.DecodeBytes(yys1254Slc, true, true) + yys1254 := string(yys1254Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1126 { + switch yys1254 { case "containerName": if r.TryDecodeAsNil() { x.ContainerName = "" @@ -15883,21 +17483,21 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Divisor = pkg3_resource.Quantity{} } else { - yyv1129 := &x.Divisor - yym1130 := z.DecBinary() - _ = yym1130 + yyv1257 := &x.Divisor + yym1258 := z.DecBinary() + _ = yym1258 if false { - } else if z.HasExtensions() && z.DecExt(yyv1129) { - } else if !yym1130 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1129) + } else if z.HasExtensions() && z.DecExt(yyv1257) { + } else if !yym1258 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1257) } else { - z.DecFallback(yyv1129, false) + z.DecFallback(yyv1257, false) } } default: - z.DecStructFieldNotFound(-1, yys1126) - } // end switch yys1126 - } // end for yyj1126 + z.DecStructFieldNotFound(-1, yys1254) + } // end switch yys1254 + } // end for yyj1254 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15905,16 +17505,16 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1131 int - var yyb1131 bool - var yyhl1131 bool = l >= 0 - yyj1131++ - if yyhl1131 { - yyb1131 = yyj1131 > l + var yyj1259 int + var yyb1259 bool + var yyhl1259 bool = l >= 0 + yyj1259++ + if yyhl1259 { + yyb1259 = yyj1259 > l } else { - yyb1131 = r.CheckBreak() + yyb1259 = r.CheckBreak() } - if yyb1131 { + if yyb1259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15924,13 +17524,13 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.ContainerName = string(r.DecodeString()) } - yyj1131++ - if yyhl1131 { - yyb1131 = yyj1131 > l + yyj1259++ + if yyhl1259 { + yyb1259 = yyj1259 > l } else { - yyb1131 = r.CheckBreak() + yyb1259 = r.CheckBreak() } - if yyb1131 { + if yyb1259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15940,13 +17540,13 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Resource = string(r.DecodeString()) } - yyj1131++ - if yyhl1131 { - yyb1131 = yyj1131 > l + yyj1259++ + if yyhl1259 { + yyb1259 = yyj1259 > l } else { - yyb1131 = r.CheckBreak() + yyb1259 = r.CheckBreak() } - if yyb1131 { + if yyb1259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15954,29 +17554,29 @@ func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Divisor = pkg3_resource.Quantity{} } else { - yyv1134 := &x.Divisor - yym1135 := z.DecBinary() - _ = yym1135 + yyv1262 := &x.Divisor + yym1263 := z.DecBinary() + _ = yym1263 if false { - } else if z.HasExtensions() && z.DecExt(yyv1134) { - } else if !yym1135 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1134) + } else if z.HasExtensions() && z.DecExt(yyv1262) { + } else if !yym1263 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1262) } else { - z.DecFallback(yyv1134, false) + z.DecFallback(yyv1262, false) } } for { - yyj1131++ - if yyhl1131 { - yyb1131 = yyj1131 > l + yyj1259++ + if yyhl1259 { + yyb1259 = yyj1259 > l } else { - yyb1131 = r.CheckBreak() + yyb1259 = r.CheckBreak() } - if yyb1131 { + if yyb1259 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1131-1, "") + z.DecStructFieldNotFound(yyj1259-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15988,35 +17588,35 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1136 := z.EncBinary() - _ = yym1136 + yym1264 := z.EncBinary() + _ = yym1264 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1137 := !z.EncBinary() - yy2arr1137 := z.EncBasicHandle().StructToArray - var yyq1137 [2]bool - _, _, _ = yysep1137, yyq1137, yy2arr1137 - const yyr1137 bool = false - yyq1137[0] = x.Name != "" - var yynn1137 int - if yyr1137 || yy2arr1137 { + yysep1265 := !z.EncBinary() + yy2arr1265 := z.EncBasicHandle().StructToArray + var yyq1265 [2]bool + _, _, _ = yysep1265, yyq1265, yy2arr1265 + const yyr1265 bool = false + yyq1265[0] = x.Name != "" + var yynn1265 int + if yyr1265 || yy2arr1265 { r.EncodeArrayStart(2) } else { - yynn1137 = 1 - for _, b := range yyq1137 { + yynn1265 = 1 + for _, b := range yyq1265 { if b { - yynn1137++ + yynn1265++ } } - r.EncodeMapStart(yynn1137) - yynn1137 = 0 + r.EncodeMapStart(yynn1265) + yynn1265 = 0 } - if yyr1137 || yy2arr1137 { + if yyr1265 || yy2arr1265 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1137[0] { - yym1139 := z.EncBinary() - _ = yym1139 + if yyq1265[0] { + yym1267 := z.EncBinary() + _ = yym1267 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -16025,22 +17625,22 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1137[0] { + if yyq1265[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1140 := z.EncBinary() - _ = yym1140 + yym1268 := z.EncBinary() + _ = yym1268 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr1137 || yy2arr1137 { + if yyr1265 || yy2arr1265 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1142 := z.EncBinary() - _ = yym1142 + yym1270 := z.EncBinary() + _ = yym1270 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -16049,14 +17649,14 @@ func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1143 := z.EncBinary() - _ = yym1143 + yym1271 := z.EncBinary() + _ = yym1271 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1137 || yy2arr1137 { + if yyr1265 || yy2arr1265 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16069,25 +17669,25 @@ func (x *ConfigMapKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1144 := z.DecBinary() - _ = yym1144 + yym1272 := z.DecBinary() + _ = yym1272 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1145 := r.ContainerType() - if yyct1145 == codecSelferValueTypeMap1234 { - yyl1145 := r.ReadMapStart() - if yyl1145 == 0 { + yyct1273 := r.ContainerType() + if yyct1273 == codecSelferValueTypeMap1234 { + yyl1273 := r.ReadMapStart() + if yyl1273 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1145, d) + x.codecDecodeSelfFromMap(yyl1273, d) } - } else if yyct1145 == codecSelferValueTypeArray1234 { - yyl1145 := r.ReadArrayStart() - if yyl1145 == 0 { + } else if yyct1273 == codecSelferValueTypeArray1234 { + yyl1273 := r.ReadArrayStart() + if yyl1273 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1145, d) + x.codecDecodeSelfFromArray(yyl1273, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16099,12 +17699,12 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1146Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1146Slc - var yyhl1146 bool = l >= 0 - for yyj1146 := 0; ; yyj1146++ { - if yyhl1146 { - if yyj1146 >= l { + var yys1274Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1274Slc + var yyhl1274 bool = l >= 0 + for yyj1274 := 0; ; yyj1274++ { + if yyhl1274 { + if yyj1274 >= l { break } } else { @@ -16113,10 +17713,10 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1146Slc = r.DecodeBytes(yys1146Slc, true, true) - yys1146 := string(yys1146Slc) + yys1274Slc = r.DecodeBytes(yys1274Slc, true, true) + yys1274 := string(yys1274Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1146 { + switch yys1274 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -16130,9 +17730,9 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Key = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1146) - } // end switch yys1146 - } // end for yyj1146 + z.DecStructFieldNotFound(-1, yys1274) + } // end switch yys1274 + } // end for yyj1274 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16140,16 +17740,16 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1149 int - var yyb1149 bool - var yyhl1149 bool = l >= 0 - yyj1149++ - if yyhl1149 { - yyb1149 = yyj1149 > l + var yyj1277 int + var yyb1277 bool + var yyhl1277 bool = l >= 0 + yyj1277++ + if yyhl1277 { + yyb1277 = yyj1277 > l } else { - yyb1149 = r.CheckBreak() + yyb1277 = r.CheckBreak() } - if yyb1149 { + if yyb1277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16159,13 +17759,13 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Name = string(r.DecodeString()) } - yyj1149++ - if yyhl1149 { - yyb1149 = yyj1149 > l + yyj1277++ + if yyhl1277 { + yyb1277 = yyj1277 > l } else { - yyb1149 = r.CheckBreak() + yyb1277 = r.CheckBreak() } - if yyb1149 { + if yyb1277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16176,17 +17776,17 @@ func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Key = string(r.DecodeString()) } for { - yyj1149++ - if yyhl1149 { - yyb1149 = yyj1149 > l + yyj1277++ + if yyhl1277 { + yyb1277 = yyj1277 > l } else { - yyb1149 = r.CheckBreak() + yyb1277 = r.CheckBreak() } - if yyb1149 { + if yyb1277 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1149-1, "") + z.DecStructFieldNotFound(yyj1277-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16198,35 +17798,35 @@ func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1152 := z.EncBinary() - _ = yym1152 + yym1280 := z.EncBinary() + _ = yym1280 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1153 := !z.EncBinary() - yy2arr1153 := z.EncBasicHandle().StructToArray - var yyq1153 [2]bool - _, _, _ = yysep1153, yyq1153, yy2arr1153 - const yyr1153 bool = false - yyq1153[0] = x.Name != "" - var yynn1153 int - if yyr1153 || yy2arr1153 { + yysep1281 := !z.EncBinary() + yy2arr1281 := z.EncBasicHandle().StructToArray + var yyq1281 [2]bool + _, _, _ = yysep1281, yyq1281, yy2arr1281 + const yyr1281 bool = false + yyq1281[0] = x.Name != "" + var yynn1281 int + if yyr1281 || yy2arr1281 { r.EncodeArrayStart(2) } else { - yynn1153 = 1 - for _, b := range yyq1153 { + yynn1281 = 1 + for _, b := range yyq1281 { if b { - yynn1153++ + yynn1281++ } } - r.EncodeMapStart(yynn1153) - yynn1153 = 0 + r.EncodeMapStart(yynn1281) + yynn1281 = 0 } - if yyr1153 || yy2arr1153 { + if yyr1281 || yy2arr1281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1153[0] { - yym1155 := z.EncBinary() - _ = yym1155 + if yyq1281[0] { + yym1283 := z.EncBinary() + _ = yym1283 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -16235,22 +17835,22 @@ func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1153[0] { + if yyq1281[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1156 := z.EncBinary() - _ = yym1156 + yym1284 := z.EncBinary() + _ = yym1284 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr1153 || yy2arr1153 { + if yyr1281 || yy2arr1281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1158 := z.EncBinary() - _ = yym1158 + yym1286 := z.EncBinary() + _ = yym1286 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -16259,14 +17859,14 @@ func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1159 := z.EncBinary() - _ = yym1159 + yym1287 := z.EncBinary() + _ = yym1287 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1153 || yy2arr1153 { + if yyr1281 || yy2arr1281 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16279,25 +17879,25 @@ func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1160 := z.DecBinary() - _ = yym1160 + yym1288 := z.DecBinary() + _ = yym1288 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1161 := r.ContainerType() - if yyct1161 == codecSelferValueTypeMap1234 { - yyl1161 := r.ReadMapStart() - if yyl1161 == 0 { + yyct1289 := r.ContainerType() + if yyct1289 == codecSelferValueTypeMap1234 { + yyl1289 := r.ReadMapStart() + if yyl1289 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1161, d) + x.codecDecodeSelfFromMap(yyl1289, d) } - } else if yyct1161 == codecSelferValueTypeArray1234 { - yyl1161 := r.ReadArrayStart() - if yyl1161 == 0 { + } else if yyct1289 == codecSelferValueTypeArray1234 { + yyl1289 := r.ReadArrayStart() + if yyl1289 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1161, d) + x.codecDecodeSelfFromArray(yyl1289, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16309,12 +17909,12 @@ func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1162Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1162Slc - var yyhl1162 bool = l >= 0 - for yyj1162 := 0; ; yyj1162++ { - if yyhl1162 { - if yyj1162 >= l { + var yys1290Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1290Slc + var yyhl1290 bool = l >= 0 + for yyj1290 := 0; ; yyj1290++ { + if yyhl1290 { + if yyj1290 >= l { break } } else { @@ -16323,10 +17923,10 @@ func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1162Slc = r.DecodeBytes(yys1162Slc, true, true) - yys1162 := string(yys1162Slc) + yys1290Slc = r.DecodeBytes(yys1290Slc, true, true) + yys1290 := string(yys1290Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1162 { + switch yys1290 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -16340,9 +17940,9 @@ func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Key = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1162) - } // end switch yys1162 - } // end for yyj1162 + z.DecStructFieldNotFound(-1, yys1290) + } // end switch yys1290 + } // end for yyj1290 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16350,16 +17950,16 @@ func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1165 int - var yyb1165 bool - var yyhl1165 bool = l >= 0 - yyj1165++ - if yyhl1165 { - yyb1165 = yyj1165 > l + var yyj1293 int + var yyb1293 bool + var yyhl1293 bool = l >= 0 + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1165 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1165 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16369,13 +17969,13 @@ func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Name = string(r.DecodeString()) } - yyj1165++ - if yyhl1165 { - yyb1165 = yyj1165 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1165 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1165 { + if yyb1293 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16386,17 +17986,17 @@ func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder x.Key = string(r.DecodeString()) } for { - yyj1165++ - if yyhl1165 { - yyb1165 = yyj1165 > l + yyj1293++ + if yyhl1293 { + yyb1293 = yyj1293 > l } else { - yyb1165 = r.CheckBreak() + yyb1293 = r.CheckBreak() } - if yyb1165 { + if yyb1293 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1165-1, "") + z.DecStructFieldNotFound(yyj1293-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16408,33 +18008,33 @@ func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1168 := z.EncBinary() - _ = yym1168 + yym1296 := z.EncBinary() + _ = yym1296 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1169 := !z.EncBinary() - yy2arr1169 := z.EncBasicHandle().StructToArray - var yyq1169 [2]bool - _, _, _ = yysep1169, yyq1169, yy2arr1169 - const yyr1169 bool = false - var yynn1169 int - if yyr1169 || yy2arr1169 { + yysep1297 := !z.EncBinary() + yy2arr1297 := z.EncBasicHandle().StructToArray + var yyq1297 [2]bool + _, _, _ = yysep1297, yyq1297, yy2arr1297 + const yyr1297 bool = false + var yynn1297 int + if yyr1297 || yy2arr1297 { r.EncodeArrayStart(2) } else { - yynn1169 = 2 - for _, b := range yyq1169 { + yynn1297 = 2 + for _, b := range yyq1297 { if b { - yynn1169++ + yynn1297++ } } - r.EncodeMapStart(yynn1169) - yynn1169 = 0 + r.EncodeMapStart(yynn1297) + yynn1297 = 0 } - if yyr1169 || yy2arr1169 { + if yyr1297 || yy2arr1297 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1171 := z.EncBinary() - _ = yym1171 + yym1299 := z.EncBinary() + _ = yym1299 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -16443,17 +18043,17 @@ func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1172 := z.EncBinary() - _ = yym1172 + yym1300 := z.EncBinary() + _ = yym1300 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1169 || yy2arr1169 { + if yyr1297 || yy2arr1297 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1174 := z.EncBinary() - _ = yym1174 + yym1302 := z.EncBinary() + _ = yym1302 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -16462,14 +18062,14 @@ func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1175 := z.EncBinary() - _ = yym1175 + yym1303 := z.EncBinary() + _ = yym1303 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } - if yyr1169 || yy2arr1169 { + if yyr1297 || yy2arr1297 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16482,25 +18082,25 @@ func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1176 := z.DecBinary() - _ = yym1176 + yym1304 := z.DecBinary() + _ = yym1304 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1177 := r.ContainerType() - if yyct1177 == codecSelferValueTypeMap1234 { - yyl1177 := r.ReadMapStart() - if yyl1177 == 0 { + yyct1305 := r.ContainerType() + if yyct1305 == codecSelferValueTypeMap1234 { + yyl1305 := r.ReadMapStart() + if yyl1305 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1177, d) + x.codecDecodeSelfFromMap(yyl1305, d) } - } else if yyct1177 == codecSelferValueTypeArray1234 { - yyl1177 := r.ReadArrayStart() - if yyl1177 == 0 { + } else if yyct1305 == codecSelferValueTypeArray1234 { + yyl1305 := r.ReadArrayStart() + if yyl1305 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1177, d) + x.codecDecodeSelfFromArray(yyl1305, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16512,12 +18112,12 @@ func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1178Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1178Slc - var yyhl1178 bool = l >= 0 - for yyj1178 := 0; ; yyj1178++ { - if yyhl1178 { - if yyj1178 >= l { + var yys1306Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1306Slc + var yyhl1306 bool = l >= 0 + for yyj1306 := 0; ; yyj1306++ { + if yyhl1306 { + if yyj1306 >= l { break } } else { @@ -16526,10 +18126,10 @@ func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1178Slc = r.DecodeBytes(yys1178Slc, true, true) - yys1178 := string(yys1178Slc) + yys1306Slc = r.DecodeBytes(yys1306Slc, true, true) + yys1306 := string(yys1306Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1178 { + switch yys1306 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -16543,9 +18143,9 @@ func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Value = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1178) - } // end switch yys1178 - } // end for yyj1178 + z.DecStructFieldNotFound(-1, yys1306) + } // end switch yys1306 + } // end for yyj1306 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16553,16 +18153,16 @@ func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1181 int - var yyb1181 bool - var yyhl1181 bool = l >= 0 - yyj1181++ - if yyhl1181 { - yyb1181 = yyj1181 > l + var yyj1309 int + var yyb1309 bool + var yyhl1309 bool = l >= 0 + yyj1309++ + if yyhl1309 { + yyb1309 = yyj1309 > l } else { - yyb1181 = r.CheckBreak() + yyb1309 = r.CheckBreak() } - if yyb1181 { + if yyb1309 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16572,13 +18172,13 @@ func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1181++ - if yyhl1181 { - yyb1181 = yyj1181 > l + yyj1309++ + if yyhl1309 { + yyb1309 = yyj1309 > l } else { - yyb1181 = r.CheckBreak() + yyb1309 = r.CheckBreak() } - if yyb1181 { + if yyb1309 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16589,17 +18189,17 @@ func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Value = string(r.DecodeString()) } for { - yyj1181++ - if yyhl1181 { - yyb1181 = yyj1181 > l + yyj1309++ + if yyhl1309 { + yyb1309 = yyj1309 > l } else { - yyb1181 = r.CheckBreak() + yyb1309 = r.CheckBreak() } - if yyb1181 { + if yyb1309 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1181-1, "") + z.DecStructFieldNotFound(yyj1309-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16611,38 +18211,38 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1184 := z.EncBinary() - _ = yym1184 + yym1312 := z.EncBinary() + _ = yym1312 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1185 := !z.EncBinary() - yy2arr1185 := z.EncBasicHandle().StructToArray - var yyq1185 [5]bool - _, _, _ = yysep1185, yyq1185, yy2arr1185 - const yyr1185 bool = false - yyq1185[0] = x.Path != "" - yyq1185[2] = x.Host != "" - yyq1185[3] = x.Scheme != "" - yyq1185[4] = len(x.HTTPHeaders) != 0 - var yynn1185 int - if yyr1185 || yy2arr1185 { + yysep1313 := !z.EncBinary() + yy2arr1313 := z.EncBasicHandle().StructToArray + var yyq1313 [5]bool + _, _, _ = yysep1313, yyq1313, yy2arr1313 + const yyr1313 bool = false + yyq1313[0] = x.Path != "" + yyq1313[2] = x.Host != "" + yyq1313[3] = x.Scheme != "" + yyq1313[4] = len(x.HTTPHeaders) != 0 + var yynn1313 int + if yyr1313 || yy2arr1313 { r.EncodeArrayStart(5) } else { - yynn1185 = 1 - for _, b := range yyq1185 { + yynn1313 = 1 + for _, b := range yyq1313 { if b { - yynn1185++ + yynn1313++ } } - r.EncodeMapStart(yynn1185) - yynn1185 = 0 + r.EncodeMapStart(yynn1313) + yynn1313 = 0 } - if yyr1185 || yy2arr1185 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1185[0] { - yym1187 := z.EncBinary() - _ = yym1187 + if yyq1313[0] { + yym1315 := z.EncBinary() + _ = yym1315 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -16651,50 +18251,50 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1185[0] { + if yyq1313[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1188 := z.EncBinary() - _ = yym1188 + yym1316 := z.EncBinary() + _ = yym1316 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr1185 || yy2arr1185 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1190 := &x.Port - yym1191 := z.EncBinary() - _ = yym1191 + yy1318 := &x.Port + yym1319 := z.EncBinary() + _ = yym1319 if false { - } else if z.HasExtensions() && z.EncExt(yy1190) { - } else if !yym1191 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1190) + } else if z.HasExtensions() && z.EncExt(yy1318) { + } else if !yym1319 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1318) } else { - z.EncFallback(yy1190) + z.EncFallback(yy1318) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1192 := &x.Port - yym1193 := z.EncBinary() - _ = yym1193 + yy1320 := &x.Port + yym1321 := z.EncBinary() + _ = yym1321 if false { - } else if z.HasExtensions() && z.EncExt(yy1192) { - } else if !yym1193 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1192) + } else if z.HasExtensions() && z.EncExt(yy1320) { + } else if !yym1321 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1320) } else { - z.EncFallback(yy1192) + z.EncFallback(yy1320) } } - if yyr1185 || yy2arr1185 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1185[2] { - yym1195 := z.EncBinary() - _ = yym1195 + if yyq1313[2] { + yym1323 := z.EncBinary() + _ = yym1323 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) @@ -16703,41 +18303,41 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1185[2] { + if yyq1313[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1196 := z.EncBinary() - _ = yym1196 + yym1324 := z.EncBinary() + _ = yym1324 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - if yyr1185 || yy2arr1185 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1185[3] { + if yyq1313[3] { x.Scheme.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1185[3] { + if yyq1313[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scheme")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Scheme.CodecEncodeSelf(e) } } - if yyr1185 || yy2arr1185 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1185[4] { + if yyq1313[4] { if x.HTTPHeaders == nil { r.EncodeNil() } else { - yym1199 := z.EncBinary() - _ = yym1199 + yym1327 := z.EncBinary() + _ = yym1327 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) @@ -16747,15 +18347,15 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1185[4] { + if yyq1313[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpHeaders")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HTTPHeaders == nil { r.EncodeNil() } else { - yym1200 := z.EncBinary() - _ = yym1200 + yym1328 := z.EncBinary() + _ = yym1328 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) @@ -16763,7 +18363,7 @@ func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1185 || yy2arr1185 { + if yyr1313 || yy2arr1313 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16776,25 +18376,25 @@ func (x *HTTPGetAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1201 := z.DecBinary() - _ = yym1201 + yym1329 := z.DecBinary() + _ = yym1329 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1202 := r.ContainerType() - if yyct1202 == codecSelferValueTypeMap1234 { - yyl1202 := r.ReadMapStart() - if yyl1202 == 0 { + yyct1330 := r.ContainerType() + if yyct1330 == codecSelferValueTypeMap1234 { + yyl1330 := r.ReadMapStart() + if yyl1330 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1202, d) + x.codecDecodeSelfFromMap(yyl1330, d) } - } else if yyct1202 == codecSelferValueTypeArray1234 { - yyl1202 := r.ReadArrayStart() - if yyl1202 == 0 { + } else if yyct1330 == codecSelferValueTypeArray1234 { + yyl1330 := r.ReadArrayStart() + if yyl1330 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1202, d) + x.codecDecodeSelfFromArray(yyl1330, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16806,12 +18406,12 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1203Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1203Slc - var yyhl1203 bool = l >= 0 - for yyj1203 := 0; ; yyj1203++ { - if yyhl1203 { - if yyj1203 >= l { + var yys1331Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1331Slc + var yyhl1331 bool = l >= 0 + for yyj1331 := 0; ; yyj1331++ { + if yyhl1331 { + if yyj1331 >= l { break } } else { @@ -16820,10 +18420,10 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1203Slc = r.DecodeBytes(yys1203Slc, true, true) - yys1203 := string(yys1203Slc) + yys1331Slc = r.DecodeBytes(yys1331Slc, true, true) + yys1331 := string(yys1331Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1203 { + switch yys1331 { case "path": if r.TryDecodeAsNil() { x.Path = "" @@ -16834,15 +18434,15 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1205 := &x.Port - yym1206 := z.DecBinary() - _ = yym1206 + yyv1333 := &x.Port + yym1334 := z.DecBinary() + _ = yym1334 if false { - } else if z.HasExtensions() && z.DecExt(yyv1205) { - } else if !yym1206 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1205) + } else if z.HasExtensions() && z.DecExt(yyv1333) { + } else if !yym1334 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1333) } else { - z.DecFallback(yyv1205, false) + z.DecFallback(yyv1333, false) } } case "host": @@ -16861,18 +18461,18 @@ func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { - yyv1209 := &x.HTTPHeaders - yym1210 := z.DecBinary() - _ = yym1210 + yyv1337 := &x.HTTPHeaders + yym1338 := z.DecBinary() + _ = yym1338 if false { } else { - h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1209), d) + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1337), d) } } default: - z.DecStructFieldNotFound(-1, yys1203) - } // end switch yys1203 - } // end for yyj1203 + z.DecStructFieldNotFound(-1, yys1331) + } // end switch yys1331 + } // end for yyj1331 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16880,16 +18480,16 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1211 int - var yyb1211 bool - var yyhl1211 bool = l >= 0 - yyj1211++ - if yyhl1211 { - yyb1211 = yyj1211 > l + var yyj1339 int + var yyb1339 bool + var yyhl1339 bool = l >= 0 + yyj1339++ + if yyhl1339 { + yyb1339 = yyj1339 > l } else { - yyb1211 = r.CheckBreak() + yyb1339 = r.CheckBreak() } - if yyb1211 { + if yyb1339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16899,13 +18499,13 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Path = string(r.DecodeString()) } - yyj1211++ - if yyhl1211 { - yyb1211 = yyj1211 > l + yyj1339++ + if yyhl1339 { + yyb1339 = yyj1339 > l } else { - yyb1211 = r.CheckBreak() + yyb1339 = r.CheckBreak() } - if yyb1211 { + if yyb1339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16913,24 +18513,24 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1213 := &x.Port - yym1214 := z.DecBinary() - _ = yym1214 + yyv1341 := &x.Port + yym1342 := z.DecBinary() + _ = yym1342 if false { - } else if z.HasExtensions() && z.DecExt(yyv1213) { - } else if !yym1214 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1213) + } else if z.HasExtensions() && z.DecExt(yyv1341) { + } else if !yym1342 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1341) } else { - z.DecFallback(yyv1213, false) + z.DecFallback(yyv1341, false) } } - yyj1211++ - if yyhl1211 { - yyb1211 = yyj1211 > l + yyj1339++ + if yyhl1339 { + yyb1339 = yyj1339 > l } else { - yyb1211 = r.CheckBreak() + yyb1339 = r.CheckBreak() } - if yyb1211 { + if yyb1339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16940,13 +18540,13 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Host = string(r.DecodeString()) } - yyj1211++ - if yyhl1211 { - yyb1211 = yyj1211 > l + yyj1339++ + if yyhl1339 { + yyb1339 = yyj1339 > l } else { - yyb1211 = r.CheckBreak() + yyb1339 = r.CheckBreak() } - if yyb1211 { + if yyb1339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16956,13 +18556,13 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Scheme = URIScheme(r.DecodeString()) } - yyj1211++ - if yyhl1211 { - yyb1211 = yyj1211 > l + yyj1339++ + if yyhl1339 { + yyb1339 = yyj1339 > l } else { - yyb1211 = r.CheckBreak() + yyb1339 = r.CheckBreak() } - if yyb1211 { + if yyb1339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16970,26 +18570,26 @@ func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { - yyv1217 := &x.HTTPHeaders - yym1218 := z.DecBinary() - _ = yym1218 + yyv1345 := &x.HTTPHeaders + yym1346 := z.DecBinary() + _ = yym1346 if false { } else { - h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1217), d) + h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1345), d) } } for { - yyj1211++ - if yyhl1211 { - yyb1211 = yyj1211 > l + yyj1339++ + if yyhl1339 { + yyb1339 = yyj1339 > l } else { - yyb1211 = r.CheckBreak() + yyb1339 = r.CheckBreak() } - if yyb1211 { + if yyb1339 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1211-1, "") + z.DecStructFieldNotFound(yyj1339-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16998,8 +18598,8 @@ func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1219 := z.EncBinary() - _ = yym1219 + yym1347 := z.EncBinary() + _ = yym1347 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -17011,8 +18611,8 @@ func (x *URIScheme) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1220 := z.DecBinary() - _ = yym1220 + yym1348 := z.DecBinary() + _ = yym1348 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -17027,57 +18627,57 @@ func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1221 := z.EncBinary() - _ = yym1221 + yym1349 := z.EncBinary() + _ = yym1349 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1222 := !z.EncBinary() - yy2arr1222 := z.EncBasicHandle().StructToArray - var yyq1222 [1]bool - _, _, _ = yysep1222, yyq1222, yy2arr1222 - const yyr1222 bool = false - var yynn1222 int - if yyr1222 || yy2arr1222 { + yysep1350 := !z.EncBinary() + yy2arr1350 := z.EncBasicHandle().StructToArray + var yyq1350 [1]bool + _, _, _ = yysep1350, yyq1350, yy2arr1350 + const yyr1350 bool = false + var yynn1350 int + if yyr1350 || yy2arr1350 { r.EncodeArrayStart(1) } else { - yynn1222 = 1 - for _, b := range yyq1222 { + yynn1350 = 1 + for _, b := range yyq1350 { if b { - yynn1222++ + yynn1350++ } } - r.EncodeMapStart(yynn1222) - yynn1222 = 0 + r.EncodeMapStart(yynn1350) + yynn1350 = 0 } - if yyr1222 || yy2arr1222 { + if yyr1350 || yy2arr1350 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1224 := &x.Port - yym1225 := z.EncBinary() - _ = yym1225 + yy1352 := &x.Port + yym1353 := z.EncBinary() + _ = yym1353 if false { - } else if z.HasExtensions() && z.EncExt(yy1224) { - } else if !yym1225 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1224) + } else if z.HasExtensions() && z.EncExt(yy1352) { + } else if !yym1353 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1352) } else { - z.EncFallback(yy1224) + z.EncFallback(yy1352) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1226 := &x.Port - yym1227 := z.EncBinary() - _ = yym1227 + yy1354 := &x.Port + yym1355 := z.EncBinary() + _ = yym1355 if false { - } else if z.HasExtensions() && z.EncExt(yy1226) { - } else if !yym1227 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1226) + } else if z.HasExtensions() && z.EncExt(yy1354) { + } else if !yym1355 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1354) } else { - z.EncFallback(yy1226) + z.EncFallback(yy1354) } } - if yyr1222 || yy2arr1222 { + if yyr1350 || yy2arr1350 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17090,25 +18690,25 @@ func (x *TCPSocketAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1228 := z.DecBinary() - _ = yym1228 + yym1356 := z.DecBinary() + _ = yym1356 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1229 := r.ContainerType() - if yyct1229 == codecSelferValueTypeMap1234 { - yyl1229 := r.ReadMapStart() - if yyl1229 == 0 { + yyct1357 := r.ContainerType() + if yyct1357 == codecSelferValueTypeMap1234 { + yyl1357 := r.ReadMapStart() + if yyl1357 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1229, d) + x.codecDecodeSelfFromMap(yyl1357, d) } - } else if yyct1229 == codecSelferValueTypeArray1234 { - yyl1229 := r.ReadArrayStart() - if yyl1229 == 0 { + } else if yyct1357 == codecSelferValueTypeArray1234 { + yyl1357 := r.ReadArrayStart() + if yyl1357 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1229, d) + x.codecDecodeSelfFromArray(yyl1357, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17120,12 +18720,12 @@ func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1230Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1230Slc - var yyhl1230 bool = l >= 0 - for yyj1230 := 0; ; yyj1230++ { - if yyhl1230 { - if yyj1230 >= l { + var yys1358Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1358Slc + var yyhl1358 bool = l >= 0 + for yyj1358 := 0; ; yyj1358++ { + if yyhl1358 { + if yyj1358 >= l { break } } else { @@ -17134,29 +18734,29 @@ func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1230Slc = r.DecodeBytes(yys1230Slc, true, true) - yys1230 := string(yys1230Slc) + yys1358Slc = r.DecodeBytes(yys1358Slc, true, true) + yys1358 := string(yys1358Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1230 { + switch yys1358 { case "port": if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1231 := &x.Port - yym1232 := z.DecBinary() - _ = yym1232 + yyv1359 := &x.Port + yym1360 := z.DecBinary() + _ = yym1360 if false { - } else if z.HasExtensions() && z.DecExt(yyv1231) { - } else if !yym1232 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1231) + } else if z.HasExtensions() && z.DecExt(yyv1359) { + } else if !yym1360 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1359) } else { - z.DecFallback(yyv1231, false) + z.DecFallback(yyv1359, false) } } default: - z.DecStructFieldNotFound(-1, yys1230) - } // end switch yys1230 - } // end for yyj1230 + z.DecStructFieldNotFound(-1, yys1358) + } // end switch yys1358 + } // end for yyj1358 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17164,16 +18764,16 @@ func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1233 int - var yyb1233 bool - var yyhl1233 bool = l >= 0 - yyj1233++ - if yyhl1233 { - yyb1233 = yyj1233 > l + var yyj1361 int + var yyb1361 bool + var yyhl1361 bool = l >= 0 + yyj1361++ + if yyhl1361 { + yyb1361 = yyj1361 > l } else { - yyb1233 = r.CheckBreak() + yyb1361 = r.CheckBreak() } - if yyb1233 { + if yyb1361 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17181,29 +18781,29 @@ func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { - yyv1234 := &x.Port - yym1235 := z.DecBinary() - _ = yym1235 + yyv1362 := &x.Port + yym1363 := z.DecBinary() + _ = yym1363 if false { - } else if z.HasExtensions() && z.DecExt(yyv1234) { - } else if !yym1235 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1234) + } else if z.HasExtensions() && z.DecExt(yyv1362) { + } else if !yym1363 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1362) } else { - z.DecFallback(yyv1234, false) + z.DecFallback(yyv1362, false) } } for { - yyj1233++ - if yyhl1233 { - yyb1233 = yyj1233 > l + yyj1361++ + if yyhl1361 { + yyb1361 = yyj1361 > l } else { - yyb1233 = r.CheckBreak() + yyb1361 = r.CheckBreak() } - if yyb1233 { + if yyb1361 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1233-1, "") + z.DecStructFieldNotFound(yyj1361-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17215,38 +18815,38 @@ func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1236 := z.EncBinary() - _ = yym1236 + yym1364 := z.EncBinary() + _ = yym1364 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1237 := !z.EncBinary() - yy2arr1237 := z.EncBasicHandle().StructToArray - var yyq1237 [1]bool - _, _, _ = yysep1237, yyq1237, yy2arr1237 - const yyr1237 bool = false - yyq1237[0] = len(x.Command) != 0 - var yynn1237 int - if yyr1237 || yy2arr1237 { + yysep1365 := !z.EncBinary() + yy2arr1365 := z.EncBasicHandle().StructToArray + var yyq1365 [1]bool + _, _, _ = yysep1365, yyq1365, yy2arr1365 + const yyr1365 bool = false + yyq1365[0] = len(x.Command) != 0 + var yynn1365 int + if yyr1365 || yy2arr1365 { r.EncodeArrayStart(1) } else { - yynn1237 = 0 - for _, b := range yyq1237 { + yynn1365 = 0 + for _, b := range yyq1365 { if b { - yynn1237++ + yynn1365++ } } - r.EncodeMapStart(yynn1237) - yynn1237 = 0 + r.EncodeMapStart(yynn1365) + yynn1365 = 0 } - if yyr1237 || yy2arr1237 { + if yyr1365 || yy2arr1365 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1237[0] { + if yyq1365[0] { if x.Command == nil { r.EncodeNil() } else { - yym1239 := z.EncBinary() - _ = yym1239 + yym1367 := z.EncBinary() + _ = yym1367 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -17256,15 +18856,15 @@ func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1237[0] { + if yyq1365[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { - yym1240 := z.EncBinary() - _ = yym1240 + yym1368 := z.EncBinary() + _ = yym1368 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -17272,7 +18872,7 @@ func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1237 || yy2arr1237 { + if yyr1365 || yy2arr1365 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17285,25 +18885,25 @@ func (x *ExecAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1241 := z.DecBinary() - _ = yym1241 + yym1369 := z.DecBinary() + _ = yym1369 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1242 := r.ContainerType() - if yyct1242 == codecSelferValueTypeMap1234 { - yyl1242 := r.ReadMapStart() - if yyl1242 == 0 { + yyct1370 := r.ContainerType() + if yyct1370 == codecSelferValueTypeMap1234 { + yyl1370 := r.ReadMapStart() + if yyl1370 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1242, d) + x.codecDecodeSelfFromMap(yyl1370, d) } - } else if yyct1242 == codecSelferValueTypeArray1234 { - yyl1242 := r.ReadArrayStart() - if yyl1242 == 0 { + } else if yyct1370 == codecSelferValueTypeArray1234 { + yyl1370 := r.ReadArrayStart() + if yyl1370 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1242, d) + x.codecDecodeSelfFromArray(yyl1370, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17315,12 +18915,12 @@ func (x *ExecAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1243Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1243Slc - var yyhl1243 bool = l >= 0 - for yyj1243 := 0; ; yyj1243++ { - if yyhl1243 { - if yyj1243 >= l { + var yys1371Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1371Slc + var yyhl1371 bool = l >= 0 + for yyj1371 := 0; ; yyj1371++ { + if yyhl1371 { + if yyj1371 >= l { break } } else { @@ -17329,26 +18929,26 @@ func (x *ExecAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1243Slc = r.DecodeBytes(yys1243Slc, true, true) - yys1243 := string(yys1243Slc) + yys1371Slc = r.DecodeBytes(yys1371Slc, true, true) + yys1371 := string(yys1371Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1243 { + switch yys1371 { case "command": if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1244 := &x.Command - yym1245 := z.DecBinary() - _ = yym1245 + yyv1372 := &x.Command + yym1373 := z.DecBinary() + _ = yym1373 if false { } else { - z.F.DecSliceStringX(yyv1244, false, d) + z.F.DecSliceStringX(yyv1372, false, d) } } default: - z.DecStructFieldNotFound(-1, yys1243) - } // end switch yys1243 - } // end for yyj1243 + z.DecStructFieldNotFound(-1, yys1371) + } // end switch yys1371 + } // end for yyj1371 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17356,16 +18956,16 @@ func (x *ExecAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1246 int - var yyb1246 bool - var yyhl1246 bool = l >= 0 - yyj1246++ - if yyhl1246 { - yyb1246 = yyj1246 > l + var yyj1374 int + var yyb1374 bool + var yyhl1374 bool = l >= 0 + yyj1374++ + if yyhl1374 { + yyb1374 = yyj1374 > l } else { - yyb1246 = r.CheckBreak() + yyb1374 = r.CheckBreak() } - if yyb1246 { + if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17373,26 +18973,26 @@ func (x *ExecAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1247 := &x.Command - yym1248 := z.DecBinary() - _ = yym1248 + yyv1375 := &x.Command + yym1376 := z.DecBinary() + _ = yym1376 if false { } else { - z.F.DecSliceStringX(yyv1247, false, d) + z.F.DecSliceStringX(yyv1375, false, d) } } for { - yyj1246++ - if yyhl1246 { - yyb1246 = yyj1246 > l + yyj1374++ + if yyhl1374 { + yyb1374 = yyj1374 > l } else { - yyb1246 = r.CheckBreak() + yyb1374 = r.CheckBreak() } - if yyb1246 { + if yyb1374 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1246-1, "") + z.DecStructFieldNotFound(yyj1374-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17404,49 +19004,49 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1249 := z.EncBinary() - _ = yym1249 + yym1377 := z.EncBinary() + _ = yym1377 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1250 := !z.EncBinary() - yy2arr1250 := z.EncBasicHandle().StructToArray - var yyq1250 [8]bool - _, _, _ = yysep1250, yyq1250, yy2arr1250 - const yyr1250 bool = false - yyq1250[0] = x.Handler.Exec != nil && x.Exec != nil - yyq1250[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil - yyq1250[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil - yyq1250[3] = x.InitialDelaySeconds != 0 - yyq1250[4] = x.TimeoutSeconds != 0 - yyq1250[5] = x.PeriodSeconds != 0 - yyq1250[6] = x.SuccessThreshold != 0 - yyq1250[7] = x.FailureThreshold != 0 - var yynn1250 int - if yyr1250 || yy2arr1250 { + yysep1378 := !z.EncBinary() + yy2arr1378 := z.EncBasicHandle().StructToArray + var yyq1378 [8]bool + _, _, _ = yysep1378, yyq1378, yy2arr1378 + const yyr1378 bool = false + yyq1378[0] = x.Handler.Exec != nil && x.Exec != nil + yyq1378[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil + yyq1378[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil + yyq1378[3] = x.InitialDelaySeconds != 0 + yyq1378[4] = x.TimeoutSeconds != 0 + yyq1378[5] = x.PeriodSeconds != 0 + yyq1378[6] = x.SuccessThreshold != 0 + yyq1378[7] = x.FailureThreshold != 0 + var yynn1378 int + if yyr1378 || yy2arr1378 { r.EncodeArrayStart(8) } else { - yynn1250 = 0 - for _, b := range yyq1250 { + yynn1378 = 0 + for _, b := range yyq1378 { if b { - yynn1250++ + yynn1378++ } } - r.EncodeMapStart(yynn1250) - yynn1250 = 0 + r.EncodeMapStart(yynn1378) + yynn1378 = 0 } - var yyn1251 bool + var yyn1379 bool if x.Handler.Exec == nil { - yyn1251 = true - goto LABEL1251 + yyn1379 = true + goto LABEL1379 } - LABEL1251: - if yyr1250 || yy2arr1250 { - if yyn1251 { + LABEL1379: + if yyr1378 || yy2arr1378 { + if yyn1379 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1250[0] { + if yyq1378[0] { if x.Exec == nil { r.EncodeNil() } else { @@ -17457,11 +19057,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq1250[0] { + if yyq1378[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1251 { + if yyn1379 { r.EncodeNil() } else { if x.Exec == nil { @@ -17472,18 +19072,18 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn1252 bool + var yyn1380 bool if x.Handler.HTTPGet == nil { - yyn1252 = true - goto LABEL1252 + yyn1380 = true + goto LABEL1380 } - LABEL1252: - if yyr1250 || yy2arr1250 { - if yyn1252 { + LABEL1380: + if yyr1378 || yy2arr1378 { + if yyn1380 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1250[1] { + if yyq1378[1] { if x.HTTPGet == nil { r.EncodeNil() } else { @@ -17494,11 +19094,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq1250[1] { + if yyq1378[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1252 { + if yyn1380 { r.EncodeNil() } else { if x.HTTPGet == nil { @@ -17509,18 +19109,18 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn1253 bool + var yyn1381 bool if x.Handler.TCPSocket == nil { - yyn1253 = true - goto LABEL1253 + yyn1381 = true + goto LABEL1381 } - LABEL1253: - if yyr1250 || yy2arr1250 { - if yyn1253 { + LABEL1381: + if yyr1378 || yy2arr1378 { + if yyn1381 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1250[2] { + if yyq1378[2] { if x.TCPSocket == nil { r.EncodeNil() } else { @@ -17531,11 +19131,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq1250[2] { + if yyq1378[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn1253 { + if yyn1381 { r.EncodeNil() } else { if x.TCPSocket == nil { @@ -17546,11 +19146,11 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1250 || yy2arr1250 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1250[3] { - yym1255 := z.EncBinary() - _ = yym1255 + if yyq1378[3] { + yym1383 := z.EncBinary() + _ = yym1383 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) @@ -17559,23 +19159,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1250[3] { + if yyq1378[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1256 := z.EncBinary() - _ = yym1256 + yym1384 := z.EncBinary() + _ = yym1384 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } } - if yyr1250 || yy2arr1250 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1250[4] { - yym1258 := z.EncBinary() - _ = yym1258 + if yyq1378[4] { + yym1386 := z.EncBinary() + _ = yym1386 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) @@ -17584,23 +19184,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1250[4] { + if yyq1378[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1259 := z.EncBinary() - _ = yym1259 + yym1387 := z.EncBinary() + _ = yym1387 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } } - if yyr1250 || yy2arr1250 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1250[5] { - yym1261 := z.EncBinary() - _ = yym1261 + if yyq1378[5] { + yym1389 := z.EncBinary() + _ = yym1389 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) @@ -17609,23 +19209,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1250[5] { + if yyq1378[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1262 := z.EncBinary() - _ = yym1262 + yym1390 := z.EncBinary() + _ = yym1390 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } } - if yyr1250 || yy2arr1250 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1250[6] { - yym1264 := z.EncBinary() - _ = yym1264 + if yyq1378[6] { + yym1392 := z.EncBinary() + _ = yym1392 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) @@ -17634,23 +19234,23 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1250[6] { + if yyq1378[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1265 := z.EncBinary() - _ = yym1265 + yym1393 := z.EncBinary() + _ = yym1393 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } } - if yyr1250 || yy2arr1250 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1250[7] { - yym1267 := z.EncBinary() - _ = yym1267 + if yyq1378[7] { + yym1395 := z.EncBinary() + _ = yym1395 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) @@ -17659,19 +19259,19 @@ func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1250[7] { + if yyq1378[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1268 := z.EncBinary() - _ = yym1268 + yym1396 := z.EncBinary() + _ = yym1396 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } } - if yyr1250 || yy2arr1250 { + if yyr1378 || yy2arr1378 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17684,25 +19284,25 @@ func (x *Probe) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1269 := z.DecBinary() - _ = yym1269 + yym1397 := z.DecBinary() + _ = yym1397 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1270 := r.ContainerType() - if yyct1270 == codecSelferValueTypeMap1234 { - yyl1270 := r.ReadMapStart() - if yyl1270 == 0 { + yyct1398 := r.ContainerType() + if yyct1398 == codecSelferValueTypeMap1234 { + yyl1398 := r.ReadMapStart() + if yyl1398 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1270, d) + x.codecDecodeSelfFromMap(yyl1398, d) } - } else if yyct1270 == codecSelferValueTypeArray1234 { - yyl1270 := r.ReadArrayStart() - if yyl1270 == 0 { + } else if yyct1398 == codecSelferValueTypeArray1234 { + yyl1398 := r.ReadArrayStart() + if yyl1398 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1270, d) + x.codecDecodeSelfFromArray(yyl1398, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17714,12 +19314,12 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1271Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1271Slc - var yyhl1271 bool = l >= 0 - for yyj1271 := 0; ; yyj1271++ { - if yyhl1271 { - if yyj1271 >= l { + var yys1399Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1399Slc + var yyhl1399 bool = l >= 0 + for yyj1399 := 0; ; yyj1399++ { + if yyhl1399 { + if yyj1399 >= l { break } } else { @@ -17728,10 +19328,10 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1271Slc = r.DecodeBytes(yys1271Slc, true, true) - yys1271 := string(yys1271Slc) + yys1399Slc = r.DecodeBytes(yys1399Slc, true, true) + yys1399 := string(yys1399Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1271 { + switch yys1399 { case "exec": if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) @@ -17805,9 +19405,9 @@ func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.FailureThreshold = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys1271) - } // end switch yys1271 - } // end for yyj1271 + z.DecStructFieldNotFound(-1, yys1399) + } // end switch yys1399 + } // end for yyj1399 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17815,19 +19415,19 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1280 int - var yyb1280 bool - var yyhl1280 bool = l >= 0 + var yyj1408 int + var yyb1408 bool + var yyhl1408 bool = l >= 0 if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } - yyj1280++ - if yyhl1280 { - yyb1280 = yyj1280 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb1280 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb1280 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17845,13 +19445,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Handler.HTTPGet == nil { x.Handler.HTTPGet = new(HTTPGetAction) } - yyj1280++ - if yyhl1280 { - yyb1280 = yyj1280 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb1280 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb1280 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17869,13 +19469,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Handler.TCPSocket == nil { x.Handler.TCPSocket = new(TCPSocketAction) } - yyj1280++ - if yyhl1280 { - yyb1280 = yyj1280 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb1280 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb1280 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17890,13 +19490,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.TCPSocket.CodecDecodeSelf(d) } - yyj1280++ - if yyhl1280 { - yyb1280 = yyj1280 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb1280 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb1280 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17906,13 +19506,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.InitialDelaySeconds = int32(r.DecodeInt(32)) } - yyj1280++ - if yyhl1280 { - yyb1280 = yyj1280 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb1280 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb1280 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17922,13 +19522,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.TimeoutSeconds = int32(r.DecodeInt(32)) } - yyj1280++ - if yyhl1280 { - yyb1280 = yyj1280 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb1280 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb1280 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17938,13 +19538,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.PeriodSeconds = int32(r.DecodeInt(32)) } - yyj1280++ - if yyhl1280 { - yyb1280 = yyj1280 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb1280 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb1280 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17954,13 +19554,13 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SuccessThreshold = int32(r.DecodeInt(32)) } - yyj1280++ - if yyhl1280 { - yyb1280 = yyj1280 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb1280 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb1280 { + if yyb1408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17971,17 +19571,17 @@ func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.FailureThreshold = int32(r.DecodeInt(32)) } for { - yyj1280++ - if yyhl1280 { - yyb1280 = yyj1280 > l + yyj1408++ + if yyhl1408 { + yyb1408 = yyj1408 > l } else { - yyb1280 = r.CheckBreak() + yyb1408 = r.CheckBreak() } - if yyb1280 { + if yyb1408 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1280-1, "") + z.DecStructFieldNotFound(yyj1408-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17990,8 +19590,8 @@ func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1289 := z.EncBinary() - _ = yym1289 + yym1417 := z.EncBinary() + _ = yym1417 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18003,8 +19603,8 @@ func (x *PullPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1290 := z.DecBinary() - _ = yym1290 + yym1418 := z.DecBinary() + _ = yym1418 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18016,8 +19616,8 @@ func (x Capability) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1291 := z.EncBinary() - _ = yym1291 + yym1419 := z.EncBinary() + _ = yym1419 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18029,8 +19629,8 @@ func (x *Capability) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1292 := z.DecBinary() - _ = yym1292 + yym1420 := z.DecBinary() + _ = yym1420 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18045,39 +19645,39 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1293 := z.EncBinary() - _ = yym1293 + yym1421 := z.EncBinary() + _ = yym1421 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1294 := !z.EncBinary() - yy2arr1294 := z.EncBasicHandle().StructToArray - var yyq1294 [2]bool - _, _, _ = yysep1294, yyq1294, yy2arr1294 - const yyr1294 bool = false - yyq1294[0] = len(x.Add) != 0 - yyq1294[1] = len(x.Drop) != 0 - var yynn1294 int - if yyr1294 || yy2arr1294 { + yysep1422 := !z.EncBinary() + yy2arr1422 := z.EncBasicHandle().StructToArray + var yyq1422 [2]bool + _, _, _ = yysep1422, yyq1422, yy2arr1422 + const yyr1422 bool = false + yyq1422[0] = len(x.Add) != 0 + yyq1422[1] = len(x.Drop) != 0 + var yynn1422 int + if yyr1422 || yy2arr1422 { r.EncodeArrayStart(2) } else { - yynn1294 = 0 - for _, b := range yyq1294 { + yynn1422 = 0 + for _, b := range yyq1422 { if b { - yynn1294++ + yynn1422++ } } - r.EncodeMapStart(yynn1294) - yynn1294 = 0 + r.EncodeMapStart(yynn1422) + yynn1422 = 0 } - if yyr1294 || yy2arr1294 { + if yyr1422 || yy2arr1422 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1294[0] { + if yyq1422[0] { if x.Add == nil { r.EncodeNil() } else { - yym1296 := z.EncBinary() - _ = yym1296 + yym1424 := z.EncBinary() + _ = yym1424 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) @@ -18087,15 +19687,15 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1294[0] { + if yyq1422[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("add")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Add == nil { r.EncodeNil() } else { - yym1297 := z.EncBinary() - _ = yym1297 + yym1425 := z.EncBinary() + _ = yym1425 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) @@ -18103,14 +19703,14 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1294 || yy2arr1294 { + if yyr1422 || yy2arr1422 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1294[1] { + if yyq1422[1] { if x.Drop == nil { r.EncodeNil() } else { - yym1299 := z.EncBinary() - _ = yym1299 + yym1427 := z.EncBinary() + _ = yym1427 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) @@ -18120,15 +19720,15 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1294[1] { + if yyq1422[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("drop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Drop == nil { r.EncodeNil() } else { - yym1300 := z.EncBinary() - _ = yym1300 + yym1428 := z.EncBinary() + _ = yym1428 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) @@ -18136,7 +19736,7 @@ func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1294 || yy2arr1294 { + if yyr1422 || yy2arr1422 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18149,25 +19749,25 @@ func (x *Capabilities) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1301 := z.DecBinary() - _ = yym1301 + yym1429 := z.DecBinary() + _ = yym1429 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1302 := r.ContainerType() - if yyct1302 == codecSelferValueTypeMap1234 { - yyl1302 := r.ReadMapStart() - if yyl1302 == 0 { + yyct1430 := r.ContainerType() + if yyct1430 == codecSelferValueTypeMap1234 { + yyl1430 := r.ReadMapStart() + if yyl1430 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1302, d) + x.codecDecodeSelfFromMap(yyl1430, d) } - } else if yyct1302 == codecSelferValueTypeArray1234 { - yyl1302 := r.ReadArrayStart() - if yyl1302 == 0 { + } else if yyct1430 == codecSelferValueTypeArray1234 { + yyl1430 := r.ReadArrayStart() + if yyl1430 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1302, d) + x.codecDecodeSelfFromArray(yyl1430, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18179,12 +19779,12 @@ func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1303Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1303Slc - var yyhl1303 bool = l >= 0 - for yyj1303 := 0; ; yyj1303++ { - if yyhl1303 { - if yyj1303 >= l { + var yys1431Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1431Slc + var yyhl1431 bool = l >= 0 + for yyj1431 := 0; ; yyj1431++ { + if yyhl1431 { + if yyj1431 >= l { break } } else { @@ -18193,38 +19793,38 @@ func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1303Slc = r.DecodeBytes(yys1303Slc, true, true) - yys1303 := string(yys1303Slc) + yys1431Slc = r.DecodeBytes(yys1431Slc, true, true) + yys1431 := string(yys1431Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1303 { + switch yys1431 { case "add": if r.TryDecodeAsNil() { x.Add = nil } else { - yyv1304 := &x.Add - yym1305 := z.DecBinary() - _ = yym1305 + yyv1432 := &x.Add + yym1433 := z.DecBinary() + _ = yym1433 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1304), d) + h.decSliceCapability((*[]Capability)(yyv1432), d) } } case "drop": if r.TryDecodeAsNil() { x.Drop = nil } else { - yyv1306 := &x.Drop - yym1307 := z.DecBinary() - _ = yym1307 + yyv1434 := &x.Drop + yym1435 := z.DecBinary() + _ = yym1435 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1306), d) + h.decSliceCapability((*[]Capability)(yyv1434), d) } } default: - z.DecStructFieldNotFound(-1, yys1303) - } // end switch yys1303 - } // end for yyj1303 + z.DecStructFieldNotFound(-1, yys1431) + } // end switch yys1431 + } // end for yyj1431 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18232,16 +19832,16 @@ func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1308 int - var yyb1308 bool - var yyhl1308 bool = l >= 0 - yyj1308++ - if yyhl1308 { - yyb1308 = yyj1308 > l + var yyj1436 int + var yyb1436 bool + var yyhl1436 bool = l >= 0 + yyj1436++ + if yyhl1436 { + yyb1436 = yyj1436 > l } else { - yyb1308 = r.CheckBreak() + yyb1436 = r.CheckBreak() } - if yyb1308 { + if yyb1436 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18249,21 +19849,21 @@ func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Add = nil } else { - yyv1309 := &x.Add - yym1310 := z.DecBinary() - _ = yym1310 + yyv1437 := &x.Add + yym1438 := z.DecBinary() + _ = yym1438 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1309), d) + h.decSliceCapability((*[]Capability)(yyv1437), d) } } - yyj1308++ - if yyhl1308 { - yyb1308 = yyj1308 > l + yyj1436++ + if yyhl1436 { + yyb1436 = yyj1436 > l } else { - yyb1308 = r.CheckBreak() + yyb1436 = r.CheckBreak() } - if yyb1308 { + if yyb1436 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18271,26 +19871,26 @@ func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Drop = nil } else { - yyv1311 := &x.Drop - yym1312 := z.DecBinary() - _ = yym1312 + yyv1439 := &x.Drop + yym1440 := z.DecBinary() + _ = yym1440 if false { } else { - h.decSliceCapability((*[]Capability)(yyv1311), d) + h.decSliceCapability((*[]Capability)(yyv1439), d) } } for { - yyj1308++ - if yyhl1308 { - yyb1308 = yyj1308 > l + yyj1436++ + if yyhl1436 { + yyb1436 = yyj1436 > l } else { - yyb1308 = r.CheckBreak() + yyb1436 = r.CheckBreak() } - if yyb1308 { + if yyb1436 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1308-1, "") + z.DecStructFieldNotFound(yyj1436-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18302,34 +19902,34 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1313 := z.EncBinary() - _ = yym1313 + yym1441 := z.EncBinary() + _ = yym1441 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1314 := !z.EncBinary() - yy2arr1314 := z.EncBasicHandle().StructToArray - var yyq1314 [2]bool - _, _, _ = yysep1314, yyq1314, yy2arr1314 - const yyr1314 bool = false - yyq1314[0] = len(x.Limits) != 0 - yyq1314[1] = len(x.Requests) != 0 - var yynn1314 int - if yyr1314 || yy2arr1314 { + yysep1442 := !z.EncBinary() + yy2arr1442 := z.EncBasicHandle().StructToArray + var yyq1442 [2]bool + _, _, _ = yysep1442, yyq1442, yy2arr1442 + const yyr1442 bool = false + yyq1442[0] = len(x.Limits) != 0 + yyq1442[1] = len(x.Requests) != 0 + var yynn1442 int + if yyr1442 || yy2arr1442 { r.EncodeArrayStart(2) } else { - yynn1314 = 0 - for _, b := range yyq1314 { + yynn1442 = 0 + for _, b := range yyq1442 { if b { - yynn1314++ + yynn1442++ } } - r.EncodeMapStart(yynn1314) - yynn1314 = 0 + r.EncodeMapStart(yynn1442) + yynn1442 = 0 } - if yyr1314 || yy2arr1314 { + if yyr1442 || yy2arr1442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1314[0] { + if yyq1442[0] { if x.Limits == nil { r.EncodeNil() } else { @@ -18339,7 +19939,7 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1314[0] { + if yyq1442[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("limits")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -18350,9 +19950,9 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1314 || yy2arr1314 { + if yyr1442 || yy2arr1442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1314[1] { + if yyq1442[1] { if x.Requests == nil { r.EncodeNil() } else { @@ -18362,7 +19962,7 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1314[1] { + if yyq1442[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requests")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -18373,7 +19973,7 @@ func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1314 || yy2arr1314 { + if yyr1442 || yy2arr1442 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18386,25 +19986,25 @@ func (x *ResourceRequirements) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1317 := z.DecBinary() - _ = yym1317 + yym1445 := z.DecBinary() + _ = yym1445 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1318 := r.ContainerType() - if yyct1318 == codecSelferValueTypeMap1234 { - yyl1318 := r.ReadMapStart() - if yyl1318 == 0 { + yyct1446 := r.ContainerType() + if yyct1446 == codecSelferValueTypeMap1234 { + yyl1446 := r.ReadMapStart() + if yyl1446 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1318, d) + x.codecDecodeSelfFromMap(yyl1446, d) } - } else if yyct1318 == codecSelferValueTypeArray1234 { - yyl1318 := r.ReadArrayStart() - if yyl1318 == 0 { + } else if yyct1446 == codecSelferValueTypeArray1234 { + yyl1446 := r.ReadArrayStart() + if yyl1446 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1318, d) + x.codecDecodeSelfFromArray(yyl1446, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18416,12 +20016,12 @@ func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1319Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1319Slc - var yyhl1319 bool = l >= 0 - for yyj1319 := 0; ; yyj1319++ { - if yyhl1319 { - if yyj1319 >= l { + var yys1447Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1447Slc + var yyhl1447 bool = l >= 0 + for yyj1447 := 0; ; yyj1447++ { + if yyhl1447 { + if yyj1447 >= l { break } } else { @@ -18430,28 +20030,28 @@ func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1319Slc = r.DecodeBytes(yys1319Slc, true, true) - yys1319 := string(yys1319Slc) + yys1447Slc = r.DecodeBytes(yys1447Slc, true, true) + yys1447 := string(yys1447Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1319 { + switch yys1447 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv1320 := &x.Limits - yyv1320.CodecDecodeSelf(d) + yyv1448 := &x.Limits + yyv1448.CodecDecodeSelf(d) } case "requests": if r.TryDecodeAsNil() { x.Requests = nil } else { - yyv1321 := &x.Requests - yyv1321.CodecDecodeSelf(d) + yyv1449 := &x.Requests + yyv1449.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1319) - } // end switch yys1319 - } // end for yyj1319 + z.DecStructFieldNotFound(-1, yys1447) + } // end switch yys1447 + } // end for yyj1447 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18459,16 +20059,16 @@ func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1322 int - var yyb1322 bool - var yyhl1322 bool = l >= 0 - yyj1322++ - if yyhl1322 { - yyb1322 = yyj1322 > l + var yyj1450 int + var yyb1450 bool + var yyhl1450 bool = l >= 0 + yyj1450++ + if yyhl1450 { + yyb1450 = yyj1450 > l } else { - yyb1322 = r.CheckBreak() + yyb1450 = r.CheckBreak() } - if yyb1322 { + if yyb1450 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18476,16 +20076,16 @@ func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Limits = nil } else { - yyv1323 := &x.Limits - yyv1323.CodecDecodeSelf(d) + yyv1451 := &x.Limits + yyv1451.CodecDecodeSelf(d) } - yyj1322++ - if yyhl1322 { - yyb1322 = yyj1322 > l + yyj1450++ + if yyhl1450 { + yyb1450 = yyj1450 > l } else { - yyb1322 = r.CheckBreak() + yyb1450 = r.CheckBreak() } - if yyb1322 { + if yyb1450 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18493,21 +20093,21 @@ func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Requests = nil } else { - yyv1324 := &x.Requests - yyv1324.CodecDecodeSelf(d) + yyv1452 := &x.Requests + yyv1452.CodecDecodeSelf(d) } for { - yyj1322++ - if yyhl1322 { - yyb1322 = yyj1322 > l + yyj1450++ + if yyhl1450 { + yyb1450 = yyj1450 > l } else { - yyb1322 = r.CheckBreak() + yyb1450 = r.CheckBreak() } - if yyb1322 { + if yyb1450 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1322-1, "") + z.DecStructFieldNotFound(yyj1450-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18519,50 +20119,50 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1325 := z.EncBinary() - _ = yym1325 + yym1453 := z.EncBinary() + _ = yym1453 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1326 := !z.EncBinary() - yy2arr1326 := z.EncBasicHandle().StructToArray - var yyq1326 [18]bool - _, _, _ = yysep1326, yyq1326, yy2arr1326 - const yyr1326 bool = false - yyq1326[1] = x.Image != "" - yyq1326[2] = len(x.Command) != 0 - yyq1326[3] = len(x.Args) != 0 - yyq1326[4] = x.WorkingDir != "" - yyq1326[5] = len(x.Ports) != 0 - yyq1326[6] = len(x.Env) != 0 - yyq1326[7] = true - yyq1326[8] = len(x.VolumeMounts) != 0 - yyq1326[9] = x.LivenessProbe != nil - yyq1326[10] = x.ReadinessProbe != nil - yyq1326[11] = x.Lifecycle != nil - yyq1326[12] = x.TerminationMessagePath != "" - yyq1326[13] = x.ImagePullPolicy != "" - yyq1326[14] = x.SecurityContext != nil - yyq1326[15] = x.Stdin != false - yyq1326[16] = x.StdinOnce != false - yyq1326[17] = x.TTY != false - var yynn1326 int - if yyr1326 || yy2arr1326 { + yysep1454 := !z.EncBinary() + yy2arr1454 := z.EncBasicHandle().StructToArray + var yyq1454 [18]bool + _, _, _ = yysep1454, yyq1454, yy2arr1454 + const yyr1454 bool = false + yyq1454[1] = x.Image != "" + yyq1454[2] = len(x.Command) != 0 + yyq1454[3] = len(x.Args) != 0 + yyq1454[4] = x.WorkingDir != "" + yyq1454[5] = len(x.Ports) != 0 + yyq1454[6] = len(x.Env) != 0 + yyq1454[7] = true + yyq1454[8] = len(x.VolumeMounts) != 0 + yyq1454[9] = x.LivenessProbe != nil + yyq1454[10] = x.ReadinessProbe != nil + yyq1454[11] = x.Lifecycle != nil + yyq1454[12] = x.TerminationMessagePath != "" + yyq1454[13] = x.ImagePullPolicy != "" + yyq1454[14] = x.SecurityContext != nil + yyq1454[15] = x.Stdin != false + yyq1454[16] = x.StdinOnce != false + yyq1454[17] = x.TTY != false + var yynn1454 int + if yyr1454 || yy2arr1454 { r.EncodeArrayStart(18) } else { - yynn1326 = 1 - for _, b := range yyq1326 { + yynn1454 = 1 + for _, b := range yyq1454 { if b { - yynn1326++ + yynn1454++ } } - r.EncodeMapStart(yynn1326) - yynn1326 = 0 + r.EncodeMapStart(yynn1454) + yynn1454 = 0 } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1328 := z.EncBinary() - _ = yym1328 + yym1456 := z.EncBinary() + _ = yym1456 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -18571,18 +20171,18 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1329 := z.EncBinary() - _ = yym1329 + yym1457 := z.EncBinary() + _ = yym1457 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[1] { - yym1331 := z.EncBinary() - _ = yym1331 + if yyq1454[1] { + yym1459 := z.EncBinary() + _ = yym1459 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) @@ -18591,26 +20191,26 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1326[1] { + if yyq1454[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1332 := z.EncBinary() - _ = yym1332 + yym1460 := z.EncBinary() + _ = yym1460 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[2] { + if yyq1454[2] { if x.Command == nil { r.EncodeNil() } else { - yym1334 := z.EncBinary() - _ = yym1334 + yym1462 := z.EncBinary() + _ = yym1462 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -18620,15 +20220,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1326[2] { + if yyq1454[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { - yym1335 := z.EncBinary() - _ = yym1335 + yym1463 := z.EncBinary() + _ = yym1463 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -18636,14 +20236,14 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[3] { + if yyq1454[3] { if x.Args == nil { r.EncodeNil() } else { - yym1337 := z.EncBinary() - _ = yym1337 + yym1465 := z.EncBinary() + _ = yym1465 if false { } else { z.F.EncSliceStringV(x.Args, false, e) @@ -18653,15 +20253,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1326[3] { + if yyq1454[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("args")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Args == nil { r.EncodeNil() } else { - yym1338 := z.EncBinary() - _ = yym1338 + yym1466 := z.EncBinary() + _ = yym1466 if false { } else { z.F.EncSliceStringV(x.Args, false, e) @@ -18669,11 +20269,11 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[4] { - yym1340 := z.EncBinary() - _ = yym1340 + if yyq1454[4] { + yym1468 := z.EncBinary() + _ = yym1468 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) @@ -18682,26 +20282,26 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1326[4] { + if yyq1454[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("workingDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1341 := z.EncBinary() - _ = yym1341 + yym1469 := z.EncBinary() + _ = yym1469 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[5] { + if yyq1454[5] { if x.Ports == nil { r.EncodeNil() } else { - yym1343 := z.EncBinary() - _ = yym1343 + yym1471 := z.EncBinary() + _ = yym1471 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) @@ -18711,15 +20311,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1326[5] { + if yyq1454[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { - yym1344 := z.EncBinary() - _ = yym1344 + yym1472 := z.EncBinary() + _ = yym1472 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) @@ -18727,14 +20327,14 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[6] { + if yyq1454[6] { if x.Env == nil { r.EncodeNil() } else { - yym1346 := z.EncBinary() - _ = yym1346 + yym1474 := z.EncBinary() + _ = yym1474 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) @@ -18744,15 +20344,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1326[6] { + if yyq1454[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("env")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Env == nil { r.EncodeNil() } else { - yym1347 := z.EncBinary() - _ = yym1347 + yym1475 := z.EncBinary() + _ = yym1475 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) @@ -18760,31 +20360,31 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[7] { - yy1349 := &x.Resources - yy1349.CodecEncodeSelf(e) + if yyq1454[7] { + yy1477 := &x.Resources + yy1477.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1326[7] { + if yyq1454[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1350 := &x.Resources - yy1350.CodecEncodeSelf(e) + yy1478 := &x.Resources + yy1478.CodecEncodeSelf(e) } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[8] { + if yyq1454[8] { if x.VolumeMounts == nil { r.EncodeNil() } else { - yym1352 := z.EncBinary() - _ = yym1352 + yym1480 := z.EncBinary() + _ = yym1480 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) @@ -18794,15 +20394,15 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1326[8] { + if yyq1454[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeMounts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumeMounts == nil { r.EncodeNil() } else { - yym1353 := z.EncBinary() - _ = yym1353 + yym1481 := z.EncBinary() + _ = yym1481 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) @@ -18810,9 +20410,9 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[9] { + if yyq1454[9] { if x.LivenessProbe == nil { r.EncodeNil() } else { @@ -18822,7 +20422,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1326[9] { + if yyq1454[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("livenessProbe")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -18833,9 +20433,9 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[10] { + if yyq1454[10] { if x.ReadinessProbe == nil { r.EncodeNil() } else { @@ -18845,7 +20445,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1326[10] { + if yyq1454[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readinessProbe")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -18856,9 +20456,9 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[11] { + if yyq1454[11] { if x.Lifecycle == nil { r.EncodeNil() } else { @@ -18868,7 +20468,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1326[11] { + if yyq1454[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lifecycle")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -18879,11 +20479,11 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[12] { - yym1358 := z.EncBinary() - _ = yym1358 + if yyq1454[12] { + yym1486 := z.EncBinary() + _ = yym1486 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) @@ -18892,36 +20492,36 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1326[12] { + if yyq1454[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1359 := z.EncBinary() - _ = yym1359 + yym1487 := z.EncBinary() + _ = yym1487 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[13] { + if yyq1454[13] { x.ImagePullPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1326[13] { + if yyq1454[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.ImagePullPolicy.CodecEncodeSelf(e) } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[14] { + if yyq1454[14] { if x.SecurityContext == nil { r.EncodeNil() } else { @@ -18931,7 +20531,7 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1326[14] { + if yyq1454[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("securityContext")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -18942,11 +20542,11 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[15] { - yym1363 := z.EncBinary() - _ = yym1363 + if yyq1454[15] { + yym1491 := z.EncBinary() + _ = yym1491 if false { } else { r.EncodeBool(bool(x.Stdin)) @@ -18955,23 +20555,23 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1326[15] { + if yyq1454[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1364 := z.EncBinary() - _ = yym1364 + yym1492 := z.EncBinary() + _ = yym1492 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[16] { - yym1366 := z.EncBinary() - _ = yym1366 + if yyq1454[16] { + yym1494 := z.EncBinary() + _ = yym1494 if false { } else { r.EncodeBool(bool(x.StdinOnce)) @@ -18980,23 +20580,23 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1326[16] { + if yyq1454[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1367 := z.EncBinary() - _ = yym1367 + yym1495 := z.EncBinary() + _ = yym1495 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1326[17] { - yym1369 := z.EncBinary() - _ = yym1369 + if yyq1454[17] { + yym1497 := z.EncBinary() + _ = yym1497 if false { } else { r.EncodeBool(bool(x.TTY)) @@ -19005,19 +20605,19 @@ func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1326[17] { + if yyq1454[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1370 := z.EncBinary() - _ = yym1370 + yym1498 := z.EncBinary() + _ = yym1498 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr1326 || yy2arr1326 { + if yyr1454 || yy2arr1454 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19030,25 +20630,25 @@ func (x *Container) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1371 := z.DecBinary() - _ = yym1371 + yym1499 := z.DecBinary() + _ = yym1499 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1372 := r.ContainerType() - if yyct1372 == codecSelferValueTypeMap1234 { - yyl1372 := r.ReadMapStart() - if yyl1372 == 0 { + yyct1500 := r.ContainerType() + if yyct1500 == codecSelferValueTypeMap1234 { + yyl1500 := r.ReadMapStart() + if yyl1500 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1372, d) + x.codecDecodeSelfFromMap(yyl1500, d) } - } else if yyct1372 == codecSelferValueTypeArray1234 { - yyl1372 := r.ReadArrayStart() - if yyl1372 == 0 { + } else if yyct1500 == codecSelferValueTypeArray1234 { + yyl1500 := r.ReadArrayStart() + if yyl1500 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1372, d) + x.codecDecodeSelfFromArray(yyl1500, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19060,12 +20660,12 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1373Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1373Slc - var yyhl1373 bool = l >= 0 - for yyj1373 := 0; ; yyj1373++ { - if yyhl1373 { - if yyj1373 >= l { + var yys1501Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1501Slc + var yyhl1501 bool = l >= 0 + for yyj1501 := 0; ; yyj1501++ { + if yyhl1501 { + if yyj1501 >= l { break } } else { @@ -19074,10 +20674,10 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1373Slc = r.DecodeBytes(yys1373Slc, true, true) - yys1373 := string(yys1373Slc) + yys1501Slc = r.DecodeBytes(yys1501Slc, true, true) + yys1501 := string(yys1501Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1373 { + switch yys1501 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -19094,24 +20694,24 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1376 := &x.Command - yym1377 := z.DecBinary() - _ = yym1377 + yyv1504 := &x.Command + yym1505 := z.DecBinary() + _ = yym1505 if false { } else { - z.F.DecSliceStringX(yyv1376, false, d) + z.F.DecSliceStringX(yyv1504, false, d) } } case "args": if r.TryDecodeAsNil() { x.Args = nil } else { - yyv1378 := &x.Args - yym1379 := z.DecBinary() - _ = yym1379 + yyv1506 := &x.Args + yym1507 := z.DecBinary() + _ = yym1507 if false { } else { - z.F.DecSliceStringX(yyv1378, false, d) + z.F.DecSliceStringX(yyv1506, false, d) } } case "workingDir": @@ -19124,43 +20724,43 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1381 := &x.Ports - yym1382 := z.DecBinary() - _ = yym1382 + yyv1509 := &x.Ports + yym1510 := z.DecBinary() + _ = yym1510 if false { } else { - h.decSliceContainerPort((*[]ContainerPort)(yyv1381), d) + h.decSliceContainerPort((*[]ContainerPort)(yyv1509), d) } } case "env": if r.TryDecodeAsNil() { x.Env = nil } else { - yyv1383 := &x.Env - yym1384 := z.DecBinary() - _ = yym1384 + yyv1511 := &x.Env + yym1512 := z.DecBinary() + _ = yym1512 if false { } else { - h.decSliceEnvVar((*[]EnvVar)(yyv1383), d) + h.decSliceEnvVar((*[]EnvVar)(yyv1511), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv1385 := &x.Resources - yyv1385.CodecDecodeSelf(d) + yyv1513 := &x.Resources + yyv1513.CodecDecodeSelf(d) } case "volumeMounts": if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { - yyv1386 := &x.VolumeMounts - yym1387 := z.DecBinary() - _ = yym1387 + yyv1514 := &x.VolumeMounts + yym1515 := z.DecBinary() + _ = yym1515 if false { } else { - h.decSliceVolumeMount((*[]VolumeMount)(yyv1386), d) + h.decSliceVolumeMount((*[]VolumeMount)(yyv1514), d) } } case "livenessProbe": @@ -19238,9 +20838,9 @@ func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TTY = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys1373) - } // end switch yys1373 - } // end for yyj1373 + z.DecStructFieldNotFound(-1, yys1501) + } // end switch yys1501 + } // end for yyj1501 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19248,16 +20848,16 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1397 int - var yyb1397 bool - var yyhl1397 bool = l >= 0 - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + var yyj1525 int + var yyb1525 bool + var yyhl1525 bool = l >= 0 + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19267,13 +20867,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19283,13 +20883,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Image = string(r.DecodeString()) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19297,21 +20897,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv1400 := &x.Command - yym1401 := z.DecBinary() - _ = yym1401 + yyv1528 := &x.Command + yym1529 := z.DecBinary() + _ = yym1529 if false { } else { - z.F.DecSliceStringX(yyv1400, false, d) + z.F.DecSliceStringX(yyv1528, false, d) } } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19319,21 +20919,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Args = nil } else { - yyv1402 := &x.Args - yym1403 := z.DecBinary() - _ = yym1403 + yyv1530 := &x.Args + yym1531 := z.DecBinary() + _ = yym1531 if false { } else { - z.F.DecSliceStringX(yyv1402, false, d) + z.F.DecSliceStringX(yyv1530, false, d) } } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19343,13 +20943,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.WorkingDir = string(r.DecodeString()) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19357,21 +20957,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1405 := &x.Ports - yym1406 := z.DecBinary() - _ = yym1406 + yyv1533 := &x.Ports + yym1534 := z.DecBinary() + _ = yym1534 if false { } else { - h.decSliceContainerPort((*[]ContainerPort)(yyv1405), d) + h.decSliceContainerPort((*[]ContainerPort)(yyv1533), d) } } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19379,21 +20979,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Env = nil } else { - yyv1407 := &x.Env - yym1408 := z.DecBinary() - _ = yym1408 + yyv1535 := &x.Env + yym1536 := z.DecBinary() + _ = yym1536 if false { } else { - h.decSliceEnvVar((*[]EnvVar)(yyv1407), d) + h.decSliceEnvVar((*[]EnvVar)(yyv1535), d) } } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19401,16 +21001,16 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { - yyv1409 := &x.Resources - yyv1409.CodecDecodeSelf(d) + yyv1537 := &x.Resources + yyv1537.CodecDecodeSelf(d) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19418,21 +21018,21 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { - yyv1410 := &x.VolumeMounts - yym1411 := z.DecBinary() - _ = yym1411 + yyv1538 := &x.VolumeMounts + yym1539 := z.DecBinary() + _ = yym1539 if false { } else { - h.decSliceVolumeMount((*[]VolumeMount)(yyv1410), d) + h.decSliceVolumeMount((*[]VolumeMount)(yyv1538), d) } } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19447,13 +21047,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.LivenessProbe.CodecDecodeSelf(d) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19468,13 +21068,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.ReadinessProbe.CodecDecodeSelf(d) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19489,13 +21089,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Lifecycle.CodecDecodeSelf(d) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19505,13 +21105,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.TerminationMessagePath = string(r.DecodeString()) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19521,13 +21121,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ImagePullPolicy = PullPolicy(r.DecodeString()) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19542,13 +21142,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.SecurityContext.CodecDecodeSelf(d) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19558,13 +21158,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stdin = bool(r.DecodeBool()) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19574,13 +21174,13 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.StdinOnce = bool(r.DecodeBool()) } - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19591,17 +21191,17 @@ func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.TTY = bool(r.DecodeBool()) } for { - yyj1397++ - if yyhl1397 { - yyb1397 = yyj1397 > l + yyj1525++ + if yyhl1525 { + yyb1525 = yyj1525 > l } else { - yyb1397 = r.CheckBreak() + yyb1525 = r.CheckBreak() } - if yyb1397 { + if yyb1525 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1397-1, "") + z.DecStructFieldNotFound(yyj1525-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19613,35 +21213,35 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1421 := z.EncBinary() - _ = yym1421 + yym1549 := z.EncBinary() + _ = yym1549 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1422 := !z.EncBinary() - yy2arr1422 := z.EncBasicHandle().StructToArray - var yyq1422 [3]bool - _, _, _ = yysep1422, yyq1422, yy2arr1422 - const yyr1422 bool = false - yyq1422[0] = x.Exec != nil - yyq1422[1] = x.HTTPGet != nil - yyq1422[2] = x.TCPSocket != nil - var yynn1422 int - if yyr1422 || yy2arr1422 { + yysep1550 := !z.EncBinary() + yy2arr1550 := z.EncBasicHandle().StructToArray + var yyq1550 [3]bool + _, _, _ = yysep1550, yyq1550, yy2arr1550 + const yyr1550 bool = false + yyq1550[0] = x.Exec != nil + yyq1550[1] = x.HTTPGet != nil + yyq1550[2] = x.TCPSocket != nil + var yynn1550 int + if yyr1550 || yy2arr1550 { r.EncodeArrayStart(3) } else { - yynn1422 = 0 - for _, b := range yyq1422 { + yynn1550 = 0 + for _, b := range yyq1550 { if b { - yynn1422++ + yynn1550++ } } - r.EncodeMapStart(yynn1422) - yynn1422 = 0 + r.EncodeMapStart(yynn1550) + yynn1550 = 0 } - if yyr1422 || yy2arr1422 { + if yyr1550 || yy2arr1550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1422[0] { + if yyq1550[0] { if x.Exec == nil { r.EncodeNil() } else { @@ -19651,7 +21251,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1422[0] { + if yyq1550[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -19662,9 +21262,9 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1422 || yy2arr1422 { + if yyr1550 || yy2arr1550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1422[1] { + if yyq1550[1] { if x.HTTPGet == nil { r.EncodeNil() } else { @@ -19674,7 +21274,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1422[1] { + if yyq1550[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -19685,9 +21285,9 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1422 || yy2arr1422 { + if yyr1550 || yy2arr1550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1422[2] { + if yyq1550[2] { if x.TCPSocket == nil { r.EncodeNil() } else { @@ -19697,7 +21297,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1422[2] { + if yyq1550[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -19708,7 +21308,7 @@ func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1422 || yy2arr1422 { + if yyr1550 || yy2arr1550 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19721,25 +21321,25 @@ func (x *Handler) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1426 := z.DecBinary() - _ = yym1426 + yym1554 := z.DecBinary() + _ = yym1554 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1427 := r.ContainerType() - if yyct1427 == codecSelferValueTypeMap1234 { - yyl1427 := r.ReadMapStart() - if yyl1427 == 0 { + yyct1555 := r.ContainerType() + if yyct1555 == codecSelferValueTypeMap1234 { + yyl1555 := r.ReadMapStart() + if yyl1555 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1427, d) + x.codecDecodeSelfFromMap(yyl1555, d) } - } else if yyct1427 == codecSelferValueTypeArray1234 { - yyl1427 := r.ReadArrayStart() - if yyl1427 == 0 { + } else if yyct1555 == codecSelferValueTypeArray1234 { + yyl1555 := r.ReadArrayStart() + if yyl1555 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1427, d) + x.codecDecodeSelfFromArray(yyl1555, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19751,12 +21351,12 @@ func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1428Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1428Slc - var yyhl1428 bool = l >= 0 - for yyj1428 := 0; ; yyj1428++ { - if yyhl1428 { - if yyj1428 >= l { + var yys1556Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1556Slc + var yyhl1556 bool = l >= 0 + for yyj1556 := 0; ; yyj1556++ { + if yyhl1556 { + if yyj1556 >= l { break } } else { @@ -19765,10 +21365,10 @@ func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1428Slc = r.DecodeBytes(yys1428Slc, true, true) - yys1428 := string(yys1428Slc) + yys1556Slc = r.DecodeBytes(yys1556Slc, true, true) + yys1556 := string(yys1556Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1428 { + switch yys1556 { case "exec": if r.TryDecodeAsNil() { if x.Exec != nil { @@ -19803,9 +21403,9 @@ func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TCPSocket.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1428) - } // end switch yys1428 - } // end for yyj1428 + z.DecStructFieldNotFound(-1, yys1556) + } // end switch yys1556 + } // end for yyj1556 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19813,16 +21413,16 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1432 int - var yyb1432 bool - var yyhl1432 bool = l >= 0 - yyj1432++ - if yyhl1432 { - yyb1432 = yyj1432 > l + var yyj1560 int + var yyb1560 bool + var yyhl1560 bool = l >= 0 + yyj1560++ + if yyhl1560 { + yyb1560 = yyj1560 > l } else { - yyb1432 = r.CheckBreak() + yyb1560 = r.CheckBreak() } - if yyb1432 { + if yyb1560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19837,13 +21437,13 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Exec.CodecDecodeSelf(d) } - yyj1432++ - if yyhl1432 { - yyb1432 = yyj1432 > l + yyj1560++ + if yyhl1560 { + yyb1560 = yyj1560 > l } else { - yyb1432 = r.CheckBreak() + yyb1560 = r.CheckBreak() } - if yyb1432 { + if yyb1560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19858,13 +21458,13 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.HTTPGet.CodecDecodeSelf(d) } - yyj1432++ - if yyhl1432 { - yyb1432 = yyj1432 > l + yyj1560++ + if yyhl1560 { + yyb1560 = yyj1560 > l } else { - yyb1432 = r.CheckBreak() + yyb1560 = r.CheckBreak() } - if yyb1432 { + if yyb1560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19880,17 +21480,17 @@ func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.TCPSocket.CodecDecodeSelf(d) } for { - yyj1432++ - if yyhl1432 { - yyb1432 = yyj1432 > l + yyj1560++ + if yyhl1560 { + yyb1560 = yyj1560 > l } else { - yyb1432 = r.CheckBreak() + yyb1560 = r.CheckBreak() } - if yyb1432 { + if yyb1560 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1432-1, "") + z.DecStructFieldNotFound(yyj1560-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19902,34 +21502,34 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1436 := z.EncBinary() - _ = yym1436 + yym1564 := z.EncBinary() + _ = yym1564 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1437 := !z.EncBinary() - yy2arr1437 := z.EncBasicHandle().StructToArray - var yyq1437 [2]bool - _, _, _ = yysep1437, yyq1437, yy2arr1437 - const yyr1437 bool = false - yyq1437[0] = x.PostStart != nil - yyq1437[1] = x.PreStop != nil - var yynn1437 int - if yyr1437 || yy2arr1437 { + yysep1565 := !z.EncBinary() + yy2arr1565 := z.EncBasicHandle().StructToArray + var yyq1565 [2]bool + _, _, _ = yysep1565, yyq1565, yy2arr1565 + const yyr1565 bool = false + yyq1565[0] = x.PostStart != nil + yyq1565[1] = x.PreStop != nil + var yynn1565 int + if yyr1565 || yy2arr1565 { r.EncodeArrayStart(2) } else { - yynn1437 = 0 - for _, b := range yyq1437 { + yynn1565 = 0 + for _, b := range yyq1565 { if b { - yynn1437++ + yynn1565++ } } - r.EncodeMapStart(yynn1437) - yynn1437 = 0 + r.EncodeMapStart(yynn1565) + yynn1565 = 0 } - if yyr1437 || yy2arr1437 { + if yyr1565 || yy2arr1565 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1437[0] { + if yyq1565[0] { if x.PostStart == nil { r.EncodeNil() } else { @@ -19939,7 +21539,7 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1437[0] { + if yyq1565[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("postStart")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -19950,9 +21550,9 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1437 || yy2arr1437 { + if yyr1565 || yy2arr1565 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1437[1] { + if yyq1565[1] { if x.PreStop == nil { r.EncodeNil() } else { @@ -19962,7 +21562,7 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1437[1] { + if yyq1565[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preStop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -19973,7 +21573,7 @@ func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1437 || yy2arr1437 { + if yyr1565 || yy2arr1565 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19986,25 +21586,25 @@ func (x *Lifecycle) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1440 := z.DecBinary() - _ = yym1440 + yym1568 := z.DecBinary() + _ = yym1568 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1441 := r.ContainerType() - if yyct1441 == codecSelferValueTypeMap1234 { - yyl1441 := r.ReadMapStart() - if yyl1441 == 0 { + yyct1569 := r.ContainerType() + if yyct1569 == codecSelferValueTypeMap1234 { + yyl1569 := r.ReadMapStart() + if yyl1569 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1441, d) + x.codecDecodeSelfFromMap(yyl1569, d) } - } else if yyct1441 == codecSelferValueTypeArray1234 { - yyl1441 := r.ReadArrayStart() - if yyl1441 == 0 { + } else if yyct1569 == codecSelferValueTypeArray1234 { + yyl1569 := r.ReadArrayStart() + if yyl1569 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1441, d) + x.codecDecodeSelfFromArray(yyl1569, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20016,12 +21616,12 @@ func (x *Lifecycle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1442Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1442Slc - var yyhl1442 bool = l >= 0 - for yyj1442 := 0; ; yyj1442++ { - if yyhl1442 { - if yyj1442 >= l { + var yys1570Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1570Slc + var yyhl1570 bool = l >= 0 + for yyj1570 := 0; ; yyj1570++ { + if yyhl1570 { + if yyj1570 >= l { break } } else { @@ -20030,10 +21630,10 @@ func (x *Lifecycle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1442Slc = r.DecodeBytes(yys1442Slc, true, true) - yys1442 := string(yys1442Slc) + yys1570Slc = r.DecodeBytes(yys1570Slc, true, true) + yys1570 := string(yys1570Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1442 { + switch yys1570 { case "postStart": if r.TryDecodeAsNil() { if x.PostStart != nil { @@ -20057,9 +21657,9 @@ func (x *Lifecycle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.PreStop.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1442) - } // end switch yys1442 - } // end for yyj1442 + z.DecStructFieldNotFound(-1, yys1570) + } // end switch yys1570 + } // end for yyj1570 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20067,16 +21667,16 @@ func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1445 int - var yyb1445 bool - var yyhl1445 bool = l >= 0 - yyj1445++ - if yyhl1445 { - yyb1445 = yyj1445 > l + var yyj1573 int + var yyb1573 bool + var yyhl1573 bool = l >= 0 + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1445 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1445 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20091,13 +21691,13 @@ func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PostStart.CodecDecodeSelf(d) } - yyj1445++ - if yyhl1445 { - yyb1445 = yyj1445 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1445 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1445 { + if yyb1573 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20113,17 +21713,17 @@ func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.PreStop.CodecDecodeSelf(d) } for { - yyj1445++ - if yyhl1445 { - yyb1445 = yyj1445 > l + yyj1573++ + if yyhl1573 { + yyb1573 = yyj1573 > l } else { - yyb1445 = r.CheckBreak() + yyb1573 = r.CheckBreak() } - if yyb1445 { + if yyb1573 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1445-1, "") + z.DecStructFieldNotFound(yyj1573-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20132,8 +21732,8 @@ func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1448 := z.EncBinary() - _ = yym1448 + yym1576 := z.EncBinary() + _ = yym1576 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -20145,8 +21745,8 @@ func (x *ConditionStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1449 := z.DecBinary() - _ = yym1449 + yym1577 := z.DecBinary() + _ = yym1577 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -20161,36 +21761,36 @@ func (x *ContainerStateWaiting) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1450 := z.EncBinary() - _ = yym1450 + yym1578 := z.EncBinary() + _ = yym1578 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1451 := !z.EncBinary() - yy2arr1451 := z.EncBasicHandle().StructToArray - var yyq1451 [2]bool - _, _, _ = yysep1451, yyq1451, yy2arr1451 - const yyr1451 bool = false - yyq1451[0] = x.Reason != "" - yyq1451[1] = x.Message != "" - var yynn1451 int - if yyr1451 || yy2arr1451 { + yysep1579 := !z.EncBinary() + yy2arr1579 := z.EncBasicHandle().StructToArray + var yyq1579 [2]bool + _, _, _ = yysep1579, yyq1579, yy2arr1579 + const yyr1579 bool = false + yyq1579[0] = x.Reason != "" + yyq1579[1] = x.Message != "" + var yynn1579 int + if yyr1579 || yy2arr1579 { r.EncodeArrayStart(2) } else { - yynn1451 = 0 - for _, b := range yyq1451 { + yynn1579 = 0 + for _, b := range yyq1579 { if b { - yynn1451++ + yynn1579++ } } - r.EncodeMapStart(yynn1451) - yynn1451 = 0 + r.EncodeMapStart(yynn1579) + yynn1579 = 0 } - if yyr1451 || yy2arr1451 { + if yyr1579 || yy2arr1579 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1451[0] { - yym1453 := z.EncBinary() - _ = yym1453 + if yyq1579[0] { + yym1581 := z.EncBinary() + _ = yym1581 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -20199,23 +21799,23 @@ func (x *ContainerStateWaiting) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1451[0] { + if yyq1579[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1454 := z.EncBinary() - _ = yym1454 + yym1582 := z.EncBinary() + _ = yym1582 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr1451 || yy2arr1451 { + if yyr1579 || yy2arr1579 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1451[1] { - yym1456 := z.EncBinary() - _ = yym1456 + if yyq1579[1] { + yym1584 := z.EncBinary() + _ = yym1584 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -20224,19 +21824,19 @@ func (x *ContainerStateWaiting) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1451[1] { + if yyq1579[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1457 := z.EncBinary() - _ = yym1457 + yym1585 := z.EncBinary() + _ = yym1585 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr1451 || yy2arr1451 { + if yyr1579 || yy2arr1579 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20249,25 +21849,25 @@ func (x *ContainerStateWaiting) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1458 := z.DecBinary() - _ = yym1458 + yym1586 := z.DecBinary() + _ = yym1586 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1459 := r.ContainerType() - if yyct1459 == codecSelferValueTypeMap1234 { - yyl1459 := r.ReadMapStart() - if yyl1459 == 0 { + yyct1587 := r.ContainerType() + if yyct1587 == codecSelferValueTypeMap1234 { + yyl1587 := r.ReadMapStart() + if yyl1587 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1459, d) + x.codecDecodeSelfFromMap(yyl1587, d) } - } else if yyct1459 == codecSelferValueTypeArray1234 { - yyl1459 := r.ReadArrayStart() - if yyl1459 == 0 { + } else if yyct1587 == codecSelferValueTypeArray1234 { + yyl1587 := r.ReadArrayStart() + if yyl1587 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1459, d) + x.codecDecodeSelfFromArray(yyl1587, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20279,12 +21879,12 @@ func (x *ContainerStateWaiting) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1460Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1460Slc - var yyhl1460 bool = l >= 0 - for yyj1460 := 0; ; yyj1460++ { - if yyhl1460 { - if yyj1460 >= l { + var yys1588Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1588Slc + var yyhl1588 bool = l >= 0 + for yyj1588 := 0; ; yyj1588++ { + if yyhl1588 { + if yyj1588 >= l { break } } else { @@ -20293,10 +21893,10 @@ func (x *ContainerStateWaiting) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1460Slc = r.DecodeBytes(yys1460Slc, true, true) - yys1460 := string(yys1460Slc) + yys1588Slc = r.DecodeBytes(yys1588Slc, true, true) + yys1588 := string(yys1588Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1460 { + switch yys1588 { case "reason": if r.TryDecodeAsNil() { x.Reason = "" @@ -20310,9 +21910,9 @@ func (x *ContainerStateWaiting) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1460) - } // end switch yys1460 - } // end for yyj1460 + z.DecStructFieldNotFound(-1, yys1588) + } // end switch yys1588 + } // end for yyj1588 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20320,16 +21920,16 @@ func (x *ContainerStateWaiting) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1463 int - var yyb1463 bool - var yyhl1463 bool = l >= 0 - yyj1463++ - if yyhl1463 { - yyb1463 = yyj1463 > l + var yyj1591 int + var yyb1591 bool + var yyhl1591 bool = l >= 0 + yyj1591++ + if yyhl1591 { + yyb1591 = yyj1591 > l } else { - yyb1463 = r.CheckBreak() + yyb1591 = r.CheckBreak() } - if yyb1463 { + if yyb1591 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20339,13 +21939,13 @@ func (x *ContainerStateWaiting) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Reason = string(r.DecodeString()) } - yyj1463++ - if yyhl1463 { - yyb1463 = yyj1463 > l + yyj1591++ + if yyhl1591 { + yyb1591 = yyj1591 > l } else { - yyb1463 = r.CheckBreak() + yyb1591 = r.CheckBreak() } - if yyb1463 { + if yyb1591 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20356,17 +21956,17 @@ func (x *ContainerStateWaiting) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.Message = string(r.DecodeString()) } for { - yyj1463++ - if yyhl1463 { - yyb1463 = yyj1463 > l + yyj1591++ + if yyhl1591 { + yyb1591 = yyj1591 > l } else { - yyb1463 = r.CheckBreak() + yyb1591 = r.CheckBreak() } - if yyb1463 { + if yyb1591 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1463-1, "") + z.DecStructFieldNotFound(yyj1591-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20378,68 +21978,68 @@ func (x *ContainerStateRunning) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1466 := z.EncBinary() - _ = yym1466 + yym1594 := z.EncBinary() + _ = yym1594 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1467 := !z.EncBinary() - yy2arr1467 := z.EncBasicHandle().StructToArray - var yyq1467 [1]bool - _, _, _ = yysep1467, yyq1467, yy2arr1467 - const yyr1467 bool = false - yyq1467[0] = true - var yynn1467 int - if yyr1467 || yy2arr1467 { + yysep1595 := !z.EncBinary() + yy2arr1595 := z.EncBasicHandle().StructToArray + var yyq1595 [1]bool + _, _, _ = yysep1595, yyq1595, yy2arr1595 + const yyr1595 bool = false + yyq1595[0] = true + var yynn1595 int + if yyr1595 || yy2arr1595 { r.EncodeArrayStart(1) } else { - yynn1467 = 0 - for _, b := range yyq1467 { + yynn1595 = 0 + for _, b := range yyq1595 { if b { - yynn1467++ + yynn1595++ } } - r.EncodeMapStart(yynn1467) - yynn1467 = 0 + r.EncodeMapStart(yynn1595) + yynn1595 = 0 } - if yyr1467 || yy2arr1467 { + if yyr1595 || yy2arr1595 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1467[0] { - yy1469 := &x.StartedAt - yym1470 := z.EncBinary() - _ = yym1470 + if yyq1595[0] { + yy1597 := &x.StartedAt + yym1598 := z.EncBinary() + _ = yym1598 if false { - } else if z.HasExtensions() && z.EncExt(yy1469) { - } else if yym1470 { - z.EncBinaryMarshal(yy1469) - } else if !yym1470 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1469) + } else if z.HasExtensions() && z.EncExt(yy1597) { + } else if yym1598 { + z.EncBinaryMarshal(yy1597) + } else if !yym1598 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1597) } else { - z.EncFallback(yy1469) + z.EncFallback(yy1597) } } else { r.EncodeNil() } } else { - if yyq1467[0] { + if yyq1595[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1471 := &x.StartedAt - yym1472 := z.EncBinary() - _ = yym1472 + yy1599 := &x.StartedAt + yym1600 := z.EncBinary() + _ = yym1600 if false { - } else if z.HasExtensions() && z.EncExt(yy1471) { - } else if yym1472 { - z.EncBinaryMarshal(yy1471) - } else if !yym1472 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1471) + } else if z.HasExtensions() && z.EncExt(yy1599) { + } else if yym1600 { + z.EncBinaryMarshal(yy1599) + } else if !yym1600 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1599) } else { - z.EncFallback(yy1471) + z.EncFallback(yy1599) } } } - if yyr1467 || yy2arr1467 { + if yyr1595 || yy2arr1595 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20452,25 +22052,25 @@ func (x *ContainerStateRunning) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1473 := z.DecBinary() - _ = yym1473 + yym1601 := z.DecBinary() + _ = yym1601 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1474 := r.ContainerType() - if yyct1474 == codecSelferValueTypeMap1234 { - yyl1474 := r.ReadMapStart() - if yyl1474 == 0 { + yyct1602 := r.ContainerType() + if yyct1602 == codecSelferValueTypeMap1234 { + yyl1602 := r.ReadMapStart() + if yyl1602 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1474, d) + x.codecDecodeSelfFromMap(yyl1602, d) } - } else if yyct1474 == codecSelferValueTypeArray1234 { - yyl1474 := r.ReadArrayStart() - if yyl1474 == 0 { + } else if yyct1602 == codecSelferValueTypeArray1234 { + yyl1602 := r.ReadArrayStart() + if yyl1602 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1474, d) + x.codecDecodeSelfFromArray(yyl1602, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20482,12 +22082,12 @@ func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1475Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1475Slc - var yyhl1475 bool = l >= 0 - for yyj1475 := 0; ; yyj1475++ { - if yyhl1475 { - if yyj1475 >= l { + var yys1603Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1603Slc + var yyhl1603 bool = l >= 0 + for yyj1603 := 0; ; yyj1603++ { + if yyhl1603 { + if yyj1603 >= l { break } } else { @@ -20496,31 +22096,31 @@ func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1475Slc = r.DecodeBytes(yys1475Slc, true, true) - yys1475 := string(yys1475Slc) + yys1603Slc = r.DecodeBytes(yys1603Slc, true, true) + yys1603 := string(yys1603Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1475 { + switch yys1603 { case "startedAt": if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { - yyv1476 := &x.StartedAt - yym1477 := z.DecBinary() - _ = yym1477 + yyv1604 := &x.StartedAt + yym1605 := z.DecBinary() + _ = yym1605 if false { - } else if z.HasExtensions() && z.DecExt(yyv1476) { - } else if yym1477 { - z.DecBinaryUnmarshal(yyv1476) - } else if !yym1477 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1476) + } else if z.HasExtensions() && z.DecExt(yyv1604) { + } else if yym1605 { + z.DecBinaryUnmarshal(yyv1604) + } else if !yym1605 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1604) } else { - z.DecFallback(yyv1476, false) + z.DecFallback(yyv1604, false) } } default: - z.DecStructFieldNotFound(-1, yys1475) - } // end switch yys1475 - } // end for yyj1475 + z.DecStructFieldNotFound(-1, yys1603) + } // end switch yys1603 + } // end for yyj1603 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20528,16 +22128,16 @@ func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1478 int - var yyb1478 bool - var yyhl1478 bool = l >= 0 - yyj1478++ - if yyhl1478 { - yyb1478 = yyj1478 > l + var yyj1606 int + var yyb1606 bool + var yyhl1606 bool = l >= 0 + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1478 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1478 { + if yyb1606 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20545,31 +22145,31 @@ func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { - yyv1479 := &x.StartedAt - yym1480 := z.DecBinary() - _ = yym1480 + yyv1607 := &x.StartedAt + yym1608 := z.DecBinary() + _ = yym1608 if false { - } else if z.HasExtensions() && z.DecExt(yyv1479) { - } else if yym1480 { - z.DecBinaryUnmarshal(yyv1479) - } else if !yym1480 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1479) + } else if z.HasExtensions() && z.DecExt(yyv1607) { + } else if yym1608 { + z.DecBinaryUnmarshal(yyv1607) + } else if !yym1608 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1607) } else { - z.DecFallback(yyv1479, false) + z.DecFallback(yyv1607, false) } } for { - yyj1478++ - if yyhl1478 { - yyb1478 = yyj1478 > l + yyj1606++ + if yyhl1606 { + yyb1606 = yyj1606 > l } else { - yyb1478 = r.CheckBreak() + yyb1606 = r.CheckBreak() } - if yyb1478 { + if yyb1606 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1478-1, "") + z.DecStructFieldNotFound(yyj1606-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20581,39 +22181,39 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1481 := z.EncBinary() - _ = yym1481 + yym1609 := z.EncBinary() + _ = yym1609 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1482 := !z.EncBinary() - yy2arr1482 := z.EncBasicHandle().StructToArray - var yyq1482 [7]bool - _, _, _ = yysep1482, yyq1482, yy2arr1482 - const yyr1482 bool = false - yyq1482[1] = x.Signal != 0 - yyq1482[2] = x.Reason != "" - yyq1482[3] = x.Message != "" - yyq1482[4] = true - yyq1482[5] = true - yyq1482[6] = x.ContainerID != "" - var yynn1482 int - if yyr1482 || yy2arr1482 { + yysep1610 := !z.EncBinary() + yy2arr1610 := z.EncBasicHandle().StructToArray + var yyq1610 [7]bool + _, _, _ = yysep1610, yyq1610, yy2arr1610 + const yyr1610 bool = false + yyq1610[1] = x.Signal != 0 + yyq1610[2] = x.Reason != "" + yyq1610[3] = x.Message != "" + yyq1610[4] = true + yyq1610[5] = true + yyq1610[6] = x.ContainerID != "" + var yynn1610 int + if yyr1610 || yy2arr1610 { r.EncodeArrayStart(7) } else { - yynn1482 = 1 - for _, b := range yyq1482 { + yynn1610 = 1 + for _, b := range yyq1610 { if b { - yynn1482++ + yynn1610++ } } - r.EncodeMapStart(yynn1482) - yynn1482 = 0 + r.EncodeMapStart(yynn1610) + yynn1610 = 0 } - if yyr1482 || yy2arr1482 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1484 := z.EncBinary() - _ = yym1484 + yym1612 := z.EncBinary() + _ = yym1612 if false { } else { r.EncodeInt(int64(x.ExitCode)) @@ -20622,18 +22222,18 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exitCode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1485 := z.EncBinary() - _ = yym1485 + yym1613 := z.EncBinary() + _ = yym1613 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } - if yyr1482 || yy2arr1482 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1482[1] { - yym1487 := z.EncBinary() - _ = yym1487 + if yyq1610[1] { + yym1615 := z.EncBinary() + _ = yym1615 if false { } else { r.EncodeInt(int64(x.Signal)) @@ -20642,23 +22242,23 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq1482[1] { + if yyq1610[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("signal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1488 := z.EncBinary() - _ = yym1488 + yym1616 := z.EncBinary() + _ = yym1616 if false { } else { r.EncodeInt(int64(x.Signal)) } } } - if yyr1482 || yy2arr1482 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1482[2] { - yym1490 := z.EncBinary() - _ = yym1490 + if yyq1610[2] { + yym1618 := z.EncBinary() + _ = yym1618 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -20667,23 +22267,23 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1482[2] { + if yyq1610[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1491 := z.EncBinary() - _ = yym1491 + yym1619 := z.EncBinary() + _ = yym1619 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr1482 || yy2arr1482 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1482[3] { - yym1493 := z.EncBinary() - _ = yym1493 + if yyq1610[3] { + yym1621 := z.EncBinary() + _ = yym1621 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -20692,97 +22292,97 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1482[3] { + if yyq1610[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1494 := z.EncBinary() - _ = yym1494 + yym1622 := z.EncBinary() + _ = yym1622 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr1482 || yy2arr1482 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1482[4] { - yy1496 := &x.StartedAt - yym1497 := z.EncBinary() - _ = yym1497 + if yyq1610[4] { + yy1624 := &x.StartedAt + yym1625 := z.EncBinary() + _ = yym1625 if false { - } else if z.HasExtensions() && z.EncExt(yy1496) { - } else if yym1497 { - z.EncBinaryMarshal(yy1496) - } else if !yym1497 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1496) + } else if z.HasExtensions() && z.EncExt(yy1624) { + } else if yym1625 { + z.EncBinaryMarshal(yy1624) + } else if !yym1625 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1624) } else { - z.EncFallback(yy1496) + z.EncFallback(yy1624) } } else { r.EncodeNil() } } else { - if yyq1482[4] { + if yyq1610[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1498 := &x.StartedAt - yym1499 := z.EncBinary() - _ = yym1499 + yy1626 := &x.StartedAt + yym1627 := z.EncBinary() + _ = yym1627 if false { - } else if z.HasExtensions() && z.EncExt(yy1498) { - } else if yym1499 { - z.EncBinaryMarshal(yy1498) - } else if !yym1499 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1498) + } else if z.HasExtensions() && z.EncExt(yy1626) { + } else if yym1627 { + z.EncBinaryMarshal(yy1626) + } else if !yym1627 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1626) } else { - z.EncFallback(yy1498) + z.EncFallback(yy1626) } } } - if yyr1482 || yy2arr1482 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1482[5] { - yy1501 := &x.FinishedAt - yym1502 := z.EncBinary() - _ = yym1502 + if yyq1610[5] { + yy1629 := &x.FinishedAt + yym1630 := z.EncBinary() + _ = yym1630 if false { - } else if z.HasExtensions() && z.EncExt(yy1501) { - } else if yym1502 { - z.EncBinaryMarshal(yy1501) - } else if !yym1502 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1501) + } else if z.HasExtensions() && z.EncExt(yy1629) { + } else if yym1630 { + z.EncBinaryMarshal(yy1629) + } else if !yym1630 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1629) } else { - z.EncFallback(yy1501) + z.EncFallback(yy1629) } } else { r.EncodeNil() } } else { - if yyq1482[5] { + if yyq1610[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1503 := &x.FinishedAt - yym1504 := z.EncBinary() - _ = yym1504 + yy1631 := &x.FinishedAt + yym1632 := z.EncBinary() + _ = yym1632 if false { - } else if z.HasExtensions() && z.EncExt(yy1503) { - } else if yym1504 { - z.EncBinaryMarshal(yy1503) - } else if !yym1504 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1503) + } else if z.HasExtensions() && z.EncExt(yy1631) { + } else if yym1632 { + z.EncBinaryMarshal(yy1631) + } else if !yym1632 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1631) } else { - z.EncFallback(yy1503) + z.EncFallback(yy1631) } } } - if yyr1482 || yy2arr1482 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1482[6] { - yym1506 := z.EncBinary() - _ = yym1506 + if yyq1610[6] { + yym1634 := z.EncBinary() + _ = yym1634 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) @@ -20791,19 +22391,19 @@ func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1482[6] { + if yyq1610[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1507 := z.EncBinary() - _ = yym1507 + yym1635 := z.EncBinary() + _ = yym1635 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } - if yyr1482 || yy2arr1482 { + if yyr1610 || yy2arr1610 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20816,25 +22416,25 @@ func (x *ContainerStateTerminated) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1508 := z.DecBinary() - _ = yym1508 + yym1636 := z.DecBinary() + _ = yym1636 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1509 := r.ContainerType() - if yyct1509 == codecSelferValueTypeMap1234 { - yyl1509 := r.ReadMapStart() - if yyl1509 == 0 { + yyct1637 := r.ContainerType() + if yyct1637 == codecSelferValueTypeMap1234 { + yyl1637 := r.ReadMapStart() + if yyl1637 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1509, d) + x.codecDecodeSelfFromMap(yyl1637, d) } - } else if yyct1509 == codecSelferValueTypeArray1234 { - yyl1509 := r.ReadArrayStart() - if yyl1509 == 0 { + } else if yyct1637 == codecSelferValueTypeArray1234 { + yyl1637 := r.ReadArrayStart() + if yyl1637 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1509, d) + x.codecDecodeSelfFromArray(yyl1637, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20846,12 +22446,12 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1510Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1510Slc - var yyhl1510 bool = l >= 0 - for yyj1510 := 0; ; yyj1510++ { - if yyhl1510 { - if yyj1510 >= l { + var yys1638Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1638Slc + var yyhl1638 bool = l >= 0 + for yyj1638 := 0; ; yyj1638++ { + if yyhl1638 { + if yyj1638 >= l { break } } else { @@ -20860,10 +22460,10 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1510Slc = r.DecodeBytes(yys1510Slc, true, true) - yys1510 := string(yys1510Slc) + yys1638Slc = r.DecodeBytes(yys1638Slc, true, true) + yys1638 := string(yys1638Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1510 { + switch yys1638 { case "exitCode": if r.TryDecodeAsNil() { x.ExitCode = 0 @@ -20892,34 +22492,34 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { - yyv1515 := &x.StartedAt - yym1516 := z.DecBinary() - _ = yym1516 + yyv1643 := &x.StartedAt + yym1644 := z.DecBinary() + _ = yym1644 if false { - } else if z.HasExtensions() && z.DecExt(yyv1515) { - } else if yym1516 { - z.DecBinaryUnmarshal(yyv1515) - } else if !yym1516 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1515) + } else if z.HasExtensions() && z.DecExt(yyv1643) { + } else if yym1644 { + z.DecBinaryUnmarshal(yyv1643) + } else if !yym1644 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1643) } else { - z.DecFallback(yyv1515, false) + z.DecFallback(yyv1643, false) } } case "finishedAt": if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { - yyv1517 := &x.FinishedAt - yym1518 := z.DecBinary() - _ = yym1518 + yyv1645 := &x.FinishedAt + yym1646 := z.DecBinary() + _ = yym1646 if false { - } else if z.HasExtensions() && z.DecExt(yyv1517) { - } else if yym1518 { - z.DecBinaryUnmarshal(yyv1517) - } else if !yym1518 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1517) + } else if z.HasExtensions() && z.DecExt(yyv1645) { + } else if yym1646 { + z.DecBinaryUnmarshal(yyv1645) + } else if !yym1646 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1645) } else { - z.DecFallback(yyv1517, false) + z.DecFallback(yyv1645, false) } } case "containerID": @@ -20929,9 +22529,9 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.De x.ContainerID = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1510) - } // end switch yys1510 - } // end for yyj1510 + z.DecStructFieldNotFound(-1, yys1638) + } // end switch yys1638 + } // end for yyj1638 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20939,16 +22539,16 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1520 int - var yyb1520 bool - var yyhl1520 bool = l >= 0 - yyj1520++ - if yyhl1520 { - yyb1520 = yyj1520 > l + var yyj1648 int + var yyb1648 bool + var yyhl1648 bool = l >= 0 + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb1520 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb1520 { + if yyb1648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20958,13 +22558,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.ExitCode = int32(r.DecodeInt(32)) } - yyj1520++ - if yyhl1520 { - yyb1520 = yyj1520 > l + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb1520 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb1520 { + if yyb1648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20974,13 +22574,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Signal = int32(r.DecodeInt(32)) } - yyj1520++ - if yyhl1520 { - yyb1520 = yyj1520 > l + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb1520 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb1520 { + if yyb1648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20990,13 +22590,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Reason = string(r.DecodeString()) } - yyj1520++ - if yyhl1520 { - yyb1520 = yyj1520 > l + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb1520 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb1520 { + if yyb1648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21006,13 +22606,13 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Message = string(r.DecodeString()) } - yyj1520++ - if yyhl1520 { - yyb1520 = yyj1520 > l + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb1520 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb1520 { + if yyb1648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21020,26 +22620,26 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { - yyv1525 := &x.StartedAt - yym1526 := z.DecBinary() - _ = yym1526 + yyv1653 := &x.StartedAt + yym1654 := z.DecBinary() + _ = yym1654 if false { - } else if z.HasExtensions() && z.DecExt(yyv1525) { - } else if yym1526 { - z.DecBinaryUnmarshal(yyv1525) - } else if !yym1526 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1525) + } else if z.HasExtensions() && z.DecExt(yyv1653) { + } else if yym1654 { + z.DecBinaryUnmarshal(yyv1653) + } else if !yym1654 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1653) } else { - z.DecFallback(yyv1525, false) + z.DecFallback(yyv1653, false) } } - yyj1520++ - if yyhl1520 { - yyb1520 = yyj1520 > l + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb1520 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb1520 { + if yyb1648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21047,26 +22647,26 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { - yyv1527 := &x.FinishedAt - yym1528 := z.DecBinary() - _ = yym1528 + yyv1655 := &x.FinishedAt + yym1656 := z.DecBinary() + _ = yym1656 if false { - } else if z.HasExtensions() && z.DecExt(yyv1527) { - } else if yym1528 { - z.DecBinaryUnmarshal(yyv1527) - } else if !yym1528 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1527) + } else if z.HasExtensions() && z.DecExt(yyv1655) { + } else if yym1656 { + z.DecBinaryUnmarshal(yyv1655) + } else if !yym1656 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1655) } else { - z.DecFallback(yyv1527, false) + z.DecFallback(yyv1655, false) } } - yyj1520++ - if yyhl1520 { - yyb1520 = yyj1520 > l + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb1520 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb1520 { + if yyb1648 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21077,17 +22677,17 @@ func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978. x.ContainerID = string(r.DecodeString()) } for { - yyj1520++ - if yyhl1520 { - yyb1520 = yyj1520 > l + yyj1648++ + if yyhl1648 { + yyb1648 = yyj1648 > l } else { - yyb1520 = r.CheckBreak() + yyb1648 = r.CheckBreak() } - if yyb1520 { + if yyb1648 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1520-1, "") + z.DecStructFieldNotFound(yyj1648-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21099,35 +22699,35 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1530 := z.EncBinary() - _ = yym1530 + yym1658 := z.EncBinary() + _ = yym1658 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1531 := !z.EncBinary() - yy2arr1531 := z.EncBasicHandle().StructToArray - var yyq1531 [3]bool - _, _, _ = yysep1531, yyq1531, yy2arr1531 - const yyr1531 bool = false - yyq1531[0] = x.Waiting != nil - yyq1531[1] = x.Running != nil - yyq1531[2] = x.Terminated != nil - var yynn1531 int - if yyr1531 || yy2arr1531 { + yysep1659 := !z.EncBinary() + yy2arr1659 := z.EncBasicHandle().StructToArray + var yyq1659 [3]bool + _, _, _ = yysep1659, yyq1659, yy2arr1659 + const yyr1659 bool = false + yyq1659[0] = x.Waiting != nil + yyq1659[1] = x.Running != nil + yyq1659[2] = x.Terminated != nil + var yynn1659 int + if yyr1659 || yy2arr1659 { r.EncodeArrayStart(3) } else { - yynn1531 = 0 - for _, b := range yyq1531 { + yynn1659 = 0 + for _, b := range yyq1659 { if b { - yynn1531++ + yynn1659++ } } - r.EncodeMapStart(yynn1531) - yynn1531 = 0 + r.EncodeMapStart(yynn1659) + yynn1659 = 0 } - if yyr1531 || yy2arr1531 { + if yyr1659 || yy2arr1659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1531[0] { + if yyq1659[0] { if x.Waiting == nil { r.EncodeNil() } else { @@ -21137,7 +22737,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1531[0] { + if yyq1659[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("waiting")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21148,9 +22748,9 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1531 || yy2arr1531 { + if yyr1659 || yy2arr1659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1531[1] { + if yyq1659[1] { if x.Running == nil { r.EncodeNil() } else { @@ -21160,7 +22760,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1531[1] { + if yyq1659[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("running")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21171,9 +22771,9 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1531 || yy2arr1531 { + if yyr1659 || yy2arr1659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1531[2] { + if yyq1659[2] { if x.Terminated == nil { r.EncodeNil() } else { @@ -21183,7 +22783,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1531[2] { + if yyq1659[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminated")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -21194,7 +22794,7 @@ func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1531 || yy2arr1531 { + if yyr1659 || yy2arr1659 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -21207,25 +22807,25 @@ func (x *ContainerState) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1535 := z.DecBinary() - _ = yym1535 + yym1663 := z.DecBinary() + _ = yym1663 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1536 := r.ContainerType() - if yyct1536 == codecSelferValueTypeMap1234 { - yyl1536 := r.ReadMapStart() - if yyl1536 == 0 { + yyct1664 := r.ContainerType() + if yyct1664 == codecSelferValueTypeMap1234 { + yyl1664 := r.ReadMapStart() + if yyl1664 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1536, d) + x.codecDecodeSelfFromMap(yyl1664, d) } - } else if yyct1536 == codecSelferValueTypeArray1234 { - yyl1536 := r.ReadArrayStart() - if yyl1536 == 0 { + } else if yyct1664 == codecSelferValueTypeArray1234 { + yyl1664 := r.ReadArrayStart() + if yyl1664 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1536, d) + x.codecDecodeSelfFromArray(yyl1664, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -21237,12 +22837,12 @@ func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1537Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1537Slc - var yyhl1537 bool = l >= 0 - for yyj1537 := 0; ; yyj1537++ { - if yyhl1537 { - if yyj1537 >= l { + var yys1665Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1665Slc + var yyhl1665 bool = l >= 0 + for yyj1665 := 0; ; yyj1665++ { + if yyhl1665 { + if yyj1665 >= l { break } } else { @@ -21251,10 +22851,10 @@ func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1537Slc = r.DecodeBytes(yys1537Slc, true, true) - yys1537 := string(yys1537Slc) + yys1665Slc = r.DecodeBytes(yys1665Slc, true, true) + yys1665 := string(yys1665Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1537 { + switch yys1665 { case "waiting": if r.TryDecodeAsNil() { if x.Waiting != nil { @@ -21289,9 +22889,9 @@ func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Terminated.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1537) - } // end switch yys1537 - } // end for yyj1537 + z.DecStructFieldNotFound(-1, yys1665) + } // end switch yys1665 + } // end for yyj1665 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -21299,16 +22899,16 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1541 int - var yyb1541 bool - var yyhl1541 bool = l >= 0 - yyj1541++ - if yyhl1541 { - yyb1541 = yyj1541 > l + var yyj1669 int + var yyb1669 bool + var yyhl1669 bool = l >= 0 + yyj1669++ + if yyhl1669 { + yyb1669 = yyj1669 > l } else { - yyb1541 = r.CheckBreak() + yyb1669 = r.CheckBreak() } - if yyb1541 { + if yyb1669 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21323,13 +22923,13 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Waiting.CodecDecodeSelf(d) } - yyj1541++ - if yyhl1541 { - yyb1541 = yyj1541 > l + yyj1669++ + if yyhl1669 { + yyb1669 = yyj1669 > l } else { - yyb1541 = r.CheckBreak() + yyb1669 = r.CheckBreak() } - if yyb1541 { + if yyb1669 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21344,13 +22944,13 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.Running.CodecDecodeSelf(d) } - yyj1541++ - if yyhl1541 { - yyb1541 = yyj1541 > l + yyj1669++ + if yyhl1669 { + yyb1669 = yyj1669 > l } else { - yyb1541 = r.CheckBreak() + yyb1669 = r.CheckBreak() } - if yyb1541 { + if yyb1669 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21366,17 +22966,17 @@ func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Terminated.CodecDecodeSelf(d) } for { - yyj1541++ - if yyhl1541 { - yyb1541 = yyj1541 > l + yyj1669++ + if yyhl1669 { + yyb1669 = yyj1669 > l } else { - yyb1541 = r.CheckBreak() + yyb1669 = r.CheckBreak() } - if yyb1541 { + if yyb1669 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1541-1, "") + z.DecStructFieldNotFound(yyj1669-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21388,36 +22988,36 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1545 := z.EncBinary() - _ = yym1545 + yym1673 := z.EncBinary() + _ = yym1673 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1546 := !z.EncBinary() - yy2arr1546 := z.EncBasicHandle().StructToArray - var yyq1546 [8]bool - _, _, _ = yysep1546, yyq1546, yy2arr1546 - const yyr1546 bool = false - yyq1546[1] = true - yyq1546[2] = true - yyq1546[7] = x.ContainerID != "" - var yynn1546 int - if yyr1546 || yy2arr1546 { + yysep1674 := !z.EncBinary() + yy2arr1674 := z.EncBasicHandle().StructToArray + var yyq1674 [8]bool + _, _, _ = yysep1674, yyq1674, yy2arr1674 + const yyr1674 bool = false + yyq1674[1] = true + yyq1674[2] = true + yyq1674[7] = x.ContainerID != "" + var yynn1674 int + if yyr1674 || yy2arr1674 { r.EncodeArrayStart(8) } else { - yynn1546 = 5 - for _, b := range yyq1546 { + yynn1674 = 5 + for _, b := range yyq1674 { if b { - yynn1546++ + yynn1674++ } } - r.EncodeMapStart(yynn1546) - yynn1546 = 0 + r.EncodeMapStart(yynn1674) + yynn1674 = 0 } - if yyr1546 || yy2arr1546 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1548 := z.EncBinary() - _ = yym1548 + yym1676 := z.EncBinary() + _ = yym1676 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -21426,51 +23026,51 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1549 := z.EncBinary() - _ = yym1549 + yym1677 := z.EncBinary() + _ = yym1677 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr1546 || yy2arr1546 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1546[1] { - yy1551 := &x.State - yy1551.CodecEncodeSelf(e) + if yyq1674[1] { + yy1679 := &x.State + yy1679.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1546[1] { + if yyq1674[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("state")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1552 := &x.State - yy1552.CodecEncodeSelf(e) + yy1680 := &x.State + yy1680.CodecEncodeSelf(e) } } - if yyr1546 || yy2arr1546 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1546[2] { - yy1554 := &x.LastTerminationState - yy1554.CodecEncodeSelf(e) + if yyq1674[2] { + yy1682 := &x.LastTerminationState + yy1682.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1546[2] { + if yyq1674[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastState")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1555 := &x.LastTerminationState - yy1555.CodecEncodeSelf(e) + yy1683 := &x.LastTerminationState + yy1683.CodecEncodeSelf(e) } } - if yyr1546 || yy2arr1546 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1557 := z.EncBinary() - _ = yym1557 + yym1685 := z.EncBinary() + _ = yym1685 if false { } else { r.EncodeBool(bool(x.Ready)) @@ -21479,17 +23079,17 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ready")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1558 := z.EncBinary() - _ = yym1558 + yym1686 := z.EncBinary() + _ = yym1686 if false { } else { r.EncodeBool(bool(x.Ready)) } } - if yyr1546 || yy2arr1546 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1560 := z.EncBinary() - _ = yym1560 + yym1688 := z.EncBinary() + _ = yym1688 if false { } else { r.EncodeInt(int64(x.RestartCount)) @@ -21498,17 +23098,17 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1561 := z.EncBinary() - _ = yym1561 + yym1689 := z.EncBinary() + _ = yym1689 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } - if yyr1546 || yy2arr1546 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1563 := z.EncBinary() - _ = yym1563 + yym1691 := z.EncBinary() + _ = yym1691 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) @@ -21517,17 +23117,17 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1564 := z.EncBinary() - _ = yym1564 + yym1692 := z.EncBinary() + _ = yym1692 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } - if yyr1546 || yy2arr1546 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1566 := z.EncBinary() - _ = yym1566 + yym1694 := z.EncBinary() + _ = yym1694 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) @@ -21536,18 +23136,18 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imageID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1567 := z.EncBinary() - _ = yym1567 + yym1695 := z.EncBinary() + _ = yym1695 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } - if yyr1546 || yy2arr1546 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1546[7] { - yym1569 := z.EncBinary() - _ = yym1569 + if yyq1674[7] { + yym1697 := z.EncBinary() + _ = yym1697 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) @@ -21556,19 +23156,19 @@ func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1546[7] { + if yyq1674[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1570 := z.EncBinary() - _ = yym1570 + yym1698 := z.EncBinary() + _ = yym1698 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } - if yyr1546 || yy2arr1546 { + if yyr1674 || yy2arr1674 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -21581,25 +23181,25 @@ func (x *ContainerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1571 := z.DecBinary() - _ = yym1571 + yym1699 := z.DecBinary() + _ = yym1699 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1572 := r.ContainerType() - if yyct1572 == codecSelferValueTypeMap1234 { - yyl1572 := r.ReadMapStart() - if yyl1572 == 0 { + yyct1700 := r.ContainerType() + if yyct1700 == codecSelferValueTypeMap1234 { + yyl1700 := r.ReadMapStart() + if yyl1700 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1572, d) + x.codecDecodeSelfFromMap(yyl1700, d) } - } else if yyct1572 == codecSelferValueTypeArray1234 { - yyl1572 := r.ReadArrayStart() - if yyl1572 == 0 { + } else if yyct1700 == codecSelferValueTypeArray1234 { + yyl1700 := r.ReadArrayStart() + if yyl1700 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1572, d) + x.codecDecodeSelfFromArray(yyl1700, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -21611,12 +23211,12 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1573Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1573Slc - var yyhl1573 bool = l >= 0 - for yyj1573 := 0; ; yyj1573++ { - if yyhl1573 { - if yyj1573 >= l { + var yys1701Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1701Slc + var yyhl1701 bool = l >= 0 + for yyj1701 := 0; ; yyj1701++ { + if yyhl1701 { + if yyj1701 >= l { break } } else { @@ -21625,10 +23225,10 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1573Slc = r.DecodeBytes(yys1573Slc, true, true) - yys1573 := string(yys1573Slc) + yys1701Slc = r.DecodeBytes(yys1701Slc, true, true) + yys1701 := string(yys1701Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1573 { + switch yys1701 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -21639,15 +23239,15 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.State = ContainerState{} } else { - yyv1575 := &x.State - yyv1575.CodecDecodeSelf(d) + yyv1703 := &x.State + yyv1703.CodecDecodeSelf(d) } case "lastState": if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { - yyv1576 := &x.LastTerminationState - yyv1576.CodecDecodeSelf(d) + yyv1704 := &x.LastTerminationState + yyv1704.CodecDecodeSelf(d) } case "ready": if r.TryDecodeAsNil() { @@ -21680,9 +23280,9 @@ func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ContainerID = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1573) - } // end switch yys1573 - } // end for yyj1573 + z.DecStructFieldNotFound(-1, yys1701) + } // end switch yys1701 + } // end for yyj1701 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -21690,16 +23290,16 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1582 int - var yyb1582 bool - var yyhl1582 bool = l >= 0 - yyj1582++ - if yyhl1582 { - yyb1582 = yyj1582 > l + var yyj1710 int + var yyb1710 bool + var yyhl1710 bool = l >= 0 + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb1582 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb1582 { + if yyb1710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21709,13 +23309,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Name = string(r.DecodeString()) } - yyj1582++ - if yyhl1582 { - yyb1582 = yyj1582 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb1582 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb1582 { + if yyb1710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21723,16 +23323,16 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.State = ContainerState{} } else { - yyv1584 := &x.State - yyv1584.CodecDecodeSelf(d) + yyv1712 := &x.State + yyv1712.CodecDecodeSelf(d) } - yyj1582++ - if yyhl1582 { - yyb1582 = yyj1582 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb1582 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb1582 { + if yyb1710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21740,16 +23340,16 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { - yyv1585 := &x.LastTerminationState - yyv1585.CodecDecodeSelf(d) + yyv1713 := &x.LastTerminationState + yyv1713.CodecDecodeSelf(d) } - yyj1582++ - if yyhl1582 { - yyb1582 = yyj1582 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb1582 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb1582 { + if yyb1710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21759,13 +23359,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Ready = bool(r.DecodeBool()) } - yyj1582++ - if yyhl1582 { - yyb1582 = yyj1582 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb1582 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb1582 { + if yyb1710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21775,13 +23375,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.RestartCount = int32(r.DecodeInt(32)) } - yyj1582++ - if yyhl1582 { - yyb1582 = yyj1582 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb1582 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb1582 { + if yyb1710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21791,13 +23391,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Image = string(r.DecodeString()) } - yyj1582++ - if yyhl1582 { - yyb1582 = yyj1582 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb1582 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb1582 { + if yyb1710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21807,13 +23407,13 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ImageID = string(r.DecodeString()) } - yyj1582++ - if yyhl1582 { - yyb1582 = yyj1582 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb1582 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb1582 { + if yyb1710 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21824,17 +23424,17 @@ func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ContainerID = string(r.DecodeString()) } for { - yyj1582++ - if yyhl1582 { - yyb1582 = yyj1582 > l + yyj1710++ + if yyhl1710 { + yyb1710 = yyj1710 > l } else { - yyb1582 = r.CheckBreak() + yyb1710 = r.CheckBreak() } - if yyb1582 { + if yyb1710 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1582-1, "") + z.DecStructFieldNotFound(yyj1710-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21843,8 +23443,8 @@ func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1591 := z.EncBinary() - _ = yym1591 + yym1719 := z.EncBinary() + _ = yym1719 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -21856,8 +23456,8 @@ func (x *PodPhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1592 := z.DecBinary() - _ = yym1592 + yym1720 := z.DecBinary() + _ = yym1720 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -21869,8 +23469,8 @@ func (x PodConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1593 := z.EncBinary() - _ = yym1593 + yym1721 := z.EncBinary() + _ = yym1721 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -21882,8 +23482,8 @@ func (x *PodConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1594 := z.DecBinary() - _ = yym1594 + yym1722 := z.DecBinary() + _ = yym1722 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -21898,34 +23498,34 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1595 := z.EncBinary() - _ = yym1595 + yym1723 := z.EncBinary() + _ = yym1723 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1596 := !z.EncBinary() - yy2arr1596 := z.EncBasicHandle().StructToArray - var yyq1596 [6]bool - _, _, _ = yysep1596, yyq1596, yy2arr1596 - const yyr1596 bool = false - yyq1596[2] = true - yyq1596[3] = true - yyq1596[4] = x.Reason != "" - yyq1596[5] = x.Message != "" - var yynn1596 int - if yyr1596 || yy2arr1596 { + yysep1724 := !z.EncBinary() + yy2arr1724 := z.EncBasicHandle().StructToArray + var yyq1724 [6]bool + _, _, _ = yysep1724, yyq1724, yy2arr1724 + const yyr1724 bool = false + yyq1724[2] = true + yyq1724[3] = true + yyq1724[4] = x.Reason != "" + yyq1724[5] = x.Message != "" + var yynn1724 int + if yyr1724 || yy2arr1724 { r.EncodeArrayStart(6) } else { - yynn1596 = 2 - for _, b := range yyq1596 { + yynn1724 = 2 + for _, b := range yyq1724 { if b { - yynn1596++ + yynn1724++ } } - r.EncodeMapStart(yynn1596) - yynn1596 = 0 + r.EncodeMapStart(yynn1724) + yynn1724 = 0 } - if yyr1596 || yy2arr1596 { + if yyr1724 || yy2arr1724 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -21934,7 +23534,7 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr1596 || yy2arr1596 { + if yyr1724 || yy2arr1724 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -21943,85 +23543,85 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr1596 || yy2arr1596 { + if yyr1724 || yy2arr1724 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1596[2] { - yy1600 := &x.LastProbeTime - yym1601 := z.EncBinary() - _ = yym1601 + if yyq1724[2] { + yy1728 := &x.LastProbeTime + yym1729 := z.EncBinary() + _ = yym1729 if false { - } else if z.HasExtensions() && z.EncExt(yy1600) { - } else if yym1601 { - z.EncBinaryMarshal(yy1600) - } else if !yym1601 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1600) + } else if z.HasExtensions() && z.EncExt(yy1728) { + } else if yym1729 { + z.EncBinaryMarshal(yy1728) + } else if !yym1729 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1728) } else { - z.EncFallback(yy1600) + z.EncFallback(yy1728) } } else { r.EncodeNil() } } else { - if yyq1596[2] { + if yyq1724[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1602 := &x.LastProbeTime - yym1603 := z.EncBinary() - _ = yym1603 + yy1730 := &x.LastProbeTime + yym1731 := z.EncBinary() + _ = yym1731 if false { - } else if z.HasExtensions() && z.EncExt(yy1602) { - } else if yym1603 { - z.EncBinaryMarshal(yy1602) - } else if !yym1603 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1602) + } else if z.HasExtensions() && z.EncExt(yy1730) { + } else if yym1731 { + z.EncBinaryMarshal(yy1730) + } else if !yym1731 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1730) } else { - z.EncFallback(yy1602) + z.EncFallback(yy1730) } } } - if yyr1596 || yy2arr1596 { + if yyr1724 || yy2arr1724 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1596[3] { - yy1605 := &x.LastTransitionTime - yym1606 := z.EncBinary() - _ = yym1606 + if yyq1724[3] { + yy1733 := &x.LastTransitionTime + yym1734 := z.EncBinary() + _ = yym1734 if false { - } else if z.HasExtensions() && z.EncExt(yy1605) { - } else if yym1606 { - z.EncBinaryMarshal(yy1605) - } else if !yym1606 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1605) + } else if z.HasExtensions() && z.EncExt(yy1733) { + } else if yym1734 { + z.EncBinaryMarshal(yy1733) + } else if !yym1734 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1733) } else { - z.EncFallback(yy1605) + z.EncFallback(yy1733) } } else { r.EncodeNil() } } else { - if yyq1596[3] { + if yyq1724[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1607 := &x.LastTransitionTime - yym1608 := z.EncBinary() - _ = yym1608 + yy1735 := &x.LastTransitionTime + yym1736 := z.EncBinary() + _ = yym1736 if false { - } else if z.HasExtensions() && z.EncExt(yy1607) { - } else if yym1608 { - z.EncBinaryMarshal(yy1607) - } else if !yym1608 && z.IsJSONHandle() { - z.EncJSONMarshal(yy1607) + } else if z.HasExtensions() && z.EncExt(yy1735) { + } else if yym1736 { + z.EncBinaryMarshal(yy1735) + } else if !yym1736 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1735) } else { - z.EncFallback(yy1607) + z.EncFallback(yy1735) } } } - if yyr1596 || yy2arr1596 { + if yyr1724 || yy2arr1724 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1596[4] { - yym1610 := z.EncBinary() - _ = yym1610 + if yyq1724[4] { + yym1738 := z.EncBinary() + _ = yym1738 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -22030,23 +23630,23 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1596[4] { + if yyq1724[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1611 := z.EncBinary() - _ = yym1611 + yym1739 := z.EncBinary() + _ = yym1739 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr1596 || yy2arr1596 { + if yyr1724 || yy2arr1724 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1596[5] { - yym1613 := z.EncBinary() - _ = yym1613 + if yyq1724[5] { + yym1741 := z.EncBinary() + _ = yym1741 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -22055,19 +23655,19 @@ func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1596[5] { + if yyq1724[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1614 := z.EncBinary() - _ = yym1614 + yym1742 := z.EncBinary() + _ = yym1742 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr1596 || yy2arr1596 { + if yyr1724 || yy2arr1724 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -22080,25 +23680,25 @@ func (x *PodCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1615 := z.DecBinary() - _ = yym1615 + yym1743 := z.DecBinary() + _ = yym1743 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1616 := r.ContainerType() - if yyct1616 == codecSelferValueTypeMap1234 { - yyl1616 := r.ReadMapStart() - if yyl1616 == 0 { + yyct1744 := r.ContainerType() + if yyct1744 == codecSelferValueTypeMap1234 { + yyl1744 := r.ReadMapStart() + if yyl1744 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1616, d) + x.codecDecodeSelfFromMap(yyl1744, d) } - } else if yyct1616 == codecSelferValueTypeArray1234 { - yyl1616 := r.ReadArrayStart() - if yyl1616 == 0 { + } else if yyct1744 == codecSelferValueTypeArray1234 { + yyl1744 := r.ReadArrayStart() + if yyl1744 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1616, d) + x.codecDecodeSelfFromArray(yyl1744, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -22110,12 +23710,12 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1617Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1617Slc - var yyhl1617 bool = l >= 0 - for yyj1617 := 0; ; yyj1617++ { - if yyhl1617 { - if yyj1617 >= l { + var yys1745Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1745Slc + var yyhl1745 bool = l >= 0 + for yyj1745 := 0; ; yyj1745++ { + if yyhl1745 { + if yyj1745 >= l { break } } else { @@ -22124,10 +23724,10 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1617Slc = r.DecodeBytes(yys1617Slc, true, true) - yys1617 := string(yys1617Slc) + yys1745Slc = r.DecodeBytes(yys1745Slc, true, true) + yys1745 := string(yys1745Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1617 { + switch yys1745 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -22144,34 +23744,34 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { - yyv1620 := &x.LastProbeTime - yym1621 := z.DecBinary() - _ = yym1621 + yyv1748 := &x.LastProbeTime + yym1749 := z.DecBinary() + _ = yym1749 if false { - } else if z.HasExtensions() && z.DecExt(yyv1620) { - } else if yym1621 { - z.DecBinaryUnmarshal(yyv1620) - } else if !yym1621 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1620) + } else if z.HasExtensions() && z.DecExt(yyv1748) { + } else if yym1749 { + z.DecBinaryUnmarshal(yyv1748) + } else if !yym1749 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1748) } else { - z.DecFallback(yyv1620, false) + z.DecFallback(yyv1748, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv1622 := &x.LastTransitionTime - yym1623 := z.DecBinary() - _ = yym1623 + yyv1750 := &x.LastTransitionTime + yym1751 := z.DecBinary() + _ = yym1751 if false { - } else if z.HasExtensions() && z.DecExt(yyv1622) { - } else if yym1623 { - z.DecBinaryUnmarshal(yyv1622) - } else if !yym1623 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1622) + } else if z.HasExtensions() && z.DecExt(yyv1750) { + } else if yym1751 { + z.DecBinaryUnmarshal(yyv1750) + } else if !yym1751 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1750) } else { - z.DecFallback(yyv1622, false) + z.DecFallback(yyv1750, false) } } case "reason": @@ -22187,9 +23787,9 @@ func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1617) - } // end switch yys1617 - } // end for yyj1617 + z.DecStructFieldNotFound(-1, yys1745) + } // end switch yys1745 + } // end for yyj1745 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -22197,16 +23797,16 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1626 int - var yyb1626 bool - var yyhl1626 bool = l >= 0 - yyj1626++ - if yyhl1626 { - yyb1626 = yyj1626 > l + var yyj1754 int + var yyb1754 bool + var yyhl1754 bool = l >= 0 + yyj1754++ + if yyhl1754 { + yyb1754 = yyj1754 > l } else { - yyb1626 = r.CheckBreak() + yyb1754 = r.CheckBreak() } - if yyb1626 { + if yyb1754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22216,13 +23816,13 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = PodConditionType(r.DecodeString()) } - yyj1626++ - if yyhl1626 { - yyb1626 = yyj1626 > l + yyj1754++ + if yyhl1754 { + yyb1754 = yyj1754 > l } else { - yyb1626 = r.CheckBreak() + yyb1754 = r.CheckBreak() } - if yyb1626 { + if yyb1754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22232,13 +23832,13 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj1626++ - if yyhl1626 { - yyb1626 = yyj1626 > l + yyj1754++ + if yyhl1754 { + yyb1754 = yyj1754 > l } else { - yyb1626 = r.CheckBreak() + yyb1754 = r.CheckBreak() } - if yyb1626 { + if yyb1754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22246,26 +23846,26 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { - yyv1629 := &x.LastProbeTime - yym1630 := z.DecBinary() - _ = yym1630 + yyv1757 := &x.LastProbeTime + yym1758 := z.DecBinary() + _ = yym1758 if false { - } else if z.HasExtensions() && z.DecExt(yyv1629) { - } else if yym1630 { - z.DecBinaryUnmarshal(yyv1629) - } else if !yym1630 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1629) + } else if z.HasExtensions() && z.DecExt(yyv1757) { + } else if yym1758 { + z.DecBinaryUnmarshal(yyv1757) + } else if !yym1758 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1757) } else { - z.DecFallback(yyv1629, false) + z.DecFallback(yyv1757, false) } } - yyj1626++ - if yyhl1626 { - yyb1626 = yyj1626 > l + yyj1754++ + if yyhl1754 { + yyb1754 = yyj1754 > l } else { - yyb1626 = r.CheckBreak() + yyb1754 = r.CheckBreak() } - if yyb1626 { + if yyb1754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22273,26 +23873,26 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv1631 := &x.LastTransitionTime - yym1632 := z.DecBinary() - _ = yym1632 + yyv1759 := &x.LastTransitionTime + yym1760 := z.DecBinary() + _ = yym1760 if false { - } else if z.HasExtensions() && z.DecExt(yyv1631) { - } else if yym1632 { - z.DecBinaryUnmarshal(yyv1631) - } else if !yym1632 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1631) + } else if z.HasExtensions() && z.DecExt(yyv1759) { + } else if yym1760 { + z.DecBinaryUnmarshal(yyv1759) + } else if !yym1760 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1759) } else { - z.DecFallback(yyv1631, false) + z.DecFallback(yyv1759, false) } } - yyj1626++ - if yyhl1626 { - yyb1626 = yyj1626 > l + yyj1754++ + if yyhl1754 { + yyb1754 = yyj1754 > l } else { - yyb1626 = r.CheckBreak() + yyb1754 = r.CheckBreak() } - if yyb1626 { + if yyb1754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22302,13 +23902,13 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj1626++ - if yyhl1626 { - yyb1626 = yyj1626 > l + yyj1754++ + if yyhl1754 { + yyb1754 = yyj1754 > l } else { - yyb1626 = r.CheckBreak() + yyb1754 = r.CheckBreak() } - if yyb1626 { + if yyb1754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22319,17 +23919,17 @@ func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj1626++ - if yyhl1626 { - yyb1626 = yyj1626 > l + yyj1754++ + if yyhl1754 { + yyb1754 = yyj1754 > l } else { - yyb1626 = r.CheckBreak() + yyb1754 = r.CheckBreak() } - if yyb1626 { + if yyb1754 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1626-1, "") + z.DecStructFieldNotFound(yyj1754-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22338,8 +23938,8 @@ func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1635 := z.EncBinary() - _ = yym1635 + yym1763 := z.EncBinary() + _ = yym1763 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -22351,8 +23951,8 @@ func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1636 := z.DecBinary() - _ = yym1636 + yym1764 := z.DecBinary() + _ = yym1764 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -22364,8 +23964,8 @@ func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1637 := z.EncBinary() - _ = yym1637 + yym1765 := z.EncBinary() + _ = yym1765 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -22377,8 +23977,8 @@ func (x *DNSPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1638 := z.DecBinary() - _ = yym1638 + yym1766 := z.DecBinary() + _ = yym1766 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -22393,36 +23993,36 @@ func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1639 := z.EncBinary() - _ = yym1639 + yym1767 := z.EncBinary() + _ = yym1767 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1640 := !z.EncBinary() - yy2arr1640 := z.EncBasicHandle().StructToArray - var yyq1640 [1]bool - _, _, _ = yysep1640, yyq1640, yy2arr1640 - const yyr1640 bool = false - var yynn1640 int - if yyr1640 || yy2arr1640 { + yysep1768 := !z.EncBinary() + yy2arr1768 := z.EncBasicHandle().StructToArray + var yyq1768 [1]bool + _, _, _ = yysep1768, yyq1768, yy2arr1768 + const yyr1768 bool = false + var yynn1768 int + if yyr1768 || yy2arr1768 { r.EncodeArrayStart(1) } else { - yynn1640 = 1 - for _, b := range yyq1640 { + yynn1768 = 1 + for _, b := range yyq1768 { if b { - yynn1640++ + yynn1768++ } } - r.EncodeMapStart(yynn1640) - yynn1640 = 0 + r.EncodeMapStart(yynn1768) + yynn1768 = 0 } - if yyr1640 || yy2arr1640 { + if yyr1768 || yy2arr1768 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NodeSelectorTerms == nil { r.EncodeNil() } else { - yym1642 := z.EncBinary() - _ = yym1642 + yym1770 := z.EncBinary() + _ = yym1770 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) @@ -22435,15 +24035,15 @@ func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) { if x.NodeSelectorTerms == nil { r.EncodeNil() } else { - yym1643 := z.EncBinary() - _ = yym1643 + yym1771 := z.EncBinary() + _ = yym1771 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) } } } - if yyr1640 || yy2arr1640 { + if yyr1768 || yy2arr1768 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -22456,25 +24056,25 @@ func (x *NodeSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1644 := z.DecBinary() - _ = yym1644 + yym1772 := z.DecBinary() + _ = yym1772 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1645 := r.ContainerType() - if yyct1645 == codecSelferValueTypeMap1234 { - yyl1645 := r.ReadMapStart() - if yyl1645 == 0 { + yyct1773 := r.ContainerType() + if yyct1773 == codecSelferValueTypeMap1234 { + yyl1773 := r.ReadMapStart() + if yyl1773 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1645, d) + x.codecDecodeSelfFromMap(yyl1773, d) } - } else if yyct1645 == codecSelferValueTypeArray1234 { - yyl1645 := r.ReadArrayStart() - if yyl1645 == 0 { + } else if yyct1773 == codecSelferValueTypeArray1234 { + yyl1773 := r.ReadArrayStart() + if yyl1773 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1645, d) + x.codecDecodeSelfFromArray(yyl1773, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -22486,12 +24086,12 @@ func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1646Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1646Slc - var yyhl1646 bool = l >= 0 - for yyj1646 := 0; ; yyj1646++ { - if yyhl1646 { - if yyj1646 >= l { + var yys1774Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1774Slc + var yyhl1774 bool = l >= 0 + for yyj1774 := 0; ; yyj1774++ { + if yyhl1774 { + if yyj1774 >= l { break } } else { @@ -22500,26 +24100,26 @@ func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1646Slc = r.DecodeBytes(yys1646Slc, true, true) - yys1646 := string(yys1646Slc) + yys1774Slc = r.DecodeBytes(yys1774Slc, true, true) + yys1774 := string(yys1774Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1646 { + switch yys1774 { case "nodeSelectorTerms": if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { - yyv1647 := &x.NodeSelectorTerms - yym1648 := z.DecBinary() - _ = yym1648 + yyv1775 := &x.NodeSelectorTerms + yym1776 := z.DecBinary() + _ = yym1776 if false { } else { - h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1647), d) + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1775), d) } } default: - z.DecStructFieldNotFound(-1, yys1646) - } // end switch yys1646 - } // end for yyj1646 + z.DecStructFieldNotFound(-1, yys1774) + } // end switch yys1774 + } // end for yyj1774 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -22527,16 +24127,16 @@ func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1649 int - var yyb1649 bool - var yyhl1649 bool = l >= 0 - yyj1649++ - if yyhl1649 { - yyb1649 = yyj1649 > l + var yyj1777 int + var yyb1777 bool + var yyhl1777 bool = l >= 0 + yyj1777++ + if yyhl1777 { + yyb1777 = yyj1777 > l } else { - yyb1649 = r.CheckBreak() + yyb1777 = r.CheckBreak() } - if yyb1649 { + if yyb1777 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22544,26 +24144,26 @@ func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { - yyv1650 := &x.NodeSelectorTerms - yym1651 := z.DecBinary() - _ = yym1651 + yyv1778 := &x.NodeSelectorTerms + yym1779 := z.DecBinary() + _ = yym1779 if false { } else { - h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1650), d) + h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1778), d) } } for { - yyj1649++ - if yyhl1649 { - yyb1649 = yyj1649 > l + yyj1777++ + if yyhl1777 { + yyb1777 = yyj1777 > l } else { - yyb1649 = r.CheckBreak() + yyb1777 = r.CheckBreak() } - if yyb1649 { + if yyb1777 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1649-1, "") + z.DecStructFieldNotFound(yyj1777-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22575,36 +24175,36 @@ func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1652 := z.EncBinary() - _ = yym1652 + yym1780 := z.EncBinary() + _ = yym1780 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1653 := !z.EncBinary() - yy2arr1653 := z.EncBasicHandle().StructToArray - var yyq1653 [1]bool - _, _, _ = yysep1653, yyq1653, yy2arr1653 - const yyr1653 bool = false - var yynn1653 int - if yyr1653 || yy2arr1653 { + yysep1781 := !z.EncBinary() + yy2arr1781 := z.EncBasicHandle().StructToArray + var yyq1781 [1]bool + _, _, _ = yysep1781, yyq1781, yy2arr1781 + const yyr1781 bool = false + var yynn1781 int + if yyr1781 || yy2arr1781 { r.EncodeArrayStart(1) } else { - yynn1653 = 1 - for _, b := range yyq1653 { + yynn1781 = 1 + for _, b := range yyq1781 { if b { - yynn1653++ + yynn1781++ } } - r.EncodeMapStart(yynn1653) - yynn1653 = 0 + r.EncodeMapStart(yynn1781) + yynn1781 = 0 } - if yyr1653 || yy2arr1653 { + if yyr1781 || yy2arr1781 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.MatchExpressions == nil { r.EncodeNil() } else { - yym1655 := z.EncBinary() - _ = yym1655 + yym1783 := z.EncBinary() + _ = yym1783 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) @@ -22617,15 +24217,15 @@ func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x.MatchExpressions == nil { r.EncodeNil() } else { - yym1656 := z.EncBinary() - _ = yym1656 + yym1784 := z.EncBinary() + _ = yym1784 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) } } } - if yyr1653 || yy2arr1653 { + if yyr1781 || yy2arr1781 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -22638,25 +24238,25 @@ func (x *NodeSelectorTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1657 := z.DecBinary() - _ = yym1657 + yym1785 := z.DecBinary() + _ = yym1785 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1658 := r.ContainerType() - if yyct1658 == codecSelferValueTypeMap1234 { - yyl1658 := r.ReadMapStart() - if yyl1658 == 0 { + yyct1786 := r.ContainerType() + if yyct1786 == codecSelferValueTypeMap1234 { + yyl1786 := r.ReadMapStart() + if yyl1786 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1658, d) + x.codecDecodeSelfFromMap(yyl1786, d) } - } else if yyct1658 == codecSelferValueTypeArray1234 { - yyl1658 := r.ReadArrayStart() - if yyl1658 == 0 { + } else if yyct1786 == codecSelferValueTypeArray1234 { + yyl1786 := r.ReadArrayStart() + if yyl1786 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1658, d) + x.codecDecodeSelfFromArray(yyl1786, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -22668,12 +24268,12 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1659Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1659Slc - var yyhl1659 bool = l >= 0 - for yyj1659 := 0; ; yyj1659++ { - if yyhl1659 { - if yyj1659 >= l { + var yys1787Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1787Slc + var yyhl1787 bool = l >= 0 + for yyj1787 := 0; ; yyj1787++ { + if yyhl1787 { + if yyj1787 >= l { break } } else { @@ -22682,26 +24282,26 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1659Slc = r.DecodeBytes(yys1659Slc, true, true) - yys1659 := string(yys1659Slc) + yys1787Slc = r.DecodeBytes(yys1787Slc, true, true) + yys1787 := string(yys1787Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1659 { + switch yys1787 { case "matchExpressions": if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv1660 := &x.MatchExpressions - yym1661 := z.DecBinary() - _ = yym1661 + yyv1788 := &x.MatchExpressions + yym1789 := z.DecBinary() + _ = yym1789 if false { } else { - h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1660), d) + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1788), d) } } default: - z.DecStructFieldNotFound(-1, yys1659) - } // end switch yys1659 - } // end for yyj1659 + z.DecStructFieldNotFound(-1, yys1787) + } // end switch yys1787 + } // end for yyj1787 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -22709,16 +24309,16 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1662 int - var yyb1662 bool - var yyhl1662 bool = l >= 0 - yyj1662++ - if yyhl1662 { - yyb1662 = yyj1662 > l + var yyj1790 int + var yyb1790 bool + var yyhl1790 bool = l >= 0 + yyj1790++ + if yyhl1790 { + yyb1790 = yyj1790 > l } else { - yyb1662 = r.CheckBreak() + yyb1790 = r.CheckBreak() } - if yyb1662 { + if yyb1790 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22726,26 +24326,26 @@ func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { - yyv1663 := &x.MatchExpressions - yym1664 := z.DecBinary() - _ = yym1664 + yyv1791 := &x.MatchExpressions + yym1792 := z.DecBinary() + _ = yym1792 if false { } else { - h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1663), d) + h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1791), d) } } for { - yyj1662++ - if yyhl1662 { - yyb1662 = yyj1662 > l + yyj1790++ + if yyhl1790 { + yyb1790 = yyj1790 > l } else { - yyb1662 = r.CheckBreak() + yyb1790 = r.CheckBreak() } - if yyb1662 { + if yyb1790 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1662-1, "") + z.DecStructFieldNotFound(yyj1790-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22757,34 +24357,34 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1665 := z.EncBinary() - _ = yym1665 + yym1793 := z.EncBinary() + _ = yym1793 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1666 := !z.EncBinary() - yy2arr1666 := z.EncBasicHandle().StructToArray - var yyq1666 [3]bool - _, _, _ = yysep1666, yyq1666, yy2arr1666 - const yyr1666 bool = false - yyq1666[2] = len(x.Values) != 0 - var yynn1666 int - if yyr1666 || yy2arr1666 { + yysep1794 := !z.EncBinary() + yy2arr1794 := z.EncBasicHandle().StructToArray + var yyq1794 [3]bool + _, _, _ = yysep1794, yyq1794, yy2arr1794 + const yyr1794 bool = false + yyq1794[2] = len(x.Values) != 0 + var yynn1794 int + if yyr1794 || yy2arr1794 { r.EncodeArrayStart(3) } else { - yynn1666 = 2 - for _, b := range yyq1666 { + yynn1794 = 2 + for _, b := range yyq1794 { if b { - yynn1666++ + yynn1794++ } } - r.EncodeMapStart(yynn1666) - yynn1666 = 0 + r.EncodeMapStart(yynn1794) + yynn1794 = 0 } - if yyr1666 || yy2arr1666 { + if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1668 := z.EncBinary() - _ = yym1668 + yym1796 := z.EncBinary() + _ = yym1796 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -22793,14 +24393,14 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1669 := z.EncBinary() - _ = yym1669 + yym1797 := z.EncBinary() + _ = yym1797 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1666 || yy2arr1666 { + if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Operator.CodecEncodeSelf(e) } else { @@ -22809,14 +24409,14 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } - if yyr1666 || yy2arr1666 { + if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1666[2] { + if yyq1794[2] { if x.Values == nil { r.EncodeNil() } else { - yym1672 := z.EncBinary() - _ = yym1672 + yym1800 := z.EncBinary() + _ = yym1800 if false { } else { z.F.EncSliceStringV(x.Values, false, e) @@ -22826,15 +24426,15 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1666[2] { + if yyq1794[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("values")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Values == nil { r.EncodeNil() } else { - yym1673 := z.EncBinary() - _ = yym1673 + yym1801 := z.EncBinary() + _ = yym1801 if false { } else { z.F.EncSliceStringV(x.Values, false, e) @@ -22842,7 +24442,7 @@ func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1666 || yy2arr1666 { + if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -22855,25 +24455,25 @@ func (x *NodeSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1674 := z.DecBinary() - _ = yym1674 + yym1802 := z.DecBinary() + _ = yym1802 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1675 := r.ContainerType() - if yyct1675 == codecSelferValueTypeMap1234 { - yyl1675 := r.ReadMapStart() - if yyl1675 == 0 { + yyct1803 := r.ContainerType() + if yyct1803 == codecSelferValueTypeMap1234 { + yyl1803 := r.ReadMapStart() + if yyl1803 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1675, d) + x.codecDecodeSelfFromMap(yyl1803, d) } - } else if yyct1675 == codecSelferValueTypeArray1234 { - yyl1675 := r.ReadArrayStart() - if yyl1675 == 0 { + } else if yyct1803 == codecSelferValueTypeArray1234 { + yyl1803 := r.ReadArrayStart() + if yyl1803 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1675, d) + x.codecDecodeSelfFromArray(yyl1803, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -22885,12 +24485,12 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1676Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1676Slc - var yyhl1676 bool = l >= 0 - for yyj1676 := 0; ; yyj1676++ { - if yyhl1676 { - if yyj1676 >= l { + var yys1804Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1804Slc + var yyhl1804 bool = l >= 0 + for yyj1804 := 0; ; yyj1804++ { + if yyhl1804 { + if yyj1804 >= l { break } } else { @@ -22899,10 +24499,10 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1676Slc = r.DecodeBytes(yys1676Slc, true, true) - yys1676 := string(yys1676Slc) + yys1804Slc = r.DecodeBytes(yys1804Slc, true, true) + yys1804 := string(yys1804Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1676 { + switch yys1804 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -22919,18 +24519,18 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Values = nil } else { - yyv1679 := &x.Values - yym1680 := z.DecBinary() - _ = yym1680 + yyv1807 := &x.Values + yym1808 := z.DecBinary() + _ = yym1808 if false { } else { - z.F.DecSliceStringX(yyv1679, false, d) + z.F.DecSliceStringX(yyv1807, false, d) } } default: - z.DecStructFieldNotFound(-1, yys1676) - } // end switch yys1676 - } // end for yyj1676 + z.DecStructFieldNotFound(-1, yys1804) + } // end switch yys1804 + } // end for yyj1804 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -22938,16 +24538,16 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1681 int - var yyb1681 bool - var yyhl1681 bool = l >= 0 - yyj1681++ - if yyhl1681 { - yyb1681 = yyj1681 > l + var yyj1809 int + var yyb1809 bool + var yyhl1809 bool = l >= 0 + yyj1809++ + if yyhl1809 { + yyb1809 = yyj1809 > l } else { - yyb1681 = r.CheckBreak() + yyb1809 = r.CheckBreak() } - if yyb1681 { + if yyb1809 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22957,13 +24557,13 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Key = string(r.DecodeString()) } - yyj1681++ - if yyhl1681 { - yyb1681 = yyj1681 > l + yyj1809++ + if yyhl1809 { + yyb1809 = yyj1809 > l } else { - yyb1681 = r.CheckBreak() + yyb1809 = r.CheckBreak() } - if yyb1681 { + if yyb1809 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22973,13 +24573,13 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Operator = NodeSelectorOperator(r.DecodeString()) } - yyj1681++ - if yyhl1681 { - yyb1681 = yyj1681 > l + yyj1809++ + if yyhl1809 { + yyb1809 = yyj1809 > l } else { - yyb1681 = r.CheckBreak() + yyb1809 = r.CheckBreak() } - if yyb1681 { + if yyb1809 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -22987,26 +24587,26 @@ func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Values = nil } else { - yyv1684 := &x.Values - yym1685 := z.DecBinary() - _ = yym1685 + yyv1812 := &x.Values + yym1813 := z.DecBinary() + _ = yym1813 if false { } else { - z.F.DecSliceStringX(yyv1684, false, d) + z.F.DecSliceStringX(yyv1812, false, d) } } for { - yyj1681++ - if yyhl1681 { - yyb1681 = yyj1681 > l + yyj1809++ + if yyhl1809 { + yyb1809 = yyj1809 > l } else { - yyb1681 = r.CheckBreak() + yyb1809 = r.CheckBreak() } - if yyb1681 { + if yyb1809 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1681-1, "") + z.DecStructFieldNotFound(yyj1809-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23015,8 +24615,8 @@ func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1686 := z.EncBinary() - _ = yym1686 + yym1814 := z.EncBinary() + _ = yym1814 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -23028,8 +24628,8 @@ func (x *NodeSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1687 := z.DecBinary() - _ = yym1687 + yym1815 := z.DecBinary() + _ = yym1815 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -23044,35 +24644,35 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1688 := z.EncBinary() - _ = yym1688 + yym1816 := z.EncBinary() + _ = yym1816 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1689 := !z.EncBinary() - yy2arr1689 := z.EncBasicHandle().StructToArray - var yyq1689 [3]bool - _, _, _ = yysep1689, yyq1689, yy2arr1689 - const yyr1689 bool = false - yyq1689[0] = x.NodeAffinity != nil - yyq1689[1] = x.PodAffinity != nil - yyq1689[2] = x.PodAntiAffinity != nil - var yynn1689 int - if yyr1689 || yy2arr1689 { + yysep1817 := !z.EncBinary() + yy2arr1817 := z.EncBasicHandle().StructToArray + var yyq1817 [3]bool + _, _, _ = yysep1817, yyq1817, yy2arr1817 + const yyr1817 bool = false + yyq1817[0] = x.NodeAffinity != nil + yyq1817[1] = x.PodAffinity != nil + yyq1817[2] = x.PodAntiAffinity != nil + var yynn1817 int + if yyr1817 || yy2arr1817 { r.EncodeArrayStart(3) } else { - yynn1689 = 0 - for _, b := range yyq1689 { + yynn1817 = 0 + for _, b := range yyq1817 { if b { - yynn1689++ + yynn1817++ } } - r.EncodeMapStart(yynn1689) - yynn1689 = 0 + r.EncodeMapStart(yynn1817) + yynn1817 = 0 } - if yyr1689 || yy2arr1689 { + if yyr1817 || yy2arr1817 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1689[0] { + if yyq1817[0] { if x.NodeAffinity == nil { r.EncodeNil() } else { @@ -23082,7 +24682,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1689[0] { + if yyq1817[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -23093,9 +24693,9 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1689 || yy2arr1689 { + if yyr1817 || yy2arr1817 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1689[1] { + if yyq1817[1] { if x.PodAffinity == nil { r.EncodeNil() } else { @@ -23105,7 +24705,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1689[1] { + if yyq1817[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -23116,9 +24716,9 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1689 || yy2arr1689 { + if yyr1817 || yy2arr1817 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1689[2] { + if yyq1817[2] { if x.PodAntiAffinity == nil { r.EncodeNil() } else { @@ -23128,7 +24728,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1689[2] { + if yyq1817[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAntiAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -23139,7 +24739,7 @@ func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1689 || yy2arr1689 { + if yyr1817 || yy2arr1817 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -23152,25 +24752,25 @@ func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1693 := z.DecBinary() - _ = yym1693 + yym1821 := z.DecBinary() + _ = yym1821 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1694 := r.ContainerType() - if yyct1694 == codecSelferValueTypeMap1234 { - yyl1694 := r.ReadMapStart() - if yyl1694 == 0 { + yyct1822 := r.ContainerType() + if yyct1822 == codecSelferValueTypeMap1234 { + yyl1822 := r.ReadMapStart() + if yyl1822 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1694, d) + x.codecDecodeSelfFromMap(yyl1822, d) } - } else if yyct1694 == codecSelferValueTypeArray1234 { - yyl1694 := r.ReadArrayStart() - if yyl1694 == 0 { + } else if yyct1822 == codecSelferValueTypeArray1234 { + yyl1822 := r.ReadArrayStart() + if yyl1822 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1694, d) + x.codecDecodeSelfFromArray(yyl1822, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -23182,12 +24782,12 @@ func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1695Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1695Slc - var yyhl1695 bool = l >= 0 - for yyj1695 := 0; ; yyj1695++ { - if yyhl1695 { - if yyj1695 >= l { + var yys1823Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1823Slc + var yyhl1823 bool = l >= 0 + for yyj1823 := 0; ; yyj1823++ { + if yyhl1823 { + if yyj1823 >= l { break } } else { @@ -23196,10 +24796,10 @@ func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1695Slc = r.DecodeBytes(yys1695Slc, true, true) - yys1695 := string(yys1695Slc) + yys1823Slc = r.DecodeBytes(yys1823Slc, true, true) + yys1823 := string(yys1823Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1695 { + switch yys1823 { case "nodeAffinity": if r.TryDecodeAsNil() { if x.NodeAffinity != nil { @@ -23234,9 +24834,9 @@ func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.PodAntiAffinity.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1695) - } // end switch yys1695 - } // end for yyj1695 + z.DecStructFieldNotFound(-1, yys1823) + } // end switch yys1823 + } // end for yyj1823 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -23244,16 +24844,16 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1699 int - var yyb1699 bool - var yyhl1699 bool = l >= 0 - yyj1699++ - if yyhl1699 { - yyb1699 = yyj1699 > l + var yyj1827 int + var yyb1827 bool + var yyhl1827 bool = l >= 0 + yyj1827++ + if yyhl1827 { + yyb1827 = yyj1827 > l } else { - yyb1699 = r.CheckBreak() + yyb1827 = r.CheckBreak() } - if yyb1699 { + if yyb1827 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23268,13 +24868,13 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.NodeAffinity.CodecDecodeSelf(d) } - yyj1699++ - if yyhl1699 { - yyb1699 = yyj1699 > l + yyj1827++ + if yyhl1827 { + yyb1827 = yyj1827 > l } else { - yyb1699 = r.CheckBreak() + yyb1827 = r.CheckBreak() } - if yyb1699 { + if yyb1827 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23289,13 +24889,13 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.PodAffinity.CodecDecodeSelf(d) } - yyj1699++ - if yyhl1699 { - yyb1699 = yyj1699 > l + yyj1827++ + if yyhl1827 { + yyb1827 = yyj1827 > l } else { - yyb1699 = r.CheckBreak() + yyb1827 = r.CheckBreak() } - if yyb1699 { + if yyb1827 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23311,17 +24911,17 @@ func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.PodAntiAffinity.CodecDecodeSelf(d) } for { - yyj1699++ - if yyhl1699 { - yyb1699 = yyj1699 > l + yyj1827++ + if yyhl1827 { + yyb1827 = yyj1827 > l } else { - yyb1699 = r.CheckBreak() + yyb1827 = r.CheckBreak() } - if yyb1699 { + if yyb1827 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1699-1, "") + z.DecStructFieldNotFound(yyj1827-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23333,39 +24933,39 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1703 := z.EncBinary() - _ = yym1703 + yym1831 := z.EncBinary() + _ = yym1831 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1704 := !z.EncBinary() - yy2arr1704 := z.EncBasicHandle().StructToArray - var yyq1704 [2]bool - _, _, _ = yysep1704, yyq1704, yy2arr1704 - const yyr1704 bool = false - yyq1704[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 - yyq1704[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 - var yynn1704 int - if yyr1704 || yy2arr1704 { + yysep1832 := !z.EncBinary() + yy2arr1832 := z.EncBasicHandle().StructToArray + var yyq1832 [2]bool + _, _, _ = yysep1832, yyq1832, yy2arr1832 + const yyr1832 bool = false + yyq1832[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 + yyq1832[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 + var yynn1832 int + if yyr1832 || yy2arr1832 { r.EncodeArrayStart(2) } else { - yynn1704 = 0 - for _, b := range yyq1704 { + yynn1832 = 0 + for _, b := range yyq1832 { if b { - yynn1704++ + yynn1832++ } } - r.EncodeMapStart(yynn1704) - yynn1704 = 0 + r.EncodeMapStart(yynn1832) + yynn1832 = 0 } - if yyr1704 || yy2arr1704 { + if yyr1832 || yy2arr1832 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1704[0] { + if yyq1832[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1706 := z.EncBinary() - _ = yym1706 + yym1834 := z.EncBinary() + _ = yym1834 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -23375,15 +24975,15 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1704[0] { + if yyq1832[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1707 := z.EncBinary() - _ = yym1707 + yym1835 := z.EncBinary() + _ = yym1835 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -23391,14 +24991,14 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1704 || yy2arr1704 { + if yyr1832 || yy2arr1832 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1704[1] { + if yyq1832[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1709 := z.EncBinary() - _ = yym1709 + yym1837 := z.EncBinary() + _ = yym1837 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -23408,15 +25008,15 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1704[1] { + if yyq1832[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1710 := z.EncBinary() - _ = yym1710 + yym1838 := z.EncBinary() + _ = yym1838 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -23424,7 +25024,7 @@ func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1704 || yy2arr1704 { + if yyr1832 || yy2arr1832 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -23437,25 +25037,25 @@ func (x *PodAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1711 := z.DecBinary() - _ = yym1711 + yym1839 := z.DecBinary() + _ = yym1839 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1712 := r.ContainerType() - if yyct1712 == codecSelferValueTypeMap1234 { - yyl1712 := r.ReadMapStart() - if yyl1712 == 0 { + yyct1840 := r.ContainerType() + if yyct1840 == codecSelferValueTypeMap1234 { + yyl1840 := r.ReadMapStart() + if yyl1840 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1712, d) + x.codecDecodeSelfFromMap(yyl1840, d) } - } else if yyct1712 == codecSelferValueTypeArray1234 { - yyl1712 := r.ReadArrayStart() - if yyl1712 == 0 { + } else if yyct1840 == codecSelferValueTypeArray1234 { + yyl1840 := r.ReadArrayStart() + if yyl1840 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1712, d) + x.codecDecodeSelfFromArray(yyl1840, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -23467,12 +25067,12 @@ func (x *PodAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1713Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1713Slc - var yyhl1713 bool = l >= 0 - for yyj1713 := 0; ; yyj1713++ { - if yyhl1713 { - if yyj1713 >= l { + var yys1841Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1841Slc + var yyhl1841 bool = l >= 0 + for yyj1841 := 0; ; yyj1841++ { + if yyhl1841 { + if yyj1841 >= l { break } } else { @@ -23481,38 +25081,38 @@ func (x *PodAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1713Slc = r.DecodeBytes(yys1713Slc, true, true) - yys1713 := string(yys1713Slc) + yys1841Slc = r.DecodeBytes(yys1841Slc, true, true) + yys1841 := string(yys1841Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1713 { + switch yys1841 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1714 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1715 := z.DecBinary() - _ = yym1715 + yyv1842 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1843 := z.DecBinary() + _ = yym1843 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1714), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1842), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1716 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1717 := z.DecBinary() - _ = yym1717 + yyv1844 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1845 := z.DecBinary() + _ = yym1845 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1716), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1844), d) } } default: - z.DecStructFieldNotFound(-1, yys1713) - } // end switch yys1713 - } // end for yyj1713 + z.DecStructFieldNotFound(-1, yys1841) + } // end switch yys1841 + } // end for yyj1841 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -23520,16 +25120,16 @@ func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1718 int - var yyb1718 bool - var yyhl1718 bool = l >= 0 - yyj1718++ - if yyhl1718 { - yyb1718 = yyj1718 > l + var yyj1846 int + var yyb1846 bool + var yyhl1846 bool = l >= 0 + yyj1846++ + if yyhl1846 { + yyb1846 = yyj1846 > l } else { - yyb1718 = r.CheckBreak() + yyb1846 = r.CheckBreak() } - if yyb1718 { + if yyb1846 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23537,21 +25137,21 @@ func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1719 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1720 := z.DecBinary() - _ = yym1720 + yyv1847 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1848 := z.DecBinary() + _ = yym1848 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1719), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1847), d) } } - yyj1718++ - if yyhl1718 { - yyb1718 = yyj1718 > l + yyj1846++ + if yyhl1846 { + yyb1846 = yyj1846 > l } else { - yyb1718 = r.CheckBreak() + yyb1846 = r.CheckBreak() } - if yyb1718 { + if yyb1846 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23559,26 +25159,26 @@ func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1721 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1722 := z.DecBinary() - _ = yym1722 + yyv1849 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1850 := z.DecBinary() + _ = yym1850 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1721), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1849), d) } } for { - yyj1718++ - if yyhl1718 { - yyb1718 = yyj1718 > l + yyj1846++ + if yyhl1846 { + yyb1846 = yyj1846 > l } else { - yyb1718 = r.CheckBreak() + yyb1846 = r.CheckBreak() } - if yyb1718 { + if yyb1846 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1718-1, "") + z.DecStructFieldNotFound(yyj1846-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23590,39 +25190,39 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1723 := z.EncBinary() - _ = yym1723 + yym1851 := z.EncBinary() + _ = yym1851 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1724 := !z.EncBinary() - yy2arr1724 := z.EncBasicHandle().StructToArray - var yyq1724 [2]bool - _, _, _ = yysep1724, yyq1724, yy2arr1724 - const yyr1724 bool = false - yyq1724[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 - yyq1724[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 - var yynn1724 int - if yyr1724 || yy2arr1724 { + yysep1852 := !z.EncBinary() + yy2arr1852 := z.EncBasicHandle().StructToArray + var yyq1852 [2]bool + _, _, _ = yysep1852, yyq1852, yy2arr1852 + const yyr1852 bool = false + yyq1852[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 + yyq1852[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 + var yynn1852 int + if yyr1852 || yy2arr1852 { r.EncodeArrayStart(2) } else { - yynn1724 = 0 - for _, b := range yyq1724 { + yynn1852 = 0 + for _, b := range yyq1852 { if b { - yynn1724++ + yynn1852++ } } - r.EncodeMapStart(yynn1724) - yynn1724 = 0 + r.EncodeMapStart(yynn1852) + yynn1852 = 0 } - if yyr1724 || yy2arr1724 { + if yyr1852 || yy2arr1852 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1724[0] { + if yyq1852[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1726 := z.EncBinary() - _ = yym1726 + yym1854 := z.EncBinary() + _ = yym1854 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -23632,15 +25232,15 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1724[0] { + if yyq1852[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1727 := z.EncBinary() - _ = yym1727 + yym1855 := z.EncBinary() + _ = yym1855 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) @@ -23648,14 +25248,14 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1724 || yy2arr1724 { + if yyr1852 || yy2arr1852 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1724[1] { + if yyq1852[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1729 := z.EncBinary() - _ = yym1729 + yym1857 := z.EncBinary() + _ = yym1857 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -23665,15 +25265,15 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1724[1] { + if yyq1852[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1730 := z.EncBinary() - _ = yym1730 + yym1858 := z.EncBinary() + _ = yym1858 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -23681,7 +25281,7 @@ func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1724 || yy2arr1724 { + if yyr1852 || yy2arr1852 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -23694,25 +25294,25 @@ func (x *PodAntiAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1731 := z.DecBinary() - _ = yym1731 + yym1859 := z.DecBinary() + _ = yym1859 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1732 := r.ContainerType() - if yyct1732 == codecSelferValueTypeMap1234 { - yyl1732 := r.ReadMapStart() - if yyl1732 == 0 { + yyct1860 := r.ContainerType() + if yyct1860 == codecSelferValueTypeMap1234 { + yyl1860 := r.ReadMapStart() + if yyl1860 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1732, d) + x.codecDecodeSelfFromMap(yyl1860, d) } - } else if yyct1732 == codecSelferValueTypeArray1234 { - yyl1732 := r.ReadArrayStart() - if yyl1732 == 0 { + } else if yyct1860 == codecSelferValueTypeArray1234 { + yyl1860 := r.ReadArrayStart() + if yyl1860 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1732, d) + x.codecDecodeSelfFromArray(yyl1860, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -23724,12 +25324,12 @@ func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1733Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1733Slc - var yyhl1733 bool = l >= 0 - for yyj1733 := 0; ; yyj1733++ { - if yyhl1733 { - if yyj1733 >= l { + var yys1861Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1861Slc + var yyhl1861 bool = l >= 0 + for yyj1861 := 0; ; yyj1861++ { + if yyhl1861 { + if yyj1861 >= l { break } } else { @@ -23738,38 +25338,38 @@ func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1733Slc = r.DecodeBytes(yys1733Slc, true, true) - yys1733 := string(yys1733Slc) + yys1861Slc = r.DecodeBytes(yys1861Slc, true, true) + yys1861 := string(yys1861Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1733 { + switch yys1861 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1734 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1735 := z.DecBinary() - _ = yym1735 + yyv1862 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1863 := z.DecBinary() + _ = yym1863 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1734), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1862), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1736 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1737 := z.DecBinary() - _ = yym1737 + yyv1864 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1865 := z.DecBinary() + _ = yym1865 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1736), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1864), d) } } default: - z.DecStructFieldNotFound(-1, yys1733) - } // end switch yys1733 - } // end for yyj1733 + z.DecStructFieldNotFound(-1, yys1861) + } // end switch yys1861 + } // end for yyj1861 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -23777,16 +25377,16 @@ func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1738 int - var yyb1738 bool - var yyhl1738 bool = l >= 0 - yyj1738++ - if yyhl1738 { - yyb1738 = yyj1738 > l + var yyj1866 int + var yyb1866 bool + var yyhl1866 bool = l >= 0 + yyj1866++ + if yyhl1866 { + yyb1866 = yyj1866 > l } else { - yyb1738 = r.CheckBreak() + yyb1866 = r.CheckBreak() } - if yyb1738 { + if yyb1866 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23794,21 +25394,21 @@ func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1739 := &x.RequiredDuringSchedulingIgnoredDuringExecution - yym1740 := z.DecBinary() - _ = yym1740 + yyv1867 := &x.RequiredDuringSchedulingIgnoredDuringExecution + yym1868 := z.DecBinary() + _ = yym1868 if false { } else { - h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1739), d) + h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1867), d) } } - yyj1738++ - if yyhl1738 { - yyb1738 = yyj1738 > l + yyj1866++ + if yyhl1866 { + yyb1866 = yyj1866 > l } else { - yyb1738 = r.CheckBreak() + yyb1866 = r.CheckBreak() } - if yyb1738 { + if yyb1866 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -23816,26 +25416,26 @@ func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1741 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1742 := z.DecBinary() - _ = yym1742 + yyv1869 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1870 := z.DecBinary() + _ = yym1870 if false { } else { - h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1741), d) + h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1869), d) } } for { - yyj1738++ - if yyhl1738 { - yyb1738 = yyj1738 > l + yyj1866++ + if yyhl1866 { + yyb1866 = yyj1866 > l } else { - yyb1738 = r.CheckBreak() + yyb1866 = r.CheckBreak() } - if yyb1738 { + if yyb1866 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1738-1, "") + z.DecStructFieldNotFound(yyj1866-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23847,33 +25447,33 @@ func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1743 := z.EncBinary() - _ = yym1743 + yym1871 := z.EncBinary() + _ = yym1871 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1744 := !z.EncBinary() - yy2arr1744 := z.EncBasicHandle().StructToArray - var yyq1744 [2]bool - _, _, _ = yysep1744, yyq1744, yy2arr1744 - const yyr1744 bool = false - var yynn1744 int - if yyr1744 || yy2arr1744 { + yysep1872 := !z.EncBinary() + yy2arr1872 := z.EncBasicHandle().StructToArray + var yyq1872 [2]bool + _, _, _ = yysep1872, yyq1872, yy2arr1872 + const yyr1872 bool = false + var yynn1872 int + if yyr1872 || yy2arr1872 { r.EncodeArrayStart(2) } else { - yynn1744 = 2 - for _, b := range yyq1744 { + yynn1872 = 2 + for _, b := range yyq1872 { if b { - yynn1744++ + yynn1872++ } } - r.EncodeMapStart(yynn1744) - yynn1744 = 0 + r.EncodeMapStart(yynn1872) + yynn1872 = 0 } - if yyr1744 || yy2arr1744 { + if yyr1872 || yy2arr1872 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1746 := z.EncBinary() - _ = yym1746 + yym1874 := z.EncBinary() + _ = yym1874 if false { } else { r.EncodeInt(int64(x.Weight)) @@ -23882,25 +25482,25 @@ func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1747 := z.EncBinary() - _ = yym1747 + yym1875 := z.EncBinary() + _ = yym1875 if false { } else { r.EncodeInt(int64(x.Weight)) } } - if yyr1744 || yy2arr1744 { + if yyr1872 || yy2arr1872 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1749 := &x.PodAffinityTerm - yy1749.CodecEncodeSelf(e) + yy1877 := &x.PodAffinityTerm + yy1877.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1750 := &x.PodAffinityTerm - yy1750.CodecEncodeSelf(e) + yy1878 := &x.PodAffinityTerm + yy1878.CodecEncodeSelf(e) } - if yyr1744 || yy2arr1744 { + if yyr1872 || yy2arr1872 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -23913,25 +25513,25 @@ func (x *WeightedPodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1751 := z.DecBinary() - _ = yym1751 + yym1879 := z.DecBinary() + _ = yym1879 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1752 := r.ContainerType() - if yyct1752 == codecSelferValueTypeMap1234 { - yyl1752 := r.ReadMapStart() - if yyl1752 == 0 { + yyct1880 := r.ContainerType() + if yyct1880 == codecSelferValueTypeMap1234 { + yyl1880 := r.ReadMapStart() + if yyl1880 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1752, d) + x.codecDecodeSelfFromMap(yyl1880, d) } - } else if yyct1752 == codecSelferValueTypeArray1234 { - yyl1752 := r.ReadArrayStart() - if yyl1752 == 0 { + } else if yyct1880 == codecSelferValueTypeArray1234 { + yyl1880 := r.ReadArrayStart() + if yyl1880 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1752, d) + x.codecDecodeSelfFromArray(yyl1880, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -23943,12 +25543,12 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1753Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1753Slc - var yyhl1753 bool = l >= 0 - for yyj1753 := 0; ; yyj1753++ { - if yyhl1753 { - if yyj1753 >= l { + var yys1881Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1881Slc + var yyhl1881 bool = l >= 0 + for yyj1881 := 0; ; yyj1881++ { + if yyhl1881 { + if yyj1881 >= l { break } } else { @@ -23957,10 +25557,10 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1753Slc = r.DecodeBytes(yys1753Slc, true, true) - yys1753 := string(yys1753Slc) + yys1881Slc = r.DecodeBytes(yys1881Slc, true, true) + yys1881 := string(yys1881Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1753 { + switch yys1881 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 @@ -23971,13 +25571,13 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.PodAffinityTerm = PodAffinityTerm{} } else { - yyv1755 := &x.PodAffinityTerm - yyv1755.CodecDecodeSelf(d) + yyv1883 := &x.PodAffinityTerm + yyv1883.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1753) - } // end switch yys1753 - } // end for yyj1753 + z.DecStructFieldNotFound(-1, yys1881) + } // end switch yys1881 + } // end for yyj1881 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -23985,16 +25585,16 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1756 int - var yyb1756 bool - var yyhl1756 bool = l >= 0 - yyj1756++ - if yyhl1756 { - yyb1756 = yyj1756 > l + var yyj1884 int + var yyb1884 bool + var yyhl1884 bool = l >= 0 + yyj1884++ + if yyhl1884 { + yyb1884 = yyj1884 > l } else { - yyb1756 = r.CheckBreak() + yyb1884 = r.CheckBreak() } - if yyb1756 { + if yyb1884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24004,13 +25604,13 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Weight = int32(r.DecodeInt(32)) } - yyj1756++ - if yyhl1756 { - yyb1756 = yyj1756 > l + yyj1884++ + if yyhl1884 { + yyb1884 = yyj1884 > l } else { - yyb1756 = r.CheckBreak() + yyb1884 = r.CheckBreak() } - if yyb1756 { + if yyb1884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24018,21 +25618,21 @@ func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.PodAffinityTerm = PodAffinityTerm{} } else { - yyv1758 := &x.PodAffinityTerm - yyv1758.CodecDecodeSelf(d) + yyv1886 := &x.PodAffinityTerm + yyv1886.CodecDecodeSelf(d) } for { - yyj1756++ - if yyhl1756 { - yyb1756 = yyj1756 > l + yyj1884++ + if yyhl1884 { + yyb1884 = yyj1884 > l } else { - yyb1756 = r.CheckBreak() + yyb1884 = r.CheckBreak() } - if yyb1756 { + if yyb1884 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1756-1, "") + z.DecStructFieldNotFound(yyj1884-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24044,39 +25644,39 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1759 := z.EncBinary() - _ = yym1759 + yym1887 := z.EncBinary() + _ = yym1887 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1760 := !z.EncBinary() - yy2arr1760 := z.EncBasicHandle().StructToArray - var yyq1760 [3]bool - _, _, _ = yysep1760, yyq1760, yy2arr1760 - const yyr1760 bool = false - yyq1760[0] = x.LabelSelector != nil - yyq1760[2] = x.TopologyKey != "" - var yynn1760 int - if yyr1760 || yy2arr1760 { + yysep1888 := !z.EncBinary() + yy2arr1888 := z.EncBasicHandle().StructToArray + var yyq1888 [3]bool + _, _, _ = yysep1888, yyq1888, yy2arr1888 + const yyr1888 bool = false + yyq1888[0] = x.LabelSelector != nil + yyq1888[2] = x.TopologyKey != "" + var yynn1888 int + if yyr1888 || yy2arr1888 { r.EncodeArrayStart(3) } else { - yynn1760 = 1 - for _, b := range yyq1760 { + yynn1888 = 1 + for _, b := range yyq1888 { if b { - yynn1760++ + yynn1888++ } } - r.EncodeMapStart(yynn1760) - yynn1760 = 0 + r.EncodeMapStart(yynn1888) + yynn1888 = 0 } - if yyr1760 || yy2arr1760 { + if yyr1888 || yy2arr1888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1760[0] { + if yyq1888[0] { if x.LabelSelector == nil { r.EncodeNil() } else { - yym1762 := z.EncBinary() - _ = yym1762 + yym1890 := z.EncBinary() + _ = yym1890 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { @@ -24087,15 +25687,15 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1760[0] { + if yyq1888[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LabelSelector == nil { r.EncodeNil() } else { - yym1763 := z.EncBinary() - _ = yym1763 + yym1891 := z.EncBinary() + _ = yym1891 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { @@ -24104,13 +25704,13 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1760 || yy2arr1760 { + if yyr1888 || yy2arr1888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Namespaces == nil { r.EncodeNil() } else { - yym1765 := z.EncBinary() - _ = yym1765 + yym1893 := z.EncBinary() + _ = yym1893 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) @@ -24123,19 +25723,19 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x.Namespaces == nil { r.EncodeNil() } else { - yym1766 := z.EncBinary() - _ = yym1766 + yym1894 := z.EncBinary() + _ = yym1894 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) } } } - if yyr1760 || yy2arr1760 { + if yyr1888 || yy2arr1888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1760[2] { - yym1768 := z.EncBinary() - _ = yym1768 + if yyq1888[2] { + yym1896 := z.EncBinary() + _ = yym1896 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) @@ -24144,19 +25744,19 @@ func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1760[2] { + if yyq1888[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("topologyKey")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1769 := z.EncBinary() - _ = yym1769 + yym1897 := z.EncBinary() + _ = yym1897 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) } } } - if yyr1760 || yy2arr1760 { + if yyr1888 || yy2arr1888 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -24169,25 +25769,25 @@ func (x *PodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1770 := z.DecBinary() - _ = yym1770 + yym1898 := z.DecBinary() + _ = yym1898 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1771 := r.ContainerType() - if yyct1771 == codecSelferValueTypeMap1234 { - yyl1771 := r.ReadMapStart() - if yyl1771 == 0 { + yyct1899 := r.ContainerType() + if yyct1899 == codecSelferValueTypeMap1234 { + yyl1899 := r.ReadMapStart() + if yyl1899 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1771, d) + x.codecDecodeSelfFromMap(yyl1899, d) } - } else if yyct1771 == codecSelferValueTypeArray1234 { - yyl1771 := r.ReadArrayStart() - if yyl1771 == 0 { + } else if yyct1899 == codecSelferValueTypeArray1234 { + yyl1899 := r.ReadArrayStart() + if yyl1899 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1771, d) + x.codecDecodeSelfFromArray(yyl1899, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -24199,12 +25799,12 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1772Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1772Slc - var yyhl1772 bool = l >= 0 - for yyj1772 := 0; ; yyj1772++ { - if yyhl1772 { - if yyj1772 >= l { + var yys1900Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1900Slc + var yyhl1900 bool = l >= 0 + for yyj1900 := 0; ; yyj1900++ { + if yyhl1900 { + if yyj1900 >= l { break } } else { @@ -24213,10 +25813,10 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1772Slc = r.DecodeBytes(yys1772Slc, true, true) - yys1772 := string(yys1772Slc) + yys1900Slc = r.DecodeBytes(yys1900Slc, true, true) + yys1900 := string(yys1900Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1772 { + switch yys1900 { case "labelSelector": if r.TryDecodeAsNil() { if x.LabelSelector != nil { @@ -24226,8 +25826,8 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.LabelSelector == nil { x.LabelSelector = new(pkg2_unversioned.LabelSelector) } - yym1774 := z.DecBinary() - _ = yym1774 + yym1902 := z.DecBinary() + _ = yym1902 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { @@ -24238,12 +25838,12 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Namespaces = nil } else { - yyv1775 := &x.Namespaces - yym1776 := z.DecBinary() - _ = yym1776 + yyv1903 := &x.Namespaces + yym1904 := z.DecBinary() + _ = yym1904 if false { } else { - z.F.DecSliceStringX(yyv1775, false, d) + z.F.DecSliceStringX(yyv1903, false, d) } } case "topologyKey": @@ -24253,9 +25853,9 @@ func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TopologyKey = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1772) - } // end switch yys1772 - } // end for yyj1772 + z.DecStructFieldNotFound(-1, yys1900) + } // end switch yys1900 + } // end for yyj1900 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -24263,16 +25863,16 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1778 int - var yyb1778 bool - var yyhl1778 bool = l >= 0 - yyj1778++ - if yyhl1778 { - yyb1778 = yyj1778 > l + var yyj1906 int + var yyb1906 bool + var yyhl1906 bool = l >= 0 + yyj1906++ + if yyhl1906 { + yyb1906 = yyj1906 > l } else { - yyb1778 = r.CheckBreak() + yyb1906 = r.CheckBreak() } - if yyb1778 { + if yyb1906 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24285,21 +25885,21 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.LabelSelector == nil { x.LabelSelector = new(pkg2_unversioned.LabelSelector) } - yym1780 := z.DecBinary() - _ = yym1780 + yym1908 := z.DecBinary() + _ = yym1908 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { z.DecFallback(x.LabelSelector, false) } } - yyj1778++ - if yyhl1778 { - yyb1778 = yyj1778 > l + yyj1906++ + if yyhl1906 { + yyb1906 = yyj1906 > l } else { - yyb1778 = r.CheckBreak() + yyb1906 = r.CheckBreak() } - if yyb1778 { + if yyb1906 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24307,21 +25907,21 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Namespaces = nil } else { - yyv1781 := &x.Namespaces - yym1782 := z.DecBinary() - _ = yym1782 + yyv1909 := &x.Namespaces + yym1910 := z.DecBinary() + _ = yym1910 if false { } else { - z.F.DecSliceStringX(yyv1781, false, d) + z.F.DecSliceStringX(yyv1909, false, d) } } - yyj1778++ - if yyhl1778 { - yyb1778 = yyj1778 > l + yyj1906++ + if yyhl1906 { + yyb1906 = yyj1906 > l } else { - yyb1778 = r.CheckBreak() + yyb1906 = r.CheckBreak() } - if yyb1778 { + if yyb1906 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24332,17 +25932,17 @@ func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.TopologyKey = string(r.DecodeString()) } for { - yyj1778++ - if yyhl1778 { - yyb1778 = yyj1778 > l + yyj1906++ + if yyhl1906 { + yyb1906 = yyj1906 > l } else { - yyb1778 = r.CheckBreak() + yyb1906 = r.CheckBreak() } - if yyb1778 { + if yyb1906 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1778-1, "") + z.DecStructFieldNotFound(yyj1906-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24354,34 +25954,34 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1784 := z.EncBinary() - _ = yym1784 + yym1912 := z.EncBinary() + _ = yym1912 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1785 := !z.EncBinary() - yy2arr1785 := z.EncBasicHandle().StructToArray - var yyq1785 [2]bool - _, _, _ = yysep1785, yyq1785, yy2arr1785 - const yyr1785 bool = false - yyq1785[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil - yyq1785[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 - var yynn1785 int - if yyr1785 || yy2arr1785 { + yysep1913 := !z.EncBinary() + yy2arr1913 := z.EncBasicHandle().StructToArray + var yyq1913 [2]bool + _, _, _ = yysep1913, yyq1913, yy2arr1913 + const yyr1913 bool = false + yyq1913[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil + yyq1913[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 + var yynn1913 int + if yyr1913 || yy2arr1913 { r.EncodeArrayStart(2) } else { - yynn1785 = 0 - for _, b := range yyq1785 { + yynn1913 = 0 + for _, b := range yyq1913 { if b { - yynn1785++ + yynn1913++ } } - r.EncodeMapStart(yynn1785) - yynn1785 = 0 + r.EncodeMapStart(yynn1913) + yynn1913 = 0 } - if yyr1785 || yy2arr1785 { + if yyr1913 || yy2arr1913 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1785[0] { + if yyq1913[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { @@ -24391,7 +25991,7 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1785[0] { + if yyq1913[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -24402,14 +26002,14 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1785 || yy2arr1785 { + if yyr1913 || yy2arr1913 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1785[1] { + if yyq1913[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1788 := z.EncBinary() - _ = yym1788 + yym1916 := z.EncBinary() + _ = yym1916 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -24419,15 +26019,15 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1785[1] { + if yyq1913[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { - yym1789 := z.EncBinary() - _ = yym1789 + yym1917 := z.EncBinary() + _ = yym1917 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) @@ -24435,7 +26035,7 @@ func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1785 || yy2arr1785 { + if yyr1913 || yy2arr1913 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -24448,25 +26048,25 @@ func (x *NodeAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1790 := z.DecBinary() - _ = yym1790 + yym1918 := z.DecBinary() + _ = yym1918 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1791 := r.ContainerType() - if yyct1791 == codecSelferValueTypeMap1234 { - yyl1791 := r.ReadMapStart() - if yyl1791 == 0 { + yyct1919 := r.ContainerType() + if yyct1919 == codecSelferValueTypeMap1234 { + yyl1919 := r.ReadMapStart() + if yyl1919 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1791, d) + x.codecDecodeSelfFromMap(yyl1919, d) } - } else if yyct1791 == codecSelferValueTypeArray1234 { - yyl1791 := r.ReadArrayStart() - if yyl1791 == 0 { + } else if yyct1919 == codecSelferValueTypeArray1234 { + yyl1919 := r.ReadArrayStart() + if yyl1919 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1791, d) + x.codecDecodeSelfFromArray(yyl1919, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -24478,12 +26078,12 @@ func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1792Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1792Slc - var yyhl1792 bool = l >= 0 - for yyj1792 := 0; ; yyj1792++ { - if yyhl1792 { - if yyj1792 >= l { + var yys1920Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1920Slc + var yyhl1920 bool = l >= 0 + for yyj1920 := 0; ; yyj1920++ { + if yyhl1920 { + if yyj1920 >= l { break } } else { @@ -24492,10 +26092,10 @@ func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1792Slc = r.DecodeBytes(yys1792Slc, true, true) - yys1792 := string(yys1792Slc) + yys1920Slc = r.DecodeBytes(yys1920Slc, true, true) + yys1920 := string(yys1920Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1792 { + switch yys1920 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { @@ -24511,18 +26111,18 @@ func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1794 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1795 := z.DecBinary() - _ = yym1795 + yyv1922 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1923 := z.DecBinary() + _ = yym1923 if false { } else { - h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1794), d) + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1922), d) } } default: - z.DecStructFieldNotFound(-1, yys1792) - } // end switch yys1792 - } // end for yyj1792 + z.DecStructFieldNotFound(-1, yys1920) + } // end switch yys1920 + } // end for yyj1920 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -24530,16 +26130,16 @@ func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1796 int - var yyb1796 bool - var yyhl1796 bool = l >= 0 - yyj1796++ - if yyhl1796 { - yyb1796 = yyj1796 > l + var yyj1924 int + var yyb1924 bool + var yyhl1924 bool = l >= 0 + yyj1924++ + if yyhl1924 { + yyb1924 = yyj1924 > l } else { - yyb1796 = r.CheckBreak() + yyb1924 = r.CheckBreak() } - if yyb1796 { + if yyb1924 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24554,13 +26154,13 @@ func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) } - yyj1796++ - if yyhl1796 { - yyb1796 = yyj1796 > l + yyj1924++ + if yyhl1924 { + yyb1924 = yyj1924 > l } else { - yyb1796 = r.CheckBreak() + yyb1924 = r.CheckBreak() } - if yyb1796 { + if yyb1924 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24568,26 +26168,26 @@ func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { - yyv1798 := &x.PreferredDuringSchedulingIgnoredDuringExecution - yym1799 := z.DecBinary() - _ = yym1799 + yyv1926 := &x.PreferredDuringSchedulingIgnoredDuringExecution + yym1927 := z.DecBinary() + _ = yym1927 if false { } else { - h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1798), d) + h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1926), d) } } for { - yyj1796++ - if yyhl1796 { - yyb1796 = yyj1796 > l + yyj1924++ + if yyhl1924 { + yyb1924 = yyj1924 > l } else { - yyb1796 = r.CheckBreak() + yyb1924 = r.CheckBreak() } - if yyb1796 { + if yyb1924 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1796-1, "") + z.DecStructFieldNotFound(yyj1924-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24599,33 +26199,33 @@ func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1800 := z.EncBinary() - _ = yym1800 + yym1928 := z.EncBinary() + _ = yym1928 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1801 := !z.EncBinary() - yy2arr1801 := z.EncBasicHandle().StructToArray - var yyq1801 [2]bool - _, _, _ = yysep1801, yyq1801, yy2arr1801 - const yyr1801 bool = false - var yynn1801 int - if yyr1801 || yy2arr1801 { + yysep1929 := !z.EncBinary() + yy2arr1929 := z.EncBasicHandle().StructToArray + var yyq1929 [2]bool + _, _, _ = yysep1929, yyq1929, yy2arr1929 + const yyr1929 bool = false + var yynn1929 int + if yyr1929 || yy2arr1929 { r.EncodeArrayStart(2) } else { - yynn1801 = 2 - for _, b := range yyq1801 { + yynn1929 = 2 + for _, b := range yyq1929 { if b { - yynn1801++ + yynn1929++ } } - r.EncodeMapStart(yynn1801) - yynn1801 = 0 + r.EncodeMapStart(yynn1929) + yynn1929 = 0 } - if yyr1801 || yy2arr1801 { + if yyr1929 || yy2arr1929 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1803 := z.EncBinary() - _ = yym1803 + yym1931 := z.EncBinary() + _ = yym1931 if false { } else { r.EncodeInt(int64(x.Weight)) @@ -24634,25 +26234,25 @@ func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1804 := z.EncBinary() - _ = yym1804 + yym1932 := z.EncBinary() + _ = yym1932 if false { } else { r.EncodeInt(int64(x.Weight)) } } - if yyr1801 || yy2arr1801 { + if yyr1929 || yy2arr1929 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1806 := &x.Preference - yy1806.CodecEncodeSelf(e) + yy1934 := &x.Preference + yy1934.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1807 := &x.Preference - yy1807.CodecEncodeSelf(e) + yy1935 := &x.Preference + yy1935.CodecEncodeSelf(e) } - if yyr1801 || yy2arr1801 { + if yyr1929 || yy2arr1929 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -24665,25 +26265,25 @@ func (x *PreferredSchedulingTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1808 := z.DecBinary() - _ = yym1808 + yym1936 := z.DecBinary() + _ = yym1936 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1809 := r.ContainerType() - if yyct1809 == codecSelferValueTypeMap1234 { - yyl1809 := r.ReadMapStart() - if yyl1809 == 0 { + yyct1937 := r.ContainerType() + if yyct1937 == codecSelferValueTypeMap1234 { + yyl1937 := r.ReadMapStart() + if yyl1937 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1809, d) + x.codecDecodeSelfFromMap(yyl1937, d) } - } else if yyct1809 == codecSelferValueTypeArray1234 { - yyl1809 := r.ReadArrayStart() - if yyl1809 == 0 { + } else if yyct1937 == codecSelferValueTypeArray1234 { + yyl1937 := r.ReadArrayStart() + if yyl1937 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1809, d) + x.codecDecodeSelfFromArray(yyl1937, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -24695,12 +26295,12 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1810Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1810Slc - var yyhl1810 bool = l >= 0 - for yyj1810 := 0; ; yyj1810++ { - if yyhl1810 { - if yyj1810 >= l { + var yys1938Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1938Slc + var yyhl1938 bool = l >= 0 + for yyj1938 := 0; ; yyj1938++ { + if yyhl1938 { + if yyj1938 >= l { break } } else { @@ -24709,10 +26309,10 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1810Slc = r.DecodeBytes(yys1810Slc, true, true) - yys1810 := string(yys1810Slc) + yys1938Slc = r.DecodeBytes(yys1938Slc, true, true) + yys1938 := string(yys1938Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1810 { + switch yys1938 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 @@ -24723,13 +26323,13 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { - yyv1812 := &x.Preference - yyv1812.CodecDecodeSelf(d) + yyv1940 := &x.Preference + yyv1940.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1810) - } // end switch yys1810 - } // end for yyj1810 + z.DecStructFieldNotFound(-1, yys1938) + } // end switch yys1938 + } // end for yyj1938 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -24737,16 +26337,16 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1813 int - var yyb1813 bool - var yyhl1813 bool = l >= 0 - yyj1813++ - if yyhl1813 { - yyb1813 = yyj1813 > l + var yyj1941 int + var yyb1941 bool + var yyhl1941 bool = l >= 0 + yyj1941++ + if yyhl1941 { + yyb1941 = yyj1941 > l } else { - yyb1813 = r.CheckBreak() + yyb1941 = r.CheckBreak() } - if yyb1813 { + if yyb1941 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24756,13 +26356,13 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Weight = int32(r.DecodeInt(32)) } - yyj1813++ - if yyhl1813 { - yyb1813 = yyj1813 > l + yyj1941++ + if yyhl1941 { + yyb1941 = yyj1941 > l } else { - yyb1813 = r.CheckBreak() + yyb1941 = r.CheckBreak() } - if yyb1813 { + if yyb1941 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24770,21 +26370,21 @@ func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { - yyv1815 := &x.Preference - yyv1815.CodecDecodeSelf(d) + yyv1943 := &x.Preference + yyv1943.CodecDecodeSelf(d) } for { - yyj1813++ - if yyhl1813 { - yyb1813 = yyj1813 > l + yyj1941++ + if yyhl1941 { + yyb1941 = yyj1941 > l } else { - yyb1813 = r.CheckBreak() + yyb1941 = r.CheckBreak() } - if yyb1813 { + if yyb1941 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1813-1, "") + z.DecStructFieldNotFound(yyj1941-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24796,34 +26396,34 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1816 := z.EncBinary() - _ = yym1816 + yym1944 := z.EncBinary() + _ = yym1944 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1817 := !z.EncBinary() - yy2arr1817 := z.EncBasicHandle().StructToArray - var yyq1817 [3]bool - _, _, _ = yysep1817, yyq1817, yy2arr1817 - const yyr1817 bool = false - yyq1817[1] = x.Value != "" - var yynn1817 int - if yyr1817 || yy2arr1817 { + yysep1945 := !z.EncBinary() + yy2arr1945 := z.EncBasicHandle().StructToArray + var yyq1945 [3]bool + _, _, _ = yysep1945, yyq1945, yy2arr1945 + const yyr1945 bool = false + yyq1945[1] = x.Value != "" + var yynn1945 int + if yyr1945 || yy2arr1945 { r.EncodeArrayStart(3) } else { - yynn1817 = 2 - for _, b := range yyq1817 { + yynn1945 = 2 + for _, b := range yyq1945 { if b { - yynn1817++ + yynn1945++ } } - r.EncodeMapStart(yynn1817) - yynn1817 = 0 + r.EncodeMapStart(yynn1945) + yynn1945 = 0 } - if yyr1817 || yy2arr1817 { + if yyr1945 || yy2arr1945 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1819 := z.EncBinary() - _ = yym1819 + yym1947 := z.EncBinary() + _ = yym1947 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -24832,18 +26432,18 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1820 := z.EncBinary() - _ = yym1820 + yym1948 := z.EncBinary() + _ = yym1948 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } - if yyr1817 || yy2arr1817 { + if yyr1945 || yy2arr1945 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1817[1] { - yym1822 := z.EncBinary() - _ = yym1822 + if yyq1945[1] { + yym1950 := z.EncBinary() + _ = yym1950 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -24852,19 +26452,19 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1817[1] { + if yyq1945[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1823 := z.EncBinary() - _ = yym1823 + yym1951 := z.EncBinary() + _ = yym1951 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr1817 || yy2arr1817 { + if yyr1945 || yy2arr1945 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Effect.CodecEncodeSelf(e) } else { @@ -24873,7 +26473,7 @@ func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } - if yyr1817 || yy2arr1817 { + if yyr1945 || yy2arr1945 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -24886,25 +26486,25 @@ func (x *Taint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1825 := z.DecBinary() - _ = yym1825 + yym1953 := z.DecBinary() + _ = yym1953 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1826 := r.ContainerType() - if yyct1826 == codecSelferValueTypeMap1234 { - yyl1826 := r.ReadMapStart() - if yyl1826 == 0 { + yyct1954 := r.ContainerType() + if yyct1954 == codecSelferValueTypeMap1234 { + yyl1954 := r.ReadMapStart() + if yyl1954 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1826, d) + x.codecDecodeSelfFromMap(yyl1954, d) } - } else if yyct1826 == codecSelferValueTypeArray1234 { - yyl1826 := r.ReadArrayStart() - if yyl1826 == 0 { + } else if yyct1954 == codecSelferValueTypeArray1234 { + yyl1954 := r.ReadArrayStart() + if yyl1954 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1826, d) + x.codecDecodeSelfFromArray(yyl1954, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -24916,12 +26516,12 @@ func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1827Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1827Slc - var yyhl1827 bool = l >= 0 - for yyj1827 := 0; ; yyj1827++ { - if yyhl1827 { - if yyj1827 >= l { + var yys1955Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1955Slc + var yyhl1955 bool = l >= 0 + for yyj1955 := 0; ; yyj1955++ { + if yyhl1955 { + if yyj1955 >= l { break } } else { @@ -24930,10 +26530,10 @@ func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1827Slc = r.DecodeBytes(yys1827Slc, true, true) - yys1827 := string(yys1827Slc) + yys1955Slc = r.DecodeBytes(yys1955Slc, true, true) + yys1955 := string(yys1955Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1827 { + switch yys1955 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -24953,9 +26553,9 @@ func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1827) - } // end switch yys1827 - } // end for yyj1827 + z.DecStructFieldNotFound(-1, yys1955) + } // end switch yys1955 + } // end for yyj1955 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -24963,16 +26563,16 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1831 int - var yyb1831 bool - var yyhl1831 bool = l >= 0 - yyj1831++ - if yyhl1831 { - yyb1831 = yyj1831 > l + var yyj1959 int + var yyb1959 bool + var yyhl1959 bool = l >= 0 + yyj1959++ + if yyhl1959 { + yyb1959 = yyj1959 > l } else { - yyb1831 = r.CheckBreak() + yyb1959 = r.CheckBreak() } - if yyb1831 { + if yyb1959 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24982,13 +26582,13 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Key = string(r.DecodeString()) } - yyj1831++ - if yyhl1831 { - yyb1831 = yyj1831 > l + yyj1959++ + if yyhl1959 { + yyb1959 = yyj1959 > l } else { - yyb1831 = r.CheckBreak() + yyb1959 = r.CheckBreak() } - if yyb1831 { + if yyb1959 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -24998,13 +26598,13 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Value = string(r.DecodeString()) } - yyj1831++ - if yyhl1831 { - yyb1831 = yyj1831 > l + yyj1959++ + if yyhl1959 { + yyb1959 = yyj1959 > l } else { - yyb1831 = r.CheckBreak() + yyb1959 = r.CheckBreak() } - if yyb1831 { + if yyb1959 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25015,17 +26615,17 @@ func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } for { - yyj1831++ - if yyhl1831 { - yyb1831 = yyj1831 > l + yyj1959++ + if yyhl1959 { + yyb1959 = yyj1959 > l } else { - yyb1831 = r.CheckBreak() + yyb1959 = r.CheckBreak() } - if yyb1831 { + if yyb1959 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1831-1, "") + z.DecStructFieldNotFound(yyj1959-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -25034,8 +26634,8 @@ func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1835 := z.EncBinary() - _ = yym1835 + yym1963 := z.EncBinary() + _ = yym1963 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -25047,8 +26647,8 @@ func (x *TaintEffect) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1836 := z.DecBinary() - _ = yym1836 + yym1964 := z.DecBinary() + _ = yym1964 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -25063,38 +26663,38 @@ func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1837 := z.EncBinary() - _ = yym1837 + yym1965 := z.EncBinary() + _ = yym1965 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1838 := !z.EncBinary() - yy2arr1838 := z.EncBasicHandle().StructToArray - var yyq1838 [4]bool - _, _, _ = yysep1838, yyq1838, yy2arr1838 - const yyr1838 bool = false - yyq1838[0] = x.Key != "" - yyq1838[1] = x.Operator != "" - yyq1838[2] = x.Value != "" - yyq1838[3] = x.Effect != "" - var yynn1838 int - if yyr1838 || yy2arr1838 { + yysep1966 := !z.EncBinary() + yy2arr1966 := z.EncBasicHandle().StructToArray + var yyq1966 [4]bool + _, _, _ = yysep1966, yyq1966, yy2arr1966 + const yyr1966 bool = false + yyq1966[0] = x.Key != "" + yyq1966[1] = x.Operator != "" + yyq1966[2] = x.Value != "" + yyq1966[3] = x.Effect != "" + var yynn1966 int + if yyr1966 || yy2arr1966 { r.EncodeArrayStart(4) } else { - yynn1838 = 0 - for _, b := range yyq1838 { + yynn1966 = 0 + for _, b := range yyq1966 { if b { - yynn1838++ + yynn1966++ } } - r.EncodeMapStart(yynn1838) - yynn1838 = 0 + r.EncodeMapStart(yynn1966) + yynn1966 = 0 } - if yyr1838 || yy2arr1838 { + if yyr1966 || yy2arr1966 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1838[0] { - yym1840 := z.EncBinary() - _ = yym1840 + if yyq1966[0] { + yym1968 := z.EncBinary() + _ = yym1968 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) @@ -25103,38 +26703,38 @@ func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1838[0] { + if yyq1966[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1841 := z.EncBinary() - _ = yym1841 + yym1969 := z.EncBinary() + _ = yym1969 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } } - if yyr1838 || yy2arr1838 { + if yyr1966 || yy2arr1966 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1838[1] { + if yyq1966[1] { x.Operator.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1838[1] { + if yyq1966[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operator")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } } - if yyr1838 || yy2arr1838 { + if yyr1966 || yy2arr1966 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1838[2] { - yym1844 := z.EncBinary() - _ = yym1844 + if yyq1966[2] { + yym1972 := z.EncBinary() + _ = yym1972 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) @@ -25143,34 +26743,34 @@ func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1838[2] { + if yyq1966[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1845 := z.EncBinary() - _ = yym1845 + yym1973 := z.EncBinary() + _ = yym1973 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } - if yyr1838 || yy2arr1838 { + if yyr1966 || yy2arr1966 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1838[3] { + if yyq1966[3] { x.Effect.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1838[3] { + if yyq1966[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("effect")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } } - if yyr1838 || yy2arr1838 { + if yyr1966 || yy2arr1966 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25183,25 +26783,25 @@ func (x *Toleration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1847 := z.DecBinary() - _ = yym1847 + yym1975 := z.DecBinary() + _ = yym1975 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1848 := r.ContainerType() - if yyct1848 == codecSelferValueTypeMap1234 { - yyl1848 := r.ReadMapStart() - if yyl1848 == 0 { + yyct1976 := r.ContainerType() + if yyct1976 == codecSelferValueTypeMap1234 { + yyl1976 := r.ReadMapStart() + if yyl1976 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1848, d) + x.codecDecodeSelfFromMap(yyl1976, d) } - } else if yyct1848 == codecSelferValueTypeArray1234 { - yyl1848 := r.ReadArrayStart() - if yyl1848 == 0 { + } else if yyct1976 == codecSelferValueTypeArray1234 { + yyl1976 := r.ReadArrayStart() + if yyl1976 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1848, d) + x.codecDecodeSelfFromArray(yyl1976, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -25213,12 +26813,12 @@ func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1849Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1849Slc - var yyhl1849 bool = l >= 0 - for yyj1849 := 0; ; yyj1849++ { - if yyhl1849 { - if yyj1849 >= l { + var yys1977Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1977Slc + var yyhl1977 bool = l >= 0 + for yyj1977 := 0; ; yyj1977++ { + if yyhl1977 { + if yyj1977 >= l { break } } else { @@ -25227,10 +26827,10 @@ func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1849Slc = r.DecodeBytes(yys1849Slc, true, true) - yys1849 := string(yys1849Slc) + yys1977Slc = r.DecodeBytes(yys1977Slc, true, true) + yys1977 := string(yys1977Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1849 { + switch yys1977 { case "key": if r.TryDecodeAsNil() { x.Key = "" @@ -25256,9 +26856,9 @@ func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1849) - } // end switch yys1849 - } // end for yyj1849 + z.DecStructFieldNotFound(-1, yys1977) + } // end switch yys1977 + } // end for yyj1977 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -25266,16 +26866,16 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1854 int - var yyb1854 bool - var yyhl1854 bool = l >= 0 - yyj1854++ - if yyhl1854 { - yyb1854 = yyj1854 > l + var yyj1982 int + var yyb1982 bool + var yyhl1982 bool = l >= 0 + yyj1982++ + if yyhl1982 { + yyb1982 = yyj1982 > l } else { - yyb1854 = r.CheckBreak() + yyb1982 = r.CheckBreak() } - if yyb1854 { + if yyb1982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25285,13 +26885,13 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Key = string(r.DecodeString()) } - yyj1854++ - if yyhl1854 { - yyb1854 = yyj1854 > l + yyj1982++ + if yyhl1982 { + yyb1982 = yyj1982 > l } else { - yyb1854 = r.CheckBreak() + yyb1982 = r.CheckBreak() } - if yyb1854 { + if yyb1982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25301,13 +26901,13 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Operator = TolerationOperator(r.DecodeString()) } - yyj1854++ - if yyhl1854 { - yyb1854 = yyj1854 > l + yyj1982++ + if yyhl1982 { + yyb1982 = yyj1982 > l } else { - yyb1854 = r.CheckBreak() + yyb1982 = r.CheckBreak() } - if yyb1854 { + if yyb1982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25317,13 +26917,13 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Value = string(r.DecodeString()) } - yyj1854++ - if yyhl1854 { - yyb1854 = yyj1854 > l + yyj1982++ + if yyhl1982 { + yyb1982 = yyj1982 > l } else { - yyb1854 = r.CheckBreak() + yyb1982 = r.CheckBreak() } - if yyb1854 { + if yyb1982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -25334,17 +26934,17 @@ func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Effect = TaintEffect(r.DecodeString()) } for { - yyj1854++ - if yyhl1854 { - yyb1854 = yyj1854 > l + yyj1982++ + if yyhl1982 { + yyb1982 = yyj1982 > l } else { - yyb1854 = r.CheckBreak() + yyb1982 = r.CheckBreak() } - if yyb1854 { + if yyb1982 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1854-1, "") + z.DecStructFieldNotFound(yyj1982-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -25353,8 +26953,8 @@ func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1859 := z.EncBinary() - _ = yym1859 + yym1987 := z.EncBinary() + _ = yym1987 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -25366,8 +26966,8 @@ func (x *TolerationOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1860 := z.DecBinary() - _ = yym1860 + yym1988 := z.DecBinary() + _ = yym1988 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -25382,53 +26982,53 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1861 := z.EncBinary() - _ = yym1861 + yym1989 := z.EncBinary() + _ = yym1989 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1862 := !z.EncBinary() - yy2arr1862 := z.EncBasicHandle().StructToArray - var yyq1862 [17]bool - _, _, _ = yysep1862, yyq1862, yy2arr1862 - const yyr1862 bool = false - yyq1862[0] = len(x.Volumes) != 0 - yyq1862[2] = x.RestartPolicy != "" - yyq1862[3] = x.TerminationGracePeriodSeconds != nil - yyq1862[4] = x.ActiveDeadlineSeconds != nil - yyq1862[5] = x.DNSPolicy != "" - yyq1862[6] = len(x.NodeSelector) != 0 - yyq1862[7] = x.ServiceAccountName != "" - yyq1862[8] = x.DeprecatedServiceAccount != "" - yyq1862[9] = x.NodeName != "" - yyq1862[10] = x.HostNetwork != false - yyq1862[11] = x.HostPID != false - yyq1862[12] = x.HostIPC != false - yyq1862[13] = x.SecurityContext != nil - yyq1862[14] = len(x.ImagePullSecrets) != 0 - yyq1862[15] = x.Hostname != "" - yyq1862[16] = x.Subdomain != "" - var yynn1862 int - if yyr1862 || yy2arr1862 { + yysep1990 := !z.EncBinary() + yy2arr1990 := z.EncBasicHandle().StructToArray + var yyq1990 [17]bool + _, _, _ = yysep1990, yyq1990, yy2arr1990 + const yyr1990 bool = false + yyq1990[0] = len(x.Volumes) != 0 + yyq1990[2] = x.RestartPolicy != "" + yyq1990[3] = x.TerminationGracePeriodSeconds != nil + yyq1990[4] = x.ActiveDeadlineSeconds != nil + yyq1990[5] = x.DNSPolicy != "" + yyq1990[6] = len(x.NodeSelector) != 0 + yyq1990[7] = x.ServiceAccountName != "" + yyq1990[8] = x.DeprecatedServiceAccount != "" + yyq1990[9] = x.NodeName != "" + yyq1990[10] = x.HostNetwork != false + yyq1990[11] = x.HostPID != false + yyq1990[12] = x.HostIPC != false + yyq1990[13] = x.SecurityContext != nil + yyq1990[14] = len(x.ImagePullSecrets) != 0 + yyq1990[15] = x.Hostname != "" + yyq1990[16] = x.Subdomain != "" + var yynn1990 int + if yyr1990 || yy2arr1990 { r.EncodeArrayStart(17) } else { - yynn1862 = 1 - for _, b := range yyq1862 { + yynn1990 = 1 + for _, b := range yyq1990 { if b { - yynn1862++ + yynn1990++ } } - r.EncodeMapStart(yynn1862) - yynn1862 = 0 + r.EncodeMapStart(yynn1990) + yynn1990 = 0 } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[0] { + if yyq1990[0] { if x.Volumes == nil { r.EncodeNil() } else { - yym1864 := z.EncBinary() - _ = yym1864 + yym1992 := z.EncBinary() + _ = yym1992 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) @@ -25438,15 +27038,15 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1862[0] { + if yyq1990[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Volumes == nil { r.EncodeNil() } else { - yym1865 := z.EncBinary() - _ = yym1865 + yym1993 := z.EncBinary() + _ = yym1993 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) @@ -25454,13 +27054,13 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Containers == nil { r.EncodeNil() } else { - yym1867 := z.EncBinary() - _ = yym1867 + yym1995 := z.EncBinary() + _ = yym1995 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) @@ -25473,122 +27073,122 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Containers == nil { r.EncodeNil() } else { - yym1868 := z.EncBinary() - _ = yym1868 + yym1996 := z.EncBinary() + _ = yym1996 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[2] { + if yyq1990[2] { x.RestartPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1862[2] { + if yyq1990[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.RestartPolicy.CodecEncodeSelf(e) } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[3] { + if yyq1990[3] { if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { - yy1871 := *x.TerminationGracePeriodSeconds - yym1872 := z.EncBinary() - _ = yym1872 + yy1999 := *x.TerminationGracePeriodSeconds + yym2000 := z.EncBinary() + _ = yym2000 if false { } else { - r.EncodeInt(int64(yy1871)) + r.EncodeInt(int64(yy1999)) } } } else { r.EncodeNil() } } else { - if yyq1862[3] { + if yyq1990[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { - yy1873 := *x.TerminationGracePeriodSeconds - yym1874 := z.EncBinary() - _ = yym1874 + yy2001 := *x.TerminationGracePeriodSeconds + yym2002 := z.EncBinary() + _ = yym2002 if false { } else { - r.EncodeInt(int64(yy1873)) + r.EncodeInt(int64(yy2001)) } } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[4] { + if yyq1990[4] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy1876 := *x.ActiveDeadlineSeconds - yym1877 := z.EncBinary() - _ = yym1877 + yy2004 := *x.ActiveDeadlineSeconds + yym2005 := z.EncBinary() + _ = yym2005 if false { } else { - r.EncodeInt(int64(yy1876)) + r.EncodeInt(int64(yy2004)) } } } else { r.EncodeNil() } } else { - if yyq1862[4] { + if yyq1990[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { - yy1878 := *x.ActiveDeadlineSeconds - yym1879 := z.EncBinary() - _ = yym1879 + yy2006 := *x.ActiveDeadlineSeconds + yym2007 := z.EncBinary() + _ = yym2007 if false { } else { - r.EncodeInt(int64(yy1878)) + r.EncodeInt(int64(yy2006)) } } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[5] { + if yyq1990[5] { x.DNSPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1862[5] { + if yyq1990[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.DNSPolicy.CodecEncodeSelf(e) } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[6] { + if yyq1990[6] { if x.NodeSelector == nil { r.EncodeNil() } else { - yym1882 := z.EncBinary() - _ = yym1882 + yym2010 := z.EncBinary() + _ = yym2010 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) @@ -25598,15 +27198,15 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1862[6] { + if yyq1990[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelector == nil { r.EncodeNil() } else { - yym1883 := z.EncBinary() - _ = yym1883 + yym2011 := z.EncBinary() + _ = yym2011 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) @@ -25614,11 +27214,11 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[7] { - yym1885 := z.EncBinary() - _ = yym1885 + if yyq1990[7] { + yym2013 := z.EncBinary() + _ = yym2013 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) @@ -25627,23 +27227,23 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1862[7] { + if yyq1990[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceAccountName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1886 := z.EncBinary() - _ = yym1886 + yym2014 := z.EncBinary() + _ = yym2014 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[8] { - yym1888 := z.EncBinary() - _ = yym1888 + if yyq1990[8] { + yym2016 := z.EncBinary() + _ = yym2016 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DeprecatedServiceAccount)) @@ -25652,23 +27252,23 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1862[8] { + if yyq1990[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceAccount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1889 := z.EncBinary() - _ = yym1889 + yym2017 := z.EncBinary() + _ = yym2017 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DeprecatedServiceAccount)) } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[9] { - yym1891 := z.EncBinary() - _ = yym1891 + if yyq1990[9] { + yym2019 := z.EncBinary() + _ = yym2019 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) @@ -25677,23 +27277,23 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1862[9] { + if yyq1990[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1892 := z.EncBinary() - _ = yym1892 + yym2020 := z.EncBinary() + _ = yym2020 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[10] { - yym1894 := z.EncBinary() - _ = yym1894 + if yyq1990[10] { + yym2022 := z.EncBinary() + _ = yym2022 if false { } else { r.EncodeBool(bool(x.HostNetwork)) @@ -25702,23 +27302,23 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1862[10] { + if yyq1990[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1895 := z.EncBinary() - _ = yym1895 + yym2023 := z.EncBinary() + _ = yym2023 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[11] { - yym1897 := z.EncBinary() - _ = yym1897 + if yyq1990[11] { + yym2025 := z.EncBinary() + _ = yym2025 if false { } else { r.EncodeBool(bool(x.HostPID)) @@ -25727,23 +27327,23 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1862[11] { + if yyq1990[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1898 := z.EncBinary() - _ = yym1898 + yym2026 := z.EncBinary() + _ = yym2026 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[12] { - yym1900 := z.EncBinary() - _ = yym1900 + if yyq1990[12] { + yym2028 := z.EncBinary() + _ = yym2028 if false { } else { r.EncodeBool(bool(x.HostIPC)) @@ -25752,21 +27352,21 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1862[12] { + if yyq1990[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1901 := z.EncBinary() - _ = yym1901 + yym2029 := z.EncBinary() + _ = yym2029 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[13] { + if yyq1990[13] { if x.SecurityContext == nil { r.EncodeNil() } else { @@ -25776,7 +27376,7 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1862[13] { + if yyq1990[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("securityContext")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -25787,14 +27387,14 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[14] { + if yyq1990[14] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym1904 := z.EncBinary() - _ = yym1904 + yym2032 := z.EncBinary() + _ = yym2032 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -25804,15 +27404,15 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1862[14] { + if yyq1990[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym1905 := z.EncBinary() - _ = yym1905 + yym2033 := z.EncBinary() + _ = yym2033 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -25820,11 +27420,11 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[15] { - yym1907 := z.EncBinary() - _ = yym1907 + if yyq1990[15] { + yym2035 := z.EncBinary() + _ = yym2035 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -25833,23 +27433,23 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1862[15] { + if yyq1990[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1908 := z.EncBinary() - _ = yym1908 + yym2036 := z.EncBinary() + _ = yym2036 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1862[16] { - yym1910 := z.EncBinary() - _ = yym1910 + if yyq1990[16] { + yym2038 := z.EncBinary() + _ = yym2038 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) @@ -25858,19 +27458,19 @@ func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1862[16] { + if yyq1990[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subdomain")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1911 := z.EncBinary() - _ = yym1911 + yym2039 := z.EncBinary() + _ = yym2039 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) } } } - if yyr1862 || yy2arr1862 { + if yyr1990 || yy2arr1990 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -25883,25 +27483,25 @@ func (x *PodSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1912 := z.DecBinary() - _ = yym1912 + yym2040 := z.DecBinary() + _ = yym2040 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1913 := r.ContainerType() - if yyct1913 == codecSelferValueTypeMap1234 { - yyl1913 := r.ReadMapStart() - if yyl1913 == 0 { + yyct2041 := r.ContainerType() + if yyct2041 == codecSelferValueTypeMap1234 { + yyl2041 := r.ReadMapStart() + if yyl2041 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1913, d) + x.codecDecodeSelfFromMap(yyl2041, d) } - } else if yyct1913 == codecSelferValueTypeArray1234 { - yyl1913 := r.ReadArrayStart() - if yyl1913 == 0 { + } else if yyct2041 == codecSelferValueTypeArray1234 { + yyl2041 := r.ReadArrayStart() + if yyl2041 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1913, d) + x.codecDecodeSelfFromArray(yyl2041, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -25913,12 +27513,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1914Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1914Slc - var yyhl1914 bool = l >= 0 - for yyj1914 := 0; ; yyj1914++ { - if yyhl1914 { - if yyj1914 >= l { + var yys2042Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2042Slc + var yyhl2042 bool = l >= 0 + for yyj2042 := 0; ; yyj2042++ { + if yyhl2042 { + if yyj2042 >= l { break } } else { @@ -25927,32 +27527,32 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1914Slc = r.DecodeBytes(yys1914Slc, true, true) - yys1914 := string(yys1914Slc) + yys2042Slc = r.DecodeBytes(yys2042Slc, true, true) + yys2042 := string(yys2042Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1914 { + switch yys2042 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv1915 := &x.Volumes - yym1916 := z.DecBinary() - _ = yym1916 + yyv2043 := &x.Volumes + yym2044 := z.DecBinary() + _ = yym2044 if false { } else { - h.decSliceVolume((*[]Volume)(yyv1915), d) + h.decSliceVolume((*[]Volume)(yyv2043), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { - yyv1917 := &x.Containers - yym1918 := z.DecBinary() - _ = yym1918 + yyv2045 := &x.Containers + yym2046 := z.DecBinary() + _ = yym2046 if false { } else { - h.decSliceContainer((*[]Container)(yyv1917), d) + h.decSliceContainer((*[]Container)(yyv2045), d) } } case "restartPolicy": @@ -25970,8 +27570,8 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } - yym1921 := z.DecBinary() - _ = yym1921 + yym2049 := z.DecBinary() + _ = yym2049 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -25986,8 +27586,8 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym1923 := z.DecBinary() - _ = yym1923 + yym2051 := z.DecBinary() + _ = yym2051 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) @@ -26003,12 +27603,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeSelector = nil } else { - yyv1925 := &x.NodeSelector - yym1926 := z.DecBinary() - _ = yym1926 + yyv2053 := &x.NodeSelector + yym2054 := z.DecBinary() + _ = yym2054 if false { } else { - z.F.DecMapStringStringX(yyv1925, false, d) + z.F.DecMapStringStringX(yyv2053, false, d) } } case "serviceAccountName": @@ -26062,12 +27662,12 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv1934 := &x.ImagePullSecrets - yym1935 := z.DecBinary() - _ = yym1935 + yyv2062 := &x.ImagePullSecrets + yym2063 := z.DecBinary() + _ = yym2063 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1934), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2062), d) } } case "hostname": @@ -26083,9 +27683,9 @@ func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Subdomain = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1914) - } // end switch yys1914 - } // end for yyj1914 + z.DecStructFieldNotFound(-1, yys2042) + } // end switch yys2042 + } // end for yyj2042 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -26093,16 +27693,16 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1938 int - var yyb1938 bool - var yyhl1938 bool = l >= 0 - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + var yyj2066 int + var yyb2066 bool + var yyhl2066 bool = l >= 0 + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26110,21 +27710,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv1939 := &x.Volumes - yym1940 := z.DecBinary() - _ = yym1940 + yyv2067 := &x.Volumes + yym2068 := z.DecBinary() + _ = yym2068 if false { } else { - h.decSliceVolume((*[]Volume)(yyv1939), d) + h.decSliceVolume((*[]Volume)(yyv2067), d) } } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26132,21 +27732,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Containers = nil } else { - yyv1941 := &x.Containers - yym1942 := z.DecBinary() - _ = yym1942 + yyv2069 := &x.Containers + yym2070 := z.DecBinary() + _ = yym2070 if false { } else { - h.decSliceContainer((*[]Container)(yyv1941), d) + h.decSliceContainer((*[]Container)(yyv2069), d) } } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26156,13 +27756,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.RestartPolicy = RestartPolicy(r.DecodeString()) } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26175,20 +27775,20 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } - yym1945 := z.DecBinary() - _ = yym1945 + yym2073 := z.DecBinary() + _ = yym2073 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26201,20 +27801,20 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } - yym1947 := z.DecBinary() - _ = yym1947 + yym2075 := z.DecBinary() + _ = yym2075 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26224,13 +27824,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.DNSPolicy = DNSPolicy(r.DecodeString()) } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26238,21 +27838,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeSelector = nil } else { - yyv1949 := &x.NodeSelector - yym1950 := z.DecBinary() - _ = yym1950 + yyv2077 := &x.NodeSelector + yym2078 := z.DecBinary() + _ = yym2078 if false { } else { - z.F.DecMapStringStringX(yyv1949, false, d) + z.F.DecMapStringStringX(yyv2077, false, d) } } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26262,13 +27862,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ServiceAccountName = string(r.DecodeString()) } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26278,13 +27878,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.DeprecatedServiceAccount = string(r.DecodeString()) } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26294,13 +27894,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.NodeName = string(r.DecodeString()) } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26310,13 +27910,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostNetwork = bool(r.DecodeBool()) } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26326,13 +27926,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostPID = bool(r.DecodeBool()) } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26342,13 +27942,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostIPC = bool(r.DecodeBool()) } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26363,13 +27963,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } x.SecurityContext.CodecDecodeSelf(d) } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26377,21 +27977,21 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv1958 := &x.ImagePullSecrets - yym1959 := z.DecBinary() - _ = yym1959 + yyv2086 := &x.ImagePullSecrets + yym2087 := z.DecBinary() + _ = yym2087 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1958), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2086), d) } } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26401,13 +28001,13 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Hostname = string(r.DecodeString()) } - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26418,17 +28018,17 @@ func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Subdomain = string(r.DecodeString()) } for { - yyj1938++ - if yyhl1938 { - yyb1938 = yyj1938 > l + yyj2066++ + if yyhl2066 { + yyb2066 = yyj2066 > l } else { - yyb1938 = r.CheckBreak() + yyb2066 = r.CheckBreak() } - if yyb1938 { + if yyb2066 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1938-1, "") + z.DecStructFieldNotFound(yyj2066-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -26440,37 +28040,37 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1962 := z.EncBinary() - _ = yym1962 + yym2090 := z.EncBinary() + _ = yym2090 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1963 := !z.EncBinary() - yy2arr1963 := z.EncBasicHandle().StructToArray - var yyq1963 [5]bool - _, _, _ = yysep1963, yyq1963, yy2arr1963 - const yyr1963 bool = false - yyq1963[0] = x.SELinuxOptions != nil - yyq1963[1] = x.RunAsUser != nil - yyq1963[2] = x.RunAsNonRoot != nil - yyq1963[3] = len(x.SupplementalGroups) != 0 - yyq1963[4] = x.FSGroup != nil - var yynn1963 int - if yyr1963 || yy2arr1963 { + yysep2091 := !z.EncBinary() + yy2arr2091 := z.EncBasicHandle().StructToArray + var yyq2091 [5]bool + _, _, _ = yysep2091, yyq2091, yy2arr2091 + const yyr2091 bool = false + yyq2091[0] = x.SELinuxOptions != nil + yyq2091[1] = x.RunAsUser != nil + yyq2091[2] = x.RunAsNonRoot != nil + yyq2091[3] = len(x.SupplementalGroups) != 0 + yyq2091[4] = x.FSGroup != nil + var yynn2091 int + if yyr2091 || yy2arr2091 { r.EncodeArrayStart(5) } else { - yynn1963 = 0 - for _, b := range yyq1963 { + yynn2091 = 0 + for _, b := range yyq2091 { if b { - yynn1963++ + yynn2091++ } } - r.EncodeMapStart(yynn1963) - yynn1963 = 0 + r.EncodeMapStart(yynn2091) + yynn2091 = 0 } - if yyr1963 || yy2arr1963 { + if yyr2091 || yy2arr2091 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1963[0] { + if yyq2091[0] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -26480,7 +28080,7 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1963[0] { + if yyq2091[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -26491,84 +28091,84 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1963 || yy2arr1963 { + if yyr2091 || yy2arr2091 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1963[1] { + if yyq2091[1] { if x.RunAsUser == nil { r.EncodeNil() } else { - yy1966 := *x.RunAsUser - yym1967 := z.EncBinary() - _ = yym1967 + yy2094 := *x.RunAsUser + yym2095 := z.EncBinary() + _ = yym2095 if false { } else { - r.EncodeInt(int64(yy1966)) + r.EncodeInt(int64(yy2094)) } } } else { r.EncodeNil() } } else { - if yyq1963[1] { + if yyq2091[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { - yy1968 := *x.RunAsUser - yym1969 := z.EncBinary() - _ = yym1969 + yy2096 := *x.RunAsUser + yym2097 := z.EncBinary() + _ = yym2097 if false { } else { - r.EncodeInt(int64(yy1968)) + r.EncodeInt(int64(yy2096)) } } } } - if yyr1963 || yy2arr1963 { + if yyr2091 || yy2arr2091 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1963[2] { + if yyq2091[2] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy1971 := *x.RunAsNonRoot - yym1972 := z.EncBinary() - _ = yym1972 + yy2099 := *x.RunAsNonRoot + yym2100 := z.EncBinary() + _ = yym2100 if false { } else { - r.EncodeBool(bool(yy1971)) + r.EncodeBool(bool(yy2099)) } } } else { r.EncodeNil() } } else { - if yyq1963[2] { + if yyq2091[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { - yy1973 := *x.RunAsNonRoot - yym1974 := z.EncBinary() - _ = yym1974 + yy2101 := *x.RunAsNonRoot + yym2102 := z.EncBinary() + _ = yym2102 if false { } else { - r.EncodeBool(bool(yy1973)) + r.EncodeBool(bool(yy2101)) } } } } - if yyr1963 || yy2arr1963 { + if yyr2091 || yy2arr2091 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1963[3] { + if yyq2091[3] { if x.SupplementalGroups == nil { r.EncodeNil() } else { - yym1976 := z.EncBinary() - _ = yym1976 + yym2104 := z.EncBinary() + _ = yym2104 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) @@ -26578,15 +28178,15 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1963[3] { + if yyq2091[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SupplementalGroups == nil { r.EncodeNil() } else { - yym1977 := z.EncBinary() - _ = yym1977 + yym2105 := z.EncBinary() + _ = yym2105 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) @@ -26594,42 +28194,42 @@ func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1963 || yy2arr1963 { + if yyr2091 || yy2arr2091 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1963[4] { + if yyq2091[4] { if x.FSGroup == nil { r.EncodeNil() } else { - yy1979 := *x.FSGroup - yym1980 := z.EncBinary() - _ = yym1980 + yy2107 := *x.FSGroup + yym2108 := z.EncBinary() + _ = yym2108 if false { } else { - r.EncodeInt(int64(yy1979)) + r.EncodeInt(int64(yy2107)) } } } else { r.EncodeNil() } } else { - if yyq1963[4] { + if yyq2091[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSGroup == nil { r.EncodeNil() } else { - yy1981 := *x.FSGroup - yym1982 := z.EncBinary() - _ = yym1982 + yy2109 := *x.FSGroup + yym2110 := z.EncBinary() + _ = yym2110 if false { } else { - r.EncodeInt(int64(yy1981)) + r.EncodeInt(int64(yy2109)) } } } } - if yyr1963 || yy2arr1963 { + if yyr2091 || yy2arr2091 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -26642,25 +28242,25 @@ func (x *PodSecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1983 := z.DecBinary() - _ = yym1983 + yym2111 := z.DecBinary() + _ = yym2111 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1984 := r.ContainerType() - if yyct1984 == codecSelferValueTypeMap1234 { - yyl1984 := r.ReadMapStart() - if yyl1984 == 0 { + yyct2112 := r.ContainerType() + if yyct2112 == codecSelferValueTypeMap1234 { + yyl2112 := r.ReadMapStart() + if yyl2112 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1984, d) + x.codecDecodeSelfFromMap(yyl2112, d) } - } else if yyct1984 == codecSelferValueTypeArray1234 { - yyl1984 := r.ReadArrayStart() - if yyl1984 == 0 { + } else if yyct2112 == codecSelferValueTypeArray1234 { + yyl2112 := r.ReadArrayStart() + if yyl2112 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1984, d) + x.codecDecodeSelfFromArray(yyl2112, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -26672,12 +28272,12 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1985Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1985Slc - var yyhl1985 bool = l >= 0 - for yyj1985 := 0; ; yyj1985++ { - if yyhl1985 { - if yyj1985 >= l { + var yys2113Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2113Slc + var yyhl2113 bool = l >= 0 + for yyj2113 := 0; ; yyj2113++ { + if yyhl2113 { + if yyj2113 >= l { break } } else { @@ -26686,10 +28286,10 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1985Slc = r.DecodeBytes(yys1985Slc, true, true) - yys1985 := string(yys1985Slc) + yys2113Slc = r.DecodeBytes(yys2113Slc, true, true) + yys2113 := string(yys2113Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1985 { + switch yys2113 { case "seLinuxOptions": if r.TryDecodeAsNil() { if x.SELinuxOptions != nil { @@ -26710,8 +28310,8 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym1988 := z.DecBinary() - _ = yym1988 + yym2116 := z.DecBinary() + _ = yym2116 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) @@ -26726,8 +28326,8 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym1990 := z.DecBinary() - _ = yym1990 + yym2118 := z.DecBinary() + _ = yym2118 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() @@ -26737,12 +28337,12 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { - yyv1991 := &x.SupplementalGroups - yym1992 := z.DecBinary() - _ = yym1992 + yyv2119 := &x.SupplementalGroups + yym2120 := z.DecBinary() + _ = yym2120 if false { } else { - z.F.DecSliceInt64X(yyv1991, false, d) + z.F.DecSliceInt64X(yyv2119, false, d) } } case "fsGroup": @@ -26754,17 +28354,17 @@ func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.FSGroup == nil { x.FSGroup = new(int64) } - yym1994 := z.DecBinary() - _ = yym1994 + yym2122 := z.DecBinary() + _ = yym2122 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys1985) - } // end switch yys1985 - } // end for yyj1985 + z.DecStructFieldNotFound(-1, yys2113) + } // end switch yys2113 + } // end for yyj2113 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -26772,16 +28372,16 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1995 int - var yyb1995 bool - var yyhl1995 bool = l >= 0 - yyj1995++ - if yyhl1995 { - yyb1995 = yyj1995 > l + var yyj2123 int + var yyb2123 bool + var yyhl2123 bool = l >= 0 + yyj2123++ + if yyhl2123 { + yyb2123 = yyj2123 > l } else { - yyb1995 = r.CheckBreak() + yyb2123 = r.CheckBreak() } - if yyb1995 { + if yyb2123 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26796,13 +28396,13 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode } x.SELinuxOptions.CodecDecodeSelf(d) } - yyj1995++ - if yyhl1995 { - yyb1995 = yyj1995 > l + yyj2123++ + if yyhl2123 { + yyb2123 = yyj2123 > l } else { - yyb1995 = r.CheckBreak() + yyb2123 = r.CheckBreak() } - if yyb1995 { + if yyb2123 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26815,20 +28415,20 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.RunAsUser == nil { x.RunAsUser = new(int64) } - yym1998 := z.DecBinary() - _ = yym1998 + yym2126 := z.DecBinary() + _ = yym2126 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } - yyj1995++ - if yyhl1995 { - yyb1995 = yyj1995 > l + yyj2123++ + if yyhl2123 { + yyb2123 = yyj2123 > l } else { - yyb1995 = r.CheckBreak() + yyb2123 = r.CheckBreak() } - if yyb1995 { + if yyb2123 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26841,20 +28441,20 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } - yym2000 := z.DecBinary() - _ = yym2000 + yym2128 := z.DecBinary() + _ = yym2128 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } - yyj1995++ - if yyhl1995 { - yyb1995 = yyj1995 > l + yyj2123++ + if yyhl2123 { + yyb2123 = yyj2123 > l } else { - yyb1995 = r.CheckBreak() + yyb2123 = r.CheckBreak() } - if yyb1995 { + if yyb2123 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26862,21 +28462,21 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { - yyv2001 := &x.SupplementalGroups - yym2002 := z.DecBinary() - _ = yym2002 + yyv2129 := &x.SupplementalGroups + yym2130 := z.DecBinary() + _ = yym2130 if false { } else { - z.F.DecSliceInt64X(yyv2001, false, d) + z.F.DecSliceInt64X(yyv2129, false, d) } } - yyj1995++ - if yyhl1995 { - yyb1995 = yyj1995 > l + yyj2123++ + if yyhl2123 { + yyb2123 = yyj2123 > l } else { - yyb1995 = r.CheckBreak() + yyb2123 = r.CheckBreak() } - if yyb1995 { + if yyb2123 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -26889,25 +28489,25 @@ func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decode if x.FSGroup == nil { x.FSGroup = new(int64) } - yym2004 := z.DecBinary() - _ = yym2004 + yym2132 := z.DecBinary() + _ = yym2132 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } for { - yyj1995++ - if yyhl1995 { - yyb1995 = yyj1995 > l + yyj2123++ + if yyhl2123 { + yyb2123 = yyj2123 > l } else { - yyb1995 = r.CheckBreak() + yyb2123 = r.CheckBreak() } - if yyb1995 { + if yyb2123 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1995-1, "") + z.DecStructFieldNotFound(yyj2123-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -26919,60 +28519,60 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2005 := z.EncBinary() - _ = yym2005 + yym2133 := z.EncBinary() + _ = yym2133 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2006 := !z.EncBinary() - yy2arr2006 := z.EncBasicHandle().StructToArray - var yyq2006 [8]bool - _, _, _ = yysep2006, yyq2006, yy2arr2006 - const yyr2006 bool = false - yyq2006[0] = x.Phase != "" - yyq2006[1] = len(x.Conditions) != 0 - yyq2006[2] = x.Message != "" - yyq2006[3] = x.Reason != "" - yyq2006[4] = x.HostIP != "" - yyq2006[5] = x.PodIP != "" - yyq2006[6] = x.StartTime != nil - yyq2006[7] = len(x.ContainerStatuses) != 0 - var yynn2006 int - if yyr2006 || yy2arr2006 { + yysep2134 := !z.EncBinary() + yy2arr2134 := z.EncBasicHandle().StructToArray + var yyq2134 [8]bool + _, _, _ = yysep2134, yyq2134, yy2arr2134 + const yyr2134 bool = false + yyq2134[0] = x.Phase != "" + yyq2134[1] = len(x.Conditions) != 0 + yyq2134[2] = x.Message != "" + yyq2134[3] = x.Reason != "" + yyq2134[4] = x.HostIP != "" + yyq2134[5] = x.PodIP != "" + yyq2134[6] = x.StartTime != nil + yyq2134[7] = len(x.ContainerStatuses) != 0 + var yynn2134 int + if yyr2134 || yy2arr2134 { r.EncodeArrayStart(8) } else { - yynn2006 = 0 - for _, b := range yyq2006 { + yynn2134 = 0 + for _, b := range yyq2134 { if b { - yynn2006++ + yynn2134++ } } - r.EncodeMapStart(yynn2006) - yynn2006 = 0 + r.EncodeMapStart(yynn2134) + yynn2134 = 0 } - if yyr2006 || yy2arr2006 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2006[0] { + if yyq2134[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2006[0] { + if yyq2134[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2006 || yy2arr2006 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2006[1] { + if yyq2134[1] { if x.Conditions == nil { r.EncodeNil() } else { - yym2009 := z.EncBinary() - _ = yym2009 + yym2137 := z.EncBinary() + _ = yym2137 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) @@ -26982,15 +28582,15 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2006[1] { + if yyq2134[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym2010 := z.EncBinary() - _ = yym2010 + yym2138 := z.EncBinary() + _ = yym2138 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) @@ -26998,11 +28598,11 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2006 || yy2arr2006 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2006[2] { - yym2012 := z.EncBinary() - _ = yym2012 + if yyq2134[2] { + yym2140 := z.EncBinary() + _ = yym2140 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -27011,23 +28611,23 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2006[2] { + if yyq2134[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2013 := z.EncBinary() - _ = yym2013 + yym2141 := z.EncBinary() + _ = yym2141 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2006 || yy2arr2006 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2006[3] { - yym2015 := z.EncBinary() - _ = yym2015 + if yyq2134[3] { + yym2143 := z.EncBinary() + _ = yym2143 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -27036,23 +28636,23 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2006[3] { + if yyq2134[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2016 := z.EncBinary() - _ = yym2016 + yym2144 := z.EncBinary() + _ = yym2144 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2006 || yy2arr2006 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2006[4] { - yym2018 := z.EncBinary() - _ = yym2018 + if yyq2134[4] { + yym2146 := z.EncBinary() + _ = yym2146 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) @@ -27061,23 +28661,23 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2006[4] { + if yyq2134[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2019 := z.EncBinary() - _ = yym2019 + yym2147 := z.EncBinary() + _ = yym2147 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } - if yyr2006 || yy2arr2006 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2006[5] { - yym2021 := z.EncBinary() - _ = yym2021 + if yyq2134[5] { + yym2149 := z.EncBinary() + _ = yym2149 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) @@ -27086,31 +28686,31 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2006[5] { + if yyq2134[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2022 := z.EncBinary() - _ = yym2022 + yym2150 := z.EncBinary() + _ = yym2150 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } - if yyr2006 || yy2arr2006 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2006[6] { + if yyq2134[6] { if x.StartTime == nil { r.EncodeNil() } else { - yym2024 := z.EncBinary() - _ = yym2024 + yym2152 := z.EncBinary() + _ = yym2152 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym2024 { + } else if yym2152 { z.EncBinaryMarshal(x.StartTime) - } else if !yym2024 && z.IsJSONHandle() { + } else if !yym2152 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -27120,20 +28720,20 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2006[6] { + if yyq2134[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { - yym2025 := z.EncBinary() - _ = yym2025 + yym2153 := z.EncBinary() + _ = yym2153 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { - } else if yym2025 { + } else if yym2153 { z.EncBinaryMarshal(x.StartTime) - } else if !yym2025 && z.IsJSONHandle() { + } else if !yym2153 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) @@ -27141,14 +28741,14 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2006 || yy2arr2006 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2006[7] { + if yyq2134[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { - yym2027 := z.EncBinary() - _ = yym2027 + yym2155 := z.EncBinary() + _ = yym2155 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) @@ -27158,15 +28758,15 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2006[7] { + if yyq2134[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerStatuses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ContainerStatuses == nil { r.EncodeNil() } else { - yym2028 := z.EncBinary() - _ = yym2028 + yym2156 := z.EncBinary() + _ = yym2156 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) @@ -27174,7 +28774,7 @@ func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2006 || yy2arr2006 { + if yyr2134 || yy2arr2134 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -27187,25 +28787,25 @@ func (x *PodStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2029 := z.DecBinary() - _ = yym2029 + yym2157 := z.DecBinary() + _ = yym2157 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2030 := r.ContainerType() - if yyct2030 == codecSelferValueTypeMap1234 { - yyl2030 := r.ReadMapStart() - if yyl2030 == 0 { + yyct2158 := r.ContainerType() + if yyct2158 == codecSelferValueTypeMap1234 { + yyl2158 := r.ReadMapStart() + if yyl2158 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2030, d) + x.codecDecodeSelfFromMap(yyl2158, d) } - } else if yyct2030 == codecSelferValueTypeArray1234 { - yyl2030 := r.ReadArrayStart() - if yyl2030 == 0 { + } else if yyct2158 == codecSelferValueTypeArray1234 { + yyl2158 := r.ReadArrayStart() + if yyl2158 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2030, d) + x.codecDecodeSelfFromArray(yyl2158, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -27217,12 +28817,12 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2031Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2031Slc - var yyhl2031 bool = l >= 0 - for yyj2031 := 0; ; yyj2031++ { - if yyhl2031 { - if yyj2031 >= l { + var yys2159Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2159Slc + var yyhl2159 bool = l >= 0 + for yyj2159 := 0; ; yyj2159++ { + if yyhl2159 { + if yyj2159 >= l { break } } else { @@ -27231,10 +28831,10 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2031Slc = r.DecodeBytes(yys2031Slc, true, true) - yys2031 := string(yys2031Slc) + yys2159Slc = r.DecodeBytes(yys2159Slc, true, true) + yys2159 := string(yys2159Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2031 { + switch yys2159 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" @@ -27245,12 +28845,12 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv2033 := &x.Conditions - yym2034 := z.DecBinary() - _ = yym2034 + yyv2161 := &x.Conditions + yym2162 := z.DecBinary() + _ = yym2162 if false { } else { - h.decSlicePodCondition((*[]PodCondition)(yyv2033), d) + h.decSlicePodCondition((*[]PodCondition)(yyv2161), d) } } case "message": @@ -27286,13 +28886,13 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg2_unversioned.Time) } - yym2040 := z.DecBinary() - _ = yym2040 + yym2168 := z.DecBinary() + _ = yym2168 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym2040 { + } else if yym2168 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym2040 && z.IsJSONHandle() { + } else if !yym2168 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) @@ -27302,18 +28902,18 @@ func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { - yyv2041 := &x.ContainerStatuses - yym2042 := z.DecBinary() - _ = yym2042 + yyv2169 := &x.ContainerStatuses + yym2170 := z.DecBinary() + _ = yym2170 if false { } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv2041), d) + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2169), d) } } default: - z.DecStructFieldNotFound(-1, yys2031) - } // end switch yys2031 - } // end for yyj2031 + z.DecStructFieldNotFound(-1, yys2159) + } // end switch yys2159 + } // end for yyj2159 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -27321,16 +28921,16 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2043 int - var yyb2043 bool - var yyhl2043 bool = l >= 0 - yyj2043++ - if yyhl2043 { - yyb2043 = yyj2043 > l + var yyj2171 int + var yyb2171 bool + var yyhl2171 bool = l >= 0 + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb2043 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb2043 { + if yyb2171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27340,13 +28940,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Phase = PodPhase(r.DecodeString()) } - yyj2043++ - if yyhl2043 { - yyb2043 = yyj2043 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb2043 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb2043 { + if yyb2171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27354,21 +28954,21 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv2045 := &x.Conditions - yym2046 := z.DecBinary() - _ = yym2046 + yyv2173 := &x.Conditions + yym2174 := z.DecBinary() + _ = yym2174 if false { } else { - h.decSlicePodCondition((*[]PodCondition)(yyv2045), d) + h.decSlicePodCondition((*[]PodCondition)(yyv2173), d) } } - yyj2043++ - if yyhl2043 { - yyb2043 = yyj2043 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb2043 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb2043 { + if yyb2171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27378,13 +28978,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Message = string(r.DecodeString()) } - yyj2043++ - if yyhl2043 { - yyb2043 = yyj2043 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb2043 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb2043 { + if yyb2171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27394,13 +28994,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj2043++ - if yyhl2043 { - yyb2043 = yyj2043 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb2043 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb2043 { + if yyb2171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27410,13 +29010,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.HostIP = string(r.DecodeString()) } - yyj2043++ - if yyhl2043 { - yyb2043 = yyj2043 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb2043 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb2043 { + if yyb2171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27426,13 +29026,13 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.PodIP = string(r.DecodeString()) } - yyj2043++ - if yyhl2043 { - yyb2043 = yyj2043 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb2043 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb2043 { + if yyb2171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27445,25 +29045,25 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.StartTime == nil { x.StartTime = new(pkg2_unversioned.Time) } - yym2052 := z.DecBinary() - _ = yym2052 + yym2180 := z.DecBinary() + _ = yym2180 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { - } else if yym2052 { + } else if yym2180 { z.DecBinaryUnmarshal(x.StartTime) - } else if !yym2052 && z.IsJSONHandle() { + } else if !yym2180 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } - yyj2043++ - if yyhl2043 { - yyb2043 = yyj2043 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb2043 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb2043 { + if yyb2171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27471,26 +29071,26 @@ func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { - yyv2053 := &x.ContainerStatuses - yym2054 := z.DecBinary() - _ = yym2054 + yyv2181 := &x.ContainerStatuses + yym2182 := z.DecBinary() + _ = yym2182 if false { } else { - h.decSliceContainerStatus((*[]ContainerStatus)(yyv2053), d) + h.decSliceContainerStatus((*[]ContainerStatus)(yyv2181), d) } } for { - yyj2043++ - if yyhl2043 { - yyb2043 = yyj2043 > l + yyj2171++ + if yyhl2171 { + yyb2171 = yyj2171 > l } else { - yyb2043 = r.CheckBreak() + yyb2171 = r.CheckBreak() } - if yyb2043 { + if yyb2171 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2043-1, "") + z.DecStructFieldNotFound(yyj2171-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -27502,38 +29102,38 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2055 := z.EncBinary() - _ = yym2055 + yym2183 := z.EncBinary() + _ = yym2183 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2056 := !z.EncBinary() - yy2arr2056 := z.EncBasicHandle().StructToArray - var yyq2056 [4]bool - _, _, _ = yysep2056, yyq2056, yy2arr2056 - const yyr2056 bool = false - yyq2056[0] = x.Kind != "" - yyq2056[1] = x.APIVersion != "" - yyq2056[2] = true - yyq2056[3] = true - var yynn2056 int - if yyr2056 || yy2arr2056 { + yysep2184 := !z.EncBinary() + yy2arr2184 := z.EncBasicHandle().StructToArray + var yyq2184 [4]bool + _, _, _ = yysep2184, yyq2184, yy2arr2184 + const yyr2184 bool = false + yyq2184[0] = x.Kind != "" + yyq2184[1] = x.APIVersion != "" + yyq2184[2] = true + yyq2184[3] = true + var yynn2184 int + if yyr2184 || yy2arr2184 { r.EncodeArrayStart(4) } else { - yynn2056 = 0 - for _, b := range yyq2056 { + yynn2184 = 0 + for _, b := range yyq2184 { if b { - yynn2056++ + yynn2184++ } } - r.EncodeMapStart(yynn2056) - yynn2056 = 0 + r.EncodeMapStart(yynn2184) + yynn2184 = 0 } - if yyr2056 || yy2arr2056 { + if yyr2184 || yy2arr2184 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2056[0] { - yym2058 := z.EncBinary() - _ = yym2058 + if yyq2184[0] { + yym2186 := z.EncBinary() + _ = yym2186 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -27542,23 +29142,23 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2056[0] { + if yyq2184[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2059 := z.EncBinary() - _ = yym2059 + yym2187 := z.EncBinary() + _ = yym2187 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2056 || yy2arr2056 { + if yyr2184 || yy2arr2184 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2056[1] { - yym2061 := z.EncBinary() - _ = yym2061 + if yyq2184[1] { + yym2189 := z.EncBinary() + _ = yym2189 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -27567,53 +29167,53 @@ func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2056[1] { + if yyq2184[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2062 := z.EncBinary() - _ = yym2062 + yym2190 := z.EncBinary() + _ = yym2190 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2056 || yy2arr2056 { + if yyr2184 || yy2arr2184 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2056[2] { - yy2064 := &x.ObjectMeta - yy2064.CodecEncodeSelf(e) + if yyq2184[2] { + yy2192 := &x.ObjectMeta + yy2192.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2056[2] { + if yyq2184[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2065 := &x.ObjectMeta - yy2065.CodecEncodeSelf(e) + yy2193 := &x.ObjectMeta + yy2193.CodecEncodeSelf(e) } } - if yyr2056 || yy2arr2056 { + if yyr2184 || yy2arr2184 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2056[3] { - yy2067 := &x.Status - yy2067.CodecEncodeSelf(e) + if yyq2184[3] { + yy2195 := &x.Status + yy2195.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2056[3] { + if yyq2184[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2068 := &x.Status - yy2068.CodecEncodeSelf(e) + yy2196 := &x.Status + yy2196.CodecEncodeSelf(e) } } - if yyr2056 || yy2arr2056 { + if yyr2184 || yy2arr2184 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -27626,25 +29226,25 @@ func (x *PodStatusResult) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2069 := z.DecBinary() - _ = yym2069 + yym2197 := z.DecBinary() + _ = yym2197 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2070 := r.ContainerType() - if yyct2070 == codecSelferValueTypeMap1234 { - yyl2070 := r.ReadMapStart() - if yyl2070 == 0 { + yyct2198 := r.ContainerType() + if yyct2198 == codecSelferValueTypeMap1234 { + yyl2198 := r.ReadMapStart() + if yyl2198 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2070, d) + x.codecDecodeSelfFromMap(yyl2198, d) } - } else if yyct2070 == codecSelferValueTypeArray1234 { - yyl2070 := r.ReadArrayStart() - if yyl2070 == 0 { + } else if yyct2198 == codecSelferValueTypeArray1234 { + yyl2198 := r.ReadArrayStart() + if yyl2198 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2070, d) + x.codecDecodeSelfFromArray(yyl2198, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -27656,12 +29256,12 @@ func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2071Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2071Slc - var yyhl2071 bool = l >= 0 - for yyj2071 := 0; ; yyj2071++ { - if yyhl2071 { - if yyj2071 >= l { + var yys2199Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2199Slc + var yyhl2199 bool = l >= 0 + for yyj2199 := 0; ; yyj2199++ { + if yyhl2199 { + if yyj2199 >= l { break } } else { @@ -27670,10 +29270,10 @@ func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2071Slc = r.DecodeBytes(yys2071Slc, true, true) - yys2071 := string(yys2071Slc) + yys2199Slc = r.DecodeBytes(yys2199Slc, true, true) + yys2199 := string(yys2199Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2071 { + switch yys2199 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -27690,20 +29290,20 @@ func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2074 := &x.ObjectMeta - yyv2074.CodecDecodeSelf(d) + yyv2202 := &x.ObjectMeta + yyv2202.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2075 := &x.Status - yyv2075.CodecDecodeSelf(d) + yyv2203 := &x.Status + yyv2203.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2071) - } // end switch yys2071 - } // end for yyj2071 + z.DecStructFieldNotFound(-1, yys2199) + } // end switch yys2199 + } // end for yyj2199 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -27711,16 +29311,16 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2076 int - var yyb2076 bool - var yyhl2076 bool = l >= 0 - yyj2076++ - if yyhl2076 { - yyb2076 = yyj2076 > l + var yyj2204 int + var yyb2204 bool + var yyhl2204 bool = l >= 0 + yyj2204++ + if yyhl2204 { + yyb2204 = yyj2204 > l } else { - yyb2076 = r.CheckBreak() + yyb2204 = r.CheckBreak() } - if yyb2076 { + if yyb2204 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27730,13 +29330,13 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj2076++ - if yyhl2076 { - yyb2076 = yyj2076 > l + yyj2204++ + if yyhl2204 { + yyb2204 = yyj2204 > l } else { - yyb2076 = r.CheckBreak() + yyb2204 = r.CheckBreak() } - if yyb2076 { + if yyb2204 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27746,13 +29346,13 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj2076++ - if yyhl2076 { - yyb2076 = yyj2076 > l + yyj2204++ + if yyhl2204 { + yyb2204 = yyj2204 > l } else { - yyb2076 = r.CheckBreak() + yyb2204 = r.CheckBreak() } - if yyb2076 { + if yyb2204 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27760,16 +29360,16 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2079 := &x.ObjectMeta - yyv2079.CodecDecodeSelf(d) + yyv2207 := &x.ObjectMeta + yyv2207.CodecDecodeSelf(d) } - yyj2076++ - if yyhl2076 { - yyb2076 = yyj2076 > l + yyj2204++ + if yyhl2204 { + yyb2204 = yyj2204 > l } else { - yyb2076 = r.CheckBreak() + yyb2204 = r.CheckBreak() } - if yyb2076 { + if yyb2204 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -27777,21 +29377,21 @@ func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2080 := &x.Status - yyv2080.CodecDecodeSelf(d) + yyv2208 := &x.Status + yyv2208.CodecDecodeSelf(d) } for { - yyj2076++ - if yyhl2076 { - yyb2076 = yyj2076 > l + yyj2204++ + if yyhl2204 { + yyb2204 = yyj2204 > l } else { - yyb2076 = r.CheckBreak() + yyb2204 = r.CheckBreak() } - if yyb2076 { + if yyb2204 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2076-1, "") + z.DecStructFieldNotFound(yyj2204-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -27803,39 +29403,39 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2081 := z.EncBinary() - _ = yym2081 + yym2209 := z.EncBinary() + _ = yym2209 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2082 := !z.EncBinary() - yy2arr2082 := z.EncBasicHandle().StructToArray - var yyq2082 [5]bool - _, _, _ = yysep2082, yyq2082, yy2arr2082 - const yyr2082 bool = false - yyq2082[0] = x.Kind != "" - yyq2082[1] = x.APIVersion != "" - yyq2082[2] = true - yyq2082[3] = true - yyq2082[4] = true - var yynn2082 int - if yyr2082 || yy2arr2082 { + yysep2210 := !z.EncBinary() + yy2arr2210 := z.EncBasicHandle().StructToArray + var yyq2210 [5]bool + _, _, _ = yysep2210, yyq2210, yy2arr2210 + const yyr2210 bool = false + yyq2210[0] = x.Kind != "" + yyq2210[1] = x.APIVersion != "" + yyq2210[2] = true + yyq2210[3] = true + yyq2210[4] = true + var yynn2210 int + if yyr2210 || yy2arr2210 { r.EncodeArrayStart(5) } else { - yynn2082 = 0 - for _, b := range yyq2082 { + yynn2210 = 0 + for _, b := range yyq2210 { if b { - yynn2082++ + yynn2210++ } } - r.EncodeMapStart(yynn2082) - yynn2082 = 0 + r.EncodeMapStart(yynn2210) + yynn2210 = 0 } - if yyr2082 || yy2arr2082 { + if yyr2210 || yy2arr2210 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2082[0] { - yym2084 := z.EncBinary() - _ = yym2084 + if yyq2210[0] { + yym2212 := z.EncBinary() + _ = yym2212 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -27844,23 +29444,23 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2082[0] { + if yyq2210[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2085 := z.EncBinary() - _ = yym2085 + yym2213 := z.EncBinary() + _ = yym2213 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2082 || yy2arr2082 { + if yyr2210 || yy2arr2210 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2082[1] { - yym2087 := z.EncBinary() - _ = yym2087 + if yyq2210[1] { + yym2215 := z.EncBinary() + _ = yym2215 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -27869,70 +29469,70 @@ func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2082[1] { + if yyq2210[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2088 := z.EncBinary() - _ = yym2088 + yym2216 := z.EncBinary() + _ = yym2216 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2082 || yy2arr2082 { + if yyr2210 || yy2arr2210 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2082[2] { - yy2090 := &x.ObjectMeta - yy2090.CodecEncodeSelf(e) + if yyq2210[2] { + yy2218 := &x.ObjectMeta + yy2218.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2082[2] { + if yyq2210[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2091 := &x.ObjectMeta - yy2091.CodecEncodeSelf(e) + yy2219 := &x.ObjectMeta + yy2219.CodecEncodeSelf(e) } } - if yyr2082 || yy2arr2082 { + if yyr2210 || yy2arr2210 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2082[3] { - yy2093 := &x.Spec - yy2093.CodecEncodeSelf(e) + if yyq2210[3] { + yy2221 := &x.Spec + yy2221.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2082[3] { + if yyq2210[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2094 := &x.Spec - yy2094.CodecEncodeSelf(e) + yy2222 := &x.Spec + yy2222.CodecEncodeSelf(e) } } - if yyr2082 || yy2arr2082 { + if yyr2210 || yy2arr2210 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2082[4] { - yy2096 := &x.Status - yy2096.CodecEncodeSelf(e) + if yyq2210[4] { + yy2224 := &x.Status + yy2224.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2082[4] { + if yyq2210[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2097 := &x.Status - yy2097.CodecEncodeSelf(e) + yy2225 := &x.Status + yy2225.CodecEncodeSelf(e) } } - if yyr2082 || yy2arr2082 { + if yyr2210 || yy2arr2210 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -27945,25 +29545,25 @@ func (x *Pod) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2098 := z.DecBinary() - _ = yym2098 + yym2226 := z.DecBinary() + _ = yym2226 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2099 := r.ContainerType() - if yyct2099 == codecSelferValueTypeMap1234 { - yyl2099 := r.ReadMapStart() - if yyl2099 == 0 { + yyct2227 := r.ContainerType() + if yyct2227 == codecSelferValueTypeMap1234 { + yyl2227 := r.ReadMapStart() + if yyl2227 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2099, d) + x.codecDecodeSelfFromMap(yyl2227, d) } - } else if yyct2099 == codecSelferValueTypeArray1234 { - yyl2099 := r.ReadArrayStart() - if yyl2099 == 0 { + } else if yyct2227 == codecSelferValueTypeArray1234 { + yyl2227 := r.ReadArrayStart() + if yyl2227 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2099, d) + x.codecDecodeSelfFromArray(yyl2227, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -27975,12 +29575,12 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2100Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2100Slc - var yyhl2100 bool = l >= 0 - for yyj2100 := 0; ; yyj2100++ { - if yyhl2100 { - if yyj2100 >= l { + var yys2228Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2228Slc + var yyhl2228 bool = l >= 0 + for yyj2228 := 0; ; yyj2228++ { + if yyhl2228 { + if yyj2228 >= l { break } } else { @@ -27989,10 +29589,10 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2100Slc = r.DecodeBytes(yys2100Slc, true, true) - yys2100 := string(yys2100Slc) + yys2228Slc = r.DecodeBytes(yys2228Slc, true, true) + yys2228 := string(yys2228Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2100 { + switch yys2228 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -28009,27 +29609,27 @@ func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2103 := &x.ObjectMeta - yyv2103.CodecDecodeSelf(d) + yyv2231 := &x.ObjectMeta + yyv2231.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2104 := &x.Spec - yyv2104.CodecDecodeSelf(d) + yyv2232 := &x.Spec + yyv2232.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2105 := &x.Status - yyv2105.CodecDecodeSelf(d) + yyv2233 := &x.Status + yyv2233.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2100) - } // end switch yys2100 - } // end for yyj2100 + z.DecStructFieldNotFound(-1, yys2228) + } // end switch yys2228 + } // end for yyj2228 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28037,16 +29637,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2106 int - var yyb2106 bool - var yyhl2106 bool = l >= 0 - yyj2106++ - if yyhl2106 { - yyb2106 = yyj2106 > l + var yyj2234 int + var yyb2234 bool + var yyhl2234 bool = l >= 0 + yyj2234++ + if yyhl2234 { + yyb2234 = yyj2234 > l } else { - yyb2106 = r.CheckBreak() + yyb2234 = r.CheckBreak() } - if yyb2106 { + if yyb2234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28056,13 +29656,13 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2106++ - if yyhl2106 { - yyb2106 = yyj2106 > l + yyj2234++ + if yyhl2234 { + yyb2234 = yyj2234 > l } else { - yyb2106 = r.CheckBreak() + yyb2234 = r.CheckBreak() } - if yyb2106 { + if yyb2234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28072,13 +29672,13 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2106++ - if yyhl2106 { - yyb2106 = yyj2106 > l + yyj2234++ + if yyhl2234 { + yyb2234 = yyj2234 > l } else { - yyb2106 = r.CheckBreak() + yyb2234 = r.CheckBreak() } - if yyb2106 { + if yyb2234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28086,16 +29686,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2109 := &x.ObjectMeta - yyv2109.CodecDecodeSelf(d) + yyv2237 := &x.ObjectMeta + yyv2237.CodecDecodeSelf(d) } - yyj2106++ - if yyhl2106 { - yyb2106 = yyj2106 > l + yyj2234++ + if yyhl2234 { + yyb2234 = yyj2234 > l } else { - yyb2106 = r.CheckBreak() + yyb2234 = r.CheckBreak() } - if yyb2106 { + if yyb2234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28103,16 +29703,16 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2110 := &x.Spec - yyv2110.CodecDecodeSelf(d) + yyv2238 := &x.Spec + yyv2238.CodecDecodeSelf(d) } - yyj2106++ - if yyhl2106 { - yyb2106 = yyj2106 > l + yyj2234++ + if yyhl2234 { + yyb2234 = yyj2234 > l } else { - yyb2106 = r.CheckBreak() + yyb2234 = r.CheckBreak() } - if yyb2106 { + if yyb2234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28120,21 +29720,21 @@ func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { - yyv2111 := &x.Status - yyv2111.CodecDecodeSelf(d) + yyv2239 := &x.Status + yyv2239.CodecDecodeSelf(d) } for { - yyj2106++ - if yyhl2106 { - yyb2106 = yyj2106 > l + yyj2234++ + if yyhl2234 { + yyb2234 = yyj2234 > l } else { - yyb2106 = r.CheckBreak() + yyb2234 = r.CheckBreak() } - if yyb2106 { + if yyb2234 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2106-1, "") + z.DecStructFieldNotFound(yyj2234-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28146,37 +29746,37 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2112 := z.EncBinary() - _ = yym2112 + yym2240 := z.EncBinary() + _ = yym2240 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2113 := !z.EncBinary() - yy2arr2113 := z.EncBasicHandle().StructToArray - var yyq2113 [4]bool - _, _, _ = yysep2113, yyq2113, yy2arr2113 - const yyr2113 bool = false - yyq2113[0] = x.Kind != "" - yyq2113[1] = x.APIVersion != "" - yyq2113[2] = true - var yynn2113 int - if yyr2113 || yy2arr2113 { + yysep2241 := !z.EncBinary() + yy2arr2241 := z.EncBasicHandle().StructToArray + var yyq2241 [4]bool + _, _, _ = yysep2241, yyq2241, yy2arr2241 + const yyr2241 bool = false + yyq2241[0] = x.Kind != "" + yyq2241[1] = x.APIVersion != "" + yyq2241[2] = true + var yynn2241 int + if yyr2241 || yy2arr2241 { r.EncodeArrayStart(4) } else { - yynn2113 = 1 - for _, b := range yyq2113 { + yynn2241 = 1 + for _, b := range yyq2241 { if b { - yynn2113++ + yynn2241++ } } - r.EncodeMapStart(yynn2113) - yynn2113 = 0 + r.EncodeMapStart(yynn2241) + yynn2241 = 0 } - if yyr2113 || yy2arr2113 { + if yyr2241 || yy2arr2241 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2113[0] { - yym2115 := z.EncBinary() - _ = yym2115 + if yyq2241[0] { + yym2243 := z.EncBinary() + _ = yym2243 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -28185,23 +29785,23 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2113[0] { + if yyq2241[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2116 := z.EncBinary() - _ = yym2116 + yym2244 := z.EncBinary() + _ = yym2244 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2113 || yy2arr2113 { + if yyr2241 || yy2arr2241 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2113[1] { - yym2118 := z.EncBinary() - _ = yym2118 + if yyq2241[1] { + yym2246 := z.EncBinary() + _ = yym2246 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -28210,54 +29810,54 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2113[1] { + if yyq2241[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2119 := z.EncBinary() - _ = yym2119 + yym2247 := z.EncBinary() + _ = yym2247 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2113 || yy2arr2113 { + if yyr2241 || yy2arr2241 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2113[2] { - yy2121 := &x.ListMeta - yym2122 := z.EncBinary() - _ = yym2122 + if yyq2241[2] { + yy2249 := &x.ListMeta + yym2250 := z.EncBinary() + _ = yym2250 if false { - } else if z.HasExtensions() && z.EncExt(yy2121) { + } else if z.HasExtensions() && z.EncExt(yy2249) { } else { - z.EncFallback(yy2121) + z.EncFallback(yy2249) } } else { r.EncodeNil() } } else { - if yyq2113[2] { + if yyq2241[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2123 := &x.ListMeta - yym2124 := z.EncBinary() - _ = yym2124 + yy2251 := &x.ListMeta + yym2252 := z.EncBinary() + _ = yym2252 if false { - } else if z.HasExtensions() && z.EncExt(yy2123) { + } else if z.HasExtensions() && z.EncExt(yy2251) { } else { - z.EncFallback(yy2123) + z.EncFallback(yy2251) } } } - if yyr2113 || yy2arr2113 { + if yyr2241 || yy2arr2241 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2126 := z.EncBinary() - _ = yym2126 + yym2254 := z.EncBinary() + _ = yym2254 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) @@ -28270,15 +29870,15 @@ func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2127 := z.EncBinary() - _ = yym2127 + yym2255 := z.EncBinary() + _ = yym2255 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } - if yyr2113 || yy2arr2113 { + if yyr2241 || yy2arr2241 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -28291,25 +29891,25 @@ func (x *PodList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2128 := z.DecBinary() - _ = yym2128 + yym2256 := z.DecBinary() + _ = yym2256 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2129 := r.ContainerType() - if yyct2129 == codecSelferValueTypeMap1234 { - yyl2129 := r.ReadMapStart() - if yyl2129 == 0 { + yyct2257 := r.ContainerType() + if yyct2257 == codecSelferValueTypeMap1234 { + yyl2257 := r.ReadMapStart() + if yyl2257 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2129, d) + x.codecDecodeSelfFromMap(yyl2257, d) } - } else if yyct2129 == codecSelferValueTypeArray1234 { - yyl2129 := r.ReadArrayStart() - if yyl2129 == 0 { + } else if yyct2257 == codecSelferValueTypeArray1234 { + yyl2257 := r.ReadArrayStart() + if yyl2257 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2129, d) + x.codecDecodeSelfFromArray(yyl2257, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -28321,12 +29921,12 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2130Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2130Slc - var yyhl2130 bool = l >= 0 - for yyj2130 := 0; ; yyj2130++ { - if yyhl2130 { - if yyj2130 >= l { + var yys2258Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2258Slc + var yyhl2258 bool = l >= 0 + for yyj2258 := 0; ; yyj2258++ { + if yyhl2258 { + if yyj2258 >= l { break } } else { @@ -28335,10 +29935,10 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2130Slc = r.DecodeBytes(yys2130Slc, true, true) - yys2130 := string(yys2130Slc) + yys2258Slc = r.DecodeBytes(yys2258Slc, true, true) + yys2258 := string(yys2258Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2130 { + switch yys2258 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -28355,31 +29955,31 @@ func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2133 := &x.ListMeta - yym2134 := z.DecBinary() - _ = yym2134 + yyv2261 := &x.ListMeta + yym2262 := z.DecBinary() + _ = yym2262 if false { - } else if z.HasExtensions() && z.DecExt(yyv2133) { + } else if z.HasExtensions() && z.DecExt(yyv2261) { } else { - z.DecFallback(yyv2133, false) + z.DecFallback(yyv2261, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2135 := &x.Items - yym2136 := z.DecBinary() - _ = yym2136 + yyv2263 := &x.Items + yym2264 := z.DecBinary() + _ = yym2264 if false { } else { - h.decSlicePod((*[]Pod)(yyv2135), d) + h.decSlicePod((*[]Pod)(yyv2263), d) } } default: - z.DecStructFieldNotFound(-1, yys2130) - } // end switch yys2130 - } // end for yyj2130 + z.DecStructFieldNotFound(-1, yys2258) + } // end switch yys2258 + } // end for yyj2258 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28387,16 +29987,16 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2137 int - var yyb2137 bool - var yyhl2137 bool = l >= 0 - yyj2137++ - if yyhl2137 { - yyb2137 = yyj2137 > l + var yyj2265 int + var yyb2265 bool + var yyhl2265 bool = l >= 0 + yyj2265++ + if yyhl2265 { + yyb2265 = yyj2265 > l } else { - yyb2137 = r.CheckBreak() + yyb2265 = r.CheckBreak() } - if yyb2137 { + if yyb2265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28406,13 +30006,13 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2137++ - if yyhl2137 { - yyb2137 = yyj2137 > l + yyj2265++ + if yyhl2265 { + yyb2265 = yyj2265 > l } else { - yyb2137 = r.CheckBreak() + yyb2265 = r.CheckBreak() } - if yyb2137 { + if yyb2265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28422,13 +30022,13 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2137++ - if yyhl2137 { - yyb2137 = yyj2137 > l + yyj2265++ + if yyhl2265 { + yyb2265 = yyj2265 > l } else { - yyb2137 = r.CheckBreak() + yyb2265 = r.CheckBreak() } - if yyb2137 { + if yyb2265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28436,22 +30036,22 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2140 := &x.ListMeta - yym2141 := z.DecBinary() - _ = yym2141 + yyv2268 := &x.ListMeta + yym2269 := z.DecBinary() + _ = yym2269 if false { - } else if z.HasExtensions() && z.DecExt(yyv2140) { + } else if z.HasExtensions() && z.DecExt(yyv2268) { } else { - z.DecFallback(yyv2140, false) + z.DecFallback(yyv2268, false) } } - yyj2137++ - if yyhl2137 { - yyb2137 = yyj2137 > l + yyj2265++ + if yyhl2265 { + yyb2265 = yyj2265 > l } else { - yyb2137 = r.CheckBreak() + yyb2265 = r.CheckBreak() } - if yyb2137 { + if yyb2265 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28459,26 +30059,26 @@ func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2142 := &x.Items - yym2143 := z.DecBinary() - _ = yym2143 + yyv2270 := &x.Items + yym2271 := z.DecBinary() + _ = yym2271 if false { } else { - h.decSlicePod((*[]Pod)(yyv2142), d) + h.decSlicePod((*[]Pod)(yyv2270), d) } } for { - yyj2137++ - if yyhl2137 { - yyb2137 = yyj2137 > l + yyj2265++ + if yyhl2265 { + yyb2265 = yyj2265 > l } else { - yyb2137 = r.CheckBreak() + yyb2265 = r.CheckBreak() } - if yyb2137 { + if yyb2265 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2137-1, "") + z.DecStructFieldNotFound(yyj2265-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28490,66 +30090,66 @@ func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2144 := z.EncBinary() - _ = yym2144 + yym2272 := z.EncBinary() + _ = yym2272 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2145 := !z.EncBinary() - yy2arr2145 := z.EncBasicHandle().StructToArray - var yyq2145 [2]bool - _, _, _ = yysep2145, yyq2145, yy2arr2145 - const yyr2145 bool = false - yyq2145[0] = true - yyq2145[1] = true - var yynn2145 int - if yyr2145 || yy2arr2145 { + yysep2273 := !z.EncBinary() + yy2arr2273 := z.EncBasicHandle().StructToArray + var yyq2273 [2]bool + _, _, _ = yysep2273, yyq2273, yy2arr2273 + const yyr2273 bool = false + yyq2273[0] = true + yyq2273[1] = true + var yynn2273 int + if yyr2273 || yy2arr2273 { r.EncodeArrayStart(2) } else { - yynn2145 = 0 - for _, b := range yyq2145 { + yynn2273 = 0 + for _, b := range yyq2273 { if b { - yynn2145++ + yynn2273++ } } - r.EncodeMapStart(yynn2145) - yynn2145 = 0 + r.EncodeMapStart(yynn2273) + yynn2273 = 0 } - if yyr2145 || yy2arr2145 { + if yyr2273 || yy2arr2273 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2145[0] { - yy2147 := &x.ObjectMeta - yy2147.CodecEncodeSelf(e) + if yyq2273[0] { + yy2275 := &x.ObjectMeta + yy2275.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2145[0] { + if yyq2273[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2148 := &x.ObjectMeta - yy2148.CodecEncodeSelf(e) + yy2276 := &x.ObjectMeta + yy2276.CodecEncodeSelf(e) } } - if yyr2145 || yy2arr2145 { + if yyr2273 || yy2arr2273 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2145[1] { - yy2150 := &x.Spec - yy2150.CodecEncodeSelf(e) + if yyq2273[1] { + yy2278 := &x.Spec + yy2278.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2145[1] { + if yyq2273[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2151 := &x.Spec - yy2151.CodecEncodeSelf(e) + yy2279 := &x.Spec + yy2279.CodecEncodeSelf(e) } } - if yyr2145 || yy2arr2145 { + if yyr2273 || yy2arr2273 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -28562,25 +30162,25 @@ func (x *PodTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2152 := z.DecBinary() - _ = yym2152 + yym2280 := z.DecBinary() + _ = yym2280 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2153 := r.ContainerType() - if yyct2153 == codecSelferValueTypeMap1234 { - yyl2153 := r.ReadMapStart() - if yyl2153 == 0 { + yyct2281 := r.ContainerType() + if yyct2281 == codecSelferValueTypeMap1234 { + yyl2281 := r.ReadMapStart() + if yyl2281 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2153, d) + x.codecDecodeSelfFromMap(yyl2281, d) } - } else if yyct2153 == codecSelferValueTypeArray1234 { - yyl2153 := r.ReadArrayStart() - if yyl2153 == 0 { + } else if yyct2281 == codecSelferValueTypeArray1234 { + yyl2281 := r.ReadArrayStart() + if yyl2281 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2153, d) + x.codecDecodeSelfFromArray(yyl2281, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -28592,12 +30192,12 @@ func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2154Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2154Slc - var yyhl2154 bool = l >= 0 - for yyj2154 := 0; ; yyj2154++ { - if yyhl2154 { - if yyj2154 >= l { + var yys2282Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2282Slc + var yyhl2282 bool = l >= 0 + for yyj2282 := 0; ; yyj2282++ { + if yyhl2282 { + if yyj2282 >= l { break } } else { @@ -28606,28 +30206,28 @@ func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2154Slc = r.DecodeBytes(yys2154Slc, true, true) - yys2154 := string(yys2154Slc) + yys2282Slc = r.DecodeBytes(yys2282Slc, true, true) + yys2282 := string(yys2282Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2154 { + switch yys2282 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2155 := &x.ObjectMeta - yyv2155.CodecDecodeSelf(d) + yyv2283 := &x.ObjectMeta + yyv2283.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2156 := &x.Spec - yyv2156.CodecDecodeSelf(d) + yyv2284 := &x.Spec + yyv2284.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2154) - } // end switch yys2154 - } // end for yyj2154 + z.DecStructFieldNotFound(-1, yys2282) + } // end switch yys2282 + } // end for yyj2282 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28635,16 +30235,16 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2157 int - var yyb2157 bool - var yyhl2157 bool = l >= 0 - yyj2157++ - if yyhl2157 { - yyb2157 = yyj2157 > l + var yyj2285 int + var yyb2285 bool + var yyhl2285 bool = l >= 0 + yyj2285++ + if yyhl2285 { + yyb2285 = yyj2285 > l } else { - yyb2157 = r.CheckBreak() + yyb2285 = r.CheckBreak() } - if yyb2157 { + if yyb2285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28652,16 +30252,16 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2158 := &x.ObjectMeta - yyv2158.CodecDecodeSelf(d) + yyv2286 := &x.ObjectMeta + yyv2286.CodecDecodeSelf(d) } - yyj2157++ - if yyhl2157 { - yyb2157 = yyj2157 > l + yyj2285++ + if yyhl2285 { + yyb2285 = yyj2285 > l } else { - yyb2157 = r.CheckBreak() + yyb2285 = r.CheckBreak() } - if yyb2157 { + if yyb2285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28669,21 +30269,21 @@ func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { - yyv2159 := &x.Spec - yyv2159.CodecDecodeSelf(d) + yyv2287 := &x.Spec + yyv2287.CodecDecodeSelf(d) } for { - yyj2157++ - if yyhl2157 { - yyb2157 = yyj2157 > l + yyj2285++ + if yyhl2285 { + yyb2285 = yyj2285 > l } else { - yyb2157 = r.CheckBreak() + yyb2285 = r.CheckBreak() } - if yyb2157 { + if yyb2285 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2157-1, "") + z.DecStructFieldNotFound(yyj2285-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28695,38 +30295,38 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2160 := z.EncBinary() - _ = yym2160 + yym2288 := z.EncBinary() + _ = yym2288 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2161 := !z.EncBinary() - yy2arr2161 := z.EncBasicHandle().StructToArray - var yyq2161 [4]bool - _, _, _ = yysep2161, yyq2161, yy2arr2161 - const yyr2161 bool = false - yyq2161[0] = x.Kind != "" - yyq2161[1] = x.APIVersion != "" - yyq2161[2] = true - yyq2161[3] = true - var yynn2161 int - if yyr2161 || yy2arr2161 { + yysep2289 := !z.EncBinary() + yy2arr2289 := z.EncBasicHandle().StructToArray + var yyq2289 [4]bool + _, _, _ = yysep2289, yyq2289, yy2arr2289 + const yyr2289 bool = false + yyq2289[0] = x.Kind != "" + yyq2289[1] = x.APIVersion != "" + yyq2289[2] = true + yyq2289[3] = true + var yynn2289 int + if yyr2289 || yy2arr2289 { r.EncodeArrayStart(4) } else { - yynn2161 = 0 - for _, b := range yyq2161 { + yynn2289 = 0 + for _, b := range yyq2289 { if b { - yynn2161++ + yynn2289++ } } - r.EncodeMapStart(yynn2161) - yynn2161 = 0 + r.EncodeMapStart(yynn2289) + yynn2289 = 0 } - if yyr2161 || yy2arr2161 { + if yyr2289 || yy2arr2289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2161[0] { - yym2163 := z.EncBinary() - _ = yym2163 + if yyq2289[0] { + yym2291 := z.EncBinary() + _ = yym2291 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -28735,23 +30335,23 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2161[0] { + if yyq2289[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2164 := z.EncBinary() - _ = yym2164 + yym2292 := z.EncBinary() + _ = yym2292 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2161 || yy2arr2161 { + if yyr2289 || yy2arr2289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2161[1] { - yym2166 := z.EncBinary() - _ = yym2166 + if yyq2289[1] { + yym2294 := z.EncBinary() + _ = yym2294 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -28760,53 +30360,53 @@ func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2161[1] { + if yyq2289[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2167 := z.EncBinary() - _ = yym2167 + yym2295 := z.EncBinary() + _ = yym2295 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2161 || yy2arr2161 { + if yyr2289 || yy2arr2289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2161[2] { - yy2169 := &x.ObjectMeta - yy2169.CodecEncodeSelf(e) + if yyq2289[2] { + yy2297 := &x.ObjectMeta + yy2297.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2161[2] { + if yyq2289[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2170 := &x.ObjectMeta - yy2170.CodecEncodeSelf(e) + yy2298 := &x.ObjectMeta + yy2298.CodecEncodeSelf(e) } } - if yyr2161 || yy2arr2161 { + if yyr2289 || yy2arr2289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2161[3] { - yy2172 := &x.Template - yy2172.CodecEncodeSelf(e) + if yyq2289[3] { + yy2300 := &x.Template + yy2300.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2161[3] { + if yyq2289[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2173 := &x.Template - yy2173.CodecEncodeSelf(e) + yy2301 := &x.Template + yy2301.CodecEncodeSelf(e) } } - if yyr2161 || yy2arr2161 { + if yyr2289 || yy2arr2289 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -28819,25 +30419,25 @@ func (x *PodTemplate) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2174 := z.DecBinary() - _ = yym2174 + yym2302 := z.DecBinary() + _ = yym2302 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2175 := r.ContainerType() - if yyct2175 == codecSelferValueTypeMap1234 { - yyl2175 := r.ReadMapStart() - if yyl2175 == 0 { + yyct2303 := r.ContainerType() + if yyct2303 == codecSelferValueTypeMap1234 { + yyl2303 := r.ReadMapStart() + if yyl2303 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2175, d) + x.codecDecodeSelfFromMap(yyl2303, d) } - } else if yyct2175 == codecSelferValueTypeArray1234 { - yyl2175 := r.ReadArrayStart() - if yyl2175 == 0 { + } else if yyct2303 == codecSelferValueTypeArray1234 { + yyl2303 := r.ReadArrayStart() + if yyl2303 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2175, d) + x.codecDecodeSelfFromArray(yyl2303, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -28849,12 +30449,12 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2176Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2176Slc - var yyhl2176 bool = l >= 0 - for yyj2176 := 0; ; yyj2176++ { - if yyhl2176 { - if yyj2176 >= l { + var yys2304Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2304Slc + var yyhl2304 bool = l >= 0 + for yyj2304 := 0; ; yyj2304++ { + if yyhl2304 { + if yyj2304 >= l { break } } else { @@ -28863,10 +30463,10 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2176Slc = r.DecodeBytes(yys2176Slc, true, true) - yys2176 := string(yys2176Slc) + yys2304Slc = r.DecodeBytes(yys2304Slc, true, true) + yys2304 := string(yys2304Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2176 { + switch yys2304 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -28883,20 +30483,20 @@ func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2179 := &x.ObjectMeta - yyv2179.CodecDecodeSelf(d) + yyv2307 := &x.ObjectMeta + yyv2307.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { - yyv2180 := &x.Template - yyv2180.CodecDecodeSelf(d) + yyv2308 := &x.Template + yyv2308.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2176) - } // end switch yys2176 - } // end for yyj2176 + z.DecStructFieldNotFound(-1, yys2304) + } // end switch yys2304 + } // end for yyj2304 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -28904,16 +30504,16 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2181 int - var yyb2181 bool - var yyhl2181 bool = l >= 0 - yyj2181++ - if yyhl2181 { - yyb2181 = yyj2181 > l + var yyj2309 int + var yyb2309 bool + var yyhl2309 bool = l >= 0 + yyj2309++ + if yyhl2309 { + yyb2309 = yyj2309 > l } else { - yyb2181 = r.CheckBreak() + yyb2309 = r.CheckBreak() } - if yyb2181 { + if yyb2309 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28923,13 +30523,13 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2181++ - if yyhl2181 { - yyb2181 = yyj2181 > l + yyj2309++ + if yyhl2309 { + yyb2309 = yyj2309 > l } else { - yyb2181 = r.CheckBreak() + yyb2309 = r.CheckBreak() } - if yyb2181 { + if yyb2309 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28939,13 +30539,13 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2181++ - if yyhl2181 { - yyb2181 = yyj2181 > l + yyj2309++ + if yyhl2309 { + yyb2309 = yyj2309 > l } else { - yyb2181 = r.CheckBreak() + yyb2309 = r.CheckBreak() } - if yyb2181 { + if yyb2309 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28953,16 +30553,16 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2184 := &x.ObjectMeta - yyv2184.CodecDecodeSelf(d) + yyv2312 := &x.ObjectMeta + yyv2312.CodecDecodeSelf(d) } - yyj2181++ - if yyhl2181 { - yyb2181 = yyj2181 > l + yyj2309++ + if yyhl2309 { + yyb2309 = yyj2309 > l } else { - yyb2181 = r.CheckBreak() + yyb2309 = r.CheckBreak() } - if yyb2181 { + if yyb2309 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -28970,21 +30570,21 @@ func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { - yyv2185 := &x.Template - yyv2185.CodecDecodeSelf(d) + yyv2313 := &x.Template + yyv2313.CodecDecodeSelf(d) } for { - yyj2181++ - if yyhl2181 { - yyb2181 = yyj2181 > l + yyj2309++ + if yyhl2309 { + yyb2309 = yyj2309 > l } else { - yyb2181 = r.CheckBreak() + yyb2309 = r.CheckBreak() } - if yyb2181 { + if yyb2309 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2181-1, "") + z.DecStructFieldNotFound(yyj2309-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -28996,37 +30596,37 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2186 := z.EncBinary() - _ = yym2186 + yym2314 := z.EncBinary() + _ = yym2314 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2187 := !z.EncBinary() - yy2arr2187 := z.EncBasicHandle().StructToArray - var yyq2187 [4]bool - _, _, _ = yysep2187, yyq2187, yy2arr2187 - const yyr2187 bool = false - yyq2187[0] = x.Kind != "" - yyq2187[1] = x.APIVersion != "" - yyq2187[2] = true - var yynn2187 int - if yyr2187 || yy2arr2187 { + yysep2315 := !z.EncBinary() + yy2arr2315 := z.EncBasicHandle().StructToArray + var yyq2315 [4]bool + _, _, _ = yysep2315, yyq2315, yy2arr2315 + const yyr2315 bool = false + yyq2315[0] = x.Kind != "" + yyq2315[1] = x.APIVersion != "" + yyq2315[2] = true + var yynn2315 int + if yyr2315 || yy2arr2315 { r.EncodeArrayStart(4) } else { - yynn2187 = 1 - for _, b := range yyq2187 { + yynn2315 = 1 + for _, b := range yyq2315 { if b { - yynn2187++ + yynn2315++ } } - r.EncodeMapStart(yynn2187) - yynn2187 = 0 + r.EncodeMapStart(yynn2315) + yynn2315 = 0 } - if yyr2187 || yy2arr2187 { + if yyr2315 || yy2arr2315 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2187[0] { - yym2189 := z.EncBinary() - _ = yym2189 + if yyq2315[0] { + yym2317 := z.EncBinary() + _ = yym2317 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -29035,23 +30635,23 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2187[0] { + if yyq2315[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2190 := z.EncBinary() - _ = yym2190 + yym2318 := z.EncBinary() + _ = yym2318 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2187 || yy2arr2187 { + if yyr2315 || yy2arr2315 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2187[1] { - yym2192 := z.EncBinary() - _ = yym2192 + if yyq2315[1] { + yym2320 := z.EncBinary() + _ = yym2320 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -29060,54 +30660,54 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2187[1] { + if yyq2315[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2193 := z.EncBinary() - _ = yym2193 + yym2321 := z.EncBinary() + _ = yym2321 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2187 || yy2arr2187 { + if yyr2315 || yy2arr2315 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2187[2] { - yy2195 := &x.ListMeta - yym2196 := z.EncBinary() - _ = yym2196 + if yyq2315[2] { + yy2323 := &x.ListMeta + yym2324 := z.EncBinary() + _ = yym2324 if false { - } else if z.HasExtensions() && z.EncExt(yy2195) { + } else if z.HasExtensions() && z.EncExt(yy2323) { } else { - z.EncFallback(yy2195) + z.EncFallback(yy2323) } } else { r.EncodeNil() } } else { - if yyq2187[2] { + if yyq2315[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2197 := &x.ListMeta - yym2198 := z.EncBinary() - _ = yym2198 + yy2325 := &x.ListMeta + yym2326 := z.EncBinary() + _ = yym2326 if false { - } else if z.HasExtensions() && z.EncExt(yy2197) { + } else if z.HasExtensions() && z.EncExt(yy2325) { } else { - z.EncFallback(yy2197) + z.EncFallback(yy2325) } } } - if yyr2187 || yy2arr2187 { + if yyr2315 || yy2arr2315 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2200 := z.EncBinary() - _ = yym2200 + yym2328 := z.EncBinary() + _ = yym2328 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) @@ -29120,15 +30720,15 @@ func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2201 := z.EncBinary() - _ = yym2201 + yym2329 := z.EncBinary() + _ = yym2329 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } - if yyr2187 || yy2arr2187 { + if yyr2315 || yy2arr2315 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -29141,25 +30741,25 @@ func (x *PodTemplateList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2202 := z.DecBinary() - _ = yym2202 + yym2330 := z.DecBinary() + _ = yym2330 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2203 := r.ContainerType() - if yyct2203 == codecSelferValueTypeMap1234 { - yyl2203 := r.ReadMapStart() - if yyl2203 == 0 { + yyct2331 := r.ContainerType() + if yyct2331 == codecSelferValueTypeMap1234 { + yyl2331 := r.ReadMapStart() + if yyl2331 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2203, d) + x.codecDecodeSelfFromMap(yyl2331, d) } - } else if yyct2203 == codecSelferValueTypeArray1234 { - yyl2203 := r.ReadArrayStart() - if yyl2203 == 0 { + } else if yyct2331 == codecSelferValueTypeArray1234 { + yyl2331 := r.ReadArrayStart() + if yyl2331 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2203, d) + x.codecDecodeSelfFromArray(yyl2331, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -29171,12 +30771,12 @@ func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2204Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2204Slc - var yyhl2204 bool = l >= 0 - for yyj2204 := 0; ; yyj2204++ { - if yyhl2204 { - if yyj2204 >= l { + var yys2332Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2332Slc + var yyhl2332 bool = l >= 0 + for yyj2332 := 0; ; yyj2332++ { + if yyhl2332 { + if yyj2332 >= l { break } } else { @@ -29185,10 +30785,10 @@ func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2204Slc = r.DecodeBytes(yys2204Slc, true, true) - yys2204 := string(yys2204Slc) + yys2332Slc = r.DecodeBytes(yys2332Slc, true, true) + yys2332 := string(yys2332Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2204 { + switch yys2332 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -29205,31 +30805,31 @@ func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2207 := &x.ListMeta - yym2208 := z.DecBinary() - _ = yym2208 + yyv2335 := &x.ListMeta + yym2336 := z.DecBinary() + _ = yym2336 if false { - } else if z.HasExtensions() && z.DecExt(yyv2207) { + } else if z.HasExtensions() && z.DecExt(yyv2335) { } else { - z.DecFallback(yyv2207, false) + z.DecFallback(yyv2335, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2209 := &x.Items - yym2210 := z.DecBinary() - _ = yym2210 + yyv2337 := &x.Items + yym2338 := z.DecBinary() + _ = yym2338 if false { } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv2209), d) + h.decSlicePodTemplate((*[]PodTemplate)(yyv2337), d) } } default: - z.DecStructFieldNotFound(-1, yys2204) - } // end switch yys2204 - } // end for yyj2204 + z.DecStructFieldNotFound(-1, yys2332) + } // end switch yys2332 + } // end for yyj2332 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -29237,16 +30837,16 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2211 int - var yyb2211 bool - var yyhl2211 bool = l >= 0 - yyj2211++ - if yyhl2211 { - yyb2211 = yyj2211 > l + var yyj2339 int + var yyb2339 bool + var yyhl2339 bool = l >= 0 + yyj2339++ + if yyhl2339 { + yyb2339 = yyj2339 > l } else { - yyb2211 = r.CheckBreak() + yyb2339 = r.CheckBreak() } - if yyb2211 { + if yyb2339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29256,13 +30856,13 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj2211++ - if yyhl2211 { - yyb2211 = yyj2211 > l + yyj2339++ + if yyhl2339 { + yyb2339 = yyj2339 > l } else { - yyb2211 = r.CheckBreak() + yyb2339 = r.CheckBreak() } - if yyb2211 { + if yyb2339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29272,13 +30872,13 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj2211++ - if yyhl2211 { - yyb2211 = yyj2211 > l + yyj2339++ + if yyhl2339 { + yyb2339 = yyj2339 > l } else { - yyb2211 = r.CheckBreak() + yyb2339 = r.CheckBreak() } - if yyb2211 { + if yyb2339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29286,22 +30886,22 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2214 := &x.ListMeta - yym2215 := z.DecBinary() - _ = yym2215 + yyv2342 := &x.ListMeta + yym2343 := z.DecBinary() + _ = yym2343 if false { - } else if z.HasExtensions() && z.DecExt(yyv2214) { + } else if z.HasExtensions() && z.DecExt(yyv2342) { } else { - z.DecFallback(yyv2214, false) + z.DecFallback(yyv2342, false) } } - yyj2211++ - if yyhl2211 { - yyb2211 = yyj2211 > l + yyj2339++ + if yyhl2339 { + yyb2339 = yyj2339 > l } else { - yyb2211 = r.CheckBreak() + yyb2339 = r.CheckBreak() } - if yyb2211 { + if yyb2339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29309,26 +30909,26 @@ func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2216 := &x.Items - yym2217 := z.DecBinary() - _ = yym2217 + yyv2344 := &x.Items + yym2345 := z.DecBinary() + _ = yym2345 if false { } else { - h.decSlicePodTemplate((*[]PodTemplate)(yyv2216), d) + h.decSlicePodTemplate((*[]PodTemplate)(yyv2344), d) } } for { - yyj2211++ - if yyhl2211 { - yyb2211 = yyj2211 > l + yyj2339++ + if yyhl2339 { + yyb2339 = yyj2339 > l } else { - yyb2211 = r.CheckBreak() + yyb2339 = r.CheckBreak() } - if yyb2211 { + if yyb2339 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2211-1, "") + z.DecStructFieldNotFound(yyj2339-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -29340,75 +30940,75 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2218 := z.EncBinary() - _ = yym2218 + yym2346 := z.EncBinary() + _ = yym2346 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2219 := !z.EncBinary() - yy2arr2219 := z.EncBasicHandle().StructToArray - var yyq2219 [3]bool - _, _, _ = yysep2219, yyq2219, yy2arr2219 - const yyr2219 bool = false - yyq2219[0] = x.Replicas != nil - yyq2219[1] = len(x.Selector) != 0 - yyq2219[2] = x.Template != nil - var yynn2219 int - if yyr2219 || yy2arr2219 { + yysep2347 := !z.EncBinary() + yy2arr2347 := z.EncBasicHandle().StructToArray + var yyq2347 [3]bool + _, _, _ = yysep2347, yyq2347, yy2arr2347 + const yyr2347 bool = false + yyq2347[0] = x.Replicas != nil + yyq2347[1] = len(x.Selector) != 0 + yyq2347[2] = x.Template != nil + var yynn2347 int + if yyr2347 || yy2arr2347 { r.EncodeArrayStart(3) } else { - yynn2219 = 0 - for _, b := range yyq2219 { + yynn2347 = 0 + for _, b := range yyq2347 { if b { - yynn2219++ + yynn2347++ } } - r.EncodeMapStart(yynn2219) - yynn2219 = 0 + r.EncodeMapStart(yynn2347) + yynn2347 = 0 } - if yyr2219 || yy2arr2219 { + if yyr2347 || yy2arr2347 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2219[0] { + if yyq2347[0] { if x.Replicas == nil { r.EncodeNil() } else { - yy2221 := *x.Replicas - yym2222 := z.EncBinary() - _ = yym2222 + yy2349 := *x.Replicas + yym2350 := z.EncBinary() + _ = yym2350 if false { } else { - r.EncodeInt(int64(yy2221)) + r.EncodeInt(int64(yy2349)) } } } else { r.EncodeNil() } } else { - if yyq2219[0] { + if yyq2347[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Replicas == nil { r.EncodeNil() } else { - yy2223 := *x.Replicas - yym2224 := z.EncBinary() - _ = yym2224 + yy2351 := *x.Replicas + yym2352 := z.EncBinary() + _ = yym2352 if false { } else { - r.EncodeInt(int64(yy2223)) + r.EncodeInt(int64(yy2351)) } } } } - if yyr2219 || yy2arr2219 { + if yyr2347 || yy2arr2347 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2219[1] { + if yyq2347[1] { if x.Selector == nil { r.EncodeNil() } else { - yym2226 := z.EncBinary() - _ = yym2226 + yym2354 := z.EncBinary() + _ = yym2354 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -29418,15 +31018,15 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2219[1] { + if yyq2347[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym2227 := z.EncBinary() - _ = yym2227 + yym2355 := z.EncBinary() + _ = yym2355 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -29434,9 +31034,9 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2219 || yy2arr2219 { + if yyr2347 || yy2arr2347 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2219[2] { + if yyq2347[2] { if x.Template == nil { r.EncodeNil() } else { @@ -29446,7 +31046,7 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2219[2] { + if yyq2347[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -29457,7 +31057,7 @@ func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2219 || yy2arr2219 { + if yyr2347 || yy2arr2347 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -29470,25 +31070,25 @@ func (x *ReplicationControllerSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2229 := z.DecBinary() - _ = yym2229 + yym2357 := z.DecBinary() + _ = yym2357 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2230 := r.ContainerType() - if yyct2230 == codecSelferValueTypeMap1234 { - yyl2230 := r.ReadMapStart() - if yyl2230 == 0 { + yyct2358 := r.ContainerType() + if yyct2358 == codecSelferValueTypeMap1234 { + yyl2358 := r.ReadMapStart() + if yyl2358 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2230, d) + x.codecDecodeSelfFromMap(yyl2358, d) } - } else if yyct2230 == codecSelferValueTypeArray1234 { - yyl2230 := r.ReadArrayStart() - if yyl2230 == 0 { + } else if yyct2358 == codecSelferValueTypeArray1234 { + yyl2358 := r.ReadArrayStart() + if yyl2358 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2230, d) + x.codecDecodeSelfFromArray(yyl2358, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -29500,12 +31100,12 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2231Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2231Slc - var yyhl2231 bool = l >= 0 - for yyj2231 := 0; ; yyj2231++ { - if yyhl2231 { - if yyj2231 >= l { + var yys2359Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2359Slc + var yyhl2359 bool = l >= 0 + for yyj2359 := 0; ; yyj2359++ { + if yyhl2359 { + if yyj2359 >= l { break } } else { @@ -29514,10 +31114,10 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2231Slc = r.DecodeBytes(yys2231Slc, true, true) - yys2231 := string(yys2231Slc) + yys2359Slc = r.DecodeBytes(yys2359Slc, true, true) + yys2359 := string(yys2359Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2231 { + switch yys2359 { case "replicas": if r.TryDecodeAsNil() { if x.Replicas != nil { @@ -29527,8 +31127,8 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D if x.Replicas == nil { x.Replicas = new(int32) } - yym2233 := z.DecBinary() - _ = yym2233 + yym2361 := z.DecBinary() + _ = yym2361 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) @@ -29538,12 +31138,12 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2234 := &x.Selector - yym2235 := z.DecBinary() - _ = yym2235 + yyv2362 := &x.Selector + yym2363 := z.DecBinary() + _ = yym2363 if false { } else { - z.F.DecMapStringStringX(yyv2234, false, d) + z.F.DecMapStringStringX(yyv2362, false, d) } } case "template": @@ -29558,9 +31158,9 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.D x.Template.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2231) - } // end switch yys2231 - } // end for yyj2231 + z.DecStructFieldNotFound(-1, yys2359) + } // end switch yys2359 + } // end for yyj2359 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -29568,16 +31168,16 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2237 int - var yyb2237 bool - var yyhl2237 bool = l >= 0 - yyj2237++ - if yyhl2237 { - yyb2237 = yyj2237 > l + var yyj2365 int + var yyb2365 bool + var yyhl2365 bool = l >= 0 + yyj2365++ + if yyhl2365 { + yyb2365 = yyj2365 > l } else { - yyb2237 = r.CheckBreak() + yyb2365 = r.CheckBreak() } - if yyb2237 { + if yyb2365 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29590,20 +31190,20 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 if x.Replicas == nil { x.Replicas = new(int32) } - yym2239 := z.DecBinary() - _ = yym2239 + yym2367 := z.DecBinary() + _ = yym2367 if false { } else { *((*int32)(x.Replicas)) = int32(r.DecodeInt(32)) } } - yyj2237++ - if yyhl2237 { - yyb2237 = yyj2237 > l + yyj2365++ + if yyhl2365 { + yyb2365 = yyj2365 > l } else { - yyb2237 = r.CheckBreak() + yyb2365 = r.CheckBreak() } - if yyb2237 { + if yyb2365 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29611,21 +31211,21 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2240 := &x.Selector - yym2241 := z.DecBinary() - _ = yym2241 + yyv2368 := &x.Selector + yym2369 := z.DecBinary() + _ = yym2369 if false { } else { - z.F.DecMapStringStringX(yyv2240, false, d) + z.F.DecMapStringStringX(yyv2368, false, d) } } - yyj2237++ - if yyhl2237 { - yyb2237 = yyj2237 > l + yyj2365++ + if yyhl2365 { + yyb2365 = yyj2365 > l } else { - yyb2237 = r.CheckBreak() + yyb2365 = r.CheckBreak() } - if yyb2237 { + if yyb2365 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29641,17 +31241,17 @@ func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978 x.Template.CodecDecodeSelf(d) } for { - yyj2237++ - if yyhl2237 { - yyb2237 = yyj2237 > l + yyj2365++ + if yyhl2365 { + yyb2365 = yyj2365 > l } else { - yyb2237 = r.CheckBreak() + yyb2365 = r.CheckBreak() } - if yyb2237 { + if yyb2365 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2237-1, "") + z.DecStructFieldNotFound(yyj2365-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -29663,35 +31263,36 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2243 := z.EncBinary() - _ = yym2243 + yym2371 := z.EncBinary() + _ = yym2371 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2244 := !z.EncBinary() - yy2arr2244 := z.EncBasicHandle().StructToArray - var yyq2244 [3]bool - _, _, _ = yysep2244, yyq2244, yy2arr2244 - const yyr2244 bool = false - yyq2244[1] = x.FullyLabeledReplicas != 0 - yyq2244[2] = x.ObservedGeneration != 0 - var yynn2244 int - if yyr2244 || yy2arr2244 { - r.EncodeArrayStart(3) + yysep2372 := !z.EncBinary() + yy2arr2372 := z.EncBasicHandle().StructToArray + var yyq2372 [4]bool + _, _, _ = yysep2372, yyq2372, yy2arr2372 + const yyr2372 bool = false + yyq2372[1] = x.FullyLabeledReplicas != 0 + yyq2372[2] = x.ReadyReplicas != 0 + yyq2372[3] = x.ObservedGeneration != 0 + var yynn2372 int + if yyr2372 || yy2arr2372 { + r.EncodeArrayStart(4) } else { - yynn2244 = 1 - for _, b := range yyq2244 { + yynn2372 = 1 + for _, b := range yyq2372 { if b { - yynn2244++ + yynn2372++ } } - r.EncodeMapStart(yynn2244) - yynn2244 = 0 + r.EncodeMapStart(yynn2372) + yynn2372 = 0 } - if yyr2244 || yy2arr2244 { + if yyr2372 || yy2arr2372 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2246 := z.EncBinary() - _ = yym2246 + yym2374 := z.EncBinary() + _ = yym2374 if false { } else { r.EncodeInt(int64(x.Replicas)) @@ -29700,18 +31301,18 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2247 := z.EncBinary() - _ = yym2247 + yym2375 := z.EncBinary() + _ = yym2375 if false { } else { r.EncodeInt(int64(x.Replicas)) } } - if yyr2244 || yy2arr2244 { + if yyr2372 || yy2arr2372 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2244[1] { - yym2249 := z.EncBinary() - _ = yym2249 + if yyq2372[1] { + yym2377 := z.EncBinary() + _ = yym2377 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) @@ -29720,23 +31321,48 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2244[1] { + if yyq2372[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2250 := z.EncBinary() - _ = yym2250 + yym2378 := z.EncBinary() + _ = yym2378 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } } - if yyr2244 || yy2arr2244 { + if yyr2372 || yy2arr2372 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2244[2] { - yym2252 := z.EncBinary() - _ = yym2252 + if yyq2372[2] { + yym2380 := z.EncBinary() + _ = yym2380 + if false { + } else { + r.EncodeInt(int64(x.ReadyReplicas)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2372[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readyReplicas")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2381 := z.EncBinary() + _ = yym2381 + if false { + } else { + r.EncodeInt(int64(x.ReadyReplicas)) + } + } + } + if yyr2372 || yy2arr2372 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2372[3] { + yym2383 := z.EncBinary() + _ = yym2383 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) @@ -29745,19 +31371,19 @@ func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2244[2] { + if yyq2372[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2253 := z.EncBinary() - _ = yym2253 + yym2384 := z.EncBinary() + _ = yym2384 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } - if yyr2244 || yy2arr2244 { + if yyr2372 || yy2arr2372 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -29770,25 +31396,25 @@ func (x *ReplicationControllerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2254 := z.DecBinary() - _ = yym2254 + yym2385 := z.DecBinary() + _ = yym2385 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2255 := r.ContainerType() - if yyct2255 == codecSelferValueTypeMap1234 { - yyl2255 := r.ReadMapStart() - if yyl2255 == 0 { + yyct2386 := r.ContainerType() + if yyct2386 == codecSelferValueTypeMap1234 { + yyl2386 := r.ReadMapStart() + if yyl2386 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2255, d) + x.codecDecodeSelfFromMap(yyl2386, d) } - } else if yyct2255 == codecSelferValueTypeArray1234 { - yyl2255 := r.ReadArrayStart() - if yyl2255 == 0 { + } else if yyct2386 == codecSelferValueTypeArray1234 { + yyl2386 := r.ReadArrayStart() + if yyl2386 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2255, d) + x.codecDecodeSelfFromArray(yyl2386, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -29800,12 +31426,12 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2256Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2256Slc - var yyhl2256 bool = l >= 0 - for yyj2256 := 0; ; yyj2256++ { - if yyhl2256 { - if yyj2256 >= l { + var yys2387Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2387Slc + var yyhl2387 bool = l >= 0 + for yyj2387 := 0; ; yyj2387++ { + if yyhl2387 { + if yyj2387 >= l { break } } else { @@ -29814,10 +31440,10 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2256Slc = r.DecodeBytes(yys2256Slc, true, true) - yys2256 := string(yys2256Slc) + yys2387Slc = r.DecodeBytes(yys2387Slc, true, true) + yys2387 := string(yys2387Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2256 { + switch yys2387 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -29830,6 +31456,12 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } + case "readyReplicas": + if r.TryDecodeAsNil() { + x.ReadyReplicas = 0 + } else { + x.ReadyReplicas = int32(r.DecodeInt(32)) + } case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 @@ -29837,9 +31469,9 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978 x.ObservedGeneration = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys2256) - } // end switch yys2256 - } // end for yyj2256 + z.DecStructFieldNotFound(-1, yys2387) + } // end switch yys2387 + } // end for yyj2387 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -29847,16 +31479,16 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2260 int - var yyb2260 bool - var yyhl2260 bool = l >= 0 - yyj2260++ - if yyhl2260 { - yyb2260 = yyj2260 > l + var yyj2392 int + var yyb2392 bool + var yyhl2392 bool = l >= 0 + yyj2392++ + if yyhl2392 { + yyb2392 = yyj2392 > l } else { - yyb2260 = r.CheckBreak() + yyb2392 = r.CheckBreak() } - if yyb2260 { + if yyb2392 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29866,13 +31498,13 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj2260++ - if yyhl2260 { - yyb2260 = yyj2260 > l + yyj2392++ + if yyhl2392 { + yyb2392 = yyj2392 > l } else { - yyb2260 = r.CheckBreak() + yyb2392 = r.CheckBreak() } - if yyb2260 { + if yyb2392 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29882,13 +31514,29 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } - yyj2260++ - if yyhl2260 { - yyb2260 = yyj2260 > l + yyj2392++ + if yyhl2392 { + yyb2392 = yyj2392 > l } else { - yyb2260 = r.CheckBreak() + yyb2392 = r.CheckBreak() } - if yyb2260 { + if yyb2392 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadyReplicas = 0 + } else { + x.ReadyReplicas = int32(r.DecodeInt(32)) + } + yyj2392++ + if yyhl2392 { + yyb2392 = yyj2392 > l + } else { + yyb2392 = r.CheckBreak() + } + if yyb2392 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -29899,17 +31547,17 @@ func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec19 x.ObservedGeneration = int64(r.DecodeInt(64)) } for { - yyj2260++ - if yyhl2260 { - yyb2260 = yyj2260 > l + yyj2392++ + if yyhl2392 { + yyb2392 = yyj2392 > l } else { - yyb2260 = r.CheckBreak() + yyb2392 = r.CheckBreak() } - if yyb2260 { + if yyb2392 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2260-1, "") + z.DecStructFieldNotFound(yyj2392-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -29921,39 +31569,39 @@ func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2264 := z.EncBinary() - _ = yym2264 + yym2397 := z.EncBinary() + _ = yym2397 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2265 := !z.EncBinary() - yy2arr2265 := z.EncBasicHandle().StructToArray - var yyq2265 [5]bool - _, _, _ = yysep2265, yyq2265, yy2arr2265 - const yyr2265 bool = false - yyq2265[0] = x.Kind != "" - yyq2265[1] = x.APIVersion != "" - yyq2265[2] = true - yyq2265[3] = true - yyq2265[4] = true - var yynn2265 int - if yyr2265 || yy2arr2265 { + yysep2398 := !z.EncBinary() + yy2arr2398 := z.EncBasicHandle().StructToArray + var yyq2398 [5]bool + _, _, _ = yysep2398, yyq2398, yy2arr2398 + const yyr2398 bool = false + yyq2398[0] = x.Kind != "" + yyq2398[1] = x.APIVersion != "" + yyq2398[2] = true + yyq2398[3] = true + yyq2398[4] = true + var yynn2398 int + if yyr2398 || yy2arr2398 { r.EncodeArrayStart(5) } else { - yynn2265 = 0 - for _, b := range yyq2265 { + yynn2398 = 0 + for _, b := range yyq2398 { if b { - yynn2265++ + yynn2398++ } } - r.EncodeMapStart(yynn2265) - yynn2265 = 0 + r.EncodeMapStart(yynn2398) + yynn2398 = 0 } - if yyr2265 || yy2arr2265 { + if yyr2398 || yy2arr2398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2265[0] { - yym2267 := z.EncBinary() - _ = yym2267 + if yyq2398[0] { + yym2400 := z.EncBinary() + _ = yym2400 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -29962,23 +31610,23 @@ func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2265[0] { + if yyq2398[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2268 := z.EncBinary() - _ = yym2268 + yym2401 := z.EncBinary() + _ = yym2401 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2265 || yy2arr2265 { + if yyr2398 || yy2arr2398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2265[1] { - yym2270 := z.EncBinary() - _ = yym2270 + if yyq2398[1] { + yym2403 := z.EncBinary() + _ = yym2403 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -29987,70 +31635,70 @@ func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2265[1] { + if yyq2398[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2271 := z.EncBinary() - _ = yym2271 + yym2404 := z.EncBinary() + _ = yym2404 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2265 || yy2arr2265 { + if yyr2398 || yy2arr2398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2265[2] { - yy2273 := &x.ObjectMeta - yy2273.CodecEncodeSelf(e) + if yyq2398[2] { + yy2406 := &x.ObjectMeta + yy2406.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2265[2] { + if yyq2398[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2274 := &x.ObjectMeta - yy2274.CodecEncodeSelf(e) + yy2407 := &x.ObjectMeta + yy2407.CodecEncodeSelf(e) } } - if yyr2265 || yy2arr2265 { + if yyr2398 || yy2arr2398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2265[3] { - yy2276 := &x.Spec - yy2276.CodecEncodeSelf(e) + if yyq2398[3] { + yy2409 := &x.Spec + yy2409.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2265[3] { + if yyq2398[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2277 := &x.Spec - yy2277.CodecEncodeSelf(e) + yy2410 := &x.Spec + yy2410.CodecEncodeSelf(e) } } - if yyr2265 || yy2arr2265 { + if yyr2398 || yy2arr2398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2265[4] { - yy2279 := &x.Status - yy2279.CodecEncodeSelf(e) + if yyq2398[4] { + yy2412 := &x.Status + yy2412.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2265[4] { + if yyq2398[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2280 := &x.Status - yy2280.CodecEncodeSelf(e) + yy2413 := &x.Status + yy2413.CodecEncodeSelf(e) } } - if yyr2265 || yy2arr2265 { + if yyr2398 || yy2arr2398 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30063,25 +31711,25 @@ func (x *ReplicationController) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2281 := z.DecBinary() - _ = yym2281 + yym2414 := z.DecBinary() + _ = yym2414 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2282 := r.ContainerType() - if yyct2282 == codecSelferValueTypeMap1234 { - yyl2282 := r.ReadMapStart() - if yyl2282 == 0 { + yyct2415 := r.ContainerType() + if yyct2415 == codecSelferValueTypeMap1234 { + yyl2415 := r.ReadMapStart() + if yyl2415 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2282, d) + x.codecDecodeSelfFromMap(yyl2415, d) } - } else if yyct2282 == codecSelferValueTypeArray1234 { - yyl2282 := r.ReadArrayStart() - if yyl2282 == 0 { + } else if yyct2415 == codecSelferValueTypeArray1234 { + yyl2415 := r.ReadArrayStart() + if yyl2415 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2282, d) + x.codecDecodeSelfFromArray(yyl2415, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30093,12 +31741,12 @@ func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2283Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2283Slc - var yyhl2283 bool = l >= 0 - for yyj2283 := 0; ; yyj2283++ { - if yyhl2283 { - if yyj2283 >= l { + var yys2416Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2416Slc + var yyhl2416 bool = l >= 0 + for yyj2416 := 0; ; yyj2416++ { + if yyhl2416 { + if yyj2416 >= l { break } } else { @@ -30107,10 +31755,10 @@ func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2283Slc = r.DecodeBytes(yys2283Slc, true, true) - yys2283 := string(yys2283Slc) + yys2416Slc = r.DecodeBytes(yys2416Slc, true, true) + yys2416 := string(yys2416Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2283 { + switch yys2416 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -30127,27 +31775,27 @@ func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2286 := &x.ObjectMeta - yyv2286.CodecDecodeSelf(d) + yyv2419 := &x.ObjectMeta + yyv2419.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { - yyv2287 := &x.Spec - yyv2287.CodecDecodeSelf(d) + yyv2420 := &x.Spec + yyv2420.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { - yyv2288 := &x.Status - yyv2288.CodecDecodeSelf(d) + yyv2421 := &x.Status + yyv2421.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2283) - } // end switch yys2283 - } // end for yyj2283 + z.DecStructFieldNotFound(-1, yys2416) + } // end switch yys2416 + } // end for yyj2416 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30155,16 +31803,16 @@ func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2289 int - var yyb2289 bool - var yyhl2289 bool = l >= 0 - yyj2289++ - if yyhl2289 { - yyb2289 = yyj2289 > l + var yyj2422 int + var yyb2422 bool + var yyhl2422 bool = l >= 0 + yyj2422++ + if yyhl2422 { + yyb2422 = yyj2422 > l } else { - yyb2289 = r.CheckBreak() + yyb2422 = r.CheckBreak() } - if yyb2289 { + if yyb2422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30174,13 +31822,13 @@ func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Kind = string(r.DecodeString()) } - yyj2289++ - if yyhl2289 { - yyb2289 = yyj2289 > l + yyj2422++ + if yyhl2422 { + yyb2422 = yyj2422 > l } else { - yyb2289 = r.CheckBreak() + yyb2422 = r.CheckBreak() } - if yyb2289 { + if yyb2422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30190,13 +31838,13 @@ func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.APIVersion = string(r.DecodeString()) } - yyj2289++ - if yyhl2289 { - yyb2289 = yyj2289 > l + yyj2422++ + if yyhl2422 { + yyb2422 = yyj2422 > l } else { - yyb2289 = r.CheckBreak() + yyb2422 = r.CheckBreak() } - if yyb2289 { + if yyb2422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30204,16 +31852,16 @@ func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2292 := &x.ObjectMeta - yyv2292.CodecDecodeSelf(d) + yyv2425 := &x.ObjectMeta + yyv2425.CodecDecodeSelf(d) } - yyj2289++ - if yyhl2289 { - yyb2289 = yyj2289 > l + yyj2422++ + if yyhl2422 { + yyb2422 = yyj2422 > l } else { - yyb2289 = r.CheckBreak() + yyb2422 = r.CheckBreak() } - if yyb2289 { + if yyb2422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30221,16 +31869,16 @@ func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { - yyv2293 := &x.Spec - yyv2293.CodecDecodeSelf(d) + yyv2426 := &x.Spec + yyv2426.CodecDecodeSelf(d) } - yyj2289++ - if yyhl2289 { - yyb2289 = yyj2289 > l + yyj2422++ + if yyhl2422 { + yyb2422 = yyj2422 > l } else { - yyb2289 = r.CheckBreak() + yyb2422 = r.CheckBreak() } - if yyb2289 { + if yyb2422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30238,21 +31886,21 @@ func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { - yyv2294 := &x.Status - yyv2294.CodecDecodeSelf(d) + yyv2427 := &x.Status + yyv2427.CodecDecodeSelf(d) } for { - yyj2289++ - if yyhl2289 { - yyb2289 = yyj2289 > l + yyj2422++ + if yyhl2422 { + yyb2422 = yyj2422 > l } else { - yyb2289 = r.CheckBreak() + yyb2422 = r.CheckBreak() } - if yyb2289 { + if yyb2422 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2289-1, "") + z.DecStructFieldNotFound(yyj2422-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30264,37 +31912,37 @@ func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2295 := z.EncBinary() - _ = yym2295 + yym2428 := z.EncBinary() + _ = yym2428 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2296 := !z.EncBinary() - yy2arr2296 := z.EncBasicHandle().StructToArray - var yyq2296 [4]bool - _, _, _ = yysep2296, yyq2296, yy2arr2296 - const yyr2296 bool = false - yyq2296[0] = x.Kind != "" - yyq2296[1] = x.APIVersion != "" - yyq2296[2] = true - var yynn2296 int - if yyr2296 || yy2arr2296 { + yysep2429 := !z.EncBinary() + yy2arr2429 := z.EncBasicHandle().StructToArray + var yyq2429 [4]bool + _, _, _ = yysep2429, yyq2429, yy2arr2429 + const yyr2429 bool = false + yyq2429[0] = x.Kind != "" + yyq2429[1] = x.APIVersion != "" + yyq2429[2] = true + var yynn2429 int + if yyr2429 || yy2arr2429 { r.EncodeArrayStart(4) } else { - yynn2296 = 1 - for _, b := range yyq2296 { + yynn2429 = 1 + for _, b := range yyq2429 { if b { - yynn2296++ + yynn2429++ } } - r.EncodeMapStart(yynn2296) - yynn2296 = 0 + r.EncodeMapStart(yynn2429) + yynn2429 = 0 } - if yyr2296 || yy2arr2296 { + if yyr2429 || yy2arr2429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2296[0] { - yym2298 := z.EncBinary() - _ = yym2298 + if yyq2429[0] { + yym2431 := z.EncBinary() + _ = yym2431 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -30303,23 +31951,23 @@ func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2296[0] { + if yyq2429[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2299 := z.EncBinary() - _ = yym2299 + yym2432 := z.EncBinary() + _ = yym2432 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2296 || yy2arr2296 { + if yyr2429 || yy2arr2429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2296[1] { - yym2301 := z.EncBinary() - _ = yym2301 + if yyq2429[1] { + yym2434 := z.EncBinary() + _ = yym2434 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -30328,54 +31976,54 @@ func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2296[1] { + if yyq2429[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2302 := z.EncBinary() - _ = yym2302 + yym2435 := z.EncBinary() + _ = yym2435 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2296 || yy2arr2296 { + if yyr2429 || yy2arr2429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2296[2] { - yy2304 := &x.ListMeta - yym2305 := z.EncBinary() - _ = yym2305 + if yyq2429[2] { + yy2437 := &x.ListMeta + yym2438 := z.EncBinary() + _ = yym2438 if false { - } else if z.HasExtensions() && z.EncExt(yy2304) { + } else if z.HasExtensions() && z.EncExt(yy2437) { } else { - z.EncFallback(yy2304) + z.EncFallback(yy2437) } } else { r.EncodeNil() } } else { - if yyq2296[2] { + if yyq2429[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2306 := &x.ListMeta - yym2307 := z.EncBinary() - _ = yym2307 + yy2439 := &x.ListMeta + yym2440 := z.EncBinary() + _ = yym2440 if false { - } else if z.HasExtensions() && z.EncExt(yy2306) { + } else if z.HasExtensions() && z.EncExt(yy2439) { } else { - z.EncFallback(yy2306) + z.EncFallback(yy2439) } } } - if yyr2296 || yy2arr2296 { + if yyr2429 || yy2arr2429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2309 := z.EncBinary() - _ = yym2309 + yym2442 := z.EncBinary() + _ = yym2442 if false { } else { h.encSliceReplicationController(([]ReplicationController)(x.Items), e) @@ -30388,15 +32036,15 @@ func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2310 := z.EncBinary() - _ = yym2310 + yym2443 := z.EncBinary() + _ = yym2443 if false { } else { h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } } } - if yyr2296 || yy2arr2296 { + if yyr2429 || yy2arr2429 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30409,25 +32057,25 @@ func (x *ReplicationControllerList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2311 := z.DecBinary() - _ = yym2311 + yym2444 := z.DecBinary() + _ = yym2444 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2312 := r.ContainerType() - if yyct2312 == codecSelferValueTypeMap1234 { - yyl2312 := r.ReadMapStart() - if yyl2312 == 0 { + yyct2445 := r.ContainerType() + if yyct2445 == codecSelferValueTypeMap1234 { + yyl2445 := r.ReadMapStart() + if yyl2445 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2312, d) + x.codecDecodeSelfFromMap(yyl2445, d) } - } else if yyct2312 == codecSelferValueTypeArray1234 { - yyl2312 := r.ReadArrayStart() - if yyl2312 == 0 { + } else if yyct2445 == codecSelferValueTypeArray1234 { + yyl2445 := r.ReadArrayStart() + if yyl2445 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2312, d) + x.codecDecodeSelfFromArray(yyl2445, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30439,12 +32087,12 @@ func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2313Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2313Slc - var yyhl2313 bool = l >= 0 - for yyj2313 := 0; ; yyj2313++ { - if yyhl2313 { - if yyj2313 >= l { + var yys2446Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2446Slc + var yyhl2446 bool = l >= 0 + for yyj2446 := 0; ; yyj2446++ { + if yyhl2446 { + if yyj2446 >= l { break } } else { @@ -30453,10 +32101,10 @@ func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2313Slc = r.DecodeBytes(yys2313Slc, true, true) - yys2313 := string(yys2313Slc) + yys2446Slc = r.DecodeBytes(yys2446Slc, true, true) + yys2446 := string(yys2446Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2313 { + switch yys2446 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -30473,31 +32121,31 @@ func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.D if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2316 := &x.ListMeta - yym2317 := z.DecBinary() - _ = yym2317 + yyv2449 := &x.ListMeta + yym2450 := z.DecBinary() + _ = yym2450 if false { - } else if z.HasExtensions() && z.DecExt(yyv2316) { + } else if z.HasExtensions() && z.DecExt(yyv2449) { } else { - z.DecFallback(yyv2316, false) + z.DecFallback(yyv2449, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2318 := &x.Items - yym2319 := z.DecBinary() - _ = yym2319 + yyv2451 := &x.Items + yym2452 := z.DecBinary() + _ = yym2452 if false { } else { - h.decSliceReplicationController((*[]ReplicationController)(yyv2318), d) + h.decSliceReplicationController((*[]ReplicationController)(yyv2451), d) } } default: - z.DecStructFieldNotFound(-1, yys2313) - } // end switch yys2313 - } // end for yyj2313 + z.DecStructFieldNotFound(-1, yys2446) + } // end switch yys2446 + } // end for yyj2446 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30505,16 +32153,16 @@ func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2320 int - var yyb2320 bool - var yyhl2320 bool = l >= 0 - yyj2320++ - if yyhl2320 { - yyb2320 = yyj2320 > l + var yyj2453 int + var yyb2453 bool + var yyhl2453 bool = l >= 0 + yyj2453++ + if yyhl2453 { + yyb2453 = yyj2453 > l } else { - yyb2320 = r.CheckBreak() + yyb2453 = r.CheckBreak() } - if yyb2320 { + if yyb2453 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30524,13 +32172,13 @@ func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Kind = string(r.DecodeString()) } - yyj2320++ - if yyhl2320 { - yyb2320 = yyj2320 > l + yyj2453++ + if yyhl2453 { + yyb2453 = yyj2453 > l } else { - yyb2320 = r.CheckBreak() + yyb2453 = r.CheckBreak() } - if yyb2320 { + if yyb2453 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30540,13 +32188,13 @@ func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.APIVersion = string(r.DecodeString()) } - yyj2320++ - if yyhl2320 { - yyb2320 = yyj2320 > l + yyj2453++ + if yyhl2453 { + yyb2453 = yyj2453 > l } else { - yyb2320 = r.CheckBreak() + yyb2453 = r.CheckBreak() } - if yyb2320 { + if yyb2453 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30554,22 +32202,22 @@ func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2323 := &x.ListMeta - yym2324 := z.DecBinary() - _ = yym2324 + yyv2456 := &x.ListMeta + yym2457 := z.DecBinary() + _ = yym2457 if false { - } else if z.HasExtensions() && z.DecExt(yyv2323) { + } else if z.HasExtensions() && z.DecExt(yyv2456) { } else { - z.DecFallback(yyv2323, false) + z.DecFallback(yyv2456, false) } } - yyj2320++ - if yyhl2320 { - yyb2320 = yyj2320 > l + yyj2453++ + if yyhl2453 { + yyb2453 = yyj2453 > l } else { - yyb2320 = r.CheckBreak() + yyb2453 = r.CheckBreak() } - if yyb2320 { + if yyb2453 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30577,26 +32225,26 @@ func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978 if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2325 := &x.Items - yym2326 := z.DecBinary() - _ = yym2326 + yyv2458 := &x.Items + yym2459 := z.DecBinary() + _ = yym2459 if false { } else { - h.decSliceReplicationController((*[]ReplicationController)(yyv2325), d) + h.decSliceReplicationController((*[]ReplicationController)(yyv2458), d) } } for { - yyj2320++ - if yyhl2320 { - yyb2320 = yyj2320 > l + yyj2453++ + if yyhl2453 { + yyb2453 = yyj2453 > l } else { - yyb2320 = r.CheckBreak() + yyb2453 = r.CheckBreak() } - if yyb2320 { + if yyb2453 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2320-1, "") + z.DecStructFieldNotFound(yyj2453-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30605,8 +32253,8 @@ func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym2327 := z.EncBinary() - _ = yym2327 + yym2460 := z.EncBinary() + _ = yym2460 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -30618,8 +32266,8 @@ func (x *ServiceAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2328 := z.DecBinary() - _ = yym2328 + yym2461 := z.DecBinary() + _ = yym2461 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -30631,8 +32279,8 @@ func (x ServiceType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym2329 := z.EncBinary() - _ = yym2329 + yym2462 := z.EncBinary() + _ = yym2462 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -30644,8 +32292,8 @@ func (x *ServiceType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2330 := z.DecBinary() - _ = yym2330 + yym2463 := z.DecBinary() + _ = yym2463 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -30660,48 +32308,48 @@ func (x *ServiceStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2331 := z.EncBinary() - _ = yym2331 + yym2464 := z.EncBinary() + _ = yym2464 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2332 := !z.EncBinary() - yy2arr2332 := z.EncBasicHandle().StructToArray - var yyq2332 [1]bool - _, _, _ = yysep2332, yyq2332, yy2arr2332 - const yyr2332 bool = false - yyq2332[0] = true - var yynn2332 int - if yyr2332 || yy2arr2332 { + yysep2465 := !z.EncBinary() + yy2arr2465 := z.EncBasicHandle().StructToArray + var yyq2465 [1]bool + _, _, _ = yysep2465, yyq2465, yy2arr2465 + const yyr2465 bool = false + yyq2465[0] = true + var yynn2465 int + if yyr2465 || yy2arr2465 { r.EncodeArrayStart(1) } else { - yynn2332 = 0 - for _, b := range yyq2332 { + yynn2465 = 0 + for _, b := range yyq2465 { if b { - yynn2332++ + yynn2465++ } } - r.EncodeMapStart(yynn2332) - yynn2332 = 0 + r.EncodeMapStart(yynn2465) + yynn2465 = 0 } - if yyr2332 || yy2arr2332 { + if yyr2465 || yy2arr2465 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2332[0] { - yy2334 := &x.LoadBalancer - yy2334.CodecEncodeSelf(e) + if yyq2465[0] { + yy2467 := &x.LoadBalancer + yy2467.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2332[0] { + if yyq2465[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2335 := &x.LoadBalancer - yy2335.CodecEncodeSelf(e) + yy2468 := &x.LoadBalancer + yy2468.CodecEncodeSelf(e) } } - if yyr2332 || yy2arr2332 { + if yyr2465 || yy2arr2465 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30714,25 +32362,25 @@ func (x *ServiceStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2336 := z.DecBinary() - _ = yym2336 + yym2469 := z.DecBinary() + _ = yym2469 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2337 := r.ContainerType() - if yyct2337 == codecSelferValueTypeMap1234 { - yyl2337 := r.ReadMapStart() - if yyl2337 == 0 { + yyct2470 := r.ContainerType() + if yyct2470 == codecSelferValueTypeMap1234 { + yyl2470 := r.ReadMapStart() + if yyl2470 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2337, d) + x.codecDecodeSelfFromMap(yyl2470, d) } - } else if yyct2337 == codecSelferValueTypeArray1234 { - yyl2337 := r.ReadArrayStart() - if yyl2337 == 0 { + } else if yyct2470 == codecSelferValueTypeArray1234 { + yyl2470 := r.ReadArrayStart() + if yyl2470 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2337, d) + x.codecDecodeSelfFromArray(yyl2470, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30744,12 +32392,12 @@ func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2338Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2338Slc - var yyhl2338 bool = l >= 0 - for yyj2338 := 0; ; yyj2338++ { - if yyhl2338 { - if yyj2338 >= l { + var yys2471Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2471Slc + var yyhl2471 bool = l >= 0 + for yyj2471 := 0; ; yyj2471++ { + if yyhl2471 { + if yyj2471 >= l { break } } else { @@ -30758,21 +32406,21 @@ func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2338Slc = r.DecodeBytes(yys2338Slc, true, true) - yys2338 := string(yys2338Slc) + yys2471Slc = r.DecodeBytes(yys2471Slc, true, true) + yys2471 := string(yys2471Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2338 { + switch yys2471 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { - yyv2339 := &x.LoadBalancer - yyv2339.CodecDecodeSelf(d) + yyv2472 := &x.LoadBalancer + yyv2472.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2338) - } // end switch yys2338 - } // end for yyj2338 + z.DecStructFieldNotFound(-1, yys2471) + } // end switch yys2471 + } // end for yyj2471 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30780,16 +32428,16 @@ func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2340 int - var yyb2340 bool - var yyhl2340 bool = l >= 0 - yyj2340++ - if yyhl2340 { - yyb2340 = yyj2340 > l + var yyj2473 int + var yyb2473 bool + var yyhl2473 bool = l >= 0 + yyj2473++ + if yyhl2473 { + yyb2473 = yyj2473 > l } else { - yyb2340 = r.CheckBreak() + yyb2473 = r.CheckBreak() } - if yyb2340 { + if yyb2473 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30797,21 +32445,21 @@ func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { - yyv2341 := &x.LoadBalancer - yyv2341.CodecDecodeSelf(d) + yyv2474 := &x.LoadBalancer + yyv2474.CodecDecodeSelf(d) } for { - yyj2340++ - if yyhl2340 { - yyb2340 = yyj2340 > l + yyj2473++ + if yyhl2473 { + yyb2473 = yyj2473 > l } else { - yyb2340 = r.CheckBreak() + yyb2473 = r.CheckBreak() } - if yyb2340 { + if yyb2473 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2340-1, "") + z.DecStructFieldNotFound(yyj2473-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -30823,38 +32471,38 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2342 := z.EncBinary() - _ = yym2342 + yym2475 := z.EncBinary() + _ = yym2475 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2343 := !z.EncBinary() - yy2arr2343 := z.EncBasicHandle().StructToArray - var yyq2343 [1]bool - _, _, _ = yysep2343, yyq2343, yy2arr2343 - const yyr2343 bool = false - yyq2343[0] = len(x.Ingress) != 0 - var yynn2343 int - if yyr2343 || yy2arr2343 { + yysep2476 := !z.EncBinary() + yy2arr2476 := z.EncBasicHandle().StructToArray + var yyq2476 [1]bool + _, _, _ = yysep2476, yyq2476, yy2arr2476 + const yyr2476 bool = false + yyq2476[0] = len(x.Ingress) != 0 + var yynn2476 int + if yyr2476 || yy2arr2476 { r.EncodeArrayStart(1) } else { - yynn2343 = 0 - for _, b := range yyq2343 { + yynn2476 = 0 + for _, b := range yyq2476 { if b { - yynn2343++ + yynn2476++ } } - r.EncodeMapStart(yynn2343) - yynn2343 = 0 + r.EncodeMapStart(yynn2476) + yynn2476 = 0 } - if yyr2343 || yy2arr2343 { + if yyr2476 || yy2arr2476 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2343[0] { + if yyq2476[0] { if x.Ingress == nil { r.EncodeNil() } else { - yym2345 := z.EncBinary() - _ = yym2345 + yym2478 := z.EncBinary() + _ = yym2478 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) @@ -30864,15 +32512,15 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2343[0] { + if yyq2476[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { - yym2346 := z.EncBinary() - _ = yym2346 + yym2479 := z.EncBinary() + _ = yym2479 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) @@ -30880,7 +32528,7 @@ func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2343 || yy2arr2343 { + if yyr2476 || yy2arr2476 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -30893,25 +32541,25 @@ func (x *LoadBalancerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2347 := z.DecBinary() - _ = yym2347 + yym2480 := z.DecBinary() + _ = yym2480 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2348 := r.ContainerType() - if yyct2348 == codecSelferValueTypeMap1234 { - yyl2348 := r.ReadMapStart() - if yyl2348 == 0 { + yyct2481 := r.ContainerType() + if yyct2481 == codecSelferValueTypeMap1234 { + yyl2481 := r.ReadMapStart() + if yyl2481 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2348, d) + x.codecDecodeSelfFromMap(yyl2481, d) } - } else if yyct2348 == codecSelferValueTypeArray1234 { - yyl2348 := r.ReadArrayStart() - if yyl2348 == 0 { + } else if yyct2481 == codecSelferValueTypeArray1234 { + yyl2481 := r.ReadArrayStart() + if yyl2481 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2348, d) + x.codecDecodeSelfFromArray(yyl2481, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -30923,12 +32571,12 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2349Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2349Slc - var yyhl2349 bool = l >= 0 - for yyj2349 := 0; ; yyj2349++ { - if yyhl2349 { - if yyj2349 >= l { + var yys2482Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2482Slc + var yyhl2482 bool = l >= 0 + for yyj2482 := 0; ; yyj2482++ { + if yyhl2482 { + if yyj2482 >= l { break } } else { @@ -30937,26 +32585,26 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2349Slc = r.DecodeBytes(yys2349Slc, true, true) - yys2349 := string(yys2349Slc) + yys2482Slc = r.DecodeBytes(yys2482Slc, true, true) + yys2482 := string(yys2482Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2349 { + switch yys2482 { case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv2350 := &x.Ingress - yym2351 := z.DecBinary() - _ = yym2351 + yyv2483 := &x.Ingress + yym2484 := z.DecBinary() + _ = yym2484 if false { } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2350), d) + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2483), d) } } default: - z.DecStructFieldNotFound(-1, yys2349) - } // end switch yys2349 - } // end for yyj2349 + z.DecStructFieldNotFound(-1, yys2482) + } // end switch yys2482 + } // end for yyj2482 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -30964,16 +32612,16 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2352 int - var yyb2352 bool - var yyhl2352 bool = l >= 0 - yyj2352++ - if yyhl2352 { - yyb2352 = yyj2352 > l + var yyj2485 int + var yyb2485 bool + var yyhl2485 bool = l >= 0 + yyj2485++ + if yyhl2485 { + yyb2485 = yyj2485 > l } else { - yyb2352 = r.CheckBreak() + yyb2485 = r.CheckBreak() } - if yyb2352 { + if yyb2485 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -30981,26 +32629,26 @@ func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv2353 := &x.Ingress - yym2354 := z.DecBinary() - _ = yym2354 + yyv2486 := &x.Ingress + yym2487 := z.DecBinary() + _ = yym2487 if false { } else { - h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2353), d) + h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2486), d) } } for { - yyj2352++ - if yyhl2352 { - yyb2352 = yyj2352 > l + yyj2485++ + if yyhl2485 { + yyb2485 = yyj2485 > l } else { - yyb2352 = r.CheckBreak() + yyb2485 = r.CheckBreak() } - if yyb2352 { + if yyb2485 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2352-1, "") + z.DecStructFieldNotFound(yyj2485-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31012,36 +32660,36 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2355 := z.EncBinary() - _ = yym2355 + yym2488 := z.EncBinary() + _ = yym2488 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2356 := !z.EncBinary() - yy2arr2356 := z.EncBasicHandle().StructToArray - var yyq2356 [2]bool - _, _, _ = yysep2356, yyq2356, yy2arr2356 - const yyr2356 bool = false - yyq2356[0] = x.IP != "" - yyq2356[1] = x.Hostname != "" - var yynn2356 int - if yyr2356 || yy2arr2356 { + yysep2489 := !z.EncBinary() + yy2arr2489 := z.EncBasicHandle().StructToArray + var yyq2489 [2]bool + _, _, _ = yysep2489, yyq2489, yy2arr2489 + const yyr2489 bool = false + yyq2489[0] = x.IP != "" + yyq2489[1] = x.Hostname != "" + var yynn2489 int + if yyr2489 || yy2arr2489 { r.EncodeArrayStart(2) } else { - yynn2356 = 0 - for _, b := range yyq2356 { + yynn2489 = 0 + for _, b := range yyq2489 { if b { - yynn2356++ + yynn2489++ } } - r.EncodeMapStart(yynn2356) - yynn2356 = 0 + r.EncodeMapStart(yynn2489) + yynn2489 = 0 } - if yyr2356 || yy2arr2356 { + if yyr2489 || yy2arr2489 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2356[0] { - yym2358 := z.EncBinary() - _ = yym2358 + if yyq2489[0] { + yym2491 := z.EncBinary() + _ = yym2491 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) @@ -31050,23 +32698,23 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2356[0] { + if yyq2489[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2359 := z.EncBinary() - _ = yym2359 + yym2492 := z.EncBinary() + _ = yym2492 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } } - if yyr2356 || yy2arr2356 { + if yyr2489 || yy2arr2489 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2356[1] { - yym2361 := z.EncBinary() - _ = yym2361 + if yyq2489[1] { + yym2494 := z.EncBinary() + _ = yym2494 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -31075,19 +32723,19 @@ func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2356[1] { + if yyq2489[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2362 := z.EncBinary() - _ = yym2362 + yym2495 := z.EncBinary() + _ = yym2495 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2356 || yy2arr2356 { + if yyr2489 || yy2arr2489 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31100,25 +32748,25 @@ func (x *LoadBalancerIngress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2363 := z.DecBinary() - _ = yym2363 + yym2496 := z.DecBinary() + _ = yym2496 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2364 := r.ContainerType() - if yyct2364 == codecSelferValueTypeMap1234 { - yyl2364 := r.ReadMapStart() - if yyl2364 == 0 { + yyct2497 := r.ContainerType() + if yyct2497 == codecSelferValueTypeMap1234 { + yyl2497 := r.ReadMapStart() + if yyl2497 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2364, d) + x.codecDecodeSelfFromMap(yyl2497, d) } - } else if yyct2364 == codecSelferValueTypeArray1234 { - yyl2364 := r.ReadArrayStart() - if yyl2364 == 0 { + } else if yyct2497 == codecSelferValueTypeArray1234 { + yyl2497 := r.ReadArrayStart() + if yyl2497 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2364, d) + x.codecDecodeSelfFromArray(yyl2497, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31130,12 +32778,12 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2365Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2365Slc - var yyhl2365 bool = l >= 0 - for yyj2365 := 0; ; yyj2365++ { - if yyhl2365 { - if yyj2365 >= l { + var yys2498Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2498Slc + var yyhl2498 bool = l >= 0 + for yyj2498 := 0; ; yyj2498++ { + if yyhl2498 { + if yyj2498 >= l { break } } else { @@ -31144,10 +32792,10 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2365Slc = r.DecodeBytes(yys2365Slc, true, true) - yys2365 := string(yys2365Slc) + yys2498Slc = r.DecodeBytes(yys2498Slc, true, true) + yys2498 := string(yys2498Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2365 { + switch yys2498 { case "ip": if r.TryDecodeAsNil() { x.IP = "" @@ -31161,9 +32809,9 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Hostname = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2365) - } // end switch yys2365 - } // end for yyj2365 + z.DecStructFieldNotFound(-1, yys2498) + } // end switch yys2498 + } // end for yyj2498 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -31171,16 +32819,16 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2368 int - var yyb2368 bool - var yyhl2368 bool = l >= 0 - yyj2368++ - if yyhl2368 { - yyb2368 = yyj2368 > l + var yyj2501 int + var yyb2501 bool + var yyhl2501 bool = l >= 0 + yyj2501++ + if yyhl2501 { + yyb2501 = yyj2501 > l } else { - yyb2368 = r.CheckBreak() + yyb2501 = r.CheckBreak() } - if yyb2368 { + if yyb2501 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31190,13 +32838,13 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.IP = string(r.DecodeString()) } - yyj2368++ - if yyhl2368 { - yyb2368 = yyj2368 > l + yyj2501++ + if yyhl2501 { + yyb2501 = yyj2501 > l } else { - yyb2368 = r.CheckBreak() + yyb2501 = r.CheckBreak() } - if yyb2368 { + if yyb2501 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31207,17 +32855,17 @@ func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Hostname = string(r.DecodeString()) } for { - yyj2368++ - if yyhl2368 { - yyb2368 = yyj2368 > l + yyj2501++ + if yyhl2501 { + yyb2501 = yyj2501 > l } else { - yyb2368 = r.CheckBreak() + yyb2501 = r.CheckBreak() } - if yyb2368 { + if yyb2501 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2368-1, "") + z.DecStructFieldNotFound(yyj2501-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31229,44 +32877,45 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2371 := z.EncBinary() - _ = yym2371 + yym2504 := z.EncBinary() + _ = yym2504 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2372 := !z.EncBinary() - yy2arr2372 := z.EncBasicHandle().StructToArray - var yyq2372 [9]bool - _, _, _ = yysep2372, yyq2372, yy2arr2372 - const yyr2372 bool = false - yyq2372[1] = len(x.Selector) != 0 - yyq2372[2] = x.ClusterIP != "" - yyq2372[3] = x.Type != "" - yyq2372[4] = len(x.ExternalIPs) != 0 - yyq2372[5] = len(x.DeprecatedPublicIPs) != 0 - yyq2372[6] = x.SessionAffinity != "" - yyq2372[7] = x.LoadBalancerIP != "" - yyq2372[8] = len(x.LoadBalancerSourceRanges) != 0 - var yynn2372 int - if yyr2372 || yy2arr2372 { - r.EncodeArrayStart(9) + yysep2505 := !z.EncBinary() + yy2arr2505 := z.EncBasicHandle().StructToArray + var yyq2505 [10]bool + _, _, _ = yysep2505, yyq2505, yy2arr2505 + const yyr2505 bool = false + yyq2505[1] = len(x.Selector) != 0 + yyq2505[2] = x.ClusterIP != "" + yyq2505[3] = x.Type != "" + yyq2505[4] = len(x.ExternalIPs) != 0 + yyq2505[5] = len(x.DeprecatedPublicIPs) != 0 + yyq2505[6] = x.SessionAffinity != "" + yyq2505[7] = x.LoadBalancerIP != "" + yyq2505[8] = len(x.LoadBalancerSourceRanges) != 0 + yyq2505[9] = x.ExternalName != "" + var yynn2505 int + if yyr2505 || yy2arr2505 { + r.EncodeArrayStart(10) } else { - yynn2372 = 1 - for _, b := range yyq2372 { + yynn2505 = 1 + for _, b := range yyq2505 { if b { - yynn2372++ + yynn2505++ } } - r.EncodeMapStart(yynn2372) - yynn2372 = 0 + r.EncodeMapStart(yynn2505) + yynn2505 = 0 } - if yyr2372 || yy2arr2372 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { - yym2374 := z.EncBinary() - _ = yym2374 + yym2507 := z.EncBinary() + _ = yym2507 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) @@ -31279,22 +32928,22 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Ports == nil { r.EncodeNil() } else { - yym2375 := z.EncBinary() - _ = yym2375 + yym2508 := z.EncBinary() + _ = yym2508 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } - if yyr2372 || yy2arr2372 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2372[1] { + if yyq2505[1] { if x.Selector == nil { r.EncodeNil() } else { - yym2377 := z.EncBinary() - _ = yym2377 + yym2510 := z.EncBinary() + _ = yym2510 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -31304,15 +32953,15 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2372[1] { + if yyq2505[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { - yym2378 := z.EncBinary() - _ = yym2378 + yym2511 := z.EncBinary() + _ = yym2511 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) @@ -31320,11 +32969,11 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2372 || yy2arr2372 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2372[2] { - yym2380 := z.EncBinary() - _ = yym2380 + if yyq2505[2] { + yym2513 := z.EncBinary() + _ = yym2513 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) @@ -31333,41 +32982,41 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2372[2] { + if yyq2505[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2381 := z.EncBinary() - _ = yym2381 + yym2514 := z.EncBinary() + _ = yym2514 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } } - if yyr2372 || yy2arr2372 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2372[3] { + if yyq2505[3] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2372[3] { + if yyq2505[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr2372 || yy2arr2372 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2372[4] { + if yyq2505[4] { if x.ExternalIPs == nil { r.EncodeNil() } else { - yym2384 := z.EncBinary() - _ = yym2384 + yym2517 := z.EncBinary() + _ = yym2517 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) @@ -31377,15 +33026,15 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2372[4] { + if yyq2505[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ExternalIPs == nil { r.EncodeNil() } else { - yym2385 := z.EncBinary() - _ = yym2385 + yym2518 := z.EncBinary() + _ = yym2518 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) @@ -31393,14 +33042,14 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2372 || yy2arr2372 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2372[5] { + if yyq2505[5] { if x.DeprecatedPublicIPs == nil { r.EncodeNil() } else { - yym2387 := z.EncBinary() - _ = yym2387 + yym2520 := z.EncBinary() + _ = yym2520 if false { } else { z.F.EncSliceStringV(x.DeprecatedPublicIPs, false, e) @@ -31410,15 +33059,15 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2372[5] { + if yyq2505[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deprecatedPublicIPs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DeprecatedPublicIPs == nil { r.EncodeNil() } else { - yym2388 := z.EncBinary() - _ = yym2388 + yym2521 := z.EncBinary() + _ = yym2521 if false { } else { z.F.EncSliceStringV(x.DeprecatedPublicIPs, false, e) @@ -31426,26 +33075,26 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2372 || yy2arr2372 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2372[6] { + if yyq2505[6] { x.SessionAffinity.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2372[6] { + if yyq2505[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.SessionAffinity.CodecEncodeSelf(e) } } - if yyr2372 || yy2arr2372 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2372[7] { - yym2391 := z.EncBinary() - _ = yym2391 + if yyq2505[7] { + yym2524 := z.EncBinary() + _ = yym2524 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) @@ -31454,26 +33103,26 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2372[7] { + if yyq2505[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2392 := z.EncBinary() - _ = yym2392 + yym2525 := z.EncBinary() + _ = yym2525 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } } - if yyr2372 || yy2arr2372 { + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2372[8] { + if yyq2505[8] { if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { - yym2394 := z.EncBinary() - _ = yym2394 + yym2527 := z.EncBinary() + _ = yym2527 if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) @@ -31483,15 +33132,15 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2372[8] { + if yyq2505[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { - yym2395 := z.EncBinary() - _ = yym2395 + yym2528 := z.EncBinary() + _ = yym2528 if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) @@ -31499,7 +33148,32 @@ func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2372 || yy2arr2372 { + if yyr2505 || yy2arr2505 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2505[9] { + yym2530 := z.EncBinary() + _ = yym2530 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2505[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("externalName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym2531 := z.EncBinary() + _ = yym2531 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName)) + } + } + } + if yyr2505 || yy2arr2505 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -31512,25 +33186,25 @@ func (x *ServiceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2396 := z.DecBinary() - _ = yym2396 + yym2532 := z.DecBinary() + _ = yym2532 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2397 := r.ContainerType() - if yyct2397 == codecSelferValueTypeMap1234 { - yyl2397 := r.ReadMapStart() - if yyl2397 == 0 { + yyct2533 := r.ContainerType() + if yyct2533 == codecSelferValueTypeMap1234 { + yyl2533 := r.ReadMapStart() + if yyl2533 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2397, d) + x.codecDecodeSelfFromMap(yyl2533, d) } - } else if yyct2397 == codecSelferValueTypeArray1234 { - yyl2397 := r.ReadArrayStart() - if yyl2397 == 0 { + } else if yyct2533 == codecSelferValueTypeArray1234 { + yyl2533 := r.ReadArrayStart() + if yyl2533 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2397, d) + x.codecDecodeSelfFromArray(yyl2533, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -31542,12 +33216,12 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2398Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2398Slc - var yyhl2398 bool = l >= 0 - for yyj2398 := 0; ; yyj2398++ { - if yyhl2398 { - if yyj2398 >= l { + var yys2534Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2534Slc + var yyhl2534 bool = l >= 0 + for yyj2534 := 0; ; yyj2534++ { + if yyhl2534 { + if yyj2534 >= l { break } } else { @@ -31556,32 +33230,32 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2398Slc = r.DecodeBytes(yys2398Slc, true, true) - yys2398 := string(yys2398Slc) + yys2534Slc = r.DecodeBytes(yys2534Slc, true, true) + yys2534 := string(yys2534Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2398 { + switch yys2534 { case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2399 := &x.Ports - yym2400 := z.DecBinary() - _ = yym2400 + yyv2535 := &x.Ports + yym2536 := z.DecBinary() + _ = yym2536 if false { } else { - h.decSliceServicePort((*[]ServicePort)(yyv2399), d) + h.decSliceServicePort((*[]ServicePort)(yyv2535), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2401 := &x.Selector - yym2402 := z.DecBinary() - _ = yym2402 + yyv2537 := &x.Selector + yym2538 := z.DecBinary() + _ = yym2538 if false { } else { - z.F.DecMapStringStringX(yyv2401, false, d) + z.F.DecMapStringStringX(yyv2537, false, d) } } case "clusterIP": @@ -31600,24 +33274,24 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { - yyv2405 := &x.ExternalIPs - yym2406 := z.DecBinary() - _ = yym2406 + yyv2541 := &x.ExternalIPs + yym2542 := z.DecBinary() + _ = yym2542 if false { } else { - z.F.DecSliceStringX(yyv2405, false, d) + z.F.DecSliceStringX(yyv2541, false, d) } } case "deprecatedPublicIPs": if r.TryDecodeAsNil() { x.DeprecatedPublicIPs = nil } else { - yyv2407 := &x.DeprecatedPublicIPs - yym2408 := z.DecBinary() - _ = yym2408 + yyv2543 := &x.DeprecatedPublicIPs + yym2544 := z.DecBinary() + _ = yym2544 if false { } else { - z.F.DecSliceStringX(yyv2407, false, d) + z.F.DecSliceStringX(yyv2543, false, d) } } case "sessionAffinity": @@ -31636,18 +33310,24 @@ func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { - yyv2411 := &x.LoadBalancerSourceRanges - yym2412 := z.DecBinary() - _ = yym2412 + yyv2547 := &x.LoadBalancerSourceRanges + yym2548 := z.DecBinary() + _ = yym2548 if false { } else { - z.F.DecSliceStringX(yyv2411, false, d) + z.F.DecSliceStringX(yyv2547, false, d) } } + case "externalName": + if r.TryDecodeAsNil() { + x.ExternalName = "" + } else { + x.ExternalName = string(r.DecodeString()) + } default: - z.DecStructFieldNotFound(-1, yys2398) - } // end switch yys2398 - } // end for yyj2398 + z.DecStructFieldNotFound(-1, yys2534) + } // end switch yys2534 + } // end for yyj2534 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -31655,16 +33335,16 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2413 int - var yyb2413 bool - var yyhl2413 bool = l >= 0 - yyj2413++ - if yyhl2413 { - yyb2413 = yyj2413 > l + var yyj2550 int + var yyb2550 bool + var yyhl2550 bool = l >= 0 + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb2413 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb2413 { + if yyb2550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31672,21 +33352,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2414 := &x.Ports - yym2415 := z.DecBinary() - _ = yym2415 + yyv2551 := &x.Ports + yym2552 := z.DecBinary() + _ = yym2552 if false { } else { - h.decSliceServicePort((*[]ServicePort)(yyv2414), d) + h.decSliceServicePort((*[]ServicePort)(yyv2551), d) } } - yyj2413++ - if yyhl2413 { - yyb2413 = yyj2413 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb2413 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb2413 { + if yyb2550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31694,21 +33374,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Selector = nil } else { - yyv2416 := &x.Selector - yym2417 := z.DecBinary() - _ = yym2417 + yyv2553 := &x.Selector + yym2554 := z.DecBinary() + _ = yym2554 if false { } else { - z.F.DecMapStringStringX(yyv2416, false, d) + z.F.DecMapStringStringX(yyv2553, false, d) } } - yyj2413++ - if yyhl2413 { - yyb2413 = yyj2413 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb2413 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb2413 { + if yyb2550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31718,13 +33398,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ClusterIP = string(r.DecodeString()) } - yyj2413++ - if yyhl2413 { - yyb2413 = yyj2413 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb2413 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb2413 { + if yyb2550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31734,13 +33414,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = ServiceType(r.DecodeString()) } - yyj2413++ - if yyhl2413 { - yyb2413 = yyj2413 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb2413 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb2413 { + if yyb2550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31748,21 +33428,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { - yyv2420 := &x.ExternalIPs - yym2421 := z.DecBinary() - _ = yym2421 + yyv2557 := &x.ExternalIPs + yym2558 := z.DecBinary() + _ = yym2558 if false { } else { - z.F.DecSliceStringX(yyv2420, false, d) + z.F.DecSliceStringX(yyv2557, false, d) } } - yyj2413++ - if yyhl2413 { - yyb2413 = yyj2413 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb2413 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb2413 { + if yyb2550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31770,21 +33450,21 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.DeprecatedPublicIPs = nil } else { - yyv2422 := &x.DeprecatedPublicIPs - yym2423 := z.DecBinary() - _ = yym2423 + yyv2559 := &x.DeprecatedPublicIPs + yym2560 := z.DecBinary() + _ = yym2560 if false { } else { - z.F.DecSliceStringX(yyv2422, false, d) + z.F.DecSliceStringX(yyv2559, false, d) } } - yyj2413++ - if yyhl2413 { - yyb2413 = yyj2413 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb2413 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb2413 { + if yyb2550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31794,13 +33474,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SessionAffinity = ServiceAffinity(r.DecodeString()) } - yyj2413++ - if yyhl2413 { - yyb2413 = yyj2413 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb2413 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb2413 { + if yyb2550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31810,13 +33490,13 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.LoadBalancerIP = string(r.DecodeString()) } - yyj2413++ - if yyhl2413 { - yyb2413 = yyj2413 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb2413 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb2413 { + if yyb2550 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -31824,26 +33504,42 @@ func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { - yyv2426 := &x.LoadBalancerSourceRanges - yym2427 := z.DecBinary() - _ = yym2427 + yyv2563 := &x.LoadBalancerSourceRanges + yym2564 := z.DecBinary() + _ = yym2564 if false { } else { - z.F.DecSliceStringX(yyv2426, false, d) + z.F.DecSliceStringX(yyv2563, false, d) } } + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l + } else { + yyb2550 = r.CheckBreak() + } + if yyb2550 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ExternalName = "" + } else { + x.ExternalName = string(r.DecodeString()) + } for { - yyj2413++ - if yyhl2413 { - yyb2413 = yyj2413 > l + yyj2550++ + if yyhl2550 { + yyb2550 = yyj2550 > l } else { - yyb2413 = r.CheckBreak() + yyb2550 = r.CheckBreak() } - if yyb2413 { + if yyb2550 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2413-1, "") + z.DecStructFieldNotFound(yyj2550-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -31855,38 +33551,38 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2428 := z.EncBinary() - _ = yym2428 + yym2566 := z.EncBinary() + _ = yym2566 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2429 := !z.EncBinary() - yy2arr2429 := z.EncBasicHandle().StructToArray - var yyq2429 [5]bool - _, _, _ = yysep2429, yyq2429, yy2arr2429 - const yyr2429 bool = false - yyq2429[0] = x.Name != "" - yyq2429[1] = x.Protocol != "" - yyq2429[3] = true - yyq2429[4] = x.NodePort != 0 - var yynn2429 int - if yyr2429 || yy2arr2429 { + yysep2567 := !z.EncBinary() + yy2arr2567 := z.EncBasicHandle().StructToArray + var yyq2567 [5]bool + _, _, _ = yysep2567, yyq2567, yy2arr2567 + const yyr2567 bool = false + yyq2567[0] = x.Name != "" + yyq2567[1] = x.Protocol != "" + yyq2567[3] = true + yyq2567[4] = x.NodePort != 0 + var yynn2567 int + if yyr2567 || yy2arr2567 { r.EncodeArrayStart(5) } else { - yynn2429 = 1 - for _, b := range yyq2429 { + yynn2567 = 1 + for _, b := range yyq2567 { if b { - yynn2429++ + yynn2567++ } } - r.EncodeMapStart(yynn2429) - yynn2429 = 0 + r.EncodeMapStart(yynn2567) + yynn2567 = 0 } - if yyr2429 || yy2arr2429 { + if yyr2567 || yy2arr2567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2429[0] { - yym2431 := z.EncBinary() - _ = yym2431 + if yyq2567[0] { + yym2569 := z.EncBinary() + _ = yym2569 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -31895,37 +33591,37 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2429[0] { + if yyq2567[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2432 := z.EncBinary() - _ = yym2432 + yym2570 := z.EncBinary() + _ = yym2570 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2429 || yy2arr2429 { + if yyr2567 || yy2arr2567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2429[1] { + if yyq2567[1] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2429[1] { + if yyq2567[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } - if yyr2429 || yy2arr2429 { + if yyr2567 || yy2arr2567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2435 := z.EncBinary() - _ = yym2435 + yym2573 := z.EncBinary() + _ = yym2573 if false { } else { r.EncodeInt(int64(x.Port)) @@ -31934,51 +33630,51 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2436 := z.EncBinary() - _ = yym2436 + yym2574 := z.EncBinary() + _ = yym2574 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2429 || yy2arr2429 { + if yyr2567 || yy2arr2567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2429[3] { - yy2438 := &x.TargetPort - yym2439 := z.EncBinary() - _ = yym2439 + if yyq2567[3] { + yy2576 := &x.TargetPort + yym2577 := z.EncBinary() + _ = yym2577 if false { - } else if z.HasExtensions() && z.EncExt(yy2438) { - } else if !yym2439 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2438) + } else if z.HasExtensions() && z.EncExt(yy2576) { + } else if !yym2577 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2576) } else { - z.EncFallback(yy2438) + z.EncFallback(yy2576) } } else { r.EncodeNil() } } else { - if yyq2429[3] { + if yyq2567[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2440 := &x.TargetPort - yym2441 := z.EncBinary() - _ = yym2441 + yy2578 := &x.TargetPort + yym2579 := z.EncBinary() + _ = yym2579 if false { - } else if z.HasExtensions() && z.EncExt(yy2440) { - } else if !yym2441 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2440) + } else if z.HasExtensions() && z.EncExt(yy2578) { + } else if !yym2579 && z.IsJSONHandle() { + z.EncJSONMarshal(yy2578) } else { - z.EncFallback(yy2440) + z.EncFallback(yy2578) } } } - if yyr2429 || yy2arr2429 { + if yyr2567 || yy2arr2567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2429[4] { - yym2443 := z.EncBinary() - _ = yym2443 + if yyq2567[4] { + yym2581 := z.EncBinary() + _ = yym2581 if false { } else { r.EncodeInt(int64(x.NodePort)) @@ -31987,19 +33683,19 @@ func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2429[4] { + if yyq2567[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2444 := z.EncBinary() - _ = yym2444 + yym2582 := z.EncBinary() + _ = yym2582 if false { } else { r.EncodeInt(int64(x.NodePort)) } } } - if yyr2429 || yy2arr2429 { + if yyr2567 || yy2arr2567 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -32012,25 +33708,25 @@ func (x *ServicePort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2445 := z.DecBinary() - _ = yym2445 + yym2583 := z.DecBinary() + _ = yym2583 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2446 := r.ContainerType() - if yyct2446 == codecSelferValueTypeMap1234 { - yyl2446 := r.ReadMapStart() - if yyl2446 == 0 { + yyct2584 := r.ContainerType() + if yyct2584 == codecSelferValueTypeMap1234 { + yyl2584 := r.ReadMapStart() + if yyl2584 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2446, d) + x.codecDecodeSelfFromMap(yyl2584, d) } - } else if yyct2446 == codecSelferValueTypeArray1234 { - yyl2446 := r.ReadArrayStart() - if yyl2446 == 0 { + } else if yyct2584 == codecSelferValueTypeArray1234 { + yyl2584 := r.ReadArrayStart() + if yyl2584 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2446, d) + x.codecDecodeSelfFromArray(yyl2584, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -32042,12 +33738,12 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2447Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2447Slc - var yyhl2447 bool = l >= 0 - for yyj2447 := 0; ; yyj2447++ { - if yyhl2447 { - if yyj2447 >= l { + var yys2585Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2585Slc + var yyhl2585 bool = l >= 0 + for yyj2585 := 0; ; yyj2585++ { + if yyhl2585 { + if yyj2585 >= l { break } } else { @@ -32056,10 +33752,10 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2447Slc = r.DecodeBytes(yys2447Slc, true, true) - yys2447 := string(yys2447Slc) + yys2585Slc = r.DecodeBytes(yys2585Slc, true, true) + yys2585 := string(yys2585Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2447 { + switch yys2585 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -32082,15 +33778,15 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { - yyv2451 := &x.TargetPort - yym2452 := z.DecBinary() - _ = yym2452 + yyv2589 := &x.TargetPort + yym2590 := z.DecBinary() + _ = yym2590 if false { - } else if z.HasExtensions() && z.DecExt(yyv2451) { - } else if !yym2452 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2451) + } else if z.HasExtensions() && z.DecExt(yyv2589) { + } else if !yym2590 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2589) } else { - z.DecFallback(yyv2451, false) + z.DecFallback(yyv2589, false) } } case "nodePort": @@ -32100,9 +33796,9 @@ func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.NodePort = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys2447) - } // end switch yys2447 - } // end for yyj2447 + z.DecStructFieldNotFound(-1, yys2585) + } // end switch yys2585 + } // end for yyj2585 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -32110,16 +33806,16 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2454 int - var yyb2454 bool - var yyhl2454 bool = l >= 0 - yyj2454++ - if yyhl2454 { - yyb2454 = yyj2454 > l + var yyj2592 int + var yyb2592 bool + var yyhl2592 bool = l >= 0 + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb2454 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb2454 { + if yyb2592 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32129,13 +33825,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj2454++ - if yyhl2454 { - yyb2454 = yyj2454 > l + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb2454 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb2454 { + if yyb2592 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32145,13 +33841,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Protocol = Protocol(r.DecodeString()) } - yyj2454++ - if yyhl2454 { - yyb2454 = yyj2454 > l + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb2454 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb2454 { + if yyb2592 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32161,13 +33857,13 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Port = int32(r.DecodeInt(32)) } - yyj2454++ - if yyhl2454 { - yyb2454 = yyj2454 > l + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb2454 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb2454 { + if yyb2592 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32175,24 +33871,24 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { - yyv2458 := &x.TargetPort - yym2459 := z.DecBinary() - _ = yym2459 + yyv2596 := &x.TargetPort + yym2597 := z.DecBinary() + _ = yym2597 if false { - } else if z.HasExtensions() && z.DecExt(yyv2458) { - } else if !yym2459 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2458) + } else if z.HasExtensions() && z.DecExt(yyv2596) { + } else if !yym2597 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv2596) } else { - z.DecFallback(yyv2458, false) + z.DecFallback(yyv2596, false) } } - yyj2454++ - if yyhl2454 { - yyb2454 = yyj2454 > l + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb2454 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb2454 { + if yyb2592 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32203,17 +33899,17 @@ func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.NodePort = int32(r.DecodeInt(32)) } for { - yyj2454++ - if yyhl2454 { - yyb2454 = yyj2454 > l + yyj2592++ + if yyhl2592 { + yyb2592 = yyj2592 > l } else { - yyb2454 = r.CheckBreak() + yyb2592 = r.CheckBreak() } - if yyb2454 { + if yyb2592 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2454-1, "") + z.DecStructFieldNotFound(yyj2592-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32225,39 +33921,39 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2461 := z.EncBinary() - _ = yym2461 + yym2599 := z.EncBinary() + _ = yym2599 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2462 := !z.EncBinary() - yy2arr2462 := z.EncBasicHandle().StructToArray - var yyq2462 [5]bool - _, _, _ = yysep2462, yyq2462, yy2arr2462 - const yyr2462 bool = false - yyq2462[0] = x.Kind != "" - yyq2462[1] = x.APIVersion != "" - yyq2462[2] = true - yyq2462[3] = true - yyq2462[4] = true - var yynn2462 int - if yyr2462 || yy2arr2462 { + yysep2600 := !z.EncBinary() + yy2arr2600 := z.EncBasicHandle().StructToArray + var yyq2600 [5]bool + _, _, _ = yysep2600, yyq2600, yy2arr2600 + const yyr2600 bool = false + yyq2600[0] = x.Kind != "" + yyq2600[1] = x.APIVersion != "" + yyq2600[2] = true + yyq2600[3] = true + yyq2600[4] = true + var yynn2600 int + if yyr2600 || yy2arr2600 { r.EncodeArrayStart(5) } else { - yynn2462 = 0 - for _, b := range yyq2462 { + yynn2600 = 0 + for _, b := range yyq2600 { if b { - yynn2462++ + yynn2600++ } } - r.EncodeMapStart(yynn2462) - yynn2462 = 0 + r.EncodeMapStart(yynn2600) + yynn2600 = 0 } - if yyr2462 || yy2arr2462 { + if yyr2600 || yy2arr2600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2462[0] { - yym2464 := z.EncBinary() - _ = yym2464 + if yyq2600[0] { + yym2602 := z.EncBinary() + _ = yym2602 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -32266,23 +33962,23 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2462[0] { + if yyq2600[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2465 := z.EncBinary() - _ = yym2465 + yym2603 := z.EncBinary() + _ = yym2603 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2462 || yy2arr2462 { + if yyr2600 || yy2arr2600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2462[1] { - yym2467 := z.EncBinary() - _ = yym2467 + if yyq2600[1] { + yym2605 := z.EncBinary() + _ = yym2605 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -32291,70 +33987,70 @@ func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2462[1] { + if yyq2600[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2468 := z.EncBinary() - _ = yym2468 + yym2606 := z.EncBinary() + _ = yym2606 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2462 || yy2arr2462 { + if yyr2600 || yy2arr2600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2462[2] { - yy2470 := &x.ObjectMeta - yy2470.CodecEncodeSelf(e) + if yyq2600[2] { + yy2608 := &x.ObjectMeta + yy2608.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2462[2] { + if yyq2600[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2471 := &x.ObjectMeta - yy2471.CodecEncodeSelf(e) + yy2609 := &x.ObjectMeta + yy2609.CodecEncodeSelf(e) } } - if yyr2462 || yy2arr2462 { + if yyr2600 || yy2arr2600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2462[3] { - yy2473 := &x.Spec - yy2473.CodecEncodeSelf(e) + if yyq2600[3] { + yy2611 := &x.Spec + yy2611.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2462[3] { + if yyq2600[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2474 := &x.Spec - yy2474.CodecEncodeSelf(e) + yy2612 := &x.Spec + yy2612.CodecEncodeSelf(e) } } - if yyr2462 || yy2arr2462 { + if yyr2600 || yy2arr2600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2462[4] { - yy2476 := &x.Status - yy2476.CodecEncodeSelf(e) + if yyq2600[4] { + yy2614 := &x.Status + yy2614.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2462[4] { + if yyq2600[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2477 := &x.Status - yy2477.CodecEncodeSelf(e) + yy2615 := &x.Status + yy2615.CodecEncodeSelf(e) } } - if yyr2462 || yy2arr2462 { + if yyr2600 || yy2arr2600 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -32367,25 +34063,25 @@ func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2478 := z.DecBinary() - _ = yym2478 + yym2616 := z.DecBinary() + _ = yym2616 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2479 := r.ContainerType() - if yyct2479 == codecSelferValueTypeMap1234 { - yyl2479 := r.ReadMapStart() - if yyl2479 == 0 { + yyct2617 := r.ContainerType() + if yyct2617 == codecSelferValueTypeMap1234 { + yyl2617 := r.ReadMapStart() + if yyl2617 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2479, d) + x.codecDecodeSelfFromMap(yyl2617, d) } - } else if yyct2479 == codecSelferValueTypeArray1234 { - yyl2479 := r.ReadArrayStart() - if yyl2479 == 0 { + } else if yyct2617 == codecSelferValueTypeArray1234 { + yyl2617 := r.ReadArrayStart() + if yyl2617 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2479, d) + x.codecDecodeSelfFromArray(yyl2617, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -32397,12 +34093,12 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2480Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2480Slc - var yyhl2480 bool = l >= 0 - for yyj2480 := 0; ; yyj2480++ { - if yyhl2480 { - if yyj2480 >= l { + var yys2618Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2618Slc + var yyhl2618 bool = l >= 0 + for yyj2618 := 0; ; yyj2618++ { + if yyhl2618 { + if yyj2618 >= l { break } } else { @@ -32411,10 +34107,10 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2480Slc = r.DecodeBytes(yys2480Slc, true, true) - yys2480 := string(yys2480Slc) + yys2618Slc = r.DecodeBytes(yys2618Slc, true, true) + yys2618 := string(yys2618Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2480 { + switch yys2618 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -32431,27 +34127,27 @@ func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2483 := &x.ObjectMeta - yyv2483.CodecDecodeSelf(d) + yyv2621 := &x.ObjectMeta + yyv2621.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { - yyv2484 := &x.Spec - yyv2484.CodecDecodeSelf(d) + yyv2622 := &x.Spec + yyv2622.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { - yyv2485 := &x.Status - yyv2485.CodecDecodeSelf(d) + yyv2623 := &x.Status + yyv2623.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2480) - } // end switch yys2480 - } // end for yyj2480 + z.DecStructFieldNotFound(-1, yys2618) + } // end switch yys2618 + } // end for yyj2618 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -32459,16 +34155,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2486 int - var yyb2486 bool - var yyhl2486 bool = l >= 0 - yyj2486++ - if yyhl2486 { - yyb2486 = yyj2486 > l + var yyj2624 int + var yyb2624 bool + var yyhl2624 bool = l >= 0 + yyj2624++ + if yyhl2624 { + yyb2624 = yyj2624 > l } else { - yyb2486 = r.CheckBreak() + yyb2624 = r.CheckBreak() } - if yyb2486 { + if yyb2624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32478,13 +34174,13 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2486++ - if yyhl2486 { - yyb2486 = yyj2486 > l + yyj2624++ + if yyhl2624 { + yyb2624 = yyj2624 > l } else { - yyb2486 = r.CheckBreak() + yyb2624 = r.CheckBreak() } - if yyb2486 { + if yyb2624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32494,13 +34190,13 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2486++ - if yyhl2486 { - yyb2486 = yyj2486 > l + yyj2624++ + if yyhl2624 { + yyb2624 = yyj2624 > l } else { - yyb2486 = r.CheckBreak() + yyb2624 = r.CheckBreak() } - if yyb2486 { + if yyb2624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32508,16 +34204,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2489 := &x.ObjectMeta - yyv2489.CodecDecodeSelf(d) + yyv2627 := &x.ObjectMeta + yyv2627.CodecDecodeSelf(d) } - yyj2486++ - if yyhl2486 { - yyb2486 = yyj2486 > l + yyj2624++ + if yyhl2624 { + yyb2624 = yyj2624 > l } else { - yyb2486 = r.CheckBreak() + yyb2624 = r.CheckBreak() } - if yyb2486 { + if yyb2624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32525,16 +34221,16 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { - yyv2490 := &x.Spec - yyv2490.CodecDecodeSelf(d) + yyv2628 := &x.Spec + yyv2628.CodecDecodeSelf(d) } - yyj2486++ - if yyhl2486 { - yyb2486 = yyj2486 > l + yyj2624++ + if yyhl2624 { + yyb2624 = yyj2624 > l } else { - yyb2486 = r.CheckBreak() + yyb2624 = r.CheckBreak() } - if yyb2486 { + if yyb2624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32542,21 +34238,21 @@ func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { - yyv2491 := &x.Status - yyv2491.CodecDecodeSelf(d) + yyv2629 := &x.Status + yyv2629.CodecDecodeSelf(d) } for { - yyj2486++ - if yyhl2486 { - yyb2486 = yyj2486 > l + yyj2624++ + if yyhl2624 { + yyb2624 = yyj2624 > l } else { - yyb2486 = r.CheckBreak() + yyb2624 = r.CheckBreak() } - if yyb2486 { + if yyb2624 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2486-1, "") + z.DecStructFieldNotFound(yyj2624-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32568,37 +34264,37 @@ func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2492 := z.EncBinary() - _ = yym2492 + yym2630 := z.EncBinary() + _ = yym2630 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2493 := !z.EncBinary() - yy2arr2493 := z.EncBasicHandle().StructToArray - var yyq2493 [4]bool - _, _, _ = yysep2493, yyq2493, yy2arr2493 - const yyr2493 bool = false - yyq2493[0] = x.Kind != "" - yyq2493[1] = x.APIVersion != "" - yyq2493[2] = true - var yynn2493 int - if yyr2493 || yy2arr2493 { + yysep2631 := !z.EncBinary() + yy2arr2631 := z.EncBasicHandle().StructToArray + var yyq2631 [4]bool + _, _, _ = yysep2631, yyq2631, yy2arr2631 + const yyr2631 bool = false + yyq2631[0] = x.Kind != "" + yyq2631[1] = x.APIVersion != "" + yyq2631[2] = true + var yynn2631 int + if yyr2631 || yy2arr2631 { r.EncodeArrayStart(4) } else { - yynn2493 = 1 - for _, b := range yyq2493 { + yynn2631 = 1 + for _, b := range yyq2631 { if b { - yynn2493++ + yynn2631++ } } - r.EncodeMapStart(yynn2493) - yynn2493 = 0 + r.EncodeMapStart(yynn2631) + yynn2631 = 0 } - if yyr2493 || yy2arr2493 { + if yyr2631 || yy2arr2631 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2493[0] { - yym2495 := z.EncBinary() - _ = yym2495 + if yyq2631[0] { + yym2633 := z.EncBinary() + _ = yym2633 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -32607,23 +34303,23 @@ func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2493[0] { + if yyq2631[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2496 := z.EncBinary() - _ = yym2496 + yym2634 := z.EncBinary() + _ = yym2634 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2493 || yy2arr2493 { + if yyr2631 || yy2arr2631 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2493[1] { - yym2498 := z.EncBinary() - _ = yym2498 + if yyq2631[1] { + yym2636 := z.EncBinary() + _ = yym2636 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -32632,54 +34328,54 @@ func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2493[1] { + if yyq2631[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2499 := z.EncBinary() - _ = yym2499 + yym2637 := z.EncBinary() + _ = yym2637 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2493 || yy2arr2493 { + if yyr2631 || yy2arr2631 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2493[2] { - yy2501 := &x.ListMeta - yym2502 := z.EncBinary() - _ = yym2502 + if yyq2631[2] { + yy2639 := &x.ListMeta + yym2640 := z.EncBinary() + _ = yym2640 if false { - } else if z.HasExtensions() && z.EncExt(yy2501) { + } else if z.HasExtensions() && z.EncExt(yy2639) { } else { - z.EncFallback(yy2501) + z.EncFallback(yy2639) } } else { r.EncodeNil() } } else { - if yyq2493[2] { + if yyq2631[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2503 := &x.ListMeta - yym2504 := z.EncBinary() - _ = yym2504 + yy2641 := &x.ListMeta + yym2642 := z.EncBinary() + _ = yym2642 if false { - } else if z.HasExtensions() && z.EncExt(yy2503) { + } else if z.HasExtensions() && z.EncExt(yy2641) { } else { - z.EncFallback(yy2503) + z.EncFallback(yy2641) } } } - if yyr2493 || yy2arr2493 { + if yyr2631 || yy2arr2631 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2506 := z.EncBinary() - _ = yym2506 + yym2644 := z.EncBinary() + _ = yym2644 if false { } else { h.encSliceService(([]Service)(x.Items), e) @@ -32692,15 +34388,15 @@ func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2507 := z.EncBinary() - _ = yym2507 + yym2645 := z.EncBinary() + _ = yym2645 if false { } else { h.encSliceService(([]Service)(x.Items), e) } } } - if yyr2493 || yy2arr2493 { + if yyr2631 || yy2arr2631 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -32713,25 +34409,25 @@ func (x *ServiceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2508 := z.DecBinary() - _ = yym2508 + yym2646 := z.DecBinary() + _ = yym2646 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2509 := r.ContainerType() - if yyct2509 == codecSelferValueTypeMap1234 { - yyl2509 := r.ReadMapStart() - if yyl2509 == 0 { + yyct2647 := r.ContainerType() + if yyct2647 == codecSelferValueTypeMap1234 { + yyl2647 := r.ReadMapStart() + if yyl2647 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2509, d) + x.codecDecodeSelfFromMap(yyl2647, d) } - } else if yyct2509 == codecSelferValueTypeArray1234 { - yyl2509 := r.ReadArrayStart() - if yyl2509 == 0 { + } else if yyct2647 == codecSelferValueTypeArray1234 { + yyl2647 := r.ReadArrayStart() + if yyl2647 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2509, d) + x.codecDecodeSelfFromArray(yyl2647, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -32743,12 +34439,12 @@ func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2510Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2510Slc - var yyhl2510 bool = l >= 0 - for yyj2510 := 0; ; yyj2510++ { - if yyhl2510 { - if yyj2510 >= l { + var yys2648Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2648Slc + var yyhl2648 bool = l >= 0 + for yyj2648 := 0; ; yyj2648++ { + if yyhl2648 { + if yyj2648 >= l { break } } else { @@ -32757,10 +34453,10 @@ func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2510Slc = r.DecodeBytes(yys2510Slc, true, true) - yys2510 := string(yys2510Slc) + yys2648Slc = r.DecodeBytes(yys2648Slc, true, true) + yys2648 := string(yys2648Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2510 { + switch yys2648 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -32777,31 +34473,31 @@ func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2513 := &x.ListMeta - yym2514 := z.DecBinary() - _ = yym2514 + yyv2651 := &x.ListMeta + yym2652 := z.DecBinary() + _ = yym2652 if false { - } else if z.HasExtensions() && z.DecExt(yyv2513) { + } else if z.HasExtensions() && z.DecExt(yyv2651) { } else { - z.DecFallback(yyv2513, false) + z.DecFallback(yyv2651, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2515 := &x.Items - yym2516 := z.DecBinary() - _ = yym2516 + yyv2653 := &x.Items + yym2654 := z.DecBinary() + _ = yym2654 if false { } else { - h.decSliceService((*[]Service)(yyv2515), d) + h.decSliceService((*[]Service)(yyv2653), d) } } default: - z.DecStructFieldNotFound(-1, yys2510) - } // end switch yys2510 - } // end for yyj2510 + z.DecStructFieldNotFound(-1, yys2648) + } // end switch yys2648 + } // end for yyj2648 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -32809,16 +34505,16 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2517 int - var yyb2517 bool - var yyhl2517 bool = l >= 0 - yyj2517++ - if yyhl2517 { - yyb2517 = yyj2517 > l + var yyj2655 int + var yyb2655 bool + var yyhl2655 bool = l >= 0 + yyj2655++ + if yyhl2655 { + yyb2655 = yyj2655 > l } else { - yyb2517 = r.CheckBreak() + yyb2655 = r.CheckBreak() } - if yyb2517 { + if yyb2655 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32828,13 +34524,13 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2517++ - if yyhl2517 { - yyb2517 = yyj2517 > l + yyj2655++ + if yyhl2655 { + yyb2655 = yyj2655 > l } else { - yyb2517 = r.CheckBreak() + yyb2655 = r.CheckBreak() } - if yyb2517 { + if yyb2655 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32844,13 +34540,13 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2517++ - if yyhl2517 { - yyb2517 = yyj2517 > l + yyj2655++ + if yyhl2655 { + yyb2655 = yyj2655 > l } else { - yyb2517 = r.CheckBreak() + yyb2655 = r.CheckBreak() } - if yyb2517 { + if yyb2655 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32858,22 +34554,22 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2520 := &x.ListMeta - yym2521 := z.DecBinary() - _ = yym2521 + yyv2658 := &x.ListMeta + yym2659 := z.DecBinary() + _ = yym2659 if false { - } else if z.HasExtensions() && z.DecExt(yyv2520) { + } else if z.HasExtensions() && z.DecExt(yyv2658) { } else { - z.DecFallback(yyv2520, false) + z.DecFallback(yyv2658, false) } } - yyj2517++ - if yyhl2517 { - yyb2517 = yyj2517 > l + yyj2655++ + if yyhl2655 { + yyb2655 = yyj2655 > l } else { - yyb2517 = r.CheckBreak() + yyb2655 = r.CheckBreak() } - if yyb2517 { + if yyb2655 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -32881,26 +34577,26 @@ func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2522 := &x.Items - yym2523 := z.DecBinary() - _ = yym2523 + yyv2660 := &x.Items + yym2661 := z.DecBinary() + _ = yym2661 if false { } else { - h.decSliceService((*[]Service)(yyv2522), d) + h.decSliceService((*[]Service)(yyv2660), d) } } for { - yyj2517++ - if yyhl2517 { - yyb2517 = yyj2517 > l + yyj2655++ + if yyhl2655 { + yyb2655 = yyj2655 > l } else { - yyb2517 = r.CheckBreak() + yyb2655 = r.CheckBreak() } - if yyb2517 { + if yyb2655 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2517-1, "") + z.DecStructFieldNotFound(yyj2655-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -32912,39 +34608,39 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2524 := z.EncBinary() - _ = yym2524 + yym2662 := z.EncBinary() + _ = yym2662 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2525 := !z.EncBinary() - yy2arr2525 := z.EncBasicHandle().StructToArray - var yyq2525 [5]bool - _, _, _ = yysep2525, yyq2525, yy2arr2525 - const yyr2525 bool = false - yyq2525[0] = x.Kind != "" - yyq2525[1] = x.APIVersion != "" - yyq2525[2] = true - yyq2525[3] = len(x.Secrets) != 0 - yyq2525[4] = len(x.ImagePullSecrets) != 0 - var yynn2525 int - if yyr2525 || yy2arr2525 { + yysep2663 := !z.EncBinary() + yy2arr2663 := z.EncBasicHandle().StructToArray + var yyq2663 [5]bool + _, _, _ = yysep2663, yyq2663, yy2arr2663 + const yyr2663 bool = false + yyq2663[0] = x.Kind != "" + yyq2663[1] = x.APIVersion != "" + yyq2663[2] = true + yyq2663[3] = len(x.Secrets) != 0 + yyq2663[4] = len(x.ImagePullSecrets) != 0 + var yynn2663 int + if yyr2663 || yy2arr2663 { r.EncodeArrayStart(5) } else { - yynn2525 = 0 - for _, b := range yyq2525 { + yynn2663 = 0 + for _, b := range yyq2663 { if b { - yynn2525++ + yynn2663++ } } - r.EncodeMapStart(yynn2525) - yynn2525 = 0 + r.EncodeMapStart(yynn2663) + yynn2663 = 0 } - if yyr2525 || yy2arr2525 { + if yyr2663 || yy2arr2663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2525[0] { - yym2527 := z.EncBinary() - _ = yym2527 + if yyq2663[0] { + yym2665 := z.EncBinary() + _ = yym2665 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -32953,23 +34649,23 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2525[0] { + if yyq2663[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2528 := z.EncBinary() - _ = yym2528 + yym2666 := z.EncBinary() + _ = yym2666 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2525 || yy2arr2525 { + if yyr2663 || yy2arr2663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2525[1] { - yym2530 := z.EncBinary() - _ = yym2530 + if yyq2663[1] { + yym2668 := z.EncBinary() + _ = yym2668 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -32978,43 +34674,43 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2525[1] { + if yyq2663[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2531 := z.EncBinary() - _ = yym2531 + yym2669 := z.EncBinary() + _ = yym2669 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2525 || yy2arr2525 { + if yyr2663 || yy2arr2663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2525[2] { - yy2533 := &x.ObjectMeta - yy2533.CodecEncodeSelf(e) + if yyq2663[2] { + yy2671 := &x.ObjectMeta + yy2671.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2525[2] { + if yyq2663[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2534 := &x.ObjectMeta - yy2534.CodecEncodeSelf(e) + yy2672 := &x.ObjectMeta + yy2672.CodecEncodeSelf(e) } } - if yyr2525 || yy2arr2525 { + if yyr2663 || yy2arr2663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2525[3] { + if yyq2663[3] { if x.Secrets == nil { r.EncodeNil() } else { - yym2536 := z.EncBinary() - _ = yym2536 + yym2674 := z.EncBinary() + _ = yym2674 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) @@ -33024,15 +34720,15 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2525[3] { + if yyq2663[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Secrets == nil { r.EncodeNil() } else { - yym2537 := z.EncBinary() - _ = yym2537 + yym2675 := z.EncBinary() + _ = yym2675 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) @@ -33040,14 +34736,14 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2525 || yy2arr2525 { + if yyr2663 || yy2arr2663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2525[4] { + if yyq2663[4] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym2539 := z.EncBinary() - _ = yym2539 + yym2677 := z.EncBinary() + _ = yym2677 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -33057,15 +34753,15 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2525[4] { + if yyq2663[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { - yym2540 := z.EncBinary() - _ = yym2540 + yym2678 := z.EncBinary() + _ = yym2678 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) @@ -33073,7 +34769,7 @@ func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2525 || yy2arr2525 { + if yyr2663 || yy2arr2663 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -33086,25 +34782,25 @@ func (x *ServiceAccount) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2541 := z.DecBinary() - _ = yym2541 + yym2679 := z.DecBinary() + _ = yym2679 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2542 := r.ContainerType() - if yyct2542 == codecSelferValueTypeMap1234 { - yyl2542 := r.ReadMapStart() - if yyl2542 == 0 { + yyct2680 := r.ContainerType() + if yyct2680 == codecSelferValueTypeMap1234 { + yyl2680 := r.ReadMapStart() + if yyl2680 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2542, d) + x.codecDecodeSelfFromMap(yyl2680, d) } - } else if yyct2542 == codecSelferValueTypeArray1234 { - yyl2542 := r.ReadArrayStart() - if yyl2542 == 0 { + } else if yyct2680 == codecSelferValueTypeArray1234 { + yyl2680 := r.ReadArrayStart() + if yyl2680 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2542, d) + x.codecDecodeSelfFromArray(yyl2680, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -33116,12 +34812,12 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2543Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2543Slc - var yyhl2543 bool = l >= 0 - for yyj2543 := 0; ; yyj2543++ { - if yyhl2543 { - if yyj2543 >= l { + var yys2681Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2681Slc + var yyhl2681 bool = l >= 0 + for yyj2681 := 0; ; yyj2681++ { + if yyhl2681 { + if yyj2681 >= l { break } } else { @@ -33130,10 +34826,10 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2543Slc = r.DecodeBytes(yys2543Slc, true, true) - yys2543 := string(yys2543Slc) + yys2681Slc = r.DecodeBytes(yys2681Slc, true, true) + yys2681 := string(yys2681Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2543 { + switch yys2681 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -33150,37 +34846,37 @@ func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2546 := &x.ObjectMeta - yyv2546.CodecDecodeSelf(d) + yyv2684 := &x.ObjectMeta + yyv2684.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { - yyv2547 := &x.Secrets - yym2548 := z.DecBinary() - _ = yym2548 + yyv2685 := &x.Secrets + yym2686 := z.DecBinary() + _ = yym2686 if false { } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv2547), d) + h.decSliceObjectReference((*[]ObjectReference)(yyv2685), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2549 := &x.ImagePullSecrets - yym2550 := z.DecBinary() - _ = yym2550 + yyv2687 := &x.ImagePullSecrets + yym2688 := z.DecBinary() + _ = yym2688 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2549), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2687), d) } } default: - z.DecStructFieldNotFound(-1, yys2543) - } // end switch yys2543 - } // end for yyj2543 + z.DecStructFieldNotFound(-1, yys2681) + } // end switch yys2681 + } // end for yyj2681 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33188,16 +34884,16 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2551 int - var yyb2551 bool - var yyhl2551 bool = l >= 0 - yyj2551++ - if yyhl2551 { - yyb2551 = yyj2551 > l + var yyj2689 int + var yyb2689 bool + var yyhl2689 bool = l >= 0 + yyj2689++ + if yyhl2689 { + yyb2689 = yyj2689 > l } else { - yyb2551 = r.CheckBreak() + yyb2689 = r.CheckBreak() } - if yyb2551 { + if yyb2689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33207,13 +34903,13 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2551++ - if yyhl2551 { - yyb2551 = yyj2551 > l + yyj2689++ + if yyhl2689 { + yyb2689 = yyj2689 > l } else { - yyb2551 = r.CheckBreak() + yyb2689 = r.CheckBreak() } - if yyb2551 { + if yyb2689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33223,13 +34919,13 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2551++ - if yyhl2551 { - yyb2551 = yyj2551 > l + yyj2689++ + if yyhl2689 { + yyb2689 = yyj2689 > l } else { - yyb2551 = r.CheckBreak() + yyb2689 = r.CheckBreak() } - if yyb2551 { + if yyb2689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33237,16 +34933,16 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2554 := &x.ObjectMeta - yyv2554.CodecDecodeSelf(d) + yyv2692 := &x.ObjectMeta + yyv2692.CodecDecodeSelf(d) } - yyj2551++ - if yyhl2551 { - yyb2551 = yyj2551 > l + yyj2689++ + if yyhl2689 { + yyb2689 = yyj2689 > l } else { - yyb2551 = r.CheckBreak() + yyb2689 = r.CheckBreak() } - if yyb2551 { + if yyb2689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33254,21 +34950,21 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Secrets = nil } else { - yyv2555 := &x.Secrets - yym2556 := z.DecBinary() - _ = yym2556 + yyv2693 := &x.Secrets + yym2694 := z.DecBinary() + _ = yym2694 if false { } else { - h.decSliceObjectReference((*[]ObjectReference)(yyv2555), d) + h.decSliceObjectReference((*[]ObjectReference)(yyv2693), d) } } - yyj2551++ - if yyhl2551 { - yyb2551 = yyj2551 > l + yyj2689++ + if yyhl2689 { + yyb2689 = yyj2689 > l } else { - yyb2551 = r.CheckBreak() + yyb2689 = r.CheckBreak() } - if yyb2551 { + if yyb2689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33276,26 +34972,26 @@ func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { - yyv2557 := &x.ImagePullSecrets - yym2558 := z.DecBinary() - _ = yym2558 + yyv2695 := &x.ImagePullSecrets + yym2696 := z.DecBinary() + _ = yym2696 if false { } else { - h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2557), d) + h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2695), d) } } for { - yyj2551++ - if yyhl2551 { - yyb2551 = yyj2551 > l + yyj2689++ + if yyhl2689 { + yyb2689 = yyj2689 > l } else { - yyb2551 = r.CheckBreak() + yyb2689 = r.CheckBreak() } - if yyb2551 { + if yyb2689 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2551-1, "") + z.DecStructFieldNotFound(yyj2689-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33307,37 +35003,37 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2559 := z.EncBinary() - _ = yym2559 + yym2697 := z.EncBinary() + _ = yym2697 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2560 := !z.EncBinary() - yy2arr2560 := z.EncBasicHandle().StructToArray - var yyq2560 [4]bool - _, _, _ = yysep2560, yyq2560, yy2arr2560 - const yyr2560 bool = false - yyq2560[0] = x.Kind != "" - yyq2560[1] = x.APIVersion != "" - yyq2560[2] = true - var yynn2560 int - if yyr2560 || yy2arr2560 { + yysep2698 := !z.EncBinary() + yy2arr2698 := z.EncBasicHandle().StructToArray + var yyq2698 [4]bool + _, _, _ = yysep2698, yyq2698, yy2arr2698 + const yyr2698 bool = false + yyq2698[0] = x.Kind != "" + yyq2698[1] = x.APIVersion != "" + yyq2698[2] = true + var yynn2698 int + if yyr2698 || yy2arr2698 { r.EncodeArrayStart(4) } else { - yynn2560 = 1 - for _, b := range yyq2560 { + yynn2698 = 1 + for _, b := range yyq2698 { if b { - yynn2560++ + yynn2698++ } } - r.EncodeMapStart(yynn2560) - yynn2560 = 0 + r.EncodeMapStart(yynn2698) + yynn2698 = 0 } - if yyr2560 || yy2arr2560 { + if yyr2698 || yy2arr2698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2560[0] { - yym2562 := z.EncBinary() - _ = yym2562 + if yyq2698[0] { + yym2700 := z.EncBinary() + _ = yym2700 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -33346,23 +35042,23 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2560[0] { + if yyq2698[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2563 := z.EncBinary() - _ = yym2563 + yym2701 := z.EncBinary() + _ = yym2701 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2560 || yy2arr2560 { + if yyr2698 || yy2arr2698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2560[1] { - yym2565 := z.EncBinary() - _ = yym2565 + if yyq2698[1] { + yym2703 := z.EncBinary() + _ = yym2703 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -33371,54 +35067,54 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2560[1] { + if yyq2698[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2566 := z.EncBinary() - _ = yym2566 + yym2704 := z.EncBinary() + _ = yym2704 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2560 || yy2arr2560 { + if yyr2698 || yy2arr2698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2560[2] { - yy2568 := &x.ListMeta - yym2569 := z.EncBinary() - _ = yym2569 + if yyq2698[2] { + yy2706 := &x.ListMeta + yym2707 := z.EncBinary() + _ = yym2707 if false { - } else if z.HasExtensions() && z.EncExt(yy2568) { + } else if z.HasExtensions() && z.EncExt(yy2706) { } else { - z.EncFallback(yy2568) + z.EncFallback(yy2706) } } else { r.EncodeNil() } } else { - if yyq2560[2] { + if yyq2698[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2570 := &x.ListMeta - yym2571 := z.EncBinary() - _ = yym2571 + yy2708 := &x.ListMeta + yym2709 := z.EncBinary() + _ = yym2709 if false { - } else if z.HasExtensions() && z.EncExt(yy2570) { + } else if z.HasExtensions() && z.EncExt(yy2708) { } else { - z.EncFallback(yy2570) + z.EncFallback(yy2708) } } } - if yyr2560 || yy2arr2560 { + if yyr2698 || yy2arr2698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2573 := z.EncBinary() - _ = yym2573 + yym2711 := z.EncBinary() + _ = yym2711 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) @@ -33431,15 +35127,15 @@ func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2574 := z.EncBinary() - _ = yym2574 + yym2712 := z.EncBinary() + _ = yym2712 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } - if yyr2560 || yy2arr2560 { + if yyr2698 || yy2arr2698 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -33452,25 +35148,25 @@ func (x *ServiceAccountList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2575 := z.DecBinary() - _ = yym2575 + yym2713 := z.DecBinary() + _ = yym2713 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2576 := r.ContainerType() - if yyct2576 == codecSelferValueTypeMap1234 { - yyl2576 := r.ReadMapStart() - if yyl2576 == 0 { + yyct2714 := r.ContainerType() + if yyct2714 == codecSelferValueTypeMap1234 { + yyl2714 := r.ReadMapStart() + if yyl2714 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2576, d) + x.codecDecodeSelfFromMap(yyl2714, d) } - } else if yyct2576 == codecSelferValueTypeArray1234 { - yyl2576 := r.ReadArrayStart() - if yyl2576 == 0 { + } else if yyct2714 == codecSelferValueTypeArray1234 { + yyl2714 := r.ReadArrayStart() + if yyl2714 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2576, d) + x.codecDecodeSelfFromArray(yyl2714, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -33482,12 +35178,12 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2577Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2577Slc - var yyhl2577 bool = l >= 0 - for yyj2577 := 0; ; yyj2577++ { - if yyhl2577 { - if yyj2577 >= l { + var yys2715Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2715Slc + var yyhl2715 bool = l >= 0 + for yyj2715 := 0; ; yyj2715++ { + if yyhl2715 { + if yyj2715 >= l { break } } else { @@ -33496,10 +35192,10 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2577Slc = r.DecodeBytes(yys2577Slc, true, true) - yys2577 := string(yys2577Slc) + yys2715Slc = r.DecodeBytes(yys2715Slc, true, true) + yys2715 := string(yys2715Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2577 { + switch yys2715 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -33516,31 +35212,31 @@ func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2580 := &x.ListMeta - yym2581 := z.DecBinary() - _ = yym2581 + yyv2718 := &x.ListMeta + yym2719 := z.DecBinary() + _ = yym2719 if false { - } else if z.HasExtensions() && z.DecExt(yyv2580) { + } else if z.HasExtensions() && z.DecExt(yyv2718) { } else { - z.DecFallback(yyv2580, false) + z.DecFallback(yyv2718, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2582 := &x.Items - yym2583 := z.DecBinary() - _ = yym2583 + yyv2720 := &x.Items + yym2721 := z.DecBinary() + _ = yym2721 if false { } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv2582), d) + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2720), d) } } default: - z.DecStructFieldNotFound(-1, yys2577) - } // end switch yys2577 - } // end for yyj2577 + z.DecStructFieldNotFound(-1, yys2715) + } // end switch yys2715 + } // end for yyj2715 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33548,16 +35244,16 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2584 int - var yyb2584 bool - var yyhl2584 bool = l >= 0 - yyj2584++ - if yyhl2584 { - yyb2584 = yyj2584 > l + var yyj2722 int + var yyb2722 bool + var yyhl2722 bool = l >= 0 + yyj2722++ + if yyhl2722 { + yyb2722 = yyj2722 > l } else { - yyb2584 = r.CheckBreak() + yyb2722 = r.CheckBreak() } - if yyb2584 { + if yyb2722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33567,13 +35263,13 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Kind = string(r.DecodeString()) } - yyj2584++ - if yyhl2584 { - yyb2584 = yyj2584 > l + yyj2722++ + if yyhl2722 { + yyb2722 = yyj2722 > l } else { - yyb2584 = r.CheckBreak() + yyb2722 = r.CheckBreak() } - if yyb2584 { + if yyb2722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33583,13 +35279,13 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.APIVersion = string(r.DecodeString()) } - yyj2584++ - if yyhl2584 { - yyb2584 = yyj2584 > l + yyj2722++ + if yyhl2722 { + yyb2722 = yyj2722 > l } else { - yyb2584 = r.CheckBreak() + yyb2722 = r.CheckBreak() } - if yyb2584 { + if yyb2722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33597,22 +35293,22 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2587 := &x.ListMeta - yym2588 := z.DecBinary() - _ = yym2588 + yyv2725 := &x.ListMeta + yym2726 := z.DecBinary() + _ = yym2726 if false { - } else if z.HasExtensions() && z.DecExt(yyv2587) { + } else if z.HasExtensions() && z.DecExt(yyv2725) { } else { - z.DecFallback(yyv2587, false) + z.DecFallback(yyv2725, false) } } - yyj2584++ - if yyhl2584 { - yyb2584 = yyj2584 > l + yyj2722++ + if yyhl2722 { + yyb2722 = yyj2722 > l } else { - yyb2584 = r.CheckBreak() + yyb2722 = r.CheckBreak() } - if yyb2584 { + if yyb2722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33620,26 +35316,26 @@ func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2589 := &x.Items - yym2590 := z.DecBinary() - _ = yym2590 + yyv2727 := &x.Items + yym2728 := z.DecBinary() + _ = yym2728 if false { } else { - h.decSliceServiceAccount((*[]ServiceAccount)(yyv2589), d) + h.decSliceServiceAccount((*[]ServiceAccount)(yyv2727), d) } } for { - yyj2584++ - if yyhl2584 { - yyb2584 = yyj2584 > l + yyj2722++ + if yyhl2722 { + yyb2722 = yyj2722 > l } else { - yyb2584 = r.CheckBreak() + yyb2722 = r.CheckBreak() } - if yyb2584 { + if yyb2722 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2584-1, "") + z.DecStructFieldNotFound(yyj2722-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33651,37 +35347,37 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2591 := z.EncBinary() - _ = yym2591 + yym2729 := z.EncBinary() + _ = yym2729 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2592 := !z.EncBinary() - yy2arr2592 := z.EncBasicHandle().StructToArray - var yyq2592 [4]bool - _, _, _ = yysep2592, yyq2592, yy2arr2592 - const yyr2592 bool = false - yyq2592[0] = x.Kind != "" - yyq2592[1] = x.APIVersion != "" - yyq2592[2] = true - var yynn2592 int - if yyr2592 || yy2arr2592 { + yysep2730 := !z.EncBinary() + yy2arr2730 := z.EncBasicHandle().StructToArray + var yyq2730 [4]bool + _, _, _ = yysep2730, yyq2730, yy2arr2730 + const yyr2730 bool = false + yyq2730[0] = x.Kind != "" + yyq2730[1] = x.APIVersion != "" + yyq2730[2] = true + var yynn2730 int + if yyr2730 || yy2arr2730 { r.EncodeArrayStart(4) } else { - yynn2592 = 1 - for _, b := range yyq2592 { + yynn2730 = 1 + for _, b := range yyq2730 { if b { - yynn2592++ + yynn2730++ } } - r.EncodeMapStart(yynn2592) - yynn2592 = 0 + r.EncodeMapStart(yynn2730) + yynn2730 = 0 } - if yyr2592 || yy2arr2592 { + if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2592[0] { - yym2594 := z.EncBinary() - _ = yym2594 + if yyq2730[0] { + yym2732 := z.EncBinary() + _ = yym2732 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -33690,23 +35386,23 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2592[0] { + if yyq2730[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2595 := z.EncBinary() - _ = yym2595 + yym2733 := z.EncBinary() + _ = yym2733 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2592 || yy2arr2592 { + if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2592[1] { - yym2597 := z.EncBinary() - _ = yym2597 + if yyq2730[1] { + yym2735 := z.EncBinary() + _ = yym2735 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -33715,42 +35411,42 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2592[1] { + if yyq2730[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2598 := z.EncBinary() - _ = yym2598 + yym2736 := z.EncBinary() + _ = yym2736 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2592 || yy2arr2592 { + if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2592[2] { - yy2600 := &x.ObjectMeta - yy2600.CodecEncodeSelf(e) + if yyq2730[2] { + yy2738 := &x.ObjectMeta + yy2738.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2592[2] { + if yyq2730[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2601 := &x.ObjectMeta - yy2601.CodecEncodeSelf(e) + yy2739 := &x.ObjectMeta + yy2739.CodecEncodeSelf(e) } } - if yyr2592 || yy2arr2592 { + if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Subsets == nil { r.EncodeNil() } else { - yym2603 := z.EncBinary() - _ = yym2603 + yym2741 := z.EncBinary() + _ = yym2741 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) @@ -33763,15 +35459,15 @@ func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x.Subsets == nil { r.EncodeNil() } else { - yym2604 := z.EncBinary() - _ = yym2604 + yym2742 := z.EncBinary() + _ = yym2742 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } - if yyr2592 || yy2arr2592 { + if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -33784,25 +35480,25 @@ func (x *Endpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2605 := z.DecBinary() - _ = yym2605 + yym2743 := z.DecBinary() + _ = yym2743 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2606 := r.ContainerType() - if yyct2606 == codecSelferValueTypeMap1234 { - yyl2606 := r.ReadMapStart() - if yyl2606 == 0 { + yyct2744 := r.ContainerType() + if yyct2744 == codecSelferValueTypeMap1234 { + yyl2744 := r.ReadMapStart() + if yyl2744 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2606, d) + x.codecDecodeSelfFromMap(yyl2744, d) } - } else if yyct2606 == codecSelferValueTypeArray1234 { - yyl2606 := r.ReadArrayStart() - if yyl2606 == 0 { + } else if yyct2744 == codecSelferValueTypeArray1234 { + yyl2744 := r.ReadArrayStart() + if yyl2744 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2606, d) + x.codecDecodeSelfFromArray(yyl2744, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -33814,12 +35510,12 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2607Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2607Slc - var yyhl2607 bool = l >= 0 - for yyj2607 := 0; ; yyj2607++ { - if yyhl2607 { - if yyj2607 >= l { + var yys2745Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2745Slc + var yyhl2745 bool = l >= 0 + for yyj2745 := 0; ; yyj2745++ { + if yyhl2745 { + if yyj2745 >= l { break } } else { @@ -33828,10 +35524,10 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2607Slc = r.DecodeBytes(yys2607Slc, true, true) - yys2607 := string(yys2607Slc) + yys2745Slc = r.DecodeBytes(yys2745Slc, true, true) + yys2745 := string(yys2745Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2607 { + switch yys2745 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -33848,25 +35544,25 @@ func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2610 := &x.ObjectMeta - yyv2610.CodecDecodeSelf(d) + yyv2748 := &x.ObjectMeta + yyv2748.CodecDecodeSelf(d) } case "subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { - yyv2611 := &x.Subsets - yym2612 := z.DecBinary() - _ = yym2612 + yyv2749 := &x.Subsets + yym2750 := z.DecBinary() + _ = yym2750 if false { } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2611), d) + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2749), d) } } default: - z.DecStructFieldNotFound(-1, yys2607) - } // end switch yys2607 - } // end for yyj2607 + z.DecStructFieldNotFound(-1, yys2745) + } // end switch yys2745 + } // end for yyj2745 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -33874,16 +35570,16 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2613 int - var yyb2613 bool - var yyhl2613 bool = l >= 0 - yyj2613++ - if yyhl2613 { - yyb2613 = yyj2613 > l + var yyj2751 int + var yyb2751 bool + var yyhl2751 bool = l >= 0 + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l } else { - yyb2613 = r.CheckBreak() + yyb2751 = r.CheckBreak() } - if yyb2613 { + if yyb2751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33893,13 +35589,13 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2613++ - if yyhl2613 { - yyb2613 = yyj2613 > l + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l } else { - yyb2613 = r.CheckBreak() + yyb2751 = r.CheckBreak() } - if yyb2613 { + if yyb2751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33909,13 +35605,13 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2613++ - if yyhl2613 { - yyb2613 = yyj2613 > l + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l } else { - yyb2613 = r.CheckBreak() + yyb2751 = r.CheckBreak() } - if yyb2613 { + if yyb2751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33923,16 +35619,16 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv2616 := &x.ObjectMeta - yyv2616.CodecDecodeSelf(d) + yyv2754 := &x.ObjectMeta + yyv2754.CodecDecodeSelf(d) } - yyj2613++ - if yyhl2613 { - yyb2613 = yyj2613 > l + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l } else { - yyb2613 = r.CheckBreak() + yyb2751 = r.CheckBreak() } - if yyb2613 { + if yyb2751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -33940,26 +35636,26 @@ func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Subsets = nil } else { - yyv2617 := &x.Subsets - yym2618 := z.DecBinary() - _ = yym2618 + yyv2755 := &x.Subsets + yym2756 := z.DecBinary() + _ = yym2756 if false { } else { - h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2617), d) + h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2755), d) } } for { - yyj2613++ - if yyhl2613 { - yyb2613 = yyj2613 > l + yyj2751++ + if yyhl2751 { + yyb2751 = yyj2751 > l } else { - yyb2613 = r.CheckBreak() + yyb2751 = r.CheckBreak() } - if yyb2613 { + if yyb2751 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2613-1, "") + z.DecStructFieldNotFound(yyj2751-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -33971,40 +35667,40 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2619 := z.EncBinary() - _ = yym2619 + yym2757 := z.EncBinary() + _ = yym2757 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2620 := !z.EncBinary() - yy2arr2620 := z.EncBasicHandle().StructToArray - var yyq2620 [3]bool - _, _, _ = yysep2620, yyq2620, yy2arr2620 - const yyr2620 bool = false - yyq2620[0] = len(x.Addresses) != 0 - yyq2620[1] = len(x.NotReadyAddresses) != 0 - yyq2620[2] = len(x.Ports) != 0 - var yynn2620 int - if yyr2620 || yy2arr2620 { + yysep2758 := !z.EncBinary() + yy2arr2758 := z.EncBasicHandle().StructToArray + var yyq2758 [3]bool + _, _, _ = yysep2758, yyq2758, yy2arr2758 + const yyr2758 bool = false + yyq2758[0] = len(x.Addresses) != 0 + yyq2758[1] = len(x.NotReadyAddresses) != 0 + yyq2758[2] = len(x.Ports) != 0 + var yynn2758 int + if yyr2758 || yy2arr2758 { r.EncodeArrayStart(3) } else { - yynn2620 = 0 - for _, b := range yyq2620 { + yynn2758 = 0 + for _, b := range yyq2758 { if b { - yynn2620++ + yynn2758++ } } - r.EncodeMapStart(yynn2620) - yynn2620 = 0 + r.EncodeMapStart(yynn2758) + yynn2758 = 0 } - if yyr2620 || yy2arr2620 { + if yyr2758 || yy2arr2758 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2620[0] { + if yyq2758[0] { if x.Addresses == nil { r.EncodeNil() } else { - yym2622 := z.EncBinary() - _ = yym2622 + yym2760 := z.EncBinary() + _ = yym2760 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) @@ -34014,15 +35710,15 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2620[0] { + if yyq2758[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { - yym2623 := z.EncBinary() - _ = yym2623 + yym2761 := z.EncBinary() + _ = yym2761 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) @@ -34030,14 +35726,14 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2620 || yy2arr2620 { + if yyr2758 || yy2arr2758 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2620[1] { + if yyq2758[1] { if x.NotReadyAddresses == nil { r.EncodeNil() } else { - yym2625 := z.EncBinary() - _ = yym2625 + yym2763 := z.EncBinary() + _ = yym2763 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) @@ -34047,15 +35743,15 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2620[1] { + if yyq2758[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("notReadyAddresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { - yym2626 := z.EncBinary() - _ = yym2626 + yym2764 := z.EncBinary() + _ = yym2764 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) @@ -34063,14 +35759,14 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2620 || yy2arr2620 { + if yyr2758 || yy2arr2758 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2620[2] { + if yyq2758[2] { if x.Ports == nil { r.EncodeNil() } else { - yym2628 := z.EncBinary() - _ = yym2628 + yym2766 := z.EncBinary() + _ = yym2766 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) @@ -34080,15 +35776,15 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2620[2] { + if yyq2758[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { - yym2629 := z.EncBinary() - _ = yym2629 + yym2767 := z.EncBinary() + _ = yym2767 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) @@ -34096,7 +35792,7 @@ func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2620 || yy2arr2620 { + if yyr2758 || yy2arr2758 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34109,25 +35805,25 @@ func (x *EndpointSubset) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2630 := z.DecBinary() - _ = yym2630 + yym2768 := z.DecBinary() + _ = yym2768 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2631 := r.ContainerType() - if yyct2631 == codecSelferValueTypeMap1234 { - yyl2631 := r.ReadMapStart() - if yyl2631 == 0 { + yyct2769 := r.ContainerType() + if yyct2769 == codecSelferValueTypeMap1234 { + yyl2769 := r.ReadMapStart() + if yyl2769 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2631, d) + x.codecDecodeSelfFromMap(yyl2769, d) } - } else if yyct2631 == codecSelferValueTypeArray1234 { - yyl2631 := r.ReadArrayStart() - if yyl2631 == 0 { + } else if yyct2769 == codecSelferValueTypeArray1234 { + yyl2769 := r.ReadArrayStart() + if yyl2769 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2631, d) + x.codecDecodeSelfFromArray(yyl2769, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34139,12 +35835,12 @@ func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2632Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2632Slc - var yyhl2632 bool = l >= 0 - for yyj2632 := 0; ; yyj2632++ { - if yyhl2632 { - if yyj2632 >= l { + var yys2770Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2770Slc + var yyhl2770 bool = l >= 0 + for yyj2770 := 0; ; yyj2770++ { + if yyhl2770 { + if yyj2770 >= l { break } } else { @@ -34153,50 +35849,50 @@ func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2632Slc = r.DecodeBytes(yys2632Slc, true, true) - yys2632 := string(yys2632Slc) + yys2770Slc = r.DecodeBytes(yys2770Slc, true, true) + yys2770 := string(yys2770Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2632 { + switch yys2770 { case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv2633 := &x.Addresses - yym2634 := z.DecBinary() - _ = yym2634 + yyv2771 := &x.Addresses + yym2772 := z.DecBinary() + _ = yym2772 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2633), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2771), d) } } case "notReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { - yyv2635 := &x.NotReadyAddresses - yym2636 := z.DecBinary() - _ = yym2636 + yyv2773 := &x.NotReadyAddresses + yym2774 := z.DecBinary() + _ = yym2774 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2635), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2773), d) } } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2637 := &x.Ports - yym2638 := z.DecBinary() - _ = yym2638 + yyv2775 := &x.Ports + yym2776 := z.DecBinary() + _ = yym2776 if false { } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv2637), d) + h.decSliceEndpointPort((*[]EndpointPort)(yyv2775), d) } } default: - z.DecStructFieldNotFound(-1, yys2632) - } // end switch yys2632 - } // end for yyj2632 + z.DecStructFieldNotFound(-1, yys2770) + } // end switch yys2770 + } // end for yyj2770 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34204,16 +35900,16 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2639 int - var yyb2639 bool - var yyhl2639 bool = l >= 0 - yyj2639++ - if yyhl2639 { - yyb2639 = yyj2639 > l + var yyj2777 int + var yyb2777 bool + var yyhl2777 bool = l >= 0 + yyj2777++ + if yyhl2777 { + yyb2777 = yyj2777 > l } else { - yyb2639 = r.CheckBreak() + yyb2777 = r.CheckBreak() } - if yyb2639 { + if yyb2777 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34221,21 +35917,21 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv2640 := &x.Addresses - yym2641 := z.DecBinary() - _ = yym2641 + yyv2778 := &x.Addresses + yym2779 := z.DecBinary() + _ = yym2779 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2640), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2778), d) } } - yyj2639++ - if yyhl2639 { - yyb2639 = yyj2639 > l + yyj2777++ + if yyhl2777 { + yyb2777 = yyj2777 > l } else { - yyb2639 = r.CheckBreak() + yyb2777 = r.CheckBreak() } - if yyb2639 { + if yyb2777 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34243,21 +35939,21 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { - yyv2642 := &x.NotReadyAddresses - yym2643 := z.DecBinary() - _ = yym2643 + yyv2780 := &x.NotReadyAddresses + yym2781 := z.DecBinary() + _ = yym2781 if false { } else { - h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2642), d) + h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2780), d) } } - yyj2639++ - if yyhl2639 { - yyb2639 = yyj2639 > l + yyj2777++ + if yyhl2777 { + yyb2777 = yyj2777 > l } else { - yyb2639 = r.CheckBreak() + yyb2777 = r.CheckBreak() } - if yyb2639 { + if yyb2777 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34265,26 +35961,26 @@ func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv2644 := &x.Ports - yym2645 := z.DecBinary() - _ = yym2645 + yyv2782 := &x.Ports + yym2783 := z.DecBinary() + _ = yym2783 if false { } else { - h.decSliceEndpointPort((*[]EndpointPort)(yyv2644), d) + h.decSliceEndpointPort((*[]EndpointPort)(yyv2782), d) } } for { - yyj2639++ - if yyhl2639 { - yyb2639 = yyj2639 > l + yyj2777++ + if yyhl2777 { + yyb2777 = yyj2777 > l } else { - yyb2639 = r.CheckBreak() + yyb2777 = r.CheckBreak() } - if yyb2639 { + if yyb2777 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2639-1, "") + z.DecStructFieldNotFound(yyj2777-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34296,36 +35992,36 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2646 := z.EncBinary() - _ = yym2646 + yym2784 := z.EncBinary() + _ = yym2784 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2647 := !z.EncBinary() - yy2arr2647 := z.EncBasicHandle().StructToArray - var yyq2647 [4]bool - _, _, _ = yysep2647, yyq2647, yy2arr2647 - const yyr2647 bool = false - yyq2647[1] = x.Hostname != "" - yyq2647[2] = x.NodeName != nil - yyq2647[3] = x.TargetRef != nil - var yynn2647 int - if yyr2647 || yy2arr2647 { + yysep2785 := !z.EncBinary() + yy2arr2785 := z.EncBasicHandle().StructToArray + var yyq2785 [4]bool + _, _, _ = yysep2785, yyq2785, yy2arr2785 + const yyr2785 bool = false + yyq2785[1] = x.Hostname != "" + yyq2785[2] = x.NodeName != nil + yyq2785[3] = x.TargetRef != nil + var yynn2785 int + if yyr2785 || yy2arr2785 { r.EncodeArrayStart(4) } else { - yynn2647 = 1 - for _, b := range yyq2647 { + yynn2785 = 1 + for _, b := range yyq2785 { if b { - yynn2647++ + yynn2785++ } } - r.EncodeMapStart(yynn2647) - yynn2647 = 0 + r.EncodeMapStart(yynn2785) + yynn2785 = 0 } - if yyr2647 || yy2arr2647 { + if yyr2785 || yy2arr2785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2649 := z.EncBinary() - _ = yym2649 + yym2787 := z.EncBinary() + _ = yym2787 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) @@ -34334,18 +36030,18 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2650 := z.EncBinary() - _ = yym2650 + yym2788 := z.EncBinary() + _ = yym2788 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } - if yyr2647 || yy2arr2647 { + if yyr2785 || yy2arr2785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2647[1] { - yym2652 := z.EncBinary() - _ = yym2652 + if yyq2785[1] { + yym2790 := z.EncBinary() + _ = yym2790 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) @@ -34354,56 +36050,56 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2647[1] { + if yyq2785[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2653 := z.EncBinary() - _ = yym2653 + yym2791 := z.EncBinary() + _ = yym2791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } - if yyr2647 || yy2arr2647 { + if yyr2785 || yy2arr2785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2647[2] { + if yyq2785[2] { if x.NodeName == nil { r.EncodeNil() } else { - yy2655 := *x.NodeName - yym2656 := z.EncBinary() - _ = yym2656 + yy2793 := *x.NodeName + yym2794 := z.EncBinary() + _ = yym2794 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy2655)) + r.EncodeString(codecSelferC_UTF81234, string(yy2793)) } } } else { r.EncodeNil() } } else { - if yyq2647[2] { + if yyq2785[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeName == nil { r.EncodeNil() } else { - yy2657 := *x.NodeName - yym2658 := z.EncBinary() - _ = yym2658 + yy2795 := *x.NodeName + yym2796 := z.EncBinary() + _ = yym2796 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy2657)) + r.EncodeString(codecSelferC_UTF81234, string(yy2795)) } } } } - if yyr2647 || yy2arr2647 { + if yyr2785 || yy2arr2785 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2647[3] { + if yyq2785[3] { if x.TargetRef == nil { r.EncodeNil() } else { @@ -34413,7 +36109,7 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2647[3] { + if yyq2785[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -34424,7 +36120,7 @@ func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2647 || yy2arr2647 { + if yyr2785 || yy2arr2785 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34437,25 +36133,25 @@ func (x *EndpointAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2660 := z.DecBinary() - _ = yym2660 + yym2798 := z.DecBinary() + _ = yym2798 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2661 := r.ContainerType() - if yyct2661 == codecSelferValueTypeMap1234 { - yyl2661 := r.ReadMapStart() - if yyl2661 == 0 { + yyct2799 := r.ContainerType() + if yyct2799 == codecSelferValueTypeMap1234 { + yyl2799 := r.ReadMapStart() + if yyl2799 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2661, d) + x.codecDecodeSelfFromMap(yyl2799, d) } - } else if yyct2661 == codecSelferValueTypeArray1234 { - yyl2661 := r.ReadArrayStart() - if yyl2661 == 0 { + } else if yyct2799 == codecSelferValueTypeArray1234 { + yyl2799 := r.ReadArrayStart() + if yyl2799 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2661, d) + x.codecDecodeSelfFromArray(yyl2799, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34467,12 +36163,12 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2662Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2662Slc - var yyhl2662 bool = l >= 0 - for yyj2662 := 0; ; yyj2662++ { - if yyhl2662 { - if yyj2662 >= l { + var yys2800Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2800Slc + var yyhl2800 bool = l >= 0 + for yyj2800 := 0; ; yyj2800++ { + if yyhl2800 { + if yyj2800 >= l { break } } else { @@ -34481,10 +36177,10 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2662Slc = r.DecodeBytes(yys2662Slc, true, true) - yys2662 := string(yys2662Slc) + yys2800Slc = r.DecodeBytes(yys2800Slc, true, true) + yys2800 := string(yys2800Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2662 { + switch yys2800 { case "ip": if r.TryDecodeAsNil() { x.IP = "" @@ -34506,8 +36202,8 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.NodeName == nil { x.NodeName = new(string) } - yym2666 := z.DecBinary() - _ = yym2666 + yym2804 := z.DecBinary() + _ = yym2804 if false { } else { *((*string)(x.NodeName)) = r.DecodeString() @@ -34525,9 +36221,9 @@ func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.TargetRef.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2662) - } // end switch yys2662 - } // end for yyj2662 + z.DecStructFieldNotFound(-1, yys2800) + } // end switch yys2800 + } // end for yyj2800 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34535,16 +36231,16 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2668 int - var yyb2668 bool - var yyhl2668 bool = l >= 0 - yyj2668++ - if yyhl2668 { - yyb2668 = yyj2668 > l + var yyj2806 int + var yyb2806 bool + var yyhl2806 bool = l >= 0 + yyj2806++ + if yyhl2806 { + yyb2806 = yyj2806 > l } else { - yyb2668 = r.CheckBreak() + yyb2806 = r.CheckBreak() } - if yyb2668 { + if yyb2806 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34554,13 +36250,13 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.IP = string(r.DecodeString()) } - yyj2668++ - if yyhl2668 { - yyb2668 = yyj2668 > l + yyj2806++ + if yyhl2806 { + yyb2806 = yyj2806 > l } else { - yyb2668 = r.CheckBreak() + yyb2806 = r.CheckBreak() } - if yyb2668 { + if yyb2806 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34570,13 +36266,13 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Hostname = string(r.DecodeString()) } - yyj2668++ - if yyhl2668 { - yyb2668 = yyj2668 > l + yyj2806++ + if yyhl2806 { + yyb2806 = yyj2806 > l } else { - yyb2668 = r.CheckBreak() + yyb2806 = r.CheckBreak() } - if yyb2668 { + if yyb2806 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34589,20 +36285,20 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if x.NodeName == nil { x.NodeName = new(string) } - yym2672 := z.DecBinary() - _ = yym2672 + yym2810 := z.DecBinary() + _ = yym2810 if false { } else { *((*string)(x.NodeName)) = r.DecodeString() } } - yyj2668++ - if yyhl2668 { - yyb2668 = yyj2668 > l + yyj2806++ + if yyhl2806 { + yyb2806 = yyj2806 > l } else { - yyb2668 = r.CheckBreak() + yyb2806 = r.CheckBreak() } - if yyb2668 { + if yyb2806 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34618,17 +36314,17 @@ func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.TargetRef.CodecDecodeSelf(d) } for { - yyj2668++ - if yyhl2668 { - yyb2668 = yyj2668 > l + yyj2806++ + if yyhl2806 { + yyb2806 = yyj2806 > l } else { - yyb2668 = r.CheckBreak() + yyb2806 = r.CheckBreak() } - if yyb2668 { + if yyb2806 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2668-1, "") + z.DecStructFieldNotFound(yyj2806-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34640,36 +36336,36 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2674 := z.EncBinary() - _ = yym2674 + yym2812 := z.EncBinary() + _ = yym2812 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2675 := !z.EncBinary() - yy2arr2675 := z.EncBasicHandle().StructToArray - var yyq2675 [3]bool - _, _, _ = yysep2675, yyq2675, yy2arr2675 - const yyr2675 bool = false - yyq2675[0] = x.Name != "" - yyq2675[2] = x.Protocol != "" - var yynn2675 int - if yyr2675 || yy2arr2675 { + yysep2813 := !z.EncBinary() + yy2arr2813 := z.EncBasicHandle().StructToArray + var yyq2813 [3]bool + _, _, _ = yysep2813, yyq2813, yy2arr2813 + const yyr2813 bool = false + yyq2813[0] = x.Name != "" + yyq2813[2] = x.Protocol != "" + var yynn2813 int + if yyr2813 || yy2arr2813 { r.EncodeArrayStart(3) } else { - yynn2675 = 1 - for _, b := range yyq2675 { + yynn2813 = 1 + for _, b := range yyq2813 { if b { - yynn2675++ + yynn2813++ } } - r.EncodeMapStart(yynn2675) - yynn2675 = 0 + r.EncodeMapStart(yynn2813) + yynn2813 = 0 } - if yyr2675 || yy2arr2675 { + if yyr2813 || yy2arr2813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2675[0] { - yym2677 := z.EncBinary() - _ = yym2677 + if yyq2813[0] { + yym2815 := z.EncBinary() + _ = yym2815 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -34678,22 +36374,22 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2675[0] { + if yyq2813[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2678 := z.EncBinary() - _ = yym2678 + yym2816 := z.EncBinary() + _ = yym2816 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr2675 || yy2arr2675 { + if yyr2813 || yy2arr2813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2680 := z.EncBinary() - _ = yym2680 + yym2818 := z.EncBinary() + _ = yym2818 if false { } else { r.EncodeInt(int64(x.Port)) @@ -34702,29 +36398,29 @@ func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2681 := z.EncBinary() - _ = yym2681 + yym2819 := z.EncBinary() + _ = yym2819 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2675 || yy2arr2675 { + if yyr2813 || yy2arr2813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2675[2] { + if yyq2813[2] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2675[2] { + if yyq2813[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } - if yyr2675 || yy2arr2675 { + if yyr2813 || yy2arr2813 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -34737,25 +36433,25 @@ func (x *EndpointPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2683 := z.DecBinary() - _ = yym2683 + yym2821 := z.DecBinary() + _ = yym2821 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2684 := r.ContainerType() - if yyct2684 == codecSelferValueTypeMap1234 { - yyl2684 := r.ReadMapStart() - if yyl2684 == 0 { + yyct2822 := r.ContainerType() + if yyct2822 == codecSelferValueTypeMap1234 { + yyl2822 := r.ReadMapStart() + if yyl2822 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2684, d) + x.codecDecodeSelfFromMap(yyl2822, d) } - } else if yyct2684 == codecSelferValueTypeArray1234 { - yyl2684 := r.ReadArrayStart() - if yyl2684 == 0 { + } else if yyct2822 == codecSelferValueTypeArray1234 { + yyl2822 := r.ReadArrayStart() + if yyl2822 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2684, d) + x.codecDecodeSelfFromArray(yyl2822, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -34767,12 +36463,12 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2685Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2685Slc - var yyhl2685 bool = l >= 0 - for yyj2685 := 0; ; yyj2685++ { - if yyhl2685 { - if yyj2685 >= l { + var yys2823Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2823Slc + var yyhl2823 bool = l >= 0 + for yyj2823 := 0; ; yyj2823++ { + if yyhl2823 { + if yyj2823 >= l { break } } else { @@ -34781,10 +36477,10 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2685Slc = r.DecodeBytes(yys2685Slc, true, true) - yys2685 := string(yys2685Slc) + yys2823Slc = r.DecodeBytes(yys2823Slc, true, true) + yys2823 := string(yys2823Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2685 { + switch yys2823 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -34804,9 +36500,9 @@ func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Protocol = Protocol(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2685) - } // end switch yys2685 - } // end for yyj2685 + z.DecStructFieldNotFound(-1, yys2823) + } // end switch yys2823 + } // end for yyj2823 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -34814,16 +36510,16 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2689 int - var yyb2689 bool - var yyhl2689 bool = l >= 0 - yyj2689++ - if yyhl2689 { - yyb2689 = yyj2689 > l + var yyj2827 int + var yyb2827 bool + var yyhl2827 bool = l >= 0 + yyj2827++ + if yyhl2827 { + yyb2827 = yyj2827 > l } else { - yyb2689 = r.CheckBreak() + yyb2827 = r.CheckBreak() } - if yyb2689 { + if yyb2827 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34833,13 +36529,13 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj2689++ - if yyhl2689 { - yyb2689 = yyj2689 > l + yyj2827++ + if yyhl2827 { + yyb2827 = yyj2827 > l } else { - yyb2689 = r.CheckBreak() + yyb2827 = r.CheckBreak() } - if yyb2689 { + if yyb2827 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34849,13 +36545,13 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Port = int32(r.DecodeInt(32)) } - yyj2689++ - if yyhl2689 { - yyb2689 = yyj2689 > l + yyj2827++ + if yyhl2827 { + yyb2827 = yyj2827 > l } else { - yyb2689 = r.CheckBreak() + yyb2827 = r.CheckBreak() } - if yyb2689 { + if yyb2827 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -34866,17 +36562,17 @@ func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Protocol = Protocol(r.DecodeString()) } for { - yyj2689++ - if yyhl2689 { - yyb2689 = yyj2689 > l + yyj2827++ + if yyhl2827 { + yyb2827 = yyj2827 > l } else { - yyb2689 = r.CheckBreak() + yyb2827 = r.CheckBreak() } - if yyb2689 { + if yyb2827 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2689-1, "") + z.DecStructFieldNotFound(yyj2827-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -34888,37 +36584,37 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2693 := z.EncBinary() - _ = yym2693 + yym2831 := z.EncBinary() + _ = yym2831 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2694 := !z.EncBinary() - yy2arr2694 := z.EncBasicHandle().StructToArray - var yyq2694 [4]bool - _, _, _ = yysep2694, yyq2694, yy2arr2694 - const yyr2694 bool = false - yyq2694[0] = x.Kind != "" - yyq2694[1] = x.APIVersion != "" - yyq2694[2] = true - var yynn2694 int - if yyr2694 || yy2arr2694 { + yysep2832 := !z.EncBinary() + yy2arr2832 := z.EncBasicHandle().StructToArray + var yyq2832 [4]bool + _, _, _ = yysep2832, yyq2832, yy2arr2832 + const yyr2832 bool = false + yyq2832[0] = x.Kind != "" + yyq2832[1] = x.APIVersion != "" + yyq2832[2] = true + var yynn2832 int + if yyr2832 || yy2arr2832 { r.EncodeArrayStart(4) } else { - yynn2694 = 1 - for _, b := range yyq2694 { + yynn2832 = 1 + for _, b := range yyq2832 { if b { - yynn2694++ + yynn2832++ } } - r.EncodeMapStart(yynn2694) - yynn2694 = 0 + r.EncodeMapStart(yynn2832) + yynn2832 = 0 } - if yyr2694 || yy2arr2694 { + if yyr2832 || yy2arr2832 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2694[0] { - yym2696 := z.EncBinary() - _ = yym2696 + if yyq2832[0] { + yym2834 := z.EncBinary() + _ = yym2834 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -34927,23 +36623,23 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2694[0] { + if yyq2832[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2697 := z.EncBinary() - _ = yym2697 + yym2835 := z.EncBinary() + _ = yym2835 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr2694 || yy2arr2694 { + if yyr2832 || yy2arr2832 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2694[1] { - yym2699 := z.EncBinary() - _ = yym2699 + if yyq2832[1] { + yym2837 := z.EncBinary() + _ = yym2837 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -34952,54 +36648,54 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2694[1] { + if yyq2832[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2700 := z.EncBinary() - _ = yym2700 + yym2838 := z.EncBinary() + _ = yym2838 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr2694 || yy2arr2694 { + if yyr2832 || yy2arr2832 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2694[2] { - yy2702 := &x.ListMeta - yym2703 := z.EncBinary() - _ = yym2703 + if yyq2832[2] { + yy2840 := &x.ListMeta + yym2841 := z.EncBinary() + _ = yym2841 if false { - } else if z.HasExtensions() && z.EncExt(yy2702) { + } else if z.HasExtensions() && z.EncExt(yy2840) { } else { - z.EncFallback(yy2702) + z.EncFallback(yy2840) } } else { r.EncodeNil() } } else { - if yyq2694[2] { + if yyq2832[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2704 := &x.ListMeta - yym2705 := z.EncBinary() - _ = yym2705 + yy2842 := &x.ListMeta + yym2843 := z.EncBinary() + _ = yym2843 if false { - } else if z.HasExtensions() && z.EncExt(yy2704) { + } else if z.HasExtensions() && z.EncExt(yy2842) { } else { - z.EncFallback(yy2704) + z.EncFallback(yy2842) } } } - if yyr2694 || yy2arr2694 { + if yyr2832 || yy2arr2832 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym2707 := z.EncBinary() - _ = yym2707 + yym2845 := z.EncBinary() + _ = yym2845 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) @@ -35012,15 +36708,15 @@ func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym2708 := z.EncBinary() - _ = yym2708 + yym2846 := z.EncBinary() + _ = yym2846 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } - if yyr2694 || yy2arr2694 { + if yyr2832 || yy2arr2832 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35033,25 +36729,25 @@ func (x *EndpointsList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2709 := z.DecBinary() - _ = yym2709 + yym2847 := z.DecBinary() + _ = yym2847 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2710 := r.ContainerType() - if yyct2710 == codecSelferValueTypeMap1234 { - yyl2710 := r.ReadMapStart() - if yyl2710 == 0 { + yyct2848 := r.ContainerType() + if yyct2848 == codecSelferValueTypeMap1234 { + yyl2848 := r.ReadMapStart() + if yyl2848 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2710, d) + x.codecDecodeSelfFromMap(yyl2848, d) } - } else if yyct2710 == codecSelferValueTypeArray1234 { - yyl2710 := r.ReadArrayStart() - if yyl2710 == 0 { + } else if yyct2848 == codecSelferValueTypeArray1234 { + yyl2848 := r.ReadArrayStart() + if yyl2848 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2710, d) + x.codecDecodeSelfFromArray(yyl2848, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35063,12 +36759,12 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2711Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2711Slc - var yyhl2711 bool = l >= 0 - for yyj2711 := 0; ; yyj2711++ { - if yyhl2711 { - if yyj2711 >= l { + var yys2849Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2849Slc + var yyhl2849 bool = l >= 0 + for yyj2849 := 0; ; yyj2849++ { + if yyhl2849 { + if yyj2849 >= l { break } } else { @@ -35077,10 +36773,10 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2711Slc = r.DecodeBytes(yys2711Slc, true, true) - yys2711 := string(yys2711Slc) + yys2849Slc = r.DecodeBytes(yys2849Slc, true, true) + yys2849 := string(yys2849Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2711 { + switch yys2849 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -35097,31 +36793,31 @@ func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2714 := &x.ListMeta - yym2715 := z.DecBinary() - _ = yym2715 + yyv2852 := &x.ListMeta + yym2853 := z.DecBinary() + _ = yym2853 if false { - } else if z.HasExtensions() && z.DecExt(yyv2714) { + } else if z.HasExtensions() && z.DecExt(yyv2852) { } else { - z.DecFallback(yyv2714, false) + z.DecFallback(yyv2852, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2716 := &x.Items - yym2717 := z.DecBinary() - _ = yym2717 + yyv2854 := &x.Items + yym2855 := z.DecBinary() + _ = yym2855 if false { } else { - h.decSliceEndpoints((*[]Endpoints)(yyv2716), d) + h.decSliceEndpoints((*[]Endpoints)(yyv2854), d) } } default: - z.DecStructFieldNotFound(-1, yys2711) - } // end switch yys2711 - } // end for yyj2711 + z.DecStructFieldNotFound(-1, yys2849) + } // end switch yys2849 + } // end for yyj2849 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35129,16 +36825,16 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2718 int - var yyb2718 bool - var yyhl2718 bool = l >= 0 - yyj2718++ - if yyhl2718 { - yyb2718 = yyj2718 > l + var yyj2856 int + var yyb2856 bool + var yyhl2856 bool = l >= 0 + yyj2856++ + if yyhl2856 { + yyb2856 = yyj2856 > l } else { - yyb2718 = r.CheckBreak() + yyb2856 = r.CheckBreak() } - if yyb2718 { + if yyb2856 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35148,13 +36844,13 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj2718++ - if yyhl2718 { - yyb2718 = yyj2718 > l + yyj2856++ + if yyhl2856 { + yyb2856 = yyj2856 > l } else { - yyb2718 = r.CheckBreak() + yyb2856 = r.CheckBreak() } - if yyb2718 { + if yyb2856 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35164,13 +36860,13 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj2718++ - if yyhl2718 { - yyb2718 = yyj2718 > l + yyj2856++ + if yyhl2856 { + yyb2856 = yyj2856 > l } else { - yyb2718 = r.CheckBreak() + yyb2856 = r.CheckBreak() } - if yyb2718 { + if yyb2856 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35178,22 +36874,22 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv2721 := &x.ListMeta - yym2722 := z.DecBinary() - _ = yym2722 + yyv2859 := &x.ListMeta + yym2860 := z.DecBinary() + _ = yym2860 if false { - } else if z.HasExtensions() && z.DecExt(yyv2721) { + } else if z.HasExtensions() && z.DecExt(yyv2859) { } else { - z.DecFallback(yyv2721, false) + z.DecFallback(yyv2859, false) } } - yyj2718++ - if yyhl2718 { - yyb2718 = yyj2718 > l + yyj2856++ + if yyhl2856 { + yyb2856 = yyj2856 > l } else { - yyb2718 = r.CheckBreak() + yyb2856 = r.CheckBreak() } - if yyb2718 { + if yyb2856 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35201,26 +36897,26 @@ func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv2723 := &x.Items - yym2724 := z.DecBinary() - _ = yym2724 + yyv2861 := &x.Items + yym2862 := z.DecBinary() + _ = yym2862 if false { } else { - h.decSliceEndpoints((*[]Endpoints)(yyv2723), d) + h.decSliceEndpoints((*[]Endpoints)(yyv2861), d) } } for { - yyj2718++ - if yyhl2718 { - yyb2718 = yyj2718 > l + yyj2856++ + if yyhl2856 { + yyb2856 = yyj2856 > l } else { - yyb2718 = r.CheckBreak() + yyb2856 = r.CheckBreak() } - if yyb2718 { + if yyb2856 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2718-1, "") + z.DecStructFieldNotFound(yyj2856-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35232,38 +36928,38 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2725 := z.EncBinary() - _ = yym2725 + yym2863 := z.EncBinary() + _ = yym2863 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2726 := !z.EncBinary() - yy2arr2726 := z.EncBasicHandle().StructToArray - var yyq2726 [4]bool - _, _, _ = yysep2726, yyq2726, yy2arr2726 - const yyr2726 bool = false - yyq2726[0] = x.PodCIDR != "" - yyq2726[1] = x.ExternalID != "" - yyq2726[2] = x.ProviderID != "" - yyq2726[3] = x.Unschedulable != false - var yynn2726 int - if yyr2726 || yy2arr2726 { + yysep2864 := !z.EncBinary() + yy2arr2864 := z.EncBasicHandle().StructToArray + var yyq2864 [4]bool + _, _, _ = yysep2864, yyq2864, yy2arr2864 + const yyr2864 bool = false + yyq2864[0] = x.PodCIDR != "" + yyq2864[1] = x.ExternalID != "" + yyq2864[2] = x.ProviderID != "" + yyq2864[3] = x.Unschedulable != false + var yynn2864 int + if yyr2864 || yy2arr2864 { r.EncodeArrayStart(4) } else { - yynn2726 = 0 - for _, b := range yyq2726 { + yynn2864 = 0 + for _, b := range yyq2864 { if b { - yynn2726++ + yynn2864++ } } - r.EncodeMapStart(yynn2726) - yynn2726 = 0 + r.EncodeMapStart(yynn2864) + yynn2864 = 0 } - if yyr2726 || yy2arr2726 { + if yyr2864 || yy2arr2864 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2726[0] { - yym2728 := z.EncBinary() - _ = yym2728 + if yyq2864[0] { + yym2866 := z.EncBinary() + _ = yym2866 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) @@ -35272,23 +36968,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2726[0] { + if yyq2864[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2729 := z.EncBinary() - _ = yym2729 + yym2867 := z.EncBinary() + _ = yym2867 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } - if yyr2726 || yy2arr2726 { + if yyr2864 || yy2arr2864 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2726[1] { - yym2731 := z.EncBinary() - _ = yym2731 + if yyq2864[1] { + yym2869 := z.EncBinary() + _ = yym2869 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) @@ -35297,23 +36993,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2726[1] { + if yyq2864[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2732 := z.EncBinary() - _ = yym2732 + yym2870 := z.EncBinary() + _ = yym2870 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } - if yyr2726 || yy2arr2726 { + if yyr2864 || yy2arr2864 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2726[2] { - yym2734 := z.EncBinary() - _ = yym2734 + if yyq2864[2] { + yym2872 := z.EncBinary() + _ = yym2872 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) @@ -35322,23 +37018,23 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2726[2] { + if yyq2864[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2735 := z.EncBinary() - _ = yym2735 + yym2873 := z.EncBinary() + _ = yym2873 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } - if yyr2726 || yy2arr2726 { + if yyr2864 || yy2arr2864 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2726[3] { - yym2737 := z.EncBinary() - _ = yym2737 + if yyq2864[3] { + yym2875 := z.EncBinary() + _ = yym2875 if false { } else { r.EncodeBool(bool(x.Unschedulable)) @@ -35347,19 +37043,19 @@ func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq2726[3] { + if yyq2864[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2738 := z.EncBinary() - _ = yym2738 + yym2876 := z.EncBinary() + _ = yym2876 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } - if yyr2726 || yy2arr2726 { + if yyr2864 || yy2arr2864 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35372,25 +37068,25 @@ func (x *NodeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2739 := z.DecBinary() - _ = yym2739 + yym2877 := z.DecBinary() + _ = yym2877 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2740 := r.ContainerType() - if yyct2740 == codecSelferValueTypeMap1234 { - yyl2740 := r.ReadMapStart() - if yyl2740 == 0 { + yyct2878 := r.ContainerType() + if yyct2878 == codecSelferValueTypeMap1234 { + yyl2878 := r.ReadMapStart() + if yyl2878 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2740, d) + x.codecDecodeSelfFromMap(yyl2878, d) } - } else if yyct2740 == codecSelferValueTypeArray1234 { - yyl2740 := r.ReadArrayStart() - if yyl2740 == 0 { + } else if yyct2878 == codecSelferValueTypeArray1234 { + yyl2878 := r.ReadArrayStart() + if yyl2878 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2740, d) + x.codecDecodeSelfFromArray(yyl2878, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35402,12 +37098,12 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2741Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2741Slc - var yyhl2741 bool = l >= 0 - for yyj2741 := 0; ; yyj2741++ { - if yyhl2741 { - if yyj2741 >= l { + var yys2879Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2879Slc + var yyhl2879 bool = l >= 0 + for yyj2879 := 0; ; yyj2879++ { + if yyhl2879 { + if yyj2879 >= l { break } } else { @@ -35416,10 +37112,10 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2741Slc = r.DecodeBytes(yys2741Slc, true, true) - yys2741 := string(yys2741Slc) + yys2879Slc = r.DecodeBytes(yys2879Slc, true, true) + yys2879 := string(yys2879Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2741 { + switch yys2879 { case "podCIDR": if r.TryDecodeAsNil() { x.PodCIDR = "" @@ -35445,9 +37141,9 @@ func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Unschedulable = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys2741) - } // end switch yys2741 - } // end for yyj2741 + z.DecStructFieldNotFound(-1, yys2879) + } // end switch yys2879 + } // end for yyj2879 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35455,16 +37151,16 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2746 int - var yyb2746 bool - var yyhl2746 bool = l >= 0 - yyj2746++ - if yyhl2746 { - yyb2746 = yyj2746 > l + var yyj2884 int + var yyb2884 bool + var yyhl2884 bool = l >= 0 + yyj2884++ + if yyhl2884 { + yyb2884 = yyj2884 > l } else { - yyb2746 = r.CheckBreak() + yyb2884 = r.CheckBreak() } - if yyb2746 { + if yyb2884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35474,13 +37170,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.PodCIDR = string(r.DecodeString()) } - yyj2746++ - if yyhl2746 { - yyb2746 = yyj2746 > l + yyj2884++ + if yyhl2884 { + yyb2884 = yyj2884 > l } else { - yyb2746 = r.CheckBreak() + yyb2884 = r.CheckBreak() } - if yyb2746 { + if yyb2884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35490,13 +37186,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ExternalID = string(r.DecodeString()) } - yyj2746++ - if yyhl2746 { - yyb2746 = yyj2746 > l + yyj2884++ + if yyhl2884 { + yyb2884 = yyj2884 > l } else { - yyb2746 = r.CheckBreak() + yyb2884 = r.CheckBreak() } - if yyb2746 { + if yyb2884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35506,13 +37202,13 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ProviderID = string(r.DecodeString()) } - yyj2746++ - if yyhl2746 { - yyb2746 = yyj2746 > l + yyj2884++ + if yyhl2884 { + yyb2884 = yyj2884 > l } else { - yyb2746 = r.CheckBreak() + yyb2884 = r.CheckBreak() } - if yyb2746 { + if yyb2884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35523,17 +37219,17 @@ func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Unschedulable = bool(r.DecodeBool()) } for { - yyj2746++ - if yyhl2746 { - yyb2746 = yyj2746 > l + yyj2884++ + if yyhl2884 { + yyb2884 = yyj2884 > l } else { - yyb2746 = r.CheckBreak() + yyb2884 = r.CheckBreak() } - if yyb2746 { + if yyb2884 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2746-1, "") + z.DecStructFieldNotFound(yyj2884-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35545,33 +37241,33 @@ func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2751 := z.EncBinary() - _ = yym2751 + yym2889 := z.EncBinary() + _ = yym2889 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2752 := !z.EncBinary() - yy2arr2752 := z.EncBasicHandle().StructToArray - var yyq2752 [1]bool - _, _, _ = yysep2752, yyq2752, yy2arr2752 - const yyr2752 bool = false - var yynn2752 int - if yyr2752 || yy2arr2752 { + yysep2890 := !z.EncBinary() + yy2arr2890 := z.EncBasicHandle().StructToArray + var yyq2890 [1]bool + _, _, _ = yysep2890, yyq2890, yy2arr2890 + const yyr2890 bool = false + var yynn2890 int + if yyr2890 || yy2arr2890 { r.EncodeArrayStart(1) } else { - yynn2752 = 1 - for _, b := range yyq2752 { + yynn2890 = 1 + for _, b := range yyq2890 { if b { - yynn2752++ + yynn2890++ } } - r.EncodeMapStart(yynn2752) - yynn2752 = 0 + r.EncodeMapStart(yynn2890) + yynn2890 = 0 } - if yyr2752 || yy2arr2752 { + if yyr2890 || yy2arr2890 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2754 := z.EncBinary() - _ = yym2754 + yym2892 := z.EncBinary() + _ = yym2892 if false { } else { r.EncodeInt(int64(x.Port)) @@ -35580,14 +37276,14 @@ func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2755 := z.EncBinary() - _ = yym2755 + yym2893 := z.EncBinary() + _ = yym2893 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr2752 || yy2arr2752 { + if yyr2890 || yy2arr2890 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35600,25 +37296,25 @@ func (x *DaemonEndpoint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2756 := z.DecBinary() - _ = yym2756 + yym2894 := z.DecBinary() + _ = yym2894 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2757 := r.ContainerType() - if yyct2757 == codecSelferValueTypeMap1234 { - yyl2757 := r.ReadMapStart() - if yyl2757 == 0 { + yyct2895 := r.ContainerType() + if yyct2895 == codecSelferValueTypeMap1234 { + yyl2895 := r.ReadMapStart() + if yyl2895 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2757, d) + x.codecDecodeSelfFromMap(yyl2895, d) } - } else if yyct2757 == codecSelferValueTypeArray1234 { - yyl2757 := r.ReadArrayStart() - if yyl2757 == 0 { + } else if yyct2895 == codecSelferValueTypeArray1234 { + yyl2895 := r.ReadArrayStart() + if yyl2895 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2757, d) + x.codecDecodeSelfFromArray(yyl2895, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35630,12 +37326,12 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2758Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2758Slc - var yyhl2758 bool = l >= 0 - for yyj2758 := 0; ; yyj2758++ { - if yyhl2758 { - if yyj2758 >= l { + var yys2896Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2896Slc + var yyhl2896 bool = l >= 0 + for yyj2896 := 0; ; yyj2896++ { + if yyhl2896 { + if yyj2896 >= l { break } } else { @@ -35644,10 +37340,10 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2758Slc = r.DecodeBytes(yys2758Slc, true, true) - yys2758 := string(yys2758Slc) + yys2896Slc = r.DecodeBytes(yys2896Slc, true, true) + yys2896 := string(yys2896Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2758 { + switch yys2896 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 @@ -35655,9 +37351,9 @@ func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Port = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys2758) - } // end switch yys2758 - } // end for yyj2758 + z.DecStructFieldNotFound(-1, yys2896) + } // end switch yys2896 + } // end for yyj2896 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35665,16 +37361,16 @@ func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2760 int - var yyb2760 bool - var yyhl2760 bool = l >= 0 - yyj2760++ - if yyhl2760 { - yyb2760 = yyj2760 > l + var yyj2898 int + var yyb2898 bool + var yyhl2898 bool = l >= 0 + yyj2898++ + if yyhl2898 { + yyb2898 = yyj2898 > l } else { - yyb2760 = r.CheckBreak() + yyb2898 = r.CheckBreak() } - if yyb2760 { + if yyb2898 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35685,17 +37381,17 @@ func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Port = int32(r.DecodeInt(32)) } for { - yyj2760++ - if yyhl2760 { - yyb2760 = yyj2760 > l + yyj2898++ + if yyhl2898 { + yyb2898 = yyj2898 > l } else { - yyb2760 = r.CheckBreak() + yyb2898 = r.CheckBreak() } - if yyb2760 { + if yyb2898 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2760-1, "") + z.DecStructFieldNotFound(yyj2898-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35707,48 +37403,48 @@ func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2762 := z.EncBinary() - _ = yym2762 + yym2900 := z.EncBinary() + _ = yym2900 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2763 := !z.EncBinary() - yy2arr2763 := z.EncBasicHandle().StructToArray - var yyq2763 [1]bool - _, _, _ = yysep2763, yyq2763, yy2arr2763 - const yyr2763 bool = false - yyq2763[0] = true - var yynn2763 int - if yyr2763 || yy2arr2763 { + yysep2901 := !z.EncBinary() + yy2arr2901 := z.EncBasicHandle().StructToArray + var yyq2901 [1]bool + _, _, _ = yysep2901, yyq2901, yy2arr2901 + const yyr2901 bool = false + yyq2901[0] = true + var yynn2901 int + if yyr2901 || yy2arr2901 { r.EncodeArrayStart(1) } else { - yynn2763 = 0 - for _, b := range yyq2763 { + yynn2901 = 0 + for _, b := range yyq2901 { if b { - yynn2763++ + yynn2901++ } } - r.EncodeMapStart(yynn2763) - yynn2763 = 0 + r.EncodeMapStart(yynn2901) + yynn2901 = 0 } - if yyr2763 || yy2arr2763 { + if yyr2901 || yy2arr2901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2763[0] { - yy2765 := &x.KubeletEndpoint - yy2765.CodecEncodeSelf(e) + if yyq2901[0] { + yy2903 := &x.KubeletEndpoint + yy2903.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2763[0] { + if yyq2901[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2766 := &x.KubeletEndpoint - yy2766.CodecEncodeSelf(e) + yy2904 := &x.KubeletEndpoint + yy2904.CodecEncodeSelf(e) } } - if yyr2763 || yy2arr2763 { + if yyr2901 || yy2arr2901 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -35761,25 +37457,25 @@ func (x *NodeDaemonEndpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2767 := z.DecBinary() - _ = yym2767 + yym2905 := z.DecBinary() + _ = yym2905 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2768 := r.ContainerType() - if yyct2768 == codecSelferValueTypeMap1234 { - yyl2768 := r.ReadMapStart() - if yyl2768 == 0 { + yyct2906 := r.ContainerType() + if yyct2906 == codecSelferValueTypeMap1234 { + yyl2906 := r.ReadMapStart() + if yyl2906 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2768, d) + x.codecDecodeSelfFromMap(yyl2906, d) } - } else if yyct2768 == codecSelferValueTypeArray1234 { - yyl2768 := r.ReadArrayStart() - if yyl2768 == 0 { + } else if yyct2906 == codecSelferValueTypeArray1234 { + yyl2906 := r.ReadArrayStart() + if yyl2906 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2768, d) + x.codecDecodeSelfFromArray(yyl2906, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -35791,12 +37487,12 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2769Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2769Slc - var yyhl2769 bool = l >= 0 - for yyj2769 := 0; ; yyj2769++ { - if yyhl2769 { - if yyj2769 >= l { + var yys2907Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2907Slc + var yyhl2907 bool = l >= 0 + for yyj2907 := 0; ; yyj2907++ { + if yyhl2907 { + if yyj2907 >= l { break } } else { @@ -35805,21 +37501,21 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2769Slc = r.DecodeBytes(yys2769Slc, true, true) - yys2769 := string(yys2769Slc) + yys2907Slc = r.DecodeBytes(yys2907Slc, true, true) + yys2907 := string(yys2907Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2769 { + switch yys2907 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { - yyv2770 := &x.KubeletEndpoint - yyv2770.CodecDecodeSelf(d) + yyv2908 := &x.KubeletEndpoint + yyv2908.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2769) - } // end switch yys2769 - } // end for yyj2769 + z.DecStructFieldNotFound(-1, yys2907) + } // end switch yys2907 + } // end for yyj2907 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -35827,16 +37523,16 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2771 int - var yyb2771 bool - var yyhl2771 bool = l >= 0 - yyj2771++ - if yyhl2771 { - yyb2771 = yyj2771 > l + var yyj2909 int + var yyb2909 bool + var yyhl2909 bool = l >= 0 + yyj2909++ + if yyhl2909 { + yyb2909 = yyj2909 > l } else { - yyb2771 = r.CheckBreak() + yyb2909 = r.CheckBreak() } - if yyb2771 { + if yyb2909 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -35844,21 +37540,21 @@ func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { - yyv2772 := &x.KubeletEndpoint - yyv2772.CodecDecodeSelf(d) + yyv2910 := &x.KubeletEndpoint + yyv2910.CodecDecodeSelf(d) } for { - yyj2771++ - if yyhl2771 { - yyb2771 = yyj2771 > l + yyj2909++ + if yyhl2909 { + yyb2909 = yyj2909 > l } else { - yyb2771 = r.CheckBreak() + yyb2909 = r.CheckBreak() } - if yyb2771 { + if yyb2909 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2771-1, "") + z.DecStructFieldNotFound(yyj2909-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -35870,33 +37566,33 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2773 := z.EncBinary() - _ = yym2773 + yym2911 := z.EncBinary() + _ = yym2911 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2774 := !z.EncBinary() - yy2arr2774 := z.EncBasicHandle().StructToArray - var yyq2774 [10]bool - _, _, _ = yysep2774, yyq2774, yy2arr2774 - const yyr2774 bool = false - var yynn2774 int - if yyr2774 || yy2arr2774 { + yysep2912 := !z.EncBinary() + yy2arr2912 := z.EncBasicHandle().StructToArray + var yyq2912 [10]bool + _, _, _ = yysep2912, yyq2912, yy2arr2912 + const yyr2912 bool = false + var yynn2912 int + if yyr2912 || yy2arr2912 { r.EncodeArrayStart(10) } else { - yynn2774 = 10 - for _, b := range yyq2774 { + yynn2912 = 10 + for _, b := range yyq2912 { if b { - yynn2774++ + yynn2912++ } } - r.EncodeMapStart(yynn2774) - yynn2774 = 0 + r.EncodeMapStart(yynn2912) + yynn2912 = 0 } - if yyr2774 || yy2arr2774 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2776 := z.EncBinary() - _ = yym2776 + yym2914 := z.EncBinary() + _ = yym2914 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) @@ -35905,17 +37601,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("machineID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2777 := z.EncBinary() - _ = yym2777 + yym2915 := z.EncBinary() + _ = yym2915 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } - if yyr2774 || yy2arr2774 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2779 := z.EncBinary() - _ = yym2779 + yym2917 := z.EncBinary() + _ = yym2917 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) @@ -35924,17 +37620,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("systemUUID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2780 := z.EncBinary() - _ = yym2780 + yym2918 := z.EncBinary() + _ = yym2918 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } - if yyr2774 || yy2arr2774 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2782 := z.EncBinary() - _ = yym2782 + yym2920 := z.EncBinary() + _ = yym2920 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) @@ -35943,17 +37639,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("bootID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2783 := z.EncBinary() - _ = yym2783 + yym2921 := z.EncBinary() + _ = yym2921 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } - if yyr2774 || yy2arr2774 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2785 := z.EncBinary() - _ = yym2785 + yym2923 := z.EncBinary() + _ = yym2923 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) @@ -35962,17 +37658,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kernelVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2786 := z.EncBinary() - _ = yym2786 + yym2924 := z.EncBinary() + _ = yym2924 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } - if yyr2774 || yy2arr2774 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2788 := z.EncBinary() - _ = yym2788 + yym2926 := z.EncBinary() + _ = yym2926 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) @@ -35981,17 +37677,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("osImage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2789 := z.EncBinary() - _ = yym2789 + yym2927 := z.EncBinary() + _ = yym2927 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) } } - if yyr2774 || yy2arr2774 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2791 := z.EncBinary() - _ = yym2791 + yym2929 := z.EncBinary() + _ = yym2929 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) @@ -36000,17 +37696,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerRuntimeVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2792 := z.EncBinary() - _ = yym2792 + yym2930 := z.EncBinary() + _ = yym2930 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } - if yyr2774 || yy2arr2774 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2794 := z.EncBinary() - _ = yym2794 + yym2932 := z.EncBinary() + _ = yym2932 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) @@ -36019,17 +37715,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2795 := z.EncBinary() - _ = yym2795 + yym2933 := z.EncBinary() + _ = yym2933 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } - if yyr2774 || yy2arr2774 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2797 := z.EncBinary() - _ = yym2797 + yym2935 := z.EncBinary() + _ = yym2935 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) @@ -36038,17 +37734,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeProxyVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2798 := z.EncBinary() - _ = yym2798 + yym2936 := z.EncBinary() + _ = yym2936 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } - if yyr2774 || yy2arr2774 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2800 := z.EncBinary() - _ = yym2800 + yym2938 := z.EncBinary() + _ = yym2938 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) @@ -36057,17 +37753,17 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operatingSystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2801 := z.EncBinary() - _ = yym2801 + yym2939 := z.EncBinary() + _ = yym2939 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) } } - if yyr2774 || yy2arr2774 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2803 := z.EncBinary() - _ = yym2803 + yym2941 := z.EncBinary() + _ = yym2941 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) @@ -36076,14 +37772,14 @@ func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("architecture")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2804 := z.EncBinary() - _ = yym2804 + yym2942 := z.EncBinary() + _ = yym2942 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) } } - if yyr2774 || yy2arr2774 { + if yyr2912 || yy2arr2912 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36096,25 +37792,25 @@ func (x *NodeSystemInfo) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2805 := z.DecBinary() - _ = yym2805 + yym2943 := z.DecBinary() + _ = yym2943 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2806 := r.ContainerType() - if yyct2806 == codecSelferValueTypeMap1234 { - yyl2806 := r.ReadMapStart() - if yyl2806 == 0 { + yyct2944 := r.ContainerType() + if yyct2944 == codecSelferValueTypeMap1234 { + yyl2944 := r.ReadMapStart() + if yyl2944 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2806, d) + x.codecDecodeSelfFromMap(yyl2944, d) } - } else if yyct2806 == codecSelferValueTypeArray1234 { - yyl2806 := r.ReadArrayStart() - if yyl2806 == 0 { + } else if yyct2944 == codecSelferValueTypeArray1234 { + yyl2944 := r.ReadArrayStart() + if yyl2944 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2806, d) + x.codecDecodeSelfFromArray(yyl2944, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36126,12 +37822,12 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2807Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2807Slc - var yyhl2807 bool = l >= 0 - for yyj2807 := 0; ; yyj2807++ { - if yyhl2807 { - if yyj2807 >= l { + var yys2945Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2945Slc + var yyhl2945 bool = l >= 0 + for yyj2945 := 0; ; yyj2945++ { + if yyhl2945 { + if yyj2945 >= l { break } } else { @@ -36140,10 +37836,10 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2807Slc = r.DecodeBytes(yys2807Slc, true, true) - yys2807 := string(yys2807Slc) + yys2945Slc = r.DecodeBytes(yys2945Slc, true, true) + yys2945 := string(yys2945Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2807 { + switch yys2945 { case "machineID": if r.TryDecodeAsNil() { x.MachineID = "" @@ -36205,9 +37901,9 @@ func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Architecture = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2807) - } // end switch yys2807 - } // end for yyj2807 + z.DecStructFieldNotFound(-1, yys2945) + } // end switch yys2945 + } // end for yyj2945 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36215,16 +37911,16 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2818 int - var yyb2818 bool - var yyhl2818 bool = l >= 0 - yyj2818++ - if yyhl2818 { - yyb2818 = yyj2818 > l + var yyj2956 int + var yyb2956 bool + var yyhl2956 bool = l >= 0 + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb2818 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb2818 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36234,13 +37930,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.MachineID = string(r.DecodeString()) } - yyj2818++ - if yyhl2818 { - yyb2818 = yyj2818 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb2818 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb2818 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36250,13 +37946,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SystemUUID = string(r.DecodeString()) } - yyj2818++ - if yyhl2818 { - yyb2818 = yyj2818 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb2818 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb2818 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36266,13 +37962,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.BootID = string(r.DecodeString()) } - yyj2818++ - if yyhl2818 { - yyb2818 = yyj2818 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb2818 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb2818 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36282,13 +37978,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KernelVersion = string(r.DecodeString()) } - yyj2818++ - if yyhl2818 { - yyb2818 = yyj2818 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb2818 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb2818 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36298,13 +37994,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.OSImage = string(r.DecodeString()) } - yyj2818++ - if yyhl2818 { - yyb2818 = yyj2818 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb2818 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb2818 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36314,13 +38010,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } - yyj2818++ - if yyhl2818 { - yyb2818 = yyj2818 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb2818 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb2818 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36330,13 +38026,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KubeletVersion = string(r.DecodeString()) } - yyj2818++ - if yyhl2818 { - yyb2818 = yyj2818 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb2818 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb2818 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36346,13 +38042,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.KubeProxyVersion = string(r.DecodeString()) } - yyj2818++ - if yyhl2818 { - yyb2818 = yyj2818 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb2818 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb2818 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36362,13 +38058,13 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.OperatingSystem = string(r.DecodeString()) } - yyj2818++ - if yyhl2818 { - yyb2818 = yyj2818 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb2818 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb2818 { + if yyb2956 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36379,17 +38075,17 @@ func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Architecture = string(r.DecodeString()) } for { - yyj2818++ - if yyhl2818 { - yyb2818 = yyj2818 > l + yyj2956++ + if yyhl2956 { + yyb2956 = yyj2956 > l } else { - yyb2818 = r.CheckBreak() + yyb2956 = r.CheckBreak() } - if yyb2818 { + if yyb2956 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2818-1, "") + z.DecStructFieldNotFound(yyj2956-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -36401,42 +38097,42 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2829 := z.EncBinary() - _ = yym2829 + yym2967 := z.EncBinary() + _ = yym2967 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2830 := !z.EncBinary() - yy2arr2830 := z.EncBasicHandle().StructToArray - var yyq2830 [10]bool - _, _, _ = yysep2830, yyq2830, yy2arr2830 - const yyr2830 bool = false - yyq2830[0] = len(x.Capacity) != 0 - yyq2830[1] = len(x.Allocatable) != 0 - yyq2830[2] = x.Phase != "" - yyq2830[3] = len(x.Conditions) != 0 - yyq2830[4] = len(x.Addresses) != 0 - yyq2830[5] = true - yyq2830[6] = true - yyq2830[7] = len(x.Images) != 0 - yyq2830[8] = len(x.VolumesInUse) != 0 - yyq2830[9] = len(x.VolumesAttached) != 0 - var yynn2830 int - if yyr2830 || yy2arr2830 { + yysep2968 := !z.EncBinary() + yy2arr2968 := z.EncBasicHandle().StructToArray + var yyq2968 [10]bool + _, _, _ = yysep2968, yyq2968, yy2arr2968 + const yyr2968 bool = false + yyq2968[0] = len(x.Capacity) != 0 + yyq2968[1] = len(x.Allocatable) != 0 + yyq2968[2] = x.Phase != "" + yyq2968[3] = len(x.Conditions) != 0 + yyq2968[4] = len(x.Addresses) != 0 + yyq2968[5] = true + yyq2968[6] = true + yyq2968[7] = len(x.Images) != 0 + yyq2968[8] = len(x.VolumesInUse) != 0 + yyq2968[9] = len(x.VolumesAttached) != 0 + var yynn2968 int + if yyr2968 || yy2arr2968 { r.EncodeArrayStart(10) } else { - yynn2830 = 0 - for _, b := range yyq2830 { + yynn2968 = 0 + for _, b := range yyq2968 { if b { - yynn2830++ + yynn2968++ } } - r.EncodeMapStart(yynn2830) - yynn2830 = 0 + r.EncodeMapStart(yynn2968) + yynn2968 = 0 } - if yyr2830 || yy2arr2830 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2830[0] { + if yyq2968[0] { if x.Capacity == nil { r.EncodeNil() } else { @@ -36446,7 +38142,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2830[0] { + if yyq2968[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -36457,9 +38153,9 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2830 || yy2arr2830 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2830[1] { + if yyq2968[1] { if x.Allocatable == nil { r.EncodeNil() } else { @@ -36469,7 +38165,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2830[1] { + if yyq2968[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allocatable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -36480,29 +38176,29 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2830 || yy2arr2830 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2830[2] { + if yyq2968[2] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2830[2] { + if yyq2968[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } - if yyr2830 || yy2arr2830 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2830[3] { + if yyq2968[3] { if x.Conditions == nil { r.EncodeNil() } else { - yym2835 := z.EncBinary() - _ = yym2835 + yym2973 := z.EncBinary() + _ = yym2973 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) @@ -36512,15 +38208,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2830[3] { + if yyq2968[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { - yym2836 := z.EncBinary() - _ = yym2836 + yym2974 := z.EncBinary() + _ = yym2974 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) @@ -36528,14 +38224,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2830 || yy2arr2830 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2830[4] { + if yyq2968[4] { if x.Addresses == nil { r.EncodeNil() } else { - yym2838 := z.EncBinary() - _ = yym2838 + yym2976 := z.EncBinary() + _ = yym2976 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) @@ -36545,15 +38241,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2830[4] { + if yyq2968[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { - yym2839 := z.EncBinary() - _ = yym2839 + yym2977 := z.EncBinary() + _ = yym2977 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) @@ -36561,48 +38257,48 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2830 || yy2arr2830 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2830[5] { - yy2841 := &x.DaemonEndpoints - yy2841.CodecEncodeSelf(e) + if yyq2968[5] { + yy2979 := &x.DaemonEndpoints + yy2979.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2830[5] { + if yyq2968[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2842 := &x.DaemonEndpoints - yy2842.CodecEncodeSelf(e) + yy2980 := &x.DaemonEndpoints + yy2980.CodecEncodeSelf(e) } } - if yyr2830 || yy2arr2830 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2830[6] { - yy2844 := &x.NodeInfo - yy2844.CodecEncodeSelf(e) + if yyq2968[6] { + yy2982 := &x.NodeInfo + yy2982.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq2830[6] { + if yyq2968[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2845 := &x.NodeInfo - yy2845.CodecEncodeSelf(e) + yy2983 := &x.NodeInfo + yy2983.CodecEncodeSelf(e) } } - if yyr2830 || yy2arr2830 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2830[7] { + if yyq2968[7] { if x.Images == nil { r.EncodeNil() } else { - yym2847 := z.EncBinary() - _ = yym2847 + yym2985 := z.EncBinary() + _ = yym2985 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) @@ -36612,15 +38308,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2830[7] { + if yyq2968[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("images")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Images == nil { r.EncodeNil() } else { - yym2848 := z.EncBinary() - _ = yym2848 + yym2986 := z.EncBinary() + _ = yym2986 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) @@ -36628,14 +38324,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2830 || yy2arr2830 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2830[8] { + if yyq2968[8] { if x.VolumesInUse == nil { r.EncodeNil() } else { - yym2850 := z.EncBinary() - _ = yym2850 + yym2988 := z.EncBinary() + _ = yym2988 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) @@ -36645,15 +38341,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2830[8] { + if yyq2968[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesInUse")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesInUse == nil { r.EncodeNil() } else { - yym2851 := z.EncBinary() - _ = yym2851 + yym2989 := z.EncBinary() + _ = yym2989 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) @@ -36661,14 +38357,14 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2830 || yy2arr2830 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2830[9] { + if yyq2968[9] { if x.VolumesAttached == nil { r.EncodeNil() } else { - yym2853 := z.EncBinary() - _ = yym2853 + yym2991 := z.EncBinary() + _ = yym2991 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) @@ -36678,15 +38374,15 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2830[9] { + if yyq2968[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesAttached")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesAttached == nil { r.EncodeNil() } else { - yym2854 := z.EncBinary() - _ = yym2854 + yym2992 := z.EncBinary() + _ = yym2992 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) @@ -36694,7 +38390,7 @@ func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2830 || yy2arr2830 { + if yyr2968 || yy2arr2968 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -36707,25 +38403,25 @@ func (x *NodeStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2855 := z.DecBinary() - _ = yym2855 + yym2993 := z.DecBinary() + _ = yym2993 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2856 := r.ContainerType() - if yyct2856 == codecSelferValueTypeMap1234 { - yyl2856 := r.ReadMapStart() - if yyl2856 == 0 { + yyct2994 := r.ContainerType() + if yyct2994 == codecSelferValueTypeMap1234 { + yyl2994 := r.ReadMapStart() + if yyl2994 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2856, d) + x.codecDecodeSelfFromMap(yyl2994, d) } - } else if yyct2856 == codecSelferValueTypeArray1234 { - yyl2856 := r.ReadArrayStart() - if yyl2856 == 0 { + } else if yyct2994 == codecSelferValueTypeArray1234 { + yyl2994 := r.ReadArrayStart() + if yyl2994 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2856, d) + x.codecDecodeSelfFromArray(yyl2994, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -36737,12 +38433,12 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2857Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2857Slc - var yyhl2857 bool = l >= 0 - for yyj2857 := 0; ; yyj2857++ { - if yyhl2857 { - if yyj2857 >= l { + var yys2995Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys2995Slc + var yyhl2995 bool = l >= 0 + for yyj2995 := 0; ; yyj2995++ { + if yyhl2995 { + if yyj2995 >= l { break } } else { @@ -36751,23 +38447,23 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2857Slc = r.DecodeBytes(yys2857Slc, true, true) - yys2857 := string(yys2857Slc) + yys2995Slc = r.DecodeBytes(yys2995Slc, true, true) + yys2995 := string(yys2995Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2857 { + switch yys2995 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv2858 := &x.Capacity - yyv2858.CodecDecodeSelf(d) + yyv2996 := &x.Capacity + yyv2996.CodecDecodeSelf(d) } case "allocatable": if r.TryDecodeAsNil() { x.Allocatable = nil } else { - yyv2859 := &x.Allocatable - yyv2859.CodecDecodeSelf(d) + yyv2997 := &x.Allocatable + yyv2997.CodecDecodeSelf(d) } case "phase": if r.TryDecodeAsNil() { @@ -36779,80 +38475,80 @@ func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv2861 := &x.Conditions - yym2862 := z.DecBinary() - _ = yym2862 + yyv2999 := &x.Conditions + yym3000 := z.DecBinary() + _ = yym3000 if false { } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv2861), d) + h.decSliceNodeCondition((*[]NodeCondition)(yyv2999), d) } } case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv2863 := &x.Addresses - yym2864 := z.DecBinary() - _ = yym2864 + yyv3001 := &x.Addresses + yym3002 := z.DecBinary() + _ = yym3002 if false { } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv2863), d) + h.decSliceNodeAddress((*[]NodeAddress)(yyv3001), d) } } case "daemonEndpoints": if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { - yyv2865 := &x.DaemonEndpoints - yyv2865.CodecDecodeSelf(d) + yyv3003 := &x.DaemonEndpoints + yyv3003.CodecDecodeSelf(d) } case "nodeInfo": if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { - yyv2866 := &x.NodeInfo - yyv2866.CodecDecodeSelf(d) + yyv3004 := &x.NodeInfo + yyv3004.CodecDecodeSelf(d) } case "images": if r.TryDecodeAsNil() { x.Images = nil } else { - yyv2867 := &x.Images - yym2868 := z.DecBinary() - _ = yym2868 + yyv3005 := &x.Images + yym3006 := z.DecBinary() + _ = yym3006 if false { } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv2867), d) + h.decSliceContainerImage((*[]ContainerImage)(yyv3005), d) } } case "volumesInUse": if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { - yyv2869 := &x.VolumesInUse - yym2870 := z.DecBinary() - _ = yym2870 + yyv3007 := &x.VolumesInUse + yym3008 := z.DecBinary() + _ = yym3008 if false { } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2869), d) + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3007), d) } } case "volumesAttached": if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { - yyv2871 := &x.VolumesAttached - yym2872 := z.DecBinary() - _ = yym2872 + yyv3009 := &x.VolumesAttached + yym3010 := z.DecBinary() + _ = yym3010 if false { } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2871), d) + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3009), d) } } default: - z.DecStructFieldNotFound(-1, yys2857) - } // end switch yys2857 - } // end for yyj2857 + z.DecStructFieldNotFound(-1, yys2995) + } // end switch yys2995 + } // end for yyj2995 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -36860,16 +38556,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2873 int - var yyb2873 bool - var yyhl2873 bool = l >= 0 - yyj2873++ - if yyhl2873 { - yyb2873 = yyj2873 > l + var yyj3011 int + var yyb3011 bool + var yyhl3011 bool = l >= 0 + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb2873 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb2873 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36877,16 +38573,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Capacity = nil } else { - yyv2874 := &x.Capacity - yyv2874.CodecDecodeSelf(d) + yyv3012 := &x.Capacity + yyv3012.CodecDecodeSelf(d) } - yyj2873++ - if yyhl2873 { - yyb2873 = yyj2873 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb2873 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb2873 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36894,16 +38590,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Allocatable = nil } else { - yyv2875 := &x.Allocatable - yyv2875.CodecDecodeSelf(d) + yyv3013 := &x.Allocatable + yyv3013.CodecDecodeSelf(d) } - yyj2873++ - if yyhl2873 { - yyb2873 = yyj2873 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb2873 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb2873 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36913,13 +38609,13 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Phase = NodePhase(r.DecodeString()) } - yyj2873++ - if yyhl2873 { - yyb2873 = yyj2873 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb2873 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb2873 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36927,21 +38623,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Conditions = nil } else { - yyv2877 := &x.Conditions - yym2878 := z.DecBinary() - _ = yym2878 + yyv3015 := &x.Conditions + yym3016 := z.DecBinary() + _ = yym3016 if false { } else { - h.decSliceNodeCondition((*[]NodeCondition)(yyv2877), d) + h.decSliceNodeCondition((*[]NodeCondition)(yyv3015), d) } } - yyj2873++ - if yyhl2873 { - yyb2873 = yyj2873 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb2873 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb2873 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36949,21 +38645,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Addresses = nil } else { - yyv2879 := &x.Addresses - yym2880 := z.DecBinary() - _ = yym2880 + yyv3017 := &x.Addresses + yym3018 := z.DecBinary() + _ = yym3018 if false { } else { - h.decSliceNodeAddress((*[]NodeAddress)(yyv2879), d) + h.decSliceNodeAddress((*[]NodeAddress)(yyv3017), d) } } - yyj2873++ - if yyhl2873 { - yyb2873 = yyj2873 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb2873 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb2873 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36971,16 +38667,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { - yyv2881 := &x.DaemonEndpoints - yyv2881.CodecDecodeSelf(d) + yyv3019 := &x.DaemonEndpoints + yyv3019.CodecDecodeSelf(d) } - yyj2873++ - if yyhl2873 { - yyb2873 = yyj2873 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb2873 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb2873 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -36988,16 +38684,16 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { - yyv2882 := &x.NodeInfo - yyv2882.CodecDecodeSelf(d) + yyv3020 := &x.NodeInfo + yyv3020.CodecDecodeSelf(d) } - yyj2873++ - if yyhl2873 { - yyb2873 = yyj2873 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb2873 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb2873 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37005,21 +38701,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Images = nil } else { - yyv2883 := &x.Images - yym2884 := z.DecBinary() - _ = yym2884 + yyv3021 := &x.Images + yym3022 := z.DecBinary() + _ = yym3022 if false { } else { - h.decSliceContainerImage((*[]ContainerImage)(yyv2883), d) + h.decSliceContainerImage((*[]ContainerImage)(yyv3021), d) } } - yyj2873++ - if yyhl2873 { - yyb2873 = yyj2873 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb2873 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb2873 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37027,21 +38723,21 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { - yyv2885 := &x.VolumesInUse - yym2886 := z.DecBinary() - _ = yym2886 + yyv3023 := &x.VolumesInUse + yym3024 := z.DecBinary() + _ = yym3024 if false { } else { - h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2885), d) + h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3023), d) } } - yyj2873++ - if yyhl2873 { - yyb2873 = yyj2873 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb2873 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb2873 { + if yyb3011 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37049,26 +38745,26 @@ func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { - yyv2887 := &x.VolumesAttached - yym2888 := z.DecBinary() - _ = yym2888 + yyv3025 := &x.VolumesAttached + yym3026 := z.DecBinary() + _ = yym3026 if false { } else { - h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2887), d) + h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3025), d) } } for { - yyj2873++ - if yyhl2873 { - yyb2873 = yyj2873 > l + yyj3011++ + if yyhl3011 { + yyb3011 = yyj3011 > l } else { - yyb2873 = r.CheckBreak() + yyb3011 = r.CheckBreak() } - if yyb2873 { + if yyb3011 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2873-1, "") + z.DecStructFieldNotFound(yyj3011-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37077,8 +38773,8 @@ func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym2889 := z.EncBinary() - _ = yym2889 + yym3027 := z.EncBinary() + _ = yym3027 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -37090,8 +38786,8 @@ func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2890 := z.DecBinary() - _ = yym2890 + yym3028 := z.DecBinary() + _ = yym3028 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -37106,30 +38802,30 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2891 := z.EncBinary() - _ = yym2891 + yym3029 := z.EncBinary() + _ = yym3029 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2892 := !z.EncBinary() - yy2arr2892 := z.EncBasicHandle().StructToArray - var yyq2892 [2]bool - _, _, _ = yysep2892, yyq2892, yy2arr2892 - const yyr2892 bool = false - var yynn2892 int - if yyr2892 || yy2arr2892 { + yysep3030 := !z.EncBinary() + yy2arr3030 := z.EncBasicHandle().StructToArray + var yyq3030 [2]bool + _, _, _ = yysep3030, yyq3030, yy2arr3030 + const yyr3030 bool = false + var yynn3030 int + if yyr3030 || yy2arr3030 { r.EncodeArrayStart(2) } else { - yynn2892 = 2 - for _, b := range yyq2892 { + yynn3030 = 2 + for _, b := range yyq3030 { if b { - yynn2892++ + yynn3030++ } } - r.EncodeMapStart(yynn2892) - yynn2892 = 0 + r.EncodeMapStart(yynn3030) + yynn3030 = 0 } - if yyr2892 || yy2arr2892 { + if yyr3030 || yy2arr3030 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Name.CodecEncodeSelf(e) } else { @@ -37138,10 +38834,10 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Name.CodecEncodeSelf(e) } - if yyr2892 || yy2arr2892 { + if yyr3030 || yy2arr3030 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym2895 := z.EncBinary() - _ = yym2895 + yym3033 := z.EncBinary() + _ = yym3033 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) @@ -37150,14 +38846,14 @@ func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("devicePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2896 := z.EncBinary() - _ = yym2896 + yym3034 := z.EncBinary() + _ = yym3034 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) } } - if yyr2892 || yy2arr2892 { + if yyr3030 || yy2arr3030 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37170,25 +38866,25 @@ func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2897 := z.DecBinary() - _ = yym2897 + yym3035 := z.DecBinary() + _ = yym3035 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2898 := r.ContainerType() - if yyct2898 == codecSelferValueTypeMap1234 { - yyl2898 := r.ReadMapStart() - if yyl2898 == 0 { + yyct3036 := r.ContainerType() + if yyct3036 == codecSelferValueTypeMap1234 { + yyl3036 := r.ReadMapStart() + if yyl3036 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2898, d) + x.codecDecodeSelfFromMap(yyl3036, d) } - } else if yyct2898 == codecSelferValueTypeArray1234 { - yyl2898 := r.ReadArrayStart() - if yyl2898 == 0 { + } else if yyct3036 == codecSelferValueTypeArray1234 { + yyl3036 := r.ReadArrayStart() + if yyl3036 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2898, d) + x.codecDecodeSelfFromArray(yyl3036, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37200,12 +38896,12 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2899Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2899Slc - var yyhl2899 bool = l >= 0 - for yyj2899 := 0; ; yyj2899++ { - if yyhl2899 { - if yyj2899 >= l { + var yys3037Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3037Slc + var yyhl3037 bool = l >= 0 + for yyj3037 := 0; ; yyj3037++ { + if yyhl3037 { + if yyj3037 >= l { break } } else { @@ -37214,10 +38910,10 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2899Slc = r.DecodeBytes(yys2899Slc, true, true) - yys2899 := string(yys2899Slc) + yys3037Slc = r.DecodeBytes(yys3037Slc, true, true) + yys3037 := string(yys3037Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2899 { + switch yys3037 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -37231,9 +38927,9 @@ func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.DevicePath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2899) - } // end switch yys2899 - } // end for yyj2899 + z.DecStructFieldNotFound(-1, yys3037) + } // end switch yys3037 + } // end for yyj3037 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37241,16 +38937,16 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2902 int - var yyb2902 bool - var yyhl2902 bool = l >= 0 - yyj2902++ - if yyhl2902 { - yyb2902 = yyj2902 > l + var yyj3040 int + var yyb3040 bool + var yyhl3040 bool = l >= 0 + yyj3040++ + if yyhl3040 { + yyb3040 = yyj3040 > l } else { - yyb2902 = r.CheckBreak() + yyb3040 = r.CheckBreak() } - if yyb2902 { + if yyb3040 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37260,13 +38956,13 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = UniqueVolumeName(r.DecodeString()) } - yyj2902++ - if yyhl2902 { - yyb2902 = yyj2902 > l + yyj3040++ + if yyhl3040 { + yyb3040 = yyj3040 > l } else { - yyb2902 = r.CheckBreak() + yyb3040 = r.CheckBreak() } - if yyb2902 { + if yyb3040 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37277,17 +38973,17 @@ func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.DevicePath = string(r.DecodeString()) } for { - yyj2902++ - if yyhl2902 { - yyb2902 = yyj2902 > l + yyj3040++ + if yyhl3040 { + yyb3040 = yyj3040 > l } else { - yyb2902 = r.CheckBreak() + yyb3040 = r.CheckBreak() } - if yyb2902 { + if yyb3040 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2902-1, "") + z.DecStructFieldNotFound(yyj3040-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37299,38 +38995,38 @@ func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2905 := z.EncBinary() - _ = yym2905 + yym3043 := z.EncBinary() + _ = yym3043 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2906 := !z.EncBinary() - yy2arr2906 := z.EncBasicHandle().StructToArray - var yyq2906 [1]bool - _, _, _ = yysep2906, yyq2906, yy2arr2906 - const yyr2906 bool = false - yyq2906[0] = len(x.PreferAvoidPods) != 0 - var yynn2906 int - if yyr2906 || yy2arr2906 { + yysep3044 := !z.EncBinary() + yy2arr3044 := z.EncBasicHandle().StructToArray + var yyq3044 [1]bool + _, _, _ = yysep3044, yyq3044, yy2arr3044 + const yyr3044 bool = false + yyq3044[0] = len(x.PreferAvoidPods) != 0 + var yynn3044 int + if yyr3044 || yy2arr3044 { r.EncodeArrayStart(1) } else { - yynn2906 = 0 - for _, b := range yyq2906 { + yynn3044 = 0 + for _, b := range yyq3044 { if b { - yynn2906++ + yynn3044++ } } - r.EncodeMapStart(yynn2906) - yynn2906 = 0 + r.EncodeMapStart(yynn3044) + yynn3044 = 0 } - if yyr2906 || yy2arr2906 { + if yyr3044 || yy2arr3044 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2906[0] { + if yyq3044[0] { if x.PreferAvoidPods == nil { r.EncodeNil() } else { - yym2908 := z.EncBinary() - _ = yym2908 + yym3046 := z.EncBinary() + _ = yym3046 if false { } else { h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) @@ -37340,15 +39036,15 @@ func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2906[0] { + if yyq3044[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferAvoidPods == nil { r.EncodeNil() } else { - yym2909 := z.EncBinary() - _ = yym2909 + yym3047 := z.EncBinary() + _ = yym3047 if false { } else { h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) @@ -37356,7 +39052,7 @@ func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2906 || yy2arr2906 { + if yyr3044 || yy2arr3044 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37369,25 +39065,25 @@ func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2910 := z.DecBinary() - _ = yym2910 + yym3048 := z.DecBinary() + _ = yym3048 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2911 := r.ContainerType() - if yyct2911 == codecSelferValueTypeMap1234 { - yyl2911 := r.ReadMapStart() - if yyl2911 == 0 { + yyct3049 := r.ContainerType() + if yyct3049 == codecSelferValueTypeMap1234 { + yyl3049 := r.ReadMapStart() + if yyl3049 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2911, d) + x.codecDecodeSelfFromMap(yyl3049, d) } - } else if yyct2911 == codecSelferValueTypeArray1234 { - yyl2911 := r.ReadArrayStart() - if yyl2911 == 0 { + } else if yyct3049 == codecSelferValueTypeArray1234 { + yyl3049 := r.ReadArrayStart() + if yyl3049 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2911, d) + x.codecDecodeSelfFromArray(yyl3049, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37399,12 +39095,12 @@ func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2912Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2912Slc - var yyhl2912 bool = l >= 0 - for yyj2912 := 0; ; yyj2912++ { - if yyhl2912 { - if yyj2912 >= l { + var yys3050Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3050Slc + var yyhl3050 bool = l >= 0 + for yyj3050 := 0; ; yyj3050++ { + if yyhl3050 { + if yyj3050 >= l { break } } else { @@ -37413,26 +39109,26 @@ func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2912Slc = r.DecodeBytes(yys2912Slc, true, true) - yys2912 := string(yys2912Slc) + yys3050Slc = r.DecodeBytes(yys3050Slc, true, true) + yys3050 := string(yys3050Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2912 { + switch yys3050 { case "preferAvoidPods": if r.TryDecodeAsNil() { x.PreferAvoidPods = nil } else { - yyv2913 := &x.PreferAvoidPods - yym2914 := z.DecBinary() - _ = yym2914 + yyv3051 := &x.PreferAvoidPods + yym3052 := z.DecBinary() + _ = yym3052 if false { } else { - h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv2913), d) + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3051), d) } } default: - z.DecStructFieldNotFound(-1, yys2912) - } // end switch yys2912 - } // end for yyj2912 + z.DecStructFieldNotFound(-1, yys3050) + } // end switch yys3050 + } // end for yyj3050 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37440,16 +39136,16 @@ func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2915 int - var yyb2915 bool - var yyhl2915 bool = l >= 0 - yyj2915++ - if yyhl2915 { - yyb2915 = yyj2915 > l + var yyj3053 int + var yyb3053 bool + var yyhl3053 bool = l >= 0 + yyj3053++ + if yyhl3053 { + yyb3053 = yyj3053 > l } else { - yyb2915 = r.CheckBreak() + yyb3053 = r.CheckBreak() } - if yyb2915 { + if yyb3053 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37457,26 +39153,26 @@ func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.PreferAvoidPods = nil } else { - yyv2916 := &x.PreferAvoidPods - yym2917 := z.DecBinary() - _ = yym2917 + yyv3054 := &x.PreferAvoidPods + yym3055 := z.DecBinary() + _ = yym3055 if false { } else { - h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv2916), d) + h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3054), d) } } for { - yyj2915++ - if yyhl2915 { - yyb2915 = yyj2915 > l + yyj3053++ + if yyhl3053 { + yyb3053 = yyj3053 > l } else { - yyb2915 = r.CheckBreak() + yyb3053 = r.CheckBreak() } - if yyb2915 { + if yyb3053 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2915-1, "") + z.DecStructFieldNotFound(yyj3053-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37488,85 +39184,85 @@ func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2918 := z.EncBinary() - _ = yym2918 + yym3056 := z.EncBinary() + _ = yym3056 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2919 := !z.EncBinary() - yy2arr2919 := z.EncBasicHandle().StructToArray - var yyq2919 [4]bool - _, _, _ = yysep2919, yyq2919, yy2arr2919 - const yyr2919 bool = false - yyq2919[1] = true - yyq2919[2] = x.Reason != "" - yyq2919[3] = x.Message != "" - var yynn2919 int - if yyr2919 || yy2arr2919 { + yysep3057 := !z.EncBinary() + yy2arr3057 := z.EncBasicHandle().StructToArray + var yyq3057 [4]bool + _, _, _ = yysep3057, yyq3057, yy2arr3057 + const yyr3057 bool = false + yyq3057[1] = true + yyq3057[2] = x.Reason != "" + yyq3057[3] = x.Message != "" + var yynn3057 int + if yyr3057 || yy2arr3057 { r.EncodeArrayStart(4) } else { - yynn2919 = 1 - for _, b := range yyq2919 { + yynn3057 = 1 + for _, b := range yyq3057 { if b { - yynn2919++ + yynn3057++ } } - r.EncodeMapStart(yynn2919) - yynn2919 = 0 + r.EncodeMapStart(yynn3057) + yynn3057 = 0 } - if yyr2919 || yy2arr2919 { + if yyr3057 || yy2arr3057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy2921 := &x.PodSignature - yy2921.CodecEncodeSelf(e) + yy3059 := &x.PodSignature + yy3059.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSignature")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2922 := &x.PodSignature - yy2922.CodecEncodeSelf(e) + yy3060 := &x.PodSignature + yy3060.CodecEncodeSelf(e) } - if yyr2919 || yy2arr2919 { + if yyr3057 || yy2arr3057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2919[1] { - yy2924 := &x.EvictionTime - yym2925 := z.EncBinary() - _ = yym2925 + if yyq3057[1] { + yy3062 := &x.EvictionTime + yym3063 := z.EncBinary() + _ = yym3063 if false { - } else if z.HasExtensions() && z.EncExt(yy2924) { - } else if yym2925 { - z.EncBinaryMarshal(yy2924) - } else if !yym2925 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2924) + } else if z.HasExtensions() && z.EncExt(yy3062) { + } else if yym3063 { + z.EncBinaryMarshal(yy3062) + } else if !yym3063 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3062) } else { - z.EncFallback(yy2924) + z.EncFallback(yy3062) } } else { r.EncodeNil() } } else { - if yyq2919[1] { + if yyq3057[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2926 := &x.EvictionTime - yym2927 := z.EncBinary() - _ = yym2927 + yy3064 := &x.EvictionTime + yym3065 := z.EncBinary() + _ = yym3065 if false { - } else if z.HasExtensions() && z.EncExt(yy2926) { - } else if yym2927 { - z.EncBinaryMarshal(yy2926) - } else if !yym2927 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2926) + } else if z.HasExtensions() && z.EncExt(yy3064) { + } else if yym3065 { + z.EncBinaryMarshal(yy3064) + } else if !yym3065 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3064) } else { - z.EncFallback(yy2926) + z.EncFallback(yy3064) } } } - if yyr2919 || yy2arr2919 { + if yyr3057 || yy2arr3057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2919[2] { - yym2929 := z.EncBinary() - _ = yym2929 + if yyq3057[2] { + yym3067 := z.EncBinary() + _ = yym3067 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -37575,23 +39271,23 @@ func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2919[2] { + if yyq3057[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2930 := z.EncBinary() - _ = yym2930 + yym3068 := z.EncBinary() + _ = yym3068 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2919 || yy2arr2919 { + if yyr3057 || yy2arr3057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2919[3] { - yym2932 := z.EncBinary() - _ = yym2932 + if yyq3057[3] { + yym3070 := z.EncBinary() + _ = yym3070 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -37600,19 +39296,19 @@ func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2919[3] { + if yyq3057[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2933 := z.EncBinary() - _ = yym2933 + yym3071 := z.EncBinary() + _ = yym3071 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2919 || yy2arr2919 { + if yyr3057 || yy2arr3057 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37625,25 +39321,25 @@ func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2934 := z.DecBinary() - _ = yym2934 + yym3072 := z.DecBinary() + _ = yym3072 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2935 := r.ContainerType() - if yyct2935 == codecSelferValueTypeMap1234 { - yyl2935 := r.ReadMapStart() - if yyl2935 == 0 { + yyct3073 := r.ContainerType() + if yyct3073 == codecSelferValueTypeMap1234 { + yyl3073 := r.ReadMapStart() + if yyl3073 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2935, d) + x.codecDecodeSelfFromMap(yyl3073, d) } - } else if yyct2935 == codecSelferValueTypeArray1234 { - yyl2935 := r.ReadArrayStart() - if yyl2935 == 0 { + } else if yyct3073 == codecSelferValueTypeArray1234 { + yyl3073 := r.ReadArrayStart() + if yyl3073 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2935, d) + x.codecDecodeSelfFromArray(yyl3073, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37655,12 +39351,12 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2936Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2936Slc - var yyhl2936 bool = l >= 0 - for yyj2936 := 0; ; yyj2936++ { - if yyhl2936 { - if yyj2936 >= l { + var yys3074Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3074Slc + var yyhl3074 bool = l >= 0 + for yyj3074 := 0; ; yyj3074++ { + if yyhl3074 { + if yyj3074 >= l { break } } else { @@ -37669,32 +39365,32 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2936Slc = r.DecodeBytes(yys2936Slc, true, true) - yys2936 := string(yys2936Slc) + yys3074Slc = r.DecodeBytes(yys3074Slc, true, true) + yys3074 := string(yys3074Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2936 { + switch yys3074 { case "podSignature": if r.TryDecodeAsNil() { x.PodSignature = PodSignature{} } else { - yyv2937 := &x.PodSignature - yyv2937.CodecDecodeSelf(d) + yyv3075 := &x.PodSignature + yyv3075.CodecDecodeSelf(d) } case "evictionTime": if r.TryDecodeAsNil() { x.EvictionTime = pkg2_unversioned.Time{} } else { - yyv2938 := &x.EvictionTime - yym2939 := z.DecBinary() - _ = yym2939 + yyv3076 := &x.EvictionTime + yym3077 := z.DecBinary() + _ = yym3077 if false { - } else if z.HasExtensions() && z.DecExt(yyv2938) { - } else if yym2939 { - z.DecBinaryUnmarshal(yyv2938) - } else if !yym2939 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2938) + } else if z.HasExtensions() && z.DecExt(yyv3076) { + } else if yym3077 { + z.DecBinaryUnmarshal(yyv3076) + } else if !yym3077 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3076) } else { - z.DecFallback(yyv2938, false) + z.DecFallback(yyv3076, false) } } case "reason": @@ -37710,9 +39406,9 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys2936) - } // end switch yys2936 - } // end for yyj2936 + z.DecStructFieldNotFound(-1, yys3074) + } // end switch yys3074 + } // end for yyj3074 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37720,16 +39416,16 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2942 int - var yyb2942 bool - var yyhl2942 bool = l >= 0 - yyj2942++ - if yyhl2942 { - yyb2942 = yyj2942 > l + var yyj3080 int + var yyb3080 bool + var yyhl3080 bool = l >= 0 + yyj3080++ + if yyhl3080 { + yyb3080 = yyj3080 > l } else { - yyb2942 = r.CheckBreak() + yyb3080 = r.CheckBreak() } - if yyb2942 { + if yyb3080 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37737,16 +39433,16 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.PodSignature = PodSignature{} } else { - yyv2943 := &x.PodSignature - yyv2943.CodecDecodeSelf(d) + yyv3081 := &x.PodSignature + yyv3081.CodecDecodeSelf(d) } - yyj2942++ - if yyhl2942 { - yyb2942 = yyj2942 > l + yyj3080++ + if yyhl3080 { + yyb3080 = yyj3080 > l } else { - yyb2942 = r.CheckBreak() + yyb3080 = r.CheckBreak() } - if yyb2942 { + if yyb3080 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37754,26 +39450,26 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.EvictionTime = pkg2_unversioned.Time{} } else { - yyv2944 := &x.EvictionTime - yym2945 := z.DecBinary() - _ = yym2945 + yyv3082 := &x.EvictionTime + yym3083 := z.DecBinary() + _ = yym3083 if false { - } else if z.HasExtensions() && z.DecExt(yyv2944) { - } else if yym2945 { - z.DecBinaryUnmarshal(yyv2944) - } else if !yym2945 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv2944) + } else if z.HasExtensions() && z.DecExt(yyv3082) { + } else if yym3083 { + z.DecBinaryUnmarshal(yyv3082) + } else if !yym3083 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3082) } else { - z.DecFallback(yyv2944, false) + z.DecFallback(yyv3082, false) } } - yyj2942++ - if yyhl2942 { - yyb2942 = yyj2942 > l + yyj3080++ + if yyhl3080 { + yyb3080 = yyj3080 > l } else { - yyb2942 = r.CheckBreak() + yyb3080 = r.CheckBreak() } - if yyb2942 { + if yyb3080 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37783,13 +39479,13 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Reason = string(r.DecodeString()) } - yyj2942++ - if yyhl2942 { - yyb2942 = yyj2942 > l + yyj3080++ + if yyhl3080 { + yyb3080 = yyj3080 > l } else { - yyb2942 = r.CheckBreak() + yyb3080 = r.CheckBreak() } - if yyb2942 { + if yyb3080 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37800,17 +39496,17 @@ func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Message = string(r.DecodeString()) } for { - yyj2942++ - if yyhl2942 { - yyb2942 = yyj2942 > l + yyj3080++ + if yyhl3080 { + yyb3080 = yyj3080 > l } else { - yyb2942 = r.CheckBreak() + yyb3080 = r.CheckBreak() } - if yyb2942 { + if yyb3080 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2942-1, "") + z.DecStructFieldNotFound(yyj3080-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37822,33 +39518,33 @@ func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2948 := z.EncBinary() - _ = yym2948 + yym3086 := z.EncBinary() + _ = yym3086 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2949 := !z.EncBinary() - yy2arr2949 := z.EncBasicHandle().StructToArray - var yyq2949 [1]bool - _, _, _ = yysep2949, yyq2949, yy2arr2949 - const yyr2949 bool = false - yyq2949[0] = x.PodController != nil - var yynn2949 int - if yyr2949 || yy2arr2949 { + yysep3087 := !z.EncBinary() + yy2arr3087 := z.EncBasicHandle().StructToArray + var yyq3087 [1]bool + _, _, _ = yysep3087, yyq3087, yy2arr3087 + const yyr3087 bool = false + yyq3087[0] = x.PodController != nil + var yynn3087 int + if yyr3087 || yy2arr3087 { r.EncodeArrayStart(1) } else { - yynn2949 = 0 - for _, b := range yyq2949 { + yynn3087 = 0 + for _, b := range yyq3087 { if b { - yynn2949++ + yynn3087++ } } - r.EncodeMapStart(yynn2949) - yynn2949 = 0 + r.EncodeMapStart(yynn3087) + yynn3087 = 0 } - if yyr2949 || yy2arr2949 { + if yyr3087 || yy2arr3087 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2949[0] { + if yyq3087[0] { if x.PodController == nil { r.EncodeNil() } else { @@ -37858,7 +39554,7 @@ func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq2949[0] { + if yyq3087[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podController")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -37869,7 +39565,7 @@ func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr2949 || yy2arr2949 { + if yyr3087 || yy2arr3087 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -37882,25 +39578,25 @@ func (x *PodSignature) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2951 := z.DecBinary() - _ = yym2951 + yym3089 := z.DecBinary() + _ = yym3089 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2952 := r.ContainerType() - if yyct2952 == codecSelferValueTypeMap1234 { - yyl2952 := r.ReadMapStart() - if yyl2952 == 0 { + yyct3090 := r.ContainerType() + if yyct3090 == codecSelferValueTypeMap1234 { + yyl3090 := r.ReadMapStart() + if yyl3090 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2952, d) + x.codecDecodeSelfFromMap(yyl3090, d) } - } else if yyct2952 == codecSelferValueTypeArray1234 { - yyl2952 := r.ReadArrayStart() - if yyl2952 == 0 { + } else if yyct3090 == codecSelferValueTypeArray1234 { + yyl3090 := r.ReadArrayStart() + if yyl3090 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2952, d) + x.codecDecodeSelfFromArray(yyl3090, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -37912,12 +39608,12 @@ func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2953Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2953Slc - var yyhl2953 bool = l >= 0 - for yyj2953 := 0; ; yyj2953++ { - if yyhl2953 { - if yyj2953 >= l { + var yys3091Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3091Slc + var yyhl3091 bool = l >= 0 + for yyj3091 := 0; ; yyj3091++ { + if yyhl3091 { + if yyj3091 >= l { break } } else { @@ -37926,10 +39622,10 @@ func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2953Slc = r.DecodeBytes(yys2953Slc, true, true) - yys2953 := string(yys2953Slc) + yys3091Slc = r.DecodeBytes(yys3091Slc, true, true) + yys3091 := string(yys3091Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2953 { + switch yys3091 { case "podController": if r.TryDecodeAsNil() { if x.PodController != nil { @@ -37942,9 +39638,9 @@ func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.PodController.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys2953) - } // end switch yys2953 - } // end for yyj2953 + z.DecStructFieldNotFound(-1, yys3091) + } // end switch yys3091 + } // end for yyj3091 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -37952,16 +39648,16 @@ func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2955 int - var yyb2955 bool - var yyhl2955 bool = l >= 0 - yyj2955++ - if yyhl2955 { - yyb2955 = yyj2955 > l + var yyj3093 int + var yyb3093 bool + var yyhl3093 bool = l >= 0 + yyj3093++ + if yyhl3093 { + yyb3093 = yyj3093 > l } else { - yyb2955 = r.CheckBreak() + yyb3093 = r.CheckBreak() } - if yyb2955 { + if yyb3093 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -37977,17 +39673,17 @@ func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.PodController.CodecDecodeSelf(d) } for { - yyj2955++ - if yyhl2955 { - yyb2955 = yyj2955 > l + yyj3093++ + if yyhl3093 { + yyb3093 = yyj3093 > l } else { - yyb2955 = r.CheckBreak() + yyb3093 = r.CheckBreak() } - if yyb2955 { + if yyb3093 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2955-1, "") + z.DecStructFieldNotFound(yyj3093-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -37999,37 +39695,37 @@ func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2957 := z.EncBinary() - _ = yym2957 + yym3095 := z.EncBinary() + _ = yym3095 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2958 := !z.EncBinary() - yy2arr2958 := z.EncBasicHandle().StructToArray - var yyq2958 [2]bool - _, _, _ = yysep2958, yyq2958, yy2arr2958 - const yyr2958 bool = false - yyq2958[1] = x.SizeBytes != 0 - var yynn2958 int - if yyr2958 || yy2arr2958 { + yysep3096 := !z.EncBinary() + yy2arr3096 := z.EncBasicHandle().StructToArray + var yyq3096 [2]bool + _, _, _ = yysep3096, yyq3096, yy2arr3096 + const yyr3096 bool = false + yyq3096[1] = x.SizeBytes != 0 + var yynn3096 int + if yyr3096 || yy2arr3096 { r.EncodeArrayStart(2) } else { - yynn2958 = 1 - for _, b := range yyq2958 { + yynn3096 = 1 + for _, b := range yyq3096 { if b { - yynn2958++ + yynn3096++ } } - r.EncodeMapStart(yynn2958) - yynn2958 = 0 + r.EncodeMapStart(yynn3096) + yynn3096 = 0 } - if yyr2958 || yy2arr2958 { + if yyr3096 || yy2arr3096 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Names == nil { r.EncodeNil() } else { - yym2960 := z.EncBinary() - _ = yym2960 + yym3098 := z.EncBinary() + _ = yym3098 if false { } else { z.F.EncSliceStringV(x.Names, false, e) @@ -38042,19 +39738,19 @@ func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { if x.Names == nil { r.EncodeNil() } else { - yym2961 := z.EncBinary() - _ = yym2961 + yym3099 := z.EncBinary() + _ = yym3099 if false { } else { z.F.EncSliceStringV(x.Names, false, e) } } } - if yyr2958 || yy2arr2958 { + if yyr3096 || yy2arr3096 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2958[1] { - yym2963 := z.EncBinary() - _ = yym2963 + if yyq3096[1] { + yym3101 := z.EncBinary() + _ = yym3101 if false { } else { r.EncodeInt(int64(x.SizeBytes)) @@ -38063,19 +39759,19 @@ func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq2958[1] { + if yyq3096[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2964 := z.EncBinary() - _ = yym2964 + yym3102 := z.EncBinary() + _ = yym3102 if false { } else { r.EncodeInt(int64(x.SizeBytes)) } } } - if yyr2958 || yy2arr2958 { + if yyr3096 || yy2arr3096 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38088,25 +39784,25 @@ func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2965 := z.DecBinary() - _ = yym2965 + yym3103 := z.DecBinary() + _ = yym3103 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct2966 := r.ContainerType() - if yyct2966 == codecSelferValueTypeMap1234 { - yyl2966 := r.ReadMapStart() - if yyl2966 == 0 { + yyct3104 := r.ContainerType() + if yyct3104 == codecSelferValueTypeMap1234 { + yyl3104 := r.ReadMapStart() + if yyl3104 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl2966, d) + x.codecDecodeSelfFromMap(yyl3104, d) } - } else if yyct2966 == codecSelferValueTypeArray1234 { - yyl2966 := r.ReadArrayStart() - if yyl2966 == 0 { + } else if yyct3104 == codecSelferValueTypeArray1234 { + yyl3104 := r.ReadArrayStart() + if yyl3104 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl2966, d) + x.codecDecodeSelfFromArray(yyl3104, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38118,12 +39814,12 @@ func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys2967Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys2967Slc - var yyhl2967 bool = l >= 0 - for yyj2967 := 0; ; yyj2967++ { - if yyhl2967 { - if yyj2967 >= l { + var yys3105Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3105Slc + var yyhl3105 bool = l >= 0 + for yyj3105 := 0; ; yyj3105++ { + if yyhl3105 { + if yyj3105 >= l { break } } else { @@ -38132,20 +39828,20 @@ func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys2967Slc = r.DecodeBytes(yys2967Slc, true, true) - yys2967 := string(yys2967Slc) + yys3105Slc = r.DecodeBytes(yys3105Slc, true, true) + yys3105 := string(yys3105Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys2967 { + switch yys3105 { case "names": if r.TryDecodeAsNil() { x.Names = nil } else { - yyv2968 := &x.Names - yym2969 := z.DecBinary() - _ = yym2969 + yyv3106 := &x.Names + yym3107 := z.DecBinary() + _ = yym3107 if false { } else { - z.F.DecSliceStringX(yyv2968, false, d) + z.F.DecSliceStringX(yyv3106, false, d) } } case "sizeBytes": @@ -38155,9 +39851,9 @@ func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.SizeBytes = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys2967) - } // end switch yys2967 - } // end for yyj2967 + z.DecStructFieldNotFound(-1, yys3105) + } // end switch yys3105 + } // end for yyj3105 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38165,16 +39861,16 @@ func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj2971 int - var yyb2971 bool - var yyhl2971 bool = l >= 0 - yyj2971++ - if yyhl2971 { - yyb2971 = yyj2971 > l + var yyj3109 int + var yyb3109 bool + var yyhl3109 bool = l >= 0 + yyj3109++ + if yyhl3109 { + yyb3109 = yyj3109 > l } else { - yyb2971 = r.CheckBreak() + yyb3109 = r.CheckBreak() } - if yyb2971 { + if yyb3109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38182,21 +39878,21 @@ func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Names = nil } else { - yyv2972 := &x.Names - yym2973 := z.DecBinary() - _ = yym2973 + yyv3110 := &x.Names + yym3111 := z.DecBinary() + _ = yym3111 if false { } else { - z.F.DecSliceStringX(yyv2972, false, d) + z.F.DecSliceStringX(yyv3110, false, d) } } - yyj2971++ - if yyhl2971 { - yyb2971 = yyj2971 > l + yyj3109++ + if yyhl3109 { + yyb3109 = yyj3109 > l } else { - yyb2971 = r.CheckBreak() + yyb3109 = r.CheckBreak() } - if yyb2971 { + if yyb3109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38207,17 +39903,17 @@ func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.SizeBytes = int64(r.DecodeInt(64)) } for { - yyj2971++ - if yyhl2971 { - yyb2971 = yyj2971 > l + yyj3109++ + if yyhl3109 { + yyb3109 = yyj3109 > l } else { - yyb2971 = r.CheckBreak() + yyb3109 = r.CheckBreak() } - if yyb2971 { + if yyb3109 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj2971-1, "") + z.DecStructFieldNotFound(yyj3109-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38226,8 +39922,8 @@ func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym2975 := z.EncBinary() - _ = yym2975 + yym3113 := z.EncBinary() + _ = yym3113 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -38239,8 +39935,8 @@ func (x *NodePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2976 := z.DecBinary() - _ = yym2976 + yym3114 := z.DecBinary() + _ = yym3114 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -38252,8 +39948,8 @@ func (x NodeConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym2977 := z.EncBinary() - _ = yym2977 + yym3115 := z.EncBinary() + _ = yym3115 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -38265,8 +39961,8 @@ func (x *NodeConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2978 := z.DecBinary() - _ = yym2978 + yym3116 := z.DecBinary() + _ = yym3116 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -38281,34 +39977,34 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym2979 := z.EncBinary() - _ = yym2979 + yym3117 := z.EncBinary() + _ = yym3117 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep2980 := !z.EncBinary() - yy2arr2980 := z.EncBasicHandle().StructToArray - var yyq2980 [6]bool - _, _, _ = yysep2980, yyq2980, yy2arr2980 - const yyr2980 bool = false - yyq2980[2] = true - yyq2980[3] = true - yyq2980[4] = x.Reason != "" - yyq2980[5] = x.Message != "" - var yynn2980 int - if yyr2980 || yy2arr2980 { + yysep3118 := !z.EncBinary() + yy2arr3118 := z.EncBasicHandle().StructToArray + var yyq3118 [6]bool + _, _, _ = yysep3118, yyq3118, yy2arr3118 + const yyr3118 bool = false + yyq3118[2] = true + yyq3118[3] = true + yyq3118[4] = x.Reason != "" + yyq3118[5] = x.Message != "" + var yynn3118 int + if yyr3118 || yy2arr3118 { r.EncodeArrayStart(6) } else { - yynn2980 = 2 - for _, b := range yyq2980 { + yynn3118 = 2 + for _, b := range yyq3118 { if b { - yynn2980++ + yynn3118++ } } - r.EncodeMapStart(yynn2980) - yynn2980 = 0 + r.EncodeMapStart(yynn3118) + yynn3118 = 0 } - if yyr2980 || yy2arr2980 { + if yyr3118 || yy2arr3118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -38317,7 +40013,7 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr2980 || yy2arr2980 { + if yyr3118 || yy2arr3118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -38326,85 +40022,85 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr2980 || yy2arr2980 { + if yyr3118 || yy2arr3118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2980[2] { - yy2984 := &x.LastHeartbeatTime - yym2985 := z.EncBinary() - _ = yym2985 + if yyq3118[2] { + yy3122 := &x.LastHeartbeatTime + yym3123 := z.EncBinary() + _ = yym3123 if false { - } else if z.HasExtensions() && z.EncExt(yy2984) { - } else if yym2985 { - z.EncBinaryMarshal(yy2984) - } else if !yym2985 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2984) + } else if z.HasExtensions() && z.EncExt(yy3122) { + } else if yym3123 { + z.EncBinaryMarshal(yy3122) + } else if !yym3123 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3122) } else { - z.EncFallback(yy2984) + z.EncFallback(yy3122) } } else { r.EncodeNil() } } else { - if yyq2980[2] { + if yyq3118[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2986 := &x.LastHeartbeatTime - yym2987 := z.EncBinary() - _ = yym2987 + yy3124 := &x.LastHeartbeatTime + yym3125 := z.EncBinary() + _ = yym3125 if false { - } else if z.HasExtensions() && z.EncExt(yy2986) { - } else if yym2987 { - z.EncBinaryMarshal(yy2986) - } else if !yym2987 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2986) + } else if z.HasExtensions() && z.EncExt(yy3124) { + } else if yym3125 { + z.EncBinaryMarshal(yy3124) + } else if !yym3125 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3124) } else { - z.EncFallback(yy2986) + z.EncFallback(yy3124) } } } - if yyr2980 || yy2arr2980 { + if yyr3118 || yy2arr3118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2980[3] { - yy2989 := &x.LastTransitionTime - yym2990 := z.EncBinary() - _ = yym2990 + if yyq3118[3] { + yy3127 := &x.LastTransitionTime + yym3128 := z.EncBinary() + _ = yym3128 if false { - } else if z.HasExtensions() && z.EncExt(yy2989) { - } else if yym2990 { - z.EncBinaryMarshal(yy2989) - } else if !yym2990 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2989) + } else if z.HasExtensions() && z.EncExt(yy3127) { + } else if yym3128 { + z.EncBinaryMarshal(yy3127) + } else if !yym3128 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3127) } else { - z.EncFallback(yy2989) + z.EncFallback(yy3127) } } else { r.EncodeNil() } } else { - if yyq2980[3] { + if yyq3118[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy2991 := &x.LastTransitionTime - yym2992 := z.EncBinary() - _ = yym2992 + yy3129 := &x.LastTransitionTime + yym3130 := z.EncBinary() + _ = yym3130 if false { - } else if z.HasExtensions() && z.EncExt(yy2991) { - } else if yym2992 { - z.EncBinaryMarshal(yy2991) - } else if !yym2992 && z.IsJSONHandle() { - z.EncJSONMarshal(yy2991) + } else if z.HasExtensions() && z.EncExt(yy3129) { + } else if yym3130 { + z.EncBinaryMarshal(yy3129) + } else if !yym3130 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3129) } else { - z.EncFallback(yy2991) + z.EncFallback(yy3129) } } } - if yyr2980 || yy2arr2980 { + if yyr3118 || yy2arr3118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2980[4] { - yym2994 := z.EncBinary() - _ = yym2994 + if yyq3118[4] { + yym3132 := z.EncBinary() + _ = yym3132 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -38413,23 +40109,23 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2980[4] { + if yyq3118[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2995 := z.EncBinary() - _ = yym2995 + yym3133 := z.EncBinary() + _ = yym3133 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } - if yyr2980 || yy2arr2980 { + if yyr3118 || yy2arr3118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq2980[5] { - yym2997 := z.EncBinary() - _ = yym2997 + if yyq3118[5] { + yym3135 := z.EncBinary() + _ = yym3135 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -38438,19 +40134,19 @@ func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq2980[5] { + if yyq3118[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym2998 := z.EncBinary() - _ = yym2998 + yym3136 := z.EncBinary() + _ = yym3136 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr2980 || yy2arr2980 { + if yyr3118 || yy2arr3118 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38463,25 +40159,25 @@ func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym2999 := z.DecBinary() - _ = yym2999 + yym3137 := z.DecBinary() + _ = yym3137 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3000 := r.ContainerType() - if yyct3000 == codecSelferValueTypeMap1234 { - yyl3000 := r.ReadMapStart() - if yyl3000 == 0 { + yyct3138 := r.ContainerType() + if yyct3138 == codecSelferValueTypeMap1234 { + yyl3138 := r.ReadMapStart() + if yyl3138 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3000, d) + x.codecDecodeSelfFromMap(yyl3138, d) } - } else if yyct3000 == codecSelferValueTypeArray1234 { - yyl3000 := r.ReadArrayStart() - if yyl3000 == 0 { + } else if yyct3138 == codecSelferValueTypeArray1234 { + yyl3138 := r.ReadArrayStart() + if yyl3138 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3000, d) + x.codecDecodeSelfFromArray(yyl3138, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38493,12 +40189,12 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3001Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3001Slc - var yyhl3001 bool = l >= 0 - for yyj3001 := 0; ; yyj3001++ { - if yyhl3001 { - if yyj3001 >= l { + var yys3139Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3139Slc + var yyhl3139 bool = l >= 0 + for yyj3139 := 0; ; yyj3139++ { + if yyhl3139 { + if yyj3139 >= l { break } } else { @@ -38507,10 +40203,10 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3001Slc = r.DecodeBytes(yys3001Slc, true, true) - yys3001 := string(yys3001Slc) + yys3139Slc = r.DecodeBytes(yys3139Slc, true, true) + yys3139 := string(yys3139Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3001 { + switch yys3139 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -38527,34 +40223,34 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { - yyv3004 := &x.LastHeartbeatTime - yym3005 := z.DecBinary() - _ = yym3005 + yyv3142 := &x.LastHeartbeatTime + yym3143 := z.DecBinary() + _ = yym3143 if false { - } else if z.HasExtensions() && z.DecExt(yyv3004) { - } else if yym3005 { - z.DecBinaryUnmarshal(yyv3004) - } else if !yym3005 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3004) + } else if z.HasExtensions() && z.DecExt(yyv3142) { + } else if yym3143 { + z.DecBinaryUnmarshal(yyv3142) + } else if !yym3143 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3142) } else { - z.DecFallback(yyv3004, false) + z.DecFallback(yyv3142, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv3006 := &x.LastTransitionTime - yym3007 := z.DecBinary() - _ = yym3007 + yyv3144 := &x.LastTransitionTime + yym3145 := z.DecBinary() + _ = yym3145 if false { - } else if z.HasExtensions() && z.DecExt(yyv3006) { - } else if yym3007 { - z.DecBinaryUnmarshal(yyv3006) - } else if !yym3007 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3006) + } else if z.HasExtensions() && z.DecExt(yyv3144) { + } else if yym3145 { + z.DecBinaryUnmarshal(yyv3144) + } else if !yym3145 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3144) } else { - z.DecFallback(yyv3006, false) + z.DecFallback(yyv3144, false) } } case "reason": @@ -38570,9 +40266,9 @@ func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3001) - } // end switch yys3001 - } // end for yyj3001 + z.DecStructFieldNotFound(-1, yys3139) + } // end switch yys3139 + } // end for yyj3139 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38580,16 +40276,16 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3010 int - var yyb3010 bool - var yyhl3010 bool = l >= 0 - yyj3010++ - if yyhl3010 { - yyb3010 = yyj3010 > l + var yyj3148 int + var yyb3148 bool + var yyhl3148 bool = l >= 0 + yyj3148++ + if yyhl3148 { + yyb3148 = yyj3148 > l } else { - yyb3010 = r.CheckBreak() + yyb3148 = r.CheckBreak() } - if yyb3010 { + if yyb3148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38599,13 +40295,13 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = NodeConditionType(r.DecodeString()) } - yyj3010++ - if yyhl3010 { - yyb3010 = yyj3010 > l + yyj3148++ + if yyhl3148 { + yyb3148 = yyj3148 > l } else { - yyb3010 = r.CheckBreak() + yyb3148 = r.CheckBreak() } - if yyb3010 { + if yyb3148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38615,13 +40311,13 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj3010++ - if yyhl3010 { - yyb3010 = yyj3010 > l + yyj3148++ + if yyhl3148 { + yyb3148 = yyj3148 > l } else { - yyb3010 = r.CheckBreak() + yyb3148 = r.CheckBreak() } - if yyb3010 { + if yyb3148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38629,26 +40325,26 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { - yyv3013 := &x.LastHeartbeatTime - yym3014 := z.DecBinary() - _ = yym3014 + yyv3151 := &x.LastHeartbeatTime + yym3152 := z.DecBinary() + _ = yym3152 if false { - } else if z.HasExtensions() && z.DecExt(yyv3013) { - } else if yym3014 { - z.DecBinaryUnmarshal(yyv3013) - } else if !yym3014 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3013) + } else if z.HasExtensions() && z.DecExt(yyv3151) { + } else if yym3152 { + z.DecBinaryUnmarshal(yyv3151) + } else if !yym3152 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3151) } else { - z.DecFallback(yyv3013, false) + z.DecFallback(yyv3151, false) } } - yyj3010++ - if yyhl3010 { - yyb3010 = yyj3010 > l + yyj3148++ + if yyhl3148 { + yyb3148 = yyj3148 > l } else { - yyb3010 = r.CheckBreak() + yyb3148 = r.CheckBreak() } - if yyb3010 { + if yyb3148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38656,26 +40352,26 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { - yyv3015 := &x.LastTransitionTime - yym3016 := z.DecBinary() - _ = yym3016 + yyv3153 := &x.LastTransitionTime + yym3154 := z.DecBinary() + _ = yym3154 if false { - } else if z.HasExtensions() && z.DecExt(yyv3015) { - } else if yym3016 { - z.DecBinaryUnmarshal(yyv3015) - } else if !yym3016 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3015) + } else if z.HasExtensions() && z.DecExt(yyv3153) { + } else if yym3154 { + z.DecBinaryUnmarshal(yyv3153) + } else if !yym3154 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3153) } else { - z.DecFallback(yyv3015, false) + z.DecFallback(yyv3153, false) } } - yyj3010++ - if yyhl3010 { - yyb3010 = yyj3010 > l + yyj3148++ + if yyhl3148 { + yyb3148 = yyj3148 > l } else { - yyb3010 = r.CheckBreak() + yyb3148 = r.CheckBreak() } - if yyb3010 { + if yyb3148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38685,13 +40381,13 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Reason = string(r.DecodeString()) } - yyj3010++ - if yyhl3010 { - yyb3010 = yyj3010 > l + yyj3148++ + if yyhl3148 { + yyb3148 = yyj3148 > l } else { - yyb3010 = r.CheckBreak() + yyb3148 = r.CheckBreak() } - if yyb3010 { + if yyb3148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38702,17 +40398,17 @@ func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Message = string(r.DecodeString()) } for { - yyj3010++ - if yyhl3010 { - yyb3010 = yyj3010 > l + yyj3148++ + if yyhl3148 { + yyb3148 = yyj3148 > l } else { - yyb3010 = r.CheckBreak() + yyb3148 = r.CheckBreak() } - if yyb3010 { + if yyb3148 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3010-1, "") + z.DecStructFieldNotFound(yyj3148-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38721,8 +40417,8 @@ func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3019 := z.EncBinary() - _ = yym3019 + yym3157 := z.EncBinary() + _ = yym3157 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -38734,8 +40430,8 @@ func (x *NodeAddressType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3020 := z.DecBinary() - _ = yym3020 + yym3158 := z.DecBinary() + _ = yym3158 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -38750,30 +40446,30 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3021 := z.EncBinary() - _ = yym3021 + yym3159 := z.EncBinary() + _ = yym3159 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3022 := !z.EncBinary() - yy2arr3022 := z.EncBasicHandle().StructToArray - var yyq3022 [2]bool - _, _, _ = yysep3022, yyq3022, yy2arr3022 - const yyr3022 bool = false - var yynn3022 int - if yyr3022 || yy2arr3022 { + yysep3160 := !z.EncBinary() + yy2arr3160 := z.EncBasicHandle().StructToArray + var yyq3160 [2]bool + _, _, _ = yysep3160, yyq3160, yy2arr3160 + const yyr3160 bool = false + var yynn3160 int + if yyr3160 || yy2arr3160 { r.EncodeArrayStart(2) } else { - yynn3022 = 2 - for _, b := range yyq3022 { + yynn3160 = 2 + for _, b := range yyq3160 { if b { - yynn3022++ + yynn3160++ } } - r.EncodeMapStart(yynn3022) - yynn3022 = 0 + r.EncodeMapStart(yynn3160) + yynn3160 = 0 } - if yyr3022 || yy2arr3022 { + if yyr3160 || yy2arr3160 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -38782,10 +40478,10 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr3022 || yy2arr3022 { + if yyr3160 || yy2arr3160 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3025 := z.EncBinary() - _ = yym3025 + yym3163 := z.EncBinary() + _ = yym3163 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) @@ -38794,14 +40490,14 @@ func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("address")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3026 := z.EncBinary() - _ = yym3026 + yym3164 := z.EncBinary() + _ = yym3164 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } - if yyr3022 || yy2arr3022 { + if yyr3160 || yy2arr3160 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -38814,25 +40510,25 @@ func (x *NodeAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3027 := z.DecBinary() - _ = yym3027 + yym3165 := z.DecBinary() + _ = yym3165 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3028 := r.ContainerType() - if yyct3028 == codecSelferValueTypeMap1234 { - yyl3028 := r.ReadMapStart() - if yyl3028 == 0 { + yyct3166 := r.ContainerType() + if yyct3166 == codecSelferValueTypeMap1234 { + yyl3166 := r.ReadMapStart() + if yyl3166 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3028, d) + x.codecDecodeSelfFromMap(yyl3166, d) } - } else if yyct3028 == codecSelferValueTypeArray1234 { - yyl3028 := r.ReadArrayStart() - if yyl3028 == 0 { + } else if yyct3166 == codecSelferValueTypeArray1234 { + yyl3166 := r.ReadArrayStart() + if yyl3166 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3028, d) + x.codecDecodeSelfFromArray(yyl3166, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -38844,12 +40540,12 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3029Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3029Slc - var yyhl3029 bool = l >= 0 - for yyj3029 := 0; ; yyj3029++ { - if yyhl3029 { - if yyj3029 >= l { + var yys3167Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3167Slc + var yyhl3167 bool = l >= 0 + for yyj3167 := 0; ; yyj3167++ { + if yyhl3167 { + if yyj3167 >= l { break } } else { @@ -38858,10 +40554,10 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3029Slc = r.DecodeBytes(yys3029Slc, true, true) - yys3029 := string(yys3029Slc) + yys3167Slc = r.DecodeBytes(yys3167Slc, true, true) + yys3167 := string(yys3167Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3029 { + switch yys3167 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -38875,9 +40571,9 @@ func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Address = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3029) - } // end switch yys3029 - } // end for yyj3029 + z.DecStructFieldNotFound(-1, yys3167) + } // end switch yys3167 + } // end for yyj3167 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -38885,16 +40581,16 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3032 int - var yyb3032 bool - var yyhl3032 bool = l >= 0 - yyj3032++ - if yyhl3032 { - yyb3032 = yyj3032 > l + var yyj3170 int + var yyb3170 bool + var yyhl3170 bool = l >= 0 + yyj3170++ + if yyhl3170 { + yyb3170 = yyj3170 > l } else { - yyb3032 = r.CheckBreak() + yyb3170 = r.CheckBreak() } - if yyb3032 { + if yyb3170 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38904,13 +40600,13 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = NodeAddressType(r.DecodeString()) } - yyj3032++ - if yyhl3032 { - yyb3032 = yyj3032 > l + yyj3170++ + if yyhl3170 { + yyb3170 = yyj3170 > l } else { - yyb3032 = r.CheckBreak() + yyb3170 = r.CheckBreak() } - if yyb3032 { + if yyb3170 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -38921,17 +40617,17 @@ func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Address = string(r.DecodeString()) } for { - yyj3032++ - if yyhl3032 { - yyb3032 = yyj3032 > l + yyj3170++ + if yyhl3170 { + yyb3170 = yyj3170 > l } else { - yyb3032 = r.CheckBreak() + yyb3170 = r.CheckBreak() } - if yyb3032 { + if yyb3170 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3032-1, "") + z.DecStructFieldNotFound(yyj3170-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -38940,8 +40636,8 @@ func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3035 := z.EncBinary() - _ = yym3035 + yym3173 := z.EncBinary() + _ = yym3173 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -38953,8 +40649,8 @@ func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3036 := z.DecBinary() - _ = yym3036 + yym3174 := z.DecBinary() + _ = yym3174 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -38969,8 +40665,8 @@ func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3037 := z.EncBinary() - _ = yym3037 + yym3175 := z.EncBinary() + _ = yym3175 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -38983,8 +40679,8 @@ func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3038 := z.DecBinary() - _ = yym3038 + yym3176 := z.DecBinary() + _ = yym3176 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -38999,39 +40695,39 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3039 := z.EncBinary() - _ = yym3039 + yym3177 := z.EncBinary() + _ = yym3177 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3040 := !z.EncBinary() - yy2arr3040 := z.EncBasicHandle().StructToArray - var yyq3040 [5]bool - _, _, _ = yysep3040, yyq3040, yy2arr3040 - const yyr3040 bool = false - yyq3040[0] = x.Kind != "" - yyq3040[1] = x.APIVersion != "" - yyq3040[2] = true - yyq3040[3] = true - yyq3040[4] = true - var yynn3040 int - if yyr3040 || yy2arr3040 { + yysep3178 := !z.EncBinary() + yy2arr3178 := z.EncBasicHandle().StructToArray + var yyq3178 [5]bool + _, _, _ = yysep3178, yyq3178, yy2arr3178 + const yyr3178 bool = false + yyq3178[0] = x.Kind != "" + yyq3178[1] = x.APIVersion != "" + yyq3178[2] = true + yyq3178[3] = true + yyq3178[4] = true + var yynn3178 int + if yyr3178 || yy2arr3178 { r.EncodeArrayStart(5) } else { - yynn3040 = 0 - for _, b := range yyq3040 { + yynn3178 = 0 + for _, b := range yyq3178 { if b { - yynn3040++ + yynn3178++ } } - r.EncodeMapStart(yynn3040) - yynn3040 = 0 + r.EncodeMapStart(yynn3178) + yynn3178 = 0 } - if yyr3040 || yy2arr3040 { + if yyr3178 || yy2arr3178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3040[0] { - yym3042 := z.EncBinary() - _ = yym3042 + if yyq3178[0] { + yym3180 := z.EncBinary() + _ = yym3180 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -39040,23 +40736,23 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3040[0] { + if yyq3178[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3043 := z.EncBinary() - _ = yym3043 + yym3181 := z.EncBinary() + _ = yym3181 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3040 || yy2arr3040 { + if yyr3178 || yy2arr3178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3040[1] { - yym3045 := z.EncBinary() - _ = yym3045 + if yyq3178[1] { + yym3183 := z.EncBinary() + _ = yym3183 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -39065,70 +40761,70 @@ func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3040[1] { + if yyq3178[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3046 := z.EncBinary() - _ = yym3046 + yym3184 := z.EncBinary() + _ = yym3184 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3040 || yy2arr3040 { + if yyr3178 || yy2arr3178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3040[2] { - yy3048 := &x.ObjectMeta - yy3048.CodecEncodeSelf(e) + if yyq3178[2] { + yy3186 := &x.ObjectMeta + yy3186.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3040[2] { + if yyq3178[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3049 := &x.ObjectMeta - yy3049.CodecEncodeSelf(e) + yy3187 := &x.ObjectMeta + yy3187.CodecEncodeSelf(e) } } - if yyr3040 || yy2arr3040 { + if yyr3178 || yy2arr3178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3040[3] { - yy3051 := &x.Spec - yy3051.CodecEncodeSelf(e) + if yyq3178[3] { + yy3189 := &x.Spec + yy3189.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3040[3] { + if yyq3178[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3052 := &x.Spec - yy3052.CodecEncodeSelf(e) + yy3190 := &x.Spec + yy3190.CodecEncodeSelf(e) } } - if yyr3040 || yy2arr3040 { + if yyr3178 || yy2arr3178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3040[4] { - yy3054 := &x.Status - yy3054.CodecEncodeSelf(e) + if yyq3178[4] { + yy3192 := &x.Status + yy3192.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3040[4] { + if yyq3178[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3055 := &x.Status - yy3055.CodecEncodeSelf(e) + yy3193 := &x.Status + yy3193.CodecEncodeSelf(e) } } - if yyr3040 || yy2arr3040 { + if yyr3178 || yy2arr3178 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39141,25 +40837,25 @@ func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3056 := z.DecBinary() - _ = yym3056 + yym3194 := z.DecBinary() + _ = yym3194 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3057 := r.ContainerType() - if yyct3057 == codecSelferValueTypeMap1234 { - yyl3057 := r.ReadMapStart() - if yyl3057 == 0 { + yyct3195 := r.ContainerType() + if yyct3195 == codecSelferValueTypeMap1234 { + yyl3195 := r.ReadMapStart() + if yyl3195 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3057, d) + x.codecDecodeSelfFromMap(yyl3195, d) } - } else if yyct3057 == codecSelferValueTypeArray1234 { - yyl3057 := r.ReadArrayStart() - if yyl3057 == 0 { + } else if yyct3195 == codecSelferValueTypeArray1234 { + yyl3195 := r.ReadArrayStart() + if yyl3195 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3057, d) + x.codecDecodeSelfFromArray(yyl3195, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -39171,12 +40867,12 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3058Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3058Slc - var yyhl3058 bool = l >= 0 - for yyj3058 := 0; ; yyj3058++ { - if yyhl3058 { - if yyj3058 >= l { + var yys3196Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3196Slc + var yyhl3196 bool = l >= 0 + for yyj3196 := 0; ; yyj3196++ { + if yyhl3196 { + if yyj3196 >= l { break } } else { @@ -39185,10 +40881,10 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3058Slc = r.DecodeBytes(yys3058Slc, true, true) - yys3058 := string(yys3058Slc) + yys3196Slc = r.DecodeBytes(yys3196Slc, true, true) + yys3196 := string(yys3196Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3058 { + switch yys3196 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -39205,27 +40901,27 @@ func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3061 := &x.ObjectMeta - yyv3061.CodecDecodeSelf(d) + yyv3199 := &x.ObjectMeta + yyv3199.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { - yyv3062 := &x.Spec - yyv3062.CodecDecodeSelf(d) + yyv3200 := &x.Spec + yyv3200.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { - yyv3063 := &x.Status - yyv3063.CodecDecodeSelf(d) + yyv3201 := &x.Status + yyv3201.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3058) - } // end switch yys3058 - } // end for yyj3058 + z.DecStructFieldNotFound(-1, yys3196) + } // end switch yys3196 + } // end for yyj3196 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -39233,16 +40929,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3064 int - var yyb3064 bool - var yyhl3064 bool = l >= 0 - yyj3064++ - if yyhl3064 { - yyb3064 = yyj3064 > l + var yyj3202 int + var yyb3202 bool + var yyhl3202 bool = l >= 0 + yyj3202++ + if yyhl3202 { + yyb3202 = yyj3202 > l } else { - yyb3064 = r.CheckBreak() + yyb3202 = r.CheckBreak() } - if yyb3064 { + if yyb3202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39252,13 +40948,13 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3064++ - if yyhl3064 { - yyb3064 = yyj3064 > l + yyj3202++ + if yyhl3202 { + yyb3202 = yyj3202 > l } else { - yyb3064 = r.CheckBreak() + yyb3202 = r.CheckBreak() } - if yyb3064 { + if yyb3202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39268,13 +40964,13 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3064++ - if yyhl3064 { - yyb3064 = yyj3064 > l + yyj3202++ + if yyhl3202 { + yyb3202 = yyj3202 > l } else { - yyb3064 = r.CheckBreak() + yyb3202 = r.CheckBreak() } - if yyb3064 { + if yyb3202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39282,16 +40978,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3067 := &x.ObjectMeta - yyv3067.CodecDecodeSelf(d) + yyv3205 := &x.ObjectMeta + yyv3205.CodecDecodeSelf(d) } - yyj3064++ - if yyhl3064 { - yyb3064 = yyj3064 > l + yyj3202++ + if yyhl3202 { + yyb3202 = yyj3202 > l } else { - yyb3064 = r.CheckBreak() + yyb3202 = r.CheckBreak() } - if yyb3064 { + if yyb3202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39299,16 +40995,16 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { - yyv3068 := &x.Spec - yyv3068.CodecDecodeSelf(d) + yyv3206 := &x.Spec + yyv3206.CodecDecodeSelf(d) } - yyj3064++ - if yyhl3064 { - yyb3064 = yyj3064 > l + yyj3202++ + if yyhl3202 { + yyb3202 = yyj3202 > l } else { - yyb3064 = r.CheckBreak() + yyb3202 = r.CheckBreak() } - if yyb3064 { + if yyb3202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -39316,21 +41012,21 @@ func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { - yyv3069 := &x.Status - yyv3069.CodecDecodeSelf(d) + yyv3207 := &x.Status + yyv3207.CodecDecodeSelf(d) } for { - yyj3064++ - if yyhl3064 { - yyb3064 = yyj3064 > l + yyj3202++ + if yyhl3202 { + yyb3202 = yyj3202 > l } else { - yyb3064 = r.CheckBreak() + yyb3202 = r.CheckBreak() } - if yyb3064 { + if yyb3202 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3064-1, "") + z.DecStructFieldNotFound(yyj3202-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -39342,37 +41038,37 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3070 := z.EncBinary() - _ = yym3070 + yym3208 := z.EncBinary() + _ = yym3208 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3071 := !z.EncBinary() - yy2arr3071 := z.EncBasicHandle().StructToArray - var yyq3071 [4]bool - _, _, _ = yysep3071, yyq3071, yy2arr3071 - const yyr3071 bool = false - yyq3071[0] = x.Kind != "" - yyq3071[1] = x.APIVersion != "" - yyq3071[2] = true - var yynn3071 int - if yyr3071 || yy2arr3071 { + yysep3209 := !z.EncBinary() + yy2arr3209 := z.EncBasicHandle().StructToArray + var yyq3209 [4]bool + _, _, _ = yysep3209, yyq3209, yy2arr3209 + const yyr3209 bool = false + yyq3209[0] = x.Kind != "" + yyq3209[1] = x.APIVersion != "" + yyq3209[2] = true + var yynn3209 int + if yyr3209 || yy2arr3209 { r.EncodeArrayStart(4) } else { - yynn3071 = 1 - for _, b := range yyq3071 { + yynn3209 = 1 + for _, b := range yyq3209 { if b { - yynn3071++ + yynn3209++ } } - r.EncodeMapStart(yynn3071) - yynn3071 = 0 + r.EncodeMapStart(yynn3209) + yynn3209 = 0 } - if yyr3071 || yy2arr3071 { + if yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3071[0] { - yym3073 := z.EncBinary() - _ = yym3073 + if yyq3209[0] { + yym3211 := z.EncBinary() + _ = yym3211 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -39381,23 +41077,23 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3071[0] { + if yyq3209[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3074 := z.EncBinary() - _ = yym3074 + yym3212 := z.EncBinary() + _ = yym3212 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3071 || yy2arr3071 { + if yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3071[1] { - yym3076 := z.EncBinary() - _ = yym3076 + if yyq3209[1] { + yym3214 := z.EncBinary() + _ = yym3214 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -39406,54 +41102,54 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3071[1] { + if yyq3209[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3077 := z.EncBinary() - _ = yym3077 + yym3215 := z.EncBinary() + _ = yym3215 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3071 || yy2arr3071 { + if yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3071[2] { - yy3079 := &x.ListMeta - yym3080 := z.EncBinary() - _ = yym3080 + if yyq3209[2] { + yy3217 := &x.ListMeta + yym3218 := z.EncBinary() + _ = yym3218 if false { - } else if z.HasExtensions() && z.EncExt(yy3079) { + } else if z.HasExtensions() && z.EncExt(yy3217) { } else { - z.EncFallback(yy3079) + z.EncFallback(yy3217) } } else { r.EncodeNil() } } else { - if yyq3071[2] { + if yyq3209[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3081 := &x.ListMeta - yym3082 := z.EncBinary() - _ = yym3082 + yy3219 := &x.ListMeta + yym3220 := z.EncBinary() + _ = yym3220 if false { - } else if z.HasExtensions() && z.EncExt(yy3081) { + } else if z.HasExtensions() && z.EncExt(yy3219) { } else { - z.EncFallback(yy3081) + z.EncFallback(yy3219) } } } - if yyr3071 || yy2arr3071 { + if yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3084 := z.EncBinary() - _ = yym3084 + yym3222 := z.EncBinary() + _ = yym3222 if false { } else { h.encSliceNode(([]Node)(x.Items), e) @@ -39466,15 +41162,15 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3085 := z.EncBinary() - _ = yym3085 + yym3223 := z.EncBinary() + _ = yym3223 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } - if yyr3071 || yy2arr3071 { + if yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -39484,1660 +41180,6 @@ func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { } func (x *NodeList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3086 := z.DecBinary() - _ = yym3086 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3087 := r.ContainerType() - if yyct3087 == codecSelferValueTypeMap1234 { - yyl3087 := r.ReadMapStart() - if yyl3087 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3087, d) - } - } else if yyct3087 == codecSelferValueTypeArray1234 { - yyl3087 := r.ReadArrayStart() - if yyl3087 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3087, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3088Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3088Slc - var yyhl3088 bool = l >= 0 - for yyj3088 := 0; ; yyj3088++ { - if yyhl3088 { - if yyj3088 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3088Slc = r.DecodeBytes(yys3088Slc, true, true) - yys3088 := string(yys3088Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3088 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv3091 := &x.ListMeta - yym3092 := z.DecBinary() - _ = yym3092 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3091) { - } else { - z.DecFallback(yyv3091, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3093 := &x.Items - yym3094 := z.DecBinary() - _ = yym3094 - if false { - } else { - h.decSliceNode((*[]Node)(yyv3093), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3088) - } // end switch yys3088 - } // end for yyj3088 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3095 int - var yyb3095 bool - var yyhl3095 bool = l >= 0 - yyj3095++ - if yyhl3095 { - yyb3095 = yyj3095 > l - } else { - yyb3095 = r.CheckBreak() - } - if yyb3095 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3095++ - if yyhl3095 { - yyb3095 = yyj3095 > l - } else { - yyb3095 = r.CheckBreak() - } - if yyb3095 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3095++ - if yyhl3095 { - yyb3095 = yyj3095 > l - } else { - yyb3095 = r.CheckBreak() - } - if yyb3095 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv3098 := &x.ListMeta - yym3099 := z.DecBinary() - _ = yym3099 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3098) { - } else { - z.DecFallback(yyv3098, false) - } - } - yyj3095++ - if yyhl3095 { - yyb3095 = yyj3095 > l - } else { - yyb3095 = r.CheckBreak() - } - if yyb3095 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3100 := &x.Items - yym3101 := z.DecBinary() - _ = yym3101 - if false { - } else { - h.decSliceNode((*[]Node)(yyv3100), d) - } - } - for { - yyj3095++ - if yyhl3095 { - yyb3095 = yyj3095 > l - } else { - yyb3095 = r.CheckBreak() - } - if yyb3095 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3095-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym3102 := z.EncBinary() - _ = yym3102 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *FinalizerName) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3103 := z.DecBinary() - _ = yym3103 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3104 := z.EncBinary() - _ = yym3104 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3105 := !z.EncBinary() - yy2arr3105 := z.EncBasicHandle().StructToArray - var yyq3105 [1]bool - _, _, _ = yysep3105, yyq3105, yy2arr3105 - const yyr3105 bool = false - yyq3105[0] = len(x.Finalizers) != 0 - var yynn3105 int - if yyr3105 || yy2arr3105 { - r.EncodeArrayStart(1) - } else { - yynn3105 = 0 - for _, b := range yyq3105 { - if b { - yynn3105++ - } - } - r.EncodeMapStart(yynn3105) - yynn3105 = 0 - } - if yyr3105 || yy2arr3105 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3105[0] { - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym3107 := z.EncBinary() - _ = yym3107 - if false { - } else { - h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq3105[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("finalizers")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym3108 := z.EncBinary() - _ = yym3108 - if false { - } else { - h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) - } - } - } - } - if yyr3105 || yy2arr3105 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NamespaceSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3109 := z.DecBinary() - _ = yym3109 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3110 := r.ContainerType() - if yyct3110 == codecSelferValueTypeMap1234 { - yyl3110 := r.ReadMapStart() - if yyl3110 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3110, d) - } - } else if yyct3110 == codecSelferValueTypeArray1234 { - yyl3110 := r.ReadArrayStart() - if yyl3110 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3110, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3111Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3111Slc - var yyhl3111 bool = l >= 0 - for yyj3111 := 0; ; yyj3111++ { - if yyhl3111 { - if yyj3111 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3111Slc = r.DecodeBytes(yys3111Slc, true, true) - yys3111 := string(yys3111Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3111 { - case "finalizers": - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv3112 := &x.Finalizers - yym3113 := z.DecBinary() - _ = yym3113 - if false { - } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv3112), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3111) - } // end switch yys3111 - } // end for yyj3111 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3114 int - var yyb3114 bool - var yyhl3114 bool = l >= 0 - yyj3114++ - if yyhl3114 { - yyb3114 = yyj3114 > l - } else { - yyb3114 = r.CheckBreak() - } - if yyb3114 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Finalizers = nil - } else { - yyv3115 := &x.Finalizers - yym3116 := z.DecBinary() - _ = yym3116 - if false { - } else { - h.decSliceFinalizerName((*[]FinalizerName)(yyv3115), d) - } - } - for { - yyj3114++ - if yyhl3114 { - yyb3114 = yyj3114 > l - } else { - yyb3114 = r.CheckBreak() - } - if yyb3114 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3114-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3117 := z.EncBinary() - _ = yym3117 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3118 := !z.EncBinary() - yy2arr3118 := z.EncBasicHandle().StructToArray - var yyq3118 [1]bool - _, _, _ = yysep3118, yyq3118, yy2arr3118 - const yyr3118 bool = false - yyq3118[0] = x.Phase != "" - var yynn3118 int - if yyr3118 || yy2arr3118 { - r.EncodeArrayStart(1) - } else { - yynn3118 = 0 - for _, b := range yyq3118 { - if b { - yynn3118++ - } - } - r.EncodeMapStart(yynn3118) - yynn3118 = 0 - } - if yyr3118 || yy2arr3118 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3118[0] { - x.Phase.CodecEncodeSelf(e) - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3118[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("phase")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Phase.CodecEncodeSelf(e) - } - } - if yyr3118 || yy2arr3118 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NamespaceStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3120 := z.DecBinary() - _ = yym3120 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3121 := r.ContainerType() - if yyct3121 == codecSelferValueTypeMap1234 { - yyl3121 := r.ReadMapStart() - if yyl3121 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3121, d) - } - } else if yyct3121 == codecSelferValueTypeArray1234 { - yyl3121 := r.ReadArrayStart() - if yyl3121 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3121, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3122Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3122Slc - var yyhl3122 bool = l >= 0 - for yyj3122 := 0; ; yyj3122++ { - if yyhl3122 { - if yyj3122 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3122Slc = r.DecodeBytes(yys3122Slc, true, true) - yys3122 := string(yys3122Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3122 { - case "phase": - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = NamespacePhase(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3122) - } // end switch yys3122 - } // end for yyj3122 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3124 int - var yyb3124 bool - var yyhl3124 bool = l >= 0 - yyj3124++ - if yyhl3124 { - yyb3124 = yyj3124 > l - } else { - yyb3124 = r.CheckBreak() - } - if yyb3124 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Phase = "" - } else { - x.Phase = NamespacePhase(r.DecodeString()) - } - for { - yyj3124++ - if yyhl3124 { - yyb3124 = yyj3124 > l - } else { - yyb3124 = r.CheckBreak() - } - if yyb3124 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3124-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym3126 := z.EncBinary() - _ = yym3126 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *NamespacePhase) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3127 := z.DecBinary() - _ = yym3127 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3128 := z.EncBinary() - _ = yym3128 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3129 := !z.EncBinary() - yy2arr3129 := z.EncBasicHandle().StructToArray - var yyq3129 [5]bool - _, _, _ = yysep3129, yyq3129, yy2arr3129 - const yyr3129 bool = false - yyq3129[0] = x.Kind != "" - yyq3129[1] = x.APIVersion != "" - yyq3129[2] = true - yyq3129[3] = true - yyq3129[4] = true - var yynn3129 int - if yyr3129 || yy2arr3129 { - r.EncodeArrayStart(5) - } else { - yynn3129 = 0 - for _, b := range yyq3129 { - if b { - yynn3129++ - } - } - r.EncodeMapStart(yynn3129) - yynn3129 = 0 - } - if yyr3129 || yy2arr3129 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3129[0] { - yym3131 := z.EncBinary() - _ = yym3131 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3129[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3132 := z.EncBinary() - _ = yym3132 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3129 || yy2arr3129 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3129[1] { - yym3134 := z.EncBinary() - _ = yym3134 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3129[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3135 := z.EncBinary() - _ = yym3135 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3129 || yy2arr3129 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3129[2] { - yy3137 := &x.ObjectMeta - yy3137.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3129[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3138 := &x.ObjectMeta - yy3138.CodecEncodeSelf(e) - } - } - if yyr3129 || yy2arr3129 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3129[3] { - yy3140 := &x.Spec - yy3140.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3129[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3141 := &x.Spec - yy3141.CodecEncodeSelf(e) - } - } - if yyr3129 || yy2arr3129 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3129[4] { - yy3143 := &x.Status - yy3143.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3129[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("status")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3144 := &x.Status - yy3144.CodecEncodeSelf(e) - } - } - if yyr3129 || yy2arr3129 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3145 := z.DecBinary() - _ = yym3145 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3146 := r.ContainerType() - if yyct3146 == codecSelferValueTypeMap1234 { - yyl3146 := r.ReadMapStart() - if yyl3146 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3146, d) - } - } else if yyct3146 == codecSelferValueTypeArray1234 { - yyl3146 := r.ReadArrayStart() - if yyl3146 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3146, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3147Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3147Slc - var yyhl3147 bool = l >= 0 - for yyj3147 := 0; ; yyj3147++ { - if yyhl3147 { - if yyj3147 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3147Slc = r.DecodeBytes(yys3147Slc, true, true) - yys3147 := string(yys3147Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3147 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv3150 := &x.ObjectMeta - yyv3150.CodecDecodeSelf(d) - } - case "spec": - if r.TryDecodeAsNil() { - x.Spec = NamespaceSpec{} - } else { - yyv3151 := &x.Spec - yyv3151.CodecDecodeSelf(d) - } - case "status": - if r.TryDecodeAsNil() { - x.Status = NamespaceStatus{} - } else { - yyv3152 := &x.Status - yyv3152.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3147) - } // end switch yys3147 - } // end for yyj3147 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3153 int - var yyb3153 bool - var yyhl3153 bool = l >= 0 - yyj3153++ - if yyhl3153 { - yyb3153 = yyj3153 > l - } else { - yyb3153 = r.CheckBreak() - } - if yyb3153 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3153++ - if yyhl3153 { - yyb3153 = yyj3153 > l - } else { - yyb3153 = r.CheckBreak() - } - if yyb3153 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3153++ - if yyhl3153 { - yyb3153 = yyj3153 > l - } else { - yyb3153 = r.CheckBreak() - } - if yyb3153 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv3156 := &x.ObjectMeta - yyv3156.CodecDecodeSelf(d) - } - yyj3153++ - if yyhl3153 { - yyb3153 = yyj3153 > l - } else { - yyb3153 = r.CheckBreak() - } - if yyb3153 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Spec = NamespaceSpec{} - } else { - yyv3157 := &x.Spec - yyv3157.CodecDecodeSelf(d) - } - yyj3153++ - if yyhl3153 { - yyb3153 = yyj3153 > l - } else { - yyb3153 = r.CheckBreak() - } - if yyb3153 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Status = NamespaceStatus{} - } else { - yyv3158 := &x.Status - yyv3158.CodecDecodeSelf(d) - } - for { - yyj3153++ - if yyhl3153 { - yyb3153 = yyj3153 > l - } else { - yyb3153 = r.CheckBreak() - } - if yyb3153 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3153-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3159 := z.EncBinary() - _ = yym3159 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3160 := !z.EncBinary() - yy2arr3160 := z.EncBasicHandle().StructToArray - var yyq3160 [4]bool - _, _, _ = yysep3160, yyq3160, yy2arr3160 - const yyr3160 bool = false - yyq3160[0] = x.Kind != "" - yyq3160[1] = x.APIVersion != "" - yyq3160[2] = true - var yynn3160 int - if yyr3160 || yy2arr3160 { - r.EncodeArrayStart(4) - } else { - yynn3160 = 1 - for _, b := range yyq3160 { - if b { - yynn3160++ - } - } - r.EncodeMapStart(yynn3160) - yynn3160 = 0 - } - if yyr3160 || yy2arr3160 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3160[0] { - yym3162 := z.EncBinary() - _ = yym3162 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3160[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3163 := z.EncBinary() - _ = yym3163 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3160 || yy2arr3160 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3160[1] { - yym3165 := z.EncBinary() - _ = yym3165 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3160[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3166 := z.EncBinary() - _ = yym3166 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3160 || yy2arr3160 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3160[2] { - yy3168 := &x.ListMeta - yym3169 := z.EncBinary() - _ = yym3169 - if false { - } else if z.HasExtensions() && z.EncExt(yy3168) { - } else { - z.EncFallback(yy3168) - } - } else { - r.EncodeNil() - } - } else { - if yyq3160[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3170 := &x.ListMeta - yym3171 := z.EncBinary() - _ = yym3171 - if false { - } else if z.HasExtensions() && z.EncExt(yy3170) { - } else { - z.EncFallback(yy3170) - } - } - } - if yyr3160 || yy2arr3160 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3173 := z.EncBinary() - _ = yym3173 - if false { - } else { - h.encSliceNamespace(([]Namespace)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3174 := z.EncBinary() - _ = yym3174 - if false { - } else { - h.encSliceNamespace(([]Namespace)(x.Items), e) - } - } - } - if yyr3160 || yy2arr3160 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *NamespaceList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3175 := z.DecBinary() - _ = yym3175 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3176 := r.ContainerType() - if yyct3176 == codecSelferValueTypeMap1234 { - yyl3176 := r.ReadMapStart() - if yyl3176 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3176, d) - } - } else if yyct3176 == codecSelferValueTypeArray1234 { - yyl3176 := r.ReadArrayStart() - if yyl3176 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3176, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3177Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3177Slc - var yyhl3177 bool = l >= 0 - for yyj3177 := 0; ; yyj3177++ { - if yyhl3177 { - if yyj3177 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3177Slc = r.DecodeBytes(yys3177Slc, true, true) - yys3177 := string(yys3177Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3177 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv3180 := &x.ListMeta - yym3181 := z.DecBinary() - _ = yym3181 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3180) { - } else { - z.DecFallback(yyv3180, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3182 := &x.Items - yym3183 := z.DecBinary() - _ = yym3183 - if false { - } else { - h.decSliceNamespace((*[]Namespace)(yyv3182), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3177) - } // end switch yys3177 - } // end for yyj3177 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3184 int - var yyb3184 bool - var yyhl3184 bool = l >= 0 - yyj3184++ - if yyhl3184 { - yyb3184 = yyj3184 > l - } else { - yyb3184 = r.CheckBreak() - } - if yyb3184 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3184++ - if yyhl3184 { - yyb3184 = yyj3184 > l - } else { - yyb3184 = r.CheckBreak() - } - if yyb3184 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3184++ - if yyhl3184 { - yyb3184 = yyj3184 > l - } else { - yyb3184 = r.CheckBreak() - } - if yyb3184 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv3187 := &x.ListMeta - yym3188 := z.DecBinary() - _ = yym3188 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3187) { - } else { - z.DecFallback(yyv3187, false) - } - } - yyj3184++ - if yyhl3184 { - yyb3184 = yyj3184 > l - } else { - yyb3184 = r.CheckBreak() - } - if yyb3184 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3189 := &x.Items - yym3190 := z.DecBinary() - _ = yym3190 - if false { - } else { - h.decSliceNamespace((*[]Namespace)(yyv3189), d) - } - } - for { - yyj3184++ - if yyhl3184 { - yyb3184 = yyj3184 > l - } else { - yyb3184 = r.CheckBreak() - } - if yyb3184 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3184-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3191 := z.EncBinary() - _ = yym3191 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3192 := !z.EncBinary() - yy2arr3192 := z.EncBasicHandle().StructToArray - var yyq3192 [4]bool - _, _, _ = yysep3192, yyq3192, yy2arr3192 - const yyr3192 bool = false - yyq3192[0] = x.Kind != "" - yyq3192[1] = x.APIVersion != "" - yyq3192[2] = true - var yynn3192 int - if yyr3192 || yy2arr3192 { - r.EncodeArrayStart(4) - } else { - yynn3192 = 1 - for _, b := range yyq3192 { - if b { - yynn3192++ - } - } - r.EncodeMapStart(yynn3192) - yynn3192 = 0 - } - if yyr3192 || yy2arr3192 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3192[0] { - yym3194 := z.EncBinary() - _ = yym3194 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3192[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3195 := z.EncBinary() - _ = yym3195 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3192 || yy2arr3192 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3192[1] { - yym3197 := z.EncBinary() - _ = yym3197 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3192[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3198 := z.EncBinary() - _ = yym3198 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3192 || yy2arr3192 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3192[2] { - yy3200 := &x.ObjectMeta - yy3200.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3192[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3201 := &x.ObjectMeta - yy3201.CodecEncodeSelf(e) - } - } - if yyr3192 || yy2arr3192 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3203 := &x.Target - yy3203.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("target")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3204 := &x.Target - yy3204.CodecEncodeSelf(e) - } - if yyr3192 || yy2arr3192 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Binding) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3205 := z.DecBinary() - _ = yym3205 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3206 := r.ContainerType() - if yyct3206 == codecSelferValueTypeMap1234 { - yyl3206 := r.ReadMapStart() - if yyl3206 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3206, d) - } - } else if yyct3206 == codecSelferValueTypeArray1234 { - yyl3206 := r.ReadArrayStart() - if yyl3206 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3206, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3207Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3207Slc - var yyhl3207 bool = l >= 0 - for yyj3207 := 0; ; yyj3207++ { - if yyhl3207 { - if yyj3207 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3207Slc = r.DecodeBytes(yys3207Slc, true, true) - yys3207 := string(yys3207Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3207 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv3210 := &x.ObjectMeta - yyv3210.CodecDecodeSelf(d) - } - case "target": - if r.TryDecodeAsNil() { - x.Target = ObjectReference{} - } else { - yyv3211 := &x.Target - yyv3211.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3207) - } // end switch yys3207 - } // end for yyj3207 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3212 int - var yyb3212 bool - var yyhl3212 bool = l >= 0 - yyj3212++ - if yyhl3212 { - yyb3212 = yyj3212 > l - } else { - yyb3212 = r.CheckBreak() - } - if yyb3212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3212++ - if yyhl3212 { - yyb3212 = yyj3212 > l - } else { - yyb3212 = r.CheckBreak() - } - if yyb3212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3212++ - if yyhl3212 { - yyb3212 = yyj3212 > l - } else { - yyb3212 = r.CheckBreak() - } - if yyb3212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv3215 := &x.ObjectMeta - yyv3215.CodecDecodeSelf(d) - } - yyj3212++ - if yyhl3212 { - yyb3212 = yyj3212 > l - } else { - yyb3212 = r.CheckBreak() - } - if yyb3212 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Target = ObjectReference{} - } else { - yyv3216 := &x.Target - yyv3216.CodecDecodeSelf(d) - } - for { - yyj3212++ - if yyhl3212 { - yyb3212 = yyj3212 > l - } else { - yyb3212 = r.CheckBreak() - } - if yyb3212 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3212-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3217 := z.EncBinary() - _ = yym3217 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3218 := !z.EncBinary() - yy2arr3218 := z.EncBasicHandle().StructToArray - var yyq3218 [1]bool - _, _, _ = yysep3218, yyq3218, yy2arr3218 - const yyr3218 bool = false - yyq3218[0] = x.UID != nil - var yynn3218 int - if yyr3218 || yy2arr3218 { - r.EncodeArrayStart(1) - } else { - yynn3218 = 0 - for _, b := range yyq3218 { - if b { - yynn3218++ - } - } - r.EncodeMapStart(yynn3218) - yynn3218 = 0 - } - if yyr3218 || yy2arr3218 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3218[0] { - if x.UID == nil { - r.EncodeNil() - } else { - yy3220 := *x.UID - yym3221 := z.EncBinary() - _ = yym3221 - if false { - } else if z.HasExtensions() && z.EncExt(yy3220) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yy3220)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq3218[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("uid")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.UID == nil { - r.EncodeNil() - } else { - yy3222 := *x.UID - yym3223 := z.EncBinary() - _ = yym3223 - if false { - } else if z.HasExtensions() && z.EncExt(yy3222) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(yy3222)) - } - } - } - } - if yyr3218 || yy2arr3218 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -41167,7 +41209,7 @@ func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -41189,319 +41231,6 @@ func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { yys3226 := string(yys3226Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3226 { - case "uid": - if r.TryDecodeAsNil() { - if x.UID != nil { - x.UID = nil - } - } else { - if x.UID == nil { - x.UID = new(pkg1_types.UID) - } - yym3228 := z.DecBinary() - _ = yym3228 - if false { - } else if z.HasExtensions() && z.DecExt(x.UID) { - } else { - *((*string)(x.UID)) = r.DecodeString() - } - } - default: - z.DecStructFieldNotFound(-1, yys3226) - } // end switch yys3226 - } // end for yyj3226 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3229 int - var yyb3229 bool - var yyhl3229 bool = l >= 0 - yyj3229++ - if yyhl3229 { - yyb3229 = yyj3229 > l - } else { - yyb3229 = r.CheckBreak() - } - if yyb3229 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.UID != nil { - x.UID = nil - } - } else { - if x.UID == nil { - x.UID = new(pkg1_types.UID) - } - yym3231 := z.DecBinary() - _ = yym3231 - if false { - } else if z.HasExtensions() && z.DecExt(x.UID) { - } else { - *((*string)(x.UID)) = r.DecodeString() - } - } - for { - yyj3229++ - if yyhl3229 { - yyb3229 = yyj3229 > l - } else { - yyb3229 = r.CheckBreak() - } - if yyb3229 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3229-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3232 := z.EncBinary() - _ = yym3232 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3233 := !z.EncBinary() - yy2arr3233 := z.EncBasicHandle().StructToArray - var yyq3233 [5]bool - _, _, _ = yysep3233, yyq3233, yy2arr3233 - const yyr3233 bool = false - yyq3233[0] = x.Kind != "" - yyq3233[1] = x.APIVersion != "" - yyq3233[2] = x.GracePeriodSeconds != nil - yyq3233[3] = x.Preconditions != nil - yyq3233[4] = x.OrphanDependents != nil - var yynn3233 int - if yyr3233 || yy2arr3233 { - r.EncodeArrayStart(5) - } else { - yynn3233 = 0 - for _, b := range yyq3233 { - if b { - yynn3233++ - } - } - r.EncodeMapStart(yynn3233) - yynn3233 = 0 - } - if yyr3233 || yy2arr3233 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3233[0] { - yym3235 := z.EncBinary() - _ = yym3235 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3233[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3236 := z.EncBinary() - _ = yym3236 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3233 || yy2arr3233 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3233[1] { - yym3238 := z.EncBinary() - _ = yym3238 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3233[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3239 := z.EncBinary() - _ = yym3239 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3233 || yy2arr3233 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3233[2] { - if x.GracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy3241 := *x.GracePeriodSeconds - yym3242 := z.EncBinary() - _ = yym3242 - if false { - } else { - r.EncodeInt(int64(yy3241)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq3233[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.GracePeriodSeconds == nil { - r.EncodeNil() - } else { - yy3243 := *x.GracePeriodSeconds - yym3244 := z.EncBinary() - _ = yym3244 - if false { - } else { - r.EncodeInt(int64(yy3243)) - } - } - } - } - if yyr3233 || yy2arr3233 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3233[3] { - if x.Preconditions == nil { - r.EncodeNil() - } else { - x.Preconditions.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq3233[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("preconditions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Preconditions == nil { - r.EncodeNil() - } else { - x.Preconditions.CodecEncodeSelf(e) - } - } - } - if yyr3233 || yy2arr3233 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3233[4] { - if x.OrphanDependents == nil { - r.EncodeNil() - } else { - yy3247 := *x.OrphanDependents - yym3248 := z.EncBinary() - _ = yym3248 - if false { - } else { - r.EncodeBool(bool(yy3247)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq3233[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.OrphanDependents == nil { - r.EncodeNil() - } else { - yy3249 := *x.OrphanDependents - yym3250 := z.EncBinary() - _ = yym3250 - if false { - } else { - r.EncodeBool(bool(yy3249)) - } - } - } - } - if yyr3233 || yy2arr3233 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *DeleteOptions) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3251 := z.DecBinary() - _ = yym3251 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3252 := r.ContainerType() - if yyct3252 == codecSelferValueTypeMap1234 { - yyl3252 := r.ReadMapStart() - if yyl3252 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3252, d) - } - } else if yyct3252 == codecSelferValueTypeArray1234 { - yyl3252 := r.ReadArrayStart() - if yyl3252 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3252, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3253Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3253Slc - var yyhl3253 bool = l >= 0 - for yyj3253 := 0; ; yyj3253++ { - if yyhl3253 { - if yyj3253 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3253Slc = r.DecodeBytes(yys3253Slc, true, true) - yys3253 := string(yys3253Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3253 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -41514,70 +41243,52 @@ func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - case "gracePeriodSeconds": + case "metadata": if r.TryDecodeAsNil() { - if x.GracePeriodSeconds != nil { - x.GracePeriodSeconds = nil - } + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - if x.GracePeriodSeconds == nil { - x.GracePeriodSeconds = new(int64) - } - yym3257 := z.DecBinary() - _ = yym3257 + yyv3229 := &x.ListMeta + yym3230 := z.DecBinary() + _ = yym3230 if false { + } else if z.HasExtensions() && z.DecExt(yyv3229) { } else { - *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) + z.DecFallback(yyv3229, false) } } - case "preconditions": + case "items": if r.TryDecodeAsNil() { - if x.Preconditions != nil { - x.Preconditions = nil - } + x.Items = nil } else { - if x.Preconditions == nil { - x.Preconditions = new(Preconditions) - } - x.Preconditions.CodecDecodeSelf(d) - } - case "orphanDependents": - if r.TryDecodeAsNil() { - if x.OrphanDependents != nil { - x.OrphanDependents = nil - } - } else { - if x.OrphanDependents == nil { - x.OrphanDependents = new(bool) - } - yym3260 := z.DecBinary() - _ = yym3260 + yyv3231 := &x.Items + yym3232 := z.DecBinary() + _ = yym3232 if false { } else { - *((*bool)(x.OrphanDependents)) = r.DecodeBool() + h.decSliceNode((*[]Node)(yyv3231), d) } } default: - z.DecStructFieldNotFound(-1, yys3253) - } // end switch yys3253 - } // end for yyj3253 + z.DecStructFieldNotFound(-1, yys3226) + } // end switch yys3226 + } // end for yyj3226 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3261 int - var yyb3261 bool - var yyhl3261 bool = l >= 0 - yyj3261++ - if yyhl3261 { - yyb3261 = yyj3261 > l + var yyj3233 int + var yyb3233 bool + var yyhl3233 bool = l >= 0 + yyj3233++ + if yyhl3233 { + yyb3233 = yyj3233 > l } else { - yyb3261 = r.CheckBreak() + yyb3233 = r.CheckBreak() } - if yyb3261 { + if yyb3233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41587,13 +41298,13 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3261++ - if yyhl3261 { - yyb3261 = yyj3261 > l + yyj3233++ + if yyhl3233 { + yyb3233 = yyj3233 > l } else { - yyb3261 = r.CheckBreak() + yyb3233 = r.CheckBreak() } - if yyb3261 { + if yyb3233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41603,216 +41314,158 @@ func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3261++ - if yyhl3261 { - yyb3261 = yyj3261 > l + yyj3233++ + if yyhl3233 { + yyb3233 = yyj3233 > l } else { - yyb3261 = r.CheckBreak() + yyb3233 = r.CheckBreak() } - if yyb3261 { + if yyb3233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - if x.GracePeriodSeconds != nil { - x.GracePeriodSeconds = nil - } + x.ListMeta = pkg2_unversioned.ListMeta{} } else { - if x.GracePeriodSeconds == nil { - x.GracePeriodSeconds = new(int64) + yyv3236 := &x.ListMeta + yym3237 := z.DecBinary() + _ = yym3237 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3236) { + } else { + z.DecFallback(yyv3236, false) } - yym3265 := z.DecBinary() - _ = yym3265 + } + yyj3233++ + if yyhl3233 { + yyb3233 = yyj3233 > l + } else { + yyb3233 = r.CheckBreak() + } + if yyb3233 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3238 := &x.Items + yym3239 := z.DecBinary() + _ = yym3239 if false { } else { - *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) - } - } - yyj3261++ - if yyhl3261 { - yyb3261 = yyj3261 > l - } else { - yyb3261 = r.CheckBreak() - } - if yyb3261 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Preconditions != nil { - x.Preconditions = nil - } - } else { - if x.Preconditions == nil { - x.Preconditions = new(Preconditions) - } - x.Preconditions.CodecDecodeSelf(d) - } - yyj3261++ - if yyhl3261 { - yyb3261 = yyj3261 > l - } else { - yyb3261 = r.CheckBreak() - } - if yyb3261 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.OrphanDependents != nil { - x.OrphanDependents = nil - } - } else { - if x.OrphanDependents == nil { - x.OrphanDependents = new(bool) - } - yym3268 := z.DecBinary() - _ = yym3268 - if false { - } else { - *((*bool)(x.OrphanDependents)) = r.DecodeBool() + h.decSliceNode((*[]Node)(yyv3238), d) } } for { - yyj3261++ - if yyhl3261 { - yyb3261 = yyj3261 > l + yyj3233++ + if yyhl3233 { + yyb3233 = yyj3233 > l } else { - yyb3261 = r.CheckBreak() + yyb3233 = r.CheckBreak() } - if yyb3261 { + if yyb3233 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3261-1, "") + z.DecStructFieldNotFound(yyj3233-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { +func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3240 := z.EncBinary() + _ = yym3240 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *FinalizerName) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3241 := z.DecBinary() + _ = yym3241 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym3269 := z.EncBinary() - _ = yym3269 + yym3242 := z.EncBinary() + _ = yym3242 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3270 := !z.EncBinary() - yy2arr3270 := z.EncBasicHandle().StructToArray - var yyq3270 [4]bool - _, _, _ = yysep3270, yyq3270, yy2arr3270 - const yyr3270 bool = false - yyq3270[0] = x.Kind != "" - yyq3270[1] = x.APIVersion != "" - var yynn3270 int - if yyr3270 || yy2arr3270 { - r.EncodeArrayStart(4) + yysep3243 := !z.EncBinary() + yy2arr3243 := z.EncBasicHandle().StructToArray + var yyq3243 [1]bool + _, _, _ = yysep3243, yyq3243, yy2arr3243 + const yyr3243 bool = false + yyq3243[0] = len(x.Finalizers) != 0 + var yynn3243 int + if yyr3243 || yy2arr3243 { + r.EncodeArrayStart(1) } else { - yynn3270 = 2 - for _, b := range yyq3270 { + yynn3243 = 0 + for _, b := range yyq3243 { if b { - yynn3270++ + yynn3243++ } } - r.EncodeMapStart(yynn3270) - yynn3270 = 0 + r.EncodeMapStart(yynn3243) + yynn3243 = 0 } - if yyr3270 || yy2arr3270 { + if yyr3243 || yy2arr3243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3270[0] { - yym3272 := z.EncBinary() - _ = yym3272 - if false { + if yyq3243[0] { + if x.Finalizers == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + yym3245 := z.EncBinary() + _ = yym3245 + if false { + } else { + h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { - if yyq3270[0] { + if yyq3243[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) + r.EncodeString(codecSelferC_UTF81234, string("finalizers")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3273 := z.EncBinary() - _ = yym3273 - if false { + if x.Finalizers == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + yym3246 := z.EncBinary() + _ = yym3246 + if false { + } else { + h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) + } } } } - if yyr3270 || yy2arr3270 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3270[1] { - yym3275 := z.EncBinary() - _ = yym3275 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3270[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3276 := z.EncBinary() - _ = yym3276 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3270 || yy2arr3270 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3278 := z.EncBinary() - _ = yym3278 - if false { - } else { - r.EncodeBool(bool(x.Export)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("export")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3279 := z.EncBinary() - _ = yym3279 - if false { - } else { - r.EncodeBool(bool(x.Export)) - } - } - if yyr3270 || yy2arr3270 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3281 := z.EncBinary() - _ = yym3281 - if false { - } else { - r.EncodeBool(bool(x.Exact)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("exact")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3282 := z.EncBinary() - _ = yym3282 - if false { - } else { - r.EncodeBool(bool(x.Exact)) - } - } - if yyr3270 || yy2arr3270 { + if yyr3243 || yy2arr3243 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -41821,7 +41474,453 @@ func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *NamespaceSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3247 := z.DecBinary() + _ = yym3247 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3248 := r.ContainerType() + if yyct3248 == codecSelferValueTypeMap1234 { + yyl3248 := r.ReadMapStart() + if yyl3248 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3248, d) + } + } else if yyct3248 == codecSelferValueTypeArray1234 { + yyl3248 := r.ReadArrayStart() + if yyl3248 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3248, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3249Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3249Slc + var yyhl3249 bool = l >= 0 + for yyj3249 := 0; ; yyj3249++ { + if yyhl3249 { + if yyj3249 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3249Slc = r.DecodeBytes(yys3249Slc, true, true) + yys3249 := string(yys3249Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3249 { + case "finalizers": + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv3250 := &x.Finalizers + yym3251 := z.DecBinary() + _ = yym3251 + if false { + } else { + h.decSliceFinalizerName((*[]FinalizerName)(yyv3250), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3249) + } // end switch yys3249 + } // end for yyj3249 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3252 int + var yyb3252 bool + var yyhl3252 bool = l >= 0 + yyj3252++ + if yyhl3252 { + yyb3252 = yyj3252 > l + } else { + yyb3252 = r.CheckBreak() + } + if yyb3252 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv3253 := &x.Finalizers + yym3254 := z.DecBinary() + _ = yym3254 + if false { + } else { + h.decSliceFinalizerName((*[]FinalizerName)(yyv3253), d) + } + } + for { + yyj3252++ + if yyhl3252 { + yyb3252 = yyj3252 > l + } else { + yyb3252 = r.CheckBreak() + } + if yyb3252 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3252-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3255 := z.EncBinary() + _ = yym3255 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3256 := !z.EncBinary() + yy2arr3256 := z.EncBasicHandle().StructToArray + var yyq3256 [1]bool + _, _, _ = yysep3256, yyq3256, yy2arr3256 + const yyr3256 bool = false + yyq3256[0] = x.Phase != "" + var yynn3256 int + if yyr3256 || yy2arr3256 { + r.EncodeArrayStart(1) + } else { + yynn3256 = 0 + for _, b := range yyq3256 { + if b { + yynn3256++ + } + } + r.EncodeMapStart(yynn3256) + yynn3256 = 0 + } + if yyr3256 || yy2arr3256 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3256[0] { + x.Phase.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3256[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("phase")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Phase.CodecEncodeSelf(e) + } + } + if yyr3256 || yy2arr3256 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NamespaceStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3258 := z.DecBinary() + _ = yym3258 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3259 := r.ContainerType() + if yyct3259 == codecSelferValueTypeMap1234 { + yyl3259 := r.ReadMapStart() + if yyl3259 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3259, d) + } + } else if yyct3259 == codecSelferValueTypeArray1234 { + yyl3259 := r.ReadArrayStart() + if yyl3259 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3259, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3260Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3260Slc + var yyhl3260 bool = l >= 0 + for yyj3260 := 0; ; yyj3260++ { + if yyhl3260 { + if yyj3260 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3260Slc = r.DecodeBytes(yys3260Slc, true, true) + yys3260 := string(yys3260Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3260 { + case "phase": + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = NamespacePhase(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys3260) + } // end switch yys3260 + } // end for yyj3260 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3262 int + var yyb3262 bool + var yyhl3262 bool = l >= 0 + yyj3262++ + if yyhl3262 { + yyb3262 = yyj3262 > l + } else { + yyb3262 = r.CheckBreak() + } + if yyb3262 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Phase = "" + } else { + x.Phase = NamespacePhase(r.DecodeString()) + } + for { + yyj3262++ + if yyhl3262 { + yyb3262 = yyj3262 > l + } else { + yyb3262 = r.CheckBreak() + } + if yyb3262 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3262-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3264 := z.EncBinary() + _ = yym3264 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *NamespacePhase) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3265 := z.DecBinary() + _ = yym3265 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3266 := z.EncBinary() + _ = yym3266 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3267 := !z.EncBinary() + yy2arr3267 := z.EncBasicHandle().StructToArray + var yyq3267 [5]bool + _, _, _ = yysep3267, yyq3267, yy2arr3267 + const yyr3267 bool = false + yyq3267[0] = x.Kind != "" + yyq3267[1] = x.APIVersion != "" + yyq3267[2] = true + yyq3267[3] = true + yyq3267[4] = true + var yynn3267 int + if yyr3267 || yy2arr3267 { + r.EncodeArrayStart(5) + } else { + yynn3267 = 0 + for _, b := range yyq3267 { + if b { + yynn3267++ + } + } + r.EncodeMapStart(yynn3267) + yynn3267 = 0 + } + if yyr3267 || yy2arr3267 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3267[0] { + yym3269 := z.EncBinary() + _ = yym3269 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3267[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3270 := z.EncBinary() + _ = yym3270 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3267 || yy2arr3267 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3267[1] { + yym3272 := z.EncBinary() + _ = yym3272 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3267[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3273 := z.EncBinary() + _ = yym3273 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3267 || yy2arr3267 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3267[2] { + yy3275 := &x.ObjectMeta + yy3275.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3267[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3276 := &x.ObjectMeta + yy3276.CodecEncodeSelf(e) + } + } + if yyr3267 || yy2arr3267 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3267[3] { + yy3278 := &x.Spec + yy3278.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3267[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3279 := &x.Spec + yy3279.CodecEncodeSelf(e) + } + } + if yyr3267 || yy2arr3267 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3267[4] { + yy3281 := &x.Status + yy3281.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3267[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3282 := &x.Status + yy3282.CodecEncodeSelf(e) + } + } + if yyr3267 || yy2arr3267 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -41851,7 +41950,7 @@ func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -41873,6 +41972,1603 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { yys3285 := string(yys3285Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3285 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3288 := &x.ObjectMeta + yyv3288.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = NamespaceSpec{} + } else { + yyv3289 := &x.Spec + yyv3289.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = NamespaceStatus{} + } else { + yyv3290 := &x.Status + yyv3290.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3285) + } // end switch yys3285 + } // end for yyj3285 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3291 int + var yyb3291 bool + var yyhl3291 bool = l >= 0 + yyj3291++ + if yyhl3291 { + yyb3291 = yyj3291 > l + } else { + yyb3291 = r.CheckBreak() + } + if yyb3291 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3291++ + if yyhl3291 { + yyb3291 = yyj3291 > l + } else { + yyb3291 = r.CheckBreak() + } + if yyb3291 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3291++ + if yyhl3291 { + yyb3291 = yyj3291 > l + } else { + yyb3291 = r.CheckBreak() + } + if yyb3291 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3294 := &x.ObjectMeta + yyv3294.CodecDecodeSelf(d) + } + yyj3291++ + if yyhl3291 { + yyb3291 = yyj3291 > l + } else { + yyb3291 = r.CheckBreak() + } + if yyb3291 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = NamespaceSpec{} + } else { + yyv3295 := &x.Spec + yyv3295.CodecDecodeSelf(d) + } + yyj3291++ + if yyhl3291 { + yyb3291 = yyj3291 > l + } else { + yyb3291 = r.CheckBreak() + } + if yyb3291 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = NamespaceStatus{} + } else { + yyv3296 := &x.Status + yyv3296.CodecDecodeSelf(d) + } + for { + yyj3291++ + if yyhl3291 { + yyb3291 = yyj3291 > l + } else { + yyb3291 = r.CheckBreak() + } + if yyb3291 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3291-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3297 := z.EncBinary() + _ = yym3297 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3298 := !z.EncBinary() + yy2arr3298 := z.EncBasicHandle().StructToArray + var yyq3298 [4]bool + _, _, _ = yysep3298, yyq3298, yy2arr3298 + const yyr3298 bool = false + yyq3298[0] = x.Kind != "" + yyq3298[1] = x.APIVersion != "" + yyq3298[2] = true + var yynn3298 int + if yyr3298 || yy2arr3298 { + r.EncodeArrayStart(4) + } else { + yynn3298 = 1 + for _, b := range yyq3298 { + if b { + yynn3298++ + } + } + r.EncodeMapStart(yynn3298) + yynn3298 = 0 + } + if yyr3298 || yy2arr3298 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3298[0] { + yym3300 := z.EncBinary() + _ = yym3300 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3298[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3301 := z.EncBinary() + _ = yym3301 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3298 || yy2arr3298 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3298[1] { + yym3303 := z.EncBinary() + _ = yym3303 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3298[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3304 := z.EncBinary() + _ = yym3304 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3298 || yy2arr3298 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3298[2] { + yy3306 := &x.ListMeta + yym3307 := z.EncBinary() + _ = yym3307 + if false { + } else if z.HasExtensions() && z.EncExt(yy3306) { + } else { + z.EncFallback(yy3306) + } + } else { + r.EncodeNil() + } + } else { + if yyq3298[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3308 := &x.ListMeta + yym3309 := z.EncBinary() + _ = yym3309 + if false { + } else if z.HasExtensions() && z.EncExt(yy3308) { + } else { + z.EncFallback(yy3308) + } + } + } + if yyr3298 || yy2arr3298 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3311 := z.EncBinary() + _ = yym3311 + if false { + } else { + h.encSliceNamespace(([]Namespace)(x.Items), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3312 := z.EncBinary() + _ = yym3312 + if false { + } else { + h.encSliceNamespace(([]Namespace)(x.Items), e) + } + } + } + if yyr3298 || yy2arr3298 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *NamespaceList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3313 := z.DecBinary() + _ = yym3313 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3314 := r.ContainerType() + if yyct3314 == codecSelferValueTypeMap1234 { + yyl3314 := r.ReadMapStart() + if yyl3314 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3314, d) + } + } else if yyct3314 == codecSelferValueTypeArray1234 { + yyl3314 := r.ReadArrayStart() + if yyl3314 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3314, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3315Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3315Slc + var yyhl3315 bool = l >= 0 + for yyj3315 := 0; ; yyj3315++ { + if yyhl3315 { + if yyj3315 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3315Slc = r.DecodeBytes(yys3315Slc, true, true) + yys3315 := string(yys3315Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3315 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3318 := &x.ListMeta + yym3319 := z.DecBinary() + _ = yym3319 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3318) { + } else { + z.DecFallback(yyv3318, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3320 := &x.Items + yym3321 := z.DecBinary() + _ = yym3321 + if false { + } else { + h.decSliceNamespace((*[]Namespace)(yyv3320), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3315) + } // end switch yys3315 + } // end for yyj3315 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3322 int + var yyb3322 bool + var yyhl3322 bool = l >= 0 + yyj3322++ + if yyhl3322 { + yyb3322 = yyj3322 > l + } else { + yyb3322 = r.CheckBreak() + } + if yyb3322 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3322++ + if yyhl3322 { + yyb3322 = yyj3322 > l + } else { + yyb3322 = r.CheckBreak() + } + if yyb3322 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3322++ + if yyhl3322 { + yyb3322 = yyj3322 > l + } else { + yyb3322 = r.CheckBreak() + } + if yyb3322 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3325 := &x.ListMeta + yym3326 := z.DecBinary() + _ = yym3326 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3325) { + } else { + z.DecFallback(yyv3325, false) + } + } + yyj3322++ + if yyhl3322 { + yyb3322 = yyj3322 > l + } else { + yyb3322 = r.CheckBreak() + } + if yyb3322 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3327 := &x.Items + yym3328 := z.DecBinary() + _ = yym3328 + if false { + } else { + h.decSliceNamespace((*[]Namespace)(yyv3327), d) + } + } + for { + yyj3322++ + if yyhl3322 { + yyb3322 = yyj3322 > l + } else { + yyb3322 = r.CheckBreak() + } + if yyb3322 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3322-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3329 := z.EncBinary() + _ = yym3329 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3330 := !z.EncBinary() + yy2arr3330 := z.EncBasicHandle().StructToArray + var yyq3330 [4]bool + _, _, _ = yysep3330, yyq3330, yy2arr3330 + const yyr3330 bool = false + yyq3330[0] = x.Kind != "" + yyq3330[1] = x.APIVersion != "" + yyq3330[2] = true + var yynn3330 int + if yyr3330 || yy2arr3330 { + r.EncodeArrayStart(4) + } else { + yynn3330 = 1 + for _, b := range yyq3330 { + if b { + yynn3330++ + } + } + r.EncodeMapStart(yynn3330) + yynn3330 = 0 + } + if yyr3330 || yy2arr3330 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3330[0] { + yym3332 := z.EncBinary() + _ = yym3332 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3330[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3333 := z.EncBinary() + _ = yym3333 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3330 || yy2arr3330 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3330[1] { + yym3335 := z.EncBinary() + _ = yym3335 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3330[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3336 := z.EncBinary() + _ = yym3336 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3330 || yy2arr3330 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3330[2] { + yy3338 := &x.ObjectMeta + yy3338.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3330[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3339 := &x.ObjectMeta + yy3339.CodecEncodeSelf(e) + } + } + if yyr3330 || yy2arr3330 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy3341 := &x.Target + yy3341.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("target")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3342 := &x.Target + yy3342.CodecEncodeSelf(e) + } + if yyr3330 || yy2arr3330 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Binding) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3343 := z.DecBinary() + _ = yym3343 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3344 := r.ContainerType() + if yyct3344 == codecSelferValueTypeMap1234 { + yyl3344 := r.ReadMapStart() + if yyl3344 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3344, d) + } + } else if yyct3344 == codecSelferValueTypeArray1234 { + yyl3344 := r.ReadArrayStart() + if yyl3344 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3344, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3345Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3345Slc + var yyhl3345 bool = l >= 0 + for yyj3345 := 0; ; yyj3345++ { + if yyhl3345 { + if yyj3345 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3345Slc = r.DecodeBytes(yys3345Slc, true, true) + yys3345 := string(yys3345Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3345 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3348 := &x.ObjectMeta + yyv3348.CodecDecodeSelf(d) + } + case "target": + if r.TryDecodeAsNil() { + x.Target = ObjectReference{} + } else { + yyv3349 := &x.Target + yyv3349.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3345) + } // end switch yys3345 + } // end for yyj3345 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3350 int + var yyb3350 bool + var yyhl3350 bool = l >= 0 + yyj3350++ + if yyhl3350 { + yyb3350 = yyj3350 > l + } else { + yyb3350 = r.CheckBreak() + } + if yyb3350 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3350++ + if yyhl3350 { + yyb3350 = yyj3350 > l + } else { + yyb3350 = r.CheckBreak() + } + if yyb3350 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3350++ + if yyhl3350 { + yyb3350 = yyj3350 > l + } else { + yyb3350 = r.CheckBreak() + } + if yyb3350 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv3353 := &x.ObjectMeta + yyv3353.CodecDecodeSelf(d) + } + yyj3350++ + if yyhl3350 { + yyb3350 = yyj3350 > l + } else { + yyb3350 = r.CheckBreak() + } + if yyb3350 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Target = ObjectReference{} + } else { + yyv3354 := &x.Target + yyv3354.CodecDecodeSelf(d) + } + for { + yyj3350++ + if yyhl3350 { + yyb3350 = yyj3350 > l + } else { + yyb3350 = r.CheckBreak() + } + if yyb3350 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3350-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3355 := z.EncBinary() + _ = yym3355 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3356 := !z.EncBinary() + yy2arr3356 := z.EncBasicHandle().StructToArray + var yyq3356 [1]bool + _, _, _ = yysep3356, yyq3356, yy2arr3356 + const yyr3356 bool = false + yyq3356[0] = x.UID != nil + var yynn3356 int + if yyr3356 || yy2arr3356 { + r.EncodeArrayStart(1) + } else { + yynn3356 = 0 + for _, b := range yyq3356 { + if b { + yynn3356++ + } + } + r.EncodeMapStart(yynn3356) + yynn3356 = 0 + } + if yyr3356 || yy2arr3356 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3356[0] { + if x.UID == nil { + r.EncodeNil() + } else { + yy3358 := *x.UID + yym3359 := z.EncBinary() + _ = yym3359 + if false { + } else if z.HasExtensions() && z.EncExt(yy3358) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy3358)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3356[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("uid")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.UID == nil { + r.EncodeNil() + } else { + yy3360 := *x.UID + yym3361 := z.EncBinary() + _ = yym3361 + if false { + } else if z.HasExtensions() && z.EncExt(yy3360) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(yy3360)) + } + } + } + } + if yyr3356 || yy2arr3356 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3362 := z.DecBinary() + _ = yym3362 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3363 := r.ContainerType() + if yyct3363 == codecSelferValueTypeMap1234 { + yyl3363 := r.ReadMapStart() + if yyl3363 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3363, d) + } + } else if yyct3363 == codecSelferValueTypeArray1234 { + yyl3363 := r.ReadArrayStart() + if yyl3363 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3363, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3364Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3364Slc + var yyhl3364 bool = l >= 0 + for yyj3364 := 0; ; yyj3364++ { + if yyhl3364 { + if yyj3364 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3364Slc = r.DecodeBytes(yys3364Slc, true, true) + yys3364 := string(yys3364Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3364 { + case "uid": + if r.TryDecodeAsNil() { + if x.UID != nil { + x.UID = nil + } + } else { + if x.UID == nil { + x.UID = new(pkg1_types.UID) + } + yym3366 := z.DecBinary() + _ = yym3366 + if false { + } else if z.HasExtensions() && z.DecExt(x.UID) { + } else { + *((*string)(x.UID)) = r.DecodeString() + } + } + default: + z.DecStructFieldNotFound(-1, yys3364) + } // end switch yys3364 + } // end for yyj3364 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3367 int + var yyb3367 bool + var yyhl3367 bool = l >= 0 + yyj3367++ + if yyhl3367 { + yyb3367 = yyj3367 > l + } else { + yyb3367 = r.CheckBreak() + } + if yyb3367 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.UID != nil { + x.UID = nil + } + } else { + if x.UID == nil { + x.UID = new(pkg1_types.UID) + } + yym3369 := z.DecBinary() + _ = yym3369 + if false { + } else if z.HasExtensions() && z.DecExt(x.UID) { + } else { + *((*string)(x.UID)) = r.DecodeString() + } + } + for { + yyj3367++ + if yyhl3367 { + yyb3367 = yyj3367 > l + } else { + yyb3367 = r.CheckBreak() + } + if yyb3367 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3367-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3370 := z.EncBinary() + _ = yym3370 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3371 := !z.EncBinary() + yy2arr3371 := z.EncBasicHandle().StructToArray + var yyq3371 [5]bool + _, _, _ = yysep3371, yyq3371, yy2arr3371 + const yyr3371 bool = false + yyq3371[0] = x.Kind != "" + yyq3371[1] = x.APIVersion != "" + yyq3371[2] = x.GracePeriodSeconds != nil + yyq3371[3] = x.Preconditions != nil + yyq3371[4] = x.OrphanDependents != nil + var yynn3371 int + if yyr3371 || yy2arr3371 { + r.EncodeArrayStart(5) + } else { + yynn3371 = 0 + for _, b := range yyq3371 { + if b { + yynn3371++ + } + } + r.EncodeMapStart(yynn3371) + yynn3371 = 0 + } + if yyr3371 || yy2arr3371 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3371[0] { + yym3373 := z.EncBinary() + _ = yym3373 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3371[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3374 := z.EncBinary() + _ = yym3374 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3371 || yy2arr3371 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3371[1] { + yym3376 := z.EncBinary() + _ = yym3376 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3371[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3377 := z.EncBinary() + _ = yym3377 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3371 || yy2arr3371 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3371[2] { + if x.GracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy3379 := *x.GracePeriodSeconds + yym3380 := z.EncBinary() + _ = yym3380 + if false { + } else { + r.EncodeInt(int64(yy3379)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3371[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.GracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy3381 := *x.GracePeriodSeconds + yym3382 := z.EncBinary() + _ = yym3382 + if false { + } else { + r.EncodeInt(int64(yy3381)) + } + } + } + } + if yyr3371 || yy2arr3371 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3371[3] { + if x.Preconditions == nil { + r.EncodeNil() + } else { + x.Preconditions.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3371[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("preconditions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Preconditions == nil { + r.EncodeNil() + } else { + x.Preconditions.CodecEncodeSelf(e) + } + } + } + if yyr3371 || yy2arr3371 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3371[4] { + if x.OrphanDependents == nil { + r.EncodeNil() + } else { + yy3385 := *x.OrphanDependents + yym3386 := z.EncBinary() + _ = yym3386 + if false { + } else { + r.EncodeBool(bool(yy3385)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq3371[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.OrphanDependents == nil { + r.EncodeNil() + } else { + yy3387 := *x.OrphanDependents + yym3388 := z.EncBinary() + _ = yym3388 + if false { + } else { + r.EncodeBool(bool(yy3387)) + } + } + } + } + if yyr3371 || yy2arr3371 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DeleteOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3389 := z.DecBinary() + _ = yym3389 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3390 := r.ContainerType() + if yyct3390 == codecSelferValueTypeMap1234 { + yyl3390 := r.ReadMapStart() + if yyl3390 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3390, d) + } + } else if yyct3390 == codecSelferValueTypeArray1234 { + yyl3390 := r.ReadArrayStart() + if yyl3390 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3390, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3391Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3391Slc + var yyhl3391 bool = l >= 0 + for yyj3391 := 0; ; yyj3391++ { + if yyhl3391 { + if yyj3391 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3391Slc = r.DecodeBytes(yys3391Slc, true, true) + yys3391 := string(yys3391Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3391 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "gracePeriodSeconds": + if r.TryDecodeAsNil() { + if x.GracePeriodSeconds != nil { + x.GracePeriodSeconds = nil + } + } else { + if x.GracePeriodSeconds == nil { + x.GracePeriodSeconds = new(int64) + } + yym3395 := z.DecBinary() + _ = yym3395 + if false { + } else { + *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + case "preconditions": + if r.TryDecodeAsNil() { + if x.Preconditions != nil { + x.Preconditions = nil + } + } else { + if x.Preconditions == nil { + x.Preconditions = new(Preconditions) + } + x.Preconditions.CodecDecodeSelf(d) + } + case "orphanDependents": + if r.TryDecodeAsNil() { + if x.OrphanDependents != nil { + x.OrphanDependents = nil + } + } else { + if x.OrphanDependents == nil { + x.OrphanDependents = new(bool) + } + yym3398 := z.DecBinary() + _ = yym3398 + if false { + } else { + *((*bool)(x.OrphanDependents)) = r.DecodeBool() + } + } + default: + z.DecStructFieldNotFound(-1, yys3391) + } // end switch yys3391 + } // end for yyj3391 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3399 int + var yyb3399 bool + var yyhl3399 bool = l >= 0 + yyj3399++ + if yyhl3399 { + yyb3399 = yyj3399 > l + } else { + yyb3399 = r.CheckBreak() + } + if yyb3399 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3399++ + if yyhl3399 { + yyb3399 = yyj3399 > l + } else { + yyb3399 = r.CheckBreak() + } + if yyb3399 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3399++ + if yyhl3399 { + yyb3399 = yyj3399 > l + } else { + yyb3399 = r.CheckBreak() + } + if yyb3399 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.GracePeriodSeconds != nil { + x.GracePeriodSeconds = nil + } + } else { + if x.GracePeriodSeconds == nil { + x.GracePeriodSeconds = new(int64) + } + yym3403 := z.DecBinary() + _ = yym3403 + if false { + } else { + *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj3399++ + if yyhl3399 { + yyb3399 = yyj3399 > l + } else { + yyb3399 = r.CheckBreak() + } + if yyb3399 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Preconditions != nil { + x.Preconditions = nil + } + } else { + if x.Preconditions == nil { + x.Preconditions = new(Preconditions) + } + x.Preconditions.CodecDecodeSelf(d) + } + yyj3399++ + if yyhl3399 { + yyb3399 = yyj3399 > l + } else { + yyb3399 = r.CheckBreak() + } + if yyb3399 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.OrphanDependents != nil { + x.OrphanDependents = nil + } + } else { + if x.OrphanDependents == nil { + x.OrphanDependents = new(bool) + } + yym3406 := z.DecBinary() + _ = yym3406 + if false { + } else { + *((*bool)(x.OrphanDependents)) = r.DecodeBool() + } + } + for { + yyj3399++ + if yyhl3399 { + yyb3399 = yyj3399 > l + } else { + yyb3399 = r.CheckBreak() + } + if yyb3399 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3399-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3407 := z.EncBinary() + _ = yym3407 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3408 := !z.EncBinary() + yy2arr3408 := z.EncBasicHandle().StructToArray + var yyq3408 [4]bool + _, _, _ = yysep3408, yyq3408, yy2arr3408 + const yyr3408 bool = false + yyq3408[0] = x.Kind != "" + yyq3408[1] = x.APIVersion != "" + var yynn3408 int + if yyr3408 || yy2arr3408 { + r.EncodeArrayStart(4) + } else { + yynn3408 = 2 + for _, b := range yyq3408 { + if b { + yynn3408++ + } + } + r.EncodeMapStart(yynn3408) + yynn3408 = 0 + } + if yyr3408 || yy2arr3408 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3408[0] { + yym3410 := z.EncBinary() + _ = yym3410 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3408[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3411 := z.EncBinary() + _ = yym3411 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3408 || yy2arr3408 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3408[1] { + yym3413 := z.EncBinary() + _ = yym3413 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3408[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3414 := z.EncBinary() + _ = yym3414 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3408 || yy2arr3408 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3416 := z.EncBinary() + _ = yym3416 + if false { + } else { + r.EncodeBool(bool(x.Export)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("export")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3417 := z.EncBinary() + _ = yym3417 + if false { + } else { + r.EncodeBool(bool(x.Export)) + } + } + if yyr3408 || yy2arr3408 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym3419 := z.EncBinary() + _ = yym3419 + if false { + } else { + r.EncodeBool(bool(x.Exact)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("exact")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3420 := z.EncBinary() + _ = yym3420 + if false { + } else { + r.EncodeBool(bool(x.Exact)) + } + } + if yyr3408 || yy2arr3408 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3421 := z.DecBinary() + _ = yym3421 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3422 := r.ContainerType() + if yyct3422 == codecSelferValueTypeMap1234 { + yyl3422 := r.ReadMapStart() + if yyl3422 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3422, d) + } + } else if yyct3422 == codecSelferValueTypeArray1234 { + yyl3422 := r.ReadArrayStart() + if yyl3422 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3422, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3423Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3423Slc + var yyhl3423 bool = l >= 0 + for yyj3423 := 0; ; yyj3423++ { + if yyhl3423 { + if yyj3423 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3423Slc = r.DecodeBytes(yys3423Slc, true, true) + yys3423 := string(yys3423Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3423 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -41898,9 +43594,9 @@ func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Exact = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys3285) - } // end switch yys3285 - } // end for yyj3285 + z.DecStructFieldNotFound(-1, yys3423) + } // end switch yys3423 + } // end for yyj3423 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -41908,16 +43604,16 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3290 int - var yyb3290 bool - var yyhl3290 bool = l >= 0 - yyj3290++ - if yyhl3290 { - yyb3290 = yyj3290 > l + var yyj3428 int + var yyb3428 bool + var yyhl3428 bool = l >= 0 + yyj3428++ + if yyhl3428 { + yyb3428 = yyj3428 > l } else { - yyb3290 = r.CheckBreak() + yyb3428 = r.CheckBreak() } - if yyb3290 { + if yyb3428 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41927,13 +43623,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3290++ - if yyhl3290 { - yyb3290 = yyj3290 > l + yyj3428++ + if yyhl3428 { + yyb3428 = yyj3428 > l } else { - yyb3290 = r.CheckBreak() + yyb3428 = r.CheckBreak() } - if yyb3290 { + if yyb3428 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41943,13 +43639,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3290++ - if yyhl3290 { - yyb3290 = yyj3290 > l + yyj3428++ + if yyhl3428 { + yyb3428 = yyj3428 > l } else { - yyb3290 = r.CheckBreak() + yyb3428 = r.CheckBreak() } - if yyb3290 { + if yyb3428 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41959,13 +43655,13 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Export = bool(r.DecodeBool()) } - yyj3290++ - if yyhl3290 { - yyb3290 = yyj3290 > l + yyj3428++ + if yyhl3428 { + yyb3428 = yyj3428 > l } else { - yyb3290 = r.CheckBreak() + yyb3428 = r.CheckBreak() } - if yyb3290 { + if yyb3428 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -41976,17 +43672,17 @@ func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Exact = bool(r.DecodeBool()) } for { - yyj3290++ - if yyhl3290 { - yyb3290 = yyj3290 > l + yyj3428++ + if yyhl3428 { + yyb3428 = yyj3428 > l } else { - yyb3290 = r.CheckBreak() + yyb3428 = r.CheckBreak() } - if yyb3290 { + if yyb3428 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3290-1, "") + z.DecStructFieldNotFound(yyj3428-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -41998,41 +43694,41 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3295 := z.EncBinary() - _ = yym3295 + yym3433 := z.EncBinary() + _ = yym3433 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3296 := !z.EncBinary() - yy2arr3296 := z.EncBasicHandle().StructToArray - var yyq3296 [7]bool - _, _, _ = yysep3296, yyq3296, yy2arr3296 - const yyr3296 bool = false - yyq3296[0] = x.Kind != "" - yyq3296[1] = x.APIVersion != "" - yyq3296[2] = x.LabelSelector != "" - yyq3296[3] = x.FieldSelector != "" - yyq3296[4] = x.Watch != false - yyq3296[5] = x.ResourceVersion != "" - yyq3296[6] = x.TimeoutSeconds != nil - var yynn3296 int - if yyr3296 || yy2arr3296 { + yysep3434 := !z.EncBinary() + yy2arr3434 := z.EncBasicHandle().StructToArray + var yyq3434 [7]bool + _, _, _ = yysep3434, yyq3434, yy2arr3434 + const yyr3434 bool = false + yyq3434[0] = x.Kind != "" + yyq3434[1] = x.APIVersion != "" + yyq3434[2] = x.LabelSelector != "" + yyq3434[3] = x.FieldSelector != "" + yyq3434[4] = x.Watch != false + yyq3434[5] = x.ResourceVersion != "" + yyq3434[6] = x.TimeoutSeconds != nil + var yynn3434 int + if yyr3434 || yy2arr3434 { r.EncodeArrayStart(7) } else { - yynn3296 = 0 - for _, b := range yyq3296 { + yynn3434 = 0 + for _, b := range yyq3434 { if b { - yynn3296++ + yynn3434++ } } - r.EncodeMapStart(yynn3296) - yynn3296 = 0 + r.EncodeMapStart(yynn3434) + yynn3434 = 0 } - if yyr3296 || yy2arr3296 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3296[0] { - yym3298 := z.EncBinary() - _ = yym3298 + if yyq3434[0] { + yym3436 := z.EncBinary() + _ = yym3436 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -42041,23 +43737,23 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3296[0] { + if yyq3434[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3299 := z.EncBinary() - _ = yym3299 + yym3437 := z.EncBinary() + _ = yym3437 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3296 || yy2arr3296 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3296[1] { - yym3301 := z.EncBinary() - _ = yym3301 + if yyq3434[1] { + yym3439 := z.EncBinary() + _ = yym3439 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -42066,23 +43762,23 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3296[1] { + if yyq3434[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3302 := z.EncBinary() - _ = yym3302 + yym3440 := z.EncBinary() + _ = yym3440 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3296 || yy2arr3296 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3296[2] { - yym3304 := z.EncBinary() - _ = yym3304 + if yyq3434[2] { + yym3442 := z.EncBinary() + _ = yym3442 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) @@ -42091,23 +43787,23 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3296[2] { + if yyq3434[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3305 := z.EncBinary() - _ = yym3305 + yym3443 := z.EncBinary() + _ = yym3443 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LabelSelector)) } } } - if yyr3296 || yy2arr3296 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3296[3] { - yym3307 := z.EncBinary() - _ = yym3307 + if yyq3434[3] { + yym3445 := z.EncBinary() + _ = yym3445 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) @@ -42116,23 +43812,23 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3296[3] { + if yyq3434[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3308 := z.EncBinary() - _ = yym3308 + yym3446 := z.EncBinary() + _ = yym3446 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldSelector)) } } } - if yyr3296 || yy2arr3296 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3296[4] { - yym3310 := z.EncBinary() - _ = yym3310 + if yyq3434[4] { + yym3448 := z.EncBinary() + _ = yym3448 if false { } else { r.EncodeBool(bool(x.Watch)) @@ -42141,23 +43837,23 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3296[4] { + if yyq3434[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3311 := z.EncBinary() - _ = yym3311 + yym3449 := z.EncBinary() + _ = yym3449 if false { } else { r.EncodeBool(bool(x.Watch)) } } } - if yyr3296 || yy2arr3296 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3296[5] { - yym3313 := z.EncBinary() - _ = yym3313 + if yyq3434[5] { + yym3451 := z.EncBinary() + _ = yym3451 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) @@ -42166,54 +43862,54 @@ func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3296[5] { + if yyq3434[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3314 := z.EncBinary() - _ = yym3314 + yym3452 := z.EncBinary() + _ = yym3452 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } - if yyr3296 || yy2arr3296 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3296[6] { + if yyq3434[6] { if x.TimeoutSeconds == nil { r.EncodeNil() } else { - yy3316 := *x.TimeoutSeconds - yym3317 := z.EncBinary() - _ = yym3317 + yy3454 := *x.TimeoutSeconds + yym3455 := z.EncBinary() + _ = yym3455 if false { } else { - r.EncodeInt(int64(yy3316)) + r.EncodeInt(int64(yy3454)) } } } else { r.EncodeNil() } } else { - if yyq3296[6] { + if yyq3434[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { - yy3318 := *x.TimeoutSeconds - yym3319 := z.EncBinary() - _ = yym3319 + yy3456 := *x.TimeoutSeconds + yym3457 := z.EncBinary() + _ = yym3457 if false { } else { - r.EncodeInt(int64(yy3318)) + r.EncodeInt(int64(yy3456)) } } } } - if yyr3296 || yy2arr3296 { + if yyr3434 || yy2arr3434 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42226,25 +43922,25 @@ func (x *ListOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3320 := z.DecBinary() - _ = yym3320 + yym3458 := z.DecBinary() + _ = yym3458 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3321 := r.ContainerType() - if yyct3321 == codecSelferValueTypeMap1234 { - yyl3321 := r.ReadMapStart() - if yyl3321 == 0 { + yyct3459 := r.ContainerType() + if yyct3459 == codecSelferValueTypeMap1234 { + yyl3459 := r.ReadMapStart() + if yyl3459 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3321, d) + x.codecDecodeSelfFromMap(yyl3459, d) } - } else if yyct3321 == codecSelferValueTypeArray1234 { - yyl3321 := r.ReadArrayStart() - if yyl3321 == 0 { + } else if yyct3459 == codecSelferValueTypeArray1234 { + yyl3459 := r.ReadArrayStart() + if yyl3459 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3321, d) + x.codecDecodeSelfFromArray(yyl3459, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42256,12 +43952,12 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3322Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3322Slc - var yyhl3322 bool = l >= 0 - for yyj3322 := 0; ; yyj3322++ { - if yyhl3322 { - if yyj3322 >= l { + var yys3460Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3460Slc + var yyhl3460 bool = l >= 0 + for yyj3460 := 0; ; yyj3460++ { + if yyhl3460 { + if yyj3460 >= l { break } } else { @@ -42270,10 +43966,10 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3322Slc = r.DecodeBytes(yys3322Slc, true, true) - yys3322 := string(yys3322Slc) + yys3460Slc = r.DecodeBytes(yys3460Slc, true, true) + yys3460 := string(yys3460Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3322 { + switch yys3460 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -42319,17 +44015,17 @@ func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym3330 := z.DecBinary() - _ = yym3330 + yym3468 := z.DecBinary() + _ = yym3468 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys3322) - } // end switch yys3322 - } // end for yyj3322 + z.DecStructFieldNotFound(-1, yys3460) + } // end switch yys3460 + } // end for yyj3460 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42337,16 +44033,16 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3331 int - var yyb3331 bool - var yyhl3331 bool = l >= 0 - yyj3331++ - if yyhl3331 { - yyb3331 = yyj3331 > l + var yyj3469 int + var yyb3469 bool + var yyhl3469 bool = l >= 0 + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l } else { - yyb3331 = r.CheckBreak() + yyb3469 = r.CheckBreak() } - if yyb3331 { + if yyb3469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42356,13 +44052,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3331++ - if yyhl3331 { - yyb3331 = yyj3331 > l + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l } else { - yyb3331 = r.CheckBreak() + yyb3469 = r.CheckBreak() } - if yyb3331 { + if yyb3469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42372,13 +44068,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3331++ - if yyhl3331 { - yyb3331 = yyj3331 > l + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l } else { - yyb3331 = r.CheckBreak() + yyb3469 = r.CheckBreak() } - if yyb3331 { + if yyb3469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42388,13 +44084,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.LabelSelector = string(r.DecodeString()) } - yyj3331++ - if yyhl3331 { - yyb3331 = yyj3331 > l + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l } else { - yyb3331 = r.CheckBreak() + yyb3469 = r.CheckBreak() } - if yyb3331 { + if yyb3469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42404,13 +44100,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.FieldSelector = string(r.DecodeString()) } - yyj3331++ - if yyhl3331 { - yyb3331 = yyj3331 > l + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l } else { - yyb3331 = r.CheckBreak() + yyb3469 = r.CheckBreak() } - if yyb3331 { + if yyb3469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42420,13 +44116,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Watch = bool(r.DecodeBool()) } - yyj3331++ - if yyhl3331 { - yyb3331 = yyj3331 > l + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l } else { - yyb3331 = r.CheckBreak() + yyb3469 = r.CheckBreak() } - if yyb3331 { + if yyb3469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42436,13 +44132,13 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ResourceVersion = string(r.DecodeString()) } - yyj3331++ - if yyhl3331 { - yyb3331 = yyj3331 > l + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l } else { - yyb3331 = r.CheckBreak() + yyb3469 = r.CheckBreak() } - if yyb3331 { + if yyb3469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -42455,25 +44151,25 @@ func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } - yym3339 := z.DecBinary() - _ = yym3339 + yym3477 := z.DecBinary() + _ = yym3477 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } for { - yyj3331++ - if yyhl3331 { - yyb3331 = yyj3331 > l + yyj3469++ + if yyhl3469 { + yyb3469 = yyj3469 > l } else { - yyb3331 = r.CheckBreak() + yyb3469 = r.CheckBreak() } - if yyb3331 { + if yyb3469 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3331-1, "") + z.DecStructFieldNotFound(yyj3469-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -42485,44 +44181,44 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3340 := z.EncBinary() - _ = yym3340 + yym3478 := z.EncBinary() + _ = yym3478 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3341 := !z.EncBinary() - yy2arr3341 := z.EncBasicHandle().StructToArray - var yyq3341 [10]bool - _, _, _ = yysep3341, yyq3341, yy2arr3341 - const yyr3341 bool = false - yyq3341[0] = x.Kind != "" - yyq3341[1] = x.APIVersion != "" - yyq3341[2] = x.Container != "" - yyq3341[3] = x.Follow != false - yyq3341[4] = x.Previous != false - yyq3341[5] = x.SinceSeconds != nil - yyq3341[6] = x.SinceTime != nil - yyq3341[7] = x.Timestamps != false - yyq3341[8] = x.TailLines != nil - yyq3341[9] = x.LimitBytes != nil - var yynn3341 int - if yyr3341 || yy2arr3341 { + yysep3479 := !z.EncBinary() + yy2arr3479 := z.EncBasicHandle().StructToArray + var yyq3479 [10]bool + _, _, _ = yysep3479, yyq3479, yy2arr3479 + const yyr3479 bool = false + yyq3479[0] = x.Kind != "" + yyq3479[1] = x.APIVersion != "" + yyq3479[2] = x.Container != "" + yyq3479[3] = x.Follow != false + yyq3479[4] = x.Previous != false + yyq3479[5] = x.SinceSeconds != nil + yyq3479[6] = x.SinceTime != nil + yyq3479[7] = x.Timestamps != false + yyq3479[8] = x.TailLines != nil + yyq3479[9] = x.LimitBytes != nil + var yynn3479 int + if yyr3479 || yy2arr3479 { r.EncodeArrayStart(10) } else { - yynn3341 = 0 - for _, b := range yyq3341 { + yynn3479 = 0 + for _, b := range yyq3479 { if b { - yynn3341++ + yynn3479++ } } - r.EncodeMapStart(yynn3341) - yynn3341 = 0 + r.EncodeMapStart(yynn3479) + yynn3479 = 0 } - if yyr3341 || yy2arr3341 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3341[0] { - yym3343 := z.EncBinary() - _ = yym3343 + if yyq3479[0] { + yym3481 := z.EncBinary() + _ = yym3481 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -42531,23 +44227,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3341[0] { + if yyq3479[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3344 := z.EncBinary() - _ = yym3344 + yym3482 := z.EncBinary() + _ = yym3482 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3341 || yy2arr3341 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3341[1] { - yym3346 := z.EncBinary() - _ = yym3346 + if yyq3479[1] { + yym3484 := z.EncBinary() + _ = yym3484 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -42556,23 +44252,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3341[1] { + if yyq3479[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3347 := z.EncBinary() - _ = yym3347 + yym3485 := z.EncBinary() + _ = yym3485 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3341 || yy2arr3341 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3341[2] { - yym3349 := z.EncBinary() - _ = yym3349 + if yyq3479[2] { + yym3487 := z.EncBinary() + _ = yym3487 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -42581,23 +44277,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3341[2] { + if yyq3479[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3350 := z.EncBinary() - _ = yym3350 + yym3488 := z.EncBinary() + _ = yym3488 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } - if yyr3341 || yy2arr3341 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3341[3] { - yym3352 := z.EncBinary() - _ = yym3352 + if yyq3479[3] { + yym3490 := z.EncBinary() + _ = yym3490 if false { } else { r.EncodeBool(bool(x.Follow)) @@ -42606,23 +44302,23 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3341[3] { + if yyq3479[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("follow")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3353 := z.EncBinary() - _ = yym3353 + yym3491 := z.EncBinary() + _ = yym3491 if false { } else { r.EncodeBool(bool(x.Follow)) } } } - if yyr3341 || yy2arr3341 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3341[4] { - yym3355 := z.EncBinary() - _ = yym3355 + if yyq3479[4] { + yym3493 := z.EncBinary() + _ = yym3493 if false { } else { r.EncodeBool(bool(x.Previous)) @@ -42631,66 +44327,66 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3341[4] { + if yyq3479[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3356 := z.EncBinary() - _ = yym3356 + yym3494 := z.EncBinary() + _ = yym3494 if false { } else { r.EncodeBool(bool(x.Previous)) } } } - if yyr3341 || yy2arr3341 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3341[5] { + if yyq3479[5] { if x.SinceSeconds == nil { r.EncodeNil() } else { - yy3358 := *x.SinceSeconds - yym3359 := z.EncBinary() - _ = yym3359 + yy3496 := *x.SinceSeconds + yym3497 := z.EncBinary() + _ = yym3497 if false { } else { - r.EncodeInt(int64(yy3358)) + r.EncodeInt(int64(yy3496)) } } } else { r.EncodeNil() } } else { - if yyq3341[5] { + if yyq3479[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sinceSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceSeconds == nil { r.EncodeNil() } else { - yy3360 := *x.SinceSeconds - yym3361 := z.EncBinary() - _ = yym3361 + yy3498 := *x.SinceSeconds + yym3499 := z.EncBinary() + _ = yym3499 if false { } else { - r.EncodeInt(int64(yy3360)) + r.EncodeInt(int64(yy3498)) } } } } - if yyr3341 || yy2arr3341 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3341[6] { + if yyq3479[6] { if x.SinceTime == nil { r.EncodeNil() } else { - yym3363 := z.EncBinary() - _ = yym3363 + yym3501 := z.EncBinary() + _ = yym3501 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym3363 { + } else if yym3501 { z.EncBinaryMarshal(x.SinceTime) - } else if !yym3363 && z.IsJSONHandle() { + } else if !yym3501 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) @@ -42700,20 +44396,20 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3341[6] { + if yyq3479[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sinceTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceTime == nil { r.EncodeNil() } else { - yym3364 := z.EncBinary() - _ = yym3364 + yym3502 := z.EncBinary() + _ = yym3502 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { - } else if yym3364 { + } else if yym3502 { z.EncBinaryMarshal(x.SinceTime) - } else if !yym3364 && z.IsJSONHandle() { + } else if !yym3502 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) @@ -42721,11 +44417,11 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3341 || yy2arr3341 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3341[7] { - yym3366 := z.EncBinary() - _ = yym3366 + if yyq3479[7] { + yym3504 := z.EncBinary() + _ = yym3504 if false { } else { r.EncodeBool(bool(x.Timestamps)) @@ -42734,89 +44430,89 @@ func (x *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3341[7] { + if yyq3479[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3367 := z.EncBinary() - _ = yym3367 + yym3505 := z.EncBinary() + _ = yym3505 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } } - if yyr3341 || yy2arr3341 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3341[8] { + if yyq3479[8] { if x.TailLines == nil { r.EncodeNil() } else { - yy3369 := *x.TailLines - yym3370 := z.EncBinary() - _ = yym3370 + yy3507 := *x.TailLines + yym3508 := z.EncBinary() + _ = yym3508 if false { } else { - r.EncodeInt(int64(yy3369)) + r.EncodeInt(int64(yy3507)) } } } else { r.EncodeNil() } } else { - if yyq3341[8] { + if yyq3479[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tailLines")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TailLines == nil { r.EncodeNil() } else { - yy3371 := *x.TailLines - yym3372 := z.EncBinary() - _ = yym3372 + yy3509 := *x.TailLines + yym3510 := z.EncBinary() + _ = yym3510 if false { } else { - r.EncodeInt(int64(yy3371)) + r.EncodeInt(int64(yy3509)) } } } } - if yyr3341 || yy2arr3341 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3341[9] { + if yyq3479[9] { if x.LimitBytes == nil { r.EncodeNil() } else { - yy3374 := *x.LimitBytes - yym3375 := z.EncBinary() - _ = yym3375 + yy3512 := *x.LimitBytes + yym3513 := z.EncBinary() + _ = yym3513 if false { } else { - r.EncodeInt(int64(yy3374)) + r.EncodeInt(int64(yy3512)) } } } else { r.EncodeNil() } } else { - if yyq3341[9] { + if yyq3479[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("limitBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LimitBytes == nil { r.EncodeNil() } else { - yy3376 := *x.LimitBytes - yym3377 := z.EncBinary() - _ = yym3377 + yy3514 := *x.LimitBytes + yym3515 := z.EncBinary() + _ = yym3515 if false { } else { - r.EncodeInt(int64(yy3376)) + r.EncodeInt(int64(yy3514)) } } } } - if yyr3341 || yy2arr3341 { + if yyr3479 || yy2arr3479 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -42829,25 +44525,25 @@ func (x *PodLogOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3378 := z.DecBinary() - _ = yym3378 + yym3516 := z.DecBinary() + _ = yym3516 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3379 := r.ContainerType() - if yyct3379 == codecSelferValueTypeMap1234 { - yyl3379 := r.ReadMapStart() - if yyl3379 == 0 { + yyct3517 := r.ContainerType() + if yyct3517 == codecSelferValueTypeMap1234 { + yyl3517 := r.ReadMapStart() + if yyl3517 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3379, d) + x.codecDecodeSelfFromMap(yyl3517, d) } - } else if yyct3379 == codecSelferValueTypeArray1234 { - yyl3379 := r.ReadArrayStart() - if yyl3379 == 0 { + } else if yyct3517 == codecSelferValueTypeArray1234 { + yyl3517 := r.ReadArrayStart() + if yyl3517 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3379, d) + x.codecDecodeSelfFromArray(yyl3517, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -42859,12 +44555,12 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3380Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3380Slc - var yyhl3380 bool = l >= 0 - for yyj3380 := 0; ; yyj3380++ { - if yyhl3380 { - if yyj3380 >= l { + var yys3518Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3518Slc + var yyhl3518 bool = l >= 0 + for yyj3518 := 0; ; yyj3518++ { + if yyhl3518 { + if yyj3518 >= l { break } } else { @@ -42873,10 +44569,10 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3380Slc = r.DecodeBytes(yys3380Slc, true, true) - yys3380 := string(yys3380Slc) + yys3518Slc = r.DecodeBytes(yys3518Slc, true, true) + yys3518 := string(yys3518Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3380 { + switch yys3518 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -42916,8 +44612,8 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } - yym3387 := z.DecBinary() - _ = yym3387 + yym3525 := z.DecBinary() + _ = yym3525 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) @@ -42932,13 +44628,13 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.SinceTime == nil { x.SinceTime = new(pkg2_unversioned.Time) } - yym3389 := z.DecBinary() - _ = yym3389 + yym3527 := z.DecBinary() + _ = yym3527 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym3389 { + } else if yym3527 { z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym3389 && z.IsJSONHandle() { + } else if !yym3527 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) @@ -42959,8 +44655,8 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.TailLines == nil { x.TailLines = new(int64) } - yym3392 := z.DecBinary() - _ = yym3392 + yym3530 := z.DecBinary() + _ = yym3530 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) @@ -42975,17 +44671,17 @@ func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.LimitBytes == nil { x.LimitBytes = new(int64) } - yym3394 := z.DecBinary() - _ = yym3394 + yym3532 := z.DecBinary() + _ = yym3532 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } default: - z.DecStructFieldNotFound(-1, yys3380) - } // end switch yys3380 - } // end for yyj3380 + z.DecStructFieldNotFound(-1, yys3518) + } // end switch yys3518 + } // end for yyj3518 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -42993,16 +44689,16 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3395 int - var yyb3395 bool - var yyhl3395 bool = l >= 0 - yyj3395++ - if yyhl3395 { - yyb3395 = yyj3395 > l + var yyj3533 int + var yyb3533 bool + var yyhl3533 bool = l >= 0 + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb3395 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb3395 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43012,13 +44708,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3395++ - if yyhl3395 { - yyb3395 = yyj3395 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb3395 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb3395 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43028,13 +44724,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3395++ - if yyhl3395 { - yyb3395 = yyj3395 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb3395 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb3395 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43044,13 +44740,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Container = string(r.DecodeString()) } - yyj3395++ - if yyhl3395 { - yyb3395 = yyj3395 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb3395 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb3395 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43060,13 +44756,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Follow = bool(r.DecodeBool()) } - yyj3395++ - if yyhl3395 { - yyb3395 = yyj3395 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb3395 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb3395 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43076,13 +44772,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Previous = bool(r.DecodeBool()) } - yyj3395++ - if yyhl3395 { - yyb3395 = yyj3395 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb3395 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb3395 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43095,20 +44791,20 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } - yym3402 := z.DecBinary() - _ = yym3402 + yym3540 := z.DecBinary() + _ = yym3540 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } - yyj3395++ - if yyhl3395 { - yyb3395 = yyj3395 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb3395 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb3395 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43121,25 +44817,25 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.SinceTime == nil { x.SinceTime = new(pkg2_unversioned.Time) } - yym3404 := z.DecBinary() - _ = yym3404 + yym3542 := z.DecBinary() + _ = yym3542 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { - } else if yym3404 { + } else if yym3542 { z.DecBinaryUnmarshal(x.SinceTime) - } else if !yym3404 && z.IsJSONHandle() { + } else if !yym3542 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } - yyj3395++ - if yyhl3395 { - yyb3395 = yyj3395 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb3395 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb3395 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43149,13 +44845,13 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Timestamps = bool(r.DecodeBool()) } - yyj3395++ - if yyhl3395 { - yyb3395 = yyj3395 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb3395 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb3395 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43168,20 +44864,20 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.TailLines == nil { x.TailLines = new(int64) } - yym3407 := z.DecBinary() - _ = yym3407 + yym3545 := z.DecBinary() + _ = yym3545 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } - yyj3395++ - if yyhl3395 { - yyb3395 = yyj3395 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb3395 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb3395 { + if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43194,25 +44890,25 @@ func (x *PodLogOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.LimitBytes == nil { x.LimitBytes = new(int64) } - yym3409 := z.DecBinary() - _ = yym3409 + yym3547 := z.DecBinary() + _ = yym3547 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } for { - yyj3395++ - if yyhl3395 { - yyb3395 = yyj3395 > l + yyj3533++ + if yyhl3533 { + yyb3533 = yyj3533 > l } else { - yyb3395 = r.CheckBreak() + yyb3533 = r.CheckBreak() } - if yyb3395 { + if yyb3533 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3395-1, "") + z.DecStructFieldNotFound(yyj3533-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43224,41 +44920,41 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3410 := z.EncBinary() - _ = yym3410 + yym3548 := z.EncBinary() + _ = yym3548 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3411 := !z.EncBinary() - yy2arr3411 := z.EncBasicHandle().StructToArray - var yyq3411 [7]bool - _, _, _ = yysep3411, yyq3411, yy2arr3411 - const yyr3411 bool = false - yyq3411[0] = x.Kind != "" - yyq3411[1] = x.APIVersion != "" - yyq3411[2] = x.Stdin != false - yyq3411[3] = x.Stdout != false - yyq3411[4] = x.Stderr != false - yyq3411[5] = x.TTY != false - yyq3411[6] = x.Container != "" - var yynn3411 int - if yyr3411 || yy2arr3411 { + yysep3549 := !z.EncBinary() + yy2arr3549 := z.EncBasicHandle().StructToArray + var yyq3549 [7]bool + _, _, _ = yysep3549, yyq3549, yy2arr3549 + const yyr3549 bool = false + yyq3549[0] = x.Kind != "" + yyq3549[1] = x.APIVersion != "" + yyq3549[2] = x.Stdin != false + yyq3549[3] = x.Stdout != false + yyq3549[4] = x.Stderr != false + yyq3549[5] = x.TTY != false + yyq3549[6] = x.Container != "" + var yynn3549 int + if yyr3549 || yy2arr3549 { r.EncodeArrayStart(7) } else { - yynn3411 = 0 - for _, b := range yyq3411 { + yynn3549 = 0 + for _, b := range yyq3549 { if b { - yynn3411++ + yynn3549++ } } - r.EncodeMapStart(yynn3411) - yynn3411 = 0 + r.EncodeMapStart(yynn3549) + yynn3549 = 0 } - if yyr3411 || yy2arr3411 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3411[0] { - yym3413 := z.EncBinary() - _ = yym3413 + if yyq3549[0] { + yym3551 := z.EncBinary() + _ = yym3551 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -43267,23 +44963,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3411[0] { + if yyq3549[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3414 := z.EncBinary() - _ = yym3414 + yym3552 := z.EncBinary() + _ = yym3552 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3411 || yy2arr3411 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3411[1] { - yym3416 := z.EncBinary() - _ = yym3416 + if yyq3549[1] { + yym3554 := z.EncBinary() + _ = yym3554 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -43292,23 +44988,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3411[1] { + if yyq3549[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3417 := z.EncBinary() - _ = yym3417 + yym3555 := z.EncBinary() + _ = yym3555 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3411 || yy2arr3411 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3411[2] { - yym3419 := z.EncBinary() - _ = yym3419 + if yyq3549[2] { + yym3557 := z.EncBinary() + _ = yym3557 if false { } else { r.EncodeBool(bool(x.Stdin)) @@ -43317,23 +45013,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3411[2] { + if yyq3549[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3420 := z.EncBinary() - _ = yym3420 + yym3558 := z.EncBinary() + _ = yym3558 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } - if yyr3411 || yy2arr3411 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3411[3] { - yym3422 := z.EncBinary() - _ = yym3422 + if yyq3549[3] { + yym3560 := z.EncBinary() + _ = yym3560 if false { } else { r.EncodeBool(bool(x.Stdout)) @@ -43342,23 +45038,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3411[3] { + if yyq3549[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3423 := z.EncBinary() - _ = yym3423 + yym3561 := z.EncBinary() + _ = yym3561 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } - if yyr3411 || yy2arr3411 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3411[4] { - yym3425 := z.EncBinary() - _ = yym3425 + if yyq3549[4] { + yym3563 := z.EncBinary() + _ = yym3563 if false { } else { r.EncodeBool(bool(x.Stderr)) @@ -43367,23 +45063,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3411[4] { + if yyq3549[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3426 := z.EncBinary() - _ = yym3426 + yym3564 := z.EncBinary() + _ = yym3564 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } - if yyr3411 || yy2arr3411 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3411[5] { - yym3428 := z.EncBinary() - _ = yym3428 + if yyq3549[5] { + yym3566 := z.EncBinary() + _ = yym3566 if false { } else { r.EncodeBool(bool(x.TTY)) @@ -43392,23 +45088,23 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3411[5] { + if yyq3549[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3429 := z.EncBinary() - _ = yym3429 + yym3567 := z.EncBinary() + _ = yym3567 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr3411 || yy2arr3411 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3411[6] { - yym3431 := z.EncBinary() - _ = yym3431 + if yyq3549[6] { + yym3569 := z.EncBinary() + _ = yym3569 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -43417,19 +45113,19 @@ func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3411[6] { + if yyq3549[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3432 := z.EncBinary() - _ = yym3432 + yym3570 := z.EncBinary() + _ = yym3570 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } - if yyr3411 || yy2arr3411 { + if yyr3549 || yy2arr3549 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43442,25 +45138,25 @@ func (x *PodAttachOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3433 := z.DecBinary() - _ = yym3433 + yym3571 := z.DecBinary() + _ = yym3571 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3434 := r.ContainerType() - if yyct3434 == codecSelferValueTypeMap1234 { - yyl3434 := r.ReadMapStart() - if yyl3434 == 0 { + yyct3572 := r.ContainerType() + if yyct3572 == codecSelferValueTypeMap1234 { + yyl3572 := r.ReadMapStart() + if yyl3572 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3434, d) + x.codecDecodeSelfFromMap(yyl3572, d) } - } else if yyct3434 == codecSelferValueTypeArray1234 { - yyl3434 := r.ReadArrayStart() - if yyl3434 == 0 { + } else if yyct3572 == codecSelferValueTypeArray1234 { + yyl3572 := r.ReadArrayStart() + if yyl3572 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3434, d) + x.codecDecodeSelfFromArray(yyl3572, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43472,12 +45168,12 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3435Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3435Slc - var yyhl3435 bool = l >= 0 - for yyj3435 := 0; ; yyj3435++ { - if yyhl3435 { - if yyj3435 >= l { + var yys3573Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3573Slc + var yyhl3573 bool = l >= 0 + for yyj3573 := 0; ; yyj3573++ { + if yyhl3573 { + if yyj3573 >= l { break } } else { @@ -43486,10 +45182,10 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3435Slc = r.DecodeBytes(yys3435Slc, true, true) - yys3435 := string(yys3435Slc) + yys3573Slc = r.DecodeBytes(yys3573Slc, true, true) + yys3573 := string(yys3573Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3435 { + switch yys3573 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -43533,9 +45229,9 @@ func (x *PodAttachOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Container = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3435) - } // end switch yys3435 - } // end for yyj3435 + z.DecStructFieldNotFound(-1, yys3573) + } // end switch yys3573 + } // end for yyj3573 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -43543,16 +45239,16 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3443 int - var yyb3443 bool - var yyhl3443 bool = l >= 0 - yyj3443++ - if yyhl3443 { - yyb3443 = yyj3443 > l + var yyj3581 int + var yyb3581 bool + var yyhl3581 bool = l >= 0 + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb3443 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb3443 { + if yyb3581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43562,13 +45258,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3443++ - if yyhl3443 { - yyb3443 = yyj3443 > l + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb3443 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb3443 { + if yyb3581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43578,13 +45274,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3443++ - if yyhl3443 { - yyb3443 = yyj3443 > l + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb3443 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb3443 { + if yyb3581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43594,13 +45290,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stdin = bool(r.DecodeBool()) } - yyj3443++ - if yyhl3443 { - yyb3443 = yyj3443 > l + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb3443 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb3443 { + if yyb3581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43610,13 +45306,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stdout = bool(r.DecodeBool()) } - yyj3443++ - if yyhl3443 { - yyb3443 = yyj3443 > l + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb3443 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb3443 { + if yyb3581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43626,13 +45322,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Stderr = bool(r.DecodeBool()) } - yyj3443++ - if yyhl3443 { - yyb3443 = yyj3443 > l + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb3443 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb3443 { + if yyb3581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43642,13 +45338,13 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.TTY = bool(r.DecodeBool()) } - yyj3443++ - if yyhl3443 { - yyb3443 = yyj3443 > l + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb3443 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb3443 { + if yyb3581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -43659,17 +45355,17 @@ func (x *PodAttachOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Container = string(r.DecodeString()) } for { - yyj3443++ - if yyhl3443 { - yyb3443 = yyj3443 > l + yyj3581++ + if yyhl3581 { + yyb3581 = yyj3581 > l } else { - yyb3443 = r.CheckBreak() + yyb3581 = r.CheckBreak() } - if yyb3443 { + if yyb3581 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3443-1, "") + z.DecStructFieldNotFound(yyj3581-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -43681,41 +45377,41 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3451 := z.EncBinary() - _ = yym3451 + yym3589 := z.EncBinary() + _ = yym3589 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3452 := !z.EncBinary() - yy2arr3452 := z.EncBasicHandle().StructToArray - var yyq3452 [8]bool - _, _, _ = yysep3452, yyq3452, yy2arr3452 - const yyr3452 bool = false - yyq3452[0] = x.Kind != "" - yyq3452[1] = x.APIVersion != "" - yyq3452[2] = x.Stdin != false - yyq3452[3] = x.Stdout != false - yyq3452[4] = x.Stderr != false - yyq3452[5] = x.TTY != false - yyq3452[6] = x.Container != "" - var yynn3452 int - if yyr3452 || yy2arr3452 { + yysep3590 := !z.EncBinary() + yy2arr3590 := z.EncBasicHandle().StructToArray + var yyq3590 [8]bool + _, _, _ = yysep3590, yyq3590, yy2arr3590 + const yyr3590 bool = false + yyq3590[0] = x.Kind != "" + yyq3590[1] = x.APIVersion != "" + yyq3590[2] = x.Stdin != false + yyq3590[3] = x.Stdout != false + yyq3590[4] = x.Stderr != false + yyq3590[5] = x.TTY != false + yyq3590[6] = x.Container != "" + var yynn3590 int + if yyr3590 || yy2arr3590 { r.EncodeArrayStart(8) } else { - yynn3452 = 1 - for _, b := range yyq3452 { + yynn3590 = 1 + for _, b := range yyq3590 { if b { - yynn3452++ + yynn3590++ } } - r.EncodeMapStart(yynn3452) - yynn3452 = 0 + r.EncodeMapStart(yynn3590) + yynn3590 = 0 } - if yyr3452 || yy2arr3452 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3452[0] { - yym3454 := z.EncBinary() - _ = yym3454 + if yyq3590[0] { + yym3592 := z.EncBinary() + _ = yym3592 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -43724,23 +45420,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3452[0] { + if yyq3590[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3455 := z.EncBinary() - _ = yym3455 + yym3593 := z.EncBinary() + _ = yym3593 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3452 || yy2arr3452 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3452[1] { - yym3457 := z.EncBinary() - _ = yym3457 + if yyq3590[1] { + yym3595 := z.EncBinary() + _ = yym3595 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -43749,23 +45445,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3452[1] { + if yyq3590[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3458 := z.EncBinary() - _ = yym3458 + yym3596 := z.EncBinary() + _ = yym3596 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3452 || yy2arr3452 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3452[2] { - yym3460 := z.EncBinary() - _ = yym3460 + if yyq3590[2] { + yym3598 := z.EncBinary() + _ = yym3598 if false { } else { r.EncodeBool(bool(x.Stdin)) @@ -43774,23 +45470,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3452[2] { + if yyq3590[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3461 := z.EncBinary() - _ = yym3461 + yym3599 := z.EncBinary() + _ = yym3599 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } - if yyr3452 || yy2arr3452 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3452[3] { - yym3463 := z.EncBinary() - _ = yym3463 + if yyq3590[3] { + yym3601 := z.EncBinary() + _ = yym3601 if false { } else { r.EncodeBool(bool(x.Stdout)) @@ -43799,23 +45495,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3452[3] { + if yyq3590[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3464 := z.EncBinary() - _ = yym3464 + yym3602 := z.EncBinary() + _ = yym3602 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } - if yyr3452 || yy2arr3452 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3452[4] { - yym3466 := z.EncBinary() - _ = yym3466 + if yyq3590[4] { + yym3604 := z.EncBinary() + _ = yym3604 if false { } else { r.EncodeBool(bool(x.Stderr)) @@ -43824,23 +45520,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3452[4] { + if yyq3590[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3467 := z.EncBinary() - _ = yym3467 + yym3605 := z.EncBinary() + _ = yym3605 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } - if yyr3452 || yy2arr3452 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3452[5] { - yym3469 := z.EncBinary() - _ = yym3469 + if yyq3590[5] { + yym3607 := z.EncBinary() + _ = yym3607 if false { } else { r.EncodeBool(bool(x.TTY)) @@ -43849,23 +45545,23 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq3452[5] { + if yyq3590[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3470 := z.EncBinary() - _ = yym3470 + yym3608 := z.EncBinary() + _ = yym3608 if false { } else { r.EncodeBool(bool(x.TTY)) } } } - if yyr3452 || yy2arr3452 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3452[6] { - yym3472 := z.EncBinary() - _ = yym3472 + if yyq3590[6] { + yym3610 := z.EncBinary() + _ = yym3610 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) @@ -43874,25 +45570,25 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3452[6] { + if yyq3590[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3473 := z.EncBinary() - _ = yym3473 + yym3611 := z.EncBinary() + _ = yym3611 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } - if yyr3452 || yy2arr3452 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { - yym3475 := z.EncBinary() - _ = yym3475 + yym3613 := z.EncBinary() + _ = yym3613 if false { } else { z.F.EncSliceStringV(x.Command, false, e) @@ -43905,15 +45601,15 @@ func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x.Command == nil { r.EncodeNil() } else { - yym3476 := z.EncBinary() - _ = yym3476 + yym3614 := z.EncBinary() + _ = yym3614 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } - if yyr3452 || yy2arr3452 { + if yyr3590 || yy2arr3590 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -43926,25 +45622,25 @@ func (x *PodExecOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3477 := z.DecBinary() - _ = yym3477 + yym3615 := z.DecBinary() + _ = yym3615 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3478 := r.ContainerType() - if yyct3478 == codecSelferValueTypeMap1234 { - yyl3478 := r.ReadMapStart() - if yyl3478 == 0 { + yyct3616 := r.ContainerType() + if yyct3616 == codecSelferValueTypeMap1234 { + yyl3616 := r.ReadMapStart() + if yyl3616 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3478, d) + x.codecDecodeSelfFromMap(yyl3616, d) } - } else if yyct3478 == codecSelferValueTypeArray1234 { - yyl3478 := r.ReadArrayStart() - if yyl3478 == 0 { + } else if yyct3616 == codecSelferValueTypeArray1234 { + yyl3616 := r.ReadArrayStart() + if yyl3616 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3478, d) + x.codecDecodeSelfFromArray(yyl3616, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -43956,12 +45652,12 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3479Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3479Slc - var yyhl3479 bool = l >= 0 - for yyj3479 := 0; ; yyj3479++ { - if yyhl3479 { - if yyj3479 >= l { + var yys3617Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3617Slc + var yyhl3617 bool = l >= 0 + for yyj3617 := 0; ; yyj3617++ { + if yyhl3617 { + if yyj3617 >= l { break } } else { @@ -43970,10 +45666,10 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3479Slc = r.DecodeBytes(yys3479Slc, true, true) - yys3479 := string(yys3479Slc) + yys3617Slc = r.DecodeBytes(yys3617Slc, true, true) + yys3617 := string(yys3617Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3479 { + switch yys3617 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44020,18 +45716,18 @@ func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv3487 := &x.Command - yym3488 := z.DecBinary() - _ = yym3488 + yyv3625 := &x.Command + yym3626 := z.DecBinary() + _ = yym3626 if false { } else { - z.F.DecSliceStringX(yyv3487, false, d) + z.F.DecSliceStringX(yyv3625, false, d) } } default: - z.DecStructFieldNotFound(-1, yys3479) - } // end switch yys3479 - } // end for yyj3479 + z.DecStructFieldNotFound(-1, yys3617) + } // end switch yys3617 + } // end for yyj3617 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44039,16 +45735,16 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3489 int - var yyb3489 bool - var yyhl3489 bool = l >= 0 - yyj3489++ - if yyhl3489 { - yyb3489 = yyj3489 > l + var yyj3627 int + var yyb3627 bool + var yyhl3627 bool = l >= 0 + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb3489 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb3489 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44058,13 +45754,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3489++ - if yyhl3489 { - yyb3489 = yyj3489 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb3489 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb3489 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44074,13 +45770,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3489++ - if yyhl3489 { - yyb3489 = yyj3489 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb3489 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb3489 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44090,13 +45786,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stdin = bool(r.DecodeBool()) } - yyj3489++ - if yyhl3489 { - yyb3489 = yyj3489 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb3489 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb3489 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44106,13 +45802,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stdout = bool(r.DecodeBool()) } - yyj3489++ - if yyhl3489 { - yyb3489 = yyj3489 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb3489 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb3489 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44122,13 +45818,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Stderr = bool(r.DecodeBool()) } - yyj3489++ - if yyhl3489 { - yyb3489 = yyj3489 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb3489 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb3489 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44138,13 +45834,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.TTY = bool(r.DecodeBool()) } - yyj3489++ - if yyhl3489 { - yyb3489 = yyj3489 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb3489 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb3489 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44154,13 +45850,13 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Container = string(r.DecodeString()) } - yyj3489++ - if yyhl3489 { - yyb3489 = yyj3489 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb3489 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb3489 { + if yyb3627 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44168,26 +45864,26 @@ func (x *PodExecOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Command = nil } else { - yyv3497 := &x.Command - yym3498 := z.DecBinary() - _ = yym3498 + yyv3635 := &x.Command + yym3636 := z.DecBinary() + _ = yym3636 if false { } else { - z.F.DecSliceStringX(yyv3497, false, d) + z.F.DecSliceStringX(yyv3635, false, d) } } for { - yyj3489++ - if yyhl3489 { - yyb3489 = yyj3489 > l + yyj3627++ + if yyhl3627 { + yyb3627 = yyj3627 > l } else { - yyb3489 = r.CheckBreak() + yyb3627 = r.CheckBreak() } - if yyb3489 { + if yyb3627 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3489-1, "") + z.DecStructFieldNotFound(yyj3627-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44199,37 +45895,37 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3499 := z.EncBinary() - _ = yym3499 + yym3637 := z.EncBinary() + _ = yym3637 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3500 := !z.EncBinary() - yy2arr3500 := z.EncBasicHandle().StructToArray - var yyq3500 [3]bool - _, _, _ = yysep3500, yyq3500, yy2arr3500 - const yyr3500 bool = false - yyq3500[0] = x.Kind != "" - yyq3500[1] = x.APIVersion != "" - yyq3500[2] = x.Path != "" - var yynn3500 int - if yyr3500 || yy2arr3500 { + yysep3638 := !z.EncBinary() + yy2arr3638 := z.EncBasicHandle().StructToArray + var yyq3638 [3]bool + _, _, _ = yysep3638, yyq3638, yy2arr3638 + const yyr3638 bool = false + yyq3638[0] = x.Kind != "" + yyq3638[1] = x.APIVersion != "" + yyq3638[2] = x.Path != "" + var yynn3638 int + if yyr3638 || yy2arr3638 { r.EncodeArrayStart(3) } else { - yynn3500 = 0 - for _, b := range yyq3500 { + yynn3638 = 0 + for _, b := range yyq3638 { if b { - yynn3500++ + yynn3638++ } } - r.EncodeMapStart(yynn3500) - yynn3500 = 0 + r.EncodeMapStart(yynn3638) + yynn3638 = 0 } - if yyr3500 || yy2arr3500 { + if yyr3638 || yy2arr3638 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3500[0] { - yym3502 := z.EncBinary() - _ = yym3502 + if yyq3638[0] { + yym3640 := z.EncBinary() + _ = yym3640 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44238,23 +45934,23 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3500[0] { + if yyq3638[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3503 := z.EncBinary() - _ = yym3503 + yym3641 := z.EncBinary() + _ = yym3641 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3500 || yy2arr3500 { + if yyr3638 || yy2arr3638 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3500[1] { - yym3505 := z.EncBinary() - _ = yym3505 + if yyq3638[1] { + yym3643 := z.EncBinary() + _ = yym3643 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44263,23 +45959,23 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3500[1] { + if yyq3638[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3506 := z.EncBinary() - _ = yym3506 + yym3644 := z.EncBinary() + _ = yym3644 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3500 || yy2arr3500 { + if yyr3638 || yy2arr3638 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3500[2] { - yym3508 := z.EncBinary() - _ = yym3508 + if yyq3638[2] { + yym3646 := z.EncBinary() + _ = yym3646 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -44288,19 +45984,19 @@ func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3500[2] { + if yyq3638[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3509 := z.EncBinary() - _ = yym3509 + yym3647 := z.EncBinary() + _ = yym3647 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr3500 || yy2arr3500 { + if yyr3638 || yy2arr3638 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44313,25 +46009,25 @@ func (x *PodProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3510 := z.DecBinary() - _ = yym3510 + yym3648 := z.DecBinary() + _ = yym3648 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3511 := r.ContainerType() - if yyct3511 == codecSelferValueTypeMap1234 { - yyl3511 := r.ReadMapStart() - if yyl3511 == 0 { + yyct3649 := r.ContainerType() + if yyct3649 == codecSelferValueTypeMap1234 { + yyl3649 := r.ReadMapStart() + if yyl3649 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3511, d) + x.codecDecodeSelfFromMap(yyl3649, d) } - } else if yyct3511 == codecSelferValueTypeArray1234 { - yyl3511 := r.ReadArrayStart() - if yyl3511 == 0 { + } else if yyct3649 == codecSelferValueTypeArray1234 { + yyl3649 := r.ReadArrayStart() + if yyl3649 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3511, d) + x.codecDecodeSelfFromArray(yyl3649, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44343,12 +46039,12 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3512Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3512Slc - var yyhl3512 bool = l >= 0 - for yyj3512 := 0; ; yyj3512++ { - if yyhl3512 { - if yyj3512 >= l { + var yys3650Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3650Slc + var yyhl3650 bool = l >= 0 + for yyj3650 := 0; ; yyj3650++ { + if yyhl3650 { + if yyj3650 >= l { break } } else { @@ -44357,10 +46053,10 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3512Slc = r.DecodeBytes(yys3512Slc, true, true) - yys3512 := string(yys3512Slc) + yys3650Slc = r.DecodeBytes(yys3650Slc, true, true) + yys3650 := string(yys3650Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3512 { + switch yys3650 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44380,9 +46076,9 @@ func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3512) - } // end switch yys3512 - } // end for yyj3512 + z.DecStructFieldNotFound(-1, yys3650) + } // end switch yys3650 + } // end for yyj3650 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44390,16 +46086,16 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3516 int - var yyb3516 bool - var yyhl3516 bool = l >= 0 - yyj3516++ - if yyhl3516 { - yyb3516 = yyj3516 > l + var yyj3654 int + var yyb3654 bool + var yyhl3654 bool = l >= 0 + yyj3654++ + if yyhl3654 { + yyb3654 = yyj3654 > l } else { - yyb3516 = r.CheckBreak() + yyb3654 = r.CheckBreak() } - if yyb3516 { + if yyb3654 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44409,13 +46105,13 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3516++ - if yyhl3516 { - yyb3516 = yyj3516 > l + yyj3654++ + if yyhl3654 { + yyb3654 = yyj3654 > l } else { - yyb3516 = r.CheckBreak() + yyb3654 = r.CheckBreak() } - if yyb3516 { + if yyb3654 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44425,13 +46121,13 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3516++ - if yyhl3516 { - yyb3516 = yyj3516 > l + yyj3654++ + if yyhl3654 { + yyb3654 = yyj3654 > l } else { - yyb3516 = r.CheckBreak() + yyb3654 = r.CheckBreak() } - if yyb3516 { + if yyb3654 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44442,17 +46138,17 @@ func (x *PodProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Path = string(r.DecodeString()) } for { - yyj3516++ - if yyhl3516 { - yyb3516 = yyj3516 > l + yyj3654++ + if yyhl3654 { + yyb3654 = yyj3654 > l } else { - yyb3516 = r.CheckBreak() + yyb3654 = r.CheckBreak() } - if yyb3516 { + if yyb3654 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3516-1, "") + z.DecStructFieldNotFound(yyj3654-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44464,37 +46160,37 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3520 := z.EncBinary() - _ = yym3520 + yym3658 := z.EncBinary() + _ = yym3658 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3521 := !z.EncBinary() - yy2arr3521 := z.EncBasicHandle().StructToArray - var yyq3521 [3]bool - _, _, _ = yysep3521, yyq3521, yy2arr3521 - const yyr3521 bool = false - yyq3521[0] = x.Kind != "" - yyq3521[1] = x.APIVersion != "" - yyq3521[2] = x.Path != "" - var yynn3521 int - if yyr3521 || yy2arr3521 { + yysep3659 := !z.EncBinary() + yy2arr3659 := z.EncBasicHandle().StructToArray + var yyq3659 [3]bool + _, _, _ = yysep3659, yyq3659, yy2arr3659 + const yyr3659 bool = false + yyq3659[0] = x.Kind != "" + yyq3659[1] = x.APIVersion != "" + yyq3659[2] = x.Path != "" + var yynn3659 int + if yyr3659 || yy2arr3659 { r.EncodeArrayStart(3) } else { - yynn3521 = 0 - for _, b := range yyq3521 { + yynn3659 = 0 + for _, b := range yyq3659 { if b { - yynn3521++ + yynn3659++ } } - r.EncodeMapStart(yynn3521) - yynn3521 = 0 + r.EncodeMapStart(yynn3659) + yynn3659 = 0 } - if yyr3521 || yy2arr3521 { + if yyr3659 || yy2arr3659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3521[0] { - yym3523 := z.EncBinary() - _ = yym3523 + if yyq3659[0] { + yym3661 := z.EncBinary() + _ = yym3661 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44503,23 +46199,23 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3521[0] { + if yyq3659[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3524 := z.EncBinary() - _ = yym3524 + yym3662 := z.EncBinary() + _ = yym3662 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3521 || yy2arr3521 { + if yyr3659 || yy2arr3659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3521[1] { - yym3526 := z.EncBinary() - _ = yym3526 + if yyq3659[1] { + yym3664 := z.EncBinary() + _ = yym3664 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44528,23 +46224,23 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3521[1] { + if yyq3659[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3527 := z.EncBinary() - _ = yym3527 + yym3665 := z.EncBinary() + _ = yym3665 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3521 || yy2arr3521 { + if yyr3659 || yy2arr3659 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3521[2] { - yym3529 := z.EncBinary() - _ = yym3529 + if yyq3659[2] { + yym3667 := z.EncBinary() + _ = yym3667 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -44553,19 +46249,19 @@ func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3521[2] { + if yyq3659[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3530 := z.EncBinary() - _ = yym3530 + yym3668 := z.EncBinary() + _ = yym3668 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr3521 || yy2arr3521 { + if yyr3659 || yy2arr3659 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44578,25 +46274,25 @@ func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3531 := z.DecBinary() - _ = yym3531 + yym3669 := z.DecBinary() + _ = yym3669 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3532 := r.ContainerType() - if yyct3532 == codecSelferValueTypeMap1234 { - yyl3532 := r.ReadMapStart() - if yyl3532 == 0 { + yyct3670 := r.ContainerType() + if yyct3670 == codecSelferValueTypeMap1234 { + yyl3670 := r.ReadMapStart() + if yyl3670 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3532, d) + x.codecDecodeSelfFromMap(yyl3670, d) } - } else if yyct3532 == codecSelferValueTypeArray1234 { - yyl3532 := r.ReadArrayStart() - if yyl3532 == 0 { + } else if yyct3670 == codecSelferValueTypeArray1234 { + yyl3670 := r.ReadArrayStart() + if yyl3670 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3532, d) + x.codecDecodeSelfFromArray(yyl3670, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44608,12 +46304,12 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3533Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3533Slc - var yyhl3533 bool = l >= 0 - for yyj3533 := 0; ; yyj3533++ { - if yyhl3533 { - if yyj3533 >= l { + var yys3671Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3671Slc + var yyhl3671 bool = l >= 0 + for yyj3671 := 0; ; yyj3671++ { + if yyhl3671 { + if yyj3671 >= l { break } } else { @@ -44622,10 +46318,10 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3533Slc = r.DecodeBytes(yys3533Slc, true, true) - yys3533 := string(yys3533Slc) + yys3671Slc = r.DecodeBytes(yys3671Slc, true, true) + yys3671 := string(yys3671Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3533 { + switch yys3671 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44645,9 +46341,9 @@ func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3533) - } // end switch yys3533 - } // end for yyj3533 + z.DecStructFieldNotFound(-1, yys3671) + } // end switch yys3671 + } // end for yyj3671 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44655,16 +46351,16 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3537 int - var yyb3537 bool - var yyhl3537 bool = l >= 0 - yyj3537++ - if yyhl3537 { - yyb3537 = yyj3537 > l + var yyj3675 int + var yyb3675 bool + var yyhl3675 bool = l >= 0 + yyj3675++ + if yyhl3675 { + yyb3675 = yyj3675 > l } else { - yyb3537 = r.CheckBreak() + yyb3675 = r.CheckBreak() } - if yyb3537 { + if yyb3675 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44674,13 +46370,13 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3537++ - if yyhl3537 { - yyb3537 = yyj3537 > l + yyj3675++ + if yyhl3675 { + yyb3675 = yyj3675 > l } else { - yyb3537 = r.CheckBreak() + yyb3675 = r.CheckBreak() } - if yyb3537 { + if yyb3675 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44690,13 +46386,13 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3537++ - if yyhl3537 { - yyb3537 = yyj3537 > l + yyj3675++ + if yyhl3675 { + yyb3675 = yyj3675 > l } else { - yyb3537 = r.CheckBreak() + yyb3675 = r.CheckBreak() } - if yyb3537 { + if yyb3675 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44707,17 +46403,17 @@ func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Path = string(r.DecodeString()) } for { - yyj3537++ - if yyhl3537 { - yyb3537 = yyj3537 > l + yyj3675++ + if yyhl3675 { + yyb3675 = yyj3675 > l } else { - yyb3537 = r.CheckBreak() + yyb3675 = r.CheckBreak() } - if yyb3537 { + if yyb3675 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3537-1, "") + z.DecStructFieldNotFound(yyj3675-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44729,37 +46425,37 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3541 := z.EncBinary() - _ = yym3541 + yym3679 := z.EncBinary() + _ = yym3679 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3542 := !z.EncBinary() - yy2arr3542 := z.EncBasicHandle().StructToArray - var yyq3542 [3]bool - _, _, _ = yysep3542, yyq3542, yy2arr3542 - const yyr3542 bool = false - yyq3542[0] = x.Kind != "" - yyq3542[1] = x.APIVersion != "" - yyq3542[2] = x.Path != "" - var yynn3542 int - if yyr3542 || yy2arr3542 { + yysep3680 := !z.EncBinary() + yy2arr3680 := z.EncBasicHandle().StructToArray + var yyq3680 [3]bool + _, _, _ = yysep3680, yyq3680, yy2arr3680 + const yyr3680 bool = false + yyq3680[0] = x.Kind != "" + yyq3680[1] = x.APIVersion != "" + yyq3680[2] = x.Path != "" + var yynn3680 int + if yyr3680 || yy2arr3680 { r.EncodeArrayStart(3) } else { - yynn3542 = 0 - for _, b := range yyq3542 { + yynn3680 = 0 + for _, b := range yyq3680 { if b { - yynn3542++ + yynn3680++ } } - r.EncodeMapStart(yynn3542) - yynn3542 = 0 + r.EncodeMapStart(yynn3680) + yynn3680 = 0 } - if yyr3542 || yy2arr3542 { + if yyr3680 || yy2arr3680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3542[0] { - yym3544 := z.EncBinary() - _ = yym3544 + if yyq3680[0] { + yym3682 := z.EncBinary() + _ = yym3682 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -44768,23 +46464,23 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3542[0] { + if yyq3680[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3545 := z.EncBinary() - _ = yym3545 + yym3683 := z.EncBinary() + _ = yym3683 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3542 || yy2arr3542 { + if yyr3680 || yy2arr3680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3542[1] { - yym3547 := z.EncBinary() - _ = yym3547 + if yyq3680[1] { + yym3685 := z.EncBinary() + _ = yym3685 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -44793,23 +46489,23 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3542[1] { + if yyq3680[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3548 := z.EncBinary() - _ = yym3548 + yym3686 := z.EncBinary() + _ = yym3686 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3542 || yy2arr3542 { + if yyr3680 || yy2arr3680 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3542[2] { - yym3550 := z.EncBinary() - _ = yym3550 + if yyq3680[2] { + yym3688 := z.EncBinary() + _ = yym3688 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -44818,19 +46514,19 @@ func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3542[2] { + if yyq3680[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3551 := z.EncBinary() - _ = yym3551 + yym3689 := z.EncBinary() + _ = yym3689 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } - if yyr3542 || yy2arr3542 { + if yyr3680 || yy2arr3680 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -44843,25 +46539,25 @@ func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3552 := z.DecBinary() - _ = yym3552 + yym3690 := z.DecBinary() + _ = yym3690 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3553 := r.ContainerType() - if yyct3553 == codecSelferValueTypeMap1234 { - yyl3553 := r.ReadMapStart() - if yyl3553 == 0 { + yyct3691 := r.ContainerType() + if yyct3691 == codecSelferValueTypeMap1234 { + yyl3691 := r.ReadMapStart() + if yyl3691 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3553, d) + x.codecDecodeSelfFromMap(yyl3691, d) } - } else if yyct3553 == codecSelferValueTypeArray1234 { - yyl3553 := r.ReadArrayStart() - if yyl3553 == 0 { + } else if yyct3691 == codecSelferValueTypeArray1234 { + yyl3691 := r.ReadArrayStart() + if yyl3691 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3553, d) + x.codecDecodeSelfFromArray(yyl3691, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -44873,12 +46569,12 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3554Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3554Slc - var yyhl3554 bool = l >= 0 - for yyj3554 := 0; ; yyj3554++ { - if yyhl3554 { - if yyj3554 >= l { + var yys3692Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3692Slc + var yyhl3692 bool = l >= 0 + for yyj3692 := 0; ; yyj3692++ { + if yyhl3692 { + if yyj3692 >= l { break } } else { @@ -44887,10 +46583,10 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3554Slc = r.DecodeBytes(yys3554Slc, true, true) - yys3554 := string(yys3554Slc) + yys3692Slc = r.DecodeBytes(yys3692Slc, true, true) + yys3692 := string(yys3692Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3554 { + switch yys3692 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -44910,9 +46606,9 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.Path = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3554) - } // end switch yys3554 - } // end for yyj3554 + z.DecStructFieldNotFound(-1, yys3692) + } // end switch yys3692 + } // end for yyj3692 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -44920,16 +46616,16 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3558 int - var yyb3558 bool - var yyhl3558 bool = l >= 0 - yyj3558++ - if yyhl3558 { - yyb3558 = yyj3558 > l + var yyj3696 int + var yyb3696 bool + var yyhl3696 bool = l >= 0 + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb3558 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb3558 { + if yyb3696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44939,13 +46635,13 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj3558++ - if yyhl3558 { - yyb3558 = yyj3558 > l + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb3558 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb3558 { + if yyb3696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44955,13 +46651,13 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj3558++ - if yyhl3558 { - yyb3558 = yyj3558 > l + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb3558 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb3558 { + if yyb3696 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -44972,17 +46668,17 @@ func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.Path = string(r.DecodeString()) } for { - yyj3558++ - if yyhl3558 { - yyb3558 = yyj3558 > l + yyj3696++ + if yyhl3696 { + yyb3696 = yyj3696 > l } else { - yyb3558 = r.CheckBreak() + yyb3696 = r.CheckBreak() } - if yyb3558 { + if yyb3696 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3558-1, "") + z.DecStructFieldNotFound(yyj3696-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -44994,34 +46690,34 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3562 := z.EncBinary() - _ = yym3562 + yym3700 := z.EncBinary() + _ = yym3700 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3563 := !z.EncBinary() - yy2arr3563 := z.EncBasicHandle().StructToArray - var yyq3563 [5]bool - _, _, _ = yysep3563, yyq3563, yy2arr3563 - const yyr3563 bool = false - yyq3563[4] = x.Controller != nil - var yynn3563 int - if yyr3563 || yy2arr3563 { + yysep3701 := !z.EncBinary() + yy2arr3701 := z.EncBasicHandle().StructToArray + var yyq3701 [5]bool + _, _, _ = yysep3701, yyq3701, yy2arr3701 + const yyr3701 bool = false + yyq3701[4] = x.Controller != nil + var yynn3701 int + if yyr3701 || yy2arr3701 { r.EncodeArrayStart(5) } else { - yynn3563 = 4 - for _, b := range yyq3563 { + yynn3701 = 4 + for _, b := range yyq3701 { if b { - yynn3563++ + yynn3701++ } } - r.EncodeMapStart(yynn3563) - yynn3563 = 0 + r.EncodeMapStart(yynn3701) + yynn3701 = 0 } - if yyr3563 || yy2arr3563 { + if yyr3701 || yy2arr3701 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3565 := z.EncBinary() - _ = yym3565 + yym3703 := z.EncBinary() + _ = yym3703 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -45030,17 +46726,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3566 := z.EncBinary() - _ = yym3566 + yym3704 := z.EncBinary() + _ = yym3704 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } - if yyr3563 || yy2arr3563 { + if yyr3701 || yy2arr3701 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3568 := z.EncBinary() - _ = yym3568 + yym3706 := z.EncBinary() + _ = yym3706 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -45049,17 +46745,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3569 := z.EncBinary() - _ = yym3569 + yym3707 := z.EncBinary() + _ = yym3707 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } - if yyr3563 || yy2arr3563 { + if yyr3701 || yy2arr3701 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3571 := z.EncBinary() - _ = yym3571 + yym3709 := z.EncBinary() + _ = yym3709 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -45068,17 +46764,17 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3572 := z.EncBinary() - _ = yym3572 + yym3710 := z.EncBinary() + _ = yym3710 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr3563 || yy2arr3563 { + if yyr3701 || yy2arr3701 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym3574 := z.EncBinary() - _ = yym3574 + yym3712 := z.EncBinary() + _ = yym3712 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -45088,50 +46784,50 @@ func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3575 := z.EncBinary() - _ = yym3575 + yym3713 := z.EncBinary() + _ = yym3713 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } - if yyr3563 || yy2arr3563 { + if yyr3701 || yy2arr3701 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3563[4] { + if yyq3701[4] { if x.Controller == nil { r.EncodeNil() } else { - yy3577 := *x.Controller - yym3578 := z.EncBinary() - _ = yym3578 + yy3715 := *x.Controller + yym3716 := z.EncBinary() + _ = yym3716 if false { } else { - r.EncodeBool(bool(yy3577)) + r.EncodeBool(bool(yy3715)) } } } else { r.EncodeNil() } } else { - if yyq3563[4] { + if yyq3701[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("controller")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Controller == nil { r.EncodeNil() } else { - yy3579 := *x.Controller - yym3580 := z.EncBinary() - _ = yym3580 + yy3717 := *x.Controller + yym3718 := z.EncBinary() + _ = yym3718 if false { } else { - r.EncodeBool(bool(yy3579)) + r.EncodeBool(bool(yy3717)) } } } } - if yyr3563 || yy2arr3563 { + if yyr3701 || yy2arr3701 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45144,25 +46840,25 @@ func (x *OwnerReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3581 := z.DecBinary() - _ = yym3581 + yym3719 := z.DecBinary() + _ = yym3719 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3582 := r.ContainerType() - if yyct3582 == codecSelferValueTypeMap1234 { - yyl3582 := r.ReadMapStart() - if yyl3582 == 0 { + yyct3720 := r.ContainerType() + if yyct3720 == codecSelferValueTypeMap1234 { + yyl3720 := r.ReadMapStart() + if yyl3720 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3582, d) + x.codecDecodeSelfFromMap(yyl3720, d) } - } else if yyct3582 == codecSelferValueTypeArray1234 { - yyl3582 := r.ReadArrayStart() - if yyl3582 == 0 { + } else if yyct3720 == codecSelferValueTypeArray1234 { + yyl3720 := r.ReadArrayStart() + if yyl3720 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3582, d) + x.codecDecodeSelfFromArray(yyl3720, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45174,12 +46870,12 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3583Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3583Slc - var yyhl3583 bool = l >= 0 - for yyj3583 := 0; ; yyj3583++ { - if yyhl3583 { - if yyj3583 >= l { + var yys3721Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3721Slc + var yyhl3721 bool = l >= 0 + for yyj3721 := 0; ; yyj3721++ { + if yyhl3721 { + if yyj3721 >= l { break } } else { @@ -45188,10 +46884,10 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3583Slc = r.DecodeBytes(yys3583Slc, true, true) - yys3583 := string(yys3583Slc) + yys3721Slc = r.DecodeBytes(yys3721Slc, true, true) + yys3721 := string(yys3721Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3583 { + switch yys3721 { case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" @@ -45225,17 +46921,17 @@ func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.Controller == nil { x.Controller = new(bool) } - yym3589 := z.DecBinary() - _ = yym3589 + yym3727 := z.DecBinary() + _ = yym3727 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } default: - z.DecStructFieldNotFound(-1, yys3583) - } // end switch yys3583 - } // end for yyj3583 + z.DecStructFieldNotFound(-1, yys3721) + } // end switch yys3721 + } // end for yyj3721 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45243,16 +46939,16 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3590 int - var yyb3590 bool - var yyhl3590 bool = l >= 0 - yyj3590++ - if yyhl3590 { - yyb3590 = yyj3590 > l + var yyj3728 int + var yyb3728 bool + var yyhl3728 bool = l >= 0 + yyj3728++ + if yyhl3728 { + yyb3728 = yyj3728 > l } else { - yyb3590 = r.CheckBreak() + yyb3728 = r.CheckBreak() } - if yyb3590 { + if yyb3728 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45262,13 +46958,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3590++ - if yyhl3590 { - yyb3590 = yyj3590 > l + yyj3728++ + if yyhl3728 { + yyb3728 = yyj3728 > l } else { - yyb3590 = r.CheckBreak() + yyb3728 = r.CheckBreak() } - if yyb3590 { + if yyb3728 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45278,13 +46974,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3590++ - if yyhl3590 { - yyb3590 = yyj3590 > l + yyj3728++ + if yyhl3728 { + yyb3728 = yyj3728 > l } else { - yyb3590 = r.CheckBreak() + yyb3728 = r.CheckBreak() } - if yyb3590 { + if yyb3728 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45294,13 +46990,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj3590++ - if yyhl3590 { - yyb3590 = yyj3590 > l + yyj3728++ + if yyhl3728 { + yyb3728 = yyj3728 > l } else { - yyb3590 = r.CheckBreak() + yyb3728 = r.CheckBreak() } - if yyb3590 { + if yyb3728 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45310,13 +47006,13 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj3590++ - if yyhl3590 { - yyb3590 = yyj3590 > l + yyj3728++ + if yyhl3728 { + yyb3728 = yyj3728 > l } else { - yyb3590 = r.CheckBreak() + yyb3728 = r.CheckBreak() } - if yyb3590 { + if yyb3728 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45329,25 +47025,25 @@ func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.Controller == nil { x.Controller = new(bool) } - yym3596 := z.DecBinary() - _ = yym3596 + yym3734 := z.DecBinary() + _ = yym3734 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } for { - yyj3590++ - if yyhl3590 { - yyb3590 = yyj3590 > l + yyj3728++ + if yyhl3728 { + yyb3728 = yyj3728 > l } else { - yyb3590 = r.CheckBreak() + yyb3728 = r.CheckBreak() } - if yyb3590 { + if yyb3728 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3590-1, "") + z.DecStructFieldNotFound(yyj3728-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45359,41 +47055,41 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3597 := z.EncBinary() - _ = yym3597 + yym3735 := z.EncBinary() + _ = yym3735 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3598 := !z.EncBinary() - yy2arr3598 := z.EncBasicHandle().StructToArray - var yyq3598 [7]bool - _, _, _ = yysep3598, yyq3598, yy2arr3598 - const yyr3598 bool = false - yyq3598[0] = x.Kind != "" - yyq3598[1] = x.Namespace != "" - yyq3598[2] = x.Name != "" - yyq3598[3] = x.UID != "" - yyq3598[4] = x.APIVersion != "" - yyq3598[5] = x.ResourceVersion != "" - yyq3598[6] = x.FieldPath != "" - var yynn3598 int - if yyr3598 || yy2arr3598 { + yysep3736 := !z.EncBinary() + yy2arr3736 := z.EncBasicHandle().StructToArray + var yyq3736 [7]bool + _, _, _ = yysep3736, yyq3736, yy2arr3736 + const yyr3736 bool = false + yyq3736[0] = x.Kind != "" + yyq3736[1] = x.Namespace != "" + yyq3736[2] = x.Name != "" + yyq3736[3] = x.UID != "" + yyq3736[4] = x.APIVersion != "" + yyq3736[5] = x.ResourceVersion != "" + yyq3736[6] = x.FieldPath != "" + var yynn3736 int + if yyr3736 || yy2arr3736 { r.EncodeArrayStart(7) } else { - yynn3598 = 0 - for _, b := range yyq3598 { + yynn3736 = 0 + for _, b := range yyq3736 { if b { - yynn3598++ + yynn3736++ } } - r.EncodeMapStart(yynn3598) - yynn3598 = 0 + r.EncodeMapStart(yynn3736) + yynn3736 = 0 } - if yyr3598 || yy2arr3598 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3598[0] { - yym3600 := z.EncBinary() - _ = yym3600 + if yyq3736[0] { + yym3738 := z.EncBinary() + _ = yym3738 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -45402,23 +47098,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3598[0] { + if yyq3736[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3601 := z.EncBinary() - _ = yym3601 + yym3739 := z.EncBinary() + _ = yym3739 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3598 || yy2arr3598 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3598[1] { - yym3603 := z.EncBinary() - _ = yym3603 + if yyq3736[1] { + yym3741 := z.EncBinary() + _ = yym3741 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) @@ -45427,23 +47123,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3598[1] { + if yyq3736[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3604 := z.EncBinary() - _ = yym3604 + yym3742 := z.EncBinary() + _ = yym3742 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } - if yyr3598 || yy2arr3598 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3598[2] { - yym3606 := z.EncBinary() - _ = yym3606 + if yyq3736[2] { + yym3744 := z.EncBinary() + _ = yym3744 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -45452,23 +47148,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3598[2] { + if yyq3736[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3607 := z.EncBinary() - _ = yym3607 + yym3745 := z.EncBinary() + _ = yym3745 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr3598 || yy2arr3598 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3598[3] { - yym3609 := z.EncBinary() - _ = yym3609 + if yyq3736[3] { + yym3747 := z.EncBinary() + _ = yym3747 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -45478,12 +47174,12 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3598[3] { + if yyq3736[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3610 := z.EncBinary() - _ = yym3610 + yym3748 := z.EncBinary() + _ = yym3748 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { @@ -45491,11 +47187,11 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3598 || yy2arr3598 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3598[4] { - yym3612 := z.EncBinary() - _ = yym3612 + if yyq3736[4] { + yym3750 := z.EncBinary() + _ = yym3750 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -45504,23 +47200,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3598[4] { + if yyq3736[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3613 := z.EncBinary() - _ = yym3613 + yym3751 := z.EncBinary() + _ = yym3751 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3598 || yy2arr3598 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3598[5] { - yym3615 := z.EncBinary() - _ = yym3615 + if yyq3736[5] { + yym3753 := z.EncBinary() + _ = yym3753 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) @@ -45529,23 +47225,23 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3598[5] { + if yyq3736[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3616 := z.EncBinary() - _ = yym3616 + yym3754 := z.EncBinary() + _ = yym3754 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } - if yyr3598 || yy2arr3598 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3598[6] { - yym3618 := z.EncBinary() - _ = yym3618 + if yyq3736[6] { + yym3756 := z.EncBinary() + _ = yym3756 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) @@ -45554,19 +47250,19 @@ func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3598[6] { + if yyq3736[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3619 := z.EncBinary() - _ = yym3619 + yym3757 := z.EncBinary() + _ = yym3757 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } - if yyr3598 || yy2arr3598 { + if yyr3736 || yy2arr3736 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45579,25 +47275,25 @@ func (x *ObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3620 := z.DecBinary() - _ = yym3620 + yym3758 := z.DecBinary() + _ = yym3758 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3621 := r.ContainerType() - if yyct3621 == codecSelferValueTypeMap1234 { - yyl3621 := r.ReadMapStart() - if yyl3621 == 0 { + yyct3759 := r.ContainerType() + if yyct3759 == codecSelferValueTypeMap1234 { + yyl3759 := r.ReadMapStart() + if yyl3759 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3621, d) + x.codecDecodeSelfFromMap(yyl3759, d) } - } else if yyct3621 == codecSelferValueTypeArray1234 { - yyl3621 := r.ReadArrayStart() - if yyl3621 == 0 { + } else if yyct3759 == codecSelferValueTypeArray1234 { + yyl3759 := r.ReadArrayStart() + if yyl3759 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3621, d) + x.codecDecodeSelfFromArray(yyl3759, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45609,12 +47305,12 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3622Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3622Slc - var yyhl3622 bool = l >= 0 - for yyj3622 := 0; ; yyj3622++ { - if yyhl3622 { - if yyj3622 >= l { + var yys3760Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3760Slc + var yyhl3760 bool = l >= 0 + for yyj3760 := 0; ; yyj3760++ { + if yyhl3760 { + if yyj3760 >= l { break } } else { @@ -45623,10 +47319,10 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3622Slc = r.DecodeBytes(yys3622Slc, true, true) - yys3622 := string(yys3622Slc) + yys3760Slc = r.DecodeBytes(yys3760Slc, true, true) + yys3760 := string(yys3760Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3622 { + switch yys3760 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -45670,9 +47366,9 @@ func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.FieldPath = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3622) - } // end switch yys3622 - } // end for yyj3622 + z.DecStructFieldNotFound(-1, yys3760) + } // end switch yys3760 + } // end for yyj3760 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45680,16 +47376,16 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3630 int - var yyb3630 bool - var yyhl3630 bool = l >= 0 - yyj3630++ - if yyhl3630 { - yyb3630 = yyj3630 > l + var yyj3768 int + var yyb3768 bool + var yyhl3768 bool = l >= 0 + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb3630 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb3630 { + if yyb3768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45699,13 +47395,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj3630++ - if yyhl3630 { - yyb3630 = yyj3630 > l + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb3630 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb3630 { + if yyb3768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45715,13 +47411,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Namespace = string(r.DecodeString()) } - yyj3630++ - if yyhl3630 { - yyb3630 = yyj3630 > l + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb3630 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb3630 { + if yyb3768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45731,13 +47427,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Name = string(r.DecodeString()) } - yyj3630++ - if yyhl3630 { - yyb3630 = yyj3630 > l + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb3630 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb3630 { + if yyb3768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45747,13 +47443,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.UID = pkg1_types.UID(r.DecodeString()) } - yyj3630++ - if yyhl3630 { - yyb3630 = yyj3630 > l + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb3630 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb3630 { + if yyb3768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45763,13 +47459,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj3630++ - if yyhl3630 { - yyb3630 = yyj3630 > l + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb3630 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb3630 { + if yyb3768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45779,13 +47475,13 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.ResourceVersion = string(r.DecodeString()) } - yyj3630++ - if yyhl3630 { - yyb3630 = yyj3630 > l + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb3630 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb3630 { + if yyb3768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45796,17 +47492,17 @@ func (x *ObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.FieldPath = string(r.DecodeString()) } for { - yyj3630++ - if yyhl3630 { - yyb3630 = yyj3630 > l + yyj3768++ + if yyhl3768 { + yyb3768 = yyj3768 > l } else { - yyb3630 = r.CheckBreak() + yyb3768 = r.CheckBreak() } - if yyb3630 { + if yyb3768 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3630-1, "") + z.DecStructFieldNotFound(yyj3768-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -45818,35 +47514,35 @@ func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3638 := z.EncBinary() - _ = yym3638 + yym3776 := z.EncBinary() + _ = yym3776 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3639 := !z.EncBinary() - yy2arr3639 := z.EncBasicHandle().StructToArray - var yyq3639 [1]bool - _, _, _ = yysep3639, yyq3639, yy2arr3639 - const yyr3639 bool = false - yyq3639[0] = x.Name != "" - var yynn3639 int - if yyr3639 || yy2arr3639 { + yysep3777 := !z.EncBinary() + yy2arr3777 := z.EncBasicHandle().StructToArray + var yyq3777 [1]bool + _, _, _ = yysep3777, yyq3777, yy2arr3777 + const yyr3777 bool = false + yyq3777[0] = x.Name != "" + var yynn3777 int + if yyr3777 || yy2arr3777 { r.EncodeArrayStart(1) } else { - yynn3639 = 0 - for _, b := range yyq3639 { + yynn3777 = 0 + for _, b := range yyq3777 { if b { - yynn3639++ + yynn3777++ } } - r.EncodeMapStart(yynn3639) - yynn3639 = 0 + r.EncodeMapStart(yynn3777) + yynn3777 = 0 } - if yyr3639 || yy2arr3639 { + if yyr3777 || yy2arr3777 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3639[0] { - yym3641 := z.EncBinary() - _ = yym3641 + if yyq3777[0] { + yym3779 := z.EncBinary() + _ = yym3779 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -45855,19 +47551,19 @@ func (x *LocalObjectReference) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3639[0] { + if yyq3777[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3642 := z.EncBinary() - _ = yym3642 + yym3780 := z.EncBinary() + _ = yym3780 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } - if yyr3639 || yy2arr3639 { + if yyr3777 || yy2arr3777 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -45880,25 +47576,25 @@ func (x *LocalObjectReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3643 := z.DecBinary() - _ = yym3643 + yym3781 := z.DecBinary() + _ = yym3781 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3644 := r.ContainerType() - if yyct3644 == codecSelferValueTypeMap1234 { - yyl3644 := r.ReadMapStart() - if yyl3644 == 0 { + yyct3782 := r.ContainerType() + if yyct3782 == codecSelferValueTypeMap1234 { + yyl3782 := r.ReadMapStart() + if yyl3782 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3644, d) + x.codecDecodeSelfFromMap(yyl3782, d) } - } else if yyct3644 == codecSelferValueTypeArray1234 { - yyl3644 := r.ReadArrayStart() - if yyl3644 == 0 { + } else if yyct3782 == codecSelferValueTypeArray1234 { + yyl3782 := r.ReadArrayStart() + if yyl3782 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3644, d) + x.codecDecodeSelfFromArray(yyl3782, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -45910,12 +47606,12 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3645Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3645Slc - var yyhl3645 bool = l >= 0 - for yyj3645 := 0; ; yyj3645++ { - if yyhl3645 { - if yyj3645 >= l { + var yys3783Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3783Slc + var yyhl3783 bool = l >= 0 + for yyj3783 := 0; ; yyj3783++ { + if yyhl3783 { + if yyj3783 >= l { break } } else { @@ -45924,10 +47620,10 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3645Slc = r.DecodeBytes(yys3645Slc, true, true) - yys3645 := string(yys3645Slc) + yys3783Slc = r.DecodeBytes(yys3783Slc, true, true) + yys3783 := string(yys3783Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3645 { + switch yys3783 { case "name": if r.TryDecodeAsNil() { x.Name = "" @@ -45935,9 +47631,9 @@ func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decode x.Name = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3645) - } // end switch yys3645 - } // end for yyj3645 + z.DecStructFieldNotFound(-1, yys3783) + } // end switch yys3783 + } // end for yyj3783 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -45945,16 +47641,16 @@ func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3647 int - var yyb3647 bool - var yyhl3647 bool = l >= 0 - yyj3647++ - if yyhl3647 { - yyb3647 = yyj3647 > l + var yyj3785 int + var yyb3785 bool + var yyhl3785 bool = l >= 0 + yyj3785++ + if yyhl3785 { + yyb3785 = yyj3785 > l } else { - yyb3647 = r.CheckBreak() + yyb3785 = r.CheckBreak() } - if yyb3647 { + if yyb3785 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -45965,1527 +47661,22 @@ func (x *LocalObjectReference) codecDecodeSelfFromArray(l int, d *codec1978.Deco x.Name = string(r.DecodeString()) } for { - yyj3647++ - if yyhl3647 { - yyb3647 = yyj3647 > l + yyj3785++ + if yyhl3785 { + yyb3785 = yyj3785 > l } else { - yyb3647 = r.CheckBreak() + yyb3785 = r.CheckBreak() } - if yyb3647 { + if yyb3785 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3647-1, "") + z.DecStructFieldNotFound(yyj3785-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3649 := z.EncBinary() - _ = yym3649 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3650 := !z.EncBinary() - yy2arr3650 := z.EncBasicHandle().StructToArray - var yyq3650 [3]bool - _, _, _ = yysep3650, yyq3650, yy2arr3650 - const yyr3650 bool = false - yyq3650[0] = x.Kind != "" - yyq3650[1] = x.APIVersion != "" - yyq3650[2] = true - var yynn3650 int - if yyr3650 || yy2arr3650 { - r.EncodeArrayStart(3) - } else { - yynn3650 = 0 - for _, b := range yyq3650 { - if b { - yynn3650++ - } - } - r.EncodeMapStart(yynn3650) - yynn3650 = 0 - } - if yyr3650 || yy2arr3650 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3650[0] { - yym3652 := z.EncBinary() - _ = yym3652 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3650[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3653 := z.EncBinary() - _ = yym3653 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3650 || yy2arr3650 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3650[1] { - yym3655 := z.EncBinary() - _ = yym3655 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3650[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3656 := z.EncBinary() - _ = yym3656 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3650 || yy2arr3650 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3650[2] { - yy3658 := &x.Reference - yy3658.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3650[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reference")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3659 := &x.Reference - yy3659.CodecEncodeSelf(e) - } - } - if yyr3650 || yy2arr3650 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SerializedReference) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3660 := z.DecBinary() - _ = yym3660 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3661 := r.ContainerType() - if yyct3661 == codecSelferValueTypeMap1234 { - yyl3661 := r.ReadMapStart() - if yyl3661 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3661, d) - } - } else if yyct3661 == codecSelferValueTypeArray1234 { - yyl3661 := r.ReadArrayStart() - if yyl3661 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3661, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3662Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3662Slc - var yyhl3662 bool = l >= 0 - for yyj3662 := 0; ; yyj3662++ { - if yyhl3662 { - if yyj3662 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3662Slc = r.DecodeBytes(yys3662Slc, true, true) - yys3662 := string(yys3662Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3662 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "reference": - if r.TryDecodeAsNil() { - x.Reference = ObjectReference{} - } else { - yyv3665 := &x.Reference - yyv3665.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys3662) - } // end switch yys3662 - } // end for yyj3662 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3666 int - var yyb3666 bool - var yyhl3666 bool = l >= 0 - yyj3666++ - if yyhl3666 { - yyb3666 = yyj3666 > l - } else { - yyb3666 = r.CheckBreak() - } - if yyb3666 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3666++ - if yyhl3666 { - yyb3666 = yyj3666 > l - } else { - yyb3666 = r.CheckBreak() - } - if yyb3666 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3666++ - if yyhl3666 { - yyb3666 = yyj3666 > l - } else { - yyb3666 = r.CheckBreak() - } - if yyb3666 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reference = ObjectReference{} - } else { - yyv3669 := &x.Reference - yyv3669.CodecDecodeSelf(d) - } - for { - yyj3666++ - if yyhl3666 { - yyb3666 = yyj3666 > l - } else { - yyb3666 = r.CheckBreak() - } - if yyb3666 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3666-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3670 := z.EncBinary() - _ = yym3670 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3671 := !z.EncBinary() - yy2arr3671 := z.EncBasicHandle().StructToArray - var yyq3671 [2]bool - _, _, _ = yysep3671, yyq3671, yy2arr3671 - const yyr3671 bool = false - yyq3671[0] = x.Component != "" - yyq3671[1] = x.Host != "" - var yynn3671 int - if yyr3671 || yy2arr3671 { - r.EncodeArrayStart(2) - } else { - yynn3671 = 0 - for _, b := range yyq3671 { - if b { - yynn3671++ - } - } - r.EncodeMapStart(yynn3671) - yynn3671 = 0 - } - if yyr3671 || yy2arr3671 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3671[0] { - yym3673 := z.EncBinary() - _ = yym3673 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Component)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3671[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("component")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3674 := z.EncBinary() - _ = yym3674 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Component)) - } - } - } - if yyr3671 || yy2arr3671 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3671[1] { - yym3676 := z.EncBinary() - _ = yym3676 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Host)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3671[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("host")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3677 := z.EncBinary() - _ = yym3677 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Host)) - } - } - } - if yyr3671 || yy2arr3671 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EventSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3678 := z.DecBinary() - _ = yym3678 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3679 := r.ContainerType() - if yyct3679 == codecSelferValueTypeMap1234 { - yyl3679 := r.ReadMapStart() - if yyl3679 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3679, d) - } - } else if yyct3679 == codecSelferValueTypeArray1234 { - yyl3679 := r.ReadArrayStart() - if yyl3679 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3679, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3680Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3680Slc - var yyhl3680 bool = l >= 0 - for yyj3680 := 0; ; yyj3680++ { - if yyhl3680 { - if yyj3680 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3680Slc = r.DecodeBytes(yys3680Slc, true, true) - yys3680 := string(yys3680Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3680 { - case "component": - if r.TryDecodeAsNil() { - x.Component = "" - } else { - x.Component = string(r.DecodeString()) - } - case "host": - if r.TryDecodeAsNil() { - x.Host = "" - } else { - x.Host = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3680) - } // end switch yys3680 - } // end for yyj3680 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3683 int - var yyb3683 bool - var yyhl3683 bool = l >= 0 - yyj3683++ - if yyhl3683 { - yyb3683 = yyj3683 > l - } else { - yyb3683 = r.CheckBreak() - } - if yyb3683 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Component = "" - } else { - x.Component = string(r.DecodeString()) - } - yyj3683++ - if yyhl3683 { - yyb3683 = yyj3683 > l - } else { - yyb3683 = r.CheckBreak() - } - if yyb3683 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Host = "" - } else { - x.Host = string(r.DecodeString()) - } - for { - yyj3683++ - if yyhl3683 { - yyb3683 = yyj3683 > l - } else { - yyb3683 = r.CheckBreak() - } - if yyb3683 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3683-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3686 := z.EncBinary() - _ = yym3686 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3687 := !z.EncBinary() - yy2arr3687 := z.EncBasicHandle().StructToArray - var yyq3687 [11]bool - _, _, _ = yysep3687, yyq3687, yy2arr3687 - const yyr3687 bool = false - yyq3687[0] = x.Kind != "" - yyq3687[1] = x.APIVersion != "" - yyq3687[4] = x.Reason != "" - yyq3687[5] = x.Message != "" - yyq3687[6] = true - yyq3687[7] = true - yyq3687[8] = true - yyq3687[9] = x.Count != 0 - yyq3687[10] = x.Type != "" - var yynn3687 int - if yyr3687 || yy2arr3687 { - r.EncodeArrayStart(11) - } else { - yynn3687 = 2 - for _, b := range yyq3687 { - if b { - yynn3687++ - } - } - r.EncodeMapStart(yynn3687) - yynn3687 = 0 - } - if yyr3687 || yy2arr3687 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3687[0] { - yym3689 := z.EncBinary() - _ = yym3689 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3687[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3690 := z.EncBinary() - _ = yym3690 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3687 || yy2arr3687 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3687[1] { - yym3692 := z.EncBinary() - _ = yym3692 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3687[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3693 := z.EncBinary() - _ = yym3693 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3687 || yy2arr3687 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3695 := &x.ObjectMeta - yy3695.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3696 := &x.ObjectMeta - yy3696.CodecEncodeSelf(e) - } - if yyr3687 || yy2arr3687 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy3698 := &x.InvolvedObject - yy3698.CodecEncodeSelf(e) - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3699 := &x.InvolvedObject - yy3699.CodecEncodeSelf(e) - } - if yyr3687 || yy2arr3687 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3687[4] { - yym3701 := z.EncBinary() - _ = yym3701 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3687[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reason")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3702 := z.EncBinary() - _ = yym3702 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) - } - } - } - if yyr3687 || yy2arr3687 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3687[5] { - yym3704 := z.EncBinary() - _ = yym3704 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3687[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("message")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3705 := z.EncBinary() - _ = yym3705 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Message)) - } - } - } - if yyr3687 || yy2arr3687 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3687[6] { - yy3707 := &x.Source - yy3707.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3687[6] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("source")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3708 := &x.Source - yy3708.CodecEncodeSelf(e) - } - } - if yyr3687 || yy2arr3687 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3687[7] { - yy3710 := &x.FirstTimestamp - yym3711 := z.EncBinary() - _ = yym3711 - if false { - } else if z.HasExtensions() && z.EncExt(yy3710) { - } else if yym3711 { - z.EncBinaryMarshal(yy3710) - } else if !yym3711 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3710) - } else { - z.EncFallback(yy3710) - } - } else { - r.EncodeNil() - } - } else { - if yyq3687[7] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3712 := &x.FirstTimestamp - yym3713 := z.EncBinary() - _ = yym3713 - if false { - } else if z.HasExtensions() && z.EncExt(yy3712) { - } else if yym3713 { - z.EncBinaryMarshal(yy3712) - } else if !yym3713 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3712) - } else { - z.EncFallback(yy3712) - } - } - } - if yyr3687 || yy2arr3687 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3687[8] { - yy3715 := &x.LastTimestamp - yym3716 := z.EncBinary() - _ = yym3716 - if false { - } else if z.HasExtensions() && z.EncExt(yy3715) { - } else if yym3716 { - z.EncBinaryMarshal(yy3715) - } else if !yym3716 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3715) - } else { - z.EncFallback(yy3715) - } - } else { - r.EncodeNil() - } - } else { - if yyq3687[8] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3717 := &x.LastTimestamp - yym3718 := z.EncBinary() - _ = yym3718 - if false { - } else if z.HasExtensions() && z.EncExt(yy3717) { - } else if yym3718 { - z.EncBinaryMarshal(yy3717) - } else if !yym3718 && z.IsJSONHandle() { - z.EncJSONMarshal(yy3717) - } else { - z.EncFallback(yy3717) - } - } - } - if yyr3687 || yy2arr3687 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3687[9] { - yym3720 := z.EncBinary() - _ = yym3720 - if false { - } else { - r.EncodeInt(int64(x.Count)) - } - } else { - r.EncodeInt(0) - } - } else { - if yyq3687[9] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("count")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3721 := z.EncBinary() - _ = yym3721 - if false { - } else { - r.EncodeInt(int64(x.Count)) - } - } - } - if yyr3687 || yy2arr3687 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3687[10] { - yym3723 := z.EncBinary() - _ = yym3723 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Type)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3687[10] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3724 := z.EncBinary() - _ = yym3724 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Type)) - } - } - } - if yyr3687 || yy2arr3687 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *Event) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3725 := z.DecBinary() - _ = yym3725 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3726 := r.ContainerType() - if yyct3726 == codecSelferValueTypeMap1234 { - yyl3726 := r.ReadMapStart() - if yyl3726 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3726, d) - } - } else if yyct3726 == codecSelferValueTypeArray1234 { - yyl3726 := r.ReadArrayStart() - if yyl3726 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3726, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3727Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3727Slc - var yyhl3727 bool = l >= 0 - for yyj3727 := 0; ; yyj3727++ { - if yyhl3727 { - if yyj3727 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3727Slc = r.DecodeBytes(yys3727Slc, true, true) - yys3727 := string(yys3727Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3727 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv3730 := &x.ObjectMeta - yyv3730.CodecDecodeSelf(d) - } - case "involvedObject": - if r.TryDecodeAsNil() { - x.InvolvedObject = ObjectReference{} - } else { - yyv3731 := &x.InvolvedObject - yyv3731.CodecDecodeSelf(d) - } - case "reason": - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - case "message": - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - case "source": - if r.TryDecodeAsNil() { - x.Source = EventSource{} - } else { - yyv3734 := &x.Source - yyv3734.CodecDecodeSelf(d) - } - case "firstTimestamp": - if r.TryDecodeAsNil() { - x.FirstTimestamp = pkg2_unversioned.Time{} - } else { - yyv3735 := &x.FirstTimestamp - yym3736 := z.DecBinary() - _ = yym3736 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3735) { - } else if yym3736 { - z.DecBinaryUnmarshal(yyv3735) - } else if !yym3736 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3735) - } else { - z.DecFallback(yyv3735, false) - } - } - case "lastTimestamp": - if r.TryDecodeAsNil() { - x.LastTimestamp = pkg2_unversioned.Time{} - } else { - yyv3737 := &x.LastTimestamp - yym3738 := z.DecBinary() - _ = yym3738 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3737) { - } else if yym3738 { - z.DecBinaryUnmarshal(yyv3737) - } else if !yym3738 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3737) - } else { - z.DecFallback(yyv3737, false) - } - } - case "count": - if r.TryDecodeAsNil() { - x.Count = 0 - } else { - x.Count = int32(r.DecodeInt(32)) - } - case "type": - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = string(r.DecodeString()) - } - default: - z.DecStructFieldNotFound(-1, yys3727) - } // end switch yys3727 - } // end for yyj3727 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3741 int - var yyb3741 bool - var yyhl3741 bool = l >= 0 - yyj3741++ - if yyhl3741 { - yyb3741 = yyj3741 > l - } else { - yyb3741 = r.CheckBreak() - } - if yyb3741 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3741++ - if yyhl3741 { - yyb3741 = yyj3741 > l - } else { - yyb3741 = r.CheckBreak() - } - if yyb3741 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3741++ - if yyhl3741 { - yyb3741 = yyj3741 > l - } else { - yyb3741 = r.CheckBreak() - } - if yyb3741 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv3744 := &x.ObjectMeta - yyv3744.CodecDecodeSelf(d) - } - yyj3741++ - if yyhl3741 { - yyb3741 = yyj3741 > l - } else { - yyb3741 = r.CheckBreak() - } - if yyb3741 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.InvolvedObject = ObjectReference{} - } else { - yyv3745 := &x.InvolvedObject - yyv3745.CodecDecodeSelf(d) - } - yyj3741++ - if yyhl3741 { - yyb3741 = yyj3741 > l - } else { - yyb3741 = r.CheckBreak() - } - if yyb3741 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Reason = "" - } else { - x.Reason = string(r.DecodeString()) - } - yyj3741++ - if yyhl3741 { - yyb3741 = yyj3741 > l - } else { - yyb3741 = r.CheckBreak() - } - if yyb3741 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Message = "" - } else { - x.Message = string(r.DecodeString()) - } - yyj3741++ - if yyhl3741 { - yyb3741 = yyj3741 > l - } else { - yyb3741 = r.CheckBreak() - } - if yyb3741 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Source = EventSource{} - } else { - yyv3748 := &x.Source - yyv3748.CodecDecodeSelf(d) - } - yyj3741++ - if yyhl3741 { - yyb3741 = yyj3741 > l - } else { - yyb3741 = r.CheckBreak() - } - if yyb3741 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.FirstTimestamp = pkg2_unversioned.Time{} - } else { - yyv3749 := &x.FirstTimestamp - yym3750 := z.DecBinary() - _ = yym3750 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3749) { - } else if yym3750 { - z.DecBinaryUnmarshal(yyv3749) - } else if !yym3750 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3749) - } else { - z.DecFallback(yyv3749, false) - } - } - yyj3741++ - if yyhl3741 { - yyb3741 = yyj3741 > l - } else { - yyb3741 = r.CheckBreak() - } - if yyb3741 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.LastTimestamp = pkg2_unversioned.Time{} - } else { - yyv3751 := &x.LastTimestamp - yym3752 := z.DecBinary() - _ = yym3752 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3751) { - } else if yym3752 { - z.DecBinaryUnmarshal(yyv3751) - } else if !yym3752 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv3751) - } else { - z.DecFallback(yyv3751, false) - } - } - yyj3741++ - if yyhl3741 { - yyb3741 = yyj3741 > l - } else { - yyb3741 = r.CheckBreak() - } - if yyb3741 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Count = 0 - } else { - x.Count = int32(r.DecodeInt(32)) - } - yyj3741++ - if yyhl3741 { - yyb3741 = yyj3741 > l - } else { - yyb3741 = r.CheckBreak() - } - if yyb3741 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Type = "" - } else { - x.Type = string(r.DecodeString()) - } - for { - yyj3741++ - if yyhl3741 { - yyb3741 = yyj3741 > l - } else { - yyb3741 = r.CheckBreak() - } - if yyb3741 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3741-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3755 := z.EncBinary() - _ = yym3755 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3756 := !z.EncBinary() - yy2arr3756 := z.EncBasicHandle().StructToArray - var yyq3756 [4]bool - _, _, _ = yysep3756, yyq3756, yy2arr3756 - const yyr3756 bool = false - yyq3756[0] = x.Kind != "" - yyq3756[1] = x.APIVersion != "" - yyq3756[2] = true - var yynn3756 int - if yyr3756 || yy2arr3756 { - r.EncodeArrayStart(4) - } else { - yynn3756 = 1 - for _, b := range yyq3756 { - if b { - yynn3756++ - } - } - r.EncodeMapStart(yynn3756) - yynn3756 = 0 - } - if yyr3756 || yy2arr3756 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3756[0] { - yym3758 := z.EncBinary() - _ = yym3758 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3756[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3759 := z.EncBinary() - _ = yym3759 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr3756 || yy2arr3756 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3756[1] { - yym3761 := z.EncBinary() - _ = yym3761 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3756[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3762 := z.EncBinary() - _ = yym3762 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3756 || yy2arr3756 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3756[2] { - yy3764 := &x.ListMeta - yym3765 := z.EncBinary() - _ = yym3765 - if false { - } else if z.HasExtensions() && z.EncExt(yy3764) { - } else { - z.EncFallback(yy3764) - } - } else { - r.EncodeNil() - } - } else { - if yyq3756[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3766 := &x.ListMeta - yym3767 := z.EncBinary() - _ = yym3767 - if false { - } else if z.HasExtensions() && z.EncExt(yy3766) { - } else { - z.EncFallback(yy3766) - } - } - } - if yyr3756 || yy2arr3756 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3769 := z.EncBinary() - _ = yym3769 - if false { - } else { - h.encSliceEvent(([]Event)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3770 := z.EncBinary() - _ = yym3770 - if false { - } else { - h.encSliceEvent(([]Event)(x.Items), e) - } - } - } - if yyr3756 || yy2arr3756 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *EventList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3771 := z.DecBinary() - _ = yym3771 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3772 := r.ContainerType() - if yyct3772 == codecSelferValueTypeMap1234 { - yyl3772 := r.ReadMapStart() - if yyl3772 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3772, d) - } - } else if yyct3772 == codecSelferValueTypeArray1234 { - yyl3772 := r.ReadArrayStart() - if yyl3772 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3772, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3773Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3773Slc - var yyhl3773 bool = l >= 0 - for yyj3773 := 0; ; yyj3773++ { - if yyhl3773 { - if yyj3773 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3773Slc = r.DecodeBytes(yys3773Slc, true, true) - yys3773 := string(yys3773Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3773 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv3776 := &x.ListMeta - yym3777 := z.DecBinary() - _ = yym3777 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3776) { - } else { - z.DecFallback(yyv3776, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3778 := &x.Items - yym3779 := z.DecBinary() - _ = yym3779 - if false { - } else { - h.decSliceEvent((*[]Event)(yyv3778), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3773) - } // end switch yys3773 - } // end for yyj3773 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3780 int - var yyb3780 bool - var yyhl3780 bool = l >= 0 - yyj3780++ - if yyhl3780 { - yyb3780 = yyj3780 > l - } else { - yyb3780 = r.CheckBreak() - } - if yyb3780 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj3780++ - if yyhl3780 { - yyb3780 = yyj3780 > l - } else { - yyb3780 = r.CheckBreak() - } - if yyb3780 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj3780++ - if yyhl3780 { - yyb3780 = yyj3780 > l - } else { - yyb3780 = r.CheckBreak() - } - if yyb3780 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv3783 := &x.ListMeta - yym3784 := z.DecBinary() - _ = yym3784 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3783) { - } else { - z.DecFallback(yyv3783, false) - } - } - yyj3780++ - if yyhl3780 { - yyb3780 = yyj3780 > l - } else { - yyb3780 = r.CheckBreak() - } - if yyb3780 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3785 := &x.Items - yym3786 := z.DecBinary() - _ = yym3786 - if false { - } else { - h.decSliceEvent((*[]Event)(yyv3785), d) - } - } - for { - yyj3780++ - if yyhl3780 { - yyb3780 = yyj3780 > l - } else { - yyb3780 = r.CheckBreak() - } - if yyb3780 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3780-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -47499,7 +47690,7 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep3788 := !z.EncBinary() yy2arr3788 := z.EncBasicHandle().StructToArray - var yyq3788 [4]bool + var yyq3788 [3]bool _, _, _ = yysep3788, yyq3788, yy2arr3788 const yyr3788 bool = false yyq3788[0] = x.Kind != "" @@ -47507,9 +47698,9 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { yyq3788[2] = true var yynn3788 int if yyr3788 || yy2arr3788 { - r.EncodeArrayStart(4) + r.EncodeArrayStart(3) } else { - yynn3788 = 1 + yynn3788 = 0 for _, b := range yyq3788 { if b { yynn3788++ @@ -47571,57 +47762,18 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { if yyr3788 || yy2arr3788 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3788[2] { - yy3796 := &x.ListMeta - yym3797 := z.EncBinary() - _ = yym3797 - if false { - } else if z.HasExtensions() && z.EncExt(yy3796) { - } else { - z.EncFallback(yy3796) - } + yy3796 := &x.Reference + yy3796.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3788[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) + r.EncodeString(codecSelferC_UTF81234, string("reference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3798 := &x.ListMeta - yym3799 := z.EncBinary() - _ = yym3799 - if false { - } else if z.HasExtensions() && z.EncExt(yy3798) { - } else { - z.EncFallback(yy3798) - } - } - } - if yyr3788 || yy2arr3788 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3801 := z.EncBinary() - _ = yym3801 - if false { - } else { - h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym3802 := z.EncBinary() - _ = yym3802 - if false { - } else { - h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e) - } + yy3797 := &x.Reference + yy3797.CodecEncodeSelf(e) } } if yyr3788 || yy2arr3788 { @@ -47633,29 +47785,29 @@ func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *List) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *SerializedReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3803 := z.DecBinary() - _ = yym3803 + yym3798 := z.DecBinary() + _ = yym3798 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3804 := r.ContainerType() - if yyct3804 == codecSelferValueTypeMap1234 { - yyl3804 := r.ReadMapStart() - if yyl3804 == 0 { + yyct3799 := r.ContainerType() + if yyct3799 == codecSelferValueTypeMap1234 { + yyl3799 := r.ReadMapStart() + if yyl3799 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3804, d) + x.codecDecodeSelfFromMap(yyl3799, d) } - } else if yyct3804 == codecSelferValueTypeArray1234 { - yyl3804 := r.ReadArrayStart() - if yyl3804 == 0 { + } else if yyct3799 == codecSelferValueTypeArray1234 { + yyl3799 := r.ReadArrayStart() + if yyl3799 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3804, d) + x.codecDecodeSelfFromArray(yyl3799, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -47663,16 +47815,16 @@ func (x *List) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *SerializedReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3805Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3805Slc - var yyhl3805 bool = l >= 0 - for yyj3805 := 0; ; yyj3805++ { - if yyhl3805 { - if yyj3805 >= l { + var yys3800Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3800Slc + var yyhl3800 bool = l >= 0 + for yyj3800 := 0; ; yyj3800++ { + if yyhl3800 { + if yyj3800 >= l { break } } else { @@ -47681,10 +47833,10 @@ func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3805Slc = r.DecodeBytes(yys3805Slc, true, true) - yys3805 := string(yys3805Slc) + yys3800Slc = r.DecodeBytes(yys3800Slc, true, true) + yys3800 := string(yys3800Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3805 { + switch yys3800 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -47697,52 +47849,34 @@ func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - case "metadata": + case "reference": if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Reference = ObjectReference{} } else { - yyv3808 := &x.ListMeta - yym3809 := z.DecBinary() - _ = yym3809 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3808) { - } else { - z.DecFallback(yyv3808, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3810 := &x.Items - yym3811 := z.DecBinary() - _ = yym3811 - if false { - } else { - h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv3810), d) - } + yyv3803 := &x.Reference + yyv3803.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3805) - } // end switch yys3805 - } // end for yyj3805 + z.DecStructFieldNotFound(-1, yys3800) + } // end switch yys3800 + } // end for yyj3800 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *SerializedReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3812 int - var yyb3812 bool - var yyhl3812 bool = l >= 0 - yyj3812++ - if yyhl3812 { - yyb3812 = yyj3812 > l + var yyj3804 int + var yyb3804 bool + var yyhl3804 bool = l >= 0 + yyj3804++ + if yyhl3804 { + yyb3804 = yyj3804 > l } else { - yyb3812 = r.CheckBreak() + yyb3804 = r.CheckBreak() } - if yyb3812 { + if yyb3804 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47752,13 +47886,13 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3812++ - if yyhl3812 { - yyb3812 = yyj3812 > l + yyj3804++ + if yyhl3804 { + yyb3804 = yyj3804 > l } else { - yyb3812 = r.CheckBreak() + yyb3804 = r.CheckBreak() } - if yyb3812 { + if yyb3804 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -47768,260 +47902,122 @@ func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3812++ - if yyhl3812 { - yyb3812 = yyj3812 > l + yyj3804++ + if yyhl3804 { + yyb3804 = yyj3804 > l } else { - yyb3812 = r.CheckBreak() + yyb3804 = r.CheckBreak() } - if yyb3812 { + if yyb3804 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} + x.Reference = ObjectReference{} } else { - yyv3815 := &x.ListMeta - yym3816 := z.DecBinary() - _ = yym3816 - if false { - } else if z.HasExtensions() && z.DecExt(yyv3815) { - } else { - z.DecFallback(yyv3815, false) - } - } - yyj3812++ - if yyhl3812 { - yyb3812 = yyj3812 > l - } else { - yyb3812 = r.CheckBreak() - } - if yyb3812 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv3817 := &x.Items - yym3818 := z.DecBinary() - _ = yym3818 - if false { - } else { - h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv3817), d) - } + yyv3807 := &x.Reference + yyv3807.CodecDecodeSelf(d) } for { - yyj3812++ - if yyhl3812 { - yyb3812 = yyj3812 > l + yyj3804++ + if yyhl3804 { + yyb3804 = yyj3804 > l } else { - yyb3812 = r.CheckBreak() + yyb3804 = r.CheckBreak() } - if yyb3812 { + if yyb3804 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3812-1, "") + z.DecStructFieldNotFound(yyj3804-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - yym3819 := z.EncBinary() - _ = yym3819 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x)) - } -} - -func (x *LimitType) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3820 := z.DecBinary() - _ = yym3820 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - *((*string)(x)) = r.DecodeString() - } -} - -func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym3821 := z.EncBinary() - _ = yym3821 + yym3808 := z.EncBinary() + _ = yym3808 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3822 := !z.EncBinary() - yy2arr3822 := z.EncBasicHandle().StructToArray - var yyq3822 [6]bool - _, _, _ = yysep3822, yyq3822, yy2arr3822 - const yyr3822 bool = false - yyq3822[0] = x.Type != "" - yyq3822[1] = len(x.Max) != 0 - yyq3822[2] = len(x.Min) != 0 - yyq3822[3] = len(x.Default) != 0 - yyq3822[4] = len(x.DefaultRequest) != 0 - yyq3822[5] = len(x.MaxLimitRequestRatio) != 0 - var yynn3822 int - if yyr3822 || yy2arr3822 { - r.EncodeArrayStart(6) + yysep3809 := !z.EncBinary() + yy2arr3809 := z.EncBasicHandle().StructToArray + var yyq3809 [2]bool + _, _, _ = yysep3809, yyq3809, yy2arr3809 + const yyr3809 bool = false + yyq3809[0] = x.Component != "" + yyq3809[1] = x.Host != "" + var yynn3809 int + if yyr3809 || yy2arr3809 { + r.EncodeArrayStart(2) } else { - yynn3822 = 0 - for _, b := range yyq3822 { + yynn3809 = 0 + for _, b := range yyq3809 { if b { - yynn3822++ + yynn3809++ } } - r.EncodeMapStart(yynn3822) - yynn3822 = 0 + r.EncodeMapStart(yynn3809) + yynn3809 = 0 } - if yyr3822 || yy2arr3822 { + if yyr3809 || yy2arr3809 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3822[0] { - x.Type.CodecEncodeSelf(e) + if yyq3809[0] { + yym3811 := z.EncBinary() + _ = yym3811 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Component)) + } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3822[0] { + if yyq3809[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) + r.EncodeString(codecSelferC_UTF81234, string("component")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - x.Type.CodecEncodeSelf(e) + yym3812 := z.EncBinary() + _ = yym3812 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Component)) + } } } - if yyr3822 || yy2arr3822 { + if yyr3809 || yy2arr3809 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3822[1] { - if x.Max == nil { - r.EncodeNil() + if yyq3809[1] { + yym3814 := z.EncBinary() + _ = yym3814 + if false { } else { - x.Max.CodecEncodeSelf(e) + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { - r.EncodeNil() + r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3822[1] { + if yyq3809[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("max")) + r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Max == nil { - r.EncodeNil() + yym3815 := z.EncBinary() + _ = yym3815 + if false { } else { - x.Max.CodecEncodeSelf(e) + r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } - if yyr3822 || yy2arr3822 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3822[2] { - if x.Min == nil { - r.EncodeNil() - } else { - x.Min.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq3822[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("min")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Min == nil { - r.EncodeNil() - } else { - x.Min.CodecEncodeSelf(e) - } - } - } - if yyr3822 || yy2arr3822 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3822[3] { - if x.Default == nil { - r.EncodeNil() - } else { - x.Default.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq3822[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("default")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Default == nil { - r.EncodeNil() - } else { - x.Default.CodecEncodeSelf(e) - } - } - } - if yyr3822 || yy2arr3822 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3822[4] { - if x.DefaultRequest == nil { - r.EncodeNil() - } else { - x.DefaultRequest.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq3822[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("defaultRequest")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.DefaultRequest == nil { - r.EncodeNil() - } else { - x.DefaultRequest.CodecEncodeSelf(e) - } - } - } - if yyr3822 || yy2arr3822 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3822[5] { - if x.MaxLimitRequestRatio == nil { - r.EncodeNil() - } else { - x.MaxLimitRequestRatio.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq3822[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxLimitRequestRatio")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.MaxLimitRequestRatio == nil { - r.EncodeNil() - } else { - x.MaxLimitRequestRatio.CodecEncodeSelf(e) - } - } - } - if yyr3822 || yy2arr3822 { + if yyr3809 || yy2arr3809 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48030,29 +48026,29 @@ func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *LimitRangeItem) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *EventSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3829 := z.DecBinary() - _ = yym3829 + yym3816 := z.DecBinary() + _ = yym3816 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3830 := r.ContainerType() - if yyct3830 == codecSelferValueTypeMap1234 { - yyl3830 := r.ReadMapStart() - if yyl3830 == 0 { + yyct3817 := r.ContainerType() + if yyct3817 == codecSelferValueTypeMap1234 { + yyl3817 := r.ReadMapStart() + if yyl3817 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3830, d) + x.codecDecodeSelfFromMap(yyl3817, d) } - } else if yyct3830 == codecSelferValueTypeArray1234 { - yyl3830 := r.ReadArrayStart() - if yyl3830 == 0 { + } else if yyct3817 == codecSelferValueTypeArray1234 { + yyl3817 := r.ReadArrayStart() + if yyl3817 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3830, d) + x.codecDecodeSelfFromArray(yyl3817, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48060,16 +48056,16 @@ func (x *LimitRangeItem) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3831Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3831Slc - var yyhl3831 bool = l >= 0 - for yyj3831 := 0; ; yyj3831++ { - if yyhl3831 { - if yyj3831 >= l { + var yys3818Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3818Slc + var yyhl3818 bool = l >= 0 + for yyj3818 := 0; ; yyj3818++ { + if yyhl3818 { + if yyj3818 >= l { break } } else { @@ -48078,403 +48074,128 @@ func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3831Slc = r.DecodeBytes(yys3831Slc, true, true) - yys3831 := string(yys3831Slc) + yys3818Slc = r.DecodeBytes(yys3818Slc, true, true) + yys3818 := string(yys3818Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3831 { - case "type": + switch yys3818 { + case "component": if r.TryDecodeAsNil() { - x.Type = "" + x.Component = "" } else { - x.Type = LimitType(r.DecodeString()) + x.Component = string(r.DecodeString()) } - case "max": + case "host": if r.TryDecodeAsNil() { - x.Max = nil + x.Host = "" } else { - yyv3833 := &x.Max - yyv3833.CodecDecodeSelf(d) - } - case "min": - if r.TryDecodeAsNil() { - x.Min = nil - } else { - yyv3834 := &x.Min - yyv3834.CodecDecodeSelf(d) - } - case "default": - if r.TryDecodeAsNil() { - x.Default = nil - } else { - yyv3835 := &x.Default - yyv3835.CodecDecodeSelf(d) - } - case "defaultRequest": - if r.TryDecodeAsNil() { - x.DefaultRequest = nil - } else { - yyv3836 := &x.DefaultRequest - yyv3836.CodecDecodeSelf(d) - } - case "maxLimitRequestRatio": - if r.TryDecodeAsNil() { - x.MaxLimitRequestRatio = nil - } else { - yyv3837 := &x.MaxLimitRequestRatio - yyv3837.CodecDecodeSelf(d) + x.Host = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3831) - } // end switch yys3831 - } // end for yyj3831 + z.DecStructFieldNotFound(-1, yys3818) + } // end switch yys3818 + } // end for yyj3818 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *EventSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3838 int - var yyb3838 bool - var yyhl3838 bool = l >= 0 - yyj3838++ - if yyhl3838 { - yyb3838 = yyj3838 > l + var yyj3821 int + var yyb3821 bool + var yyhl3821 bool = l >= 0 + yyj3821++ + if yyhl3821 { + yyb3821 = yyj3821 > l } else { - yyb3838 = r.CheckBreak() + yyb3821 = r.CheckBreak() } - if yyb3838 { + if yyb3821 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Type = "" + x.Component = "" } else { - x.Type = LimitType(r.DecodeString()) + x.Component = string(r.DecodeString()) } - yyj3838++ - if yyhl3838 { - yyb3838 = yyj3838 > l + yyj3821++ + if yyhl3821 { + yyb3821 = yyj3821 > l } else { - yyb3838 = r.CheckBreak() + yyb3821 = r.CheckBreak() } - if yyb3838 { + if yyb3821 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Max = nil + x.Host = "" } else { - yyv3840 := &x.Max - yyv3840.CodecDecodeSelf(d) - } - yyj3838++ - if yyhl3838 { - yyb3838 = yyj3838 > l - } else { - yyb3838 = r.CheckBreak() - } - if yyb3838 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Min = nil - } else { - yyv3841 := &x.Min - yyv3841.CodecDecodeSelf(d) - } - yyj3838++ - if yyhl3838 { - yyb3838 = yyj3838 > l - } else { - yyb3838 = r.CheckBreak() - } - if yyb3838 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Default = nil - } else { - yyv3842 := &x.Default - yyv3842.CodecDecodeSelf(d) - } - yyj3838++ - if yyhl3838 { - yyb3838 = yyj3838 > l - } else { - yyb3838 = r.CheckBreak() - } - if yyb3838 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.DefaultRequest = nil - } else { - yyv3843 := &x.DefaultRequest - yyv3843.CodecDecodeSelf(d) - } - yyj3838++ - if yyhl3838 { - yyb3838 = yyj3838 > l - } else { - yyb3838 = r.CheckBreak() - } - if yyb3838 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.MaxLimitRequestRatio = nil - } else { - yyv3844 := &x.MaxLimitRequestRatio - yyv3844.CodecDecodeSelf(d) + x.Host = string(r.DecodeString()) } for { - yyj3838++ - if yyhl3838 { - yyb3838 = yyj3838 > l + yyj3821++ + if yyhl3821 { + yyb3821 = yyj3821 > l } else { - yyb3838 = r.CheckBreak() + yyb3821 = r.CheckBreak() } - if yyb3838 { + if yyb3821 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3838-1, "") + z.DecStructFieldNotFound(yyj3821-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym3845 := z.EncBinary() - _ = yym3845 + yym3824 := z.EncBinary() + _ = yym3824 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3846 := !z.EncBinary() - yy2arr3846 := z.EncBasicHandle().StructToArray - var yyq3846 [1]bool - _, _, _ = yysep3846, yyq3846, yy2arr3846 - const yyr3846 bool = false - var yynn3846 int - if yyr3846 || yy2arr3846 { - r.EncodeArrayStart(1) + yysep3825 := !z.EncBinary() + yy2arr3825 := z.EncBasicHandle().StructToArray + var yyq3825 [11]bool + _, _, _ = yysep3825, yyq3825, yy2arr3825 + const yyr3825 bool = false + yyq3825[0] = x.Kind != "" + yyq3825[1] = x.APIVersion != "" + yyq3825[4] = x.Reason != "" + yyq3825[5] = x.Message != "" + yyq3825[6] = true + yyq3825[7] = true + yyq3825[8] = true + yyq3825[9] = x.Count != 0 + yyq3825[10] = x.Type != "" + var yynn3825 int + if yyr3825 || yy2arr3825 { + r.EncodeArrayStart(11) } else { - yynn3846 = 1 - for _, b := range yyq3846 { + yynn3825 = 2 + for _, b := range yyq3825 { if b { - yynn3846++ + yynn3825++ } } - r.EncodeMapStart(yynn3846) - yynn3846 = 0 + r.EncodeMapStart(yynn3825) + yynn3825 = 0 } - if yyr3846 || yy2arr3846 { + if yyr3825 || yy2arr3825 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Limits == nil { - r.EncodeNil() - } else { - yym3848 := z.EncBinary() - _ = yym3848 - if false { - } else { - h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("limits")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Limits == nil { - r.EncodeNil() - } else { - yym3849 := z.EncBinary() - _ = yym3849 - if false { - } else { - h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) - } - } - } - if yyr3846 || yy2arr3846 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *LimitRangeSpec) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym3850 := z.DecBinary() - _ = yym3850 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct3851 := r.ContainerType() - if yyct3851 == codecSelferValueTypeMap1234 { - yyl3851 := r.ReadMapStart() - if yyl3851 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl3851, d) - } - } else if yyct3851 == codecSelferValueTypeArray1234 { - yyl3851 := r.ReadArrayStart() - if yyl3851 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl3851, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys3852Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3852Slc - var yyhl3852 bool = l >= 0 - for yyj3852 := 0; ; yyj3852++ { - if yyhl3852 { - if yyj3852 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3852Slc = r.DecodeBytes(yys3852Slc, true, true) - yys3852 := string(yys3852Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3852 { - case "limits": - if r.TryDecodeAsNil() { - x.Limits = nil - } else { - yyv3853 := &x.Limits - yym3854 := z.DecBinary() - _ = yym3854 - if false { - } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3853), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys3852) - } // end switch yys3852 - } // end for yyj3852 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj3855 int - var yyb3855 bool - var yyhl3855 bool = l >= 0 - yyj3855++ - if yyhl3855 { - yyb3855 = yyj3855 > l - } else { - yyb3855 = r.CheckBreak() - } - if yyb3855 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Limits = nil - } else { - yyv3856 := &x.Limits - yym3857 := z.DecBinary() - _ = yym3857 - if false { - } else { - h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3856), d) - } - } - for { - yyj3855++ - if yyhl3855 { - yyb3855 = yyj3855 > l - } else { - yyb3855 = r.CheckBreak() - } - if yyb3855 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3855-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym3858 := z.EncBinary() - _ = yym3858 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep3859 := !z.EncBinary() - yy2arr3859 := z.EncBasicHandle().StructToArray - var yyq3859 [4]bool - _, _, _ = yysep3859, yyq3859, yy2arr3859 - const yyr3859 bool = false - yyq3859[0] = x.Kind != "" - yyq3859[1] = x.APIVersion != "" - yyq3859[2] = true - yyq3859[3] = true - var yynn3859 int - if yyr3859 || yy2arr3859 { - r.EncodeArrayStart(4) - } else { - yynn3859 = 0 - for _, b := range yyq3859 { - if b { - yynn3859++ - } - } - r.EncodeMapStart(yynn3859) - yynn3859 = 0 - } - if yyr3859 || yy2arr3859 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3859[0] { - yym3861 := z.EncBinary() - _ = yym3861 + if yyq3825[0] { + yym3827 := z.EncBinary() + _ = yym3827 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -48483,78 +48204,257 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3859[0] { + if yyq3825[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3828 := z.EncBinary() + _ = yym3828 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3825 || yy2arr3825 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3825[1] { + yym3830 := z.EncBinary() + _ = yym3830 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3825[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3831 := z.EncBinary() + _ = yym3831 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3825 || yy2arr3825 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy3833 := &x.ObjectMeta + yy3833.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3834 := &x.ObjectMeta + yy3834.CodecEncodeSelf(e) + } + if yyr3825 || yy2arr3825 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy3836 := &x.InvolvedObject + yy3836.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3837 := &x.InvolvedObject + yy3837.CodecEncodeSelf(e) + } + if yyr3825 || yy2arr3825 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3825[4] { + yym3839 := z.EncBinary() + _ = yym3839 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3825[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3840 := z.EncBinary() + _ = yym3840 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr3825 || yy2arr3825 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3825[5] { + yym3842 := z.EncBinary() + _ = yym3842 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3825[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("message")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3843 := z.EncBinary() + _ = yym3843 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Message)) + } + } + } + if yyr3825 || yy2arr3825 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3825[6] { + yy3845 := &x.Source + yy3845.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3825[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("source")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3846 := &x.Source + yy3846.CodecEncodeSelf(e) + } + } + if yyr3825 || yy2arr3825 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3825[7] { + yy3848 := &x.FirstTimestamp + yym3849 := z.EncBinary() + _ = yym3849 + if false { + } else if z.HasExtensions() && z.EncExt(yy3848) { + } else if yym3849 { + z.EncBinaryMarshal(yy3848) + } else if !yym3849 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3848) + } else { + z.EncFallback(yy3848) + } + } else { + r.EncodeNil() + } + } else { + if yyq3825[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3850 := &x.FirstTimestamp + yym3851 := z.EncBinary() + _ = yym3851 + if false { + } else if z.HasExtensions() && z.EncExt(yy3850) { + } else if yym3851 { + z.EncBinaryMarshal(yy3850) + } else if !yym3851 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3850) + } else { + z.EncFallback(yy3850) + } + } + } + if yyr3825 || yy2arr3825 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3825[8] { + yy3853 := &x.LastTimestamp + yym3854 := z.EncBinary() + _ = yym3854 + if false { + } else if z.HasExtensions() && z.EncExt(yy3853) { + } else if yym3854 { + z.EncBinaryMarshal(yy3853) + } else if !yym3854 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3853) + } else { + z.EncFallback(yy3853) + } + } else { + r.EncodeNil() + } + } else { + if yyq3825[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3855 := &x.LastTimestamp + yym3856 := z.EncBinary() + _ = yym3856 + if false { + } else if z.HasExtensions() && z.EncExt(yy3855) { + } else if yym3856 { + z.EncBinaryMarshal(yy3855) + } else if !yym3856 && z.IsJSONHandle() { + z.EncJSONMarshal(yy3855) + } else { + z.EncFallback(yy3855) + } + } + } + if yyr3825 || yy2arr3825 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3825[9] { + yym3858 := z.EncBinary() + _ = yym3858 + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq3825[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("count")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3859 := z.EncBinary() + _ = yym3859 + if false { + } else { + r.EncodeInt(int64(x.Count)) + } + } + } + if yyr3825 || yy2arr3825 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3825[10] { + yym3861 := z.EncBinary() + _ = yym3861 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3825[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3862 := z.EncBinary() _ = yym3862 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } - if yyr3859 || yy2arr3859 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3859[1] { - yym3864 := z.EncBinary() - _ = yym3864 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq3859[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3865 := z.EncBinary() - _ = yym3865 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr3859 || yy2arr3859 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3859[2] { - yy3867 := &x.ObjectMeta - yy3867.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3859[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3868 := &x.ObjectMeta - yy3868.CodecEncodeSelf(e) - } - } - if yyr3859 || yy2arr3859 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3859[3] { - yy3870 := &x.Spec - yy3870.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq3859[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("spec")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3871 := &x.Spec - yy3871.CodecEncodeSelf(e) - } - } - if yyr3859 || yy2arr3859 { + if yyr3825 || yy2arr3825 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48563,29 +48463,29 @@ func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *Event) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3872 := z.DecBinary() - _ = yym3872 + yym3863 := z.DecBinary() + _ = yym3863 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3873 := r.ContainerType() - if yyct3873 == codecSelferValueTypeMap1234 { - yyl3873 := r.ReadMapStart() - if yyl3873 == 0 { + yyct3864 := r.ContainerType() + if yyct3864 == codecSelferValueTypeMap1234 { + yyl3864 := r.ReadMapStart() + if yyl3864 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3873, d) + x.codecDecodeSelfFromMap(yyl3864, d) } - } else if yyct3873 == codecSelferValueTypeArray1234 { - yyl3873 := r.ReadArrayStart() - if yyl3873 == 0 { + } else if yyct3864 == codecSelferValueTypeArray1234 { + yyl3864 := r.ReadArrayStart() + if yyl3864 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3873, d) + x.codecDecodeSelfFromArray(yyl3864, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48593,16 +48493,16 @@ func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *Event) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3874Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3874Slc - var yyhl3874 bool = l >= 0 - for yyj3874 := 0; ; yyj3874++ { - if yyhl3874 { - if yyj3874 >= l { + var yys3865Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3865Slc + var yyhl3865 bool = l >= 0 + for yyj3865 := 0; ; yyj3865++ { + if yyhl3865 { + if yyj3865 >= l { break } } else { @@ -48611,10 +48511,10 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3874Slc = r.DecodeBytes(yys3874Slc, true, true) - yys3874 := string(yys3874Slc) + yys3865Slc = r.DecodeBytes(yys3865Slc, true, true) + yys3865 := string(yys3865Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3874 { + switch yys3865 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -48631,24 +48531,89 @@ func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3877 := &x.ObjectMeta - yyv3877.CodecDecodeSelf(d) + yyv3868 := &x.ObjectMeta + yyv3868.CodecDecodeSelf(d) } - case "spec": + case "involvedObject": if r.TryDecodeAsNil() { - x.Spec = LimitRangeSpec{} + x.InvolvedObject = ObjectReference{} } else { - yyv3878 := &x.Spec - yyv3878.CodecDecodeSelf(d) + yyv3869 := &x.InvolvedObject + yyv3869.CodecDecodeSelf(d) + } + case "reason": + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + case "message": + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + case "source": + if r.TryDecodeAsNil() { + x.Source = EventSource{} + } else { + yyv3872 := &x.Source + yyv3872.CodecDecodeSelf(d) + } + case "firstTimestamp": + if r.TryDecodeAsNil() { + x.FirstTimestamp = pkg2_unversioned.Time{} + } else { + yyv3873 := &x.FirstTimestamp + yym3874 := z.DecBinary() + _ = yym3874 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3873) { + } else if yym3874 { + z.DecBinaryUnmarshal(yyv3873) + } else if !yym3874 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3873) + } else { + z.DecFallback(yyv3873, false) + } + } + case "lastTimestamp": + if r.TryDecodeAsNil() { + x.LastTimestamp = pkg2_unversioned.Time{} + } else { + yyv3875 := &x.LastTimestamp + yym3876 := z.DecBinary() + _ = yym3876 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3875) { + } else if yym3876 { + z.DecBinaryUnmarshal(yyv3875) + } else if !yym3876 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3875) + } else { + z.DecFallback(yyv3875, false) + } + } + case "count": + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = int32(r.DecodeInt(32)) + } + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys3874) - } // end switch yys3874 - } // end for yyj3874 + z.DecStructFieldNotFound(-1, yys3865) + } // end switch yys3865 + } // end for yyj3865 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *Event) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -48716,11 +48681,146 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { - x.Spec = LimitRangeSpec{} + x.InvolvedObject = ObjectReference{} } else { - yyv3883 := &x.Spec + yyv3883 := &x.InvolvedObject yyv3883.CodecDecodeSelf(d) } + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l + } else { + yyb3879 = r.CheckBreak() + } + if yyb3879 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l + } else { + yyb3879 = r.CheckBreak() + } + if yyb3879 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Message = "" + } else { + x.Message = string(r.DecodeString()) + } + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l + } else { + yyb3879 = r.CheckBreak() + } + if yyb3879 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Source = EventSource{} + } else { + yyv3886 := &x.Source + yyv3886.CodecDecodeSelf(d) + } + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l + } else { + yyb3879 = r.CheckBreak() + } + if yyb3879 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.FirstTimestamp = pkg2_unversioned.Time{} + } else { + yyv3887 := &x.FirstTimestamp + yym3888 := z.DecBinary() + _ = yym3888 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3887) { + } else if yym3888 { + z.DecBinaryUnmarshal(yyv3887) + } else if !yym3888 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3887) + } else { + z.DecFallback(yyv3887, false) + } + } + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l + } else { + yyb3879 = r.CheckBreak() + } + if yyb3879 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LastTimestamp = pkg2_unversioned.Time{} + } else { + yyv3889 := &x.LastTimestamp + yym3890 := z.DecBinary() + _ = yym3890 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3889) { + } else if yym3890 { + z.DecBinaryUnmarshal(yyv3889) + } else if !yym3890 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv3889) + } else { + z.DecFallback(yyv3889, false) + } + } + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l + } else { + yyb3879 = r.CheckBreak() + } + if yyb3879 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Count = 0 + } else { + x.Count = int32(r.DecodeInt(32)) + } + yyj3879++ + if yyhl3879 { + yyb3879 = yyj3879 > l + } else { + yyb3879 = r.CheckBreak() + } + if yyb3879 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = string(r.DecodeString()) + } for { yyj3879++ if yyhl3879 { @@ -48737,44 +48837,44 @@ func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { +func (x *EventList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { - yym3884 := z.EncBinary() - _ = yym3884 + yym3893 := z.EncBinary() + _ = yym3893 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3885 := !z.EncBinary() - yy2arr3885 := z.EncBasicHandle().StructToArray - var yyq3885 [4]bool - _, _, _ = yysep3885, yyq3885, yy2arr3885 - const yyr3885 bool = false - yyq3885[0] = x.Kind != "" - yyq3885[1] = x.APIVersion != "" - yyq3885[2] = true - var yynn3885 int - if yyr3885 || yy2arr3885 { + yysep3894 := !z.EncBinary() + yy2arr3894 := z.EncBasicHandle().StructToArray + var yyq3894 [4]bool + _, _, _ = yysep3894, yyq3894, yy2arr3894 + const yyr3894 bool = false + yyq3894[0] = x.Kind != "" + yyq3894[1] = x.APIVersion != "" + yyq3894[2] = true + var yynn3894 int + if yyr3894 || yy2arr3894 { r.EncodeArrayStart(4) } else { - yynn3885 = 1 - for _, b := range yyq3885 { + yynn3894 = 1 + for _, b := range yyq3894 { if b { - yynn3885++ + yynn3894++ } } - r.EncodeMapStart(yynn3885) - yynn3885 = 0 + r.EncodeMapStart(yynn3894) + yynn3894 = 0 } - if yyr3885 || yy2arr3885 { + if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3885[0] { - yym3887 := z.EncBinary() - _ = yym3887 + if yyq3894[0] { + yym3896 := z.EncBinary() + _ = yym3896 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -48783,23 +48883,23 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3885[0] { + if yyq3894[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3888 := z.EncBinary() - _ = yym3888 + yym3897 := z.EncBinary() + _ = yym3897 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3885 || yy2arr3885 { + if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3885[1] { - yym3890 := z.EncBinary() - _ = yym3890 + if yyq3894[1] { + yym3899 := z.EncBinary() + _ = yym3899 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -48808,57 +48908,57 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3885[1] { + if yyq3894[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3891 := z.EncBinary() - _ = yym3891 + yym3900 := z.EncBinary() + _ = yym3900 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3885 || yy2arr3885 { + if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3885[2] { - yy3893 := &x.ListMeta - yym3894 := z.EncBinary() - _ = yym3894 + if yyq3894[2] { + yy3902 := &x.ListMeta + yym3903 := z.EncBinary() + _ = yym3903 if false { - } else if z.HasExtensions() && z.EncExt(yy3893) { + } else if z.HasExtensions() && z.EncExt(yy3902) { } else { - z.EncFallback(yy3893) + z.EncFallback(yy3902) } } else { r.EncodeNil() } } else { - if yyq3885[2] { + if yyq3894[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3895 := &x.ListMeta - yym3896 := z.EncBinary() - _ = yym3896 + yy3904 := &x.ListMeta + yym3905 := z.EncBinary() + _ = yym3905 if false { - } else if z.HasExtensions() && z.EncExt(yy3895) { + } else if z.HasExtensions() && z.EncExt(yy3904) { } else { - z.EncFallback(yy3895) + z.EncFallback(yy3904) } } } - if yyr3885 || yy2arr3885 { + if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3898 := z.EncBinary() - _ = yym3898 + yym3907 := z.EncBinary() + _ = yym3907 if false { } else { - h.encSliceLimitRange(([]LimitRange)(x.Items), e) + h.encSliceEvent(([]Event)(x.Items), e) } } } else { @@ -48868,15 +48968,15 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3899 := z.EncBinary() - _ = yym3899 + yym3908 := z.EncBinary() + _ = yym3908 if false { } else { - h.encSliceLimitRange(([]LimitRange)(x.Items), e) + h.encSliceEvent(([]Event)(x.Items), e) } } } - if yyr3885 || yy2arr3885 { + if yyr3894 || yy2arr3894 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -48885,29 +48985,29 @@ func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *EventList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3900 := z.DecBinary() - _ = yym3900 + yym3909 := z.DecBinary() + _ = yym3909 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3901 := r.ContainerType() - if yyct3901 == codecSelferValueTypeMap1234 { - yyl3901 := r.ReadMapStart() - if yyl3901 == 0 { + yyct3910 := r.ContainerType() + if yyct3910 == codecSelferValueTypeMap1234 { + yyl3910 := r.ReadMapStart() + if yyl3910 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3901, d) + x.codecDecodeSelfFromMap(yyl3910, d) } - } else if yyct3901 == codecSelferValueTypeArray1234 { - yyl3901 := r.ReadArrayStart() - if yyl3901 == 0 { + } else if yyct3910 == codecSelferValueTypeArray1234 { + yyl3910 := r.ReadArrayStart() + if yyl3910 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3901, d) + x.codecDecodeSelfFromArray(yyl3910, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -48915,16 +49015,16 @@ func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *EventList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3902Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3902Slc - var yyhl3902 bool = l >= 0 - for yyj3902 := 0; ; yyj3902++ { - if yyhl3902 { - if yyj3902 >= l { + var yys3911Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3911Slc + var yyhl3911 bool = l >= 0 + for yyj3911 := 0; ; yyj3911++ { + if yyhl3911 { + if yyj3911 >= l { break } } else { @@ -48933,10 +49033,10 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3902Slc = r.DecodeBytes(yys3902Slc, true, true) - yys3902 := string(yys3902Slc) + yys3911Slc = r.DecodeBytes(yys3911Slc, true, true) + yys3911 := string(yys3911Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3902 { + switch yys3911 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -48953,48 +49053,48 @@ func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3905 := &x.ListMeta - yym3906 := z.DecBinary() - _ = yym3906 + yyv3914 := &x.ListMeta + yym3915 := z.DecBinary() + _ = yym3915 if false { - } else if z.HasExtensions() && z.DecExt(yyv3905) { + } else if z.HasExtensions() && z.DecExt(yyv3914) { } else { - z.DecFallback(yyv3905, false) + z.DecFallback(yyv3914, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3907 := &x.Items - yym3908 := z.DecBinary() - _ = yym3908 + yyv3916 := &x.Items + yym3917 := z.DecBinary() + _ = yym3917 if false { } else { - h.decSliceLimitRange((*[]LimitRange)(yyv3907), d) + h.decSliceEvent((*[]Event)(yyv3916), d) } } default: - z.DecStructFieldNotFound(-1, yys3902) - } // end switch yys3902 - } // end for yyj3902 + z.DecStructFieldNotFound(-1, yys3911) + } // end switch yys3911 + } // end for yyj3911 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { +func (x *EventList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3909 int - var yyb3909 bool - var yyhl3909 bool = l >= 0 - yyj3909++ - if yyhl3909 { - yyb3909 = yyj3909 > l + var yyj3918 int + var yyb3918 bool + var yyhl3918 bool = l >= 0 + yyj3918++ + if yyhl3918 { + yyb3918 = yyj3918 > l } else { - yyb3909 = r.CheckBreak() + yyb3918 = r.CheckBreak() } - if yyb3909 { + if yyb3918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49004,13 +49104,13 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3909++ - if yyhl3909 { - yyb3909 = yyj3909 > l + yyj3918++ + if yyhl3918 { + yyb3918 = yyj3918 > l } else { - yyb3909 = r.CheckBreak() + yyb3918 = r.CheckBreak() } - if yyb3909 { + if yyb3918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49020,13 +49120,13 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3909++ - if yyhl3909 { - yyb3909 = yyj3909 > l + yyj3918++ + if yyhl3918 { + yyb3918 = yyj3918 > l } else { - yyb3909 = r.CheckBreak() + yyb3918 = r.CheckBreak() } - if yyb3909 { + if yyb3918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49034,22 +49134,22 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3912 := &x.ListMeta - yym3913 := z.DecBinary() - _ = yym3913 + yyv3921 := &x.ListMeta + yym3922 := z.DecBinary() + _ = yym3922 if false { - } else if z.HasExtensions() && z.DecExt(yyv3912) { + } else if z.HasExtensions() && z.DecExt(yyv3921) { } else { - z.DecFallback(yyv3912, false) + z.DecFallback(yyv3921, false) } } - yyj3909++ - if yyhl3909 { - yyb3909 = yyj3909 > l + yyj3918++ + if yyhl3918 { + yyb3918 = yyj3918 > l } else { - yyb3909 = r.CheckBreak() + yyb3918 = r.CheckBreak() } - if yyb3909 { + if yyb3918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49057,26 +49157,1622 @@ func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv3914 := &x.Items - yym3915 := z.DecBinary() - _ = yym3915 + yyv3923 := &x.Items + yym3924 := z.DecBinary() + _ = yym3924 if false { } else { - h.decSliceLimitRange((*[]LimitRange)(yyv3914), d) + h.decSliceEvent((*[]Event)(yyv3923), d) } } for { - yyj3909++ - if yyhl3909 { - yyb3909 = yyj3909 > l + yyj3918++ + if yyhl3918 { + yyb3918 = yyj3918 > l } else { - yyb3909 = r.CheckBreak() + yyb3918 = r.CheckBreak() } - if yyb3909 { + if yyb3918 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3909-1, "") + z.DecStructFieldNotFound(yyj3918-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3925 := z.EncBinary() + _ = yym3925 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3926 := !z.EncBinary() + yy2arr3926 := z.EncBasicHandle().StructToArray + var yyq3926 [4]bool + _, _, _ = yysep3926, yyq3926, yy2arr3926 + const yyr3926 bool = false + yyq3926[0] = x.Kind != "" + yyq3926[1] = x.APIVersion != "" + yyq3926[2] = true + var yynn3926 int + if yyr3926 || yy2arr3926 { + r.EncodeArrayStart(4) + } else { + yynn3926 = 1 + for _, b := range yyq3926 { + if b { + yynn3926++ + } + } + r.EncodeMapStart(yynn3926) + yynn3926 = 0 + } + if yyr3926 || yy2arr3926 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3926[0] { + yym3928 := z.EncBinary() + _ = yym3928 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3926[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3929 := z.EncBinary() + _ = yym3929 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3926 || yy2arr3926 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3926[1] { + yym3931 := z.EncBinary() + _ = yym3931 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3926[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym3932 := z.EncBinary() + _ = yym3932 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3926 || yy2arr3926 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3926[2] { + yy3934 := &x.ListMeta + yym3935 := z.EncBinary() + _ = yym3935 + if false { + } else if z.HasExtensions() && z.EncExt(yy3934) { + } else { + z.EncFallback(yy3934) + } + } else { + r.EncodeNil() + } + } else { + if yyq3926[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy3936 := &x.ListMeta + yym3937 := z.EncBinary() + _ = yym3937 + if false { + } else if z.HasExtensions() && z.EncExt(yy3936) { + } else { + z.EncFallback(yy3936) + } + } + } + if yyr3926 || yy2arr3926 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3939 := z.EncBinary() + _ = yym3939 + if false { + } else { + h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym3940 := z.EncBinary() + _ = yym3940 + if false { + } else { + h.encSliceruntime_RawExtension(([]pkg5_runtime.RawExtension)(x.Items), e) + } + } + } + if yyr3926 || yy2arr3926 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *List) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3941 := z.DecBinary() + _ = yym3941 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3942 := r.ContainerType() + if yyct3942 == codecSelferValueTypeMap1234 { + yyl3942 := r.ReadMapStart() + if yyl3942 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3942, d) + } + } else if yyct3942 == codecSelferValueTypeArray1234 { + yyl3942 := r.ReadArrayStart() + if yyl3942 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3942, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3943Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3943Slc + var yyhl3943 bool = l >= 0 + for yyj3943 := 0; ; yyj3943++ { + if yyhl3943 { + if yyj3943 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3943Slc = r.DecodeBytes(yys3943Slc, true, true) + yys3943 := string(yys3943Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3943 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3946 := &x.ListMeta + yym3947 := z.DecBinary() + _ = yym3947 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3946) { + } else { + z.DecFallback(yyv3946, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3948 := &x.Items + yym3949 := z.DecBinary() + _ = yym3949 + if false { + } else { + h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv3948), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3943) + } // end switch yys3943 + } // end for yyj3943 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *List) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3950 int + var yyb3950 bool + var yyhl3950 bool = l >= 0 + yyj3950++ + if yyhl3950 { + yyb3950 = yyj3950 > l + } else { + yyb3950 = r.CheckBreak() + } + if yyb3950 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj3950++ + if yyhl3950 { + yyb3950 = yyj3950 > l + } else { + yyb3950 = r.CheckBreak() + } + if yyb3950 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj3950++ + if yyhl3950 { + yyb3950 = yyj3950 > l + } else { + yyb3950 = r.CheckBreak() + } + if yyb3950 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv3953 := &x.ListMeta + yym3954 := z.DecBinary() + _ = yym3954 + if false { + } else if z.HasExtensions() && z.DecExt(yyv3953) { + } else { + z.DecFallback(yyv3953, false) + } + } + yyj3950++ + if yyhl3950 { + yyb3950 = yyj3950 > l + } else { + yyb3950 = r.CheckBreak() + } + if yyb3950 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv3955 := &x.Items + yym3956 := z.DecBinary() + _ = yym3956 + if false { + } else { + h.decSliceruntime_RawExtension((*[]pkg5_runtime.RawExtension)(yyv3955), d) + } + } + for { + yyj3950++ + if yyhl3950 { + yyb3950 = yyj3950 > l + } else { + yyb3950 = r.CheckBreak() + } + if yyb3950 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3950-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + yym3957 := z.EncBinary() + _ = yym3957 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x)) + } +} + +func (x *LimitType) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3958 := z.DecBinary() + _ = yym3958 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + *((*string)(x)) = r.DecodeString() + } +} + +func (x *LimitRangeItem) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3959 := z.EncBinary() + _ = yym3959 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3960 := !z.EncBinary() + yy2arr3960 := z.EncBasicHandle().StructToArray + var yyq3960 [6]bool + _, _, _ = yysep3960, yyq3960, yy2arr3960 + const yyr3960 bool = false + yyq3960[0] = x.Type != "" + yyq3960[1] = len(x.Max) != 0 + yyq3960[2] = len(x.Min) != 0 + yyq3960[3] = len(x.Default) != 0 + yyq3960[4] = len(x.DefaultRequest) != 0 + yyq3960[5] = len(x.MaxLimitRequestRatio) != 0 + var yynn3960 int + if yyr3960 || yy2arr3960 { + r.EncodeArrayStart(6) + } else { + yynn3960 = 0 + for _, b := range yyq3960 { + if b { + yynn3960++ + } + } + r.EncodeMapStart(yynn3960) + yynn3960 = 0 + } + if yyr3960 || yy2arr3960 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3960[0] { + x.Type.CodecEncodeSelf(e) + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3960[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + x.Type.CodecEncodeSelf(e) + } + } + if yyr3960 || yy2arr3960 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3960[1] { + if x.Max == nil { + r.EncodeNil() + } else { + x.Max.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3960[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("max")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Max == nil { + r.EncodeNil() + } else { + x.Max.CodecEncodeSelf(e) + } + } + } + if yyr3960 || yy2arr3960 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3960[2] { + if x.Min == nil { + r.EncodeNil() + } else { + x.Min.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3960[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("min")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Min == nil { + r.EncodeNil() + } else { + x.Min.CodecEncodeSelf(e) + } + } + } + if yyr3960 || yy2arr3960 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3960[3] { + if x.Default == nil { + r.EncodeNil() + } else { + x.Default.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3960[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("default")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Default == nil { + r.EncodeNil() + } else { + x.Default.CodecEncodeSelf(e) + } + } + } + if yyr3960 || yy2arr3960 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3960[4] { + if x.DefaultRequest == nil { + r.EncodeNil() + } else { + x.DefaultRequest.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3960[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("defaultRequest")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DefaultRequest == nil { + r.EncodeNil() + } else { + x.DefaultRequest.CodecEncodeSelf(e) + } + } + } + if yyr3960 || yy2arr3960 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3960[5] { + if x.MaxLimitRequestRatio == nil { + r.EncodeNil() + } else { + x.MaxLimitRequestRatio.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq3960[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("maxLimitRequestRatio")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.MaxLimitRequestRatio == nil { + r.EncodeNil() + } else { + x.MaxLimitRequestRatio.CodecEncodeSelf(e) + } + } + } + if yyr3960 || yy2arr3960 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *LimitRangeItem) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3967 := z.DecBinary() + _ = yym3967 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3968 := r.ContainerType() + if yyct3968 == codecSelferValueTypeMap1234 { + yyl3968 := r.ReadMapStart() + if yyl3968 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3968, d) + } + } else if yyct3968 == codecSelferValueTypeArray1234 { + yyl3968 := r.ReadArrayStart() + if yyl3968 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3968, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *LimitRangeItem) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3969Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3969Slc + var yyhl3969 bool = l >= 0 + for yyj3969 := 0; ; yyj3969++ { + if yyhl3969 { + if yyj3969 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3969Slc = r.DecodeBytes(yys3969Slc, true, true) + yys3969 := string(yys3969Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3969 { + case "type": + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = LimitType(r.DecodeString()) + } + case "max": + if r.TryDecodeAsNil() { + x.Max = nil + } else { + yyv3971 := &x.Max + yyv3971.CodecDecodeSelf(d) + } + case "min": + if r.TryDecodeAsNil() { + x.Min = nil + } else { + yyv3972 := &x.Min + yyv3972.CodecDecodeSelf(d) + } + case "default": + if r.TryDecodeAsNil() { + x.Default = nil + } else { + yyv3973 := &x.Default + yyv3973.CodecDecodeSelf(d) + } + case "defaultRequest": + if r.TryDecodeAsNil() { + x.DefaultRequest = nil + } else { + yyv3974 := &x.DefaultRequest + yyv3974.CodecDecodeSelf(d) + } + case "maxLimitRequestRatio": + if r.TryDecodeAsNil() { + x.MaxLimitRequestRatio = nil + } else { + yyv3975 := &x.MaxLimitRequestRatio + yyv3975.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys3969) + } // end switch yys3969 + } // end for yyj3969 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *LimitRangeItem) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3976 int + var yyb3976 bool + var yyhl3976 bool = l >= 0 + yyj3976++ + if yyhl3976 { + yyb3976 = yyj3976 > l + } else { + yyb3976 = r.CheckBreak() + } + if yyb3976 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Type = "" + } else { + x.Type = LimitType(r.DecodeString()) + } + yyj3976++ + if yyhl3976 { + yyb3976 = yyj3976 > l + } else { + yyb3976 = r.CheckBreak() + } + if yyb3976 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Max = nil + } else { + yyv3978 := &x.Max + yyv3978.CodecDecodeSelf(d) + } + yyj3976++ + if yyhl3976 { + yyb3976 = yyj3976 > l + } else { + yyb3976 = r.CheckBreak() + } + if yyb3976 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Min = nil + } else { + yyv3979 := &x.Min + yyv3979.CodecDecodeSelf(d) + } + yyj3976++ + if yyhl3976 { + yyb3976 = yyj3976 > l + } else { + yyb3976 = r.CheckBreak() + } + if yyb3976 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Default = nil + } else { + yyv3980 := &x.Default + yyv3980.CodecDecodeSelf(d) + } + yyj3976++ + if yyhl3976 { + yyb3976 = yyj3976 > l + } else { + yyb3976 = r.CheckBreak() + } + if yyb3976 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.DefaultRequest = nil + } else { + yyv3981 := &x.DefaultRequest + yyv3981.CodecDecodeSelf(d) + } + yyj3976++ + if yyhl3976 { + yyb3976 = yyj3976 > l + } else { + yyb3976 = r.CheckBreak() + } + if yyb3976 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MaxLimitRequestRatio = nil + } else { + yyv3982 := &x.MaxLimitRequestRatio + yyv3982.CodecDecodeSelf(d) + } + for { + yyj3976++ + if yyhl3976 { + yyb3976 = yyj3976 > l + } else { + yyb3976 = r.CheckBreak() + } + if yyb3976 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3976-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *LimitRangeSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3983 := z.EncBinary() + _ = yym3983 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3984 := !z.EncBinary() + yy2arr3984 := z.EncBasicHandle().StructToArray + var yyq3984 [1]bool + _, _, _ = yysep3984, yyq3984, yy2arr3984 + const yyr3984 bool = false + var yynn3984 int + if yyr3984 || yy2arr3984 { + r.EncodeArrayStart(1) + } else { + yynn3984 = 1 + for _, b := range yyq3984 { + if b { + yynn3984++ + } + } + r.EncodeMapStart(yynn3984) + yynn3984 = 0 + } + if yyr3984 || yy2arr3984 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Limits == nil { + r.EncodeNil() + } else { + yym3986 := z.EncBinary() + _ = yym3986 + if false { + } else { + h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("limits")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Limits == nil { + r.EncodeNil() + } else { + yym3987 := z.EncBinary() + _ = yym3987 + if false { + } else { + h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) + } + } + } + if yyr3984 || yy2arr3984 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *LimitRangeSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym3988 := z.DecBinary() + _ = yym3988 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct3989 := r.ContainerType() + if yyct3989 == codecSelferValueTypeMap1234 { + yyl3989 := r.ReadMapStart() + if yyl3989 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl3989, d) + } + } else if yyct3989 == codecSelferValueTypeArray1234 { + yyl3989 := r.ReadArrayStart() + if yyl3989 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl3989, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys3990Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys3990Slc + var yyhl3990 bool = l >= 0 + for yyj3990 := 0; ; yyj3990++ { + if yyhl3990 { + if yyj3990 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys3990Slc = r.DecodeBytes(yys3990Slc, true, true) + yys3990 := string(yys3990Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys3990 { + case "limits": + if r.TryDecodeAsNil() { + x.Limits = nil + } else { + yyv3991 := &x.Limits + yym3992 := z.DecBinary() + _ = yym3992 + if false { + } else { + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3991), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys3990) + } // end switch yys3990 + } // end for yyj3990 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *LimitRangeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj3993 int + var yyb3993 bool + var yyhl3993 bool = l >= 0 + yyj3993++ + if yyhl3993 { + yyb3993 = yyj3993 > l + } else { + yyb3993 = r.CheckBreak() + } + if yyb3993 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Limits = nil + } else { + yyv3994 := &x.Limits + yym3995 := z.DecBinary() + _ = yym3995 + if false { + } else { + h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3994), d) + } + } + for { + yyj3993++ + if yyhl3993 { + yyb3993 = yyj3993 > l + } else { + yyb3993 = r.CheckBreak() + } + if yyb3993 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj3993-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym3996 := z.EncBinary() + _ = yym3996 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep3997 := !z.EncBinary() + yy2arr3997 := z.EncBasicHandle().StructToArray + var yyq3997 [4]bool + _, _, _ = yysep3997, yyq3997, yy2arr3997 + const yyr3997 bool = false + yyq3997[0] = x.Kind != "" + yyq3997[1] = x.APIVersion != "" + yyq3997[2] = true + yyq3997[3] = true + var yynn3997 int + if yyr3997 || yy2arr3997 { + r.EncodeArrayStart(4) + } else { + yynn3997 = 0 + for _, b := range yyq3997 { + if b { + yynn3997++ + } + } + r.EncodeMapStart(yynn3997) + yynn3997 = 0 + } + if yyr3997 || yy2arr3997 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3997[0] { + yym3999 := z.EncBinary() + _ = yym3999 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3997[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4000 := z.EncBinary() + _ = yym4000 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr3997 || yy2arr3997 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3997[1] { + yym4002 := z.EncBinary() + _ = yym4002 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq3997[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4003 := z.EncBinary() + _ = yym4003 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr3997 || yy2arr3997 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3997[2] { + yy4005 := &x.ObjectMeta + yy4005.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3997[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4006 := &x.ObjectMeta + yy4006.CodecEncodeSelf(e) + } + } + if yyr3997 || yy2arr3997 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq3997[3] { + yy4008 := &x.Spec + yy4008.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq3997[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4009 := &x.Spec + yy4009.CodecEncodeSelf(e) + } + } + if yyr3997 || yy2arr3997 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4010 := z.DecBinary() + _ = yym4010 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4011 := r.ContainerType() + if yyct4011 == codecSelferValueTypeMap1234 { + yyl4011 := r.ReadMapStart() + if yyl4011 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4011, d) + } + } else if yyct4011 == codecSelferValueTypeArray1234 { + yyl4011 := r.ReadArrayStart() + if yyl4011 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4011, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *LimitRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4012Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4012Slc + var yyhl4012 bool = l >= 0 + for yyj4012 := 0; ; yyj4012++ { + if yyhl4012 { + if yyj4012 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4012Slc = r.DecodeBytes(yys4012Slc, true, true) + yys4012 := string(yys4012Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4012 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv4015 := &x.ObjectMeta + yyv4015.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = LimitRangeSpec{} + } else { + yyv4016 := &x.Spec + yyv4016.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys4012) + } // end switch yys4012 + } // end for yyj4012 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *LimitRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4017 int + var yyb4017 bool + var yyhl4017 bool = l >= 0 + yyj4017++ + if yyhl4017 { + yyb4017 = yyj4017 > l + } else { + yyb4017 = r.CheckBreak() + } + if yyb4017 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4017++ + if yyhl4017 { + yyb4017 = yyj4017 > l + } else { + yyb4017 = r.CheckBreak() + } + if yyb4017 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4017++ + if yyhl4017 { + yyb4017 = yyj4017 > l + } else { + yyb4017 = r.CheckBreak() + } + if yyb4017 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv4020 := &x.ObjectMeta + yyv4020.CodecDecodeSelf(d) + } + yyj4017++ + if yyhl4017 { + yyb4017 = yyj4017 > l + } else { + yyb4017 = r.CheckBreak() + } + if yyb4017 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = LimitRangeSpec{} + } else { + yyv4021 := &x.Spec + yyv4021.CodecDecodeSelf(d) + } + for { + yyj4017++ + if yyhl4017 { + yyb4017 = yyj4017 > l + } else { + yyb4017 = r.CheckBreak() + } + if yyb4017 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4017-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4022 := z.EncBinary() + _ = yym4022 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4023 := !z.EncBinary() + yy2arr4023 := z.EncBasicHandle().StructToArray + var yyq4023 [4]bool + _, _, _ = yysep4023, yyq4023, yy2arr4023 + const yyr4023 bool = false + yyq4023[0] = x.Kind != "" + yyq4023[1] = x.APIVersion != "" + yyq4023[2] = true + var yynn4023 int + if yyr4023 || yy2arr4023 { + r.EncodeArrayStart(4) + } else { + yynn4023 = 1 + for _, b := range yyq4023 { + if b { + yynn4023++ + } + } + r.EncodeMapStart(yynn4023) + yynn4023 = 0 + } + if yyr4023 || yy2arr4023 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4023[0] { + yym4025 := z.EncBinary() + _ = yym4025 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4023[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4026 := z.EncBinary() + _ = yym4026 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4023 || yy2arr4023 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4023[1] { + yym4028 := z.EncBinary() + _ = yym4028 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4023[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4029 := z.EncBinary() + _ = yym4029 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4023 || yy2arr4023 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4023[2] { + yy4031 := &x.ListMeta + yym4032 := z.EncBinary() + _ = yym4032 + if false { + } else if z.HasExtensions() && z.EncExt(yy4031) { + } else { + z.EncFallback(yy4031) + } + } else { + r.EncodeNil() + } + } else { + if yyq4023[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4033 := &x.ListMeta + yym4034 := z.EncBinary() + _ = yym4034 + if false { + } else if z.HasExtensions() && z.EncExt(yy4033) { + } else { + z.EncFallback(yy4033) + } + } + } + if yyr4023 || yy2arr4023 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4036 := z.EncBinary() + _ = yym4036 + if false { + } else { + h.encSliceLimitRange(([]LimitRange)(x.Items), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4037 := z.EncBinary() + _ = yym4037 + if false { + } else { + h.encSliceLimitRange(([]LimitRange)(x.Items), e) + } + } + } + if yyr4023 || yy2arr4023 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *LimitRangeList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4038 := z.DecBinary() + _ = yym4038 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4039 := r.ContainerType() + if yyct4039 == codecSelferValueTypeMap1234 { + yyl4039 := r.ReadMapStart() + if yyl4039 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4039, d) + } + } else if yyct4039 == codecSelferValueTypeArray1234 { + yyl4039 := r.ReadArrayStart() + if yyl4039 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4039, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *LimitRangeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4040Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4040Slc + var yyhl4040 bool = l >= 0 + for yyj4040 := 0; ; yyj4040++ { + if yyhl4040 { + if yyj4040 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4040Slc = r.DecodeBytes(yys4040Slc, true, true) + yys4040 := string(yys4040Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4040 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4043 := &x.ListMeta + yym4044 := z.DecBinary() + _ = yym4044 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4043) { + } else { + z.DecFallback(yyv4043, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4045 := &x.Items + yym4046 := z.DecBinary() + _ = yym4046 + if false { + } else { + h.decSliceLimitRange((*[]LimitRange)(yyv4045), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4040) + } // end switch yys4040 + } // end for yyj4040 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *LimitRangeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4047 int + var yyb4047 bool + var yyhl4047 bool = l >= 0 + yyj4047++ + if yyhl4047 { + yyb4047 = yyj4047 > l + } else { + yyb4047 = r.CheckBreak() + } + if yyb4047 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4047++ + if yyhl4047 { + yyb4047 = yyj4047 > l + } else { + yyb4047 = r.CheckBreak() + } + if yyb4047 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4047++ + if yyhl4047 { + yyb4047 = yyj4047 > l + } else { + yyb4047 = r.CheckBreak() + } + if yyb4047 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4050 := &x.ListMeta + yym4051 := z.DecBinary() + _ = yym4051 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4050) { + } else { + z.DecFallback(yyv4050, false) + } + } + yyj4047++ + if yyhl4047 { + yyb4047 = yyj4047 > l + } else { + yyb4047 = r.CheckBreak() + } + if yyb4047 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4052 := &x.Items + yym4053 := z.DecBinary() + _ = yym4053 + if false { + } else { + h.decSliceLimitRange((*[]LimitRange)(yyv4052), d) + } + } + for { + yyj4047++ + if yyhl4047 { + yyb4047 = yyj4047 > l + } else { + yyb4047 = r.CheckBreak() + } + if yyb4047 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4047-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49085,8 +50781,8 @@ func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym3916 := z.EncBinary() - _ = yym3916 + yym4054 := z.EncBinary() + _ = yym4054 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -49098,8 +50794,8 @@ func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3917 := z.DecBinary() - _ = yym3917 + yym4055 := z.DecBinary() + _ = yym4055 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -49114,34 +50810,34 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3918 := z.EncBinary() - _ = yym3918 + yym4056 := z.EncBinary() + _ = yym4056 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3919 := !z.EncBinary() - yy2arr3919 := z.EncBasicHandle().StructToArray - var yyq3919 [2]bool - _, _, _ = yysep3919, yyq3919, yy2arr3919 - const yyr3919 bool = false - yyq3919[0] = len(x.Hard) != 0 - yyq3919[1] = len(x.Scopes) != 0 - var yynn3919 int - if yyr3919 || yy2arr3919 { + yysep4057 := !z.EncBinary() + yy2arr4057 := z.EncBasicHandle().StructToArray + var yyq4057 [2]bool + _, _, _ = yysep4057, yyq4057, yy2arr4057 + const yyr4057 bool = false + yyq4057[0] = len(x.Hard) != 0 + yyq4057[1] = len(x.Scopes) != 0 + var yynn4057 int + if yyr4057 || yy2arr4057 { r.EncodeArrayStart(2) } else { - yynn3919 = 0 - for _, b := range yyq3919 { + yynn4057 = 0 + for _, b := range yyq4057 { if b { - yynn3919++ + yynn4057++ } } - r.EncodeMapStart(yynn3919) - yynn3919 = 0 + r.EncodeMapStart(yynn4057) + yynn4057 = 0 } - if yyr3919 || yy2arr3919 { + if yyr4057 || yy2arr4057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3919[0] { + if yyq4057[0] { if x.Hard == nil { r.EncodeNil() } else { @@ -49151,7 +50847,7 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3919[0] { + if yyq4057[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -49162,14 +50858,14 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3919 || yy2arr3919 { + if yyr4057 || yy2arr4057 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3919[1] { + if yyq4057[1] { if x.Scopes == nil { r.EncodeNil() } else { - yym3922 := z.EncBinary() - _ = yym3922 + yym4060 := z.EncBinary() + _ = yym4060 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) @@ -49179,15 +50875,15 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3919[1] { + if yyq4057[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scopes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Scopes == nil { r.EncodeNil() } else { - yym3923 := z.EncBinary() - _ = yym3923 + yym4061 := z.EncBinary() + _ = yym4061 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) @@ -49195,7 +50891,7 @@ func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3919 || yy2arr3919 { + if yyr4057 || yy2arr4057 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49208,25 +50904,25 @@ func (x *ResourceQuotaSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3924 := z.DecBinary() - _ = yym3924 + yym4062 := z.DecBinary() + _ = yym4062 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3925 := r.ContainerType() - if yyct3925 == codecSelferValueTypeMap1234 { - yyl3925 := r.ReadMapStart() - if yyl3925 == 0 { + yyct4063 := r.ContainerType() + if yyct4063 == codecSelferValueTypeMap1234 { + yyl4063 := r.ReadMapStart() + if yyl4063 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3925, d) + x.codecDecodeSelfFromMap(yyl4063, d) } - } else if yyct3925 == codecSelferValueTypeArray1234 { - yyl3925 := r.ReadArrayStart() - if yyl3925 == 0 { + } else if yyct4063 == codecSelferValueTypeArray1234 { + yyl4063 := r.ReadArrayStart() + if yyl4063 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3925, d) + x.codecDecodeSelfFromArray(yyl4063, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49238,12 +50934,12 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3926Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3926Slc - var yyhl3926 bool = l >= 0 - for yyj3926 := 0; ; yyj3926++ { - if yyhl3926 { - if yyj3926 >= l { + var yys4064Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4064Slc + var yyhl4064 bool = l >= 0 + for yyj4064 := 0; ; yyj4064++ { + if yyhl4064 { + if yyj4064 >= l { break } } else { @@ -49252,33 +50948,33 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3926Slc = r.DecodeBytes(yys3926Slc, true, true) - yys3926 := string(yys3926Slc) + yys4064Slc = r.DecodeBytes(yys4064Slc, true, true) + yys4064 := string(yys4064Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3926 { + switch yys4064 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv3927 := &x.Hard - yyv3927.CodecDecodeSelf(d) + yyv4065 := &x.Hard + yyv4065.CodecDecodeSelf(d) } case "scopes": if r.TryDecodeAsNil() { x.Scopes = nil } else { - yyv3928 := &x.Scopes - yym3929 := z.DecBinary() - _ = yym3929 + yyv4066 := &x.Scopes + yym4067 := z.DecBinary() + _ = yym4067 if false { } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv3928), d) + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4066), d) } } default: - z.DecStructFieldNotFound(-1, yys3926) - } // end switch yys3926 - } // end for yyj3926 + z.DecStructFieldNotFound(-1, yys4064) + } // end switch yys4064 + } // end for yyj4064 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49286,16 +50982,16 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3930 int - var yyb3930 bool - var yyhl3930 bool = l >= 0 - yyj3930++ - if yyhl3930 { - yyb3930 = yyj3930 > l + var yyj4068 int + var yyb4068 bool + var yyhl4068 bool = l >= 0 + yyj4068++ + if yyhl4068 { + yyb4068 = yyj4068 > l } else { - yyb3930 = r.CheckBreak() + yyb4068 = r.CheckBreak() } - if yyb3930 { + if yyb4068 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49303,16 +50999,16 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv3931 := &x.Hard - yyv3931.CodecDecodeSelf(d) + yyv4069 := &x.Hard + yyv4069.CodecDecodeSelf(d) } - yyj3930++ - if yyhl3930 { - yyb3930 = yyj3930 > l + yyj4068++ + if yyhl4068 { + yyb4068 = yyj4068 > l } else { - yyb3930 = r.CheckBreak() + yyb4068 = r.CheckBreak() } - if yyb3930 { + if yyb4068 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49320,26 +51016,26 @@ func (x *ResourceQuotaSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Scopes = nil } else { - yyv3932 := &x.Scopes - yym3933 := z.DecBinary() - _ = yym3933 + yyv4070 := &x.Scopes + yym4071 := z.DecBinary() + _ = yym4071 if false { } else { - h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv3932), d) + h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4070), d) } } for { - yyj3930++ - if yyhl3930 { - yyb3930 = yyj3930 > l + yyj4068++ + if yyhl4068 { + yyb4068 = yyj4068 > l } else { - yyb3930 = r.CheckBreak() + yyb4068 = r.CheckBreak() } - if yyb3930 { + if yyb4068 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3930-1, "") + z.DecStructFieldNotFound(yyj4068-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49351,34 +51047,34 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3934 := z.EncBinary() - _ = yym3934 + yym4072 := z.EncBinary() + _ = yym4072 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3935 := !z.EncBinary() - yy2arr3935 := z.EncBasicHandle().StructToArray - var yyq3935 [2]bool - _, _, _ = yysep3935, yyq3935, yy2arr3935 - const yyr3935 bool = false - yyq3935[0] = len(x.Hard) != 0 - yyq3935[1] = len(x.Used) != 0 - var yynn3935 int - if yyr3935 || yy2arr3935 { + yysep4073 := !z.EncBinary() + yy2arr4073 := z.EncBasicHandle().StructToArray + var yyq4073 [2]bool + _, _, _ = yysep4073, yyq4073, yy2arr4073 + const yyr4073 bool = false + yyq4073[0] = len(x.Hard) != 0 + yyq4073[1] = len(x.Used) != 0 + var yynn4073 int + if yyr4073 || yy2arr4073 { r.EncodeArrayStart(2) } else { - yynn3935 = 0 - for _, b := range yyq3935 { + yynn4073 = 0 + for _, b := range yyq4073 { if b { - yynn3935++ + yynn4073++ } } - r.EncodeMapStart(yynn3935) - yynn3935 = 0 + r.EncodeMapStart(yynn4073) + yynn4073 = 0 } - if yyr3935 || yy2arr3935 { + if yyr4073 || yy2arr4073 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3935[0] { + if yyq4073[0] { if x.Hard == nil { r.EncodeNil() } else { @@ -49388,7 +51084,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3935[0] { + if yyq4073[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -49399,9 +51095,9 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3935 || yy2arr3935 { + if yyr4073 || yy2arr4073 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3935[1] { + if yyq4073[1] { if x.Used == nil { r.EncodeNil() } else { @@ -49411,7 +51107,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq3935[1] { + if yyq4073[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("used")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -49422,7 +51118,7 @@ func (x *ResourceQuotaStatus) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr3935 || yy2arr3935 { + if yyr4073 || yy2arr4073 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49435,25 +51131,25 @@ func (x *ResourceQuotaStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3938 := z.DecBinary() - _ = yym3938 + yym4076 := z.DecBinary() + _ = yym4076 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3939 := r.ContainerType() - if yyct3939 == codecSelferValueTypeMap1234 { - yyl3939 := r.ReadMapStart() - if yyl3939 == 0 { + yyct4077 := r.ContainerType() + if yyct4077 == codecSelferValueTypeMap1234 { + yyl4077 := r.ReadMapStart() + if yyl4077 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3939, d) + x.codecDecodeSelfFromMap(yyl4077, d) } - } else if yyct3939 == codecSelferValueTypeArray1234 { - yyl3939 := r.ReadArrayStart() - if yyl3939 == 0 { + } else if yyct4077 == codecSelferValueTypeArray1234 { + yyl4077 := r.ReadArrayStart() + if yyl4077 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3939, d) + x.codecDecodeSelfFromArray(yyl4077, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49465,12 +51161,12 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3940Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3940Slc - var yyhl3940 bool = l >= 0 - for yyj3940 := 0; ; yyj3940++ { - if yyhl3940 { - if yyj3940 >= l { + var yys4078Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4078Slc + var yyhl4078 bool = l >= 0 + for yyj4078 := 0; ; yyj4078++ { + if yyhl4078 { + if yyj4078 >= l { break } } else { @@ -49479,28 +51175,28 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3940Slc = r.DecodeBytes(yys3940Slc, true, true) - yys3940 := string(yys3940Slc) + yys4078Slc = r.DecodeBytes(yys4078Slc, true, true) + yys4078 := string(yys4078Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3940 { + switch yys4078 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv3941 := &x.Hard - yyv3941.CodecDecodeSelf(d) + yyv4079 := &x.Hard + yyv4079.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { - yyv3942 := &x.Used - yyv3942.CodecDecodeSelf(d) + yyv4080 := &x.Used + yyv4080.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3940) - } // end switch yys3940 - } // end for yyj3940 + z.DecStructFieldNotFound(-1, yys4078) + } // end switch yys4078 + } // end for yyj4078 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49508,16 +51204,16 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3943 int - var yyb3943 bool - var yyhl3943 bool = l >= 0 - yyj3943++ - if yyhl3943 { - yyb3943 = yyj3943 > l + var yyj4081 int + var yyb4081 bool + var yyhl4081 bool = l >= 0 + yyj4081++ + if yyhl4081 { + yyb4081 = yyj4081 > l } else { - yyb3943 = r.CheckBreak() + yyb4081 = r.CheckBreak() } - if yyb3943 { + if yyb4081 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49525,16 +51221,16 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Hard = nil } else { - yyv3944 := &x.Hard - yyv3944.CodecDecodeSelf(d) + yyv4082 := &x.Hard + yyv4082.CodecDecodeSelf(d) } - yyj3943++ - if yyhl3943 { - yyb3943 = yyj3943 > l + yyj4081++ + if yyhl4081 { + yyb4081 = yyj4081 > l } else { - yyb3943 = r.CheckBreak() + yyb4081 = r.CheckBreak() } - if yyb3943 { + if yyb4081 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49542,21 +51238,21 @@ func (x *ResourceQuotaStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Used = nil } else { - yyv3945 := &x.Used - yyv3945.CodecDecodeSelf(d) + yyv4083 := &x.Used + yyv4083.CodecDecodeSelf(d) } for { - yyj3943++ - if yyhl3943 { - yyb3943 = yyj3943 > l + yyj4081++ + if yyhl4081 { + yyb4081 = yyj4081 > l } else { - yyb3943 = r.CheckBreak() + yyb4081 = r.CheckBreak() } - if yyb3943 { + if yyb4081 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3943-1, "") + z.DecStructFieldNotFound(yyj4081-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49568,39 +51264,39 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3946 := z.EncBinary() - _ = yym3946 + yym4084 := z.EncBinary() + _ = yym4084 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3947 := !z.EncBinary() - yy2arr3947 := z.EncBasicHandle().StructToArray - var yyq3947 [5]bool - _, _, _ = yysep3947, yyq3947, yy2arr3947 - const yyr3947 bool = false - yyq3947[0] = x.Kind != "" - yyq3947[1] = x.APIVersion != "" - yyq3947[2] = true - yyq3947[3] = true - yyq3947[4] = true - var yynn3947 int - if yyr3947 || yy2arr3947 { + yysep4085 := !z.EncBinary() + yy2arr4085 := z.EncBasicHandle().StructToArray + var yyq4085 [5]bool + _, _, _ = yysep4085, yyq4085, yy2arr4085 + const yyr4085 bool = false + yyq4085[0] = x.Kind != "" + yyq4085[1] = x.APIVersion != "" + yyq4085[2] = true + yyq4085[3] = true + yyq4085[4] = true + var yynn4085 int + if yyr4085 || yy2arr4085 { r.EncodeArrayStart(5) } else { - yynn3947 = 0 - for _, b := range yyq3947 { + yynn4085 = 0 + for _, b := range yyq4085 { if b { - yynn3947++ + yynn4085++ } } - r.EncodeMapStart(yynn3947) - yynn3947 = 0 + r.EncodeMapStart(yynn4085) + yynn4085 = 0 } - if yyr3947 || yy2arr3947 { + if yyr4085 || yy2arr4085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3947[0] { - yym3949 := z.EncBinary() - _ = yym3949 + if yyq4085[0] { + yym4087 := z.EncBinary() + _ = yym4087 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -49609,23 +51305,23 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3947[0] { + if yyq4085[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3950 := z.EncBinary() - _ = yym3950 + yym4088 := z.EncBinary() + _ = yym4088 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3947 || yy2arr3947 { + if yyr4085 || yy2arr4085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3947[1] { - yym3952 := z.EncBinary() - _ = yym3952 + if yyq4085[1] { + yym4090 := z.EncBinary() + _ = yym4090 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -49634,70 +51330,70 @@ func (x *ResourceQuota) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3947[1] { + if yyq4085[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3953 := z.EncBinary() - _ = yym3953 + yym4091 := z.EncBinary() + _ = yym4091 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3947 || yy2arr3947 { + if yyr4085 || yy2arr4085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3947[2] { - yy3955 := &x.ObjectMeta - yy3955.CodecEncodeSelf(e) + if yyq4085[2] { + yy4093 := &x.ObjectMeta + yy4093.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3947[2] { + if yyq4085[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3956 := &x.ObjectMeta - yy3956.CodecEncodeSelf(e) + yy4094 := &x.ObjectMeta + yy4094.CodecEncodeSelf(e) } } - if yyr3947 || yy2arr3947 { + if yyr4085 || yy2arr4085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3947[3] { - yy3958 := &x.Spec - yy3958.CodecEncodeSelf(e) + if yyq4085[3] { + yy4096 := &x.Spec + yy4096.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3947[3] { + if yyq4085[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3959 := &x.Spec - yy3959.CodecEncodeSelf(e) + yy4097 := &x.Spec + yy4097.CodecEncodeSelf(e) } } - if yyr3947 || yy2arr3947 { + if yyr4085 || yy2arr4085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3947[4] { - yy3961 := &x.Status - yy3961.CodecEncodeSelf(e) + if yyq4085[4] { + yy4099 := &x.Status + yy4099.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq3947[4] { + if yyq4085[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3962 := &x.Status - yy3962.CodecEncodeSelf(e) + yy4100 := &x.Status + yy4100.CodecEncodeSelf(e) } } - if yyr3947 || yy2arr3947 { + if yyr4085 || yy2arr4085 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -49710,25 +51406,25 @@ func (x *ResourceQuota) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3963 := z.DecBinary() - _ = yym3963 + yym4101 := z.DecBinary() + _ = yym4101 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3964 := r.ContainerType() - if yyct3964 == codecSelferValueTypeMap1234 { - yyl3964 := r.ReadMapStart() - if yyl3964 == 0 { + yyct4102 := r.ContainerType() + if yyct4102 == codecSelferValueTypeMap1234 { + yyl4102 := r.ReadMapStart() + if yyl4102 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3964, d) + x.codecDecodeSelfFromMap(yyl4102, d) } - } else if yyct3964 == codecSelferValueTypeArray1234 { - yyl3964 := r.ReadArrayStart() - if yyl3964 == 0 { + } else if yyct4102 == codecSelferValueTypeArray1234 { + yyl4102 := r.ReadArrayStart() + if yyl4102 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3964, d) + x.codecDecodeSelfFromArray(yyl4102, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -49740,12 +51436,12 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3965Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3965Slc - var yyhl3965 bool = l >= 0 - for yyj3965 := 0; ; yyj3965++ { - if yyhl3965 { - if yyj3965 >= l { + var yys4103Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4103Slc + var yyhl4103 bool = l >= 0 + for yyj4103 := 0; ; yyj4103++ { + if yyhl4103 { + if yyj4103 >= l { break } } else { @@ -49754,10 +51450,10 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3965Slc = r.DecodeBytes(yys3965Slc, true, true) - yys3965 := string(yys3965Slc) + yys4103Slc = r.DecodeBytes(yys4103Slc, true, true) + yys4103 := string(yys4103Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3965 { + switch yys4103 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -49774,27 +51470,27 @@ func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3968 := &x.ObjectMeta - yyv3968.CodecDecodeSelf(d) + yyv4106 := &x.ObjectMeta + yyv4106.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { - yyv3969 := &x.Spec - yyv3969.CodecDecodeSelf(d) + yyv4107 := &x.Spec + yyv4107.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { - yyv3970 := &x.Status - yyv3970.CodecDecodeSelf(d) + yyv4108 := &x.Status + yyv4108.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys3965) - } // end switch yys3965 - } // end for yyj3965 + z.DecStructFieldNotFound(-1, yys4103) + } // end switch yys4103 + } // end for yyj4103 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -49802,16 +51498,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj3971 int - var yyb3971 bool - var yyhl3971 bool = l >= 0 - yyj3971++ - if yyhl3971 { - yyb3971 = yyj3971 > l + var yyj4109 int + var yyb4109 bool + var yyhl4109 bool = l >= 0 + yyj4109++ + if yyhl4109 { + yyb4109 = yyj4109 > l } else { - yyb3971 = r.CheckBreak() + yyb4109 = r.CheckBreak() } - if yyb3971 { + if yyb4109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49821,13 +51517,13 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj3971++ - if yyhl3971 { - yyb3971 = yyj3971 > l + yyj4109++ + if yyhl4109 { + yyb4109 = yyj4109 > l } else { - yyb3971 = r.CheckBreak() + yyb4109 = r.CheckBreak() } - if yyb3971 { + if yyb4109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49837,13 +51533,13 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj3971++ - if yyhl3971 { - yyb3971 = yyj3971 > l + yyj4109++ + if yyhl4109 { + yyb4109 = yyj4109 > l } else { - yyb3971 = r.CheckBreak() + yyb4109 = r.CheckBreak() } - if yyb3971 { + if yyb4109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49851,16 +51547,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv3974 := &x.ObjectMeta - yyv3974.CodecDecodeSelf(d) + yyv4112 := &x.ObjectMeta + yyv4112.CodecDecodeSelf(d) } - yyj3971++ - if yyhl3971 { - yyb3971 = yyj3971 > l + yyj4109++ + if yyhl4109 { + yyb4109 = yyj4109 > l } else { - yyb3971 = r.CheckBreak() + yyb4109 = r.CheckBreak() } - if yyb3971 { + if yyb4109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49868,16 +51564,16 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { - yyv3975 := &x.Spec - yyv3975.CodecDecodeSelf(d) + yyv4113 := &x.Spec + yyv4113.CodecDecodeSelf(d) } - yyj3971++ - if yyhl3971 { - yyb3971 = yyj3971 > l + yyj4109++ + if yyhl4109 { + yyb4109 = yyj4109 > l } else { - yyb3971 = r.CheckBreak() + yyb4109 = r.CheckBreak() } - if yyb3971 { + if yyb4109 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -49885,21 +51581,21 @@ func (x *ResourceQuota) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { - yyv3976 := &x.Status - yyv3976.CodecDecodeSelf(d) + yyv4114 := &x.Status + yyv4114.CodecDecodeSelf(d) } for { - yyj3971++ - if yyhl3971 { - yyb3971 = yyj3971 > l + yyj4109++ + if yyhl4109 { + yyb4109 = yyj4109 > l } else { - yyb3971 = r.CheckBreak() + yyb4109 = r.CheckBreak() } - if yyb3971 { + if yyb4109 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj3971-1, "") + z.DecStructFieldNotFound(yyj4109-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -49911,37 +51607,37 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym3977 := z.EncBinary() - _ = yym3977 + yym4115 := z.EncBinary() + _ = yym4115 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep3978 := !z.EncBinary() - yy2arr3978 := z.EncBasicHandle().StructToArray - var yyq3978 [4]bool - _, _, _ = yysep3978, yyq3978, yy2arr3978 - const yyr3978 bool = false - yyq3978[0] = x.Kind != "" - yyq3978[1] = x.APIVersion != "" - yyq3978[2] = true - var yynn3978 int - if yyr3978 || yy2arr3978 { + yysep4116 := !z.EncBinary() + yy2arr4116 := z.EncBasicHandle().StructToArray + var yyq4116 [4]bool + _, _, _ = yysep4116, yyq4116, yy2arr4116 + const yyr4116 bool = false + yyq4116[0] = x.Kind != "" + yyq4116[1] = x.APIVersion != "" + yyq4116[2] = true + var yynn4116 int + if yyr4116 || yy2arr4116 { r.EncodeArrayStart(4) } else { - yynn3978 = 1 - for _, b := range yyq3978 { + yynn4116 = 1 + for _, b := range yyq4116 { if b { - yynn3978++ + yynn4116++ } } - r.EncodeMapStart(yynn3978) - yynn3978 = 0 + r.EncodeMapStart(yynn4116) + yynn4116 = 0 } - if yyr3978 || yy2arr3978 { + if yyr4116 || yy2arr4116 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3978[0] { - yym3980 := z.EncBinary() - _ = yym3980 + if yyq4116[0] { + yym4118 := z.EncBinary() + _ = yym4118 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -49950,23 +51646,23 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3978[0] { + if yyq4116[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3981 := z.EncBinary() - _ = yym3981 + yym4119 := z.EncBinary() + _ = yym4119 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr3978 || yy2arr3978 { + if yyr4116 || yy2arr4116 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3978[1] { - yym3983 := z.EncBinary() - _ = yym3983 + if yyq4116[1] { + yym4121 := z.EncBinary() + _ = yym4121 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -49975,54 +51671,54 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq3978[1] { + if yyq4116[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym3984 := z.EncBinary() - _ = yym3984 + yym4122 := z.EncBinary() + _ = yym4122 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr3978 || yy2arr3978 { + if yyr4116 || yy2arr4116 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq3978[2] { - yy3986 := &x.ListMeta - yym3987 := z.EncBinary() - _ = yym3987 + if yyq4116[2] { + yy4124 := &x.ListMeta + yym4125 := z.EncBinary() + _ = yym4125 if false { - } else if z.HasExtensions() && z.EncExt(yy3986) { + } else if z.HasExtensions() && z.EncExt(yy4124) { } else { - z.EncFallback(yy3986) + z.EncFallback(yy4124) } } else { r.EncodeNil() } } else { - if yyq3978[2] { + if yyq4116[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy3988 := &x.ListMeta - yym3989 := z.EncBinary() - _ = yym3989 + yy4126 := &x.ListMeta + yym4127 := z.EncBinary() + _ = yym4127 if false { - } else if z.HasExtensions() && z.EncExt(yy3988) { + } else if z.HasExtensions() && z.EncExt(yy4126) { } else { - z.EncFallback(yy3988) + z.EncFallback(yy4126) } } } - if yyr3978 || yy2arr3978 { + if yyr4116 || yy2arr4116 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym3991 := z.EncBinary() - _ = yym3991 + yym4129 := z.EncBinary() + _ = yym4129 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) @@ -50035,15 +51731,15 @@ func (x *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym3992 := z.EncBinary() - _ = yym3992 + yym4130 := z.EncBinary() + _ = yym4130 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } - if yyr3978 || yy2arr3978 { + if yyr4116 || yy2arr4116 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50056,25 +51752,25 @@ func (x *ResourceQuotaList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym3993 := z.DecBinary() - _ = yym3993 + yym4131 := z.DecBinary() + _ = yym4131 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct3994 := r.ContainerType() - if yyct3994 == codecSelferValueTypeMap1234 { - yyl3994 := r.ReadMapStart() - if yyl3994 == 0 { + yyct4132 := r.ContainerType() + if yyct4132 == codecSelferValueTypeMap1234 { + yyl4132 := r.ReadMapStart() + if yyl4132 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl3994, d) + x.codecDecodeSelfFromMap(yyl4132, d) } - } else if yyct3994 == codecSelferValueTypeArray1234 { - yyl3994 := r.ReadArrayStart() - if yyl3994 == 0 { + } else if yyct4132 == codecSelferValueTypeArray1234 { + yyl4132 := r.ReadArrayStart() + if yyl4132 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl3994, d) + x.codecDecodeSelfFromArray(yyl4132, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50086,12 +51782,12 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys3995Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys3995Slc - var yyhl3995 bool = l >= 0 - for yyj3995 := 0; ; yyj3995++ { - if yyhl3995 { - if yyj3995 >= l { + var yys4133Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4133Slc + var yyhl4133 bool = l >= 0 + for yyj4133 := 0; ; yyj4133++ { + if yyhl4133 { + if yyj4133 >= l { break } } else { @@ -50100,10 +51796,10 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys3995Slc = r.DecodeBytes(yys3995Slc, true, true) - yys3995 := string(yys3995Slc) + yys4133Slc = r.DecodeBytes(yys4133Slc, true, true) + yys4133 := string(yys4133Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys3995 { + switch yys4133 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -50120,31 +51816,31 @@ func (x *ResourceQuotaList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv3998 := &x.ListMeta - yym3999 := z.DecBinary() - _ = yym3999 + yyv4136 := &x.ListMeta + yym4137 := z.DecBinary() + _ = yym4137 if false { - } else if z.HasExtensions() && z.DecExt(yyv3998) { + } else if z.HasExtensions() && z.DecExt(yyv4136) { } else { - z.DecFallback(yyv3998, false) + z.DecFallback(yyv4136, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4000 := &x.Items - yym4001 := z.DecBinary() - _ = yym4001 + yyv4138 := &x.Items + yym4139 := z.DecBinary() + _ = yym4139 if false { } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv4000), d) + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4138), d) } } default: - z.DecStructFieldNotFound(-1, yys3995) - } // end switch yys3995 - } // end for yyj3995 + z.DecStructFieldNotFound(-1, yys4133) + } // end switch yys4133 + } // end for yyj4133 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50152,16 +51848,16 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4002 int - var yyb4002 bool - var yyhl4002 bool = l >= 0 - yyj4002++ - if yyhl4002 { - yyb4002 = yyj4002 > l + var yyj4140 int + var yyb4140 bool + var yyhl4140 bool = l >= 0 + yyj4140++ + if yyhl4140 { + yyb4140 = yyj4140 > l } else { - yyb4002 = r.CheckBreak() + yyb4140 = r.CheckBreak() } - if yyb4002 { + if yyb4140 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50171,13 +51867,13 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj4002++ - if yyhl4002 { - yyb4002 = yyj4002 > l + yyj4140++ + if yyhl4140 { + yyb4140 = yyj4140 > l } else { - yyb4002 = r.CheckBreak() + yyb4140 = r.CheckBreak() } - if yyb4002 { + if yyb4140 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50187,13 +51883,13 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj4002++ - if yyhl4002 { - yyb4002 = yyj4002 > l + yyj4140++ + if yyhl4140 { + yyb4140 = yyj4140 > l } else { - yyb4002 = r.CheckBreak() + yyb4140 = r.CheckBreak() } - if yyb4002 { + if yyb4140 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50201,22 +51897,22 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4005 := &x.ListMeta - yym4006 := z.DecBinary() - _ = yym4006 + yyv4143 := &x.ListMeta + yym4144 := z.DecBinary() + _ = yym4144 if false { - } else if z.HasExtensions() && z.DecExt(yyv4005) { + } else if z.HasExtensions() && z.DecExt(yyv4143) { } else { - z.DecFallback(yyv4005, false) + z.DecFallback(yyv4143, false) } } - yyj4002++ - if yyhl4002 { - yyb4002 = yyj4002 > l + yyj4140++ + if yyhl4140 { + yyb4140 = yyj4140 > l } else { - yyb4002 = r.CheckBreak() + yyb4140 = r.CheckBreak() } - if yyb4002 { + if yyb4140 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50224,26 +51920,26 @@ func (x *ResourceQuotaList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4007 := &x.Items - yym4008 := z.DecBinary() - _ = yym4008 + yyv4145 := &x.Items + yym4146 := z.DecBinary() + _ = yym4146 if false { } else { - h.decSliceResourceQuota((*[]ResourceQuota)(yyv4007), d) + h.decSliceResourceQuota((*[]ResourceQuota)(yyv4145), d) } } for { - yyj4002++ - if yyhl4002 { - yyb4002 = yyj4002 > l + yyj4140++ + if yyhl4140 { + yyb4140 = yyj4140 > l } else { - yyb4002 = r.CheckBreak() + yyb4140 = r.CheckBreak() } - if yyb4002 { + if yyb4140 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4002-1, "") + z.DecStructFieldNotFound(yyj4140-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50255,40 +51951,40 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4009 := z.EncBinary() - _ = yym4009 + yym4147 := z.EncBinary() + _ = yym4147 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4010 := !z.EncBinary() - yy2arr4010 := z.EncBasicHandle().StructToArray - var yyq4010 [6]bool - _, _, _ = yysep4010, yyq4010, yy2arr4010 - const yyr4010 bool = false - yyq4010[0] = x.Kind != "" - yyq4010[1] = x.APIVersion != "" - yyq4010[2] = true - yyq4010[3] = len(x.Data) != 0 - yyq4010[4] = len(x.StringData) != 0 - yyq4010[5] = x.Type != "" - var yynn4010 int - if yyr4010 || yy2arr4010 { + yysep4148 := !z.EncBinary() + yy2arr4148 := z.EncBasicHandle().StructToArray + var yyq4148 [6]bool + _, _, _ = yysep4148, yyq4148, yy2arr4148 + const yyr4148 bool = false + yyq4148[0] = x.Kind != "" + yyq4148[1] = x.APIVersion != "" + yyq4148[2] = true + yyq4148[3] = len(x.Data) != 0 + yyq4148[4] = len(x.StringData) != 0 + yyq4148[5] = x.Type != "" + var yynn4148 int + if yyr4148 || yy2arr4148 { r.EncodeArrayStart(6) } else { - yynn4010 = 0 - for _, b := range yyq4010 { + yynn4148 = 0 + for _, b := range yyq4148 { if b { - yynn4010++ + yynn4148++ } } - r.EncodeMapStart(yynn4010) - yynn4010 = 0 + r.EncodeMapStart(yynn4148) + yynn4148 = 0 } - if yyr4010 || yy2arr4010 { + if yyr4148 || yy2arr4148 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4010[0] { - yym4012 := z.EncBinary() - _ = yym4012 + if yyq4148[0] { + yym4150 := z.EncBinary() + _ = yym4150 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -50297,23 +51993,23 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4010[0] { + if yyq4148[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4013 := z.EncBinary() - _ = yym4013 + yym4151 := z.EncBinary() + _ = yym4151 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4010 || yy2arr4010 { + if yyr4148 || yy2arr4148 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4010[1] { - yym4015 := z.EncBinary() - _ = yym4015 + if yyq4148[1] { + yym4153 := z.EncBinary() + _ = yym4153 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -50322,43 +52018,43 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4010[1] { + if yyq4148[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4016 := z.EncBinary() - _ = yym4016 + yym4154 := z.EncBinary() + _ = yym4154 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4010 || yy2arr4010 { + if yyr4148 || yy2arr4148 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4010[2] { - yy4018 := &x.ObjectMeta - yy4018.CodecEncodeSelf(e) + if yyq4148[2] { + yy4156 := &x.ObjectMeta + yy4156.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4010[2] { + if yyq4148[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4019 := &x.ObjectMeta - yy4019.CodecEncodeSelf(e) + yy4157 := &x.ObjectMeta + yy4157.CodecEncodeSelf(e) } } - if yyr4010 || yy2arr4010 { + if yyr4148 || yy2arr4148 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4010[3] { + if yyq4148[3] { if x.Data == nil { r.EncodeNil() } else { - yym4021 := z.EncBinary() - _ = yym4021 + yym4159 := z.EncBinary() + _ = yym4159 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) @@ -50368,15 +52064,15 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4010[3] { + if yyq4148[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { - yym4022 := z.EncBinary() - _ = yym4022 + yym4160 := z.EncBinary() + _ = yym4160 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) @@ -50384,14 +52080,14 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4010 || yy2arr4010 { + if yyr4148 || yy2arr4148 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4010[4] { + if yyq4148[4] { if x.StringData == nil { r.EncodeNil() } else { - yym4024 := z.EncBinary() - _ = yym4024 + yym4162 := z.EncBinary() + _ = yym4162 if false { } else { z.F.EncMapStringStringV(x.StringData, false, e) @@ -50401,15 +52097,15 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4010[4] { + if yyq4148[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stringData")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StringData == nil { r.EncodeNil() } else { - yym4025 := z.EncBinary() - _ = yym4025 + yym4163 := z.EncBinary() + _ = yym4163 if false { } else { z.F.EncMapStringStringV(x.StringData, false, e) @@ -50417,22 +52113,22 @@ func (x *Secret) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4010 || yy2arr4010 { + if yyr4148 || yy2arr4148 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4010[5] { + if yyq4148[5] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4010[5] { + if yyq4148[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } - if yyr4010 || yy2arr4010 { + if yyr4148 || yy2arr4148 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50445,25 +52141,25 @@ func (x *Secret) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4027 := z.DecBinary() - _ = yym4027 + yym4165 := z.DecBinary() + _ = yym4165 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4028 := r.ContainerType() - if yyct4028 == codecSelferValueTypeMap1234 { - yyl4028 := r.ReadMapStart() - if yyl4028 == 0 { + yyct4166 := r.ContainerType() + if yyct4166 == codecSelferValueTypeMap1234 { + yyl4166 := r.ReadMapStart() + if yyl4166 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4028, d) + x.codecDecodeSelfFromMap(yyl4166, d) } - } else if yyct4028 == codecSelferValueTypeArray1234 { - yyl4028 := r.ReadArrayStart() - if yyl4028 == 0 { + } else if yyct4166 == codecSelferValueTypeArray1234 { + yyl4166 := r.ReadArrayStart() + if yyl4166 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4028, d) + x.codecDecodeSelfFromArray(yyl4166, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50475,12 +52171,12 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4029Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4029Slc - var yyhl4029 bool = l >= 0 - for yyj4029 := 0; ; yyj4029++ { - if yyhl4029 { - if yyj4029 >= l { + var yys4167Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4167Slc + var yyhl4167 bool = l >= 0 + for yyj4167 := 0; ; yyj4167++ { + if yyhl4167 { + if yyj4167 >= l { break } } else { @@ -50489,10 +52185,10 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4029Slc = r.DecodeBytes(yys4029Slc, true, true) - yys4029 := string(yys4029Slc) + yys4167Slc = r.DecodeBytes(yys4167Slc, true, true) + yys4167 := string(yys4167Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4029 { + switch yys4167 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -50509,31 +52205,31 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4032 := &x.ObjectMeta - yyv4032.CodecDecodeSelf(d) + yyv4170 := &x.ObjectMeta + yyv4170.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4033 := &x.Data - yym4034 := z.DecBinary() - _ = yym4034 + yyv4171 := &x.Data + yym4172 := z.DecBinary() + _ = yym4172 if false { } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv4033), d) + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4171), d) } } case "stringData": if r.TryDecodeAsNil() { x.StringData = nil } else { - yyv4035 := &x.StringData - yym4036 := z.DecBinary() - _ = yym4036 + yyv4173 := &x.StringData + yym4174 := z.DecBinary() + _ = yym4174 if false { } else { - z.F.DecMapStringStringX(yyv4035, false, d) + z.F.DecMapStringStringX(yyv4173, false, d) } } case "type": @@ -50543,9 +52239,9 @@ func (x *Secret) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Type = SecretType(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4029) - } // end switch yys4029 - } // end for yyj4029 + z.DecStructFieldNotFound(-1, yys4167) + } // end switch yys4167 + } // end for yyj4167 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50553,16 +52249,16 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4038 int - var yyb4038 bool - var yyhl4038 bool = l >= 0 - yyj4038++ - if yyhl4038 { - yyb4038 = yyj4038 > l + var yyj4176 int + var yyb4176 bool + var yyhl4176 bool = l >= 0 + yyj4176++ + if yyhl4176 { + yyb4176 = yyj4176 > l } else { - yyb4038 = r.CheckBreak() + yyb4176 = r.CheckBreak() } - if yyb4038 { + if yyb4176 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50572,13 +52268,13 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4038++ - if yyhl4038 { - yyb4038 = yyj4038 > l + yyj4176++ + if yyhl4176 { + yyb4176 = yyj4176 > l } else { - yyb4038 = r.CheckBreak() + yyb4176 = r.CheckBreak() } - if yyb4038 { + if yyb4176 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50588,13 +52284,13 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4038++ - if yyhl4038 { - yyb4038 = yyj4038 > l + yyj4176++ + if yyhl4176 { + yyb4176 = yyj4176 > l } else { - yyb4038 = r.CheckBreak() + yyb4176 = r.CheckBreak() } - if yyb4038 { + if yyb4176 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50602,16 +52298,16 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4041 := &x.ObjectMeta - yyv4041.CodecDecodeSelf(d) + yyv4179 := &x.ObjectMeta + yyv4179.CodecDecodeSelf(d) } - yyj4038++ - if yyhl4038 { - yyb4038 = yyj4038 > l + yyj4176++ + if yyhl4176 { + yyb4176 = yyj4176 > l } else { - yyb4038 = r.CheckBreak() + yyb4176 = r.CheckBreak() } - if yyb4038 { + if yyb4176 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50619,21 +52315,21 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4042 := &x.Data - yym4043 := z.DecBinary() - _ = yym4043 + yyv4180 := &x.Data + yym4181 := z.DecBinary() + _ = yym4181 if false { } else { - h.decMapstringSliceuint8((*map[string][]uint8)(yyv4042), d) + h.decMapstringSliceuint8((*map[string][]uint8)(yyv4180), d) } } - yyj4038++ - if yyhl4038 { - yyb4038 = yyj4038 > l + yyj4176++ + if yyhl4176 { + yyb4176 = yyj4176 > l } else { - yyb4038 = r.CheckBreak() + yyb4176 = r.CheckBreak() } - if yyb4038 { + if yyb4176 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50641,21 +52337,21 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.StringData = nil } else { - yyv4044 := &x.StringData - yym4045 := z.DecBinary() - _ = yym4045 + yyv4182 := &x.StringData + yym4183 := z.DecBinary() + _ = yym4183 if false { } else { - z.F.DecMapStringStringX(yyv4044, false, d) + z.F.DecMapStringStringX(yyv4182, false, d) } } - yyj4038++ - if yyhl4038 { - yyb4038 = yyj4038 > l + yyj4176++ + if yyhl4176 { + yyb4176 = yyj4176 > l } else { - yyb4038 = r.CheckBreak() + yyb4176 = r.CheckBreak() } - if yyb4038 { + if yyb4176 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50666,17 +52362,17 @@ func (x *Secret) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Type = SecretType(r.DecodeString()) } for { - yyj4038++ - if yyhl4038 { - yyb4038 = yyj4038 > l + yyj4176++ + if yyhl4176 { + yyb4176 = yyj4176 > l } else { - yyb4038 = r.CheckBreak() + yyb4176 = r.CheckBreak() } - if yyb4038 { + if yyb4176 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4038-1, "") + z.DecStructFieldNotFound(yyj4176-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -50685,8 +52381,8 @@ func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4047 := z.EncBinary() - _ = yym4047 + yym4185 := z.EncBinary() + _ = yym4185 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -50698,8 +52394,8 @@ func (x *SecretType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4048 := z.DecBinary() - _ = yym4048 + yym4186 := z.DecBinary() + _ = yym4186 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -50714,37 +52410,37 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4049 := z.EncBinary() - _ = yym4049 + yym4187 := z.EncBinary() + _ = yym4187 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4050 := !z.EncBinary() - yy2arr4050 := z.EncBasicHandle().StructToArray - var yyq4050 [4]bool - _, _, _ = yysep4050, yyq4050, yy2arr4050 - const yyr4050 bool = false - yyq4050[0] = x.Kind != "" - yyq4050[1] = x.APIVersion != "" - yyq4050[2] = true - var yynn4050 int - if yyr4050 || yy2arr4050 { + yysep4188 := !z.EncBinary() + yy2arr4188 := z.EncBasicHandle().StructToArray + var yyq4188 [4]bool + _, _, _ = yysep4188, yyq4188, yy2arr4188 + const yyr4188 bool = false + yyq4188[0] = x.Kind != "" + yyq4188[1] = x.APIVersion != "" + yyq4188[2] = true + var yynn4188 int + if yyr4188 || yy2arr4188 { r.EncodeArrayStart(4) } else { - yynn4050 = 1 - for _, b := range yyq4050 { + yynn4188 = 1 + for _, b := range yyq4188 { if b { - yynn4050++ + yynn4188++ } } - r.EncodeMapStart(yynn4050) - yynn4050 = 0 + r.EncodeMapStart(yynn4188) + yynn4188 = 0 } - if yyr4050 || yy2arr4050 { + if yyr4188 || yy2arr4188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4050[0] { - yym4052 := z.EncBinary() - _ = yym4052 + if yyq4188[0] { + yym4190 := z.EncBinary() + _ = yym4190 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -50753,23 +52449,23 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4050[0] { + if yyq4188[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4053 := z.EncBinary() - _ = yym4053 + yym4191 := z.EncBinary() + _ = yym4191 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4050 || yy2arr4050 { + if yyr4188 || yy2arr4188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4050[1] { - yym4055 := z.EncBinary() - _ = yym4055 + if yyq4188[1] { + yym4193 := z.EncBinary() + _ = yym4193 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -50778,54 +52474,54 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4050[1] { + if yyq4188[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4056 := z.EncBinary() - _ = yym4056 + yym4194 := z.EncBinary() + _ = yym4194 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4050 || yy2arr4050 { + if yyr4188 || yy2arr4188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4050[2] { - yy4058 := &x.ListMeta - yym4059 := z.EncBinary() - _ = yym4059 + if yyq4188[2] { + yy4196 := &x.ListMeta + yym4197 := z.EncBinary() + _ = yym4197 if false { - } else if z.HasExtensions() && z.EncExt(yy4058) { + } else if z.HasExtensions() && z.EncExt(yy4196) { } else { - z.EncFallback(yy4058) + z.EncFallback(yy4196) } } else { r.EncodeNil() } } else { - if yyq4050[2] { + if yyq4188[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4060 := &x.ListMeta - yym4061 := z.EncBinary() - _ = yym4061 + yy4198 := &x.ListMeta + yym4199 := z.EncBinary() + _ = yym4199 if false { - } else if z.HasExtensions() && z.EncExt(yy4060) { + } else if z.HasExtensions() && z.EncExt(yy4198) { } else { - z.EncFallback(yy4060) + z.EncFallback(yy4198) } } } - if yyr4050 || yy2arr4050 { + if yyr4188 || yy2arr4188 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4063 := z.EncBinary() - _ = yym4063 + yym4201 := z.EncBinary() + _ = yym4201 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) @@ -50838,15 +52534,15 @@ func (x *SecretList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4064 := z.EncBinary() - _ = yym4064 + yym4202 := z.EncBinary() + _ = yym4202 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) } } } - if yyr4050 || yy2arr4050 { + if yyr4188 || yy2arr4188 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -50859,25 +52555,25 @@ func (x *SecretList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4065 := z.DecBinary() - _ = yym4065 + yym4203 := z.DecBinary() + _ = yym4203 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4066 := r.ContainerType() - if yyct4066 == codecSelferValueTypeMap1234 { - yyl4066 := r.ReadMapStart() - if yyl4066 == 0 { + yyct4204 := r.ContainerType() + if yyct4204 == codecSelferValueTypeMap1234 { + yyl4204 := r.ReadMapStart() + if yyl4204 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4066, d) + x.codecDecodeSelfFromMap(yyl4204, d) } - } else if yyct4066 == codecSelferValueTypeArray1234 { - yyl4066 := r.ReadArrayStart() - if yyl4066 == 0 { + } else if yyct4204 == codecSelferValueTypeArray1234 { + yyl4204 := r.ReadArrayStart() + if yyl4204 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4066, d) + x.codecDecodeSelfFromArray(yyl4204, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -50889,12 +52585,12 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4067Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4067Slc - var yyhl4067 bool = l >= 0 - for yyj4067 := 0; ; yyj4067++ { - if yyhl4067 { - if yyj4067 >= l { + var yys4205Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4205Slc + var yyhl4205 bool = l >= 0 + for yyj4205 := 0; ; yyj4205++ { + if yyhl4205 { + if yyj4205 >= l { break } } else { @@ -50903,10 +52599,10 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4067Slc = r.DecodeBytes(yys4067Slc, true, true) - yys4067 := string(yys4067Slc) + yys4205Slc = r.DecodeBytes(yys4205Slc, true, true) + yys4205 := string(yys4205Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4067 { + switch yys4205 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -50923,31 +52619,31 @@ func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4070 := &x.ListMeta - yym4071 := z.DecBinary() - _ = yym4071 + yyv4208 := &x.ListMeta + yym4209 := z.DecBinary() + _ = yym4209 if false { - } else if z.HasExtensions() && z.DecExt(yyv4070) { + } else if z.HasExtensions() && z.DecExt(yyv4208) { } else { - z.DecFallback(yyv4070, false) + z.DecFallback(yyv4208, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4072 := &x.Items - yym4073 := z.DecBinary() - _ = yym4073 + yyv4210 := &x.Items + yym4211 := z.DecBinary() + _ = yym4211 if false { } else { - h.decSliceSecret((*[]Secret)(yyv4072), d) + h.decSliceSecret((*[]Secret)(yyv4210), d) } } default: - z.DecStructFieldNotFound(-1, yys4067) - } // end switch yys4067 - } // end for yyj4067 + z.DecStructFieldNotFound(-1, yys4205) + } // end switch yys4205 + } // end for yyj4205 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -50955,16 +52651,16 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4074 int - var yyb4074 bool - var yyhl4074 bool = l >= 0 - yyj4074++ - if yyhl4074 { - yyb4074 = yyj4074 > l + var yyj4212 int + var yyb4212 bool + var yyhl4212 bool = l >= 0 + yyj4212++ + if yyhl4212 { + yyb4212 = yyj4212 > l } else { - yyb4074 = r.CheckBreak() + yyb4212 = r.CheckBreak() } - if yyb4074 { + if yyb4212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50974,13 +52670,13 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4074++ - if yyhl4074 { - yyb4074 = yyj4074 > l + yyj4212++ + if yyhl4212 { + yyb4212 = yyj4212 > l } else { - yyb4074 = r.CheckBreak() + yyb4212 = r.CheckBreak() } - if yyb4074 { + if yyb4212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -50990,13 +52686,13 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4074++ - if yyhl4074 { - yyb4074 = yyj4074 > l + yyj4212++ + if yyhl4212 { + yyb4212 = yyj4212 > l } else { - yyb4074 = r.CheckBreak() + yyb4212 = r.CheckBreak() } - if yyb4074 { + if yyb4212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51004,22 +52700,22 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4077 := &x.ListMeta - yym4078 := z.DecBinary() - _ = yym4078 + yyv4215 := &x.ListMeta + yym4216 := z.DecBinary() + _ = yym4216 if false { - } else if z.HasExtensions() && z.DecExt(yyv4077) { + } else if z.HasExtensions() && z.DecExt(yyv4215) { } else { - z.DecFallback(yyv4077, false) + z.DecFallback(yyv4215, false) } } - yyj4074++ - if yyhl4074 { - yyb4074 = yyj4074 > l + yyj4212++ + if yyhl4212 { + yyb4212 = yyj4212 > l } else { - yyb4074 = r.CheckBreak() + yyb4212 = r.CheckBreak() } - if yyb4074 { + if yyb4212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51027,26 +52723,26 @@ func (x *SecretList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4079 := &x.Items - yym4080 := z.DecBinary() - _ = yym4080 + yyv4217 := &x.Items + yym4218 := z.DecBinary() + _ = yym4218 if false { } else { - h.decSliceSecret((*[]Secret)(yyv4079), d) + h.decSliceSecret((*[]Secret)(yyv4217), d) } } for { - yyj4074++ - if yyhl4074 { - yyb4074 = yyj4074 > l + yyj4212++ + if yyhl4212 { + yyb4212 = yyj4212 > l } else { - yyb4074 = r.CheckBreak() + yyb4212 = r.CheckBreak() } - if yyb4074 { + if yyb4212 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4074-1, "") + z.DecStructFieldNotFound(yyj4212-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51058,38 +52754,38 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4081 := z.EncBinary() - _ = yym4081 + yym4219 := z.EncBinary() + _ = yym4219 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4082 := !z.EncBinary() - yy2arr4082 := z.EncBasicHandle().StructToArray - var yyq4082 [4]bool - _, _, _ = yysep4082, yyq4082, yy2arr4082 - const yyr4082 bool = false - yyq4082[0] = x.Kind != "" - yyq4082[1] = x.APIVersion != "" - yyq4082[2] = true - yyq4082[3] = len(x.Data) != 0 - var yynn4082 int - if yyr4082 || yy2arr4082 { + yysep4220 := !z.EncBinary() + yy2arr4220 := z.EncBasicHandle().StructToArray + var yyq4220 [4]bool + _, _, _ = yysep4220, yyq4220, yy2arr4220 + const yyr4220 bool = false + yyq4220[0] = x.Kind != "" + yyq4220[1] = x.APIVersion != "" + yyq4220[2] = true + yyq4220[3] = len(x.Data) != 0 + var yynn4220 int + if yyr4220 || yy2arr4220 { r.EncodeArrayStart(4) } else { - yynn4082 = 0 - for _, b := range yyq4082 { + yynn4220 = 0 + for _, b := range yyq4220 { if b { - yynn4082++ + yynn4220++ } } - r.EncodeMapStart(yynn4082) - yynn4082 = 0 + r.EncodeMapStart(yynn4220) + yynn4220 = 0 } - if yyr4082 || yy2arr4082 { + if yyr4220 || yy2arr4220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4082[0] { - yym4084 := z.EncBinary() - _ = yym4084 + if yyq4220[0] { + yym4222 := z.EncBinary() + _ = yym4222 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -51098,23 +52794,23 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4082[0] { + if yyq4220[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4085 := z.EncBinary() - _ = yym4085 + yym4223 := z.EncBinary() + _ = yym4223 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4082 || yy2arr4082 { + if yyr4220 || yy2arr4220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4082[1] { - yym4087 := z.EncBinary() - _ = yym4087 + if yyq4220[1] { + yym4225 := z.EncBinary() + _ = yym4225 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -51123,43 +52819,43 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4082[1] { + if yyq4220[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4088 := z.EncBinary() - _ = yym4088 + yym4226 := z.EncBinary() + _ = yym4226 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4082 || yy2arr4082 { + if yyr4220 || yy2arr4220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4082[2] { - yy4090 := &x.ObjectMeta - yy4090.CodecEncodeSelf(e) + if yyq4220[2] { + yy4228 := &x.ObjectMeta + yy4228.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4082[2] { + if yyq4220[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4091 := &x.ObjectMeta - yy4091.CodecEncodeSelf(e) + yy4229 := &x.ObjectMeta + yy4229.CodecEncodeSelf(e) } } - if yyr4082 || yy2arr4082 { + if yyr4220 || yy2arr4220 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4082[3] { + if yyq4220[3] { if x.Data == nil { r.EncodeNil() } else { - yym4093 := z.EncBinary() - _ = yym4093 + yym4231 := z.EncBinary() + _ = yym4231 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) @@ -51169,15 +52865,15 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq4082[3] { + if yyq4220[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { - yym4094 := z.EncBinary() - _ = yym4094 + yym4232 := z.EncBinary() + _ = yym4232 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) @@ -51185,7 +52881,7 @@ func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr4082 || yy2arr4082 { + if yyr4220 || yy2arr4220 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51198,25 +52894,25 @@ func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4095 := z.DecBinary() - _ = yym4095 + yym4233 := z.DecBinary() + _ = yym4233 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4096 := r.ContainerType() - if yyct4096 == codecSelferValueTypeMap1234 { - yyl4096 := r.ReadMapStart() - if yyl4096 == 0 { + yyct4234 := r.ContainerType() + if yyct4234 == codecSelferValueTypeMap1234 { + yyl4234 := r.ReadMapStart() + if yyl4234 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4096, d) + x.codecDecodeSelfFromMap(yyl4234, d) } - } else if yyct4096 == codecSelferValueTypeArray1234 { - yyl4096 := r.ReadArrayStart() - if yyl4096 == 0 { + } else if yyct4234 == codecSelferValueTypeArray1234 { + yyl4234 := r.ReadArrayStart() + if yyl4234 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4096, d) + x.codecDecodeSelfFromArray(yyl4234, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51228,12 +52924,12 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4097Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4097Slc - var yyhl4097 bool = l >= 0 - for yyj4097 := 0; ; yyj4097++ { - if yyhl4097 { - if yyj4097 >= l { + var yys4235Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4235Slc + var yyhl4235 bool = l >= 0 + for yyj4235 := 0; ; yyj4235++ { + if yyhl4235 { + if yyj4235 >= l { break } } else { @@ -51242,10 +52938,10 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4097Slc = r.DecodeBytes(yys4097Slc, true, true) - yys4097 := string(yys4097Slc) + yys4235Slc = r.DecodeBytes(yys4235Slc, true, true) + yys4235 := string(yys4235Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4097 { + switch yys4235 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -51262,25 +52958,25 @@ func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4100 := &x.ObjectMeta - yyv4100.CodecDecodeSelf(d) + yyv4238 := &x.ObjectMeta + yyv4238.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4101 := &x.Data - yym4102 := z.DecBinary() - _ = yym4102 + yyv4239 := &x.Data + yym4240 := z.DecBinary() + _ = yym4240 if false { } else { - z.F.DecMapStringStringX(yyv4101, false, d) + z.F.DecMapStringStringX(yyv4239, false, d) } } default: - z.DecStructFieldNotFound(-1, yys4097) - } // end switch yys4097 - } // end for yyj4097 + z.DecStructFieldNotFound(-1, yys4235) + } // end switch yys4235 + } // end for yyj4235 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51288,16 +52984,16 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4103 int - var yyb4103 bool - var yyhl4103 bool = l >= 0 - yyj4103++ - if yyhl4103 { - yyb4103 = yyj4103 > l + var yyj4241 int + var yyb4241 bool + var yyhl4241 bool = l >= 0 + yyj4241++ + if yyhl4241 { + yyb4241 = yyj4241 > l } else { - yyb4103 = r.CheckBreak() + yyb4241 = r.CheckBreak() } - if yyb4103 { + if yyb4241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51307,13 +53003,13 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4103++ - if yyhl4103 { - yyb4103 = yyj4103 > l + yyj4241++ + if yyhl4241 { + yyb4241 = yyj4241 > l } else { - yyb4103 = r.CheckBreak() + yyb4241 = r.CheckBreak() } - if yyb4103 { + if yyb4241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51323,13 +53019,13 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4103++ - if yyhl4103 { - yyb4103 = yyj4103 > l + yyj4241++ + if yyhl4241 { + yyb4241 = yyj4241 > l } else { - yyb4103 = r.CheckBreak() + yyb4241 = r.CheckBreak() } - if yyb4103 { + if yyb4241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51337,16 +53033,16 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4106 := &x.ObjectMeta - yyv4106.CodecDecodeSelf(d) + yyv4244 := &x.ObjectMeta + yyv4244.CodecDecodeSelf(d) } - yyj4103++ - if yyhl4103 { - yyb4103 = yyj4103 > l + yyj4241++ + if yyhl4241 { + yyb4241 = yyj4241 > l } else { - yyb4103 = r.CheckBreak() + yyb4241 = r.CheckBreak() } - if yyb4103 { + if yyb4241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51354,26 +53050,26 @@ func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4107 := &x.Data - yym4108 := z.DecBinary() - _ = yym4108 + yyv4245 := &x.Data + yym4246 := z.DecBinary() + _ = yym4246 if false { } else { - z.F.DecMapStringStringX(yyv4107, false, d) + z.F.DecMapStringStringX(yyv4245, false, d) } } for { - yyj4103++ - if yyhl4103 { - yyb4103 = yyj4103 > l + yyj4241++ + if yyhl4241 { + yyb4241 = yyj4241 > l } else { - yyb4103 = r.CheckBreak() + yyb4241 = r.CheckBreak() } - if yyb4103 { + if yyb4241 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4103-1, "") + z.DecStructFieldNotFound(yyj4241-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51385,37 +53081,37 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4109 := z.EncBinary() - _ = yym4109 + yym4247 := z.EncBinary() + _ = yym4247 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4110 := !z.EncBinary() - yy2arr4110 := z.EncBasicHandle().StructToArray - var yyq4110 [4]bool - _, _, _ = yysep4110, yyq4110, yy2arr4110 - const yyr4110 bool = false - yyq4110[0] = x.Kind != "" - yyq4110[1] = x.APIVersion != "" - yyq4110[2] = true - var yynn4110 int - if yyr4110 || yy2arr4110 { + yysep4248 := !z.EncBinary() + yy2arr4248 := z.EncBasicHandle().StructToArray + var yyq4248 [4]bool + _, _, _ = yysep4248, yyq4248, yy2arr4248 + const yyr4248 bool = false + yyq4248[0] = x.Kind != "" + yyq4248[1] = x.APIVersion != "" + yyq4248[2] = true + var yynn4248 int + if yyr4248 || yy2arr4248 { r.EncodeArrayStart(4) } else { - yynn4110 = 1 - for _, b := range yyq4110 { + yynn4248 = 1 + for _, b := range yyq4248 { if b { - yynn4110++ + yynn4248++ } } - r.EncodeMapStart(yynn4110) - yynn4110 = 0 + r.EncodeMapStart(yynn4248) + yynn4248 = 0 } - if yyr4110 || yy2arr4110 { + if yyr4248 || yy2arr4248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4110[0] { - yym4112 := z.EncBinary() - _ = yym4112 + if yyq4248[0] { + yym4250 := z.EncBinary() + _ = yym4250 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -51424,23 +53120,23 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4110[0] { + if yyq4248[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4113 := z.EncBinary() - _ = yym4113 + yym4251 := z.EncBinary() + _ = yym4251 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4110 || yy2arr4110 { + if yyr4248 || yy2arr4248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4110[1] { - yym4115 := z.EncBinary() - _ = yym4115 + if yyq4248[1] { + yym4253 := z.EncBinary() + _ = yym4253 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -51449,54 +53145,54 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4110[1] { + if yyq4248[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4116 := z.EncBinary() - _ = yym4116 + yym4254 := z.EncBinary() + _ = yym4254 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4110 || yy2arr4110 { + if yyr4248 || yy2arr4248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4110[2] { - yy4118 := &x.ListMeta - yym4119 := z.EncBinary() - _ = yym4119 + if yyq4248[2] { + yy4256 := &x.ListMeta + yym4257 := z.EncBinary() + _ = yym4257 if false { - } else if z.HasExtensions() && z.EncExt(yy4118) { + } else if z.HasExtensions() && z.EncExt(yy4256) { } else { - z.EncFallback(yy4118) + z.EncFallback(yy4256) } } else { r.EncodeNil() } } else { - if yyq4110[2] { + if yyq4248[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4120 := &x.ListMeta - yym4121 := z.EncBinary() - _ = yym4121 + yy4258 := &x.ListMeta + yym4259 := z.EncBinary() + _ = yym4259 if false { - } else if z.HasExtensions() && z.EncExt(yy4120) { + } else if z.HasExtensions() && z.EncExt(yy4258) { } else { - z.EncFallback(yy4120) + z.EncFallback(yy4258) } } } - if yyr4110 || yy2arr4110 { + if yyr4248 || yy2arr4248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym4123 := z.EncBinary() - _ = yym4123 + yym4261 := z.EncBinary() + _ = yym4261 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) @@ -51509,15 +53205,15 @@ func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym4124 := z.EncBinary() - _ = yym4124 + yym4262 := z.EncBinary() + _ = yym4262 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } - if yyr4110 || yy2arr4110 { + if yyr4248 || yy2arr4248 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51530,25 +53226,25 @@ func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4125 := z.DecBinary() - _ = yym4125 + yym4263 := z.DecBinary() + _ = yym4263 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4126 := r.ContainerType() - if yyct4126 == codecSelferValueTypeMap1234 { - yyl4126 := r.ReadMapStart() - if yyl4126 == 0 { + yyct4264 := r.ContainerType() + if yyct4264 == codecSelferValueTypeMap1234 { + yyl4264 := r.ReadMapStart() + if yyl4264 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4126, d) + x.codecDecodeSelfFromMap(yyl4264, d) } - } else if yyct4126 == codecSelferValueTypeArray1234 { - yyl4126 := r.ReadArrayStart() - if yyl4126 == 0 { + } else if yyct4264 == codecSelferValueTypeArray1234 { + yyl4264 := r.ReadArrayStart() + if yyl4264 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4126, d) + x.codecDecodeSelfFromArray(yyl4264, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51560,12 +53256,12 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4127Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4127Slc - var yyhl4127 bool = l >= 0 - for yyj4127 := 0; ; yyj4127++ { - if yyhl4127 { - if yyj4127 >= l { + var yys4265Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4265Slc + var yyhl4265 bool = l >= 0 + for yyj4265 := 0; ; yyj4265++ { + if yyhl4265 { + if yyj4265 >= l { break } } else { @@ -51574,10 +53270,10 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4127Slc = r.DecodeBytes(yys4127Slc, true, true) - yys4127 := string(yys4127Slc) + yys4265Slc = r.DecodeBytes(yys4265Slc, true, true) + yys4265 := string(yys4265Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4127 { + switch yys4265 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -51594,31 +53290,31 @@ func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4130 := &x.ListMeta - yym4131 := z.DecBinary() - _ = yym4131 + yyv4268 := &x.ListMeta + yym4269 := z.DecBinary() + _ = yym4269 if false { - } else if z.HasExtensions() && z.DecExt(yyv4130) { + } else if z.HasExtensions() && z.DecExt(yyv4268) { } else { - z.DecFallback(yyv4130, false) + z.DecFallback(yyv4268, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4132 := &x.Items - yym4133 := z.DecBinary() - _ = yym4133 + yyv4270 := &x.Items + yym4271 := z.DecBinary() + _ = yym4271 if false { } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv4132), d) + h.decSliceConfigMap((*[]ConfigMap)(yyv4270), d) } } default: - z.DecStructFieldNotFound(-1, yys4127) - } // end switch yys4127 - } // end for yyj4127 + z.DecStructFieldNotFound(-1, yys4265) + } // end switch yys4265 + } // end for yyj4265 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51626,16 +53322,16 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4134 int - var yyb4134 bool - var yyhl4134 bool = l >= 0 - yyj4134++ - if yyhl4134 { - yyb4134 = yyj4134 > l + var yyj4272 int + var yyb4272 bool + var yyhl4272 bool = l >= 0 + yyj4272++ + if yyhl4272 { + yyb4272 = yyj4272 > l } else { - yyb4134 = r.CheckBreak() + yyb4272 = r.CheckBreak() } - if yyb4134 { + if yyb4272 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51645,13 +53341,13 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj4134++ - if yyhl4134 { - yyb4134 = yyj4134 > l + yyj4272++ + if yyhl4272 { + yyb4272 = yyj4272 > l } else { - yyb4134 = r.CheckBreak() + yyb4272 = r.CheckBreak() } - if yyb4134 { + if yyb4272 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51661,13 +53357,13 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj4134++ - if yyhl4134 { - yyb4134 = yyj4134 > l + yyj4272++ + if yyhl4272 { + yyb4272 = yyj4272 > l } else { - yyb4134 = r.CheckBreak() + yyb4272 = r.CheckBreak() } - if yyb4134 { + if yyb4272 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51675,22 +53371,22 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { - yyv4137 := &x.ListMeta - yym4138 := z.DecBinary() - _ = yym4138 + yyv4275 := &x.ListMeta + yym4276 := z.DecBinary() + _ = yym4276 if false { - } else if z.HasExtensions() && z.DecExt(yyv4137) { + } else if z.HasExtensions() && z.DecExt(yyv4275) { } else { - z.DecFallback(yyv4137, false) + z.DecFallback(yyv4275, false) } } - yyj4134++ - if yyhl4134 { - yyb4134 = yyj4134 > l + yyj4272++ + if yyhl4272 { + yyb4272 = yyj4272 > l } else { - yyb4134 = r.CheckBreak() + yyb4272 = r.CheckBreak() } - if yyb4134 { + if yyb4272 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51698,26 +53394,26 @@ func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Items = nil } else { - yyv4139 := &x.Items - yym4140 := z.DecBinary() - _ = yym4140 + yyv4277 := &x.Items + yym4278 := z.DecBinary() + _ = yym4278 if false { } else { - h.decSliceConfigMap((*[]ConfigMap)(yyv4139), d) + h.decSliceConfigMap((*[]ConfigMap)(yyv4277), d) } } for { - yyj4134++ - if yyhl4134 { - yyb4134 = yyj4134 > l + yyj4272++ + if yyhl4272 { + yyb4272 = yyj4272 > l } else { - yyb4134 = r.CheckBreak() + yyb4272 = r.CheckBreak() } - if yyb4134 { + if yyb4272 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4134-1, "") + z.DecStructFieldNotFound(yyj4272-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -51726,8 +53422,8 @@ func (x ComponentConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym4141 := z.EncBinary() - _ = yym4141 + yym4279 := z.EncBinary() + _ = yym4279 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -51739,8 +53435,8 @@ func (x *ComponentConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4142 := z.DecBinary() - _ = yym4142 + yym4280 := z.DecBinary() + _ = yym4280 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -51755,32 +53451,32 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4143 := z.EncBinary() - _ = yym4143 + yym4281 := z.EncBinary() + _ = yym4281 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4144 := !z.EncBinary() - yy2arr4144 := z.EncBasicHandle().StructToArray - var yyq4144 [4]bool - _, _, _ = yysep4144, yyq4144, yy2arr4144 - const yyr4144 bool = false - yyq4144[2] = x.Message != "" - yyq4144[3] = x.Error != "" - var yynn4144 int - if yyr4144 || yy2arr4144 { + yysep4282 := !z.EncBinary() + yy2arr4282 := z.EncBasicHandle().StructToArray + var yyq4282 [4]bool + _, _, _ = yysep4282, yyq4282, yy2arr4282 + const yyr4282 bool = false + yyq4282[2] = x.Message != "" + yyq4282[3] = x.Error != "" + var yynn4282 int + if yyr4282 || yy2arr4282 { r.EncodeArrayStart(4) } else { - yynn4144 = 2 - for _, b := range yyq4144 { + yynn4282 = 2 + for _, b := range yyq4282 { if b { - yynn4144++ + yynn4282++ } } - r.EncodeMapStart(yynn4144) - yynn4144 = 0 + r.EncodeMapStart(yynn4282) + yynn4282 = 0 } - if yyr4144 || yy2arr4144 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { @@ -51789,7 +53485,7 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } - if yyr4144 || yy2arr4144 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { @@ -51798,11 +53494,11 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } - if yyr4144 || yy2arr4144 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4144[2] { - yym4148 := z.EncBinary() - _ = yym4148 + if yyq4282[2] { + yym4286 := z.EncBinary() + _ = yym4286 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) @@ -51811,23 +53507,23 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4144[2] { + if yyq4282[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4149 := z.EncBinary() - _ = yym4149 + yym4287 := z.EncBinary() + _ = yym4287 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } - if yyr4144 || yy2arr4144 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4144[3] { - yym4151 := z.EncBinary() - _ = yym4151 + if yyq4282[3] { + yym4289 := z.EncBinary() + _ = yym4289 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) @@ -51836,19 +53532,19 @@ func (x *ComponentCondition) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4144[3] { + if yyq4282[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4152 := z.EncBinary() - _ = yym4152 + yym4290 := z.EncBinary() + _ = yym4290 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } - if yyr4144 || yy2arr4144 { + if yyr4282 || yy2arr4282 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -51861,25 +53557,25 @@ func (x *ComponentCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4153 := z.DecBinary() - _ = yym4153 + yym4291 := z.DecBinary() + _ = yym4291 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4154 := r.ContainerType() - if yyct4154 == codecSelferValueTypeMap1234 { - yyl4154 := r.ReadMapStart() - if yyl4154 == 0 { + yyct4292 := r.ContainerType() + if yyct4292 == codecSelferValueTypeMap1234 { + yyl4292 := r.ReadMapStart() + if yyl4292 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4154, d) + x.codecDecodeSelfFromMap(yyl4292, d) } - } else if yyct4154 == codecSelferValueTypeArray1234 { - yyl4154 := r.ReadArrayStart() - if yyl4154 == 0 { + } else if yyct4292 == codecSelferValueTypeArray1234 { + yyl4292 := r.ReadArrayStart() + if yyl4292 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4154, d) + x.codecDecodeSelfFromArray(yyl4292, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -51891,12 +53587,12 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4155Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4155Slc - var yyhl4155 bool = l >= 0 - for yyj4155 := 0; ; yyj4155++ { - if yyhl4155 { - if yyj4155 >= l { + var yys4293Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4293Slc + var yyhl4293 bool = l >= 0 + for yyj4293 := 0; ; yyj4293++ { + if yyhl4293 { + if yyj4293 >= l { break } } else { @@ -51905,10 +53601,10 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4155Slc = r.DecodeBytes(yys4155Slc, true, true) - yys4155 := string(yys4155Slc) + yys4293Slc = r.DecodeBytes(yys4293Slc, true, true) + yys4293 := string(yys4293Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4155 { + switch yys4293 { case "type": if r.TryDecodeAsNil() { x.Type = "" @@ -51934,9 +53630,9 @@ func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Error = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4155) - } // end switch yys4155 - } // end for yyj4155 + z.DecStructFieldNotFound(-1, yys4293) + } // end switch yys4293 + } // end for yyj4293 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -51944,16 +53640,16 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4160 int - var yyb4160 bool - var yyhl4160 bool = l >= 0 - yyj4160++ - if yyhl4160 { - yyb4160 = yyj4160 > l + var yyj4298 int + var yyb4298 bool + var yyhl4298 bool = l >= 0 + yyj4298++ + if yyhl4298 { + yyb4298 = yyj4298 > l } else { - yyb4160 = r.CheckBreak() + yyb4298 = r.CheckBreak() } - if yyb4160 { + if yyb4298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51963,13 +53659,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Type = ComponentConditionType(r.DecodeString()) } - yyj4160++ - if yyhl4160 { - yyb4160 = yyj4160 > l + yyj4298++ + if yyhl4298 { + yyb4298 = yyj4298 > l } else { - yyb4160 = r.CheckBreak() + yyb4298 = r.CheckBreak() } - if yyb4160 { + if yyb4298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51979,13 +53675,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Status = ConditionStatus(r.DecodeString()) } - yyj4160++ - if yyhl4160 { - yyb4160 = yyj4160 > l + yyj4298++ + if yyhl4298 { + yyb4298 = yyj4298 > l } else { - yyb4160 = r.CheckBreak() + yyb4298 = r.CheckBreak() } - if yyb4160 { + if yyb4298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -51995,13 +53691,13 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Message = string(r.DecodeString()) } - yyj4160++ - if yyhl4160 { - yyb4160 = yyj4160 > l + yyj4298++ + if yyhl4298 { + yyb4298 = yyj4298 > l } else { - yyb4160 = r.CheckBreak() + yyb4298 = r.CheckBreak() } - if yyb4160 { + if yyb4298 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -52012,1701 +53708,22 @@ func (x *ComponentCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.Error = string(r.DecodeString()) } for { - yyj4160++ - if yyhl4160 { - yyb4160 = yyj4160 > l + yyj4298++ + if yyhl4298 { + yyb4298 = yyj4298 > l } else { - yyb4160 = r.CheckBreak() + yyb4298 = r.CheckBreak() } - if yyb4160 { + if yyb4298 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4160-1, "") + z.DecStructFieldNotFound(yyj4298-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4165 := z.EncBinary() - _ = yym4165 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4166 := !z.EncBinary() - yy2arr4166 := z.EncBasicHandle().StructToArray - var yyq4166 [4]bool - _, _, _ = yysep4166, yyq4166, yy2arr4166 - const yyr4166 bool = false - yyq4166[0] = x.Kind != "" - yyq4166[1] = x.APIVersion != "" - yyq4166[2] = true - yyq4166[3] = len(x.Conditions) != 0 - var yynn4166 int - if yyr4166 || yy2arr4166 { - r.EncodeArrayStart(4) - } else { - yynn4166 = 0 - for _, b := range yyq4166 { - if b { - yynn4166++ - } - } - r.EncodeMapStart(yynn4166) - yynn4166 = 0 - } - if yyr4166 || yy2arr4166 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4166[0] { - yym4168 := z.EncBinary() - _ = yym4168 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4166[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4169 := z.EncBinary() - _ = yym4169 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr4166 || yy2arr4166 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4166[1] { - yym4171 := z.EncBinary() - _ = yym4171 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4166[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4172 := z.EncBinary() - _ = yym4172 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr4166 || yy2arr4166 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4166[2] { - yy4174 := &x.ObjectMeta - yy4174.CodecEncodeSelf(e) - } else { - r.EncodeNil() - } - } else { - if yyq4166[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4175 := &x.ObjectMeta - yy4175.CodecEncodeSelf(e) - } - } - if yyr4166 || yy2arr4166 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4166[3] { - if x.Conditions == nil { - r.EncodeNil() - } else { - yym4177 := z.EncBinary() - _ = yym4177 - if false { - } else { - h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq4166[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("conditions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Conditions == nil { - r.EncodeNil() - } else { - yym4178 := z.EncBinary() - _ = yym4178 - if false { - } else { - h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) - } - } - } - } - if yyr4166 || yy2arr4166 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ComponentStatus) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4179 := z.DecBinary() - _ = yym4179 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4180 := r.ContainerType() - if yyct4180 == codecSelferValueTypeMap1234 { - yyl4180 := r.ReadMapStart() - if yyl4180 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4180, d) - } - } else if yyct4180 == codecSelferValueTypeArray1234 { - yyl4180 := r.ReadArrayStart() - if yyl4180 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4180, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4181Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4181Slc - var yyhl4181 bool = l >= 0 - for yyj4181 := 0; ; yyj4181++ { - if yyhl4181 { - if yyj4181 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4181Slc = r.DecodeBytes(yys4181Slc, true, true) - yys4181 := string(yys4181Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4181 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4184 := &x.ObjectMeta - yyv4184.CodecDecodeSelf(d) - } - case "conditions": - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv4185 := &x.Conditions - yym4186 := z.DecBinary() - _ = yym4186 - if false { - } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv4185), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys4181) - } // end switch yys4181 - } // end for yyj4181 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4187 int - var yyb4187 bool - var yyhl4187 bool = l >= 0 - yyj4187++ - if yyhl4187 { - yyb4187 = yyj4187 > l - } else { - yyb4187 = r.CheckBreak() - } - if yyb4187 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4187++ - if yyhl4187 { - yyb4187 = yyj4187 > l - } else { - yyb4187 = r.CheckBreak() - } - if yyb4187 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4187++ - if yyhl4187 { - yyb4187 = yyj4187 > l - } else { - yyb4187 = r.CheckBreak() - } - if yyb4187 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ObjectMeta = ObjectMeta{} - } else { - yyv4190 := &x.ObjectMeta - yyv4190.CodecDecodeSelf(d) - } - yyj4187++ - if yyhl4187 { - yyb4187 = yyj4187 > l - } else { - yyb4187 = r.CheckBreak() - } - if yyb4187 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Conditions = nil - } else { - yyv4191 := &x.Conditions - yym4192 := z.DecBinary() - _ = yym4192 - if false { - } else { - h.decSliceComponentCondition((*[]ComponentCondition)(yyv4191), d) - } - } - for { - yyj4187++ - if yyhl4187 { - yyb4187 = yyj4187 > l - } else { - yyb4187 = r.CheckBreak() - } - if yyb4187 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4187-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4193 := z.EncBinary() - _ = yym4193 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4194 := !z.EncBinary() - yy2arr4194 := z.EncBasicHandle().StructToArray - var yyq4194 [4]bool - _, _, _ = yysep4194, yyq4194, yy2arr4194 - const yyr4194 bool = false - yyq4194[0] = x.Kind != "" - yyq4194[1] = x.APIVersion != "" - yyq4194[2] = true - var yynn4194 int - if yyr4194 || yy2arr4194 { - r.EncodeArrayStart(4) - } else { - yynn4194 = 1 - for _, b := range yyq4194 { - if b { - yynn4194++ - } - } - r.EncodeMapStart(yynn4194) - yynn4194 = 0 - } - if yyr4194 || yy2arr4194 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4194[0] { - yym4196 := z.EncBinary() - _ = yym4196 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4194[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4197 := z.EncBinary() - _ = yym4197 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr4194 || yy2arr4194 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4194[1] { - yym4199 := z.EncBinary() - _ = yym4199 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq4194[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4200 := z.EncBinary() - _ = yym4200 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr4194 || yy2arr4194 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4194[2] { - yy4202 := &x.ListMeta - yym4203 := z.EncBinary() - _ = yym4203 - if false { - } else if z.HasExtensions() && z.EncExt(yy4202) { - } else { - z.EncFallback(yy4202) - } - } else { - r.EncodeNil() - } - } else { - if yyq4194[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("metadata")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4204 := &x.ListMeta - yym4205 := z.EncBinary() - _ = yym4205 - if false { - } else if z.HasExtensions() && z.EncExt(yy4204) { - } else { - z.EncFallback(yy4204) - } - } - } - if yyr4194 || yy2arr4194 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4207 := z.EncBinary() - _ = yym4207 - if false { - } else { - h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) - } - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4208 := z.EncBinary() - _ = yym4208 - if false { - } else { - h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) - } - } - } - if yyr4194 || yy2arr4194 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *ComponentStatusList) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4209 := z.DecBinary() - _ = yym4209 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4210 := r.ContainerType() - if yyct4210 == codecSelferValueTypeMap1234 { - yyl4210 := r.ReadMapStart() - if yyl4210 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4210, d) - } - } else if yyct4210 == codecSelferValueTypeArray1234 { - yyl4210 := r.ReadArrayStart() - if yyl4210 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4210, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4211Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4211Slc - var yyhl4211 bool = l >= 0 - for yyj4211 := 0; ; yyj4211++ { - if yyhl4211 { - if yyj4211 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4211Slc = r.DecodeBytes(yys4211Slc, true, true) - yys4211 := string(yys4211Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4211 { - case "kind": - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - case "apiVersion": - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - case "metadata": - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv4214 := &x.ListMeta - yym4215 := z.DecBinary() - _ = yym4215 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4214) { - } else { - z.DecFallback(yyv4214, false) - } - } - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4216 := &x.Items - yym4217 := z.DecBinary() - _ = yym4217 - if false { - } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv4216), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys4211) - } // end switch yys4211 - } // end for yyj4211 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4218 int - var yyb4218 bool - var yyhl4218 bool = l >= 0 - yyj4218++ - if yyhl4218 { - yyb4218 = yyj4218 > l - } else { - yyb4218 = r.CheckBreak() - } - if yyb4218 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Kind = "" - } else { - x.Kind = string(r.DecodeString()) - } - yyj4218++ - if yyhl4218 { - yyb4218 = yyj4218 > l - } else { - yyb4218 = r.CheckBreak() - } - if yyb4218 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.APIVersion = "" - } else { - x.APIVersion = string(r.DecodeString()) - } - yyj4218++ - if yyhl4218 { - yyb4218 = yyj4218 > l - } else { - yyb4218 = r.CheckBreak() - } - if yyb4218 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.ListMeta = pkg2_unversioned.ListMeta{} - } else { - yyv4221 := &x.ListMeta - yym4222 := z.DecBinary() - _ = yym4222 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4221) { - } else { - z.DecFallback(yyv4221, false) - } - } - yyj4218++ - if yyhl4218 { - yyb4218 = yyj4218 > l - } else { - yyb4218 = r.CheckBreak() - } - if yyb4218 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4223 := &x.Items - yym4224 := z.DecBinary() - _ = yym4224 - if false { - } else { - h.decSliceComponentStatus((*[]ComponentStatus)(yyv4223), d) - } - } - for { - yyj4218++ - if yyhl4218 { - yyb4218 = yyj4218 > l - } else { - yyb4218 = r.CheckBreak() - } - if yyb4218 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4218-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4225 := z.EncBinary() - _ = yym4225 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4226 := !z.EncBinary() - yy2arr4226 := z.EncBasicHandle().StructToArray - var yyq4226 [1]bool - _, _, _ = yysep4226, yyq4226, yy2arr4226 - const yyr4226 bool = false - yyq4226[0] = len(x.Items) != 0 - var yynn4226 int - if yyr4226 || yy2arr4226 { - r.EncodeArrayStart(1) - } else { - yynn4226 = 0 - for _, b := range yyq4226 { - if b { - yynn4226++ - } - } - r.EncodeMapStart(yynn4226) - yynn4226 = 0 - } - if yyr4226 || yy2arr4226 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4226[0] { - if x.Items == nil { - r.EncodeNil() - } else { - yym4228 := z.EncBinary() - _ = yym4228 - if false { - } else { - h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq4226[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("items")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Items == nil { - r.EncodeNil() - } else { - yym4229 := z.EncBinary() - _ = yym4229 - if false { - } else { - h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) - } - } - } - } - if yyr4226 || yy2arr4226 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *DownwardAPIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4230 := z.DecBinary() - _ = yym4230 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4231 := r.ContainerType() - if yyct4231 == codecSelferValueTypeMap1234 { - yyl4231 := r.ReadMapStart() - if yyl4231 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4231, d) - } - } else if yyct4231 == codecSelferValueTypeArray1234 { - yyl4231 := r.ReadArrayStart() - if yyl4231 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4231, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4232Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4232Slc - var yyhl4232 bool = l >= 0 - for yyj4232 := 0; ; yyj4232++ { - if yyhl4232 { - if yyj4232 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4232Slc = r.DecodeBytes(yys4232Slc, true, true) - yys4232 := string(yys4232Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4232 { - case "items": - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4233 := &x.Items - yym4234 := z.DecBinary() - _ = yym4234 - if false { - } else { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4233), d) - } - } - default: - z.DecStructFieldNotFound(-1, yys4232) - } // end switch yys4232 - } // end for yyj4232 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4235 int - var yyb4235 bool - var yyhl4235 bool = l >= 0 - yyj4235++ - if yyhl4235 { - yyb4235 = yyj4235 > l - } else { - yyb4235 = r.CheckBreak() - } - if yyb4235 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Items = nil - } else { - yyv4236 := &x.Items - yym4237 := z.DecBinary() - _ = yym4237 - if false { - } else { - h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4236), d) - } - } - for { - yyj4235++ - if yyhl4235 { - yyb4235 = yyj4235 > l - } else { - yyb4235 = r.CheckBreak() - } - if yyb4235 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4235-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4238 := z.EncBinary() - _ = yym4238 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4239 := !z.EncBinary() - yy2arr4239 := z.EncBasicHandle().StructToArray - var yyq4239 [3]bool - _, _, _ = yysep4239, yyq4239, yy2arr4239 - const yyr4239 bool = false - yyq4239[1] = x.FieldRef != nil - yyq4239[2] = x.ResourceFieldRef != nil - var yynn4239 int - if yyr4239 || yy2arr4239 { - r.EncodeArrayStart(3) - } else { - yynn4239 = 1 - for _, b := range yyq4239 { - if b { - yynn4239++ - } - } - r.EncodeMapStart(yynn4239) - yynn4239 = 0 - } - if yyr4239 || yy2arr4239 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4241 := z.EncBinary() - _ = yym4241 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("path")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4242 := z.EncBinary() - _ = yym4242 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Path)) - } - } - if yyr4239 || yy2arr4239 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4239[1] { - if x.FieldRef == nil { - r.EncodeNil() - } else { - x.FieldRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq4239[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.FieldRef == nil { - r.EncodeNil() - } else { - x.FieldRef.CodecEncodeSelf(e) - } - } - } - if yyr4239 || yy2arr4239 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4239[2] { - if x.ResourceFieldRef == nil { - r.EncodeNil() - } else { - x.ResourceFieldRef.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq4239[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ResourceFieldRef == nil { - r.EncodeNil() - } else { - x.ResourceFieldRef.CodecEncodeSelf(e) - } - } - } - if yyr4239 || yy2arr4239 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *DownwardAPIVolumeFile) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4245 := z.DecBinary() - _ = yym4245 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4246 := r.ContainerType() - if yyct4246 == codecSelferValueTypeMap1234 { - yyl4246 := r.ReadMapStart() - if yyl4246 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4246, d) - } - } else if yyct4246 == codecSelferValueTypeArray1234 { - yyl4246 := r.ReadArrayStart() - if yyl4246 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4246, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4247Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4247Slc - var yyhl4247 bool = l >= 0 - for yyj4247 := 0; ; yyj4247++ { - if yyhl4247 { - if yyj4247 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4247Slc = r.DecodeBytes(yys4247Slc, true, true) - yys4247 := string(yys4247Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4247 { - case "path": - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - case "fieldRef": - if r.TryDecodeAsNil() { - if x.FieldRef != nil { - x.FieldRef = nil - } - } else { - if x.FieldRef == nil { - x.FieldRef = new(ObjectFieldSelector) - } - x.FieldRef.CodecDecodeSelf(d) - } - case "resourceFieldRef": - if r.TryDecodeAsNil() { - if x.ResourceFieldRef != nil { - x.ResourceFieldRef = nil - } - } else { - if x.ResourceFieldRef == nil { - x.ResourceFieldRef = new(ResourceFieldSelector) - } - x.ResourceFieldRef.CodecDecodeSelf(d) - } - default: - z.DecStructFieldNotFound(-1, yys4247) - } // end switch yys4247 - } // end for yyj4247 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4251 int - var yyb4251 bool - var yyhl4251 bool = l >= 0 - yyj4251++ - if yyhl4251 { - yyb4251 = yyj4251 > l - } else { - yyb4251 = r.CheckBreak() - } - if yyb4251 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - x.Path = "" - } else { - x.Path = string(r.DecodeString()) - } - yyj4251++ - if yyhl4251 { - yyb4251 = yyj4251 > l - } else { - yyb4251 = r.CheckBreak() - } - if yyb4251 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.FieldRef != nil { - x.FieldRef = nil - } - } else { - if x.FieldRef == nil { - x.FieldRef = new(ObjectFieldSelector) - } - x.FieldRef.CodecDecodeSelf(d) - } - yyj4251++ - if yyhl4251 { - yyb4251 = yyj4251 > l - } else { - yyb4251 = r.CheckBreak() - } - if yyb4251 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ResourceFieldRef != nil { - x.ResourceFieldRef = nil - } - } else { - if x.ResourceFieldRef == nil { - x.ResourceFieldRef = new(ResourceFieldSelector) - } - x.ResourceFieldRef.CodecDecodeSelf(d) - } - for { - yyj4251++ - if yyhl4251 { - yyb4251 = yyj4251 > l - } else { - yyb4251 = r.CheckBreak() - } - if yyb4251 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4251-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - if x == nil { - r.EncodeNil() - } else { - yym4255 := z.EncBinary() - _ = yym4255 - if false { - } else if z.HasExtensions() && z.EncExt(x) { - } else { - yysep4256 := !z.EncBinary() - yy2arr4256 := z.EncBasicHandle().StructToArray - var yyq4256 [6]bool - _, _, _ = yysep4256, yyq4256, yy2arr4256 - const yyr4256 bool = false - yyq4256[0] = x.Capabilities != nil - yyq4256[1] = x.Privileged != nil - yyq4256[2] = x.SELinuxOptions != nil - yyq4256[3] = x.RunAsUser != nil - yyq4256[4] = x.RunAsNonRoot != nil - yyq4256[5] = x.ReadOnlyRootFilesystem != nil - var yynn4256 int - if yyr4256 || yy2arr4256 { - r.EncodeArrayStart(6) - } else { - yynn4256 = 0 - for _, b := range yyq4256 { - if b { - yynn4256++ - } - } - r.EncodeMapStart(yynn4256) - yynn4256 = 0 - } - if yyr4256 || yy2arr4256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4256[0] { - if x.Capabilities == nil { - r.EncodeNil() - } else { - x.Capabilities.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq4256[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("capabilities")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Capabilities == nil { - r.EncodeNil() - } else { - x.Capabilities.CodecEncodeSelf(e) - } - } - } - if yyr4256 || yy2arr4256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4256[1] { - if x.Privileged == nil { - r.EncodeNil() - } else { - yy4259 := *x.Privileged - yym4260 := z.EncBinary() - _ = yym4260 - if false { - } else { - r.EncodeBool(bool(yy4259)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq4256[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("privileged")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Privileged == nil { - r.EncodeNil() - } else { - yy4261 := *x.Privileged - yym4262 := z.EncBinary() - _ = yym4262 - if false { - } else { - r.EncodeBool(bool(yy4261)) - } - } - } - } - if yyr4256 || yy2arr4256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4256[2] { - if x.SELinuxOptions == nil { - r.EncodeNil() - } else { - x.SELinuxOptions.CodecEncodeSelf(e) - } - } else { - r.EncodeNil() - } - } else { - if yyq4256[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.SELinuxOptions == nil { - r.EncodeNil() - } else { - x.SELinuxOptions.CodecEncodeSelf(e) - } - } - } - if yyr4256 || yy2arr4256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4256[3] { - if x.RunAsUser == nil { - r.EncodeNil() - } else { - yy4265 := *x.RunAsUser - yym4266 := z.EncBinary() - _ = yym4266 - if false { - } else { - r.EncodeInt(int64(yy4265)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq4256[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RunAsUser == nil { - r.EncodeNil() - } else { - yy4267 := *x.RunAsUser - yym4268 := z.EncBinary() - _ = yym4268 - if false { - } else { - r.EncodeInt(int64(yy4267)) - } - } - } - } - if yyr4256 || yy2arr4256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4256[4] { - if x.RunAsNonRoot == nil { - r.EncodeNil() - } else { - yy4270 := *x.RunAsNonRoot - yym4271 := z.EncBinary() - _ = yym4271 - if false { - } else { - r.EncodeBool(bool(yy4270)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq4256[4] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.RunAsNonRoot == nil { - r.EncodeNil() - } else { - yy4272 := *x.RunAsNonRoot - yym4273 := z.EncBinary() - _ = yym4273 - if false { - } else { - r.EncodeBool(bool(yy4272)) - } - } - } - } - if yyr4256 || yy2arr4256 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4256[5] { - if x.ReadOnlyRootFilesystem == nil { - r.EncodeNil() - } else { - yy4275 := *x.ReadOnlyRootFilesystem - yym4276 := z.EncBinary() - _ = yym4276 - if false { - } else { - r.EncodeBool(bool(yy4275)) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq4256[5] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.ReadOnlyRootFilesystem == nil { - r.EncodeNil() - } else { - yy4277 := *x.ReadOnlyRootFilesystem - yym4278 := z.EncBinary() - _ = yym4278 - if false { - } else { - r.EncodeBool(bool(yy4277)) - } - } - } - } - if yyr4256 || yy2arr4256 { - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - z.EncSendContainerState(codecSelfer_containerMapEnd1234) - } - } - } -} - -func (x *SecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yym4279 := z.DecBinary() - _ = yym4279 - if false { - } else if z.HasExtensions() && z.DecExt(x) { - } else { - yyct4280 := r.ContainerType() - if yyct4280 == codecSelferValueTypeMap1234 { - yyl4280 := r.ReadMapStart() - if yyl4280 == 0 { - z.DecSendContainerState(codecSelfer_containerMapEnd1234) - } else { - x.codecDecodeSelfFromMap(yyl4280, d) - } - } else if yyct4280 == codecSelferValueTypeArray1234 { - yyl4280 := r.ReadArrayStart() - if yyl4280 == 0 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - } else { - x.codecDecodeSelfFromArray(yyl4280, d) - } - } else { - panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) - } - } -} - -func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yys4281Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4281Slc - var yyhl4281 bool = l >= 0 - for yyj4281 := 0; ; yyj4281++ { - if yyhl4281 { - if yyj4281 >= l { - break - } - } else { - if r.CheckBreak() { - break - } - } - z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4281Slc = r.DecodeBytes(yys4281Slc, true, true) - yys4281 := string(yys4281Slc) - z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4281 { - case "capabilities": - if r.TryDecodeAsNil() { - if x.Capabilities != nil { - x.Capabilities = nil - } - } else { - if x.Capabilities == nil { - x.Capabilities = new(Capabilities) - } - x.Capabilities.CodecDecodeSelf(d) - } - case "privileged": - if r.TryDecodeAsNil() { - if x.Privileged != nil { - x.Privileged = nil - } - } else { - if x.Privileged == nil { - x.Privileged = new(bool) - } - yym4284 := z.DecBinary() - _ = yym4284 - if false { - } else { - *((*bool)(x.Privileged)) = r.DecodeBool() - } - } - case "seLinuxOptions": - if r.TryDecodeAsNil() { - if x.SELinuxOptions != nil { - x.SELinuxOptions = nil - } - } else { - if x.SELinuxOptions == nil { - x.SELinuxOptions = new(SELinuxOptions) - } - x.SELinuxOptions.CodecDecodeSelf(d) - } - case "runAsUser": - if r.TryDecodeAsNil() { - if x.RunAsUser != nil { - x.RunAsUser = nil - } - } else { - if x.RunAsUser == nil { - x.RunAsUser = new(int64) - } - yym4287 := z.DecBinary() - _ = yym4287 - if false { - } else { - *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) - } - } - case "runAsNonRoot": - if r.TryDecodeAsNil() { - if x.RunAsNonRoot != nil { - x.RunAsNonRoot = nil - } - } else { - if x.RunAsNonRoot == nil { - x.RunAsNonRoot = new(bool) - } - yym4289 := z.DecBinary() - _ = yym4289 - if false { - } else { - *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() - } - } - case "readOnlyRootFilesystem": - if r.TryDecodeAsNil() { - if x.ReadOnlyRootFilesystem != nil { - x.ReadOnlyRootFilesystem = nil - } - } else { - if x.ReadOnlyRootFilesystem == nil { - x.ReadOnlyRootFilesystem = new(bool) - } - yym4291 := z.DecBinary() - _ = yym4291 - if false { - } else { - *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() - } - } - default: - z.DecStructFieldNotFound(-1, yys4281) - } // end switch yys4281 - } // end for yyj4281 - z.DecSendContainerState(codecSelfer_containerMapEnd1234) -} - -func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - var yyj4292 int - var yyb4292 bool - var yyhl4292 bool = l >= 0 - yyj4292++ - if yyhl4292 { - yyb4292 = yyj4292 > l - } else { - yyb4292 = r.CheckBreak() - } - if yyb4292 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Capabilities != nil { - x.Capabilities = nil - } - } else { - if x.Capabilities == nil { - x.Capabilities = new(Capabilities) - } - x.Capabilities.CodecDecodeSelf(d) - } - yyj4292++ - if yyhl4292 { - yyb4292 = yyj4292 > l - } else { - yyb4292 = r.CheckBreak() - } - if yyb4292 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.Privileged != nil { - x.Privileged = nil - } - } else { - if x.Privileged == nil { - x.Privileged = new(bool) - } - yym4295 := z.DecBinary() - _ = yym4295 - if false { - } else { - *((*bool)(x.Privileged)) = r.DecodeBool() - } - } - yyj4292++ - if yyhl4292 { - yyb4292 = yyj4292 > l - } else { - yyb4292 = r.CheckBreak() - } - if yyb4292 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.SELinuxOptions != nil { - x.SELinuxOptions = nil - } - } else { - if x.SELinuxOptions == nil { - x.SELinuxOptions = new(SELinuxOptions) - } - x.SELinuxOptions.CodecDecodeSelf(d) - } - yyj4292++ - if yyhl4292 { - yyb4292 = yyj4292 > l - } else { - yyb4292 = r.CheckBreak() - } - if yyb4292 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.RunAsUser != nil { - x.RunAsUser = nil - } - } else { - if x.RunAsUser == nil { - x.RunAsUser = new(int64) - } - yym4298 := z.DecBinary() - _ = yym4298 - if false { - } else { - *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) - } - } - yyj4292++ - if yyhl4292 { - yyb4292 = yyj4292 > l - } else { - yyb4292 = r.CheckBreak() - } - if yyb4292 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.RunAsNonRoot != nil { - x.RunAsNonRoot = nil - } - } else { - if x.RunAsNonRoot == nil { - x.RunAsNonRoot = new(bool) - } - yym4300 := z.DecBinary() - _ = yym4300 - if false { - } else { - *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() - } - } - yyj4292++ - if yyhl4292 { - yyb4292 = yyj4292 > l - } else { - yyb4292 = r.CheckBreak() - } - if yyb4292 { - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) - return - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - if r.TryDecodeAsNil() { - if x.ReadOnlyRootFilesystem != nil { - x.ReadOnlyRootFilesystem = nil - } - } else { - if x.ReadOnlyRootFilesystem == nil { - x.ReadOnlyRootFilesystem = new(bool) - } - yym4302 := z.DecBinary() - _ = yym4302 - if false { - } else { - *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() - } - } - for { - yyj4292++ - if yyhl4292 { - yyb4292 = yyj4292 > l - } else { - yyb4292 = r.CheckBreak() - } - if yyb4292 { - break - } - z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4292-1, "") - } - z.DecSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -53723,10 +53740,10 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { var yyq4304 [4]bool _, _, _ = yysep4304, yyq4304, yy2arr4304 const yyr4304 bool = false - yyq4304[0] = x.User != "" - yyq4304[1] = x.Role != "" - yyq4304[2] = x.Type != "" - yyq4304[3] = x.Level != "" + yyq4304[0] = x.Kind != "" + yyq4304[1] = x.APIVersion != "" + yyq4304[2] = true + yyq4304[3] = len(x.Conditions) != 0 var yynn4304 int if yyr4304 || yy2arr4304 { r.EncodeArrayStart(4) @@ -53747,7 +53764,7 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym4306 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.User)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") @@ -53755,13 +53772,13 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { } else { if yyq4304[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("user")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4307 := z.EncBinary() _ = yym4307 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.User)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } @@ -53772,7 +53789,7 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym4309 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Role)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") @@ -53780,63 +53797,63 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { } else { if yyq4304[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("role")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4310 := z.EncBinary() _ = yym4310 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Role)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4304 || yy2arr4304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4304[2] { - yym4312 := z.EncBinary() - _ = yym4312 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Type)) - } + yy4312 := &x.ObjectMeta + yy4312.CodecEncodeSelf(e) } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq4304[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("type")) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4313 := z.EncBinary() - _ = yym4313 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Type)) - } + yy4313 := &x.ObjectMeta + yy4313.CodecEncodeSelf(e) } } if yyr4304 || yy2arr4304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4304[3] { - yym4315 := z.EncBinary() - _ = yym4315 - if false { + if x.Conditions == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Level)) + yym4315 := z.EncBinary() + _ = yym4315 + if false { + } else { + h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) + } } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeNil() } } else { if yyq4304[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("level")) + r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4316 := z.EncBinary() - _ = yym4316 - if false { + if x.Conditions == nil { + r.EncodeNil() } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Level)) + yym4316 := z.EncBinary() + _ = yym4316 + if false { + } else { + h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) + } } } } @@ -53849,7 +53866,7 @@ func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } -func (x *SELinuxOptions) CodecDecodeSelf(d *codec1978.Decoder) { +func (x *ComponentStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -53879,7 +53896,7 @@ func (x *SELinuxOptions) CodecDecodeSelf(d *codec1978.Decoder) { } } -func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { +func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -53901,6 +53918,1841 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { yys4319 := string(yys4319Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4319 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv4322 := &x.ObjectMeta + yyv4322.CodecDecodeSelf(d) + } + case "conditions": + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv4323 := &x.Conditions + yym4324 := z.DecBinary() + _ = yym4324 + if false { + } else { + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4323), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4319) + } // end switch yys4319 + } // end for yyj4319 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ComponentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4325 int + var yyb4325 bool + var yyhl4325 bool = l >= 0 + yyj4325++ + if yyhl4325 { + yyb4325 = yyj4325 > l + } else { + yyb4325 = r.CheckBreak() + } + if yyb4325 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4325++ + if yyhl4325 { + yyb4325 = yyj4325 > l + } else { + yyb4325 = r.CheckBreak() + } + if yyb4325 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4325++ + if yyhl4325 { + yyb4325 = yyj4325 > l + } else { + yyb4325 = r.CheckBreak() + } + if yyb4325 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = ObjectMeta{} + } else { + yyv4328 := &x.ObjectMeta + yyv4328.CodecDecodeSelf(d) + } + yyj4325++ + if yyhl4325 { + yyb4325 = yyj4325 > l + } else { + yyb4325 = r.CheckBreak() + } + if yyb4325 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Conditions = nil + } else { + yyv4329 := &x.Conditions + yym4330 := z.DecBinary() + _ = yym4330 + if false { + } else { + h.decSliceComponentCondition((*[]ComponentCondition)(yyv4329), d) + } + } + for { + yyj4325++ + if yyhl4325 { + yyb4325 = yyj4325 > l + } else { + yyb4325 = r.CheckBreak() + } + if yyb4325 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4325-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4331 := z.EncBinary() + _ = yym4331 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4332 := !z.EncBinary() + yy2arr4332 := z.EncBasicHandle().StructToArray + var yyq4332 [4]bool + _, _, _ = yysep4332, yyq4332, yy2arr4332 + const yyr4332 bool = false + yyq4332[0] = x.Kind != "" + yyq4332[1] = x.APIVersion != "" + yyq4332[2] = true + var yynn4332 int + if yyr4332 || yy2arr4332 { + r.EncodeArrayStart(4) + } else { + yynn4332 = 1 + for _, b := range yyq4332 { + if b { + yynn4332++ + } + } + r.EncodeMapStart(yynn4332) + yynn4332 = 0 + } + if yyr4332 || yy2arr4332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4332[0] { + yym4334 := z.EncBinary() + _ = yym4334 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4332[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4335 := z.EncBinary() + _ = yym4335 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr4332 || yy2arr4332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4332[1] { + yym4337 := z.EncBinary() + _ = yym4337 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4332[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4338 := z.EncBinary() + _ = yym4338 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr4332 || yy2arr4332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4332[2] { + yy4340 := &x.ListMeta + yym4341 := z.EncBinary() + _ = yym4341 + if false { + } else if z.HasExtensions() && z.EncExt(yy4340) { + } else { + z.EncFallback(yy4340) + } + } else { + r.EncodeNil() + } + } else { + if yyq4332[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4342 := &x.ListMeta + yym4343 := z.EncBinary() + _ = yym4343 + if false { + } else if z.HasExtensions() && z.EncExt(yy4342) { + } else { + z.EncFallback(yy4342) + } + } + } + if yyr4332 || yy2arr4332 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4345 := z.EncBinary() + _ = yym4345 + if false { + } else { + h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4346 := z.EncBinary() + _ = yym4346 + if false { + } else { + h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) + } + } + } + if yyr4332 || yy2arr4332 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ComponentStatusList) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4347 := z.DecBinary() + _ = yym4347 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4348 := r.ContainerType() + if yyct4348 == codecSelferValueTypeMap1234 { + yyl4348 := r.ReadMapStart() + if yyl4348 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4348, d) + } + } else if yyct4348 == codecSelferValueTypeArray1234 { + yyl4348 := r.ReadArrayStart() + if yyl4348 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4348, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ComponentStatusList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4349Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4349Slc + var yyhl4349 bool = l >= 0 + for yyj4349 := 0; ; yyj4349++ { + if yyhl4349 { + if yyj4349 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4349Slc = r.DecodeBytes(yys4349Slc, true, true) + yys4349 := string(yys4349Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4349 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4352 := &x.ListMeta + yym4353 := z.DecBinary() + _ = yym4353 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4352) { + } else { + z.DecFallback(yyv4352, false) + } + } + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4354 := &x.Items + yym4355 := z.DecBinary() + _ = yym4355 + if false { + } else { + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4354), d) + } + } + default: + z.DecStructFieldNotFound(-1, yys4349) + } // end switch yys4349 + } // end for yyj4349 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ComponentStatusList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4356 int + var yyb4356 bool + var yyhl4356 bool = l >= 0 + yyj4356++ + if yyhl4356 { + yyb4356 = yyj4356 > l + } else { + yyb4356 = r.CheckBreak() + } + if yyb4356 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj4356++ + if yyhl4356 { + yyb4356 = yyj4356 > l + } else { + yyb4356 = r.CheckBreak() + } + if yyb4356 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj4356++ + if yyhl4356 { + yyb4356 = yyj4356 > l + } else { + yyb4356 = r.CheckBreak() + } + if yyb4356 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ListMeta = pkg2_unversioned.ListMeta{} + } else { + yyv4359 := &x.ListMeta + yym4360 := z.DecBinary() + _ = yym4360 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4359) { + } else { + z.DecFallback(yyv4359, false) + } + } + yyj4356++ + if yyhl4356 { + yyb4356 = yyj4356 > l + } else { + yyb4356 = r.CheckBreak() + } + if yyb4356 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4361 := &x.Items + yym4362 := z.DecBinary() + _ = yym4362 + if false { + } else { + h.decSliceComponentStatus((*[]ComponentStatus)(yyv4361), d) + } + } + for { + yyj4356++ + if yyhl4356 { + yyb4356 = yyj4356 > l + } else { + yyb4356 = r.CheckBreak() + } + if yyb4356 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4356-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4363 := z.EncBinary() + _ = yym4363 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4364 := !z.EncBinary() + yy2arr4364 := z.EncBasicHandle().StructToArray + var yyq4364 [2]bool + _, _, _ = yysep4364, yyq4364, yy2arr4364 + const yyr4364 bool = false + yyq4364[0] = len(x.Items) != 0 + yyq4364[1] = x.DefaultMode != nil + var yynn4364 int + if yyr4364 || yy2arr4364 { + r.EncodeArrayStart(2) + } else { + yynn4364 = 0 + for _, b := range yyq4364 { + if b { + yynn4364++ + } + } + r.EncodeMapStart(yynn4364) + yynn4364 = 0 + } + if yyr4364 || yy2arr4364 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4364[0] { + if x.Items == nil { + r.EncodeNil() + } else { + yym4366 := z.EncBinary() + _ = yym4366 + if false { + } else { + h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4364[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("items")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Items == nil { + r.EncodeNil() + } else { + yym4367 := z.EncBinary() + _ = yym4367 + if false { + } else { + h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) + } + } + } + } + if yyr4364 || yy2arr4364 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4364[1] { + if x.DefaultMode == nil { + r.EncodeNil() + } else { + yy4369 := *x.DefaultMode + yym4370 := z.EncBinary() + _ = yym4370 + if false { + } else { + r.EncodeInt(int64(yy4369)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4364[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DefaultMode == nil { + r.EncodeNil() + } else { + yy4371 := *x.DefaultMode + yym4372 := z.EncBinary() + _ = yym4372 + if false { + } else { + r.EncodeInt(int64(yy4371)) + } + } + } + } + if yyr4364 || yy2arr4364 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DownwardAPIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4373 := z.DecBinary() + _ = yym4373 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4374 := r.ContainerType() + if yyct4374 == codecSelferValueTypeMap1234 { + yyl4374 := r.ReadMapStart() + if yyl4374 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4374, d) + } + } else if yyct4374 == codecSelferValueTypeArray1234 { + yyl4374 := r.ReadArrayStart() + if yyl4374 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4374, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4375Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4375Slc + var yyhl4375 bool = l >= 0 + for yyj4375 := 0; ; yyj4375++ { + if yyhl4375 { + if yyj4375 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4375Slc = r.DecodeBytes(yys4375Slc, true, true) + yys4375 := string(yys4375Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4375 { + case "items": + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4376 := &x.Items + yym4377 := z.DecBinary() + _ = yym4377 + if false { + } else { + h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4376), d) + } + } + case "defaultMode": + if r.TryDecodeAsNil() { + if x.DefaultMode != nil { + x.DefaultMode = nil + } + } else { + if x.DefaultMode == nil { + x.DefaultMode = new(int32) + } + yym4379 := z.DecBinary() + _ = yym4379 + if false { + } else { + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) + } + } + default: + z.DecStructFieldNotFound(-1, yys4375) + } // end switch yys4375 + } // end for yyj4375 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4380 int + var yyb4380 bool + var yyhl4380 bool = l >= 0 + yyj4380++ + if yyhl4380 { + yyb4380 = yyj4380 > l + } else { + yyb4380 = r.CheckBreak() + } + if yyb4380 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Items = nil + } else { + yyv4381 := &x.Items + yym4382 := z.DecBinary() + _ = yym4382 + if false { + } else { + h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv4381), d) + } + } + yyj4380++ + if yyhl4380 { + yyb4380 = yyj4380 > l + } else { + yyb4380 = r.CheckBreak() + } + if yyb4380 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DefaultMode != nil { + x.DefaultMode = nil + } + } else { + if x.DefaultMode == nil { + x.DefaultMode = new(int32) + } + yym4384 := z.DecBinary() + _ = yym4384 + if false { + } else { + *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) + } + } + for { + yyj4380++ + if yyhl4380 { + yyb4380 = yyj4380 > l + } else { + yyb4380 = r.CheckBreak() + } + if yyb4380 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4380-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4385 := z.EncBinary() + _ = yym4385 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4386 := !z.EncBinary() + yy2arr4386 := z.EncBasicHandle().StructToArray + var yyq4386 [4]bool + _, _, _ = yysep4386, yyq4386, yy2arr4386 + const yyr4386 bool = false + yyq4386[1] = x.FieldRef != nil + yyq4386[2] = x.ResourceFieldRef != nil + yyq4386[3] = x.Mode != nil + var yynn4386 int + if yyr4386 || yy2arr4386 { + r.EncodeArrayStart(4) + } else { + yynn4386 = 1 + for _, b := range yyq4386 { + if b { + yynn4386++ + } + } + r.EncodeMapStart(yynn4386) + yynn4386 = 0 + } + if yyr4386 || yy2arr4386 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym4388 := z.EncBinary() + _ = yym4388 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("path")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4389 := z.EncBinary() + _ = yym4389 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Path)) + } + } + if yyr4386 || yy2arr4386 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4386[1] { + if x.FieldRef == nil { + r.EncodeNil() + } else { + x.FieldRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4386[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.FieldRef == nil { + r.EncodeNil() + } else { + x.FieldRef.CodecEncodeSelf(e) + } + } + } + if yyr4386 || yy2arr4386 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4386[2] { + if x.ResourceFieldRef == nil { + r.EncodeNil() + } else { + x.ResourceFieldRef.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4386[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ResourceFieldRef == nil { + r.EncodeNil() + } else { + x.ResourceFieldRef.CodecEncodeSelf(e) + } + } + } + if yyr4386 || yy2arr4386 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4386[3] { + if x.Mode == nil { + r.EncodeNil() + } else { + yy4393 := *x.Mode + yym4394 := z.EncBinary() + _ = yym4394 + if false { + } else { + r.EncodeInt(int64(yy4393)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4386[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("mode")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Mode == nil { + r.EncodeNil() + } else { + yy4395 := *x.Mode + yym4396 := z.EncBinary() + _ = yym4396 + if false { + } else { + r.EncodeInt(int64(yy4395)) + } + } + } + } + if yyr4386 || yy2arr4386 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *DownwardAPIVolumeFile) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4397 := z.DecBinary() + _ = yym4397 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4398 := r.ContainerType() + if yyct4398 == codecSelferValueTypeMap1234 { + yyl4398 := r.ReadMapStart() + if yyl4398 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4398, d) + } + } else if yyct4398 == codecSelferValueTypeArray1234 { + yyl4398 := r.ReadArrayStart() + if yyl4398 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4398, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4399Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4399Slc + var yyhl4399 bool = l >= 0 + for yyj4399 := 0; ; yyj4399++ { + if yyhl4399 { + if yyj4399 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4399Slc = r.DecodeBytes(yys4399Slc, true, true) + yys4399 := string(yys4399Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4399 { + case "path": + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + case "fieldRef": + if r.TryDecodeAsNil() { + if x.FieldRef != nil { + x.FieldRef = nil + } + } else { + if x.FieldRef == nil { + x.FieldRef = new(ObjectFieldSelector) + } + x.FieldRef.CodecDecodeSelf(d) + } + case "resourceFieldRef": + if r.TryDecodeAsNil() { + if x.ResourceFieldRef != nil { + x.ResourceFieldRef = nil + } + } else { + if x.ResourceFieldRef == nil { + x.ResourceFieldRef = new(ResourceFieldSelector) + } + x.ResourceFieldRef.CodecDecodeSelf(d) + } + case "mode": + if r.TryDecodeAsNil() { + if x.Mode != nil { + x.Mode = nil + } + } else { + if x.Mode == nil { + x.Mode = new(int32) + } + yym4404 := z.DecBinary() + _ = yym4404 + if false { + } else { + *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) + } + } + default: + z.DecStructFieldNotFound(-1, yys4399) + } // end switch yys4399 + } // end for yyj4399 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4405 int + var yyb4405 bool + var yyhl4405 bool = l >= 0 + yyj4405++ + if yyhl4405 { + yyb4405 = yyj4405 > l + } else { + yyb4405 = r.CheckBreak() + } + if yyb4405 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Path = "" + } else { + x.Path = string(r.DecodeString()) + } + yyj4405++ + if yyhl4405 { + yyb4405 = yyj4405 > l + } else { + yyb4405 = r.CheckBreak() + } + if yyb4405 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.FieldRef != nil { + x.FieldRef = nil + } + } else { + if x.FieldRef == nil { + x.FieldRef = new(ObjectFieldSelector) + } + x.FieldRef.CodecDecodeSelf(d) + } + yyj4405++ + if yyhl4405 { + yyb4405 = yyj4405 > l + } else { + yyb4405 = r.CheckBreak() + } + if yyb4405 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ResourceFieldRef != nil { + x.ResourceFieldRef = nil + } + } else { + if x.ResourceFieldRef == nil { + x.ResourceFieldRef = new(ResourceFieldSelector) + } + x.ResourceFieldRef.CodecDecodeSelf(d) + } + yyj4405++ + if yyhl4405 { + yyb4405 = yyj4405 > l + } else { + yyb4405 = r.CheckBreak() + } + if yyb4405 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Mode != nil { + x.Mode = nil + } + } else { + if x.Mode == nil { + x.Mode = new(int32) + } + yym4410 := z.DecBinary() + _ = yym4410 + if false { + } else { + *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) + } + } + for { + yyj4405++ + if yyhl4405 { + yyb4405 = yyj4405 > l + } else { + yyb4405 = r.CheckBreak() + } + if yyb4405 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4405-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *SecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4411 := z.EncBinary() + _ = yym4411 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4412 := !z.EncBinary() + yy2arr4412 := z.EncBasicHandle().StructToArray + var yyq4412 [6]bool + _, _, _ = yysep4412, yyq4412, yy2arr4412 + const yyr4412 bool = false + yyq4412[0] = x.Capabilities != nil + yyq4412[1] = x.Privileged != nil + yyq4412[2] = x.SELinuxOptions != nil + yyq4412[3] = x.RunAsUser != nil + yyq4412[4] = x.RunAsNonRoot != nil + yyq4412[5] = x.ReadOnlyRootFilesystem != nil + var yynn4412 int + if yyr4412 || yy2arr4412 { + r.EncodeArrayStart(6) + } else { + yynn4412 = 0 + for _, b := range yyq4412 { + if b { + yynn4412++ + } + } + r.EncodeMapStart(yynn4412) + yynn4412 = 0 + } + if yyr4412 || yy2arr4412 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4412[0] { + if x.Capabilities == nil { + r.EncodeNil() + } else { + x.Capabilities.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4412[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("capabilities")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Capabilities == nil { + r.EncodeNil() + } else { + x.Capabilities.CodecEncodeSelf(e) + } + } + } + if yyr4412 || yy2arr4412 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4412[1] { + if x.Privileged == nil { + r.EncodeNil() + } else { + yy4415 := *x.Privileged + yym4416 := z.EncBinary() + _ = yym4416 + if false { + } else { + r.EncodeBool(bool(yy4415)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4412[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("privileged")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Privileged == nil { + r.EncodeNil() + } else { + yy4417 := *x.Privileged + yym4418 := z.EncBinary() + _ = yym4418 + if false { + } else { + r.EncodeBool(bool(yy4417)) + } + } + } + } + if yyr4412 || yy2arr4412 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4412[2] { + if x.SELinuxOptions == nil { + r.EncodeNil() + } else { + x.SELinuxOptions.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq4412[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.SELinuxOptions == nil { + r.EncodeNil() + } else { + x.SELinuxOptions.CodecEncodeSelf(e) + } + } + } + if yyr4412 || yy2arr4412 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4412[3] { + if x.RunAsUser == nil { + r.EncodeNil() + } else { + yy4421 := *x.RunAsUser + yym4422 := z.EncBinary() + _ = yym4422 + if false { + } else { + r.EncodeInt(int64(yy4421)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4412[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RunAsUser == nil { + r.EncodeNil() + } else { + yy4423 := *x.RunAsUser + yym4424 := z.EncBinary() + _ = yym4424 + if false { + } else { + r.EncodeInt(int64(yy4423)) + } + } + } + } + if yyr4412 || yy2arr4412 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4412[4] { + if x.RunAsNonRoot == nil { + r.EncodeNil() + } else { + yy4426 := *x.RunAsNonRoot + yym4427 := z.EncBinary() + _ = yym4427 + if false { + } else { + r.EncodeBool(bool(yy4426)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4412[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.RunAsNonRoot == nil { + r.EncodeNil() + } else { + yy4428 := *x.RunAsNonRoot + yym4429 := z.EncBinary() + _ = yym4429 + if false { + } else { + r.EncodeBool(bool(yy4428)) + } + } + } + } + if yyr4412 || yy2arr4412 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4412[5] { + if x.ReadOnlyRootFilesystem == nil { + r.EncodeNil() + } else { + yy4431 := *x.ReadOnlyRootFilesystem + yym4432 := z.EncBinary() + _ = yym4432 + if false { + } else { + r.EncodeBool(bool(yy4431)) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq4412[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.ReadOnlyRootFilesystem == nil { + r.EncodeNil() + } else { + yy4433 := *x.ReadOnlyRootFilesystem + yym4434 := z.EncBinary() + _ = yym4434 + if false { + } else { + r.EncodeBool(bool(yy4433)) + } + } + } + } + if yyr4412 || yy2arr4412 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *SecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4435 := z.DecBinary() + _ = yym4435 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4436 := r.ContainerType() + if yyct4436 == codecSelferValueTypeMap1234 { + yyl4436 := r.ReadMapStart() + if yyl4436 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4436, d) + } + } else if yyct4436 == codecSelferValueTypeArray1234 { + yyl4436 := r.ReadArrayStart() + if yyl4436 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4436, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *SecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4437Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4437Slc + var yyhl4437 bool = l >= 0 + for yyj4437 := 0; ; yyj4437++ { + if yyhl4437 { + if yyj4437 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4437Slc = r.DecodeBytes(yys4437Slc, true, true) + yys4437 := string(yys4437Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4437 { + case "capabilities": + if r.TryDecodeAsNil() { + if x.Capabilities != nil { + x.Capabilities = nil + } + } else { + if x.Capabilities == nil { + x.Capabilities = new(Capabilities) + } + x.Capabilities.CodecDecodeSelf(d) + } + case "privileged": + if r.TryDecodeAsNil() { + if x.Privileged != nil { + x.Privileged = nil + } + } else { + if x.Privileged == nil { + x.Privileged = new(bool) + } + yym4440 := z.DecBinary() + _ = yym4440 + if false { + } else { + *((*bool)(x.Privileged)) = r.DecodeBool() + } + } + case "seLinuxOptions": + if r.TryDecodeAsNil() { + if x.SELinuxOptions != nil { + x.SELinuxOptions = nil + } + } else { + if x.SELinuxOptions == nil { + x.SELinuxOptions = new(SELinuxOptions) + } + x.SELinuxOptions.CodecDecodeSelf(d) + } + case "runAsUser": + if r.TryDecodeAsNil() { + if x.RunAsUser != nil { + x.RunAsUser = nil + } + } else { + if x.RunAsUser == nil { + x.RunAsUser = new(int64) + } + yym4443 := z.DecBinary() + _ = yym4443 + if false { + } else { + *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) + } + } + case "runAsNonRoot": + if r.TryDecodeAsNil() { + if x.RunAsNonRoot != nil { + x.RunAsNonRoot = nil + } + } else { + if x.RunAsNonRoot == nil { + x.RunAsNonRoot = new(bool) + } + yym4445 := z.DecBinary() + _ = yym4445 + if false { + } else { + *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() + } + } + case "readOnlyRootFilesystem": + if r.TryDecodeAsNil() { + if x.ReadOnlyRootFilesystem != nil { + x.ReadOnlyRootFilesystem = nil + } + } else { + if x.ReadOnlyRootFilesystem == nil { + x.ReadOnlyRootFilesystem = new(bool) + } + yym4447 := z.DecBinary() + _ = yym4447 + if false { + } else { + *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() + } + } + default: + z.DecStructFieldNotFound(-1, yys4437) + } // end switch yys4437 + } // end for yyj4437 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *SecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj4448 int + var yyb4448 bool + var yyhl4448 bool = l >= 0 + yyj4448++ + if yyhl4448 { + yyb4448 = yyj4448 > l + } else { + yyb4448 = r.CheckBreak() + } + if yyb4448 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Capabilities != nil { + x.Capabilities = nil + } + } else { + if x.Capabilities == nil { + x.Capabilities = new(Capabilities) + } + x.Capabilities.CodecDecodeSelf(d) + } + yyj4448++ + if yyhl4448 { + yyb4448 = yyj4448 > l + } else { + yyb4448 = r.CheckBreak() + } + if yyb4448 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.Privileged != nil { + x.Privileged = nil + } + } else { + if x.Privileged == nil { + x.Privileged = new(bool) + } + yym4451 := z.DecBinary() + _ = yym4451 + if false { + } else { + *((*bool)(x.Privileged)) = r.DecodeBool() + } + } + yyj4448++ + if yyhl4448 { + yyb4448 = yyj4448 > l + } else { + yyb4448 = r.CheckBreak() + } + if yyb4448 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.SELinuxOptions != nil { + x.SELinuxOptions = nil + } + } else { + if x.SELinuxOptions == nil { + x.SELinuxOptions = new(SELinuxOptions) + } + x.SELinuxOptions.CodecDecodeSelf(d) + } + yyj4448++ + if yyhl4448 { + yyb4448 = yyj4448 > l + } else { + yyb4448 = r.CheckBreak() + } + if yyb4448 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RunAsUser != nil { + x.RunAsUser = nil + } + } else { + if x.RunAsUser == nil { + x.RunAsUser = new(int64) + } + yym4454 := z.DecBinary() + _ = yym4454 + if false { + } else { + *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) + } + } + yyj4448++ + if yyhl4448 { + yyb4448 = yyj4448 > l + } else { + yyb4448 = r.CheckBreak() + } + if yyb4448 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.RunAsNonRoot != nil { + x.RunAsNonRoot = nil + } + } else { + if x.RunAsNonRoot == nil { + x.RunAsNonRoot = new(bool) + } + yym4456 := z.DecBinary() + _ = yym4456 + if false { + } else { + *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() + } + } + yyj4448++ + if yyhl4448 { + yyb4448 = yyj4448 > l + } else { + yyb4448 = r.CheckBreak() + } + if yyb4448 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.ReadOnlyRootFilesystem != nil { + x.ReadOnlyRootFilesystem = nil + } + } else { + if x.ReadOnlyRootFilesystem == nil { + x.ReadOnlyRootFilesystem = new(bool) + } + yym4458 := z.DecBinary() + _ = yym4458 + if false { + } else { + *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() + } + } + for { + yyj4448++ + if yyhl4448 { + yyb4448 = yyj4448 > l + } else { + yyb4448 = r.CheckBreak() + } + if yyb4448 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj4448-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *SELinuxOptions) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym4459 := z.EncBinary() + _ = yym4459 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep4460 := !z.EncBinary() + yy2arr4460 := z.EncBasicHandle().StructToArray + var yyq4460 [4]bool + _, _, _ = yysep4460, yyq4460, yy2arr4460 + const yyr4460 bool = false + yyq4460[0] = x.User != "" + yyq4460[1] = x.Role != "" + yyq4460[2] = x.Type != "" + yyq4460[3] = x.Level != "" + var yynn4460 int + if yyr4460 || yy2arr4460 { + r.EncodeArrayStart(4) + } else { + yynn4460 = 0 + for _, b := range yyq4460 { + if b { + yynn4460++ + } + } + r.EncodeMapStart(yynn4460) + yynn4460 = 0 + } + if yyr4460 || yy2arr4460 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4460[0] { + yym4462 := z.EncBinary() + _ = yym4462 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4460[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("user")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4463 := z.EncBinary() + _ = yym4463 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.User)) + } + } + } + if yyr4460 || yy2arr4460 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4460[1] { + yym4465 := z.EncBinary() + _ = yym4465 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Role)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4460[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("role")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4466 := z.EncBinary() + _ = yym4466 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Role)) + } + } + } + if yyr4460 || yy2arr4460 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4460[2] { + yym4468 := z.EncBinary() + _ = yym4468 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4460[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("type")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4469 := z.EncBinary() + _ = yym4469 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Type)) + } + } + } + if yyr4460 || yy2arr4460 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq4460[3] { + yym4471 := z.EncBinary() + _ = yym4471 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Level)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq4460[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("level")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym4472 := z.EncBinary() + _ = yym4472 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Level)) + } + } + } + if yyr4460 || yy2arr4460 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *SELinuxOptions) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym4473 := z.DecBinary() + _ = yym4473 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct4474 := r.ContainerType() + if yyct4474 == codecSelferValueTypeMap1234 { + yyl4474 := r.ReadMapStart() + if yyl4474 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl4474, d) + } + } else if yyct4474 == codecSelferValueTypeArray1234 { + yyl4474 := r.ReadArrayStart() + if yyl4474 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl4474, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys4475Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4475Slc + var yyhl4475 bool = l >= 0 + for yyj4475 := 0; ; yyj4475++ { + if yyhl4475 { + if yyj4475 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys4475Slc = r.DecodeBytes(yys4475Slc, true, true) + yys4475 := string(yys4475Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys4475 { case "user": if r.TryDecodeAsNil() { x.User = "" @@ -53926,9 +55778,9 @@ func (x *SELinuxOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Level = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys4319) - } // end switch yys4319 - } // end for yyj4319 + z.DecStructFieldNotFound(-1, yys4475) + } // end switch yys4475 + } // end for yyj4475 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -53936,16 +55788,16 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4324 int - var yyb4324 bool - var yyhl4324 bool = l >= 0 - yyj4324++ - if yyhl4324 { - yyb4324 = yyj4324 > l + var yyj4480 int + var yyb4480 bool + var yyhl4480 bool = l >= 0 + yyj4480++ + if yyhl4480 { + yyb4480 = yyj4480 > l } else { - yyb4324 = r.CheckBreak() + yyb4480 = r.CheckBreak() } - if yyb4324 { + if yyb4480 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53955,13 +55807,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.User = string(r.DecodeString()) } - yyj4324++ - if yyhl4324 { - yyb4324 = yyj4324 > l + yyj4480++ + if yyhl4480 { + yyb4480 = yyj4480 > l } else { - yyb4324 = r.CheckBreak() + yyb4480 = r.CheckBreak() } - if yyb4324 { + if yyb4480 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53971,13 +55823,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Role = string(r.DecodeString()) } - yyj4324++ - if yyhl4324 { - yyb4324 = yyj4324 > l + yyj4480++ + if yyhl4480 { + yyb4480 = yyj4480 > l } else { - yyb4324 = r.CheckBreak() + yyb4480 = r.CheckBreak() } - if yyb4324 { + if yyb4480 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -53987,13 +55839,13 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Type = string(r.DecodeString()) } - yyj4324++ - if yyhl4324 { - yyb4324 = yyj4324 > l + yyj4480++ + if yyhl4480 { + yyb4480 = yyj4480 > l } else { - yyb4324 = r.CheckBreak() + yyb4480 = r.CheckBreak() } - if yyb4324 { + if yyb4480 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54004,17 +55856,17 @@ func (x *SELinuxOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Level = string(r.DecodeString()) } for { - yyj4324++ - if yyhl4324 { - yyb4324 = yyj4324 > l + yyj4480++ + if yyhl4480 { + yyb4480 = yyj4480 > l } else { - yyb4324 = r.CheckBreak() + yyb4480 = r.CheckBreak() } - if yyb4324 { + if yyb4480 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4324-1, "") + z.DecStructFieldNotFound(yyj4480-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54026,37 +55878,37 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym4329 := z.EncBinary() - _ = yym4329 + yym4485 := z.EncBinary() + _ = yym4485 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep4330 := !z.EncBinary() - yy2arr4330 := z.EncBasicHandle().StructToArray - var yyq4330 [5]bool - _, _, _ = yysep4330, yyq4330, yy2arr4330 - const yyr4330 bool = false - yyq4330[0] = x.Kind != "" - yyq4330[1] = x.APIVersion != "" - yyq4330[2] = true - var yynn4330 int - if yyr4330 || yy2arr4330 { + yysep4486 := !z.EncBinary() + yy2arr4486 := z.EncBasicHandle().StructToArray + var yyq4486 [5]bool + _, _, _ = yysep4486, yyq4486, yy2arr4486 + const yyr4486 bool = false + yyq4486[0] = x.Kind != "" + yyq4486[1] = x.APIVersion != "" + yyq4486[2] = true + var yynn4486 int + if yyr4486 || yy2arr4486 { r.EncodeArrayStart(5) } else { - yynn4330 = 2 - for _, b := range yyq4330 { + yynn4486 = 2 + for _, b := range yyq4486 { if b { - yynn4330++ + yynn4486++ } } - r.EncodeMapStart(yynn4330) - yynn4330 = 0 + r.EncodeMapStart(yynn4486) + yynn4486 = 0 } - if yyr4330 || yy2arr4330 { + if yyr4486 || yy2arr4486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4330[0] { - yym4332 := z.EncBinary() - _ = yym4332 + if yyq4486[0] { + yym4488 := z.EncBinary() + _ = yym4488 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -54065,23 +55917,23 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4330[0] { + if yyq4486[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4333 := z.EncBinary() - _ = yym4333 + yym4489 := z.EncBinary() + _ = yym4489 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr4330 || yy2arr4330 { + if yyr4486 || yy2arr4486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4330[1] { - yym4335 := z.EncBinary() - _ = yym4335 + if yyq4486[1] { + yym4491 := z.EncBinary() + _ = yym4491 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -54090,39 +55942,39 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq4330[1] { + if yyq4486[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4336 := z.EncBinary() - _ = yym4336 + yym4492 := z.EncBinary() + _ = yym4492 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr4330 || yy2arr4330 { + if yyr4486 || yy2arr4486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq4330[2] { - yy4338 := &x.ObjectMeta - yy4338.CodecEncodeSelf(e) + if yyq4486[2] { + yy4494 := &x.ObjectMeta + yy4494.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq4330[2] { + if yyq4486[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4339 := &x.ObjectMeta - yy4339.CodecEncodeSelf(e) + yy4495 := &x.ObjectMeta + yy4495.CodecEncodeSelf(e) } } - if yyr4330 || yy2arr4330 { + if yyr4486 || yy2arr4486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym4341 := z.EncBinary() - _ = yym4341 + yym4497 := z.EncBinary() + _ = yym4497 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) @@ -54131,20 +55983,20 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("range")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym4342 := z.EncBinary() - _ = yym4342 + yym4498 := z.EncBinary() + _ = yym4498 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } - if yyr4330 || yy2arr4330 { + if yyr4486 || yy2arr4486 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { - yym4344 := z.EncBinary() - _ = yym4344 + yym4500 := z.EncBinary() + _ = yym4500 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) @@ -54157,15 +56009,15 @@ func (x *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) { if x.Data == nil { r.EncodeNil() } else { - yym4345 := z.EncBinary() - _ = yym4345 + yym4501 := z.EncBinary() + _ = yym4501 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } - if yyr4330 || yy2arr4330 { + if yyr4486 || yy2arr4486 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -54178,25 +56030,25 @@ func (x *RangeAllocation) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym4346 := z.DecBinary() - _ = yym4346 + yym4502 := z.DecBinary() + _ = yym4502 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct4347 := r.ContainerType() - if yyct4347 == codecSelferValueTypeMap1234 { - yyl4347 := r.ReadMapStart() - if yyl4347 == 0 { + yyct4503 := r.ContainerType() + if yyct4503 == codecSelferValueTypeMap1234 { + yyl4503 := r.ReadMapStart() + if yyl4503 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl4347, d) + x.codecDecodeSelfFromMap(yyl4503, d) } - } else if yyct4347 == codecSelferValueTypeArray1234 { - yyl4347 := r.ReadArrayStart() - if yyl4347 == 0 { + } else if yyct4503 == codecSelferValueTypeArray1234 { + yyl4503 := r.ReadArrayStart() + if yyl4503 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl4347, d) + x.codecDecodeSelfFromArray(yyl4503, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -54208,12 +56060,12 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys4348Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys4348Slc - var yyhl4348 bool = l >= 0 - for yyj4348 := 0; ; yyj4348++ { - if yyhl4348 { - if yyj4348 >= l { + var yys4504Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys4504Slc + var yyhl4504 bool = l >= 0 + for yyj4504 := 0; ; yyj4504++ { + if yyhl4504 { + if yyj4504 >= l { break } } else { @@ -54222,10 +56074,10 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys4348Slc = r.DecodeBytes(yys4348Slc, true, true) - yys4348 := string(yys4348Slc) + yys4504Slc = r.DecodeBytes(yys4504Slc, true, true) + yys4504 := string(yys4504Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys4348 { + switch yys4504 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -54242,8 +56094,8 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4351 := &x.ObjectMeta - yyv4351.CodecDecodeSelf(d) + yyv4507 := &x.ObjectMeta + yyv4507.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { @@ -54255,18 +56107,18 @@ func (x *RangeAllocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4353 := &x.Data - yym4354 := z.DecBinary() - _ = yym4354 + yyv4509 := &x.Data + yym4510 := z.DecBinary() + _ = yym4510 if false { } else { - *yyv4353 = r.DecodeBytes(*(*[]byte)(yyv4353), false, false) + *yyv4509 = r.DecodeBytes(*(*[]byte)(yyv4509), false, false) } } default: - z.DecStructFieldNotFound(-1, yys4348) - } // end switch yys4348 - } // end for yyj4348 + z.DecStructFieldNotFound(-1, yys4504) + } // end switch yys4504 + } // end for yyj4504 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -54274,16 +56126,16 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj4355 int - var yyb4355 bool - var yyhl4355 bool = l >= 0 - yyj4355++ - if yyhl4355 { - yyb4355 = yyj4355 > l + var yyj4511 int + var yyb4511 bool + var yyhl4511 bool = l >= 0 + yyj4511++ + if yyhl4511 { + yyb4511 = yyj4511 > l } else { - yyb4355 = r.CheckBreak() + yyb4511 = r.CheckBreak() } - if yyb4355 { + if yyb4511 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54293,13 +56145,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj4355++ - if yyhl4355 { - yyb4355 = yyj4355 > l + yyj4511++ + if yyhl4511 { + yyb4511 = yyj4511 > l } else { - yyb4355 = r.CheckBreak() + yyb4511 = r.CheckBreak() } - if yyb4355 { + if yyb4511 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54309,13 +56161,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj4355++ - if yyhl4355 { - yyb4355 = yyj4355 > l + yyj4511++ + if yyhl4511 { + yyb4511 = yyj4511 > l } else { - yyb4355 = r.CheckBreak() + yyb4511 = r.CheckBreak() } - if yyb4355 { + if yyb4511 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54323,16 +56175,16 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { - yyv4358 := &x.ObjectMeta - yyv4358.CodecDecodeSelf(d) + yyv4514 := &x.ObjectMeta + yyv4514.CodecDecodeSelf(d) } - yyj4355++ - if yyhl4355 { - yyb4355 = yyj4355 > l + yyj4511++ + if yyhl4511 { + yyb4511 = yyj4511 > l } else { - yyb4355 = r.CheckBreak() + yyb4511 = r.CheckBreak() } - if yyb4355 { + if yyb4511 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54342,13 +56194,13 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Range = string(r.DecodeString()) } - yyj4355++ - if yyhl4355 { - yyb4355 = yyj4355 > l + yyj4511++ + if yyhl4511 { + yyb4511 = yyj4511 > l } else { - yyb4355 = r.CheckBreak() + yyb4511 = r.CheckBreak() } - if yyb4355 { + if yyb4511 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -54356,26 +56208,26 @@ func (x *RangeAllocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Data = nil } else { - yyv4360 := &x.Data - yym4361 := z.DecBinary() - _ = yym4361 + yyv4516 := &x.Data + yym4517 := z.DecBinary() + _ = yym4517 if false { } else { - *yyv4360 = r.DecodeBytes(*(*[]byte)(yyv4360), false, false) + *yyv4516 = r.DecodeBytes(*(*[]byte)(yyv4516), false, false) } } for { - yyj4355++ - if yyhl4355 { - yyb4355 = yyj4355 > l + yyj4511++ + if yyhl4511 { + yyb4511 = yyj4511 > l } else { - yyb4355 = r.CheckBreak() + yyb4511 = r.CheckBreak() } - if yyb4355 { + if yyb4511 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj4355-1, "") + z.DecStructFieldNotFound(yyj4511-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54385,10 +56237,10 @@ func (x codecSelfer1234) encSliceOwnerReference(v []OwnerReference, e *codec1978 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4362 := range v { + for _, yyv4518 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4363 := &yyv4362 - yy4363.CodecEncodeSelf(e) + yy4519 := &yyv4518 + yy4519.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54398,83 +56250,83 @@ func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec197 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4364 := *v - yyh4364, yyl4364 := z.DecSliceHelperStart() - var yyc4364 bool - if yyl4364 == 0 { - if yyv4364 == nil { - yyv4364 = []OwnerReference{} - yyc4364 = true - } else if len(yyv4364) != 0 { - yyv4364 = yyv4364[:0] - yyc4364 = true + yyv4520 := *v + yyh4520, yyl4520 := z.DecSliceHelperStart() + var yyc4520 bool + if yyl4520 == 0 { + if yyv4520 == nil { + yyv4520 = []OwnerReference{} + yyc4520 = true + } else if len(yyv4520) != 0 { + yyv4520 = yyv4520[:0] + yyc4520 = true } - } else if yyl4364 > 0 { - var yyrr4364, yyrl4364 int - var yyrt4364 bool - if yyl4364 > cap(yyv4364) { + } else if yyl4520 > 0 { + var yyrr4520, yyrl4520 int + var yyrt4520 bool + if yyl4520 > cap(yyv4520) { - yyrg4364 := len(yyv4364) > 0 - yyv24364 := yyv4364 - yyrl4364, yyrt4364 = z.DecInferLen(yyl4364, z.DecBasicHandle().MaxInitLen, 72) - if yyrt4364 { - if yyrl4364 <= cap(yyv4364) { - yyv4364 = yyv4364[:yyrl4364] + yyrg4520 := len(yyv4520) > 0 + yyv24520 := yyv4520 + yyrl4520, yyrt4520 = z.DecInferLen(yyl4520, z.DecBasicHandle().MaxInitLen, 72) + if yyrt4520 { + if yyrl4520 <= cap(yyv4520) { + yyv4520 = yyv4520[:yyrl4520] } else { - yyv4364 = make([]OwnerReference, yyrl4364) + yyv4520 = make([]OwnerReference, yyrl4520) } } else { - yyv4364 = make([]OwnerReference, yyrl4364) + yyv4520 = make([]OwnerReference, yyrl4520) } - yyc4364 = true - yyrr4364 = len(yyv4364) - if yyrg4364 { - copy(yyv4364, yyv24364) + yyc4520 = true + yyrr4520 = len(yyv4520) + if yyrg4520 { + copy(yyv4520, yyv24520) } - } else if yyl4364 != len(yyv4364) { - yyv4364 = yyv4364[:yyl4364] - yyc4364 = true + } else if yyl4520 != len(yyv4520) { + yyv4520 = yyv4520[:yyl4520] + yyc4520 = true } - yyj4364 := 0 - for ; yyj4364 < yyrr4364; yyj4364++ { - yyh4364.ElemContainerState(yyj4364) + yyj4520 := 0 + for ; yyj4520 < yyrr4520; yyj4520++ { + yyh4520.ElemContainerState(yyj4520) if r.TryDecodeAsNil() { - yyv4364[yyj4364] = OwnerReference{} + yyv4520[yyj4520] = OwnerReference{} } else { - yyv4365 := &yyv4364[yyj4364] - yyv4365.CodecDecodeSelf(d) + yyv4521 := &yyv4520[yyj4520] + yyv4521.CodecDecodeSelf(d) } } - if yyrt4364 { - for ; yyj4364 < yyl4364; yyj4364++ { - yyv4364 = append(yyv4364, OwnerReference{}) - yyh4364.ElemContainerState(yyj4364) + if yyrt4520 { + for ; yyj4520 < yyl4520; yyj4520++ { + yyv4520 = append(yyv4520, OwnerReference{}) + yyh4520.ElemContainerState(yyj4520) if r.TryDecodeAsNil() { - yyv4364[yyj4364] = OwnerReference{} + yyv4520[yyj4520] = OwnerReference{} } else { - yyv4366 := &yyv4364[yyj4364] - yyv4366.CodecDecodeSelf(d) + yyv4522 := &yyv4520[yyj4520] + yyv4522.CodecDecodeSelf(d) } } } } else { - yyj4364 := 0 - for ; !r.CheckBreak(); yyj4364++ { + yyj4520 := 0 + for ; !r.CheckBreak(); yyj4520++ { - if yyj4364 >= len(yyv4364) { - yyv4364 = append(yyv4364, OwnerReference{}) // var yyz4364 OwnerReference - yyc4364 = true + if yyj4520 >= len(yyv4520) { + yyv4520 = append(yyv4520, OwnerReference{}) // var yyz4520 OwnerReference + yyc4520 = true } - yyh4364.ElemContainerState(yyj4364) - if yyj4364 < len(yyv4364) { + yyh4520.ElemContainerState(yyj4520) + if yyj4520 < len(yyv4520) { if r.TryDecodeAsNil() { - yyv4364[yyj4364] = OwnerReference{} + yyv4520[yyj4520] = OwnerReference{} } else { - yyv4367 := &yyv4364[yyj4364] - yyv4367.CodecDecodeSelf(d) + yyv4523 := &yyv4520[yyj4520] + yyv4523.CodecDecodeSelf(d) } } else { @@ -54482,17 +56334,17 @@ func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec197 } } - if yyj4364 < len(yyv4364) { - yyv4364 = yyv4364[:yyj4364] - yyc4364 = true - } else if yyj4364 == 0 && yyv4364 == nil { - yyv4364 = []OwnerReference{} - yyc4364 = true + if yyj4520 < len(yyv4520) { + yyv4520 = yyv4520[:yyj4520] + yyc4520 = true + } else if yyj4520 == 0 && yyv4520 == nil { + yyv4520 = []OwnerReference{} + yyc4520 = true } } - yyh4364.End() - if yyc4364 { - *v = yyv4364 + yyh4520.End() + if yyc4520 { + *v = yyv4520 } } @@ -54501,9 +56353,9 @@ func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolume z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4368 := range v { + for _, yyv4524 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4368.CodecEncodeSelf(e) + yyv4524.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54513,75 +56365,75 @@ func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolum z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4369 := *v - yyh4369, yyl4369 := z.DecSliceHelperStart() - var yyc4369 bool - if yyl4369 == 0 { - if yyv4369 == nil { - yyv4369 = []PersistentVolumeAccessMode{} - yyc4369 = true - } else if len(yyv4369) != 0 { - yyv4369 = yyv4369[:0] - yyc4369 = true + yyv4525 := *v + yyh4525, yyl4525 := z.DecSliceHelperStart() + var yyc4525 bool + if yyl4525 == 0 { + if yyv4525 == nil { + yyv4525 = []PersistentVolumeAccessMode{} + yyc4525 = true + } else if len(yyv4525) != 0 { + yyv4525 = yyv4525[:0] + yyc4525 = true } - } else if yyl4369 > 0 { - var yyrr4369, yyrl4369 int - var yyrt4369 bool - if yyl4369 > cap(yyv4369) { + } else if yyl4525 > 0 { + var yyrr4525, yyrl4525 int + var yyrt4525 bool + if yyl4525 > cap(yyv4525) { - yyrl4369, yyrt4369 = z.DecInferLen(yyl4369, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4369 { - if yyrl4369 <= cap(yyv4369) { - yyv4369 = yyv4369[:yyrl4369] + yyrl4525, yyrt4525 = z.DecInferLen(yyl4525, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4525 { + if yyrl4525 <= cap(yyv4525) { + yyv4525 = yyv4525[:yyrl4525] } else { - yyv4369 = make([]PersistentVolumeAccessMode, yyrl4369) + yyv4525 = make([]PersistentVolumeAccessMode, yyrl4525) } } else { - yyv4369 = make([]PersistentVolumeAccessMode, yyrl4369) + yyv4525 = make([]PersistentVolumeAccessMode, yyrl4525) } - yyc4369 = true - yyrr4369 = len(yyv4369) - } else if yyl4369 != len(yyv4369) { - yyv4369 = yyv4369[:yyl4369] - yyc4369 = true + yyc4525 = true + yyrr4525 = len(yyv4525) + } else if yyl4525 != len(yyv4525) { + yyv4525 = yyv4525[:yyl4525] + yyc4525 = true } - yyj4369 := 0 - for ; yyj4369 < yyrr4369; yyj4369++ { - yyh4369.ElemContainerState(yyj4369) + yyj4525 := 0 + for ; yyj4525 < yyrr4525; yyj4525++ { + yyh4525.ElemContainerState(yyj4525) if r.TryDecodeAsNil() { - yyv4369[yyj4369] = "" + yyv4525[yyj4525] = "" } else { - yyv4369[yyj4369] = PersistentVolumeAccessMode(r.DecodeString()) + yyv4525[yyj4525] = PersistentVolumeAccessMode(r.DecodeString()) } } - if yyrt4369 { - for ; yyj4369 < yyl4369; yyj4369++ { - yyv4369 = append(yyv4369, "") - yyh4369.ElemContainerState(yyj4369) + if yyrt4525 { + for ; yyj4525 < yyl4525; yyj4525++ { + yyv4525 = append(yyv4525, "") + yyh4525.ElemContainerState(yyj4525) if r.TryDecodeAsNil() { - yyv4369[yyj4369] = "" + yyv4525[yyj4525] = "" } else { - yyv4369[yyj4369] = PersistentVolumeAccessMode(r.DecodeString()) + yyv4525[yyj4525] = PersistentVolumeAccessMode(r.DecodeString()) } } } } else { - yyj4369 := 0 - for ; !r.CheckBreak(); yyj4369++ { + yyj4525 := 0 + for ; !r.CheckBreak(); yyj4525++ { - if yyj4369 >= len(yyv4369) { - yyv4369 = append(yyv4369, "") // var yyz4369 PersistentVolumeAccessMode - yyc4369 = true + if yyj4525 >= len(yyv4525) { + yyv4525 = append(yyv4525, "") // var yyz4525 PersistentVolumeAccessMode + yyc4525 = true } - yyh4369.ElemContainerState(yyj4369) - if yyj4369 < len(yyv4369) { + yyh4525.ElemContainerState(yyj4525) + if yyj4525 < len(yyv4525) { if r.TryDecodeAsNil() { - yyv4369[yyj4369] = "" + yyv4525[yyj4525] = "" } else { - yyv4369[yyj4369] = PersistentVolumeAccessMode(r.DecodeString()) + yyv4525[yyj4525] = PersistentVolumeAccessMode(r.DecodeString()) } } else { @@ -54589,17 +56441,17 @@ func (x codecSelfer1234) decSlicePersistentVolumeAccessMode(v *[]PersistentVolum } } - if yyj4369 < len(yyv4369) { - yyv4369 = yyv4369[:yyj4369] - yyc4369 = true - } else if yyj4369 == 0 && yyv4369 == nil { - yyv4369 = []PersistentVolumeAccessMode{} - yyc4369 = true + if yyj4525 < len(yyv4525) { + yyv4525 = yyv4525[:yyj4525] + yyc4525 = true + } else if yyj4525 == 0 && yyv4525 == nil { + yyv4525 = []PersistentVolumeAccessMode{} + yyc4525 = true } } - yyh4369.End() - if yyc4369 { - *v = yyv4369 + yyh4525.End() + if yyc4525 { + *v = yyv4525 } } @@ -54608,10 +56460,10 @@ func (x codecSelfer1234) encSlicePersistentVolume(v []PersistentVolume, e *codec z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4373 := range v { + for _, yyv4529 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4374 := &yyv4373 - yy4374.CodecEncodeSelf(e) + yy4530 := &yyv4529 + yy4530.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54621,83 +56473,83 @@ func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *code z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4375 := *v - yyh4375, yyl4375 := z.DecSliceHelperStart() - var yyc4375 bool - if yyl4375 == 0 { - if yyv4375 == nil { - yyv4375 = []PersistentVolume{} - yyc4375 = true - } else if len(yyv4375) != 0 { - yyv4375 = yyv4375[:0] - yyc4375 = true + yyv4531 := *v + yyh4531, yyl4531 := z.DecSliceHelperStart() + var yyc4531 bool + if yyl4531 == 0 { + if yyv4531 == nil { + yyv4531 = []PersistentVolume{} + yyc4531 = true + } else if len(yyv4531) != 0 { + yyv4531 = yyv4531[:0] + yyc4531 = true } - } else if yyl4375 > 0 { - var yyrr4375, yyrl4375 int - var yyrt4375 bool - if yyl4375 > cap(yyv4375) { + } else if yyl4531 > 0 { + var yyrr4531, yyrl4531 int + var yyrt4531 bool + if yyl4531 > cap(yyv4531) { - yyrg4375 := len(yyv4375) > 0 - yyv24375 := yyv4375 - yyrl4375, yyrt4375 = z.DecInferLen(yyl4375, z.DecBasicHandle().MaxInitLen, 456) - if yyrt4375 { - if yyrl4375 <= cap(yyv4375) { - yyv4375 = yyv4375[:yyrl4375] + yyrg4531 := len(yyv4531) > 0 + yyv24531 := yyv4531 + yyrl4531, yyrt4531 = z.DecInferLen(yyl4531, z.DecBasicHandle().MaxInitLen, 488) + if yyrt4531 { + if yyrl4531 <= cap(yyv4531) { + yyv4531 = yyv4531[:yyrl4531] } else { - yyv4375 = make([]PersistentVolume, yyrl4375) + yyv4531 = make([]PersistentVolume, yyrl4531) } } else { - yyv4375 = make([]PersistentVolume, yyrl4375) + yyv4531 = make([]PersistentVolume, yyrl4531) } - yyc4375 = true - yyrr4375 = len(yyv4375) - if yyrg4375 { - copy(yyv4375, yyv24375) + yyc4531 = true + yyrr4531 = len(yyv4531) + if yyrg4531 { + copy(yyv4531, yyv24531) } - } else if yyl4375 != len(yyv4375) { - yyv4375 = yyv4375[:yyl4375] - yyc4375 = true + } else if yyl4531 != len(yyv4531) { + yyv4531 = yyv4531[:yyl4531] + yyc4531 = true } - yyj4375 := 0 - for ; yyj4375 < yyrr4375; yyj4375++ { - yyh4375.ElemContainerState(yyj4375) + yyj4531 := 0 + for ; yyj4531 < yyrr4531; yyj4531++ { + yyh4531.ElemContainerState(yyj4531) if r.TryDecodeAsNil() { - yyv4375[yyj4375] = PersistentVolume{} + yyv4531[yyj4531] = PersistentVolume{} } else { - yyv4376 := &yyv4375[yyj4375] - yyv4376.CodecDecodeSelf(d) + yyv4532 := &yyv4531[yyj4531] + yyv4532.CodecDecodeSelf(d) } } - if yyrt4375 { - for ; yyj4375 < yyl4375; yyj4375++ { - yyv4375 = append(yyv4375, PersistentVolume{}) - yyh4375.ElemContainerState(yyj4375) + if yyrt4531 { + for ; yyj4531 < yyl4531; yyj4531++ { + yyv4531 = append(yyv4531, PersistentVolume{}) + yyh4531.ElemContainerState(yyj4531) if r.TryDecodeAsNil() { - yyv4375[yyj4375] = PersistentVolume{} + yyv4531[yyj4531] = PersistentVolume{} } else { - yyv4377 := &yyv4375[yyj4375] - yyv4377.CodecDecodeSelf(d) + yyv4533 := &yyv4531[yyj4531] + yyv4533.CodecDecodeSelf(d) } } } } else { - yyj4375 := 0 - for ; !r.CheckBreak(); yyj4375++ { + yyj4531 := 0 + for ; !r.CheckBreak(); yyj4531++ { - if yyj4375 >= len(yyv4375) { - yyv4375 = append(yyv4375, PersistentVolume{}) // var yyz4375 PersistentVolume - yyc4375 = true + if yyj4531 >= len(yyv4531) { + yyv4531 = append(yyv4531, PersistentVolume{}) // var yyz4531 PersistentVolume + yyc4531 = true } - yyh4375.ElemContainerState(yyj4375) - if yyj4375 < len(yyv4375) { + yyh4531.ElemContainerState(yyj4531) + if yyj4531 < len(yyv4531) { if r.TryDecodeAsNil() { - yyv4375[yyj4375] = PersistentVolume{} + yyv4531[yyj4531] = PersistentVolume{} } else { - yyv4378 := &yyv4375[yyj4375] - yyv4378.CodecDecodeSelf(d) + yyv4534 := &yyv4531[yyj4531] + yyv4534.CodecDecodeSelf(d) } } else { @@ -54705,17 +56557,17 @@ func (x codecSelfer1234) decSlicePersistentVolume(v *[]PersistentVolume, d *code } } - if yyj4375 < len(yyv4375) { - yyv4375 = yyv4375[:yyj4375] - yyc4375 = true - } else if yyj4375 == 0 && yyv4375 == nil { - yyv4375 = []PersistentVolume{} - yyc4375 = true + if yyj4531 < len(yyv4531) { + yyv4531 = yyv4531[:yyj4531] + yyc4531 = true + } else if yyj4531 == 0 && yyv4531 == nil { + yyv4531 = []PersistentVolume{} + yyc4531 = true } } - yyh4375.End() - if yyc4375 { - *v = yyv4375 + yyh4531.End() + if yyc4531 { + *v = yyv4531 } } @@ -54724,10 +56576,10 @@ func (x codecSelfer1234) encSlicePersistentVolumeClaim(v []PersistentVolumeClaim z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4379 := range v { + for _, yyv4535 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4380 := &yyv4379 - yy4380.CodecEncodeSelf(e) + yy4536 := &yyv4535 + yy4536.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54737,83 +56589,83 @@ func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClai z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4381 := *v - yyh4381, yyl4381 := z.DecSliceHelperStart() - var yyc4381 bool - if yyl4381 == 0 { - if yyv4381 == nil { - yyv4381 = []PersistentVolumeClaim{} - yyc4381 = true - } else if len(yyv4381) != 0 { - yyv4381 = yyv4381[:0] - yyc4381 = true + yyv4537 := *v + yyh4537, yyl4537 := z.DecSliceHelperStart() + var yyc4537 bool + if yyl4537 == 0 { + if yyv4537 == nil { + yyv4537 = []PersistentVolumeClaim{} + yyc4537 = true + } else if len(yyv4537) != 0 { + yyv4537 = yyv4537[:0] + yyc4537 = true } - } else if yyl4381 > 0 { - var yyrr4381, yyrl4381 int - var yyrt4381 bool - if yyl4381 > cap(yyv4381) { + } else if yyl4537 > 0 { + var yyrr4537, yyrl4537 int + var yyrt4537 bool + if yyl4537 > cap(yyv4537) { - yyrg4381 := len(yyv4381) > 0 - yyv24381 := yyv4381 - yyrl4381, yyrt4381 = z.DecInferLen(yyl4381, z.DecBasicHandle().MaxInitLen, 352) - if yyrt4381 { - if yyrl4381 <= cap(yyv4381) { - yyv4381 = yyv4381[:yyrl4381] + yyrg4537 := len(yyv4537) > 0 + yyv24537 := yyv4537 + yyrl4537, yyrt4537 = z.DecInferLen(yyl4537, z.DecBasicHandle().MaxInitLen, 368) + if yyrt4537 { + if yyrl4537 <= cap(yyv4537) { + yyv4537 = yyv4537[:yyrl4537] } else { - yyv4381 = make([]PersistentVolumeClaim, yyrl4381) + yyv4537 = make([]PersistentVolumeClaim, yyrl4537) } } else { - yyv4381 = make([]PersistentVolumeClaim, yyrl4381) + yyv4537 = make([]PersistentVolumeClaim, yyrl4537) } - yyc4381 = true - yyrr4381 = len(yyv4381) - if yyrg4381 { - copy(yyv4381, yyv24381) + yyc4537 = true + yyrr4537 = len(yyv4537) + if yyrg4537 { + copy(yyv4537, yyv24537) } - } else if yyl4381 != len(yyv4381) { - yyv4381 = yyv4381[:yyl4381] - yyc4381 = true + } else if yyl4537 != len(yyv4537) { + yyv4537 = yyv4537[:yyl4537] + yyc4537 = true } - yyj4381 := 0 - for ; yyj4381 < yyrr4381; yyj4381++ { - yyh4381.ElemContainerState(yyj4381) + yyj4537 := 0 + for ; yyj4537 < yyrr4537; yyj4537++ { + yyh4537.ElemContainerState(yyj4537) if r.TryDecodeAsNil() { - yyv4381[yyj4381] = PersistentVolumeClaim{} + yyv4537[yyj4537] = PersistentVolumeClaim{} } else { - yyv4382 := &yyv4381[yyj4381] - yyv4382.CodecDecodeSelf(d) + yyv4538 := &yyv4537[yyj4537] + yyv4538.CodecDecodeSelf(d) } } - if yyrt4381 { - for ; yyj4381 < yyl4381; yyj4381++ { - yyv4381 = append(yyv4381, PersistentVolumeClaim{}) - yyh4381.ElemContainerState(yyj4381) + if yyrt4537 { + for ; yyj4537 < yyl4537; yyj4537++ { + yyv4537 = append(yyv4537, PersistentVolumeClaim{}) + yyh4537.ElemContainerState(yyj4537) if r.TryDecodeAsNil() { - yyv4381[yyj4381] = PersistentVolumeClaim{} + yyv4537[yyj4537] = PersistentVolumeClaim{} } else { - yyv4383 := &yyv4381[yyj4381] - yyv4383.CodecDecodeSelf(d) + yyv4539 := &yyv4537[yyj4537] + yyv4539.CodecDecodeSelf(d) } } } } else { - yyj4381 := 0 - for ; !r.CheckBreak(); yyj4381++ { + yyj4537 := 0 + for ; !r.CheckBreak(); yyj4537++ { - if yyj4381 >= len(yyv4381) { - yyv4381 = append(yyv4381, PersistentVolumeClaim{}) // var yyz4381 PersistentVolumeClaim - yyc4381 = true + if yyj4537 >= len(yyv4537) { + yyv4537 = append(yyv4537, PersistentVolumeClaim{}) // var yyz4537 PersistentVolumeClaim + yyc4537 = true } - yyh4381.ElemContainerState(yyj4381) - if yyj4381 < len(yyv4381) { + yyh4537.ElemContainerState(yyj4537) + if yyj4537 < len(yyv4537) { if r.TryDecodeAsNil() { - yyv4381[yyj4381] = PersistentVolumeClaim{} + yyv4537[yyj4537] = PersistentVolumeClaim{} } else { - yyv4384 := &yyv4381[yyj4381] - yyv4384.CodecDecodeSelf(d) + yyv4540 := &yyv4537[yyj4537] + yyv4540.CodecDecodeSelf(d) } } else { @@ -54821,17 +56673,17 @@ func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClai } } - if yyj4381 < len(yyv4381) { - yyv4381 = yyv4381[:yyj4381] - yyc4381 = true - } else if yyj4381 == 0 && yyv4381 == nil { - yyv4381 = []PersistentVolumeClaim{} - yyc4381 = true + if yyj4537 < len(yyv4537) { + yyv4537 = yyv4537[:yyj4537] + yyc4537 = true + } else if yyj4537 == 0 && yyv4537 == nil { + yyv4537 = []PersistentVolumeClaim{} + yyc4537 = true } } - yyh4381.End() - if yyc4381 { - *v = yyv4381 + yyh4537.End() + if yyc4537 { + *v = yyv4537 } } @@ -54840,10 +56692,10 @@ func (x codecSelfer1234) encSliceKeyToPath(v []KeyToPath, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4385 := range v { + for _, yyv4541 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4386 := &yyv4385 - yy4386.CodecEncodeSelf(e) + yy4542 := &yyv4541 + yy4542.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54853,83 +56705,83 @@ func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4387 := *v - yyh4387, yyl4387 := z.DecSliceHelperStart() - var yyc4387 bool - if yyl4387 == 0 { - if yyv4387 == nil { - yyv4387 = []KeyToPath{} - yyc4387 = true - } else if len(yyv4387) != 0 { - yyv4387 = yyv4387[:0] - yyc4387 = true + yyv4543 := *v + yyh4543, yyl4543 := z.DecSliceHelperStart() + var yyc4543 bool + if yyl4543 == 0 { + if yyv4543 == nil { + yyv4543 = []KeyToPath{} + yyc4543 = true + } else if len(yyv4543) != 0 { + yyv4543 = yyv4543[:0] + yyc4543 = true } - } else if yyl4387 > 0 { - var yyrr4387, yyrl4387 int - var yyrt4387 bool - if yyl4387 > cap(yyv4387) { + } else if yyl4543 > 0 { + var yyrr4543, yyrl4543 int + var yyrt4543 bool + if yyl4543 > cap(yyv4543) { - yyrg4387 := len(yyv4387) > 0 - yyv24387 := yyv4387 - yyrl4387, yyrt4387 = z.DecInferLen(yyl4387, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4387 { - if yyrl4387 <= cap(yyv4387) { - yyv4387 = yyv4387[:yyrl4387] + yyrg4543 := len(yyv4543) > 0 + yyv24543 := yyv4543 + yyrl4543, yyrt4543 = z.DecInferLen(yyl4543, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4543 { + if yyrl4543 <= cap(yyv4543) { + yyv4543 = yyv4543[:yyrl4543] } else { - yyv4387 = make([]KeyToPath, yyrl4387) + yyv4543 = make([]KeyToPath, yyrl4543) } } else { - yyv4387 = make([]KeyToPath, yyrl4387) + yyv4543 = make([]KeyToPath, yyrl4543) } - yyc4387 = true - yyrr4387 = len(yyv4387) - if yyrg4387 { - copy(yyv4387, yyv24387) + yyc4543 = true + yyrr4543 = len(yyv4543) + if yyrg4543 { + copy(yyv4543, yyv24543) } - } else if yyl4387 != len(yyv4387) { - yyv4387 = yyv4387[:yyl4387] - yyc4387 = true + } else if yyl4543 != len(yyv4543) { + yyv4543 = yyv4543[:yyl4543] + yyc4543 = true } - yyj4387 := 0 - for ; yyj4387 < yyrr4387; yyj4387++ { - yyh4387.ElemContainerState(yyj4387) + yyj4543 := 0 + for ; yyj4543 < yyrr4543; yyj4543++ { + yyh4543.ElemContainerState(yyj4543) if r.TryDecodeAsNil() { - yyv4387[yyj4387] = KeyToPath{} + yyv4543[yyj4543] = KeyToPath{} } else { - yyv4388 := &yyv4387[yyj4387] - yyv4388.CodecDecodeSelf(d) + yyv4544 := &yyv4543[yyj4543] + yyv4544.CodecDecodeSelf(d) } } - if yyrt4387 { - for ; yyj4387 < yyl4387; yyj4387++ { - yyv4387 = append(yyv4387, KeyToPath{}) - yyh4387.ElemContainerState(yyj4387) + if yyrt4543 { + for ; yyj4543 < yyl4543; yyj4543++ { + yyv4543 = append(yyv4543, KeyToPath{}) + yyh4543.ElemContainerState(yyj4543) if r.TryDecodeAsNil() { - yyv4387[yyj4387] = KeyToPath{} + yyv4543[yyj4543] = KeyToPath{} } else { - yyv4389 := &yyv4387[yyj4387] - yyv4389.CodecDecodeSelf(d) + yyv4545 := &yyv4543[yyj4543] + yyv4545.CodecDecodeSelf(d) } } } } else { - yyj4387 := 0 - for ; !r.CheckBreak(); yyj4387++ { + yyj4543 := 0 + for ; !r.CheckBreak(); yyj4543++ { - if yyj4387 >= len(yyv4387) { - yyv4387 = append(yyv4387, KeyToPath{}) // var yyz4387 KeyToPath - yyc4387 = true + if yyj4543 >= len(yyv4543) { + yyv4543 = append(yyv4543, KeyToPath{}) // var yyz4543 KeyToPath + yyc4543 = true } - yyh4387.ElemContainerState(yyj4387) - if yyj4387 < len(yyv4387) { + yyh4543.ElemContainerState(yyj4543) + if yyj4543 < len(yyv4543) { if r.TryDecodeAsNil() { - yyv4387[yyj4387] = KeyToPath{} + yyv4543[yyj4543] = KeyToPath{} } else { - yyv4390 := &yyv4387[yyj4387] - yyv4390.CodecDecodeSelf(d) + yyv4546 := &yyv4543[yyj4543] + yyv4546.CodecDecodeSelf(d) } } else { @@ -54937,17 +56789,17 @@ func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) } } - if yyj4387 < len(yyv4387) { - yyv4387 = yyv4387[:yyj4387] - yyc4387 = true - } else if yyj4387 == 0 && yyv4387 == nil { - yyv4387 = []KeyToPath{} - yyc4387 = true + if yyj4543 < len(yyv4543) { + yyv4543 = yyv4543[:yyj4543] + yyc4543 = true + } else if yyj4543 == 0 && yyv4543 == nil { + yyv4543 = []KeyToPath{} + yyc4543 = true } } - yyh4387.End() - if yyc4387 { - *v = yyv4387 + yyh4543.End() + if yyc4543 { + *v = yyv4543 } } @@ -54956,10 +56808,10 @@ func (x codecSelfer1234) encSliceHTTPHeader(v []HTTPHeader, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4391 := range v { + for _, yyv4547 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4392 := &yyv4391 - yy4392.CodecEncodeSelf(e) + yy4548 := &yyv4547 + yy4548.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -54969,83 +56821,83 @@ func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4393 := *v - yyh4393, yyl4393 := z.DecSliceHelperStart() - var yyc4393 bool - if yyl4393 == 0 { - if yyv4393 == nil { - yyv4393 = []HTTPHeader{} - yyc4393 = true - } else if len(yyv4393) != 0 { - yyv4393 = yyv4393[:0] - yyc4393 = true + yyv4549 := *v + yyh4549, yyl4549 := z.DecSliceHelperStart() + var yyc4549 bool + if yyl4549 == 0 { + if yyv4549 == nil { + yyv4549 = []HTTPHeader{} + yyc4549 = true + } else if len(yyv4549) != 0 { + yyv4549 = yyv4549[:0] + yyc4549 = true } - } else if yyl4393 > 0 { - var yyrr4393, yyrl4393 int - var yyrt4393 bool - if yyl4393 > cap(yyv4393) { + } else if yyl4549 > 0 { + var yyrr4549, yyrl4549 int + var yyrt4549 bool + if yyl4549 > cap(yyv4549) { - yyrg4393 := len(yyv4393) > 0 - yyv24393 := yyv4393 - yyrl4393, yyrt4393 = z.DecInferLen(yyl4393, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4393 { - if yyrl4393 <= cap(yyv4393) { - yyv4393 = yyv4393[:yyrl4393] + yyrg4549 := len(yyv4549) > 0 + yyv24549 := yyv4549 + yyrl4549, yyrt4549 = z.DecInferLen(yyl4549, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4549 { + if yyrl4549 <= cap(yyv4549) { + yyv4549 = yyv4549[:yyrl4549] } else { - yyv4393 = make([]HTTPHeader, yyrl4393) + yyv4549 = make([]HTTPHeader, yyrl4549) } } else { - yyv4393 = make([]HTTPHeader, yyrl4393) + yyv4549 = make([]HTTPHeader, yyrl4549) } - yyc4393 = true - yyrr4393 = len(yyv4393) - if yyrg4393 { - copy(yyv4393, yyv24393) + yyc4549 = true + yyrr4549 = len(yyv4549) + if yyrg4549 { + copy(yyv4549, yyv24549) } - } else if yyl4393 != len(yyv4393) { - yyv4393 = yyv4393[:yyl4393] - yyc4393 = true + } else if yyl4549 != len(yyv4549) { + yyv4549 = yyv4549[:yyl4549] + yyc4549 = true } - yyj4393 := 0 - for ; yyj4393 < yyrr4393; yyj4393++ { - yyh4393.ElemContainerState(yyj4393) + yyj4549 := 0 + for ; yyj4549 < yyrr4549; yyj4549++ { + yyh4549.ElemContainerState(yyj4549) if r.TryDecodeAsNil() { - yyv4393[yyj4393] = HTTPHeader{} + yyv4549[yyj4549] = HTTPHeader{} } else { - yyv4394 := &yyv4393[yyj4393] - yyv4394.CodecDecodeSelf(d) + yyv4550 := &yyv4549[yyj4549] + yyv4550.CodecDecodeSelf(d) } } - if yyrt4393 { - for ; yyj4393 < yyl4393; yyj4393++ { - yyv4393 = append(yyv4393, HTTPHeader{}) - yyh4393.ElemContainerState(yyj4393) + if yyrt4549 { + for ; yyj4549 < yyl4549; yyj4549++ { + yyv4549 = append(yyv4549, HTTPHeader{}) + yyh4549.ElemContainerState(yyj4549) if r.TryDecodeAsNil() { - yyv4393[yyj4393] = HTTPHeader{} + yyv4549[yyj4549] = HTTPHeader{} } else { - yyv4395 := &yyv4393[yyj4393] - yyv4395.CodecDecodeSelf(d) + yyv4551 := &yyv4549[yyj4549] + yyv4551.CodecDecodeSelf(d) } } } } else { - yyj4393 := 0 - for ; !r.CheckBreak(); yyj4393++ { + yyj4549 := 0 + for ; !r.CheckBreak(); yyj4549++ { - if yyj4393 >= len(yyv4393) { - yyv4393 = append(yyv4393, HTTPHeader{}) // var yyz4393 HTTPHeader - yyc4393 = true + if yyj4549 >= len(yyv4549) { + yyv4549 = append(yyv4549, HTTPHeader{}) // var yyz4549 HTTPHeader + yyc4549 = true } - yyh4393.ElemContainerState(yyj4393) - if yyj4393 < len(yyv4393) { + yyh4549.ElemContainerState(yyj4549) + if yyj4549 < len(yyv4549) { if r.TryDecodeAsNil() { - yyv4393[yyj4393] = HTTPHeader{} + yyv4549[yyj4549] = HTTPHeader{} } else { - yyv4396 := &yyv4393[yyj4393] - yyv4396.CodecDecodeSelf(d) + yyv4552 := &yyv4549[yyj4549] + yyv4552.CodecDecodeSelf(d) } } else { @@ -55053,17 +56905,17 @@ func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decode } } - if yyj4393 < len(yyv4393) { - yyv4393 = yyv4393[:yyj4393] - yyc4393 = true - } else if yyj4393 == 0 && yyv4393 == nil { - yyv4393 = []HTTPHeader{} - yyc4393 = true + if yyj4549 < len(yyv4549) { + yyv4549 = yyv4549[:yyj4549] + yyc4549 = true + } else if yyj4549 == 0 && yyv4549 == nil { + yyv4549 = []HTTPHeader{} + yyc4549 = true } } - yyh4393.End() - if yyc4393 { - *v = yyv4393 + yyh4549.End() + if yyc4549 { + *v = yyv4549 } } @@ -55072,9 +56924,9 @@ func (x codecSelfer1234) encSliceCapability(v []Capability, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4397 := range v { + for _, yyv4553 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4397.CodecEncodeSelf(e) + yyv4553.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -55084,3020 +56936,12 @@ func (x codecSelfer1234) decSliceCapability(v *[]Capability, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4398 := *v - yyh4398, yyl4398 := z.DecSliceHelperStart() - var yyc4398 bool - if yyl4398 == 0 { - if yyv4398 == nil { - yyv4398 = []Capability{} - yyc4398 = true - } else if len(yyv4398) != 0 { - yyv4398 = yyv4398[:0] - yyc4398 = true - } - } else if yyl4398 > 0 { - var yyrr4398, yyrl4398 int - var yyrt4398 bool - if yyl4398 > cap(yyv4398) { - - yyrl4398, yyrt4398 = z.DecInferLen(yyl4398, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4398 { - if yyrl4398 <= cap(yyv4398) { - yyv4398 = yyv4398[:yyrl4398] - } else { - yyv4398 = make([]Capability, yyrl4398) - } - } else { - yyv4398 = make([]Capability, yyrl4398) - } - yyc4398 = true - yyrr4398 = len(yyv4398) - } else if yyl4398 != len(yyv4398) { - yyv4398 = yyv4398[:yyl4398] - yyc4398 = true - } - yyj4398 := 0 - for ; yyj4398 < yyrr4398; yyj4398++ { - yyh4398.ElemContainerState(yyj4398) - if r.TryDecodeAsNil() { - yyv4398[yyj4398] = "" - } else { - yyv4398[yyj4398] = Capability(r.DecodeString()) - } - - } - if yyrt4398 { - for ; yyj4398 < yyl4398; yyj4398++ { - yyv4398 = append(yyv4398, "") - yyh4398.ElemContainerState(yyj4398) - if r.TryDecodeAsNil() { - yyv4398[yyj4398] = "" - } else { - yyv4398[yyj4398] = Capability(r.DecodeString()) - } - - } - } - - } else { - yyj4398 := 0 - for ; !r.CheckBreak(); yyj4398++ { - - if yyj4398 >= len(yyv4398) { - yyv4398 = append(yyv4398, "") // var yyz4398 Capability - yyc4398 = true - } - yyh4398.ElemContainerState(yyj4398) - if yyj4398 < len(yyv4398) { - if r.TryDecodeAsNil() { - yyv4398[yyj4398] = "" - } else { - yyv4398[yyj4398] = Capability(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj4398 < len(yyv4398) { - yyv4398 = yyv4398[:yyj4398] - yyc4398 = true - } else if yyj4398 == 0 && yyv4398 == nil { - yyv4398 = []Capability{} - yyc4398 = true - } - } - yyh4398.End() - if yyc4398 { - *v = yyv4398 - } -} - -func (x codecSelfer1234) encSliceContainerPort(v []ContainerPort, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4402 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4403 := &yyv4402 - yy4403.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceContainerPort(v *[]ContainerPort, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4404 := *v - yyh4404, yyl4404 := z.DecSliceHelperStart() - var yyc4404 bool - if yyl4404 == 0 { - if yyv4404 == nil { - yyv4404 = []ContainerPort{} - yyc4404 = true - } else if len(yyv4404) != 0 { - yyv4404 = yyv4404[:0] - yyc4404 = true - } - } else if yyl4404 > 0 { - var yyrr4404, yyrl4404 int - var yyrt4404 bool - if yyl4404 > cap(yyv4404) { - - yyrg4404 := len(yyv4404) > 0 - yyv24404 := yyv4404 - yyrl4404, yyrt4404 = z.DecInferLen(yyl4404, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4404 { - if yyrl4404 <= cap(yyv4404) { - yyv4404 = yyv4404[:yyrl4404] - } else { - yyv4404 = make([]ContainerPort, yyrl4404) - } - } else { - yyv4404 = make([]ContainerPort, yyrl4404) - } - yyc4404 = true - yyrr4404 = len(yyv4404) - if yyrg4404 { - copy(yyv4404, yyv24404) - } - } else if yyl4404 != len(yyv4404) { - yyv4404 = yyv4404[:yyl4404] - yyc4404 = true - } - yyj4404 := 0 - for ; yyj4404 < yyrr4404; yyj4404++ { - yyh4404.ElemContainerState(yyj4404) - if r.TryDecodeAsNil() { - yyv4404[yyj4404] = ContainerPort{} - } else { - yyv4405 := &yyv4404[yyj4404] - yyv4405.CodecDecodeSelf(d) - } - - } - if yyrt4404 { - for ; yyj4404 < yyl4404; yyj4404++ { - yyv4404 = append(yyv4404, ContainerPort{}) - yyh4404.ElemContainerState(yyj4404) - if r.TryDecodeAsNil() { - yyv4404[yyj4404] = ContainerPort{} - } else { - yyv4406 := &yyv4404[yyj4404] - yyv4406.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4404 := 0 - for ; !r.CheckBreak(); yyj4404++ { - - if yyj4404 >= len(yyv4404) { - yyv4404 = append(yyv4404, ContainerPort{}) // var yyz4404 ContainerPort - yyc4404 = true - } - yyh4404.ElemContainerState(yyj4404) - if yyj4404 < len(yyv4404) { - if r.TryDecodeAsNil() { - yyv4404[yyj4404] = ContainerPort{} - } else { - yyv4407 := &yyv4404[yyj4404] - yyv4407.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4404 < len(yyv4404) { - yyv4404 = yyv4404[:yyj4404] - yyc4404 = true - } else if yyj4404 == 0 && yyv4404 == nil { - yyv4404 = []ContainerPort{} - yyc4404 = true - } - } - yyh4404.End() - if yyc4404 { - *v = yyv4404 - } -} - -func (x codecSelfer1234) encSliceEnvVar(v []EnvVar, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4408 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4409 := &yyv4408 - yy4409.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceEnvVar(v *[]EnvVar, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4410 := *v - yyh4410, yyl4410 := z.DecSliceHelperStart() - var yyc4410 bool - if yyl4410 == 0 { - if yyv4410 == nil { - yyv4410 = []EnvVar{} - yyc4410 = true - } else if len(yyv4410) != 0 { - yyv4410 = yyv4410[:0] - yyc4410 = true - } - } else if yyl4410 > 0 { - var yyrr4410, yyrl4410 int - var yyrt4410 bool - if yyl4410 > cap(yyv4410) { - - yyrg4410 := len(yyv4410) > 0 - yyv24410 := yyv4410 - yyrl4410, yyrt4410 = z.DecInferLen(yyl4410, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4410 { - if yyrl4410 <= cap(yyv4410) { - yyv4410 = yyv4410[:yyrl4410] - } else { - yyv4410 = make([]EnvVar, yyrl4410) - } - } else { - yyv4410 = make([]EnvVar, yyrl4410) - } - yyc4410 = true - yyrr4410 = len(yyv4410) - if yyrg4410 { - copy(yyv4410, yyv24410) - } - } else if yyl4410 != len(yyv4410) { - yyv4410 = yyv4410[:yyl4410] - yyc4410 = true - } - yyj4410 := 0 - for ; yyj4410 < yyrr4410; yyj4410++ { - yyh4410.ElemContainerState(yyj4410) - if r.TryDecodeAsNil() { - yyv4410[yyj4410] = EnvVar{} - } else { - yyv4411 := &yyv4410[yyj4410] - yyv4411.CodecDecodeSelf(d) - } - - } - if yyrt4410 { - for ; yyj4410 < yyl4410; yyj4410++ { - yyv4410 = append(yyv4410, EnvVar{}) - yyh4410.ElemContainerState(yyj4410) - if r.TryDecodeAsNil() { - yyv4410[yyj4410] = EnvVar{} - } else { - yyv4412 := &yyv4410[yyj4410] - yyv4412.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4410 := 0 - for ; !r.CheckBreak(); yyj4410++ { - - if yyj4410 >= len(yyv4410) { - yyv4410 = append(yyv4410, EnvVar{}) // var yyz4410 EnvVar - yyc4410 = true - } - yyh4410.ElemContainerState(yyj4410) - if yyj4410 < len(yyv4410) { - if r.TryDecodeAsNil() { - yyv4410[yyj4410] = EnvVar{} - } else { - yyv4413 := &yyv4410[yyj4410] - yyv4413.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4410 < len(yyv4410) { - yyv4410 = yyv4410[:yyj4410] - yyc4410 = true - } else if yyj4410 == 0 && yyv4410 == nil { - yyv4410 = []EnvVar{} - yyc4410 = true - } - } - yyh4410.End() - if yyc4410 { - *v = yyv4410 - } -} - -func (x codecSelfer1234) encSliceVolumeMount(v []VolumeMount, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4414 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4415 := &yyv4414 - yy4415.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceVolumeMount(v *[]VolumeMount, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4416 := *v - yyh4416, yyl4416 := z.DecSliceHelperStart() - var yyc4416 bool - if yyl4416 == 0 { - if yyv4416 == nil { - yyv4416 = []VolumeMount{} - yyc4416 = true - } else if len(yyv4416) != 0 { - yyv4416 = yyv4416[:0] - yyc4416 = true - } - } else if yyl4416 > 0 { - var yyrr4416, yyrl4416 int - var yyrt4416 bool - if yyl4416 > cap(yyv4416) { - - yyrg4416 := len(yyv4416) > 0 - yyv24416 := yyv4416 - yyrl4416, yyrt4416 = z.DecInferLen(yyl4416, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4416 { - if yyrl4416 <= cap(yyv4416) { - yyv4416 = yyv4416[:yyrl4416] - } else { - yyv4416 = make([]VolumeMount, yyrl4416) - } - } else { - yyv4416 = make([]VolumeMount, yyrl4416) - } - yyc4416 = true - yyrr4416 = len(yyv4416) - if yyrg4416 { - copy(yyv4416, yyv24416) - } - } else if yyl4416 != len(yyv4416) { - yyv4416 = yyv4416[:yyl4416] - yyc4416 = true - } - yyj4416 := 0 - for ; yyj4416 < yyrr4416; yyj4416++ { - yyh4416.ElemContainerState(yyj4416) - if r.TryDecodeAsNil() { - yyv4416[yyj4416] = VolumeMount{} - } else { - yyv4417 := &yyv4416[yyj4416] - yyv4417.CodecDecodeSelf(d) - } - - } - if yyrt4416 { - for ; yyj4416 < yyl4416; yyj4416++ { - yyv4416 = append(yyv4416, VolumeMount{}) - yyh4416.ElemContainerState(yyj4416) - if r.TryDecodeAsNil() { - yyv4416[yyj4416] = VolumeMount{} - } else { - yyv4418 := &yyv4416[yyj4416] - yyv4418.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4416 := 0 - for ; !r.CheckBreak(); yyj4416++ { - - if yyj4416 >= len(yyv4416) { - yyv4416 = append(yyv4416, VolumeMount{}) // var yyz4416 VolumeMount - yyc4416 = true - } - yyh4416.ElemContainerState(yyj4416) - if yyj4416 < len(yyv4416) { - if r.TryDecodeAsNil() { - yyv4416[yyj4416] = VolumeMount{} - } else { - yyv4419 := &yyv4416[yyj4416] - yyv4419.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4416 < len(yyv4416) { - yyv4416 = yyv4416[:yyj4416] - yyc4416 = true - } else if yyj4416 == 0 && yyv4416 == nil { - yyv4416 = []VolumeMount{} - yyc4416 = true - } - } - yyh4416.End() - if yyc4416 { - *v = yyv4416 - } -} - -func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4420 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4421 := &yyv4420 - yy4421.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4422 := *v - yyh4422, yyl4422 := z.DecSliceHelperStart() - var yyc4422 bool - if yyl4422 == 0 { - if yyv4422 == nil { - yyv4422 = []NodeSelectorTerm{} - yyc4422 = true - } else if len(yyv4422) != 0 { - yyv4422 = yyv4422[:0] - yyc4422 = true - } - } else if yyl4422 > 0 { - var yyrr4422, yyrl4422 int - var yyrt4422 bool - if yyl4422 > cap(yyv4422) { - - yyrg4422 := len(yyv4422) > 0 - yyv24422 := yyv4422 - yyrl4422, yyrt4422 = z.DecInferLen(yyl4422, z.DecBasicHandle().MaxInitLen, 24) - if yyrt4422 { - if yyrl4422 <= cap(yyv4422) { - yyv4422 = yyv4422[:yyrl4422] - } else { - yyv4422 = make([]NodeSelectorTerm, yyrl4422) - } - } else { - yyv4422 = make([]NodeSelectorTerm, yyrl4422) - } - yyc4422 = true - yyrr4422 = len(yyv4422) - if yyrg4422 { - copy(yyv4422, yyv24422) - } - } else if yyl4422 != len(yyv4422) { - yyv4422 = yyv4422[:yyl4422] - yyc4422 = true - } - yyj4422 := 0 - for ; yyj4422 < yyrr4422; yyj4422++ { - yyh4422.ElemContainerState(yyj4422) - if r.TryDecodeAsNil() { - yyv4422[yyj4422] = NodeSelectorTerm{} - } else { - yyv4423 := &yyv4422[yyj4422] - yyv4423.CodecDecodeSelf(d) - } - - } - if yyrt4422 { - for ; yyj4422 < yyl4422; yyj4422++ { - yyv4422 = append(yyv4422, NodeSelectorTerm{}) - yyh4422.ElemContainerState(yyj4422) - if r.TryDecodeAsNil() { - yyv4422[yyj4422] = NodeSelectorTerm{} - } else { - yyv4424 := &yyv4422[yyj4422] - yyv4424.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4422 := 0 - for ; !r.CheckBreak(); yyj4422++ { - - if yyj4422 >= len(yyv4422) { - yyv4422 = append(yyv4422, NodeSelectorTerm{}) // var yyz4422 NodeSelectorTerm - yyc4422 = true - } - yyh4422.ElemContainerState(yyj4422) - if yyj4422 < len(yyv4422) { - if r.TryDecodeAsNil() { - yyv4422[yyj4422] = NodeSelectorTerm{} - } else { - yyv4425 := &yyv4422[yyj4422] - yyv4425.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4422 < len(yyv4422) { - yyv4422 = yyv4422[:yyj4422] - yyc4422 = true - } else if yyj4422 == 0 && yyv4422 == nil { - yyv4422 = []NodeSelectorTerm{} - yyc4422 = true - } - } - yyh4422.End() - if yyc4422 { - *v = yyv4422 - } -} - -func (x codecSelfer1234) encSliceNodeSelectorRequirement(v []NodeSelectorRequirement, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4426 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4427 := &yyv4426 - yy4427.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequirement, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4428 := *v - yyh4428, yyl4428 := z.DecSliceHelperStart() - var yyc4428 bool - if yyl4428 == 0 { - if yyv4428 == nil { - yyv4428 = []NodeSelectorRequirement{} - yyc4428 = true - } else if len(yyv4428) != 0 { - yyv4428 = yyv4428[:0] - yyc4428 = true - } - } else if yyl4428 > 0 { - var yyrr4428, yyrl4428 int - var yyrt4428 bool - if yyl4428 > cap(yyv4428) { - - yyrg4428 := len(yyv4428) > 0 - yyv24428 := yyv4428 - yyrl4428, yyrt4428 = z.DecInferLen(yyl4428, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4428 { - if yyrl4428 <= cap(yyv4428) { - yyv4428 = yyv4428[:yyrl4428] - } else { - yyv4428 = make([]NodeSelectorRequirement, yyrl4428) - } - } else { - yyv4428 = make([]NodeSelectorRequirement, yyrl4428) - } - yyc4428 = true - yyrr4428 = len(yyv4428) - if yyrg4428 { - copy(yyv4428, yyv24428) - } - } else if yyl4428 != len(yyv4428) { - yyv4428 = yyv4428[:yyl4428] - yyc4428 = true - } - yyj4428 := 0 - for ; yyj4428 < yyrr4428; yyj4428++ { - yyh4428.ElemContainerState(yyj4428) - if r.TryDecodeAsNil() { - yyv4428[yyj4428] = NodeSelectorRequirement{} - } else { - yyv4429 := &yyv4428[yyj4428] - yyv4429.CodecDecodeSelf(d) - } - - } - if yyrt4428 { - for ; yyj4428 < yyl4428; yyj4428++ { - yyv4428 = append(yyv4428, NodeSelectorRequirement{}) - yyh4428.ElemContainerState(yyj4428) - if r.TryDecodeAsNil() { - yyv4428[yyj4428] = NodeSelectorRequirement{} - } else { - yyv4430 := &yyv4428[yyj4428] - yyv4430.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4428 := 0 - for ; !r.CheckBreak(); yyj4428++ { - - if yyj4428 >= len(yyv4428) { - yyv4428 = append(yyv4428, NodeSelectorRequirement{}) // var yyz4428 NodeSelectorRequirement - yyc4428 = true - } - yyh4428.ElemContainerState(yyj4428) - if yyj4428 < len(yyv4428) { - if r.TryDecodeAsNil() { - yyv4428[yyj4428] = NodeSelectorRequirement{} - } else { - yyv4431 := &yyv4428[yyj4428] - yyv4431.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4428 < len(yyv4428) { - yyv4428 = yyv4428[:yyj4428] - yyc4428 = true - } else if yyj4428 == 0 && yyv4428 == nil { - yyv4428 = []NodeSelectorRequirement{} - yyc4428 = true - } - } - yyh4428.End() - if yyc4428 { - *v = yyv4428 - } -} - -func (x codecSelfer1234) encSlicePodAffinityTerm(v []PodAffinityTerm, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4432 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4433 := &yyv4432 - yy4433.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4434 := *v - yyh4434, yyl4434 := z.DecSliceHelperStart() - var yyc4434 bool - if yyl4434 == 0 { - if yyv4434 == nil { - yyv4434 = []PodAffinityTerm{} - yyc4434 = true - } else if len(yyv4434) != 0 { - yyv4434 = yyv4434[:0] - yyc4434 = true - } - } else if yyl4434 > 0 { - var yyrr4434, yyrl4434 int - var yyrt4434 bool - if yyl4434 > cap(yyv4434) { - - yyrg4434 := len(yyv4434) > 0 - yyv24434 := yyv4434 - yyrl4434, yyrt4434 = z.DecInferLen(yyl4434, z.DecBasicHandle().MaxInitLen, 48) - if yyrt4434 { - if yyrl4434 <= cap(yyv4434) { - yyv4434 = yyv4434[:yyrl4434] - } else { - yyv4434 = make([]PodAffinityTerm, yyrl4434) - } - } else { - yyv4434 = make([]PodAffinityTerm, yyrl4434) - } - yyc4434 = true - yyrr4434 = len(yyv4434) - if yyrg4434 { - copy(yyv4434, yyv24434) - } - } else if yyl4434 != len(yyv4434) { - yyv4434 = yyv4434[:yyl4434] - yyc4434 = true - } - yyj4434 := 0 - for ; yyj4434 < yyrr4434; yyj4434++ { - yyh4434.ElemContainerState(yyj4434) - if r.TryDecodeAsNil() { - yyv4434[yyj4434] = PodAffinityTerm{} - } else { - yyv4435 := &yyv4434[yyj4434] - yyv4435.CodecDecodeSelf(d) - } - - } - if yyrt4434 { - for ; yyj4434 < yyl4434; yyj4434++ { - yyv4434 = append(yyv4434, PodAffinityTerm{}) - yyh4434.ElemContainerState(yyj4434) - if r.TryDecodeAsNil() { - yyv4434[yyj4434] = PodAffinityTerm{} - } else { - yyv4436 := &yyv4434[yyj4434] - yyv4436.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4434 := 0 - for ; !r.CheckBreak(); yyj4434++ { - - if yyj4434 >= len(yyv4434) { - yyv4434 = append(yyv4434, PodAffinityTerm{}) // var yyz4434 PodAffinityTerm - yyc4434 = true - } - yyh4434.ElemContainerState(yyj4434) - if yyj4434 < len(yyv4434) { - if r.TryDecodeAsNil() { - yyv4434[yyj4434] = PodAffinityTerm{} - } else { - yyv4437 := &yyv4434[yyj4434] - yyv4437.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4434 < len(yyv4434) { - yyv4434 = yyv4434[:yyj4434] - yyc4434 = true - } else if yyj4434 == 0 && yyv4434 == nil { - yyv4434 = []PodAffinityTerm{} - yyc4434 = true - } - } - yyh4434.End() - if yyc4434 { - *v = yyv4434 - } -} - -func (x codecSelfer1234) encSliceWeightedPodAffinityTerm(v []WeightedPodAffinityTerm, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4438 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4439 := &yyv4438 - yy4439.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinityTerm, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4440 := *v - yyh4440, yyl4440 := z.DecSliceHelperStart() - var yyc4440 bool - if yyl4440 == 0 { - if yyv4440 == nil { - yyv4440 = []WeightedPodAffinityTerm{} - yyc4440 = true - } else if len(yyv4440) != 0 { - yyv4440 = yyv4440[:0] - yyc4440 = true - } - } else if yyl4440 > 0 { - var yyrr4440, yyrl4440 int - var yyrt4440 bool - if yyl4440 > cap(yyv4440) { - - yyrg4440 := len(yyv4440) > 0 - yyv24440 := yyv4440 - yyrl4440, yyrt4440 = z.DecInferLen(yyl4440, z.DecBasicHandle().MaxInitLen, 56) - if yyrt4440 { - if yyrl4440 <= cap(yyv4440) { - yyv4440 = yyv4440[:yyrl4440] - } else { - yyv4440 = make([]WeightedPodAffinityTerm, yyrl4440) - } - } else { - yyv4440 = make([]WeightedPodAffinityTerm, yyrl4440) - } - yyc4440 = true - yyrr4440 = len(yyv4440) - if yyrg4440 { - copy(yyv4440, yyv24440) - } - } else if yyl4440 != len(yyv4440) { - yyv4440 = yyv4440[:yyl4440] - yyc4440 = true - } - yyj4440 := 0 - for ; yyj4440 < yyrr4440; yyj4440++ { - yyh4440.ElemContainerState(yyj4440) - if r.TryDecodeAsNil() { - yyv4440[yyj4440] = WeightedPodAffinityTerm{} - } else { - yyv4441 := &yyv4440[yyj4440] - yyv4441.CodecDecodeSelf(d) - } - - } - if yyrt4440 { - for ; yyj4440 < yyl4440; yyj4440++ { - yyv4440 = append(yyv4440, WeightedPodAffinityTerm{}) - yyh4440.ElemContainerState(yyj4440) - if r.TryDecodeAsNil() { - yyv4440[yyj4440] = WeightedPodAffinityTerm{} - } else { - yyv4442 := &yyv4440[yyj4440] - yyv4442.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4440 := 0 - for ; !r.CheckBreak(); yyj4440++ { - - if yyj4440 >= len(yyv4440) { - yyv4440 = append(yyv4440, WeightedPodAffinityTerm{}) // var yyz4440 WeightedPodAffinityTerm - yyc4440 = true - } - yyh4440.ElemContainerState(yyj4440) - if yyj4440 < len(yyv4440) { - if r.TryDecodeAsNil() { - yyv4440[yyj4440] = WeightedPodAffinityTerm{} - } else { - yyv4443 := &yyv4440[yyj4440] - yyv4443.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4440 < len(yyv4440) { - yyv4440 = yyv4440[:yyj4440] - yyc4440 = true - } else if yyj4440 == 0 && yyv4440 == nil { - yyv4440 = []WeightedPodAffinityTerm{} - yyc4440 = true - } - } - yyh4440.End() - if yyc4440 { - *v = yyv4440 - } -} - -func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredSchedulingTerm, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4444 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4445 := &yyv4444 - yy4445.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulingTerm, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4446 := *v - yyh4446, yyl4446 := z.DecSliceHelperStart() - var yyc4446 bool - if yyl4446 == 0 { - if yyv4446 == nil { - yyv4446 = []PreferredSchedulingTerm{} - yyc4446 = true - } else if len(yyv4446) != 0 { - yyv4446 = yyv4446[:0] - yyc4446 = true - } - } else if yyl4446 > 0 { - var yyrr4446, yyrl4446 int - var yyrt4446 bool - if yyl4446 > cap(yyv4446) { - - yyrg4446 := len(yyv4446) > 0 - yyv24446 := yyv4446 - yyrl4446, yyrt4446 = z.DecInferLen(yyl4446, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4446 { - if yyrl4446 <= cap(yyv4446) { - yyv4446 = yyv4446[:yyrl4446] - } else { - yyv4446 = make([]PreferredSchedulingTerm, yyrl4446) - } - } else { - yyv4446 = make([]PreferredSchedulingTerm, yyrl4446) - } - yyc4446 = true - yyrr4446 = len(yyv4446) - if yyrg4446 { - copy(yyv4446, yyv24446) - } - } else if yyl4446 != len(yyv4446) { - yyv4446 = yyv4446[:yyl4446] - yyc4446 = true - } - yyj4446 := 0 - for ; yyj4446 < yyrr4446; yyj4446++ { - yyh4446.ElemContainerState(yyj4446) - if r.TryDecodeAsNil() { - yyv4446[yyj4446] = PreferredSchedulingTerm{} - } else { - yyv4447 := &yyv4446[yyj4446] - yyv4447.CodecDecodeSelf(d) - } - - } - if yyrt4446 { - for ; yyj4446 < yyl4446; yyj4446++ { - yyv4446 = append(yyv4446, PreferredSchedulingTerm{}) - yyh4446.ElemContainerState(yyj4446) - if r.TryDecodeAsNil() { - yyv4446[yyj4446] = PreferredSchedulingTerm{} - } else { - yyv4448 := &yyv4446[yyj4446] - yyv4448.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4446 := 0 - for ; !r.CheckBreak(); yyj4446++ { - - if yyj4446 >= len(yyv4446) { - yyv4446 = append(yyv4446, PreferredSchedulingTerm{}) // var yyz4446 PreferredSchedulingTerm - yyc4446 = true - } - yyh4446.ElemContainerState(yyj4446) - if yyj4446 < len(yyv4446) { - if r.TryDecodeAsNil() { - yyv4446[yyj4446] = PreferredSchedulingTerm{} - } else { - yyv4449 := &yyv4446[yyj4446] - yyv4449.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4446 < len(yyv4446) { - yyv4446 = yyv4446[:yyj4446] - yyc4446 = true - } else if yyj4446 == 0 && yyv4446 == nil { - yyv4446 = []PreferredSchedulingTerm{} - yyc4446 = true - } - } - yyh4446.End() - if yyc4446 { - *v = yyv4446 - } -} - -func (x codecSelfer1234) encSliceVolume(v []Volume, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4450 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4451 := &yyv4450 - yy4451.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4452 := *v - yyh4452, yyl4452 := z.DecSliceHelperStart() - var yyc4452 bool - if yyl4452 == 0 { - if yyv4452 == nil { - yyv4452 = []Volume{} - yyc4452 = true - } else if len(yyv4452) != 0 { - yyv4452 = yyv4452[:0] - yyc4452 = true - } - } else if yyl4452 > 0 { - var yyrr4452, yyrl4452 int - var yyrt4452 bool - if yyl4452 > cap(yyv4452) { - - yyrg4452 := len(yyv4452) > 0 - yyv24452 := yyv4452 - yyrl4452, yyrt4452 = z.DecInferLen(yyl4452, z.DecBasicHandle().MaxInitLen, 176) - if yyrt4452 { - if yyrl4452 <= cap(yyv4452) { - yyv4452 = yyv4452[:yyrl4452] - } else { - yyv4452 = make([]Volume, yyrl4452) - } - } else { - yyv4452 = make([]Volume, yyrl4452) - } - yyc4452 = true - yyrr4452 = len(yyv4452) - if yyrg4452 { - copy(yyv4452, yyv24452) - } - } else if yyl4452 != len(yyv4452) { - yyv4452 = yyv4452[:yyl4452] - yyc4452 = true - } - yyj4452 := 0 - for ; yyj4452 < yyrr4452; yyj4452++ { - yyh4452.ElemContainerState(yyj4452) - if r.TryDecodeAsNil() { - yyv4452[yyj4452] = Volume{} - } else { - yyv4453 := &yyv4452[yyj4452] - yyv4453.CodecDecodeSelf(d) - } - - } - if yyrt4452 { - for ; yyj4452 < yyl4452; yyj4452++ { - yyv4452 = append(yyv4452, Volume{}) - yyh4452.ElemContainerState(yyj4452) - if r.TryDecodeAsNil() { - yyv4452[yyj4452] = Volume{} - } else { - yyv4454 := &yyv4452[yyj4452] - yyv4454.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4452 := 0 - for ; !r.CheckBreak(); yyj4452++ { - - if yyj4452 >= len(yyv4452) { - yyv4452 = append(yyv4452, Volume{}) // var yyz4452 Volume - yyc4452 = true - } - yyh4452.ElemContainerState(yyj4452) - if yyj4452 < len(yyv4452) { - if r.TryDecodeAsNil() { - yyv4452[yyj4452] = Volume{} - } else { - yyv4455 := &yyv4452[yyj4452] - yyv4455.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4452 < len(yyv4452) { - yyv4452 = yyv4452[:yyj4452] - yyc4452 = true - } else if yyj4452 == 0 && yyv4452 == nil { - yyv4452 = []Volume{} - yyc4452 = true - } - } - yyh4452.End() - if yyc4452 { - *v = yyv4452 - } -} - -func (x codecSelfer1234) encSliceContainer(v []Container, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4456 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4457 := &yyv4456 - yy4457.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4458 := *v - yyh4458, yyl4458 := z.DecSliceHelperStart() - var yyc4458 bool - if yyl4458 == 0 { - if yyv4458 == nil { - yyv4458 = []Container{} - yyc4458 = true - } else if len(yyv4458) != 0 { - yyv4458 = yyv4458[:0] - yyc4458 = true - } - } else if yyl4458 > 0 { - var yyrr4458, yyrl4458 int - var yyrt4458 bool - if yyl4458 > cap(yyv4458) { - - yyrg4458 := len(yyv4458) > 0 - yyv24458 := yyv4458 - yyrl4458, yyrt4458 = z.DecInferLen(yyl4458, z.DecBasicHandle().MaxInitLen, 256) - if yyrt4458 { - if yyrl4458 <= cap(yyv4458) { - yyv4458 = yyv4458[:yyrl4458] - } else { - yyv4458 = make([]Container, yyrl4458) - } - } else { - yyv4458 = make([]Container, yyrl4458) - } - yyc4458 = true - yyrr4458 = len(yyv4458) - if yyrg4458 { - copy(yyv4458, yyv24458) - } - } else if yyl4458 != len(yyv4458) { - yyv4458 = yyv4458[:yyl4458] - yyc4458 = true - } - yyj4458 := 0 - for ; yyj4458 < yyrr4458; yyj4458++ { - yyh4458.ElemContainerState(yyj4458) - if r.TryDecodeAsNil() { - yyv4458[yyj4458] = Container{} - } else { - yyv4459 := &yyv4458[yyj4458] - yyv4459.CodecDecodeSelf(d) - } - - } - if yyrt4458 { - for ; yyj4458 < yyl4458; yyj4458++ { - yyv4458 = append(yyv4458, Container{}) - yyh4458.ElemContainerState(yyj4458) - if r.TryDecodeAsNil() { - yyv4458[yyj4458] = Container{} - } else { - yyv4460 := &yyv4458[yyj4458] - yyv4460.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4458 := 0 - for ; !r.CheckBreak(); yyj4458++ { - - if yyj4458 >= len(yyv4458) { - yyv4458 = append(yyv4458, Container{}) // var yyz4458 Container - yyc4458 = true - } - yyh4458.ElemContainerState(yyj4458) - if yyj4458 < len(yyv4458) { - if r.TryDecodeAsNil() { - yyv4458[yyj4458] = Container{} - } else { - yyv4461 := &yyv4458[yyj4458] - yyv4461.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4458 < len(yyv4458) { - yyv4458 = yyv4458[:yyj4458] - yyc4458 = true - } else if yyj4458 == 0 && yyv4458 == nil { - yyv4458 = []Container{} - yyc4458 = true - } - } - yyh4458.End() - if yyc4458 { - *v = yyv4458 - } -} - -func (x codecSelfer1234) encSliceLocalObjectReference(v []LocalObjectReference, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4462 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4463 := &yyv4462 - yy4463.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4464 := *v - yyh4464, yyl4464 := z.DecSliceHelperStart() - var yyc4464 bool - if yyl4464 == 0 { - if yyv4464 == nil { - yyv4464 = []LocalObjectReference{} - yyc4464 = true - } else if len(yyv4464) != 0 { - yyv4464 = yyv4464[:0] - yyc4464 = true - } - } else if yyl4464 > 0 { - var yyrr4464, yyrl4464 int - var yyrt4464 bool - if yyl4464 > cap(yyv4464) { - - yyrg4464 := len(yyv4464) > 0 - yyv24464 := yyv4464 - yyrl4464, yyrt4464 = z.DecInferLen(yyl4464, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4464 { - if yyrl4464 <= cap(yyv4464) { - yyv4464 = yyv4464[:yyrl4464] - } else { - yyv4464 = make([]LocalObjectReference, yyrl4464) - } - } else { - yyv4464 = make([]LocalObjectReference, yyrl4464) - } - yyc4464 = true - yyrr4464 = len(yyv4464) - if yyrg4464 { - copy(yyv4464, yyv24464) - } - } else if yyl4464 != len(yyv4464) { - yyv4464 = yyv4464[:yyl4464] - yyc4464 = true - } - yyj4464 := 0 - for ; yyj4464 < yyrr4464; yyj4464++ { - yyh4464.ElemContainerState(yyj4464) - if r.TryDecodeAsNil() { - yyv4464[yyj4464] = LocalObjectReference{} - } else { - yyv4465 := &yyv4464[yyj4464] - yyv4465.CodecDecodeSelf(d) - } - - } - if yyrt4464 { - for ; yyj4464 < yyl4464; yyj4464++ { - yyv4464 = append(yyv4464, LocalObjectReference{}) - yyh4464.ElemContainerState(yyj4464) - if r.TryDecodeAsNil() { - yyv4464[yyj4464] = LocalObjectReference{} - } else { - yyv4466 := &yyv4464[yyj4464] - yyv4466.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4464 := 0 - for ; !r.CheckBreak(); yyj4464++ { - - if yyj4464 >= len(yyv4464) { - yyv4464 = append(yyv4464, LocalObjectReference{}) // var yyz4464 LocalObjectReference - yyc4464 = true - } - yyh4464.ElemContainerState(yyj4464) - if yyj4464 < len(yyv4464) { - if r.TryDecodeAsNil() { - yyv4464[yyj4464] = LocalObjectReference{} - } else { - yyv4467 := &yyv4464[yyj4464] - yyv4467.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4464 < len(yyv4464) { - yyv4464 = yyv4464[:yyj4464] - yyc4464 = true - } else if yyj4464 == 0 && yyv4464 == nil { - yyv4464 = []LocalObjectReference{} - yyc4464 = true - } - } - yyh4464.End() - if yyc4464 { - *v = yyv4464 - } -} - -func (x codecSelfer1234) encSlicePodCondition(v []PodCondition, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4468 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4469 := &yyv4468 - yy4469.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4470 := *v - yyh4470, yyl4470 := z.DecSliceHelperStart() - var yyc4470 bool - if yyl4470 == 0 { - if yyv4470 == nil { - yyv4470 = []PodCondition{} - yyc4470 = true - } else if len(yyv4470) != 0 { - yyv4470 = yyv4470[:0] - yyc4470 = true - } - } else if yyl4470 > 0 { - var yyrr4470, yyrl4470 int - var yyrt4470 bool - if yyl4470 > cap(yyv4470) { - - yyrg4470 := len(yyv4470) > 0 - yyv24470 := yyv4470 - yyrl4470, yyrt4470 = z.DecInferLen(yyl4470, z.DecBasicHandle().MaxInitLen, 112) - if yyrt4470 { - if yyrl4470 <= cap(yyv4470) { - yyv4470 = yyv4470[:yyrl4470] - } else { - yyv4470 = make([]PodCondition, yyrl4470) - } - } else { - yyv4470 = make([]PodCondition, yyrl4470) - } - yyc4470 = true - yyrr4470 = len(yyv4470) - if yyrg4470 { - copy(yyv4470, yyv24470) - } - } else if yyl4470 != len(yyv4470) { - yyv4470 = yyv4470[:yyl4470] - yyc4470 = true - } - yyj4470 := 0 - for ; yyj4470 < yyrr4470; yyj4470++ { - yyh4470.ElemContainerState(yyj4470) - if r.TryDecodeAsNil() { - yyv4470[yyj4470] = PodCondition{} - } else { - yyv4471 := &yyv4470[yyj4470] - yyv4471.CodecDecodeSelf(d) - } - - } - if yyrt4470 { - for ; yyj4470 < yyl4470; yyj4470++ { - yyv4470 = append(yyv4470, PodCondition{}) - yyh4470.ElemContainerState(yyj4470) - if r.TryDecodeAsNil() { - yyv4470[yyj4470] = PodCondition{} - } else { - yyv4472 := &yyv4470[yyj4470] - yyv4472.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4470 := 0 - for ; !r.CheckBreak(); yyj4470++ { - - if yyj4470 >= len(yyv4470) { - yyv4470 = append(yyv4470, PodCondition{}) // var yyz4470 PodCondition - yyc4470 = true - } - yyh4470.ElemContainerState(yyj4470) - if yyj4470 < len(yyv4470) { - if r.TryDecodeAsNil() { - yyv4470[yyj4470] = PodCondition{} - } else { - yyv4473 := &yyv4470[yyj4470] - yyv4473.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4470 < len(yyv4470) { - yyv4470 = yyv4470[:yyj4470] - yyc4470 = true - } else if yyj4470 == 0 && yyv4470 == nil { - yyv4470 = []PodCondition{} - yyc4470 = true - } - } - yyh4470.End() - if yyc4470 { - *v = yyv4470 - } -} - -func (x codecSelfer1234) encSliceContainerStatus(v []ContainerStatus, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4474 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4475 := &yyv4474 - yy4475.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4476 := *v - yyh4476, yyl4476 := z.DecSliceHelperStart() - var yyc4476 bool - if yyl4476 == 0 { - if yyv4476 == nil { - yyv4476 = []ContainerStatus{} - yyc4476 = true - } else if len(yyv4476) != 0 { - yyv4476 = yyv4476[:0] - yyc4476 = true - } - } else if yyl4476 > 0 { - var yyrr4476, yyrl4476 int - var yyrt4476 bool - if yyl4476 > cap(yyv4476) { - - yyrg4476 := len(yyv4476) > 0 - yyv24476 := yyv4476 - yyrl4476, yyrt4476 = z.DecInferLen(yyl4476, z.DecBasicHandle().MaxInitLen, 120) - if yyrt4476 { - if yyrl4476 <= cap(yyv4476) { - yyv4476 = yyv4476[:yyrl4476] - } else { - yyv4476 = make([]ContainerStatus, yyrl4476) - } - } else { - yyv4476 = make([]ContainerStatus, yyrl4476) - } - yyc4476 = true - yyrr4476 = len(yyv4476) - if yyrg4476 { - copy(yyv4476, yyv24476) - } - } else if yyl4476 != len(yyv4476) { - yyv4476 = yyv4476[:yyl4476] - yyc4476 = true - } - yyj4476 := 0 - for ; yyj4476 < yyrr4476; yyj4476++ { - yyh4476.ElemContainerState(yyj4476) - if r.TryDecodeAsNil() { - yyv4476[yyj4476] = ContainerStatus{} - } else { - yyv4477 := &yyv4476[yyj4476] - yyv4477.CodecDecodeSelf(d) - } - - } - if yyrt4476 { - for ; yyj4476 < yyl4476; yyj4476++ { - yyv4476 = append(yyv4476, ContainerStatus{}) - yyh4476.ElemContainerState(yyj4476) - if r.TryDecodeAsNil() { - yyv4476[yyj4476] = ContainerStatus{} - } else { - yyv4478 := &yyv4476[yyj4476] - yyv4478.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4476 := 0 - for ; !r.CheckBreak(); yyj4476++ { - - if yyj4476 >= len(yyv4476) { - yyv4476 = append(yyv4476, ContainerStatus{}) // var yyz4476 ContainerStatus - yyc4476 = true - } - yyh4476.ElemContainerState(yyj4476) - if yyj4476 < len(yyv4476) { - if r.TryDecodeAsNil() { - yyv4476[yyj4476] = ContainerStatus{} - } else { - yyv4479 := &yyv4476[yyj4476] - yyv4479.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4476 < len(yyv4476) { - yyv4476 = yyv4476[:yyj4476] - yyc4476 = true - } else if yyj4476 == 0 && yyv4476 == nil { - yyv4476 = []ContainerStatus{} - yyc4476 = true - } - } - yyh4476.End() - if yyc4476 { - *v = yyv4476 - } -} - -func (x codecSelfer1234) encSlicePod(v []Pod, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4480 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4481 := &yyv4480 - yy4481.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4482 := *v - yyh4482, yyl4482 := z.DecSliceHelperStart() - var yyc4482 bool - if yyl4482 == 0 { - if yyv4482 == nil { - yyv4482 = []Pod{} - yyc4482 = true - } else if len(yyv4482) != 0 { - yyv4482 = yyv4482[:0] - yyc4482 = true - } - } else if yyl4482 > 0 { - var yyrr4482, yyrl4482 int - var yyrt4482 bool - if yyl4482 > cap(yyv4482) { - - yyrg4482 := len(yyv4482) > 0 - yyv24482 := yyv4482 - yyrl4482, yyrt4482 = z.DecInferLen(yyl4482, z.DecBasicHandle().MaxInitLen, 648) - if yyrt4482 { - if yyrl4482 <= cap(yyv4482) { - yyv4482 = yyv4482[:yyrl4482] - } else { - yyv4482 = make([]Pod, yyrl4482) - } - } else { - yyv4482 = make([]Pod, yyrl4482) - } - yyc4482 = true - yyrr4482 = len(yyv4482) - if yyrg4482 { - copy(yyv4482, yyv24482) - } - } else if yyl4482 != len(yyv4482) { - yyv4482 = yyv4482[:yyl4482] - yyc4482 = true - } - yyj4482 := 0 - for ; yyj4482 < yyrr4482; yyj4482++ { - yyh4482.ElemContainerState(yyj4482) - if r.TryDecodeAsNil() { - yyv4482[yyj4482] = Pod{} - } else { - yyv4483 := &yyv4482[yyj4482] - yyv4483.CodecDecodeSelf(d) - } - - } - if yyrt4482 { - for ; yyj4482 < yyl4482; yyj4482++ { - yyv4482 = append(yyv4482, Pod{}) - yyh4482.ElemContainerState(yyj4482) - if r.TryDecodeAsNil() { - yyv4482[yyj4482] = Pod{} - } else { - yyv4484 := &yyv4482[yyj4482] - yyv4484.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4482 := 0 - for ; !r.CheckBreak(); yyj4482++ { - - if yyj4482 >= len(yyv4482) { - yyv4482 = append(yyv4482, Pod{}) // var yyz4482 Pod - yyc4482 = true - } - yyh4482.ElemContainerState(yyj4482) - if yyj4482 < len(yyv4482) { - if r.TryDecodeAsNil() { - yyv4482[yyj4482] = Pod{} - } else { - yyv4485 := &yyv4482[yyj4482] - yyv4485.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4482 < len(yyv4482) { - yyv4482 = yyv4482[:yyj4482] - yyc4482 = true - } else if yyj4482 == 0 && yyv4482 == nil { - yyv4482 = []Pod{} - yyc4482 = true - } - } - yyh4482.End() - if yyc4482 { - *v = yyv4482 - } -} - -func (x codecSelfer1234) encSlicePodTemplate(v []PodTemplate, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4486 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4487 := &yyv4486 - yy4487.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4488 := *v - yyh4488, yyl4488 := z.DecSliceHelperStart() - var yyc4488 bool - if yyl4488 == 0 { - if yyv4488 == nil { - yyv4488 = []PodTemplate{} - yyc4488 = true - } else if len(yyv4488) != 0 { - yyv4488 = yyv4488[:0] - yyc4488 = true - } - } else if yyl4488 > 0 { - var yyrr4488, yyrl4488 int - var yyrt4488 bool - if yyl4488 > cap(yyv4488) { - - yyrg4488 := len(yyv4488) > 0 - yyv24488 := yyv4488 - yyrl4488, yyrt4488 = z.DecInferLen(yyl4488, z.DecBasicHandle().MaxInitLen, 696) - if yyrt4488 { - if yyrl4488 <= cap(yyv4488) { - yyv4488 = yyv4488[:yyrl4488] - } else { - yyv4488 = make([]PodTemplate, yyrl4488) - } - } else { - yyv4488 = make([]PodTemplate, yyrl4488) - } - yyc4488 = true - yyrr4488 = len(yyv4488) - if yyrg4488 { - copy(yyv4488, yyv24488) - } - } else if yyl4488 != len(yyv4488) { - yyv4488 = yyv4488[:yyl4488] - yyc4488 = true - } - yyj4488 := 0 - for ; yyj4488 < yyrr4488; yyj4488++ { - yyh4488.ElemContainerState(yyj4488) - if r.TryDecodeAsNil() { - yyv4488[yyj4488] = PodTemplate{} - } else { - yyv4489 := &yyv4488[yyj4488] - yyv4489.CodecDecodeSelf(d) - } - - } - if yyrt4488 { - for ; yyj4488 < yyl4488; yyj4488++ { - yyv4488 = append(yyv4488, PodTemplate{}) - yyh4488.ElemContainerState(yyj4488) - if r.TryDecodeAsNil() { - yyv4488[yyj4488] = PodTemplate{} - } else { - yyv4490 := &yyv4488[yyj4488] - yyv4490.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4488 := 0 - for ; !r.CheckBreak(); yyj4488++ { - - if yyj4488 >= len(yyv4488) { - yyv4488 = append(yyv4488, PodTemplate{}) // var yyz4488 PodTemplate - yyc4488 = true - } - yyh4488.ElemContainerState(yyj4488) - if yyj4488 < len(yyv4488) { - if r.TryDecodeAsNil() { - yyv4488[yyj4488] = PodTemplate{} - } else { - yyv4491 := &yyv4488[yyj4488] - yyv4491.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4488 < len(yyv4488) { - yyv4488 = yyv4488[:yyj4488] - yyc4488 = true - } else if yyj4488 == 0 && yyv4488 == nil { - yyv4488 = []PodTemplate{} - yyc4488 = true - } - } - yyh4488.End() - if yyc4488 { - *v = yyv4488 - } -} - -func (x codecSelfer1234) encSliceReplicationController(v []ReplicationController, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4492 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4493 := &yyv4492 - yy4493.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4494 := *v - yyh4494, yyl4494 := z.DecSliceHelperStart() - var yyc4494 bool - if yyl4494 == 0 { - if yyv4494 == nil { - yyv4494 = []ReplicationController{} - yyc4494 = true - } else if len(yyv4494) != 0 { - yyv4494 = yyv4494[:0] - yyc4494 = true - } - } else if yyl4494 > 0 { - var yyrr4494, yyrl4494 int - var yyrt4494 bool - if yyl4494 > cap(yyv4494) { - - yyrg4494 := len(yyv4494) > 0 - yyv24494 := yyv4494 - yyrl4494, yyrt4494 = z.DecInferLen(yyl4494, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4494 { - if yyrl4494 <= cap(yyv4494) { - yyv4494 = yyv4494[:yyrl4494] - } else { - yyv4494 = make([]ReplicationController, yyrl4494) - } - } else { - yyv4494 = make([]ReplicationController, yyrl4494) - } - yyc4494 = true - yyrr4494 = len(yyv4494) - if yyrg4494 { - copy(yyv4494, yyv24494) - } - } else if yyl4494 != len(yyv4494) { - yyv4494 = yyv4494[:yyl4494] - yyc4494 = true - } - yyj4494 := 0 - for ; yyj4494 < yyrr4494; yyj4494++ { - yyh4494.ElemContainerState(yyj4494) - if r.TryDecodeAsNil() { - yyv4494[yyj4494] = ReplicationController{} - } else { - yyv4495 := &yyv4494[yyj4494] - yyv4495.CodecDecodeSelf(d) - } - - } - if yyrt4494 { - for ; yyj4494 < yyl4494; yyj4494++ { - yyv4494 = append(yyv4494, ReplicationController{}) - yyh4494.ElemContainerState(yyj4494) - if r.TryDecodeAsNil() { - yyv4494[yyj4494] = ReplicationController{} - } else { - yyv4496 := &yyv4494[yyj4494] - yyv4496.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4494 := 0 - for ; !r.CheckBreak(); yyj4494++ { - - if yyj4494 >= len(yyv4494) { - yyv4494 = append(yyv4494, ReplicationController{}) // var yyz4494 ReplicationController - yyc4494 = true - } - yyh4494.ElemContainerState(yyj4494) - if yyj4494 < len(yyv4494) { - if r.TryDecodeAsNil() { - yyv4494[yyj4494] = ReplicationController{} - } else { - yyv4497 := &yyv4494[yyj4494] - yyv4497.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4494 < len(yyv4494) { - yyv4494 = yyv4494[:yyj4494] - yyc4494 = true - } else if yyj4494 == 0 && yyv4494 == nil { - yyv4494 = []ReplicationController{} - yyc4494 = true - } - } - yyh4494.End() - if yyc4494 { - *v = yyv4494 - } -} - -func (x codecSelfer1234) encSliceLoadBalancerIngress(v []LoadBalancerIngress, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4498 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4499 := &yyv4498 - yy4499.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4500 := *v - yyh4500, yyl4500 := z.DecSliceHelperStart() - var yyc4500 bool - if yyl4500 == 0 { - if yyv4500 == nil { - yyv4500 = []LoadBalancerIngress{} - yyc4500 = true - } else if len(yyv4500) != 0 { - yyv4500 = yyv4500[:0] - yyc4500 = true - } - } else if yyl4500 > 0 { - var yyrr4500, yyrl4500 int - var yyrt4500 bool - if yyl4500 > cap(yyv4500) { - - yyrg4500 := len(yyv4500) > 0 - yyv24500 := yyv4500 - yyrl4500, yyrt4500 = z.DecInferLen(yyl4500, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4500 { - if yyrl4500 <= cap(yyv4500) { - yyv4500 = yyv4500[:yyrl4500] - } else { - yyv4500 = make([]LoadBalancerIngress, yyrl4500) - } - } else { - yyv4500 = make([]LoadBalancerIngress, yyrl4500) - } - yyc4500 = true - yyrr4500 = len(yyv4500) - if yyrg4500 { - copy(yyv4500, yyv24500) - } - } else if yyl4500 != len(yyv4500) { - yyv4500 = yyv4500[:yyl4500] - yyc4500 = true - } - yyj4500 := 0 - for ; yyj4500 < yyrr4500; yyj4500++ { - yyh4500.ElemContainerState(yyj4500) - if r.TryDecodeAsNil() { - yyv4500[yyj4500] = LoadBalancerIngress{} - } else { - yyv4501 := &yyv4500[yyj4500] - yyv4501.CodecDecodeSelf(d) - } - - } - if yyrt4500 { - for ; yyj4500 < yyl4500; yyj4500++ { - yyv4500 = append(yyv4500, LoadBalancerIngress{}) - yyh4500.ElemContainerState(yyj4500) - if r.TryDecodeAsNil() { - yyv4500[yyj4500] = LoadBalancerIngress{} - } else { - yyv4502 := &yyv4500[yyj4500] - yyv4502.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4500 := 0 - for ; !r.CheckBreak(); yyj4500++ { - - if yyj4500 >= len(yyv4500) { - yyv4500 = append(yyv4500, LoadBalancerIngress{}) // var yyz4500 LoadBalancerIngress - yyc4500 = true - } - yyh4500.ElemContainerState(yyj4500) - if yyj4500 < len(yyv4500) { - if r.TryDecodeAsNil() { - yyv4500[yyj4500] = LoadBalancerIngress{} - } else { - yyv4503 := &yyv4500[yyj4500] - yyv4503.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4500 < len(yyv4500) { - yyv4500 = yyv4500[:yyj4500] - yyc4500 = true - } else if yyj4500 == 0 && yyv4500 == nil { - yyv4500 = []LoadBalancerIngress{} - yyc4500 = true - } - } - yyh4500.End() - if yyc4500 { - *v = yyv4500 - } -} - -func (x codecSelfer1234) encSliceServicePort(v []ServicePort, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4504 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4505 := &yyv4504 - yy4505.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4506 := *v - yyh4506, yyl4506 := z.DecSliceHelperStart() - var yyc4506 bool - if yyl4506 == 0 { - if yyv4506 == nil { - yyv4506 = []ServicePort{} - yyc4506 = true - } else if len(yyv4506) != 0 { - yyv4506 = yyv4506[:0] - yyc4506 = true - } - } else if yyl4506 > 0 { - var yyrr4506, yyrl4506 int - var yyrt4506 bool - if yyl4506 > cap(yyv4506) { - - yyrg4506 := len(yyv4506) > 0 - yyv24506 := yyv4506 - yyrl4506, yyrt4506 = z.DecInferLen(yyl4506, z.DecBasicHandle().MaxInitLen, 80) - if yyrt4506 { - if yyrl4506 <= cap(yyv4506) { - yyv4506 = yyv4506[:yyrl4506] - } else { - yyv4506 = make([]ServicePort, yyrl4506) - } - } else { - yyv4506 = make([]ServicePort, yyrl4506) - } - yyc4506 = true - yyrr4506 = len(yyv4506) - if yyrg4506 { - copy(yyv4506, yyv24506) - } - } else if yyl4506 != len(yyv4506) { - yyv4506 = yyv4506[:yyl4506] - yyc4506 = true - } - yyj4506 := 0 - for ; yyj4506 < yyrr4506; yyj4506++ { - yyh4506.ElemContainerState(yyj4506) - if r.TryDecodeAsNil() { - yyv4506[yyj4506] = ServicePort{} - } else { - yyv4507 := &yyv4506[yyj4506] - yyv4507.CodecDecodeSelf(d) - } - - } - if yyrt4506 { - for ; yyj4506 < yyl4506; yyj4506++ { - yyv4506 = append(yyv4506, ServicePort{}) - yyh4506.ElemContainerState(yyj4506) - if r.TryDecodeAsNil() { - yyv4506[yyj4506] = ServicePort{} - } else { - yyv4508 := &yyv4506[yyj4506] - yyv4508.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4506 := 0 - for ; !r.CheckBreak(); yyj4506++ { - - if yyj4506 >= len(yyv4506) { - yyv4506 = append(yyv4506, ServicePort{}) // var yyz4506 ServicePort - yyc4506 = true - } - yyh4506.ElemContainerState(yyj4506) - if yyj4506 < len(yyv4506) { - if r.TryDecodeAsNil() { - yyv4506[yyj4506] = ServicePort{} - } else { - yyv4509 := &yyv4506[yyj4506] - yyv4509.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4506 < len(yyv4506) { - yyv4506 = yyv4506[:yyj4506] - yyc4506 = true - } else if yyj4506 == 0 && yyv4506 == nil { - yyv4506 = []ServicePort{} - yyc4506 = true - } - } - yyh4506.End() - if yyc4506 { - *v = yyv4506 - } -} - -func (x codecSelfer1234) encSliceService(v []Service, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4510 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4511 := &yyv4510 - yy4511.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4512 := *v - yyh4512, yyl4512 := z.DecSliceHelperStart() - var yyc4512 bool - if yyl4512 == 0 { - if yyv4512 == nil { - yyv4512 = []Service{} - yyc4512 = true - } else if len(yyv4512) != 0 { - yyv4512 = yyv4512[:0] - yyc4512 = true - } - } else if yyl4512 > 0 { - var yyrr4512, yyrl4512 int - var yyrt4512 bool - if yyl4512 > cap(yyv4512) { - - yyrg4512 := len(yyv4512) > 0 - yyv24512 := yyv4512 - yyrl4512, yyrt4512 = z.DecInferLen(yyl4512, z.DecBasicHandle().MaxInitLen, 432) - if yyrt4512 { - if yyrl4512 <= cap(yyv4512) { - yyv4512 = yyv4512[:yyrl4512] - } else { - yyv4512 = make([]Service, yyrl4512) - } - } else { - yyv4512 = make([]Service, yyrl4512) - } - yyc4512 = true - yyrr4512 = len(yyv4512) - if yyrg4512 { - copy(yyv4512, yyv24512) - } - } else if yyl4512 != len(yyv4512) { - yyv4512 = yyv4512[:yyl4512] - yyc4512 = true - } - yyj4512 := 0 - for ; yyj4512 < yyrr4512; yyj4512++ { - yyh4512.ElemContainerState(yyj4512) - if r.TryDecodeAsNil() { - yyv4512[yyj4512] = Service{} - } else { - yyv4513 := &yyv4512[yyj4512] - yyv4513.CodecDecodeSelf(d) - } - - } - if yyrt4512 { - for ; yyj4512 < yyl4512; yyj4512++ { - yyv4512 = append(yyv4512, Service{}) - yyh4512.ElemContainerState(yyj4512) - if r.TryDecodeAsNil() { - yyv4512[yyj4512] = Service{} - } else { - yyv4514 := &yyv4512[yyj4512] - yyv4514.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4512 := 0 - for ; !r.CheckBreak(); yyj4512++ { - - if yyj4512 >= len(yyv4512) { - yyv4512 = append(yyv4512, Service{}) // var yyz4512 Service - yyc4512 = true - } - yyh4512.ElemContainerState(yyj4512) - if yyj4512 < len(yyv4512) { - if r.TryDecodeAsNil() { - yyv4512[yyj4512] = Service{} - } else { - yyv4515 := &yyv4512[yyj4512] - yyv4515.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4512 < len(yyv4512) { - yyv4512 = yyv4512[:yyj4512] - yyc4512 = true - } else if yyj4512 == 0 && yyv4512 == nil { - yyv4512 = []Service{} - yyc4512 = true - } - } - yyh4512.End() - if yyc4512 { - *v = yyv4512 - } -} - -func (x codecSelfer1234) encSliceObjectReference(v []ObjectReference, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4516 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4517 := &yyv4516 - yy4517.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4518 := *v - yyh4518, yyl4518 := z.DecSliceHelperStart() - var yyc4518 bool - if yyl4518 == 0 { - if yyv4518 == nil { - yyv4518 = []ObjectReference{} - yyc4518 = true - } else if len(yyv4518) != 0 { - yyv4518 = yyv4518[:0] - yyc4518 = true - } - } else if yyl4518 > 0 { - var yyrr4518, yyrl4518 int - var yyrt4518 bool - if yyl4518 > cap(yyv4518) { - - yyrg4518 := len(yyv4518) > 0 - yyv24518 := yyv4518 - yyrl4518, yyrt4518 = z.DecInferLen(yyl4518, z.DecBasicHandle().MaxInitLen, 112) - if yyrt4518 { - if yyrl4518 <= cap(yyv4518) { - yyv4518 = yyv4518[:yyrl4518] - } else { - yyv4518 = make([]ObjectReference, yyrl4518) - } - } else { - yyv4518 = make([]ObjectReference, yyrl4518) - } - yyc4518 = true - yyrr4518 = len(yyv4518) - if yyrg4518 { - copy(yyv4518, yyv24518) - } - } else if yyl4518 != len(yyv4518) { - yyv4518 = yyv4518[:yyl4518] - yyc4518 = true - } - yyj4518 := 0 - for ; yyj4518 < yyrr4518; yyj4518++ { - yyh4518.ElemContainerState(yyj4518) - if r.TryDecodeAsNil() { - yyv4518[yyj4518] = ObjectReference{} - } else { - yyv4519 := &yyv4518[yyj4518] - yyv4519.CodecDecodeSelf(d) - } - - } - if yyrt4518 { - for ; yyj4518 < yyl4518; yyj4518++ { - yyv4518 = append(yyv4518, ObjectReference{}) - yyh4518.ElemContainerState(yyj4518) - if r.TryDecodeAsNil() { - yyv4518[yyj4518] = ObjectReference{} - } else { - yyv4520 := &yyv4518[yyj4518] - yyv4520.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4518 := 0 - for ; !r.CheckBreak(); yyj4518++ { - - if yyj4518 >= len(yyv4518) { - yyv4518 = append(yyv4518, ObjectReference{}) // var yyz4518 ObjectReference - yyc4518 = true - } - yyh4518.ElemContainerState(yyj4518) - if yyj4518 < len(yyv4518) { - if r.TryDecodeAsNil() { - yyv4518[yyj4518] = ObjectReference{} - } else { - yyv4521 := &yyv4518[yyj4518] - yyv4521.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4518 < len(yyv4518) { - yyv4518 = yyv4518[:yyj4518] - yyc4518 = true - } else if yyj4518 == 0 && yyv4518 == nil { - yyv4518 = []ObjectReference{} - yyc4518 = true - } - } - yyh4518.End() - if yyc4518 { - *v = yyv4518 - } -} - -func (x codecSelfer1234) encSliceServiceAccount(v []ServiceAccount, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4522 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4523 := &yyv4522 - yy4523.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4524 := *v - yyh4524, yyl4524 := z.DecSliceHelperStart() - var yyc4524 bool - if yyl4524 == 0 { - if yyv4524 == nil { - yyv4524 = []ServiceAccount{} - yyc4524 = true - } else if len(yyv4524) != 0 { - yyv4524 = yyv4524[:0] - yyc4524 = true - } - } else if yyl4524 > 0 { - var yyrr4524, yyrl4524 int - var yyrt4524 bool - if yyl4524 > cap(yyv4524) { - - yyrg4524 := len(yyv4524) > 0 - yyv24524 := yyv4524 - yyrl4524, yyrt4524 = z.DecInferLen(yyl4524, z.DecBasicHandle().MaxInitLen, 288) - if yyrt4524 { - if yyrl4524 <= cap(yyv4524) { - yyv4524 = yyv4524[:yyrl4524] - } else { - yyv4524 = make([]ServiceAccount, yyrl4524) - } - } else { - yyv4524 = make([]ServiceAccount, yyrl4524) - } - yyc4524 = true - yyrr4524 = len(yyv4524) - if yyrg4524 { - copy(yyv4524, yyv24524) - } - } else if yyl4524 != len(yyv4524) { - yyv4524 = yyv4524[:yyl4524] - yyc4524 = true - } - yyj4524 := 0 - for ; yyj4524 < yyrr4524; yyj4524++ { - yyh4524.ElemContainerState(yyj4524) - if r.TryDecodeAsNil() { - yyv4524[yyj4524] = ServiceAccount{} - } else { - yyv4525 := &yyv4524[yyj4524] - yyv4525.CodecDecodeSelf(d) - } - - } - if yyrt4524 { - for ; yyj4524 < yyl4524; yyj4524++ { - yyv4524 = append(yyv4524, ServiceAccount{}) - yyh4524.ElemContainerState(yyj4524) - if r.TryDecodeAsNil() { - yyv4524[yyj4524] = ServiceAccount{} - } else { - yyv4526 := &yyv4524[yyj4524] - yyv4526.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4524 := 0 - for ; !r.CheckBreak(); yyj4524++ { - - if yyj4524 >= len(yyv4524) { - yyv4524 = append(yyv4524, ServiceAccount{}) // var yyz4524 ServiceAccount - yyc4524 = true - } - yyh4524.ElemContainerState(yyj4524) - if yyj4524 < len(yyv4524) { - if r.TryDecodeAsNil() { - yyv4524[yyj4524] = ServiceAccount{} - } else { - yyv4527 := &yyv4524[yyj4524] - yyv4527.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4524 < len(yyv4524) { - yyv4524 = yyv4524[:yyj4524] - yyc4524 = true - } else if yyj4524 == 0 && yyv4524 == nil { - yyv4524 = []ServiceAccount{} - yyc4524 = true - } - } - yyh4524.End() - if yyc4524 { - *v = yyv4524 - } -} - -func (x codecSelfer1234) encSliceEndpointSubset(v []EndpointSubset, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4528 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4529 := &yyv4528 - yy4529.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4530 := *v - yyh4530, yyl4530 := z.DecSliceHelperStart() - var yyc4530 bool - if yyl4530 == 0 { - if yyv4530 == nil { - yyv4530 = []EndpointSubset{} - yyc4530 = true - } else if len(yyv4530) != 0 { - yyv4530 = yyv4530[:0] - yyc4530 = true - } - } else if yyl4530 > 0 { - var yyrr4530, yyrl4530 int - var yyrt4530 bool - if yyl4530 > cap(yyv4530) { - - yyrg4530 := len(yyv4530) > 0 - yyv24530 := yyv4530 - yyrl4530, yyrt4530 = z.DecInferLen(yyl4530, z.DecBasicHandle().MaxInitLen, 72) - if yyrt4530 { - if yyrl4530 <= cap(yyv4530) { - yyv4530 = yyv4530[:yyrl4530] - } else { - yyv4530 = make([]EndpointSubset, yyrl4530) - } - } else { - yyv4530 = make([]EndpointSubset, yyrl4530) - } - yyc4530 = true - yyrr4530 = len(yyv4530) - if yyrg4530 { - copy(yyv4530, yyv24530) - } - } else if yyl4530 != len(yyv4530) { - yyv4530 = yyv4530[:yyl4530] - yyc4530 = true - } - yyj4530 := 0 - for ; yyj4530 < yyrr4530; yyj4530++ { - yyh4530.ElemContainerState(yyj4530) - if r.TryDecodeAsNil() { - yyv4530[yyj4530] = EndpointSubset{} - } else { - yyv4531 := &yyv4530[yyj4530] - yyv4531.CodecDecodeSelf(d) - } - - } - if yyrt4530 { - for ; yyj4530 < yyl4530; yyj4530++ { - yyv4530 = append(yyv4530, EndpointSubset{}) - yyh4530.ElemContainerState(yyj4530) - if r.TryDecodeAsNil() { - yyv4530[yyj4530] = EndpointSubset{} - } else { - yyv4532 := &yyv4530[yyj4530] - yyv4532.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4530 := 0 - for ; !r.CheckBreak(); yyj4530++ { - - if yyj4530 >= len(yyv4530) { - yyv4530 = append(yyv4530, EndpointSubset{}) // var yyz4530 EndpointSubset - yyc4530 = true - } - yyh4530.ElemContainerState(yyj4530) - if yyj4530 < len(yyv4530) { - if r.TryDecodeAsNil() { - yyv4530[yyj4530] = EndpointSubset{} - } else { - yyv4533 := &yyv4530[yyj4530] - yyv4533.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4530 < len(yyv4530) { - yyv4530 = yyv4530[:yyj4530] - yyc4530 = true - } else if yyj4530 == 0 && yyv4530 == nil { - yyv4530 = []EndpointSubset{} - yyc4530 = true - } - } - yyh4530.End() - if yyc4530 { - *v = yyv4530 - } -} - -func (x codecSelfer1234) encSliceEndpointAddress(v []EndpointAddress, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4534 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4535 := &yyv4534 - yy4535.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4536 := *v - yyh4536, yyl4536 := z.DecSliceHelperStart() - var yyc4536 bool - if yyl4536 == 0 { - if yyv4536 == nil { - yyv4536 = []EndpointAddress{} - yyc4536 = true - } else if len(yyv4536) != 0 { - yyv4536 = yyv4536[:0] - yyc4536 = true - } - } else if yyl4536 > 0 { - var yyrr4536, yyrl4536 int - var yyrt4536 bool - if yyl4536 > cap(yyv4536) { - - yyrg4536 := len(yyv4536) > 0 - yyv24536 := yyv4536 - yyrl4536, yyrt4536 = z.DecInferLen(yyl4536, z.DecBasicHandle().MaxInitLen, 48) - if yyrt4536 { - if yyrl4536 <= cap(yyv4536) { - yyv4536 = yyv4536[:yyrl4536] - } else { - yyv4536 = make([]EndpointAddress, yyrl4536) - } - } else { - yyv4536 = make([]EndpointAddress, yyrl4536) - } - yyc4536 = true - yyrr4536 = len(yyv4536) - if yyrg4536 { - copy(yyv4536, yyv24536) - } - } else if yyl4536 != len(yyv4536) { - yyv4536 = yyv4536[:yyl4536] - yyc4536 = true - } - yyj4536 := 0 - for ; yyj4536 < yyrr4536; yyj4536++ { - yyh4536.ElemContainerState(yyj4536) - if r.TryDecodeAsNil() { - yyv4536[yyj4536] = EndpointAddress{} - } else { - yyv4537 := &yyv4536[yyj4536] - yyv4537.CodecDecodeSelf(d) - } - - } - if yyrt4536 { - for ; yyj4536 < yyl4536; yyj4536++ { - yyv4536 = append(yyv4536, EndpointAddress{}) - yyh4536.ElemContainerState(yyj4536) - if r.TryDecodeAsNil() { - yyv4536[yyj4536] = EndpointAddress{} - } else { - yyv4538 := &yyv4536[yyj4536] - yyv4538.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4536 := 0 - for ; !r.CheckBreak(); yyj4536++ { - - if yyj4536 >= len(yyv4536) { - yyv4536 = append(yyv4536, EndpointAddress{}) // var yyz4536 EndpointAddress - yyc4536 = true - } - yyh4536.ElemContainerState(yyj4536) - if yyj4536 < len(yyv4536) { - if r.TryDecodeAsNil() { - yyv4536[yyj4536] = EndpointAddress{} - } else { - yyv4539 := &yyv4536[yyj4536] - yyv4539.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4536 < len(yyv4536) { - yyv4536 = yyv4536[:yyj4536] - yyc4536 = true - } else if yyj4536 == 0 && yyv4536 == nil { - yyv4536 = []EndpointAddress{} - yyc4536 = true - } - } - yyh4536.End() - if yyc4536 { - *v = yyv4536 - } -} - -func (x codecSelfer1234) encSliceEndpointPort(v []EndpointPort, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4540 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4541 := &yyv4540 - yy4541.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4542 := *v - yyh4542, yyl4542 := z.DecSliceHelperStart() - var yyc4542 bool - if yyl4542 == 0 { - if yyv4542 == nil { - yyv4542 = []EndpointPort{} - yyc4542 = true - } else if len(yyv4542) != 0 { - yyv4542 = yyv4542[:0] - yyc4542 = true - } - } else if yyl4542 > 0 { - var yyrr4542, yyrl4542 int - var yyrt4542 bool - if yyl4542 > cap(yyv4542) { - - yyrg4542 := len(yyv4542) > 0 - yyv24542 := yyv4542 - yyrl4542, yyrt4542 = z.DecInferLen(yyl4542, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4542 { - if yyrl4542 <= cap(yyv4542) { - yyv4542 = yyv4542[:yyrl4542] - } else { - yyv4542 = make([]EndpointPort, yyrl4542) - } - } else { - yyv4542 = make([]EndpointPort, yyrl4542) - } - yyc4542 = true - yyrr4542 = len(yyv4542) - if yyrg4542 { - copy(yyv4542, yyv24542) - } - } else if yyl4542 != len(yyv4542) { - yyv4542 = yyv4542[:yyl4542] - yyc4542 = true - } - yyj4542 := 0 - for ; yyj4542 < yyrr4542; yyj4542++ { - yyh4542.ElemContainerState(yyj4542) - if r.TryDecodeAsNil() { - yyv4542[yyj4542] = EndpointPort{} - } else { - yyv4543 := &yyv4542[yyj4542] - yyv4543.CodecDecodeSelf(d) - } - - } - if yyrt4542 { - for ; yyj4542 < yyl4542; yyj4542++ { - yyv4542 = append(yyv4542, EndpointPort{}) - yyh4542.ElemContainerState(yyj4542) - if r.TryDecodeAsNil() { - yyv4542[yyj4542] = EndpointPort{} - } else { - yyv4544 := &yyv4542[yyj4542] - yyv4544.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4542 := 0 - for ; !r.CheckBreak(); yyj4542++ { - - if yyj4542 >= len(yyv4542) { - yyv4542 = append(yyv4542, EndpointPort{}) // var yyz4542 EndpointPort - yyc4542 = true - } - yyh4542.ElemContainerState(yyj4542) - if yyj4542 < len(yyv4542) { - if r.TryDecodeAsNil() { - yyv4542[yyj4542] = EndpointPort{} - } else { - yyv4545 := &yyv4542[yyj4542] - yyv4545.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4542 < len(yyv4542) { - yyv4542 = yyv4542[:yyj4542] - yyc4542 = true - } else if yyj4542 == 0 && yyv4542 == nil { - yyv4542 = []EndpointPort{} - yyc4542 = true - } - } - yyh4542.End() - if yyc4542 { - *v = yyv4542 - } -} - -func (x codecSelfer1234) encSliceEndpoints(v []Endpoints, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4546 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4547 := &yyv4546 - yy4547.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - - yyv4548 := *v - yyh4548, yyl4548 := z.DecSliceHelperStart() - var yyc4548 bool - if yyl4548 == 0 { - if yyv4548 == nil { - yyv4548 = []Endpoints{} - yyc4548 = true - } else if len(yyv4548) != 0 { - yyv4548 = yyv4548[:0] - yyc4548 = true - } - } else if yyl4548 > 0 { - var yyrr4548, yyrl4548 int - var yyrt4548 bool - if yyl4548 > cap(yyv4548) { - - yyrg4548 := len(yyv4548) > 0 - yyv24548 := yyv4548 - yyrl4548, yyrt4548 = z.DecInferLen(yyl4548, z.DecBasicHandle().MaxInitLen, 264) - if yyrt4548 { - if yyrl4548 <= cap(yyv4548) { - yyv4548 = yyv4548[:yyrl4548] - } else { - yyv4548 = make([]Endpoints, yyrl4548) - } - } else { - yyv4548 = make([]Endpoints, yyrl4548) - } - yyc4548 = true - yyrr4548 = len(yyv4548) - if yyrg4548 { - copy(yyv4548, yyv24548) - } - } else if yyl4548 != len(yyv4548) { - yyv4548 = yyv4548[:yyl4548] - yyc4548 = true - } - yyj4548 := 0 - for ; yyj4548 < yyrr4548; yyj4548++ { - yyh4548.ElemContainerState(yyj4548) - if r.TryDecodeAsNil() { - yyv4548[yyj4548] = Endpoints{} - } else { - yyv4549 := &yyv4548[yyj4548] - yyv4549.CodecDecodeSelf(d) - } - - } - if yyrt4548 { - for ; yyj4548 < yyl4548; yyj4548++ { - yyv4548 = append(yyv4548, Endpoints{}) - yyh4548.ElemContainerState(yyj4548) - if r.TryDecodeAsNil() { - yyv4548[yyj4548] = Endpoints{} - } else { - yyv4550 := &yyv4548[yyj4548] - yyv4550.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4548 := 0 - for ; !r.CheckBreak(); yyj4548++ { - - if yyj4548 >= len(yyv4548) { - yyv4548 = append(yyv4548, Endpoints{}) // var yyz4548 Endpoints - yyc4548 = true - } - yyh4548.ElemContainerState(yyj4548) - if yyj4548 < len(yyv4548) { - if r.TryDecodeAsNil() { - yyv4548[yyj4548] = Endpoints{} - } else { - yyv4551 := &yyv4548[yyj4548] - yyv4551.CodecDecodeSelf(d) - } - - } else { - z.DecSwallow() - } - - } - if yyj4548 < len(yyv4548) { - yyv4548 = yyv4548[:yyj4548] - yyc4548 = true - } else if yyj4548 == 0 && yyv4548 == nil { - yyv4548 = []Endpoints{} - yyc4548 = true - } - } - yyh4548.End() - if yyc4548 { - *v = yyv4548 - } -} - -func (x codecSelfer1234) encSliceNodeCondition(v []NodeCondition, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv4552 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4553 := &yyv4552 - yy4553.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yyv4554 := *v yyh4554, yyl4554 := z.DecSliceHelperStart() var yyc4554 bool if yyl4554 == 0 { if yyv4554 == nil { - yyv4554 = []NodeCondition{} + yyv4554 = []Capability{} yyc4554 = true } else if len(yyv4554) != 0 { yyv4554 = yyv4554[:0] @@ -58108,23 +56952,18 @@ func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978. var yyrt4554 bool if yyl4554 > cap(yyv4554) { - yyrg4554 := len(yyv4554) > 0 - yyv24554 := yyv4554 - yyrl4554, yyrt4554 = z.DecInferLen(yyl4554, z.DecBasicHandle().MaxInitLen, 112) + yyrl4554, yyrt4554 = z.DecInferLen(yyl4554, z.DecBasicHandle().MaxInitLen, 16) if yyrt4554 { if yyrl4554 <= cap(yyv4554) { yyv4554 = yyv4554[:yyrl4554] } else { - yyv4554 = make([]NodeCondition, yyrl4554) + yyv4554 = make([]Capability, yyrl4554) } } else { - yyv4554 = make([]NodeCondition, yyrl4554) + yyv4554 = make([]Capability, yyrl4554) } yyc4554 = true yyrr4554 = len(yyv4554) - if yyrg4554 { - copy(yyv4554, yyv24554) - } } else if yyl4554 != len(yyv4554) { yyv4554 = yyv4554[:yyl4554] yyc4554 = true @@ -58133,22 +56972,20 @@ func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978. for ; yyj4554 < yyrr4554; yyj4554++ { yyh4554.ElemContainerState(yyj4554) if r.TryDecodeAsNil() { - yyv4554[yyj4554] = NodeCondition{} + yyv4554[yyj4554] = "" } else { - yyv4555 := &yyv4554[yyj4554] - yyv4555.CodecDecodeSelf(d) + yyv4554[yyj4554] = Capability(r.DecodeString()) } } if yyrt4554 { for ; yyj4554 < yyl4554; yyj4554++ { - yyv4554 = append(yyv4554, NodeCondition{}) + yyv4554 = append(yyv4554, "") yyh4554.ElemContainerState(yyj4554) if r.TryDecodeAsNil() { - yyv4554[yyj4554] = NodeCondition{} + yyv4554[yyj4554] = "" } else { - yyv4556 := &yyv4554[yyj4554] - yyv4556.CodecDecodeSelf(d) + yyv4554[yyj4554] = Capability(r.DecodeString()) } } @@ -58159,16 +56996,15 @@ func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978. for ; !r.CheckBreak(); yyj4554++ { if yyj4554 >= len(yyv4554) { - yyv4554 = append(yyv4554, NodeCondition{}) // var yyz4554 NodeCondition + yyv4554 = append(yyv4554, "") // var yyz4554 Capability yyc4554 = true } yyh4554.ElemContainerState(yyj4554) if yyj4554 < len(yyv4554) { if r.TryDecodeAsNil() { - yyv4554[yyj4554] = NodeCondition{} + yyv4554[yyj4554] = "" } else { - yyv4557 := &yyv4554[yyj4554] - yyv4557.CodecDecodeSelf(d) + yyv4554[yyj4554] = Capability(r.DecodeString()) } } else { @@ -58180,7 +57016,7 @@ func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978. yyv4554 = yyv4554[:yyj4554] yyc4554 = true } else if yyj4554 == 0 && yyv4554 == nil { - yyv4554 = []NodeCondition{} + yyv4554 = []Capability{} yyc4554 = true } } @@ -58190,7 +57026,7 @@ func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978. } } -func (x codecSelfer1234) encSliceNodeAddress(v []NodeAddress, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceContainerPort(v []ContainerPort, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -58203,7 +57039,7 @@ func (x codecSelfer1234) encSliceNodeAddress(v []NodeAddress, e *codec1978.Encod z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceContainerPort(v *[]ContainerPort, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -58213,7 +57049,7 @@ func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Deco var yyc4560 bool if yyl4560 == 0 { if yyv4560 == nil { - yyv4560 = []NodeAddress{} + yyv4560 = []ContainerPort{} yyc4560 = true } else if len(yyv4560) != 0 { yyv4560 = yyv4560[:0] @@ -58226,15 +57062,15 @@ func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Deco yyrg4560 := len(yyv4560) > 0 yyv24560 := yyv4560 - yyrl4560, yyrt4560 = z.DecInferLen(yyl4560, z.DecBasicHandle().MaxInitLen, 32) + yyrl4560, yyrt4560 = z.DecInferLen(yyl4560, z.DecBasicHandle().MaxInitLen, 56) if yyrt4560 { if yyrl4560 <= cap(yyv4560) { yyv4560 = yyv4560[:yyrl4560] } else { - yyv4560 = make([]NodeAddress, yyrl4560) + yyv4560 = make([]ContainerPort, yyrl4560) } } else { - yyv4560 = make([]NodeAddress, yyrl4560) + yyv4560 = make([]ContainerPort, yyrl4560) } yyc4560 = true yyrr4560 = len(yyv4560) @@ -58249,7 +57085,7 @@ func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Deco for ; yyj4560 < yyrr4560; yyj4560++ { yyh4560.ElemContainerState(yyj4560) if r.TryDecodeAsNil() { - yyv4560[yyj4560] = NodeAddress{} + yyv4560[yyj4560] = ContainerPort{} } else { yyv4561 := &yyv4560[yyj4560] yyv4561.CodecDecodeSelf(d) @@ -58258,10 +57094,10 @@ func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Deco } if yyrt4560 { for ; yyj4560 < yyl4560; yyj4560++ { - yyv4560 = append(yyv4560, NodeAddress{}) + yyv4560 = append(yyv4560, ContainerPort{}) yyh4560.ElemContainerState(yyj4560) if r.TryDecodeAsNil() { - yyv4560[yyj4560] = NodeAddress{} + yyv4560[yyj4560] = ContainerPort{} } else { yyv4562 := &yyv4560[yyj4560] yyv4562.CodecDecodeSelf(d) @@ -58275,13 +57111,13 @@ func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Deco for ; !r.CheckBreak(); yyj4560++ { if yyj4560 >= len(yyv4560) { - yyv4560 = append(yyv4560, NodeAddress{}) // var yyz4560 NodeAddress + yyv4560 = append(yyv4560, ContainerPort{}) // var yyz4560 ContainerPort yyc4560 = true } yyh4560.ElemContainerState(yyj4560) if yyj4560 < len(yyv4560) { if r.TryDecodeAsNil() { - yyv4560[yyj4560] = NodeAddress{} + yyv4560[yyj4560] = ContainerPort{} } else { yyv4563 := &yyv4560[yyj4560] yyv4563.CodecDecodeSelf(d) @@ -58296,7 +57132,7 @@ func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Deco yyv4560 = yyv4560[:yyj4560] yyc4560 = true } else if yyj4560 == 0 && yyv4560 == nil { - yyv4560 = []NodeAddress{} + yyv4560 = []ContainerPort{} yyc4560 = true } } @@ -58306,7 +57142,7 @@ func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Deco } } -func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceEnvVar(v []EnvVar, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -58319,7 +57155,7 @@ func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978 z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceEnvVar(v *[]EnvVar, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -58329,7 +57165,7 @@ func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec197 var yyc4566 bool if yyl4566 == 0 { if yyv4566 == nil { - yyv4566 = []ContainerImage{} + yyv4566 = []EnvVar{} yyc4566 = true } else if len(yyv4566) != 0 { yyv4566 = yyv4566[:0] @@ -58342,15 +57178,15 @@ func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec197 yyrg4566 := len(yyv4566) > 0 yyv24566 := yyv4566 - yyrl4566, yyrt4566 = z.DecInferLen(yyl4566, z.DecBasicHandle().MaxInitLen, 32) + yyrl4566, yyrt4566 = z.DecInferLen(yyl4566, z.DecBasicHandle().MaxInitLen, 40) if yyrt4566 { if yyrl4566 <= cap(yyv4566) { yyv4566 = yyv4566[:yyrl4566] } else { - yyv4566 = make([]ContainerImage, yyrl4566) + yyv4566 = make([]EnvVar, yyrl4566) } } else { - yyv4566 = make([]ContainerImage, yyrl4566) + yyv4566 = make([]EnvVar, yyrl4566) } yyc4566 = true yyrr4566 = len(yyv4566) @@ -58365,7 +57201,7 @@ func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec197 for ; yyj4566 < yyrr4566; yyj4566++ { yyh4566.ElemContainerState(yyj4566) if r.TryDecodeAsNil() { - yyv4566[yyj4566] = ContainerImage{} + yyv4566[yyj4566] = EnvVar{} } else { yyv4567 := &yyv4566[yyj4566] yyv4567.CodecDecodeSelf(d) @@ -58374,10 +57210,10 @@ func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec197 } if yyrt4566 { for ; yyj4566 < yyl4566; yyj4566++ { - yyv4566 = append(yyv4566, ContainerImage{}) + yyv4566 = append(yyv4566, EnvVar{}) yyh4566.ElemContainerState(yyj4566) if r.TryDecodeAsNil() { - yyv4566[yyj4566] = ContainerImage{} + yyv4566[yyj4566] = EnvVar{} } else { yyv4568 := &yyv4566[yyj4566] yyv4568.CodecDecodeSelf(d) @@ -58391,13 +57227,13 @@ func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec197 for ; !r.CheckBreak(); yyj4566++ { if yyj4566 >= len(yyv4566) { - yyv4566 = append(yyv4566, ContainerImage{}) // var yyz4566 ContainerImage + yyv4566 = append(yyv4566, EnvVar{}) // var yyz4566 EnvVar yyc4566 = true } yyh4566.ElemContainerState(yyj4566) if yyj4566 < len(yyv4566) { if r.TryDecodeAsNil() { - yyv4566[yyj4566] = ContainerImage{} + yyv4566[yyj4566] = EnvVar{} } else { yyv4569 := &yyv4566[yyj4566] yyv4569.CodecDecodeSelf(d) @@ -58412,7 +57248,7 @@ func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec197 yyv4566 = yyv4566[:yyj4566] yyc4566 = true } else if yyj4566 == 0 && yyv4566 == nil { - yyv4566 = []ContainerImage{} + yyv4566 = []EnvVar{} yyc4566 = true } } @@ -58422,92 +57258,101 @@ func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec197 } } -func (x codecSelfer1234) encSliceUniqueVolumeName(v []UniqueVolumeName, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceVolumeMount(v []VolumeMount, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4570 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4570.CodecEncodeSelf(e) + yy4571 := &yyv4570 + yy4571.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceVolumeMount(v *[]VolumeMount, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4571 := *v - yyh4571, yyl4571 := z.DecSliceHelperStart() - var yyc4571 bool - if yyl4571 == 0 { - if yyv4571 == nil { - yyv4571 = []UniqueVolumeName{} - yyc4571 = true - } else if len(yyv4571) != 0 { - yyv4571 = yyv4571[:0] - yyc4571 = true + yyv4572 := *v + yyh4572, yyl4572 := z.DecSliceHelperStart() + var yyc4572 bool + if yyl4572 == 0 { + if yyv4572 == nil { + yyv4572 = []VolumeMount{} + yyc4572 = true + } else if len(yyv4572) != 0 { + yyv4572 = yyv4572[:0] + yyc4572 = true } - } else if yyl4571 > 0 { - var yyrr4571, yyrl4571 int - var yyrt4571 bool - if yyl4571 > cap(yyv4571) { + } else if yyl4572 > 0 { + var yyrr4572, yyrl4572 int + var yyrt4572 bool + if yyl4572 > cap(yyv4572) { - yyrl4571, yyrt4571 = z.DecInferLen(yyl4571, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4571 { - if yyrl4571 <= cap(yyv4571) { - yyv4571 = yyv4571[:yyrl4571] + yyrg4572 := len(yyv4572) > 0 + yyv24572 := yyv4572 + yyrl4572, yyrt4572 = z.DecInferLen(yyl4572, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4572 { + if yyrl4572 <= cap(yyv4572) { + yyv4572 = yyv4572[:yyrl4572] } else { - yyv4571 = make([]UniqueVolumeName, yyrl4571) + yyv4572 = make([]VolumeMount, yyrl4572) } } else { - yyv4571 = make([]UniqueVolumeName, yyrl4571) + yyv4572 = make([]VolumeMount, yyrl4572) } - yyc4571 = true - yyrr4571 = len(yyv4571) - } else if yyl4571 != len(yyv4571) { - yyv4571 = yyv4571[:yyl4571] - yyc4571 = true + yyc4572 = true + yyrr4572 = len(yyv4572) + if yyrg4572 { + copy(yyv4572, yyv24572) + } + } else if yyl4572 != len(yyv4572) { + yyv4572 = yyv4572[:yyl4572] + yyc4572 = true } - yyj4571 := 0 - for ; yyj4571 < yyrr4571; yyj4571++ { - yyh4571.ElemContainerState(yyj4571) + yyj4572 := 0 + for ; yyj4572 < yyrr4572; yyj4572++ { + yyh4572.ElemContainerState(yyj4572) if r.TryDecodeAsNil() { - yyv4571[yyj4571] = "" + yyv4572[yyj4572] = VolumeMount{} } else { - yyv4571[yyj4571] = UniqueVolumeName(r.DecodeString()) + yyv4573 := &yyv4572[yyj4572] + yyv4573.CodecDecodeSelf(d) } } - if yyrt4571 { - for ; yyj4571 < yyl4571; yyj4571++ { - yyv4571 = append(yyv4571, "") - yyh4571.ElemContainerState(yyj4571) + if yyrt4572 { + for ; yyj4572 < yyl4572; yyj4572++ { + yyv4572 = append(yyv4572, VolumeMount{}) + yyh4572.ElemContainerState(yyj4572) if r.TryDecodeAsNil() { - yyv4571[yyj4571] = "" + yyv4572[yyj4572] = VolumeMount{} } else { - yyv4571[yyj4571] = UniqueVolumeName(r.DecodeString()) + yyv4574 := &yyv4572[yyj4572] + yyv4574.CodecDecodeSelf(d) } } } } else { - yyj4571 := 0 - for ; !r.CheckBreak(); yyj4571++ { + yyj4572 := 0 + for ; !r.CheckBreak(); yyj4572++ { - if yyj4571 >= len(yyv4571) { - yyv4571 = append(yyv4571, "") // var yyz4571 UniqueVolumeName - yyc4571 = true + if yyj4572 >= len(yyv4572) { + yyv4572 = append(yyv4572, VolumeMount{}) // var yyz4572 VolumeMount + yyc4572 = true } - yyh4571.ElemContainerState(yyj4571) - if yyj4571 < len(yyv4571) { + yyh4572.ElemContainerState(yyj4572) + if yyj4572 < len(yyv4572) { if r.TryDecodeAsNil() { - yyv4571[yyj4571] = "" + yyv4572[yyj4572] = VolumeMount{} } else { - yyv4571[yyj4571] = UniqueVolumeName(r.DecodeString()) + yyv4575 := &yyv4572[yyj4572] + yyv4575.CodecDecodeSelf(d) } } else { @@ -58515,231 +57360,231 @@ func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *code } } - if yyj4571 < len(yyv4571) { - yyv4571 = yyv4571[:yyj4571] - yyc4571 = true - } else if yyj4571 == 0 && yyv4571 == nil { - yyv4571 = []UniqueVolumeName{} - yyc4571 = true + if yyj4572 < len(yyv4572) { + yyv4572 = yyv4572[:yyj4572] + yyc4572 = true + } else if yyj4572 == 0 && yyv4572 == nil { + yyv4572 = []VolumeMount{} + yyc4572 = true } } - yyh4571.End() - if yyc4571 { - *v = yyv4571 + yyh4572.End() + if yyc4572 { + *v = yyv4572 } } -func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4575 := range v { + for _, yyv4576 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4576 := &yyv4575 - yy4576.CodecEncodeSelf(e) + yy4577 := &yyv4576 + yy4577.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4577 := *v - yyh4577, yyl4577 := z.DecSliceHelperStart() - var yyc4577 bool - if yyl4577 == 0 { - if yyv4577 == nil { - yyv4577 = []AttachedVolume{} - yyc4577 = true - } else if len(yyv4577) != 0 { - yyv4577 = yyv4577[:0] - yyc4577 = true + yyv4578 := *v + yyh4578, yyl4578 := z.DecSliceHelperStart() + var yyc4578 bool + if yyl4578 == 0 { + if yyv4578 == nil { + yyv4578 = []NodeSelectorTerm{} + yyc4578 = true + } else if len(yyv4578) != 0 { + yyv4578 = yyv4578[:0] + yyc4578 = true } - } else if yyl4577 > 0 { - var yyrr4577, yyrl4577 int - var yyrt4577 bool - if yyl4577 > cap(yyv4577) { + } else if yyl4578 > 0 { + var yyrr4578, yyrl4578 int + var yyrt4578 bool + if yyl4578 > cap(yyv4578) { - yyrg4577 := len(yyv4577) > 0 - yyv24577 := yyv4577 - yyrl4577, yyrt4577 = z.DecInferLen(yyl4577, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4577 { - if yyrl4577 <= cap(yyv4577) { - yyv4577 = yyv4577[:yyrl4577] + yyrg4578 := len(yyv4578) > 0 + yyv24578 := yyv4578 + yyrl4578, yyrt4578 = z.DecInferLen(yyl4578, z.DecBasicHandle().MaxInitLen, 24) + if yyrt4578 { + if yyrl4578 <= cap(yyv4578) { + yyv4578 = yyv4578[:yyrl4578] } else { - yyv4577 = make([]AttachedVolume, yyrl4577) + yyv4578 = make([]NodeSelectorTerm, yyrl4578) } } else { - yyv4577 = make([]AttachedVolume, yyrl4577) + yyv4578 = make([]NodeSelectorTerm, yyrl4578) } - yyc4577 = true - yyrr4577 = len(yyv4577) - if yyrg4577 { - copy(yyv4577, yyv24577) + yyc4578 = true + yyrr4578 = len(yyv4578) + if yyrg4578 { + copy(yyv4578, yyv24578) } - } else if yyl4577 != len(yyv4577) { - yyv4577 = yyv4577[:yyl4577] - yyc4577 = true + } else if yyl4578 != len(yyv4578) { + yyv4578 = yyv4578[:yyl4578] + yyc4578 = true } - yyj4577 := 0 - for ; yyj4577 < yyrr4577; yyj4577++ { - yyh4577.ElemContainerState(yyj4577) + yyj4578 := 0 + for ; yyj4578 < yyrr4578; yyj4578++ { + yyh4578.ElemContainerState(yyj4578) if r.TryDecodeAsNil() { - yyv4577[yyj4577] = AttachedVolume{} + yyv4578[yyj4578] = NodeSelectorTerm{} } else { - yyv4578 := &yyv4577[yyj4577] - yyv4578.CodecDecodeSelf(d) + yyv4579 := &yyv4578[yyj4578] + yyv4579.CodecDecodeSelf(d) } } - if yyrt4577 { - for ; yyj4577 < yyl4577; yyj4577++ { - yyv4577 = append(yyv4577, AttachedVolume{}) - yyh4577.ElemContainerState(yyj4577) + if yyrt4578 { + for ; yyj4578 < yyl4578; yyj4578++ { + yyv4578 = append(yyv4578, NodeSelectorTerm{}) + yyh4578.ElemContainerState(yyj4578) if r.TryDecodeAsNil() { - yyv4577[yyj4577] = AttachedVolume{} + yyv4578[yyj4578] = NodeSelectorTerm{} } else { - yyv4579 := &yyv4577[yyj4577] - yyv4579.CodecDecodeSelf(d) - } - - } - } - - } else { - yyj4577 := 0 - for ; !r.CheckBreak(); yyj4577++ { - - if yyj4577 >= len(yyv4577) { - yyv4577 = append(yyv4577, AttachedVolume{}) // var yyz4577 AttachedVolume - yyc4577 = true - } - yyh4577.ElemContainerState(yyj4577) - if yyj4577 < len(yyv4577) { - if r.TryDecodeAsNil() { - yyv4577[yyj4577] = AttachedVolume{} - } else { - yyv4580 := &yyv4577[yyj4577] + yyv4580 := &yyv4578[yyj4578] yyv4580.CodecDecodeSelf(d) } + } + } + + } else { + yyj4578 := 0 + for ; !r.CheckBreak(); yyj4578++ { + + if yyj4578 >= len(yyv4578) { + yyv4578 = append(yyv4578, NodeSelectorTerm{}) // var yyz4578 NodeSelectorTerm + yyc4578 = true + } + yyh4578.ElemContainerState(yyj4578) + if yyj4578 < len(yyv4578) { + if r.TryDecodeAsNil() { + yyv4578[yyj4578] = NodeSelectorTerm{} + } else { + yyv4581 := &yyv4578[yyj4578] + yyv4581.CodecDecodeSelf(d) + } + } else { z.DecSwallow() } } - if yyj4577 < len(yyv4577) { - yyv4577 = yyv4577[:yyj4577] - yyc4577 = true - } else if yyj4577 == 0 && yyv4577 == nil { - yyv4577 = []AttachedVolume{} - yyc4577 = true + if yyj4578 < len(yyv4578) { + yyv4578 = yyv4578[:yyj4578] + yyc4578 = true + } else if yyj4578 == 0 && yyv4578 == nil { + yyv4578 = []NodeSelectorTerm{} + yyc4578 = true } } - yyh4577.End() - if yyc4577 { - *v = yyv4577 + yyh4578.End() + if yyc4578 { + *v = yyv4578 } } -func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceNodeSelectorRequirement(v []NodeSelectorRequirement, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4581 := range v { + for _, yyv4582 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4582 := &yyv4581 - yy4582.CodecEncodeSelf(e) + yy4583 := &yyv4582 + yy4583.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequirement, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4583 := *v - yyh4583, yyl4583 := z.DecSliceHelperStart() - var yyc4583 bool - if yyl4583 == 0 { - if yyv4583 == nil { - yyv4583 = []PreferAvoidPodsEntry{} - yyc4583 = true - } else if len(yyv4583) != 0 { - yyv4583 = yyv4583[:0] - yyc4583 = true + yyv4584 := *v + yyh4584, yyl4584 := z.DecSliceHelperStart() + var yyc4584 bool + if yyl4584 == 0 { + if yyv4584 == nil { + yyv4584 = []NodeSelectorRequirement{} + yyc4584 = true + } else if len(yyv4584) != 0 { + yyv4584 = yyv4584[:0] + yyc4584 = true } - } else if yyl4583 > 0 { - var yyrr4583, yyrl4583 int - var yyrt4583 bool - if yyl4583 > cap(yyv4583) { + } else if yyl4584 > 0 { + var yyrr4584, yyrl4584 int + var yyrt4584 bool + if yyl4584 > cap(yyv4584) { - yyrg4583 := len(yyv4583) > 0 - yyv24583 := yyv4583 - yyrl4583, yyrt4583 = z.DecInferLen(yyl4583, z.DecBasicHandle().MaxInitLen, 64) - if yyrt4583 { - if yyrl4583 <= cap(yyv4583) { - yyv4583 = yyv4583[:yyrl4583] + yyrg4584 := len(yyv4584) > 0 + yyv24584 := yyv4584 + yyrl4584, yyrt4584 = z.DecInferLen(yyl4584, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4584 { + if yyrl4584 <= cap(yyv4584) { + yyv4584 = yyv4584[:yyrl4584] } else { - yyv4583 = make([]PreferAvoidPodsEntry, yyrl4583) + yyv4584 = make([]NodeSelectorRequirement, yyrl4584) } } else { - yyv4583 = make([]PreferAvoidPodsEntry, yyrl4583) + yyv4584 = make([]NodeSelectorRequirement, yyrl4584) } - yyc4583 = true - yyrr4583 = len(yyv4583) - if yyrg4583 { - copy(yyv4583, yyv24583) + yyc4584 = true + yyrr4584 = len(yyv4584) + if yyrg4584 { + copy(yyv4584, yyv24584) } - } else if yyl4583 != len(yyv4583) { - yyv4583 = yyv4583[:yyl4583] - yyc4583 = true + } else if yyl4584 != len(yyv4584) { + yyv4584 = yyv4584[:yyl4584] + yyc4584 = true } - yyj4583 := 0 - for ; yyj4583 < yyrr4583; yyj4583++ { - yyh4583.ElemContainerState(yyj4583) + yyj4584 := 0 + for ; yyj4584 < yyrr4584; yyj4584++ { + yyh4584.ElemContainerState(yyj4584) if r.TryDecodeAsNil() { - yyv4583[yyj4583] = PreferAvoidPodsEntry{} + yyv4584[yyj4584] = NodeSelectorRequirement{} } else { - yyv4584 := &yyv4583[yyj4583] - yyv4584.CodecDecodeSelf(d) + yyv4585 := &yyv4584[yyj4584] + yyv4585.CodecDecodeSelf(d) } } - if yyrt4583 { - for ; yyj4583 < yyl4583; yyj4583++ { - yyv4583 = append(yyv4583, PreferAvoidPodsEntry{}) - yyh4583.ElemContainerState(yyj4583) + if yyrt4584 { + for ; yyj4584 < yyl4584; yyj4584++ { + yyv4584 = append(yyv4584, NodeSelectorRequirement{}) + yyh4584.ElemContainerState(yyj4584) if r.TryDecodeAsNil() { - yyv4583[yyj4583] = PreferAvoidPodsEntry{} + yyv4584[yyj4584] = NodeSelectorRequirement{} } else { - yyv4585 := &yyv4583[yyj4583] - yyv4585.CodecDecodeSelf(d) + yyv4586 := &yyv4584[yyj4584] + yyv4586.CodecDecodeSelf(d) } } } } else { - yyj4583 := 0 - for ; !r.CheckBreak(); yyj4583++ { + yyj4584 := 0 + for ; !r.CheckBreak(); yyj4584++ { - if yyj4583 >= len(yyv4583) { - yyv4583 = append(yyv4583, PreferAvoidPodsEntry{}) // var yyz4583 PreferAvoidPodsEntry - yyc4583 = true + if yyj4584 >= len(yyv4584) { + yyv4584 = append(yyv4584, NodeSelectorRequirement{}) // var yyz4584 NodeSelectorRequirement + yyc4584 = true } - yyh4583.ElemContainerState(yyj4583) - if yyj4583 < len(yyv4583) { + yyh4584.ElemContainerState(yyj4584) + if yyj4584 < len(yyv4584) { if r.TryDecodeAsNil() { - yyv4583[yyj4583] = PreferAvoidPodsEntry{} + yyv4584[yyj4584] = NodeSelectorRequirement{} } else { - yyv4586 := &yyv4583[yyj4583] - yyv4586.CodecDecodeSelf(d) + yyv4587 := &yyv4584[yyj4584] + yyv4587.CodecDecodeSelf(d) } } else { @@ -58747,229 +57592,231 @@ func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, } } - if yyj4583 < len(yyv4583) { - yyv4583 = yyv4583[:yyj4583] - yyc4583 = true - } else if yyj4583 == 0 && yyv4583 == nil { - yyv4583 = []PreferAvoidPodsEntry{} - yyc4583 = true + if yyj4584 < len(yyv4584) { + yyv4584 = yyv4584[:yyj4584] + yyc4584 = true + } else if yyj4584 == 0 && yyv4584 == nil { + yyv4584 = []NodeSelectorRequirement{} + yyc4584 = true } } - yyh4583.End() - if yyc4583 { - *v = yyv4583 + yyh4584.End() + if yyc4584 { + *v = yyv4584 } } -func (x codecSelfer1234) encResourceList(v ResourceList, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePodAffinityTerm(v []PodAffinityTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - r.EncodeMapStart(len(v)) - for yyk4587, yyv4587 := range v { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - yyk4587.CodecEncodeSelf(e) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy4588 := &yyv4587 - yym4589 := z.EncBinary() - _ = yym4589 - if false { - } else if z.HasExtensions() && z.EncExt(yy4588) { - } else if !yym4589 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4588) - } else { - z.EncFallback(yy4588) - } + r.EncodeArrayStart(len(v)) + for _, yyv4588 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4589 := &yyv4588 + yy4589.CodecEncodeSelf(e) } - z.EncSendContainerState(codecSelfer_containerMapEnd1234) + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4590 := *v - yyl4590 := r.ReadMapStart() - yybh4590 := z.DecBasicHandle() - if yyv4590 == nil { - yyrl4590, _ := z.DecInferLen(yyl4590, yybh4590.MaxInitLen, 72) - yyv4590 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4590) + yyh4590, yyl4590 := z.DecSliceHelperStart() + var yyc4590 bool + if yyl4590 == 0 { + if yyv4590 == nil { + yyv4590 = []PodAffinityTerm{} + yyc4590 = true + } else if len(yyv4590) != 0 { + yyv4590 = yyv4590[:0] + yyc4590 = true + } + } else if yyl4590 > 0 { + var yyrr4590, yyrl4590 int + var yyrt4590 bool + if yyl4590 > cap(yyv4590) { + + yyrg4590 := len(yyv4590) > 0 + yyv24590 := yyv4590 + yyrl4590, yyrt4590 = z.DecInferLen(yyl4590, z.DecBasicHandle().MaxInitLen, 48) + if yyrt4590 { + if yyrl4590 <= cap(yyv4590) { + yyv4590 = yyv4590[:yyrl4590] + } else { + yyv4590 = make([]PodAffinityTerm, yyrl4590) + } + } else { + yyv4590 = make([]PodAffinityTerm, yyrl4590) + } + yyc4590 = true + yyrr4590 = len(yyv4590) + if yyrg4590 { + copy(yyv4590, yyv24590) + } + } else if yyl4590 != len(yyv4590) { + yyv4590 = yyv4590[:yyl4590] + yyc4590 = true + } + yyj4590 := 0 + for ; yyj4590 < yyrr4590; yyj4590++ { + yyh4590.ElemContainerState(yyj4590) + if r.TryDecodeAsNil() { + yyv4590[yyj4590] = PodAffinityTerm{} + } else { + yyv4591 := &yyv4590[yyj4590] + yyv4591.CodecDecodeSelf(d) + } + + } + if yyrt4590 { + for ; yyj4590 < yyl4590; yyj4590++ { + yyv4590 = append(yyv4590, PodAffinityTerm{}) + yyh4590.ElemContainerState(yyj4590) + if r.TryDecodeAsNil() { + yyv4590[yyj4590] = PodAffinityTerm{} + } else { + yyv4592 := &yyv4590[yyj4590] + yyv4592.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4590 := 0 + for ; !r.CheckBreak(); yyj4590++ { + + if yyj4590 >= len(yyv4590) { + yyv4590 = append(yyv4590, PodAffinityTerm{}) // var yyz4590 PodAffinityTerm + yyc4590 = true + } + yyh4590.ElemContainerState(yyj4590) + if yyj4590 < len(yyv4590) { + if r.TryDecodeAsNil() { + yyv4590[yyj4590] = PodAffinityTerm{} + } else { + yyv4593 := &yyv4590[yyj4590] + yyv4593.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4590 < len(yyv4590) { + yyv4590 = yyv4590[:yyj4590] + yyc4590 = true + } else if yyj4590 == 0 && yyv4590 == nil { + yyv4590 = []PodAffinityTerm{} + yyc4590 = true + } + } + yyh4590.End() + if yyc4590 { *v = yyv4590 } - var yymk4590 ResourceName - var yymv4590 pkg3_resource.Quantity - var yymg4590 bool - if yybh4590.MapValueReset { - yymg4590 = true - } - if yyl4590 > 0 { - for yyj4590 := 0; yyj4590 < yyl4590; yyj4590++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk4590 = "" - } else { - yymk4590 = ResourceName(r.DecodeString()) - } - - if yymg4590 { - yymv4590 = yyv4590[yymk4590] - } else { - yymv4590 = pkg3_resource.Quantity{} - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv4590 = pkg3_resource.Quantity{} - } else { - yyv4592 := &yymv4590 - yym4593 := z.DecBinary() - _ = yym4593 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4592) { - } else if !yym4593 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4592) - } else { - z.DecFallback(yyv4592, false) - } - } - - if yyv4590 != nil { - yyv4590[yymk4590] = yymv4590 - } - } - } else if yyl4590 < 0 { - for yyj4590 := 0; !r.CheckBreak(); yyj4590++ { - z.DecSendContainerState(codecSelfer_containerMapKey1234) - if r.TryDecodeAsNil() { - yymk4590 = "" - } else { - yymk4590 = ResourceName(r.DecodeString()) - } - - if yymg4590 { - yymv4590 = yyv4590[yymk4590] - } else { - yymv4590 = pkg3_resource.Quantity{} - } - z.DecSendContainerState(codecSelfer_containerMapValue1234) - if r.TryDecodeAsNil() { - yymv4590 = pkg3_resource.Quantity{} - } else { - yyv4595 := &yymv4590 - yym4596 := z.DecBinary() - _ = yym4596 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4595) { - } else if !yym4596 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4595) - } else { - z.DecFallback(yyv4595, false) - } - } - - if yyv4590 != nil { - yyv4590[yymk4590] = yymv4590 - } - } - } // else len==0: TODO: Should we clear map entries? - z.DecSendContainerState(codecSelfer_containerMapEnd1234) } -func (x codecSelfer1234) encSliceNode(v []Node, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceWeightedPodAffinityTerm(v []WeightedPodAffinityTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4597 := range v { + for _, yyv4594 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4598 := &yyv4597 - yy4598.CodecEncodeSelf(e) + yy4595 := &yyv4594 + yy4595.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinityTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4599 := *v - yyh4599, yyl4599 := z.DecSliceHelperStart() - var yyc4599 bool - if yyl4599 == 0 { - if yyv4599 == nil { - yyv4599 = []Node{} - yyc4599 = true - } else if len(yyv4599) != 0 { - yyv4599 = yyv4599[:0] - yyc4599 = true + yyv4596 := *v + yyh4596, yyl4596 := z.DecSliceHelperStart() + var yyc4596 bool + if yyl4596 == 0 { + if yyv4596 == nil { + yyv4596 = []WeightedPodAffinityTerm{} + yyc4596 = true + } else if len(yyv4596) != 0 { + yyv4596 = yyv4596[:0] + yyc4596 = true } - } else if yyl4599 > 0 { - var yyrr4599, yyrl4599 int - var yyrt4599 bool - if yyl4599 > cap(yyv4599) { + } else if yyl4596 > 0 { + var yyrr4596, yyrl4596 int + var yyrt4596 bool + if yyl4596 > cap(yyv4596) { - yyrg4599 := len(yyv4599) > 0 - yyv24599 := yyv4599 - yyrl4599, yyrt4599 = z.DecInferLen(yyl4599, z.DecBasicHandle().MaxInitLen, 616) - if yyrt4599 { - if yyrl4599 <= cap(yyv4599) { - yyv4599 = yyv4599[:yyrl4599] + yyrg4596 := len(yyv4596) > 0 + yyv24596 := yyv4596 + yyrl4596, yyrt4596 = z.DecInferLen(yyl4596, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4596 { + if yyrl4596 <= cap(yyv4596) { + yyv4596 = yyv4596[:yyrl4596] } else { - yyv4599 = make([]Node, yyrl4599) + yyv4596 = make([]WeightedPodAffinityTerm, yyrl4596) } } else { - yyv4599 = make([]Node, yyrl4599) + yyv4596 = make([]WeightedPodAffinityTerm, yyrl4596) } - yyc4599 = true - yyrr4599 = len(yyv4599) - if yyrg4599 { - copy(yyv4599, yyv24599) + yyc4596 = true + yyrr4596 = len(yyv4596) + if yyrg4596 { + copy(yyv4596, yyv24596) } - } else if yyl4599 != len(yyv4599) { - yyv4599 = yyv4599[:yyl4599] - yyc4599 = true + } else if yyl4596 != len(yyv4596) { + yyv4596 = yyv4596[:yyl4596] + yyc4596 = true } - yyj4599 := 0 - for ; yyj4599 < yyrr4599; yyj4599++ { - yyh4599.ElemContainerState(yyj4599) + yyj4596 := 0 + for ; yyj4596 < yyrr4596; yyj4596++ { + yyh4596.ElemContainerState(yyj4596) if r.TryDecodeAsNil() { - yyv4599[yyj4599] = Node{} + yyv4596[yyj4596] = WeightedPodAffinityTerm{} } else { - yyv4600 := &yyv4599[yyj4599] - yyv4600.CodecDecodeSelf(d) + yyv4597 := &yyv4596[yyj4596] + yyv4597.CodecDecodeSelf(d) } } - if yyrt4599 { - for ; yyj4599 < yyl4599; yyj4599++ { - yyv4599 = append(yyv4599, Node{}) - yyh4599.ElemContainerState(yyj4599) + if yyrt4596 { + for ; yyj4596 < yyl4596; yyj4596++ { + yyv4596 = append(yyv4596, WeightedPodAffinityTerm{}) + yyh4596.ElemContainerState(yyj4596) if r.TryDecodeAsNil() { - yyv4599[yyj4599] = Node{} + yyv4596[yyj4596] = WeightedPodAffinityTerm{} } else { - yyv4601 := &yyv4599[yyj4599] - yyv4601.CodecDecodeSelf(d) + yyv4598 := &yyv4596[yyj4596] + yyv4598.CodecDecodeSelf(d) } } } } else { - yyj4599 := 0 - for ; !r.CheckBreak(); yyj4599++ { + yyj4596 := 0 + for ; !r.CheckBreak(); yyj4596++ { - if yyj4599 >= len(yyv4599) { - yyv4599 = append(yyv4599, Node{}) // var yyz4599 Node - yyc4599 = true + if yyj4596 >= len(yyv4596) { + yyv4596 = append(yyv4596, WeightedPodAffinityTerm{}) // var yyz4596 WeightedPodAffinityTerm + yyc4596 = true } - yyh4599.ElemContainerState(yyj4599) - if yyj4599 < len(yyv4599) { + yyh4596.ElemContainerState(yyj4596) + if yyj4596 < len(yyv4596) { if r.TryDecodeAsNil() { - yyv4599[yyj4599] = Node{} + yyv4596[yyj4596] = WeightedPodAffinityTerm{} } else { - yyv4602 := &yyv4599[yyj4599] - yyv4602.CodecDecodeSelf(d) + yyv4599 := &yyv4596[yyj4596] + yyv4599.CodecDecodeSelf(d) } } else { @@ -58977,106 +57824,115 @@ func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { } } - if yyj4599 < len(yyv4599) { - yyv4599 = yyv4599[:yyj4599] - yyc4599 = true - } else if yyj4599 == 0 && yyv4599 == nil { - yyv4599 = []Node{} - yyc4599 = true + if yyj4596 < len(yyv4596) { + yyv4596 = yyv4596[:yyj4596] + yyc4596 = true + } else if yyj4596 == 0 && yyv4596 == nil { + yyv4596 = []WeightedPodAffinityTerm{} + yyc4596 = true } } - yyh4599.End() - if yyc4599 { - *v = yyv4599 + yyh4596.End() + if yyc4596 { + *v = yyv4596 } } -func (x codecSelfer1234) encSliceFinalizerName(v []FinalizerName, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredSchedulingTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4603 := range v { + for _, yyv4600 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4603.CodecEncodeSelf(e) + yy4601 := &yyv4600 + yy4601.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulingTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4604 := *v - yyh4604, yyl4604 := z.DecSliceHelperStart() - var yyc4604 bool - if yyl4604 == 0 { - if yyv4604 == nil { - yyv4604 = []FinalizerName{} - yyc4604 = true - } else if len(yyv4604) != 0 { - yyv4604 = yyv4604[:0] - yyc4604 = true + yyv4602 := *v + yyh4602, yyl4602 := z.DecSliceHelperStart() + var yyc4602 bool + if yyl4602 == 0 { + if yyv4602 == nil { + yyv4602 = []PreferredSchedulingTerm{} + yyc4602 = true + } else if len(yyv4602) != 0 { + yyv4602 = yyv4602[:0] + yyc4602 = true } - } else if yyl4604 > 0 { - var yyrr4604, yyrl4604 int - var yyrt4604 bool - if yyl4604 > cap(yyv4604) { + } else if yyl4602 > 0 { + var yyrr4602, yyrl4602 int + var yyrt4602 bool + if yyl4602 > cap(yyv4602) { - yyrl4604, yyrt4604 = z.DecInferLen(yyl4604, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4604 { - if yyrl4604 <= cap(yyv4604) { - yyv4604 = yyv4604[:yyrl4604] + yyrg4602 := len(yyv4602) > 0 + yyv24602 := yyv4602 + yyrl4602, yyrt4602 = z.DecInferLen(yyl4602, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4602 { + if yyrl4602 <= cap(yyv4602) { + yyv4602 = yyv4602[:yyrl4602] } else { - yyv4604 = make([]FinalizerName, yyrl4604) + yyv4602 = make([]PreferredSchedulingTerm, yyrl4602) } } else { - yyv4604 = make([]FinalizerName, yyrl4604) + yyv4602 = make([]PreferredSchedulingTerm, yyrl4602) } - yyc4604 = true - yyrr4604 = len(yyv4604) - } else if yyl4604 != len(yyv4604) { - yyv4604 = yyv4604[:yyl4604] - yyc4604 = true + yyc4602 = true + yyrr4602 = len(yyv4602) + if yyrg4602 { + copy(yyv4602, yyv24602) + } + } else if yyl4602 != len(yyv4602) { + yyv4602 = yyv4602[:yyl4602] + yyc4602 = true } - yyj4604 := 0 - for ; yyj4604 < yyrr4604; yyj4604++ { - yyh4604.ElemContainerState(yyj4604) + yyj4602 := 0 + for ; yyj4602 < yyrr4602; yyj4602++ { + yyh4602.ElemContainerState(yyj4602) if r.TryDecodeAsNil() { - yyv4604[yyj4604] = "" + yyv4602[yyj4602] = PreferredSchedulingTerm{} } else { - yyv4604[yyj4604] = FinalizerName(r.DecodeString()) + yyv4603 := &yyv4602[yyj4602] + yyv4603.CodecDecodeSelf(d) } } - if yyrt4604 { - for ; yyj4604 < yyl4604; yyj4604++ { - yyv4604 = append(yyv4604, "") - yyh4604.ElemContainerState(yyj4604) + if yyrt4602 { + for ; yyj4602 < yyl4602; yyj4602++ { + yyv4602 = append(yyv4602, PreferredSchedulingTerm{}) + yyh4602.ElemContainerState(yyj4602) if r.TryDecodeAsNil() { - yyv4604[yyj4604] = "" + yyv4602[yyj4602] = PreferredSchedulingTerm{} } else { - yyv4604[yyj4604] = FinalizerName(r.DecodeString()) + yyv4604 := &yyv4602[yyj4602] + yyv4604.CodecDecodeSelf(d) } } } } else { - yyj4604 := 0 - for ; !r.CheckBreak(); yyj4604++ { + yyj4602 := 0 + for ; !r.CheckBreak(); yyj4602++ { - if yyj4604 >= len(yyv4604) { - yyv4604 = append(yyv4604, "") // var yyz4604 FinalizerName - yyc4604 = true + if yyj4602 >= len(yyv4602) { + yyv4602 = append(yyv4602, PreferredSchedulingTerm{}) // var yyz4602 PreferredSchedulingTerm + yyc4602 = true } - yyh4604.ElemContainerState(yyj4604) - if yyj4604 < len(yyv4604) { + yyh4602.ElemContainerState(yyj4602) + if yyj4602 < len(yyv4602) { if r.TryDecodeAsNil() { - yyv4604[yyj4604] = "" + yyv4602[yyj4602] = PreferredSchedulingTerm{} } else { - yyv4604[yyj4604] = FinalizerName(r.DecodeString()) + yyv4605 := &yyv4602[yyj4602] + yyv4605.CodecDecodeSelf(d) } } else { @@ -59084,115 +57940,115 @@ func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978. } } - if yyj4604 < len(yyv4604) { - yyv4604 = yyv4604[:yyj4604] - yyc4604 = true - } else if yyj4604 == 0 && yyv4604 == nil { - yyv4604 = []FinalizerName{} - yyc4604 = true + if yyj4602 < len(yyv4602) { + yyv4602 = yyv4602[:yyj4602] + yyc4602 = true + } else if yyj4602 == 0 && yyv4602 == nil { + yyv4602 = []PreferredSchedulingTerm{} + yyc4602 = true } } - yyh4604.End() - if yyc4604 { - *v = yyv4604 + yyh4602.End() + if yyc4602 { + *v = yyv4602 } } -func (x codecSelfer1234) encSliceNamespace(v []Namespace, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceVolume(v []Volume, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4608 := range v { + for _, yyv4606 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4609 := &yyv4608 - yy4609.CodecEncodeSelf(e) + yy4607 := &yyv4606 + yy4607.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceVolume(v *[]Volume, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4610 := *v - yyh4610, yyl4610 := z.DecSliceHelperStart() - var yyc4610 bool - if yyl4610 == 0 { - if yyv4610 == nil { - yyv4610 = []Namespace{} - yyc4610 = true - } else if len(yyv4610) != 0 { - yyv4610 = yyv4610[:0] - yyc4610 = true + yyv4608 := *v + yyh4608, yyl4608 := z.DecSliceHelperStart() + var yyc4608 bool + if yyl4608 == 0 { + if yyv4608 == nil { + yyv4608 = []Volume{} + yyc4608 = true + } else if len(yyv4608) != 0 { + yyv4608 = yyv4608[:0] + yyc4608 = true } - } else if yyl4610 > 0 { - var yyrr4610, yyrl4610 int - var yyrt4610 bool - if yyl4610 > cap(yyv4610) { + } else if yyl4608 > 0 { + var yyrr4608, yyrl4608 int + var yyrt4608 bool + if yyl4608 > cap(yyv4608) { - yyrg4610 := len(yyv4610) > 0 - yyv24610 := yyv4610 - yyrl4610, yyrt4610 = z.DecInferLen(yyl4610, z.DecBasicHandle().MaxInitLen, 280) - if yyrt4610 { - if yyrl4610 <= cap(yyv4610) { - yyv4610 = yyv4610[:yyrl4610] + yyrg4608 := len(yyv4608) > 0 + yyv24608 := yyv4608 + yyrl4608, yyrt4608 = z.DecInferLen(yyl4608, z.DecBasicHandle().MaxInitLen, 192) + if yyrt4608 { + if yyrl4608 <= cap(yyv4608) { + yyv4608 = yyv4608[:yyrl4608] } else { - yyv4610 = make([]Namespace, yyrl4610) + yyv4608 = make([]Volume, yyrl4608) } } else { - yyv4610 = make([]Namespace, yyrl4610) + yyv4608 = make([]Volume, yyrl4608) } - yyc4610 = true - yyrr4610 = len(yyv4610) - if yyrg4610 { - copy(yyv4610, yyv24610) + yyc4608 = true + yyrr4608 = len(yyv4608) + if yyrg4608 { + copy(yyv4608, yyv24608) } - } else if yyl4610 != len(yyv4610) { - yyv4610 = yyv4610[:yyl4610] - yyc4610 = true + } else if yyl4608 != len(yyv4608) { + yyv4608 = yyv4608[:yyl4608] + yyc4608 = true } - yyj4610 := 0 - for ; yyj4610 < yyrr4610; yyj4610++ { - yyh4610.ElemContainerState(yyj4610) + yyj4608 := 0 + for ; yyj4608 < yyrr4608; yyj4608++ { + yyh4608.ElemContainerState(yyj4608) if r.TryDecodeAsNil() { - yyv4610[yyj4610] = Namespace{} + yyv4608[yyj4608] = Volume{} } else { - yyv4611 := &yyv4610[yyj4610] - yyv4611.CodecDecodeSelf(d) + yyv4609 := &yyv4608[yyj4608] + yyv4609.CodecDecodeSelf(d) } } - if yyrt4610 { - for ; yyj4610 < yyl4610; yyj4610++ { - yyv4610 = append(yyv4610, Namespace{}) - yyh4610.ElemContainerState(yyj4610) + if yyrt4608 { + for ; yyj4608 < yyl4608; yyj4608++ { + yyv4608 = append(yyv4608, Volume{}) + yyh4608.ElemContainerState(yyj4608) if r.TryDecodeAsNil() { - yyv4610[yyj4610] = Namespace{} + yyv4608[yyj4608] = Volume{} } else { - yyv4612 := &yyv4610[yyj4610] - yyv4612.CodecDecodeSelf(d) + yyv4610 := &yyv4608[yyj4608] + yyv4610.CodecDecodeSelf(d) } } } } else { - yyj4610 := 0 - for ; !r.CheckBreak(); yyj4610++ { + yyj4608 := 0 + for ; !r.CheckBreak(); yyj4608++ { - if yyj4610 >= len(yyv4610) { - yyv4610 = append(yyv4610, Namespace{}) // var yyz4610 Namespace - yyc4610 = true + if yyj4608 >= len(yyv4608) { + yyv4608 = append(yyv4608, Volume{}) // var yyz4608 Volume + yyc4608 = true } - yyh4610.ElemContainerState(yyj4610) - if yyj4610 < len(yyv4610) { + yyh4608.ElemContainerState(yyj4608) + if yyj4608 < len(yyv4608) { if r.TryDecodeAsNil() { - yyv4610[yyj4610] = Namespace{} + yyv4608[yyj4608] = Volume{} } else { - yyv4613 := &yyv4610[yyj4610] - yyv4613.CodecDecodeSelf(d) + yyv4611 := &yyv4608[yyj4608] + yyv4611.CodecDecodeSelf(d) } } else { @@ -59200,115 +58056,115 @@ func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) } } - if yyj4610 < len(yyv4610) { - yyv4610 = yyv4610[:yyj4610] - yyc4610 = true - } else if yyj4610 == 0 && yyv4610 == nil { - yyv4610 = []Namespace{} - yyc4610 = true + if yyj4608 < len(yyv4608) { + yyv4608 = yyv4608[:yyj4608] + yyc4608 = true + } else if yyj4608 == 0 && yyv4608 == nil { + yyv4608 = []Volume{} + yyc4608 = true } } - yyh4610.End() - if yyc4610 { - *v = yyv4610 + yyh4608.End() + if yyc4608 { + *v = yyv4608 } } -func (x codecSelfer1234) encSliceEvent(v []Event, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceContainer(v []Container, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4614 := range v { + for _, yyv4612 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4615 := &yyv4614 - yy4615.CodecEncodeSelf(e) + yy4613 := &yyv4612 + yy4613.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceContainer(v *[]Container, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4616 := *v - yyh4616, yyl4616 := z.DecSliceHelperStart() - var yyc4616 bool - if yyl4616 == 0 { - if yyv4616 == nil { - yyv4616 = []Event{} - yyc4616 = true - } else if len(yyv4616) != 0 { - yyv4616 = yyv4616[:0] - yyc4616 = true + yyv4614 := *v + yyh4614, yyl4614 := z.DecSliceHelperStart() + var yyc4614 bool + if yyl4614 == 0 { + if yyv4614 == nil { + yyv4614 = []Container{} + yyc4614 = true + } else if len(yyv4614) != 0 { + yyv4614 = yyv4614[:0] + yyc4614 = true } - } else if yyl4616 > 0 { - var yyrr4616, yyrl4616 int - var yyrt4616 bool - if yyl4616 > cap(yyv4616) { + } else if yyl4614 > 0 { + var yyrr4614, yyrl4614 int + var yyrt4614 bool + if yyl4614 > cap(yyv4614) { - yyrg4616 := len(yyv4616) > 0 - yyv24616 := yyv4616 - yyrl4616, yyrt4616 = z.DecInferLen(yyl4616, z.DecBasicHandle().MaxInitLen, 488) - if yyrt4616 { - if yyrl4616 <= cap(yyv4616) { - yyv4616 = yyv4616[:yyrl4616] + yyrg4614 := len(yyv4614) > 0 + yyv24614 := yyv4614 + yyrl4614, yyrt4614 = z.DecInferLen(yyl4614, z.DecBasicHandle().MaxInitLen, 256) + if yyrt4614 { + if yyrl4614 <= cap(yyv4614) { + yyv4614 = yyv4614[:yyrl4614] } else { - yyv4616 = make([]Event, yyrl4616) + yyv4614 = make([]Container, yyrl4614) } } else { - yyv4616 = make([]Event, yyrl4616) + yyv4614 = make([]Container, yyrl4614) } - yyc4616 = true - yyrr4616 = len(yyv4616) - if yyrg4616 { - copy(yyv4616, yyv24616) + yyc4614 = true + yyrr4614 = len(yyv4614) + if yyrg4614 { + copy(yyv4614, yyv24614) } - } else if yyl4616 != len(yyv4616) { - yyv4616 = yyv4616[:yyl4616] - yyc4616 = true + } else if yyl4614 != len(yyv4614) { + yyv4614 = yyv4614[:yyl4614] + yyc4614 = true } - yyj4616 := 0 - for ; yyj4616 < yyrr4616; yyj4616++ { - yyh4616.ElemContainerState(yyj4616) + yyj4614 := 0 + for ; yyj4614 < yyrr4614; yyj4614++ { + yyh4614.ElemContainerState(yyj4614) if r.TryDecodeAsNil() { - yyv4616[yyj4616] = Event{} + yyv4614[yyj4614] = Container{} } else { - yyv4617 := &yyv4616[yyj4616] - yyv4617.CodecDecodeSelf(d) + yyv4615 := &yyv4614[yyj4614] + yyv4615.CodecDecodeSelf(d) } } - if yyrt4616 { - for ; yyj4616 < yyl4616; yyj4616++ { - yyv4616 = append(yyv4616, Event{}) - yyh4616.ElemContainerState(yyj4616) + if yyrt4614 { + for ; yyj4614 < yyl4614; yyj4614++ { + yyv4614 = append(yyv4614, Container{}) + yyh4614.ElemContainerState(yyj4614) if r.TryDecodeAsNil() { - yyv4616[yyj4616] = Event{} + yyv4614[yyj4614] = Container{} } else { - yyv4618 := &yyv4616[yyj4616] - yyv4618.CodecDecodeSelf(d) + yyv4616 := &yyv4614[yyj4614] + yyv4616.CodecDecodeSelf(d) } } } } else { - yyj4616 := 0 - for ; !r.CheckBreak(); yyj4616++ { + yyj4614 := 0 + for ; !r.CheckBreak(); yyj4614++ { - if yyj4616 >= len(yyv4616) { - yyv4616 = append(yyv4616, Event{}) // var yyz4616 Event - yyc4616 = true + if yyj4614 >= len(yyv4614) { + yyv4614 = append(yyv4614, Container{}) // var yyz4614 Container + yyc4614 = true } - yyh4616.ElemContainerState(yyj4616) - if yyj4616 < len(yyv4616) { + yyh4614.ElemContainerState(yyj4614) + if yyj4614 < len(yyv4614) { if r.TryDecodeAsNil() { - yyv4616[yyj4616] = Event{} + yyv4614[yyj4614] = Container{} } else { - yyv4619 := &yyv4616[yyj4616] - yyv4619.CodecDecodeSelf(d) + yyv4617 := &yyv4614[yyj4614] + yyv4617.CodecDecodeSelf(d) } } else { @@ -59316,147 +58172,115 @@ func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { } } - if yyj4616 < len(yyv4616) { - yyv4616 = yyv4616[:yyj4616] - yyc4616 = true - } else if yyj4616 == 0 && yyv4616 == nil { - yyv4616 = []Event{} - yyc4616 = true + if yyj4614 < len(yyv4614) { + yyv4614 = yyv4614[:yyj4614] + yyc4614 = true + } else if yyj4614 == 0 && yyv4614 == nil { + yyv4614 = []Container{} + yyc4614 = true } } - yyh4616.End() - if yyc4616 { - *v = yyv4616 + yyh4614.End() + if yyc4614 { + *v = yyv4614 } } -func (x codecSelfer1234) encSliceruntime_RawExtension(v []pkg5_runtime.RawExtension, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceLocalObjectReference(v []LocalObjectReference, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4620 := range v { + for _, yyv4618 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4621 := &yyv4620 - yym4622 := z.EncBinary() - _ = yym4622 - if false { - } else if z.HasExtensions() && z.EncExt(yy4621) { - } else if !yym4622 && z.IsJSONHandle() { - z.EncJSONMarshal(yy4621) - } else { - z.EncFallback(yy4621) - } + yy4619 := &yyv4618 + yy4619.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceruntime_RawExtension(v *[]pkg5_runtime.RawExtension, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceLocalObjectReference(v *[]LocalObjectReference, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4623 := *v - yyh4623, yyl4623 := z.DecSliceHelperStart() - var yyc4623 bool - if yyl4623 == 0 { - if yyv4623 == nil { - yyv4623 = []pkg5_runtime.RawExtension{} - yyc4623 = true - } else if len(yyv4623) != 0 { - yyv4623 = yyv4623[:0] - yyc4623 = true + yyv4620 := *v + yyh4620, yyl4620 := z.DecSliceHelperStart() + var yyc4620 bool + if yyl4620 == 0 { + if yyv4620 == nil { + yyv4620 = []LocalObjectReference{} + yyc4620 = true + } else if len(yyv4620) != 0 { + yyv4620 = yyv4620[:0] + yyc4620 = true } - } else if yyl4623 > 0 { - var yyrr4623, yyrl4623 int - var yyrt4623 bool - if yyl4623 > cap(yyv4623) { + } else if yyl4620 > 0 { + var yyrr4620, yyrl4620 int + var yyrt4620 bool + if yyl4620 > cap(yyv4620) { - yyrg4623 := len(yyv4623) > 0 - yyv24623 := yyv4623 - yyrl4623, yyrt4623 = z.DecInferLen(yyl4623, z.DecBasicHandle().MaxInitLen, 40) - if yyrt4623 { - if yyrl4623 <= cap(yyv4623) { - yyv4623 = yyv4623[:yyrl4623] + yyrg4620 := len(yyv4620) > 0 + yyv24620 := yyv4620 + yyrl4620, yyrt4620 = z.DecInferLen(yyl4620, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4620 { + if yyrl4620 <= cap(yyv4620) { + yyv4620 = yyv4620[:yyrl4620] } else { - yyv4623 = make([]pkg5_runtime.RawExtension, yyrl4623) + yyv4620 = make([]LocalObjectReference, yyrl4620) } } else { - yyv4623 = make([]pkg5_runtime.RawExtension, yyrl4623) + yyv4620 = make([]LocalObjectReference, yyrl4620) } - yyc4623 = true - yyrr4623 = len(yyv4623) - if yyrg4623 { - copy(yyv4623, yyv24623) + yyc4620 = true + yyrr4620 = len(yyv4620) + if yyrg4620 { + copy(yyv4620, yyv24620) } - } else if yyl4623 != len(yyv4623) { - yyv4623 = yyv4623[:yyl4623] - yyc4623 = true + } else if yyl4620 != len(yyv4620) { + yyv4620 = yyv4620[:yyl4620] + yyc4620 = true } - yyj4623 := 0 - for ; yyj4623 < yyrr4623; yyj4623++ { - yyh4623.ElemContainerState(yyj4623) + yyj4620 := 0 + for ; yyj4620 < yyrr4620; yyj4620++ { + yyh4620.ElemContainerState(yyj4620) if r.TryDecodeAsNil() { - yyv4623[yyj4623] = pkg5_runtime.RawExtension{} + yyv4620[yyj4620] = LocalObjectReference{} } else { - yyv4624 := &yyv4623[yyj4623] - yym4625 := z.DecBinary() - _ = yym4625 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4624) { - } else if !yym4625 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4624) - } else { - z.DecFallback(yyv4624, false) - } + yyv4621 := &yyv4620[yyj4620] + yyv4621.CodecDecodeSelf(d) } } - if yyrt4623 { - for ; yyj4623 < yyl4623; yyj4623++ { - yyv4623 = append(yyv4623, pkg5_runtime.RawExtension{}) - yyh4623.ElemContainerState(yyj4623) + if yyrt4620 { + for ; yyj4620 < yyl4620; yyj4620++ { + yyv4620 = append(yyv4620, LocalObjectReference{}) + yyh4620.ElemContainerState(yyj4620) if r.TryDecodeAsNil() { - yyv4623[yyj4623] = pkg5_runtime.RawExtension{} + yyv4620[yyj4620] = LocalObjectReference{} } else { - yyv4626 := &yyv4623[yyj4623] - yym4627 := z.DecBinary() - _ = yym4627 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4626) { - } else if !yym4627 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4626) - } else { - z.DecFallback(yyv4626, false) - } + yyv4622 := &yyv4620[yyj4620] + yyv4622.CodecDecodeSelf(d) } } } } else { - yyj4623 := 0 - for ; !r.CheckBreak(); yyj4623++ { + yyj4620 := 0 + for ; !r.CheckBreak(); yyj4620++ { - if yyj4623 >= len(yyv4623) { - yyv4623 = append(yyv4623, pkg5_runtime.RawExtension{}) // var yyz4623 pkg5_runtime.RawExtension - yyc4623 = true + if yyj4620 >= len(yyv4620) { + yyv4620 = append(yyv4620, LocalObjectReference{}) // var yyz4620 LocalObjectReference + yyc4620 = true } - yyh4623.ElemContainerState(yyj4623) - if yyj4623 < len(yyv4623) { + yyh4620.ElemContainerState(yyj4620) + if yyj4620 < len(yyv4620) { if r.TryDecodeAsNil() { - yyv4623[yyj4623] = pkg5_runtime.RawExtension{} + yyv4620[yyj4620] = LocalObjectReference{} } else { - yyv4628 := &yyv4623[yyj4623] - yym4629 := z.DecBinary() - _ = yym4629 - if false { - } else if z.HasExtensions() && z.DecExt(yyv4628) { - } else if !yym4629 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv4628) - } else { - z.DecFallback(yyv4628, false) - } + yyv4623 := &yyv4620[yyj4620] + yyv4623.CodecDecodeSelf(d) } } else { @@ -59464,21 +58288,137 @@ func (x codecSelfer1234) decSliceruntime_RawExtension(v *[]pkg5_runtime.RawExten } } - if yyj4623 < len(yyv4623) { - yyv4623 = yyv4623[:yyj4623] - yyc4623 = true - } else if yyj4623 == 0 && yyv4623 == nil { - yyv4623 = []pkg5_runtime.RawExtension{} - yyc4623 = true + if yyj4620 < len(yyv4620) { + yyv4620 = yyv4620[:yyj4620] + yyc4620 = true + } else if yyj4620 == 0 && yyv4620 == nil { + yyv4620 = []LocalObjectReference{} + yyc4620 = true } } - yyh4623.End() - if yyc4623 { - *v = yyv4623 + yyh4620.End() + if yyc4620 { + *v = yyv4620 } } -func (x codecSelfer1234) encSliceLimitRangeItem(v []LimitRangeItem, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePodCondition(v []PodCondition, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4624 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4625 := &yyv4624 + yy4625.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSlicePodCondition(v *[]PodCondition, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4626 := *v + yyh4626, yyl4626 := z.DecSliceHelperStart() + var yyc4626 bool + if yyl4626 == 0 { + if yyv4626 == nil { + yyv4626 = []PodCondition{} + yyc4626 = true + } else if len(yyv4626) != 0 { + yyv4626 = yyv4626[:0] + yyc4626 = true + } + } else if yyl4626 > 0 { + var yyrr4626, yyrl4626 int + var yyrt4626 bool + if yyl4626 > cap(yyv4626) { + + yyrg4626 := len(yyv4626) > 0 + yyv24626 := yyv4626 + yyrl4626, yyrt4626 = z.DecInferLen(yyl4626, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4626 { + if yyrl4626 <= cap(yyv4626) { + yyv4626 = yyv4626[:yyrl4626] + } else { + yyv4626 = make([]PodCondition, yyrl4626) + } + } else { + yyv4626 = make([]PodCondition, yyrl4626) + } + yyc4626 = true + yyrr4626 = len(yyv4626) + if yyrg4626 { + copy(yyv4626, yyv24626) + } + } else if yyl4626 != len(yyv4626) { + yyv4626 = yyv4626[:yyl4626] + yyc4626 = true + } + yyj4626 := 0 + for ; yyj4626 < yyrr4626; yyj4626++ { + yyh4626.ElemContainerState(yyj4626) + if r.TryDecodeAsNil() { + yyv4626[yyj4626] = PodCondition{} + } else { + yyv4627 := &yyv4626[yyj4626] + yyv4627.CodecDecodeSelf(d) + } + + } + if yyrt4626 { + for ; yyj4626 < yyl4626; yyj4626++ { + yyv4626 = append(yyv4626, PodCondition{}) + yyh4626.ElemContainerState(yyj4626) + if r.TryDecodeAsNil() { + yyv4626[yyj4626] = PodCondition{} + } else { + yyv4628 := &yyv4626[yyj4626] + yyv4628.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4626 := 0 + for ; !r.CheckBreak(); yyj4626++ { + + if yyj4626 >= len(yyv4626) { + yyv4626 = append(yyv4626, PodCondition{}) // var yyz4626 PodCondition + yyc4626 = true + } + yyh4626.ElemContainerState(yyj4626) + if yyj4626 < len(yyv4626) { + if r.TryDecodeAsNil() { + yyv4626[yyj4626] = PodCondition{} + } else { + yyv4629 := &yyv4626[yyj4626] + yyv4629.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4626 < len(yyv4626) { + yyv4626 = yyv4626[:yyj4626] + yyc4626 = true + } else if yyj4626 == 0 && yyv4626 == nil { + yyv4626 = []PodCondition{} + yyc4626 = true + } + } + yyh4626.End() + if yyc4626 { + *v = yyv4626 + } +} + +func (x codecSelfer1234) encSliceContainerStatus(v []ContainerStatus, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -59491,7 +58431,7 @@ func (x codecSelfer1234) encSliceLimitRangeItem(v []LimitRangeItem, e *codec1978 z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec1978.Decoder) { +func (x codecSelfer1234) decSliceContainerStatus(v *[]ContainerStatus, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -59501,7 +58441,7 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 var yyc4632 bool if yyl4632 == 0 { if yyv4632 == nil { - yyv4632 = []LimitRangeItem{} + yyv4632 = []ContainerStatus{} yyc4632 = true } else if len(yyv4632) != 0 { yyv4632 = yyv4632[:0] @@ -59514,15 +58454,15 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 yyrg4632 := len(yyv4632) > 0 yyv24632 := yyv4632 - yyrl4632, yyrt4632 = z.DecInferLen(yyl4632, z.DecBasicHandle().MaxInitLen, 56) + yyrl4632, yyrt4632 = z.DecInferLen(yyl4632, z.DecBasicHandle().MaxInitLen, 120) if yyrt4632 { if yyrl4632 <= cap(yyv4632) { yyv4632 = yyv4632[:yyrl4632] } else { - yyv4632 = make([]LimitRangeItem, yyrl4632) + yyv4632 = make([]ContainerStatus, yyrl4632) } } else { - yyv4632 = make([]LimitRangeItem, yyrl4632) + yyv4632 = make([]ContainerStatus, yyrl4632) } yyc4632 = true yyrr4632 = len(yyv4632) @@ -59537,7 +58477,7 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 for ; yyj4632 < yyrr4632; yyj4632++ { yyh4632.ElemContainerState(yyj4632) if r.TryDecodeAsNil() { - yyv4632[yyj4632] = LimitRangeItem{} + yyv4632[yyj4632] = ContainerStatus{} } else { yyv4633 := &yyv4632[yyj4632] yyv4633.CodecDecodeSelf(d) @@ -59546,10 +58486,10 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 } if yyrt4632 { for ; yyj4632 < yyl4632; yyj4632++ { - yyv4632 = append(yyv4632, LimitRangeItem{}) + yyv4632 = append(yyv4632, ContainerStatus{}) yyh4632.ElemContainerState(yyj4632) if r.TryDecodeAsNil() { - yyv4632[yyj4632] = LimitRangeItem{} + yyv4632[yyj4632] = ContainerStatus{} } else { yyv4634 := &yyv4632[yyj4632] yyv4634.CodecDecodeSelf(d) @@ -59563,13 +58503,13 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 for ; !r.CheckBreak(); yyj4632++ { if yyj4632 >= len(yyv4632) { - yyv4632 = append(yyv4632, LimitRangeItem{}) // var yyz4632 LimitRangeItem + yyv4632 = append(yyv4632, ContainerStatus{}) // var yyz4632 ContainerStatus yyc4632 = true } yyh4632.ElemContainerState(yyj4632) if yyj4632 < len(yyv4632) { if r.TryDecodeAsNil() { - yyv4632[yyj4632] = LimitRangeItem{} + yyv4632[yyj4632] = ContainerStatus{} } else { yyv4635 := &yyv4632[yyj4632] yyv4635.CodecDecodeSelf(d) @@ -59584,7 +58524,7 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 yyv4632 = yyv4632[:yyj4632] yyc4632 = true } else if yyj4632 == 0 && yyv4632 == nil { - yyv4632 = []LimitRangeItem{} + yyv4632 = []ContainerStatus{} yyc4632 = true } } @@ -59594,7 +58534,7 @@ func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec197 } } -func (x codecSelfer1234) encSliceLimitRange(v []LimitRange, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePod(v []Pod, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r @@ -59607,7 +58547,7 @@ func (x codecSelfer1234) encSliceLimitRange(v []LimitRange, e *codec1978.Encoder z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } -func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decoder) { +func (x codecSelfer1234) decSlicePod(v *[]Pod, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r @@ -59617,7 +58557,7 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode var yyc4638 bool if yyl4638 == 0 { if yyv4638 == nil { - yyv4638 = []LimitRange{} + yyv4638 = []Pod{} yyc4638 = true } else if len(yyv4638) != 0 { yyv4638 = yyv4638[:0] @@ -59630,15 +58570,15 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode yyrg4638 := len(yyv4638) > 0 yyv24638 := yyv4638 - yyrl4638, yyrt4638 = z.DecInferLen(yyl4638, z.DecBasicHandle().MaxInitLen, 264) + yyrl4638, yyrt4638 = z.DecInferLen(yyl4638, z.DecBasicHandle().MaxInitLen, 664) if yyrt4638 { if yyrl4638 <= cap(yyv4638) { yyv4638 = yyv4638[:yyrl4638] } else { - yyv4638 = make([]LimitRange, yyrl4638) + yyv4638 = make([]Pod, yyrl4638) } } else { - yyv4638 = make([]LimitRange, yyrl4638) + yyv4638 = make([]Pod, yyrl4638) } yyc4638 = true yyrr4638 = len(yyv4638) @@ -59653,7 +58593,7 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode for ; yyj4638 < yyrr4638; yyj4638++ { yyh4638.ElemContainerState(yyj4638) if r.TryDecodeAsNil() { - yyv4638[yyj4638] = LimitRange{} + yyv4638[yyj4638] = Pod{} } else { yyv4639 := &yyv4638[yyj4638] yyv4639.CodecDecodeSelf(d) @@ -59662,10 +58602,10 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode } if yyrt4638 { for ; yyj4638 < yyl4638; yyj4638++ { - yyv4638 = append(yyv4638, LimitRange{}) + yyv4638 = append(yyv4638, Pod{}) yyh4638.ElemContainerState(yyj4638) if r.TryDecodeAsNil() { - yyv4638[yyj4638] = LimitRange{} + yyv4638[yyj4638] = Pod{} } else { yyv4640 := &yyv4638[yyj4638] yyv4640.CodecDecodeSelf(d) @@ -59679,13 +58619,13 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode for ; !r.CheckBreak(); yyj4638++ { if yyj4638 >= len(yyv4638) { - yyv4638 = append(yyv4638, LimitRange{}) // var yyz4638 LimitRange + yyv4638 = append(yyv4638, Pod{}) // var yyz4638 Pod yyc4638 = true } yyh4638.ElemContainerState(yyj4638) if yyj4638 < len(yyv4638) { if r.TryDecodeAsNil() { - yyv4638[yyj4638] = LimitRange{} + yyv4638[yyj4638] = Pod{} } else { yyv4641 := &yyv4638[yyj4638] yyv4641.CodecDecodeSelf(d) @@ -59700,7 +58640,7 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode yyv4638 = yyv4638[:yyj4638] yyc4638 = true } else if yyj4638 == 0 && yyv4638 == nil { - yyv4638 = []LimitRange{} + yyv4638 = []Pod{} yyc4638 = true } } @@ -59710,14 +58650,2926 @@ func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decode } } -func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, e *codec1978.Encoder) { +func (x codecSelfer1234) encSlicePodTemplate(v []PodTemplate, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4642 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv4642.CodecEncodeSelf(e) + yy4643 := &yyv4642 + yy4643.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSlicePodTemplate(v *[]PodTemplate, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4644 := *v + yyh4644, yyl4644 := z.DecSliceHelperStart() + var yyc4644 bool + if yyl4644 == 0 { + if yyv4644 == nil { + yyv4644 = []PodTemplate{} + yyc4644 = true + } else if len(yyv4644) != 0 { + yyv4644 = yyv4644[:0] + yyc4644 = true + } + } else if yyl4644 > 0 { + var yyrr4644, yyrl4644 int + var yyrt4644 bool + if yyl4644 > cap(yyv4644) { + + yyrg4644 := len(yyv4644) > 0 + yyv24644 := yyv4644 + yyrl4644, yyrt4644 = z.DecInferLen(yyl4644, z.DecBasicHandle().MaxInitLen, 728) + if yyrt4644 { + if yyrl4644 <= cap(yyv4644) { + yyv4644 = yyv4644[:yyrl4644] + } else { + yyv4644 = make([]PodTemplate, yyrl4644) + } + } else { + yyv4644 = make([]PodTemplate, yyrl4644) + } + yyc4644 = true + yyrr4644 = len(yyv4644) + if yyrg4644 { + copy(yyv4644, yyv24644) + } + } else if yyl4644 != len(yyv4644) { + yyv4644 = yyv4644[:yyl4644] + yyc4644 = true + } + yyj4644 := 0 + for ; yyj4644 < yyrr4644; yyj4644++ { + yyh4644.ElemContainerState(yyj4644) + if r.TryDecodeAsNil() { + yyv4644[yyj4644] = PodTemplate{} + } else { + yyv4645 := &yyv4644[yyj4644] + yyv4645.CodecDecodeSelf(d) + } + + } + if yyrt4644 { + for ; yyj4644 < yyl4644; yyj4644++ { + yyv4644 = append(yyv4644, PodTemplate{}) + yyh4644.ElemContainerState(yyj4644) + if r.TryDecodeAsNil() { + yyv4644[yyj4644] = PodTemplate{} + } else { + yyv4646 := &yyv4644[yyj4644] + yyv4646.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4644 := 0 + for ; !r.CheckBreak(); yyj4644++ { + + if yyj4644 >= len(yyv4644) { + yyv4644 = append(yyv4644, PodTemplate{}) // var yyz4644 PodTemplate + yyc4644 = true + } + yyh4644.ElemContainerState(yyj4644) + if yyj4644 < len(yyv4644) { + if r.TryDecodeAsNil() { + yyv4644[yyj4644] = PodTemplate{} + } else { + yyv4647 := &yyv4644[yyj4644] + yyv4647.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4644 < len(yyv4644) { + yyv4644 = yyv4644[:yyj4644] + yyc4644 = true + } else if yyj4644 == 0 && yyv4644 == nil { + yyv4644 = []PodTemplate{} + yyc4644 = true + } + } + yyh4644.End() + if yyc4644 { + *v = yyv4644 + } +} + +func (x codecSelfer1234) encSliceReplicationController(v []ReplicationController, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4648 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4649 := &yyv4648 + yy4649.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceReplicationController(v *[]ReplicationController, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4650 := *v + yyh4650, yyl4650 := z.DecSliceHelperStart() + var yyc4650 bool + if yyl4650 == 0 { + if yyv4650 == nil { + yyv4650 = []ReplicationController{} + yyc4650 = true + } else if len(yyv4650) != 0 { + yyv4650 = yyv4650[:0] + yyc4650 = true + } + } else if yyl4650 > 0 { + var yyrr4650, yyrl4650 int + var yyrt4650 bool + if yyl4650 > cap(yyv4650) { + + yyrg4650 := len(yyv4650) > 0 + yyv24650 := yyv4650 + yyrl4650, yyrt4650 = z.DecInferLen(yyl4650, z.DecBasicHandle().MaxInitLen, 304) + if yyrt4650 { + if yyrl4650 <= cap(yyv4650) { + yyv4650 = yyv4650[:yyrl4650] + } else { + yyv4650 = make([]ReplicationController, yyrl4650) + } + } else { + yyv4650 = make([]ReplicationController, yyrl4650) + } + yyc4650 = true + yyrr4650 = len(yyv4650) + if yyrg4650 { + copy(yyv4650, yyv24650) + } + } else if yyl4650 != len(yyv4650) { + yyv4650 = yyv4650[:yyl4650] + yyc4650 = true + } + yyj4650 := 0 + for ; yyj4650 < yyrr4650; yyj4650++ { + yyh4650.ElemContainerState(yyj4650) + if r.TryDecodeAsNil() { + yyv4650[yyj4650] = ReplicationController{} + } else { + yyv4651 := &yyv4650[yyj4650] + yyv4651.CodecDecodeSelf(d) + } + + } + if yyrt4650 { + for ; yyj4650 < yyl4650; yyj4650++ { + yyv4650 = append(yyv4650, ReplicationController{}) + yyh4650.ElemContainerState(yyj4650) + if r.TryDecodeAsNil() { + yyv4650[yyj4650] = ReplicationController{} + } else { + yyv4652 := &yyv4650[yyj4650] + yyv4652.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4650 := 0 + for ; !r.CheckBreak(); yyj4650++ { + + if yyj4650 >= len(yyv4650) { + yyv4650 = append(yyv4650, ReplicationController{}) // var yyz4650 ReplicationController + yyc4650 = true + } + yyh4650.ElemContainerState(yyj4650) + if yyj4650 < len(yyv4650) { + if r.TryDecodeAsNil() { + yyv4650[yyj4650] = ReplicationController{} + } else { + yyv4653 := &yyv4650[yyj4650] + yyv4653.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4650 < len(yyv4650) { + yyv4650 = yyv4650[:yyj4650] + yyc4650 = true + } else if yyj4650 == 0 && yyv4650 == nil { + yyv4650 = []ReplicationController{} + yyc4650 = true + } + } + yyh4650.End() + if yyc4650 { + *v = yyv4650 + } +} + +func (x codecSelfer1234) encSliceLoadBalancerIngress(v []LoadBalancerIngress, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4654 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4655 := &yyv4654 + yy4655.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceLoadBalancerIngress(v *[]LoadBalancerIngress, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4656 := *v + yyh4656, yyl4656 := z.DecSliceHelperStart() + var yyc4656 bool + if yyl4656 == 0 { + if yyv4656 == nil { + yyv4656 = []LoadBalancerIngress{} + yyc4656 = true + } else if len(yyv4656) != 0 { + yyv4656 = yyv4656[:0] + yyc4656 = true + } + } else if yyl4656 > 0 { + var yyrr4656, yyrl4656 int + var yyrt4656 bool + if yyl4656 > cap(yyv4656) { + + yyrg4656 := len(yyv4656) > 0 + yyv24656 := yyv4656 + yyrl4656, yyrt4656 = z.DecInferLen(yyl4656, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4656 { + if yyrl4656 <= cap(yyv4656) { + yyv4656 = yyv4656[:yyrl4656] + } else { + yyv4656 = make([]LoadBalancerIngress, yyrl4656) + } + } else { + yyv4656 = make([]LoadBalancerIngress, yyrl4656) + } + yyc4656 = true + yyrr4656 = len(yyv4656) + if yyrg4656 { + copy(yyv4656, yyv24656) + } + } else if yyl4656 != len(yyv4656) { + yyv4656 = yyv4656[:yyl4656] + yyc4656 = true + } + yyj4656 := 0 + for ; yyj4656 < yyrr4656; yyj4656++ { + yyh4656.ElemContainerState(yyj4656) + if r.TryDecodeAsNil() { + yyv4656[yyj4656] = LoadBalancerIngress{} + } else { + yyv4657 := &yyv4656[yyj4656] + yyv4657.CodecDecodeSelf(d) + } + + } + if yyrt4656 { + for ; yyj4656 < yyl4656; yyj4656++ { + yyv4656 = append(yyv4656, LoadBalancerIngress{}) + yyh4656.ElemContainerState(yyj4656) + if r.TryDecodeAsNil() { + yyv4656[yyj4656] = LoadBalancerIngress{} + } else { + yyv4658 := &yyv4656[yyj4656] + yyv4658.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4656 := 0 + for ; !r.CheckBreak(); yyj4656++ { + + if yyj4656 >= len(yyv4656) { + yyv4656 = append(yyv4656, LoadBalancerIngress{}) // var yyz4656 LoadBalancerIngress + yyc4656 = true + } + yyh4656.ElemContainerState(yyj4656) + if yyj4656 < len(yyv4656) { + if r.TryDecodeAsNil() { + yyv4656[yyj4656] = LoadBalancerIngress{} + } else { + yyv4659 := &yyv4656[yyj4656] + yyv4659.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4656 < len(yyv4656) { + yyv4656 = yyv4656[:yyj4656] + yyc4656 = true + } else if yyj4656 == 0 && yyv4656 == nil { + yyv4656 = []LoadBalancerIngress{} + yyc4656 = true + } + } + yyh4656.End() + if yyc4656 { + *v = yyv4656 + } +} + +func (x codecSelfer1234) encSliceServicePort(v []ServicePort, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4660 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4661 := &yyv4660 + yy4661.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceServicePort(v *[]ServicePort, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4662 := *v + yyh4662, yyl4662 := z.DecSliceHelperStart() + var yyc4662 bool + if yyl4662 == 0 { + if yyv4662 == nil { + yyv4662 = []ServicePort{} + yyc4662 = true + } else if len(yyv4662) != 0 { + yyv4662 = yyv4662[:0] + yyc4662 = true + } + } else if yyl4662 > 0 { + var yyrr4662, yyrl4662 int + var yyrt4662 bool + if yyl4662 > cap(yyv4662) { + + yyrg4662 := len(yyv4662) > 0 + yyv24662 := yyv4662 + yyrl4662, yyrt4662 = z.DecInferLen(yyl4662, z.DecBasicHandle().MaxInitLen, 80) + if yyrt4662 { + if yyrl4662 <= cap(yyv4662) { + yyv4662 = yyv4662[:yyrl4662] + } else { + yyv4662 = make([]ServicePort, yyrl4662) + } + } else { + yyv4662 = make([]ServicePort, yyrl4662) + } + yyc4662 = true + yyrr4662 = len(yyv4662) + if yyrg4662 { + copy(yyv4662, yyv24662) + } + } else if yyl4662 != len(yyv4662) { + yyv4662 = yyv4662[:yyl4662] + yyc4662 = true + } + yyj4662 := 0 + for ; yyj4662 < yyrr4662; yyj4662++ { + yyh4662.ElemContainerState(yyj4662) + if r.TryDecodeAsNil() { + yyv4662[yyj4662] = ServicePort{} + } else { + yyv4663 := &yyv4662[yyj4662] + yyv4663.CodecDecodeSelf(d) + } + + } + if yyrt4662 { + for ; yyj4662 < yyl4662; yyj4662++ { + yyv4662 = append(yyv4662, ServicePort{}) + yyh4662.ElemContainerState(yyj4662) + if r.TryDecodeAsNil() { + yyv4662[yyj4662] = ServicePort{} + } else { + yyv4664 := &yyv4662[yyj4662] + yyv4664.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4662 := 0 + for ; !r.CheckBreak(); yyj4662++ { + + if yyj4662 >= len(yyv4662) { + yyv4662 = append(yyv4662, ServicePort{}) // var yyz4662 ServicePort + yyc4662 = true + } + yyh4662.ElemContainerState(yyj4662) + if yyj4662 < len(yyv4662) { + if r.TryDecodeAsNil() { + yyv4662[yyj4662] = ServicePort{} + } else { + yyv4665 := &yyv4662[yyj4662] + yyv4665.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4662 < len(yyv4662) { + yyv4662 = yyv4662[:yyj4662] + yyc4662 = true + } else if yyj4662 == 0 && yyv4662 == nil { + yyv4662 = []ServicePort{} + yyc4662 = true + } + } + yyh4662.End() + if yyc4662 { + *v = yyv4662 + } +} + +func (x codecSelfer1234) encSliceService(v []Service, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4666 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4667 := &yyv4666 + yy4667.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceService(v *[]Service, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4668 := *v + yyh4668, yyl4668 := z.DecSliceHelperStart() + var yyc4668 bool + if yyl4668 == 0 { + if yyv4668 == nil { + yyv4668 = []Service{} + yyc4668 = true + } else if len(yyv4668) != 0 { + yyv4668 = yyv4668[:0] + yyc4668 = true + } + } else if yyl4668 > 0 { + var yyrr4668, yyrl4668 int + var yyrt4668 bool + if yyl4668 > cap(yyv4668) { + + yyrg4668 := len(yyv4668) > 0 + yyv24668 := yyv4668 + yyrl4668, yyrt4668 = z.DecInferLen(yyl4668, z.DecBasicHandle().MaxInitLen, 464) + if yyrt4668 { + if yyrl4668 <= cap(yyv4668) { + yyv4668 = yyv4668[:yyrl4668] + } else { + yyv4668 = make([]Service, yyrl4668) + } + } else { + yyv4668 = make([]Service, yyrl4668) + } + yyc4668 = true + yyrr4668 = len(yyv4668) + if yyrg4668 { + copy(yyv4668, yyv24668) + } + } else if yyl4668 != len(yyv4668) { + yyv4668 = yyv4668[:yyl4668] + yyc4668 = true + } + yyj4668 := 0 + for ; yyj4668 < yyrr4668; yyj4668++ { + yyh4668.ElemContainerState(yyj4668) + if r.TryDecodeAsNil() { + yyv4668[yyj4668] = Service{} + } else { + yyv4669 := &yyv4668[yyj4668] + yyv4669.CodecDecodeSelf(d) + } + + } + if yyrt4668 { + for ; yyj4668 < yyl4668; yyj4668++ { + yyv4668 = append(yyv4668, Service{}) + yyh4668.ElemContainerState(yyj4668) + if r.TryDecodeAsNil() { + yyv4668[yyj4668] = Service{} + } else { + yyv4670 := &yyv4668[yyj4668] + yyv4670.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4668 := 0 + for ; !r.CheckBreak(); yyj4668++ { + + if yyj4668 >= len(yyv4668) { + yyv4668 = append(yyv4668, Service{}) // var yyz4668 Service + yyc4668 = true + } + yyh4668.ElemContainerState(yyj4668) + if yyj4668 < len(yyv4668) { + if r.TryDecodeAsNil() { + yyv4668[yyj4668] = Service{} + } else { + yyv4671 := &yyv4668[yyj4668] + yyv4671.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4668 < len(yyv4668) { + yyv4668 = yyv4668[:yyj4668] + yyc4668 = true + } else if yyj4668 == 0 && yyv4668 == nil { + yyv4668 = []Service{} + yyc4668 = true + } + } + yyh4668.End() + if yyc4668 { + *v = yyv4668 + } +} + +func (x codecSelfer1234) encSliceObjectReference(v []ObjectReference, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4672 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4673 := &yyv4672 + yy4673.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceObjectReference(v *[]ObjectReference, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4674 := *v + yyh4674, yyl4674 := z.DecSliceHelperStart() + var yyc4674 bool + if yyl4674 == 0 { + if yyv4674 == nil { + yyv4674 = []ObjectReference{} + yyc4674 = true + } else if len(yyv4674) != 0 { + yyv4674 = yyv4674[:0] + yyc4674 = true + } + } else if yyl4674 > 0 { + var yyrr4674, yyrl4674 int + var yyrt4674 bool + if yyl4674 > cap(yyv4674) { + + yyrg4674 := len(yyv4674) > 0 + yyv24674 := yyv4674 + yyrl4674, yyrt4674 = z.DecInferLen(yyl4674, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4674 { + if yyrl4674 <= cap(yyv4674) { + yyv4674 = yyv4674[:yyrl4674] + } else { + yyv4674 = make([]ObjectReference, yyrl4674) + } + } else { + yyv4674 = make([]ObjectReference, yyrl4674) + } + yyc4674 = true + yyrr4674 = len(yyv4674) + if yyrg4674 { + copy(yyv4674, yyv24674) + } + } else if yyl4674 != len(yyv4674) { + yyv4674 = yyv4674[:yyl4674] + yyc4674 = true + } + yyj4674 := 0 + for ; yyj4674 < yyrr4674; yyj4674++ { + yyh4674.ElemContainerState(yyj4674) + if r.TryDecodeAsNil() { + yyv4674[yyj4674] = ObjectReference{} + } else { + yyv4675 := &yyv4674[yyj4674] + yyv4675.CodecDecodeSelf(d) + } + + } + if yyrt4674 { + for ; yyj4674 < yyl4674; yyj4674++ { + yyv4674 = append(yyv4674, ObjectReference{}) + yyh4674.ElemContainerState(yyj4674) + if r.TryDecodeAsNil() { + yyv4674[yyj4674] = ObjectReference{} + } else { + yyv4676 := &yyv4674[yyj4674] + yyv4676.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4674 := 0 + for ; !r.CheckBreak(); yyj4674++ { + + if yyj4674 >= len(yyv4674) { + yyv4674 = append(yyv4674, ObjectReference{}) // var yyz4674 ObjectReference + yyc4674 = true + } + yyh4674.ElemContainerState(yyj4674) + if yyj4674 < len(yyv4674) { + if r.TryDecodeAsNil() { + yyv4674[yyj4674] = ObjectReference{} + } else { + yyv4677 := &yyv4674[yyj4674] + yyv4677.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4674 < len(yyv4674) { + yyv4674 = yyv4674[:yyj4674] + yyc4674 = true + } else if yyj4674 == 0 && yyv4674 == nil { + yyv4674 = []ObjectReference{} + yyc4674 = true + } + } + yyh4674.End() + if yyc4674 { + *v = yyv4674 + } +} + +func (x codecSelfer1234) encSliceServiceAccount(v []ServiceAccount, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4678 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4679 := &yyv4678 + yy4679.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceServiceAccount(v *[]ServiceAccount, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4680 := *v + yyh4680, yyl4680 := z.DecSliceHelperStart() + var yyc4680 bool + if yyl4680 == 0 { + if yyv4680 == nil { + yyv4680 = []ServiceAccount{} + yyc4680 = true + } else if len(yyv4680) != 0 { + yyv4680 = yyv4680[:0] + yyc4680 = true + } + } else if yyl4680 > 0 { + var yyrr4680, yyrl4680 int + var yyrt4680 bool + if yyl4680 > cap(yyv4680) { + + yyrg4680 := len(yyv4680) > 0 + yyv24680 := yyv4680 + yyrl4680, yyrt4680 = z.DecInferLen(yyl4680, z.DecBasicHandle().MaxInitLen, 304) + if yyrt4680 { + if yyrl4680 <= cap(yyv4680) { + yyv4680 = yyv4680[:yyrl4680] + } else { + yyv4680 = make([]ServiceAccount, yyrl4680) + } + } else { + yyv4680 = make([]ServiceAccount, yyrl4680) + } + yyc4680 = true + yyrr4680 = len(yyv4680) + if yyrg4680 { + copy(yyv4680, yyv24680) + } + } else if yyl4680 != len(yyv4680) { + yyv4680 = yyv4680[:yyl4680] + yyc4680 = true + } + yyj4680 := 0 + for ; yyj4680 < yyrr4680; yyj4680++ { + yyh4680.ElemContainerState(yyj4680) + if r.TryDecodeAsNil() { + yyv4680[yyj4680] = ServiceAccount{} + } else { + yyv4681 := &yyv4680[yyj4680] + yyv4681.CodecDecodeSelf(d) + } + + } + if yyrt4680 { + for ; yyj4680 < yyl4680; yyj4680++ { + yyv4680 = append(yyv4680, ServiceAccount{}) + yyh4680.ElemContainerState(yyj4680) + if r.TryDecodeAsNil() { + yyv4680[yyj4680] = ServiceAccount{} + } else { + yyv4682 := &yyv4680[yyj4680] + yyv4682.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4680 := 0 + for ; !r.CheckBreak(); yyj4680++ { + + if yyj4680 >= len(yyv4680) { + yyv4680 = append(yyv4680, ServiceAccount{}) // var yyz4680 ServiceAccount + yyc4680 = true + } + yyh4680.ElemContainerState(yyj4680) + if yyj4680 < len(yyv4680) { + if r.TryDecodeAsNil() { + yyv4680[yyj4680] = ServiceAccount{} + } else { + yyv4683 := &yyv4680[yyj4680] + yyv4683.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4680 < len(yyv4680) { + yyv4680 = yyv4680[:yyj4680] + yyc4680 = true + } else if yyj4680 == 0 && yyv4680 == nil { + yyv4680 = []ServiceAccount{} + yyc4680 = true + } + } + yyh4680.End() + if yyc4680 { + *v = yyv4680 + } +} + +func (x codecSelfer1234) encSliceEndpointSubset(v []EndpointSubset, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4684 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4685 := &yyv4684 + yy4685.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceEndpointSubset(v *[]EndpointSubset, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4686 := *v + yyh4686, yyl4686 := z.DecSliceHelperStart() + var yyc4686 bool + if yyl4686 == 0 { + if yyv4686 == nil { + yyv4686 = []EndpointSubset{} + yyc4686 = true + } else if len(yyv4686) != 0 { + yyv4686 = yyv4686[:0] + yyc4686 = true + } + } else if yyl4686 > 0 { + var yyrr4686, yyrl4686 int + var yyrt4686 bool + if yyl4686 > cap(yyv4686) { + + yyrg4686 := len(yyv4686) > 0 + yyv24686 := yyv4686 + yyrl4686, yyrt4686 = z.DecInferLen(yyl4686, z.DecBasicHandle().MaxInitLen, 72) + if yyrt4686 { + if yyrl4686 <= cap(yyv4686) { + yyv4686 = yyv4686[:yyrl4686] + } else { + yyv4686 = make([]EndpointSubset, yyrl4686) + } + } else { + yyv4686 = make([]EndpointSubset, yyrl4686) + } + yyc4686 = true + yyrr4686 = len(yyv4686) + if yyrg4686 { + copy(yyv4686, yyv24686) + } + } else if yyl4686 != len(yyv4686) { + yyv4686 = yyv4686[:yyl4686] + yyc4686 = true + } + yyj4686 := 0 + for ; yyj4686 < yyrr4686; yyj4686++ { + yyh4686.ElemContainerState(yyj4686) + if r.TryDecodeAsNil() { + yyv4686[yyj4686] = EndpointSubset{} + } else { + yyv4687 := &yyv4686[yyj4686] + yyv4687.CodecDecodeSelf(d) + } + + } + if yyrt4686 { + for ; yyj4686 < yyl4686; yyj4686++ { + yyv4686 = append(yyv4686, EndpointSubset{}) + yyh4686.ElemContainerState(yyj4686) + if r.TryDecodeAsNil() { + yyv4686[yyj4686] = EndpointSubset{} + } else { + yyv4688 := &yyv4686[yyj4686] + yyv4688.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4686 := 0 + for ; !r.CheckBreak(); yyj4686++ { + + if yyj4686 >= len(yyv4686) { + yyv4686 = append(yyv4686, EndpointSubset{}) // var yyz4686 EndpointSubset + yyc4686 = true + } + yyh4686.ElemContainerState(yyj4686) + if yyj4686 < len(yyv4686) { + if r.TryDecodeAsNil() { + yyv4686[yyj4686] = EndpointSubset{} + } else { + yyv4689 := &yyv4686[yyj4686] + yyv4689.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4686 < len(yyv4686) { + yyv4686 = yyv4686[:yyj4686] + yyc4686 = true + } else if yyj4686 == 0 && yyv4686 == nil { + yyv4686 = []EndpointSubset{} + yyc4686 = true + } + } + yyh4686.End() + if yyc4686 { + *v = yyv4686 + } +} + +func (x codecSelfer1234) encSliceEndpointAddress(v []EndpointAddress, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4690 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4691 := &yyv4690 + yy4691.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceEndpointAddress(v *[]EndpointAddress, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4692 := *v + yyh4692, yyl4692 := z.DecSliceHelperStart() + var yyc4692 bool + if yyl4692 == 0 { + if yyv4692 == nil { + yyv4692 = []EndpointAddress{} + yyc4692 = true + } else if len(yyv4692) != 0 { + yyv4692 = yyv4692[:0] + yyc4692 = true + } + } else if yyl4692 > 0 { + var yyrr4692, yyrl4692 int + var yyrt4692 bool + if yyl4692 > cap(yyv4692) { + + yyrg4692 := len(yyv4692) > 0 + yyv24692 := yyv4692 + yyrl4692, yyrt4692 = z.DecInferLen(yyl4692, z.DecBasicHandle().MaxInitLen, 48) + if yyrt4692 { + if yyrl4692 <= cap(yyv4692) { + yyv4692 = yyv4692[:yyrl4692] + } else { + yyv4692 = make([]EndpointAddress, yyrl4692) + } + } else { + yyv4692 = make([]EndpointAddress, yyrl4692) + } + yyc4692 = true + yyrr4692 = len(yyv4692) + if yyrg4692 { + copy(yyv4692, yyv24692) + } + } else if yyl4692 != len(yyv4692) { + yyv4692 = yyv4692[:yyl4692] + yyc4692 = true + } + yyj4692 := 0 + for ; yyj4692 < yyrr4692; yyj4692++ { + yyh4692.ElemContainerState(yyj4692) + if r.TryDecodeAsNil() { + yyv4692[yyj4692] = EndpointAddress{} + } else { + yyv4693 := &yyv4692[yyj4692] + yyv4693.CodecDecodeSelf(d) + } + + } + if yyrt4692 { + for ; yyj4692 < yyl4692; yyj4692++ { + yyv4692 = append(yyv4692, EndpointAddress{}) + yyh4692.ElemContainerState(yyj4692) + if r.TryDecodeAsNil() { + yyv4692[yyj4692] = EndpointAddress{} + } else { + yyv4694 := &yyv4692[yyj4692] + yyv4694.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4692 := 0 + for ; !r.CheckBreak(); yyj4692++ { + + if yyj4692 >= len(yyv4692) { + yyv4692 = append(yyv4692, EndpointAddress{}) // var yyz4692 EndpointAddress + yyc4692 = true + } + yyh4692.ElemContainerState(yyj4692) + if yyj4692 < len(yyv4692) { + if r.TryDecodeAsNil() { + yyv4692[yyj4692] = EndpointAddress{} + } else { + yyv4695 := &yyv4692[yyj4692] + yyv4695.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4692 < len(yyv4692) { + yyv4692 = yyv4692[:yyj4692] + yyc4692 = true + } else if yyj4692 == 0 && yyv4692 == nil { + yyv4692 = []EndpointAddress{} + yyc4692 = true + } + } + yyh4692.End() + if yyc4692 { + *v = yyv4692 + } +} + +func (x codecSelfer1234) encSliceEndpointPort(v []EndpointPort, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4696 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4697 := &yyv4696 + yy4697.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceEndpointPort(v *[]EndpointPort, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4698 := *v + yyh4698, yyl4698 := z.DecSliceHelperStart() + var yyc4698 bool + if yyl4698 == 0 { + if yyv4698 == nil { + yyv4698 = []EndpointPort{} + yyc4698 = true + } else if len(yyv4698) != 0 { + yyv4698 = yyv4698[:0] + yyc4698 = true + } + } else if yyl4698 > 0 { + var yyrr4698, yyrl4698 int + var yyrt4698 bool + if yyl4698 > cap(yyv4698) { + + yyrg4698 := len(yyv4698) > 0 + yyv24698 := yyv4698 + yyrl4698, yyrt4698 = z.DecInferLen(yyl4698, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4698 { + if yyrl4698 <= cap(yyv4698) { + yyv4698 = yyv4698[:yyrl4698] + } else { + yyv4698 = make([]EndpointPort, yyrl4698) + } + } else { + yyv4698 = make([]EndpointPort, yyrl4698) + } + yyc4698 = true + yyrr4698 = len(yyv4698) + if yyrg4698 { + copy(yyv4698, yyv24698) + } + } else if yyl4698 != len(yyv4698) { + yyv4698 = yyv4698[:yyl4698] + yyc4698 = true + } + yyj4698 := 0 + for ; yyj4698 < yyrr4698; yyj4698++ { + yyh4698.ElemContainerState(yyj4698) + if r.TryDecodeAsNil() { + yyv4698[yyj4698] = EndpointPort{} + } else { + yyv4699 := &yyv4698[yyj4698] + yyv4699.CodecDecodeSelf(d) + } + + } + if yyrt4698 { + for ; yyj4698 < yyl4698; yyj4698++ { + yyv4698 = append(yyv4698, EndpointPort{}) + yyh4698.ElemContainerState(yyj4698) + if r.TryDecodeAsNil() { + yyv4698[yyj4698] = EndpointPort{} + } else { + yyv4700 := &yyv4698[yyj4698] + yyv4700.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4698 := 0 + for ; !r.CheckBreak(); yyj4698++ { + + if yyj4698 >= len(yyv4698) { + yyv4698 = append(yyv4698, EndpointPort{}) // var yyz4698 EndpointPort + yyc4698 = true + } + yyh4698.ElemContainerState(yyj4698) + if yyj4698 < len(yyv4698) { + if r.TryDecodeAsNil() { + yyv4698[yyj4698] = EndpointPort{} + } else { + yyv4701 := &yyv4698[yyj4698] + yyv4701.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4698 < len(yyv4698) { + yyv4698 = yyv4698[:yyj4698] + yyc4698 = true + } else if yyj4698 == 0 && yyv4698 == nil { + yyv4698 = []EndpointPort{} + yyc4698 = true + } + } + yyh4698.End() + if yyc4698 { + *v = yyv4698 + } +} + +func (x codecSelfer1234) encSliceEndpoints(v []Endpoints, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4702 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4703 := &yyv4702 + yy4703.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceEndpoints(v *[]Endpoints, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4704 := *v + yyh4704, yyl4704 := z.DecSliceHelperStart() + var yyc4704 bool + if yyl4704 == 0 { + if yyv4704 == nil { + yyv4704 = []Endpoints{} + yyc4704 = true + } else if len(yyv4704) != 0 { + yyv4704 = yyv4704[:0] + yyc4704 = true + } + } else if yyl4704 > 0 { + var yyrr4704, yyrl4704 int + var yyrt4704 bool + if yyl4704 > cap(yyv4704) { + + yyrg4704 := len(yyv4704) > 0 + yyv24704 := yyv4704 + yyrl4704, yyrt4704 = z.DecInferLen(yyl4704, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4704 { + if yyrl4704 <= cap(yyv4704) { + yyv4704 = yyv4704[:yyrl4704] + } else { + yyv4704 = make([]Endpoints, yyrl4704) + } + } else { + yyv4704 = make([]Endpoints, yyrl4704) + } + yyc4704 = true + yyrr4704 = len(yyv4704) + if yyrg4704 { + copy(yyv4704, yyv24704) + } + } else if yyl4704 != len(yyv4704) { + yyv4704 = yyv4704[:yyl4704] + yyc4704 = true + } + yyj4704 := 0 + for ; yyj4704 < yyrr4704; yyj4704++ { + yyh4704.ElemContainerState(yyj4704) + if r.TryDecodeAsNil() { + yyv4704[yyj4704] = Endpoints{} + } else { + yyv4705 := &yyv4704[yyj4704] + yyv4705.CodecDecodeSelf(d) + } + + } + if yyrt4704 { + for ; yyj4704 < yyl4704; yyj4704++ { + yyv4704 = append(yyv4704, Endpoints{}) + yyh4704.ElemContainerState(yyj4704) + if r.TryDecodeAsNil() { + yyv4704[yyj4704] = Endpoints{} + } else { + yyv4706 := &yyv4704[yyj4704] + yyv4706.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4704 := 0 + for ; !r.CheckBreak(); yyj4704++ { + + if yyj4704 >= len(yyv4704) { + yyv4704 = append(yyv4704, Endpoints{}) // var yyz4704 Endpoints + yyc4704 = true + } + yyh4704.ElemContainerState(yyj4704) + if yyj4704 < len(yyv4704) { + if r.TryDecodeAsNil() { + yyv4704[yyj4704] = Endpoints{} + } else { + yyv4707 := &yyv4704[yyj4704] + yyv4707.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4704 < len(yyv4704) { + yyv4704 = yyv4704[:yyj4704] + yyc4704 = true + } else if yyj4704 == 0 && yyv4704 == nil { + yyv4704 = []Endpoints{} + yyc4704 = true + } + } + yyh4704.End() + if yyc4704 { + *v = yyv4704 + } +} + +func (x codecSelfer1234) encSliceNodeCondition(v []NodeCondition, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4708 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4709 := &yyv4708 + yy4709.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceNodeCondition(v *[]NodeCondition, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4710 := *v + yyh4710, yyl4710 := z.DecSliceHelperStart() + var yyc4710 bool + if yyl4710 == 0 { + if yyv4710 == nil { + yyv4710 = []NodeCondition{} + yyc4710 = true + } else if len(yyv4710) != 0 { + yyv4710 = yyv4710[:0] + yyc4710 = true + } + } else if yyl4710 > 0 { + var yyrr4710, yyrl4710 int + var yyrt4710 bool + if yyl4710 > cap(yyv4710) { + + yyrg4710 := len(yyv4710) > 0 + yyv24710 := yyv4710 + yyrl4710, yyrt4710 = z.DecInferLen(yyl4710, z.DecBasicHandle().MaxInitLen, 112) + if yyrt4710 { + if yyrl4710 <= cap(yyv4710) { + yyv4710 = yyv4710[:yyrl4710] + } else { + yyv4710 = make([]NodeCondition, yyrl4710) + } + } else { + yyv4710 = make([]NodeCondition, yyrl4710) + } + yyc4710 = true + yyrr4710 = len(yyv4710) + if yyrg4710 { + copy(yyv4710, yyv24710) + } + } else if yyl4710 != len(yyv4710) { + yyv4710 = yyv4710[:yyl4710] + yyc4710 = true + } + yyj4710 := 0 + for ; yyj4710 < yyrr4710; yyj4710++ { + yyh4710.ElemContainerState(yyj4710) + if r.TryDecodeAsNil() { + yyv4710[yyj4710] = NodeCondition{} + } else { + yyv4711 := &yyv4710[yyj4710] + yyv4711.CodecDecodeSelf(d) + } + + } + if yyrt4710 { + for ; yyj4710 < yyl4710; yyj4710++ { + yyv4710 = append(yyv4710, NodeCondition{}) + yyh4710.ElemContainerState(yyj4710) + if r.TryDecodeAsNil() { + yyv4710[yyj4710] = NodeCondition{} + } else { + yyv4712 := &yyv4710[yyj4710] + yyv4712.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4710 := 0 + for ; !r.CheckBreak(); yyj4710++ { + + if yyj4710 >= len(yyv4710) { + yyv4710 = append(yyv4710, NodeCondition{}) // var yyz4710 NodeCondition + yyc4710 = true + } + yyh4710.ElemContainerState(yyj4710) + if yyj4710 < len(yyv4710) { + if r.TryDecodeAsNil() { + yyv4710[yyj4710] = NodeCondition{} + } else { + yyv4713 := &yyv4710[yyj4710] + yyv4713.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4710 < len(yyv4710) { + yyv4710 = yyv4710[:yyj4710] + yyc4710 = true + } else if yyj4710 == 0 && yyv4710 == nil { + yyv4710 = []NodeCondition{} + yyc4710 = true + } + } + yyh4710.End() + if yyc4710 { + *v = yyv4710 + } +} + +func (x codecSelfer1234) encSliceNodeAddress(v []NodeAddress, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4714 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4715 := &yyv4714 + yy4715.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceNodeAddress(v *[]NodeAddress, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4716 := *v + yyh4716, yyl4716 := z.DecSliceHelperStart() + var yyc4716 bool + if yyl4716 == 0 { + if yyv4716 == nil { + yyv4716 = []NodeAddress{} + yyc4716 = true + } else if len(yyv4716) != 0 { + yyv4716 = yyv4716[:0] + yyc4716 = true + } + } else if yyl4716 > 0 { + var yyrr4716, yyrl4716 int + var yyrt4716 bool + if yyl4716 > cap(yyv4716) { + + yyrg4716 := len(yyv4716) > 0 + yyv24716 := yyv4716 + yyrl4716, yyrt4716 = z.DecInferLen(yyl4716, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4716 { + if yyrl4716 <= cap(yyv4716) { + yyv4716 = yyv4716[:yyrl4716] + } else { + yyv4716 = make([]NodeAddress, yyrl4716) + } + } else { + yyv4716 = make([]NodeAddress, yyrl4716) + } + yyc4716 = true + yyrr4716 = len(yyv4716) + if yyrg4716 { + copy(yyv4716, yyv24716) + } + } else if yyl4716 != len(yyv4716) { + yyv4716 = yyv4716[:yyl4716] + yyc4716 = true + } + yyj4716 := 0 + for ; yyj4716 < yyrr4716; yyj4716++ { + yyh4716.ElemContainerState(yyj4716) + if r.TryDecodeAsNil() { + yyv4716[yyj4716] = NodeAddress{} + } else { + yyv4717 := &yyv4716[yyj4716] + yyv4717.CodecDecodeSelf(d) + } + + } + if yyrt4716 { + for ; yyj4716 < yyl4716; yyj4716++ { + yyv4716 = append(yyv4716, NodeAddress{}) + yyh4716.ElemContainerState(yyj4716) + if r.TryDecodeAsNil() { + yyv4716[yyj4716] = NodeAddress{} + } else { + yyv4718 := &yyv4716[yyj4716] + yyv4718.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4716 := 0 + for ; !r.CheckBreak(); yyj4716++ { + + if yyj4716 >= len(yyv4716) { + yyv4716 = append(yyv4716, NodeAddress{}) // var yyz4716 NodeAddress + yyc4716 = true + } + yyh4716.ElemContainerState(yyj4716) + if yyj4716 < len(yyv4716) { + if r.TryDecodeAsNil() { + yyv4716[yyj4716] = NodeAddress{} + } else { + yyv4719 := &yyv4716[yyj4716] + yyv4719.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4716 < len(yyv4716) { + yyv4716 = yyv4716[:yyj4716] + yyc4716 = true + } else if yyj4716 == 0 && yyv4716 == nil { + yyv4716 = []NodeAddress{} + yyc4716 = true + } + } + yyh4716.End() + if yyc4716 { + *v = yyv4716 + } +} + +func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4720 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4721 := &yyv4720 + yy4721.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4722 := *v + yyh4722, yyl4722 := z.DecSliceHelperStart() + var yyc4722 bool + if yyl4722 == 0 { + if yyv4722 == nil { + yyv4722 = []ContainerImage{} + yyc4722 = true + } else if len(yyv4722) != 0 { + yyv4722 = yyv4722[:0] + yyc4722 = true + } + } else if yyl4722 > 0 { + var yyrr4722, yyrl4722 int + var yyrt4722 bool + if yyl4722 > cap(yyv4722) { + + yyrg4722 := len(yyv4722) > 0 + yyv24722 := yyv4722 + yyrl4722, yyrt4722 = z.DecInferLen(yyl4722, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4722 { + if yyrl4722 <= cap(yyv4722) { + yyv4722 = yyv4722[:yyrl4722] + } else { + yyv4722 = make([]ContainerImage, yyrl4722) + } + } else { + yyv4722 = make([]ContainerImage, yyrl4722) + } + yyc4722 = true + yyrr4722 = len(yyv4722) + if yyrg4722 { + copy(yyv4722, yyv24722) + } + } else if yyl4722 != len(yyv4722) { + yyv4722 = yyv4722[:yyl4722] + yyc4722 = true + } + yyj4722 := 0 + for ; yyj4722 < yyrr4722; yyj4722++ { + yyh4722.ElemContainerState(yyj4722) + if r.TryDecodeAsNil() { + yyv4722[yyj4722] = ContainerImage{} + } else { + yyv4723 := &yyv4722[yyj4722] + yyv4723.CodecDecodeSelf(d) + } + + } + if yyrt4722 { + for ; yyj4722 < yyl4722; yyj4722++ { + yyv4722 = append(yyv4722, ContainerImage{}) + yyh4722.ElemContainerState(yyj4722) + if r.TryDecodeAsNil() { + yyv4722[yyj4722] = ContainerImage{} + } else { + yyv4724 := &yyv4722[yyj4722] + yyv4724.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4722 := 0 + for ; !r.CheckBreak(); yyj4722++ { + + if yyj4722 >= len(yyv4722) { + yyv4722 = append(yyv4722, ContainerImage{}) // var yyz4722 ContainerImage + yyc4722 = true + } + yyh4722.ElemContainerState(yyj4722) + if yyj4722 < len(yyv4722) { + if r.TryDecodeAsNil() { + yyv4722[yyj4722] = ContainerImage{} + } else { + yyv4725 := &yyv4722[yyj4722] + yyv4725.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4722 < len(yyv4722) { + yyv4722 = yyv4722[:yyj4722] + yyc4722 = true + } else if yyj4722 == 0 && yyv4722 == nil { + yyv4722 = []ContainerImage{} + yyc4722 = true + } + } + yyh4722.End() + if yyc4722 { + *v = yyv4722 + } +} + +func (x codecSelfer1234) encSliceUniqueVolumeName(v []UniqueVolumeName, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4726 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4726.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4727 := *v + yyh4727, yyl4727 := z.DecSliceHelperStart() + var yyc4727 bool + if yyl4727 == 0 { + if yyv4727 == nil { + yyv4727 = []UniqueVolumeName{} + yyc4727 = true + } else if len(yyv4727) != 0 { + yyv4727 = yyv4727[:0] + yyc4727 = true + } + } else if yyl4727 > 0 { + var yyrr4727, yyrl4727 int + var yyrt4727 bool + if yyl4727 > cap(yyv4727) { + + yyrl4727, yyrt4727 = z.DecInferLen(yyl4727, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4727 { + if yyrl4727 <= cap(yyv4727) { + yyv4727 = yyv4727[:yyrl4727] + } else { + yyv4727 = make([]UniqueVolumeName, yyrl4727) + } + } else { + yyv4727 = make([]UniqueVolumeName, yyrl4727) + } + yyc4727 = true + yyrr4727 = len(yyv4727) + } else if yyl4727 != len(yyv4727) { + yyv4727 = yyv4727[:yyl4727] + yyc4727 = true + } + yyj4727 := 0 + for ; yyj4727 < yyrr4727; yyj4727++ { + yyh4727.ElemContainerState(yyj4727) + if r.TryDecodeAsNil() { + yyv4727[yyj4727] = "" + } else { + yyv4727[yyj4727] = UniqueVolumeName(r.DecodeString()) + } + + } + if yyrt4727 { + for ; yyj4727 < yyl4727; yyj4727++ { + yyv4727 = append(yyv4727, "") + yyh4727.ElemContainerState(yyj4727) + if r.TryDecodeAsNil() { + yyv4727[yyj4727] = "" + } else { + yyv4727[yyj4727] = UniqueVolumeName(r.DecodeString()) + } + + } + } + + } else { + yyj4727 := 0 + for ; !r.CheckBreak(); yyj4727++ { + + if yyj4727 >= len(yyv4727) { + yyv4727 = append(yyv4727, "") // var yyz4727 UniqueVolumeName + yyc4727 = true + } + yyh4727.ElemContainerState(yyj4727) + if yyj4727 < len(yyv4727) { + if r.TryDecodeAsNil() { + yyv4727[yyj4727] = "" + } else { + yyv4727[yyj4727] = UniqueVolumeName(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4727 < len(yyv4727) { + yyv4727 = yyv4727[:yyj4727] + yyc4727 = true + } else if yyj4727 == 0 && yyv4727 == nil { + yyv4727 = []UniqueVolumeName{} + yyc4727 = true + } + } + yyh4727.End() + if yyc4727 { + *v = yyv4727 + } +} + +func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4731 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4732 := &yyv4731 + yy4732.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4733 := *v + yyh4733, yyl4733 := z.DecSliceHelperStart() + var yyc4733 bool + if yyl4733 == 0 { + if yyv4733 == nil { + yyv4733 = []AttachedVolume{} + yyc4733 = true + } else if len(yyv4733) != 0 { + yyv4733 = yyv4733[:0] + yyc4733 = true + } + } else if yyl4733 > 0 { + var yyrr4733, yyrl4733 int + var yyrt4733 bool + if yyl4733 > cap(yyv4733) { + + yyrg4733 := len(yyv4733) > 0 + yyv24733 := yyv4733 + yyrl4733, yyrt4733 = z.DecInferLen(yyl4733, z.DecBasicHandle().MaxInitLen, 32) + if yyrt4733 { + if yyrl4733 <= cap(yyv4733) { + yyv4733 = yyv4733[:yyrl4733] + } else { + yyv4733 = make([]AttachedVolume, yyrl4733) + } + } else { + yyv4733 = make([]AttachedVolume, yyrl4733) + } + yyc4733 = true + yyrr4733 = len(yyv4733) + if yyrg4733 { + copy(yyv4733, yyv24733) + } + } else if yyl4733 != len(yyv4733) { + yyv4733 = yyv4733[:yyl4733] + yyc4733 = true + } + yyj4733 := 0 + for ; yyj4733 < yyrr4733; yyj4733++ { + yyh4733.ElemContainerState(yyj4733) + if r.TryDecodeAsNil() { + yyv4733[yyj4733] = AttachedVolume{} + } else { + yyv4734 := &yyv4733[yyj4733] + yyv4734.CodecDecodeSelf(d) + } + + } + if yyrt4733 { + for ; yyj4733 < yyl4733; yyj4733++ { + yyv4733 = append(yyv4733, AttachedVolume{}) + yyh4733.ElemContainerState(yyj4733) + if r.TryDecodeAsNil() { + yyv4733[yyj4733] = AttachedVolume{} + } else { + yyv4735 := &yyv4733[yyj4733] + yyv4735.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4733 := 0 + for ; !r.CheckBreak(); yyj4733++ { + + if yyj4733 >= len(yyv4733) { + yyv4733 = append(yyv4733, AttachedVolume{}) // var yyz4733 AttachedVolume + yyc4733 = true + } + yyh4733.ElemContainerState(yyj4733) + if yyj4733 < len(yyv4733) { + if r.TryDecodeAsNil() { + yyv4733[yyj4733] = AttachedVolume{} + } else { + yyv4736 := &yyv4733[yyj4733] + yyv4736.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4733 < len(yyv4733) { + yyv4733 = yyv4733[:yyj4733] + yyc4733 = true + } else if yyj4733 == 0 && yyv4733 == nil { + yyv4733 = []AttachedVolume{} + yyc4733 = true + } + } + yyh4733.End() + if yyc4733 { + *v = yyv4733 + } +} + +func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4737 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4738 := &yyv4737 + yy4738.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4739 := *v + yyh4739, yyl4739 := z.DecSliceHelperStart() + var yyc4739 bool + if yyl4739 == 0 { + if yyv4739 == nil { + yyv4739 = []PreferAvoidPodsEntry{} + yyc4739 = true + } else if len(yyv4739) != 0 { + yyv4739 = yyv4739[:0] + yyc4739 = true + } + } else if yyl4739 > 0 { + var yyrr4739, yyrl4739 int + var yyrt4739 bool + if yyl4739 > cap(yyv4739) { + + yyrg4739 := len(yyv4739) > 0 + yyv24739 := yyv4739 + yyrl4739, yyrt4739 = z.DecInferLen(yyl4739, z.DecBasicHandle().MaxInitLen, 64) + if yyrt4739 { + if yyrl4739 <= cap(yyv4739) { + yyv4739 = yyv4739[:yyrl4739] + } else { + yyv4739 = make([]PreferAvoidPodsEntry, yyrl4739) + } + } else { + yyv4739 = make([]PreferAvoidPodsEntry, yyrl4739) + } + yyc4739 = true + yyrr4739 = len(yyv4739) + if yyrg4739 { + copy(yyv4739, yyv24739) + } + } else if yyl4739 != len(yyv4739) { + yyv4739 = yyv4739[:yyl4739] + yyc4739 = true + } + yyj4739 := 0 + for ; yyj4739 < yyrr4739; yyj4739++ { + yyh4739.ElemContainerState(yyj4739) + if r.TryDecodeAsNil() { + yyv4739[yyj4739] = PreferAvoidPodsEntry{} + } else { + yyv4740 := &yyv4739[yyj4739] + yyv4740.CodecDecodeSelf(d) + } + + } + if yyrt4739 { + for ; yyj4739 < yyl4739; yyj4739++ { + yyv4739 = append(yyv4739, PreferAvoidPodsEntry{}) + yyh4739.ElemContainerState(yyj4739) + if r.TryDecodeAsNil() { + yyv4739[yyj4739] = PreferAvoidPodsEntry{} + } else { + yyv4741 := &yyv4739[yyj4739] + yyv4741.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4739 := 0 + for ; !r.CheckBreak(); yyj4739++ { + + if yyj4739 >= len(yyv4739) { + yyv4739 = append(yyv4739, PreferAvoidPodsEntry{}) // var yyz4739 PreferAvoidPodsEntry + yyc4739 = true + } + yyh4739.ElemContainerState(yyj4739) + if yyj4739 < len(yyv4739) { + if r.TryDecodeAsNil() { + yyv4739[yyj4739] = PreferAvoidPodsEntry{} + } else { + yyv4742 := &yyv4739[yyj4739] + yyv4742.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4739 < len(yyv4739) { + yyv4739 = yyv4739[:yyj4739] + yyc4739 = true + } else if yyj4739 == 0 && yyv4739 == nil { + yyv4739 = []PreferAvoidPodsEntry{} + yyc4739 = true + } + } + yyh4739.End() + if yyc4739 { + *v = yyv4739 + } +} + +func (x codecSelfer1234) encResourceList(v ResourceList, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeMapStart(len(v)) + for yyk4743, yyv4743 := range v { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + yyk4743.CodecEncodeSelf(e) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy4744 := &yyv4743 + yym4745 := z.EncBinary() + _ = yym4745 + if false { + } else if z.HasExtensions() && z.EncExt(yy4744) { + } else if !yym4745 && z.IsJSONHandle() { + z.EncJSONMarshal(yy4744) + } else { + z.EncFallback(yy4744) + } + } + z.EncSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4746 := *v + yyl4746 := r.ReadMapStart() + yybh4746 := z.DecBasicHandle() + if yyv4746 == nil { + yyrl4746, _ := z.DecInferLen(yyl4746, yybh4746.MaxInitLen, 72) + yyv4746 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4746) + *v = yyv4746 + } + var yymk4746 ResourceName + var yymv4746 pkg3_resource.Quantity + var yymg4746 bool + if yybh4746.MapValueReset { + yymg4746 = true + } + if yyl4746 > 0 { + for yyj4746 := 0; yyj4746 < yyl4746; yyj4746++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4746 = "" + } else { + yymk4746 = ResourceName(r.DecodeString()) + } + + if yymg4746 { + yymv4746 = yyv4746[yymk4746] + } else { + yymv4746 = pkg3_resource.Quantity{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4746 = pkg3_resource.Quantity{} + } else { + yyv4748 := &yymv4746 + yym4749 := z.DecBinary() + _ = yym4749 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4748) { + } else if !yym4749 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4748) + } else { + z.DecFallback(yyv4748, false) + } + } + + if yyv4746 != nil { + yyv4746[yymk4746] = yymv4746 + } + } + } else if yyl4746 < 0 { + for yyj4746 := 0; !r.CheckBreak(); yyj4746++ { + z.DecSendContainerState(codecSelfer_containerMapKey1234) + if r.TryDecodeAsNil() { + yymk4746 = "" + } else { + yymk4746 = ResourceName(r.DecodeString()) + } + + if yymg4746 { + yymv4746 = yyv4746[yymk4746] + } else { + yymv4746 = pkg3_resource.Quantity{} + } + z.DecSendContainerState(codecSelfer_containerMapValue1234) + if r.TryDecodeAsNil() { + yymv4746 = pkg3_resource.Quantity{} + } else { + yyv4751 := &yymv4746 + yym4752 := z.DecBinary() + _ = yym4752 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4751) { + } else if !yym4752 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4751) + } else { + z.DecFallback(yyv4751, false) + } + } + + if yyv4746 != nil { + yyv4746[yymk4746] = yymv4746 + } + } + } // else len==0: TODO: Should we clear map entries? + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x codecSelfer1234) encSliceNode(v []Node, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4753 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4754 := &yyv4753 + yy4754.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceNode(v *[]Node, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4755 := *v + yyh4755, yyl4755 := z.DecSliceHelperStart() + var yyc4755 bool + if yyl4755 == 0 { + if yyv4755 == nil { + yyv4755 = []Node{} + yyc4755 = true + } else if len(yyv4755) != 0 { + yyv4755 = yyv4755[:0] + yyc4755 = true + } + } else if yyl4755 > 0 { + var yyrr4755, yyrl4755 int + var yyrt4755 bool + if yyl4755 > cap(yyv4755) { + + yyrg4755 := len(yyv4755) > 0 + yyv24755 := yyv4755 + yyrl4755, yyrt4755 = z.DecInferLen(yyl4755, z.DecBasicHandle().MaxInitLen, 632) + if yyrt4755 { + if yyrl4755 <= cap(yyv4755) { + yyv4755 = yyv4755[:yyrl4755] + } else { + yyv4755 = make([]Node, yyrl4755) + } + } else { + yyv4755 = make([]Node, yyrl4755) + } + yyc4755 = true + yyrr4755 = len(yyv4755) + if yyrg4755 { + copy(yyv4755, yyv24755) + } + } else if yyl4755 != len(yyv4755) { + yyv4755 = yyv4755[:yyl4755] + yyc4755 = true + } + yyj4755 := 0 + for ; yyj4755 < yyrr4755; yyj4755++ { + yyh4755.ElemContainerState(yyj4755) + if r.TryDecodeAsNil() { + yyv4755[yyj4755] = Node{} + } else { + yyv4756 := &yyv4755[yyj4755] + yyv4756.CodecDecodeSelf(d) + } + + } + if yyrt4755 { + for ; yyj4755 < yyl4755; yyj4755++ { + yyv4755 = append(yyv4755, Node{}) + yyh4755.ElemContainerState(yyj4755) + if r.TryDecodeAsNil() { + yyv4755[yyj4755] = Node{} + } else { + yyv4757 := &yyv4755[yyj4755] + yyv4757.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4755 := 0 + for ; !r.CheckBreak(); yyj4755++ { + + if yyj4755 >= len(yyv4755) { + yyv4755 = append(yyv4755, Node{}) // var yyz4755 Node + yyc4755 = true + } + yyh4755.ElemContainerState(yyj4755) + if yyj4755 < len(yyv4755) { + if r.TryDecodeAsNil() { + yyv4755[yyj4755] = Node{} + } else { + yyv4758 := &yyv4755[yyj4755] + yyv4758.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4755 < len(yyv4755) { + yyv4755 = yyv4755[:yyj4755] + yyc4755 = true + } else if yyj4755 == 0 && yyv4755 == nil { + yyv4755 = []Node{} + yyc4755 = true + } + } + yyh4755.End() + if yyc4755 { + *v = yyv4755 + } +} + +func (x codecSelfer1234) encSliceFinalizerName(v []FinalizerName, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4759 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4759.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceFinalizerName(v *[]FinalizerName, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4760 := *v + yyh4760, yyl4760 := z.DecSliceHelperStart() + var yyc4760 bool + if yyl4760 == 0 { + if yyv4760 == nil { + yyv4760 = []FinalizerName{} + yyc4760 = true + } else if len(yyv4760) != 0 { + yyv4760 = yyv4760[:0] + yyc4760 = true + } + } else if yyl4760 > 0 { + var yyrr4760, yyrl4760 int + var yyrt4760 bool + if yyl4760 > cap(yyv4760) { + + yyrl4760, yyrt4760 = z.DecInferLen(yyl4760, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4760 { + if yyrl4760 <= cap(yyv4760) { + yyv4760 = yyv4760[:yyrl4760] + } else { + yyv4760 = make([]FinalizerName, yyrl4760) + } + } else { + yyv4760 = make([]FinalizerName, yyrl4760) + } + yyc4760 = true + yyrr4760 = len(yyv4760) + } else if yyl4760 != len(yyv4760) { + yyv4760 = yyv4760[:yyl4760] + yyc4760 = true + } + yyj4760 := 0 + for ; yyj4760 < yyrr4760; yyj4760++ { + yyh4760.ElemContainerState(yyj4760) + if r.TryDecodeAsNil() { + yyv4760[yyj4760] = "" + } else { + yyv4760[yyj4760] = FinalizerName(r.DecodeString()) + } + + } + if yyrt4760 { + for ; yyj4760 < yyl4760; yyj4760++ { + yyv4760 = append(yyv4760, "") + yyh4760.ElemContainerState(yyj4760) + if r.TryDecodeAsNil() { + yyv4760[yyj4760] = "" + } else { + yyv4760[yyj4760] = FinalizerName(r.DecodeString()) + } + + } + } + + } else { + yyj4760 := 0 + for ; !r.CheckBreak(); yyj4760++ { + + if yyj4760 >= len(yyv4760) { + yyv4760 = append(yyv4760, "") // var yyz4760 FinalizerName + yyc4760 = true + } + yyh4760.ElemContainerState(yyj4760) + if yyj4760 < len(yyv4760) { + if r.TryDecodeAsNil() { + yyv4760[yyj4760] = "" + } else { + yyv4760[yyj4760] = FinalizerName(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj4760 < len(yyv4760) { + yyv4760 = yyv4760[:yyj4760] + yyc4760 = true + } else if yyj4760 == 0 && yyv4760 == nil { + yyv4760 = []FinalizerName{} + yyc4760 = true + } + } + yyh4760.End() + if yyc4760 { + *v = yyv4760 + } +} + +func (x codecSelfer1234) encSliceNamespace(v []Namespace, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4764 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4765 := &yyv4764 + yy4765.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceNamespace(v *[]Namespace, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4766 := *v + yyh4766, yyl4766 := z.DecSliceHelperStart() + var yyc4766 bool + if yyl4766 == 0 { + if yyv4766 == nil { + yyv4766 = []Namespace{} + yyc4766 = true + } else if len(yyv4766) != 0 { + yyv4766 = yyv4766[:0] + yyc4766 = true + } + } else if yyl4766 > 0 { + var yyrr4766, yyrl4766 int + var yyrt4766 bool + if yyl4766 > cap(yyv4766) { + + yyrg4766 := len(yyv4766) > 0 + yyv24766 := yyv4766 + yyrl4766, yyrt4766 = z.DecInferLen(yyl4766, z.DecBasicHandle().MaxInitLen, 296) + if yyrt4766 { + if yyrl4766 <= cap(yyv4766) { + yyv4766 = yyv4766[:yyrl4766] + } else { + yyv4766 = make([]Namespace, yyrl4766) + } + } else { + yyv4766 = make([]Namespace, yyrl4766) + } + yyc4766 = true + yyrr4766 = len(yyv4766) + if yyrg4766 { + copy(yyv4766, yyv24766) + } + } else if yyl4766 != len(yyv4766) { + yyv4766 = yyv4766[:yyl4766] + yyc4766 = true + } + yyj4766 := 0 + for ; yyj4766 < yyrr4766; yyj4766++ { + yyh4766.ElemContainerState(yyj4766) + if r.TryDecodeAsNil() { + yyv4766[yyj4766] = Namespace{} + } else { + yyv4767 := &yyv4766[yyj4766] + yyv4767.CodecDecodeSelf(d) + } + + } + if yyrt4766 { + for ; yyj4766 < yyl4766; yyj4766++ { + yyv4766 = append(yyv4766, Namespace{}) + yyh4766.ElemContainerState(yyj4766) + if r.TryDecodeAsNil() { + yyv4766[yyj4766] = Namespace{} + } else { + yyv4768 := &yyv4766[yyj4766] + yyv4768.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4766 := 0 + for ; !r.CheckBreak(); yyj4766++ { + + if yyj4766 >= len(yyv4766) { + yyv4766 = append(yyv4766, Namespace{}) // var yyz4766 Namespace + yyc4766 = true + } + yyh4766.ElemContainerState(yyj4766) + if yyj4766 < len(yyv4766) { + if r.TryDecodeAsNil() { + yyv4766[yyj4766] = Namespace{} + } else { + yyv4769 := &yyv4766[yyj4766] + yyv4769.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4766 < len(yyv4766) { + yyv4766 = yyv4766[:yyj4766] + yyc4766 = true + } else if yyj4766 == 0 && yyv4766 == nil { + yyv4766 = []Namespace{} + yyc4766 = true + } + } + yyh4766.End() + if yyc4766 { + *v = yyv4766 + } +} + +func (x codecSelfer1234) encSliceEvent(v []Event, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4770 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4771 := &yyv4770 + yy4771.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceEvent(v *[]Event, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4772 := *v + yyh4772, yyl4772 := z.DecSliceHelperStart() + var yyc4772 bool + if yyl4772 == 0 { + if yyv4772 == nil { + yyv4772 = []Event{} + yyc4772 = true + } else if len(yyv4772) != 0 { + yyv4772 = yyv4772[:0] + yyc4772 = true + } + } else if yyl4772 > 0 { + var yyrr4772, yyrl4772 int + var yyrt4772 bool + if yyl4772 > cap(yyv4772) { + + yyrg4772 := len(yyv4772) > 0 + yyv24772 := yyv4772 + yyrl4772, yyrt4772 = z.DecInferLen(yyl4772, z.DecBasicHandle().MaxInitLen, 504) + if yyrt4772 { + if yyrl4772 <= cap(yyv4772) { + yyv4772 = yyv4772[:yyrl4772] + } else { + yyv4772 = make([]Event, yyrl4772) + } + } else { + yyv4772 = make([]Event, yyrl4772) + } + yyc4772 = true + yyrr4772 = len(yyv4772) + if yyrg4772 { + copy(yyv4772, yyv24772) + } + } else if yyl4772 != len(yyv4772) { + yyv4772 = yyv4772[:yyl4772] + yyc4772 = true + } + yyj4772 := 0 + for ; yyj4772 < yyrr4772; yyj4772++ { + yyh4772.ElemContainerState(yyj4772) + if r.TryDecodeAsNil() { + yyv4772[yyj4772] = Event{} + } else { + yyv4773 := &yyv4772[yyj4772] + yyv4773.CodecDecodeSelf(d) + } + + } + if yyrt4772 { + for ; yyj4772 < yyl4772; yyj4772++ { + yyv4772 = append(yyv4772, Event{}) + yyh4772.ElemContainerState(yyj4772) + if r.TryDecodeAsNil() { + yyv4772[yyj4772] = Event{} + } else { + yyv4774 := &yyv4772[yyj4772] + yyv4774.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4772 := 0 + for ; !r.CheckBreak(); yyj4772++ { + + if yyj4772 >= len(yyv4772) { + yyv4772 = append(yyv4772, Event{}) // var yyz4772 Event + yyc4772 = true + } + yyh4772.ElemContainerState(yyj4772) + if yyj4772 < len(yyv4772) { + if r.TryDecodeAsNil() { + yyv4772[yyj4772] = Event{} + } else { + yyv4775 := &yyv4772[yyj4772] + yyv4775.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4772 < len(yyv4772) { + yyv4772 = yyv4772[:yyj4772] + yyc4772 = true + } else if yyj4772 == 0 && yyv4772 == nil { + yyv4772 = []Event{} + yyc4772 = true + } + } + yyh4772.End() + if yyc4772 { + *v = yyv4772 + } +} + +func (x codecSelfer1234) encSliceruntime_RawExtension(v []pkg5_runtime.RawExtension, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4776 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4777 := &yyv4776 + yym4778 := z.EncBinary() + _ = yym4778 + if false { + } else if z.HasExtensions() && z.EncExt(yy4777) { + } else if !yym4778 && z.IsJSONHandle() { + z.EncJSONMarshal(yy4777) + } else { + z.EncFallback(yy4777) + } + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceruntime_RawExtension(v *[]pkg5_runtime.RawExtension, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4779 := *v + yyh4779, yyl4779 := z.DecSliceHelperStart() + var yyc4779 bool + if yyl4779 == 0 { + if yyv4779 == nil { + yyv4779 = []pkg5_runtime.RawExtension{} + yyc4779 = true + } else if len(yyv4779) != 0 { + yyv4779 = yyv4779[:0] + yyc4779 = true + } + } else if yyl4779 > 0 { + var yyrr4779, yyrl4779 int + var yyrt4779 bool + if yyl4779 > cap(yyv4779) { + + yyrg4779 := len(yyv4779) > 0 + yyv24779 := yyv4779 + yyrl4779, yyrt4779 = z.DecInferLen(yyl4779, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4779 { + if yyrl4779 <= cap(yyv4779) { + yyv4779 = yyv4779[:yyrl4779] + } else { + yyv4779 = make([]pkg5_runtime.RawExtension, yyrl4779) + } + } else { + yyv4779 = make([]pkg5_runtime.RawExtension, yyrl4779) + } + yyc4779 = true + yyrr4779 = len(yyv4779) + if yyrg4779 { + copy(yyv4779, yyv24779) + } + } else if yyl4779 != len(yyv4779) { + yyv4779 = yyv4779[:yyl4779] + yyc4779 = true + } + yyj4779 := 0 + for ; yyj4779 < yyrr4779; yyj4779++ { + yyh4779.ElemContainerState(yyj4779) + if r.TryDecodeAsNil() { + yyv4779[yyj4779] = pkg5_runtime.RawExtension{} + } else { + yyv4780 := &yyv4779[yyj4779] + yym4781 := z.DecBinary() + _ = yym4781 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4780) { + } else if !yym4781 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4780) + } else { + z.DecFallback(yyv4780, false) + } + } + + } + if yyrt4779 { + for ; yyj4779 < yyl4779; yyj4779++ { + yyv4779 = append(yyv4779, pkg5_runtime.RawExtension{}) + yyh4779.ElemContainerState(yyj4779) + if r.TryDecodeAsNil() { + yyv4779[yyj4779] = pkg5_runtime.RawExtension{} + } else { + yyv4782 := &yyv4779[yyj4779] + yym4783 := z.DecBinary() + _ = yym4783 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4782) { + } else if !yym4783 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4782) + } else { + z.DecFallback(yyv4782, false) + } + } + + } + } + + } else { + yyj4779 := 0 + for ; !r.CheckBreak(); yyj4779++ { + + if yyj4779 >= len(yyv4779) { + yyv4779 = append(yyv4779, pkg5_runtime.RawExtension{}) // var yyz4779 pkg5_runtime.RawExtension + yyc4779 = true + } + yyh4779.ElemContainerState(yyj4779) + if yyj4779 < len(yyv4779) { + if r.TryDecodeAsNil() { + yyv4779[yyj4779] = pkg5_runtime.RawExtension{} + } else { + yyv4784 := &yyv4779[yyj4779] + yym4785 := z.DecBinary() + _ = yym4785 + if false { + } else if z.HasExtensions() && z.DecExt(yyv4784) { + } else if !yym4785 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv4784) + } else { + z.DecFallback(yyv4784, false) + } + } + + } else { + z.DecSwallow() + } + + } + if yyj4779 < len(yyv4779) { + yyv4779 = yyv4779[:yyj4779] + yyc4779 = true + } else if yyj4779 == 0 && yyv4779 == nil { + yyv4779 = []pkg5_runtime.RawExtension{} + yyc4779 = true + } + } + yyh4779.End() + if yyc4779 { + *v = yyv4779 + } +} + +func (x codecSelfer1234) encSliceLimitRangeItem(v []LimitRangeItem, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4786 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4787 := &yyv4786 + yy4787.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceLimitRangeItem(v *[]LimitRangeItem, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4788 := *v + yyh4788, yyl4788 := z.DecSliceHelperStart() + var yyc4788 bool + if yyl4788 == 0 { + if yyv4788 == nil { + yyv4788 = []LimitRangeItem{} + yyc4788 = true + } else if len(yyv4788) != 0 { + yyv4788 = yyv4788[:0] + yyc4788 = true + } + } else if yyl4788 > 0 { + var yyrr4788, yyrl4788 int + var yyrt4788 bool + if yyl4788 > cap(yyv4788) { + + yyrg4788 := len(yyv4788) > 0 + yyv24788 := yyv4788 + yyrl4788, yyrt4788 = z.DecInferLen(yyl4788, z.DecBasicHandle().MaxInitLen, 56) + if yyrt4788 { + if yyrl4788 <= cap(yyv4788) { + yyv4788 = yyv4788[:yyrl4788] + } else { + yyv4788 = make([]LimitRangeItem, yyrl4788) + } + } else { + yyv4788 = make([]LimitRangeItem, yyrl4788) + } + yyc4788 = true + yyrr4788 = len(yyv4788) + if yyrg4788 { + copy(yyv4788, yyv24788) + } + } else if yyl4788 != len(yyv4788) { + yyv4788 = yyv4788[:yyl4788] + yyc4788 = true + } + yyj4788 := 0 + for ; yyj4788 < yyrr4788; yyj4788++ { + yyh4788.ElemContainerState(yyj4788) + if r.TryDecodeAsNil() { + yyv4788[yyj4788] = LimitRangeItem{} + } else { + yyv4789 := &yyv4788[yyj4788] + yyv4789.CodecDecodeSelf(d) + } + + } + if yyrt4788 { + for ; yyj4788 < yyl4788; yyj4788++ { + yyv4788 = append(yyv4788, LimitRangeItem{}) + yyh4788.ElemContainerState(yyj4788) + if r.TryDecodeAsNil() { + yyv4788[yyj4788] = LimitRangeItem{} + } else { + yyv4790 := &yyv4788[yyj4788] + yyv4790.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4788 := 0 + for ; !r.CheckBreak(); yyj4788++ { + + if yyj4788 >= len(yyv4788) { + yyv4788 = append(yyv4788, LimitRangeItem{}) // var yyz4788 LimitRangeItem + yyc4788 = true + } + yyh4788.ElemContainerState(yyj4788) + if yyj4788 < len(yyv4788) { + if r.TryDecodeAsNil() { + yyv4788[yyj4788] = LimitRangeItem{} + } else { + yyv4791 := &yyv4788[yyj4788] + yyv4791.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4788 < len(yyv4788) { + yyv4788 = yyv4788[:yyj4788] + yyc4788 = true + } else if yyj4788 == 0 && yyv4788 == nil { + yyv4788 = []LimitRangeItem{} + yyc4788 = true + } + } + yyh4788.End() + if yyc4788 { + *v = yyv4788 + } +} + +func (x codecSelfer1234) encSliceLimitRange(v []LimitRange, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4792 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy4793 := &yyv4792 + yy4793.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceLimitRange(v *[]LimitRange, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv4794 := *v + yyh4794, yyl4794 := z.DecSliceHelperStart() + var yyc4794 bool + if yyl4794 == 0 { + if yyv4794 == nil { + yyv4794 = []LimitRange{} + yyc4794 = true + } else if len(yyv4794) != 0 { + yyv4794 = yyv4794[:0] + yyc4794 = true + } + } else if yyl4794 > 0 { + var yyrr4794, yyrl4794 int + var yyrt4794 bool + if yyl4794 > cap(yyv4794) { + + yyrg4794 := len(yyv4794) > 0 + yyv24794 := yyv4794 + yyrl4794, yyrt4794 = z.DecInferLen(yyl4794, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4794 { + if yyrl4794 <= cap(yyv4794) { + yyv4794 = yyv4794[:yyrl4794] + } else { + yyv4794 = make([]LimitRange, yyrl4794) + } + } else { + yyv4794 = make([]LimitRange, yyrl4794) + } + yyc4794 = true + yyrr4794 = len(yyv4794) + if yyrg4794 { + copy(yyv4794, yyv24794) + } + } else if yyl4794 != len(yyv4794) { + yyv4794 = yyv4794[:yyl4794] + yyc4794 = true + } + yyj4794 := 0 + for ; yyj4794 < yyrr4794; yyj4794++ { + yyh4794.ElemContainerState(yyj4794) + if r.TryDecodeAsNil() { + yyv4794[yyj4794] = LimitRange{} + } else { + yyv4795 := &yyv4794[yyj4794] + yyv4795.CodecDecodeSelf(d) + } + + } + if yyrt4794 { + for ; yyj4794 < yyl4794; yyj4794++ { + yyv4794 = append(yyv4794, LimitRange{}) + yyh4794.ElemContainerState(yyj4794) + if r.TryDecodeAsNil() { + yyv4794[yyj4794] = LimitRange{} + } else { + yyv4796 := &yyv4794[yyj4794] + yyv4796.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj4794 := 0 + for ; !r.CheckBreak(); yyj4794++ { + + if yyj4794 >= len(yyv4794) { + yyv4794 = append(yyv4794, LimitRange{}) // var yyz4794 LimitRange + yyc4794 = true + } + yyh4794.ElemContainerState(yyj4794) + if yyj4794 < len(yyv4794) { + if r.TryDecodeAsNil() { + yyv4794[yyj4794] = LimitRange{} + } else { + yyv4797 := &yyv4794[yyj4794] + yyv4797.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj4794 < len(yyv4794) { + yyv4794 = yyv4794[:yyj4794] + yyc4794 = true + } else if yyj4794 == 0 && yyv4794 == nil { + yyv4794 = []LimitRange{} + yyc4794 = true + } + } + yyh4794.End() + if yyc4794 { + *v = yyv4794 + } +} + +func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv4798 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yyv4798.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59727,75 +61579,75 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4643 := *v - yyh4643, yyl4643 := z.DecSliceHelperStart() - var yyc4643 bool - if yyl4643 == 0 { - if yyv4643 == nil { - yyv4643 = []ResourceQuotaScope{} - yyc4643 = true - } else if len(yyv4643) != 0 { - yyv4643 = yyv4643[:0] - yyc4643 = true + yyv4799 := *v + yyh4799, yyl4799 := z.DecSliceHelperStart() + var yyc4799 bool + if yyl4799 == 0 { + if yyv4799 == nil { + yyv4799 = []ResourceQuotaScope{} + yyc4799 = true + } else if len(yyv4799) != 0 { + yyv4799 = yyv4799[:0] + yyc4799 = true } - } else if yyl4643 > 0 { - var yyrr4643, yyrl4643 int - var yyrt4643 bool - if yyl4643 > cap(yyv4643) { + } else if yyl4799 > 0 { + var yyrr4799, yyrl4799 int + var yyrt4799 bool + if yyl4799 > cap(yyv4799) { - yyrl4643, yyrt4643 = z.DecInferLen(yyl4643, z.DecBasicHandle().MaxInitLen, 16) - if yyrt4643 { - if yyrl4643 <= cap(yyv4643) { - yyv4643 = yyv4643[:yyrl4643] + yyrl4799, yyrt4799 = z.DecInferLen(yyl4799, z.DecBasicHandle().MaxInitLen, 16) + if yyrt4799 { + if yyrl4799 <= cap(yyv4799) { + yyv4799 = yyv4799[:yyrl4799] } else { - yyv4643 = make([]ResourceQuotaScope, yyrl4643) + yyv4799 = make([]ResourceQuotaScope, yyrl4799) } } else { - yyv4643 = make([]ResourceQuotaScope, yyrl4643) + yyv4799 = make([]ResourceQuotaScope, yyrl4799) } - yyc4643 = true - yyrr4643 = len(yyv4643) - } else if yyl4643 != len(yyv4643) { - yyv4643 = yyv4643[:yyl4643] - yyc4643 = true + yyc4799 = true + yyrr4799 = len(yyv4799) + } else if yyl4799 != len(yyv4799) { + yyv4799 = yyv4799[:yyl4799] + yyc4799 = true } - yyj4643 := 0 - for ; yyj4643 < yyrr4643; yyj4643++ { - yyh4643.ElemContainerState(yyj4643) + yyj4799 := 0 + for ; yyj4799 < yyrr4799; yyj4799++ { + yyh4799.ElemContainerState(yyj4799) if r.TryDecodeAsNil() { - yyv4643[yyj4643] = "" + yyv4799[yyj4799] = "" } else { - yyv4643[yyj4643] = ResourceQuotaScope(r.DecodeString()) + yyv4799[yyj4799] = ResourceQuotaScope(r.DecodeString()) } } - if yyrt4643 { - for ; yyj4643 < yyl4643; yyj4643++ { - yyv4643 = append(yyv4643, "") - yyh4643.ElemContainerState(yyj4643) + if yyrt4799 { + for ; yyj4799 < yyl4799; yyj4799++ { + yyv4799 = append(yyv4799, "") + yyh4799.ElemContainerState(yyj4799) if r.TryDecodeAsNil() { - yyv4643[yyj4643] = "" + yyv4799[yyj4799] = "" } else { - yyv4643[yyj4643] = ResourceQuotaScope(r.DecodeString()) + yyv4799[yyj4799] = ResourceQuotaScope(r.DecodeString()) } } } } else { - yyj4643 := 0 - for ; !r.CheckBreak(); yyj4643++ { + yyj4799 := 0 + for ; !r.CheckBreak(); yyj4799++ { - if yyj4643 >= len(yyv4643) { - yyv4643 = append(yyv4643, "") // var yyz4643 ResourceQuotaScope - yyc4643 = true + if yyj4799 >= len(yyv4799) { + yyv4799 = append(yyv4799, "") // var yyz4799 ResourceQuotaScope + yyc4799 = true } - yyh4643.ElemContainerState(yyj4643) - if yyj4643 < len(yyv4643) { + yyh4799.ElemContainerState(yyj4799) + if yyj4799 < len(yyv4799) { if r.TryDecodeAsNil() { - yyv4643[yyj4643] = "" + yyv4799[yyj4799] = "" } else { - yyv4643[yyj4643] = ResourceQuotaScope(r.DecodeString()) + yyv4799[yyj4799] = ResourceQuotaScope(r.DecodeString()) } } else { @@ -59803,17 +61655,17 @@ func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d * } } - if yyj4643 < len(yyv4643) { - yyv4643 = yyv4643[:yyj4643] - yyc4643 = true - } else if yyj4643 == 0 && yyv4643 == nil { - yyv4643 = []ResourceQuotaScope{} - yyc4643 = true + if yyj4799 < len(yyv4799) { + yyv4799 = yyv4799[:yyj4799] + yyc4799 = true + } else if yyj4799 == 0 && yyv4799 == nil { + yyv4799 = []ResourceQuotaScope{} + yyc4799 = true } } - yyh4643.End() - if yyc4643 { - *v = yyv4643 + yyh4799.End() + if yyc4799 { + *v = yyv4799 } } @@ -59822,10 +61674,10 @@ func (x codecSelfer1234) encSliceResourceQuota(v []ResourceQuota, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4647 := range v { + for _, yyv4803 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4648 := &yyv4647 - yy4648.CodecEncodeSelf(e) + yy4804 := &yyv4803 + yy4804.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -59835,83 +61687,83 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4649 := *v - yyh4649, yyl4649 := z.DecSliceHelperStart() - var yyc4649 bool - if yyl4649 == 0 { - if yyv4649 == nil { - yyv4649 = []ResourceQuota{} - yyc4649 = true - } else if len(yyv4649) != 0 { - yyv4649 = yyv4649[:0] - yyc4649 = true + yyv4805 := *v + yyh4805, yyl4805 := z.DecSliceHelperStart() + var yyc4805 bool + if yyl4805 == 0 { + if yyv4805 == nil { + yyv4805 = []ResourceQuota{} + yyc4805 = true + } else if len(yyv4805) != 0 { + yyv4805 = yyv4805[:0] + yyc4805 = true } - } else if yyl4649 > 0 { - var yyrr4649, yyrl4649 int - var yyrt4649 bool - if yyl4649 > cap(yyv4649) { + } else if yyl4805 > 0 { + var yyrr4805, yyrl4805 int + var yyrt4805 bool + if yyl4805 > cap(yyv4805) { - yyrg4649 := len(yyv4649) > 0 - yyv24649 := yyv4649 - yyrl4649, yyrt4649 = z.DecInferLen(yyl4649, z.DecBasicHandle().MaxInitLen, 288) - if yyrt4649 { - if yyrl4649 <= cap(yyv4649) { - yyv4649 = yyv4649[:yyrl4649] + yyrg4805 := len(yyv4805) > 0 + yyv24805 := yyv4805 + yyrl4805, yyrt4805 = z.DecInferLen(yyl4805, z.DecBasicHandle().MaxInitLen, 304) + if yyrt4805 { + if yyrl4805 <= cap(yyv4805) { + yyv4805 = yyv4805[:yyrl4805] } else { - yyv4649 = make([]ResourceQuota, yyrl4649) + yyv4805 = make([]ResourceQuota, yyrl4805) } } else { - yyv4649 = make([]ResourceQuota, yyrl4649) + yyv4805 = make([]ResourceQuota, yyrl4805) } - yyc4649 = true - yyrr4649 = len(yyv4649) - if yyrg4649 { - copy(yyv4649, yyv24649) + yyc4805 = true + yyrr4805 = len(yyv4805) + if yyrg4805 { + copy(yyv4805, yyv24805) } - } else if yyl4649 != len(yyv4649) { - yyv4649 = yyv4649[:yyl4649] - yyc4649 = true + } else if yyl4805 != len(yyv4805) { + yyv4805 = yyv4805[:yyl4805] + yyc4805 = true } - yyj4649 := 0 - for ; yyj4649 < yyrr4649; yyj4649++ { - yyh4649.ElemContainerState(yyj4649) + yyj4805 := 0 + for ; yyj4805 < yyrr4805; yyj4805++ { + yyh4805.ElemContainerState(yyj4805) if r.TryDecodeAsNil() { - yyv4649[yyj4649] = ResourceQuota{} + yyv4805[yyj4805] = ResourceQuota{} } else { - yyv4650 := &yyv4649[yyj4649] - yyv4650.CodecDecodeSelf(d) + yyv4806 := &yyv4805[yyj4805] + yyv4806.CodecDecodeSelf(d) } } - if yyrt4649 { - for ; yyj4649 < yyl4649; yyj4649++ { - yyv4649 = append(yyv4649, ResourceQuota{}) - yyh4649.ElemContainerState(yyj4649) + if yyrt4805 { + for ; yyj4805 < yyl4805; yyj4805++ { + yyv4805 = append(yyv4805, ResourceQuota{}) + yyh4805.ElemContainerState(yyj4805) if r.TryDecodeAsNil() { - yyv4649[yyj4649] = ResourceQuota{} + yyv4805[yyj4805] = ResourceQuota{} } else { - yyv4651 := &yyv4649[yyj4649] - yyv4651.CodecDecodeSelf(d) + yyv4807 := &yyv4805[yyj4805] + yyv4807.CodecDecodeSelf(d) } } } } else { - yyj4649 := 0 - for ; !r.CheckBreak(); yyj4649++ { + yyj4805 := 0 + for ; !r.CheckBreak(); yyj4805++ { - if yyj4649 >= len(yyv4649) { - yyv4649 = append(yyv4649, ResourceQuota{}) // var yyz4649 ResourceQuota - yyc4649 = true + if yyj4805 >= len(yyv4805) { + yyv4805 = append(yyv4805, ResourceQuota{}) // var yyz4805 ResourceQuota + yyc4805 = true } - yyh4649.ElemContainerState(yyj4649) - if yyj4649 < len(yyv4649) { + yyh4805.ElemContainerState(yyj4805) + if yyj4805 < len(yyv4805) { if r.TryDecodeAsNil() { - yyv4649[yyj4649] = ResourceQuota{} + yyv4805[yyj4805] = ResourceQuota{} } else { - yyv4652 := &yyv4649[yyj4649] - yyv4652.CodecDecodeSelf(d) + yyv4808 := &yyv4805[yyj4805] + yyv4808.CodecDecodeSelf(d) } } else { @@ -59919,17 +61771,17 @@ func (x codecSelfer1234) decSliceResourceQuota(v *[]ResourceQuota, d *codec1978. } } - if yyj4649 < len(yyv4649) { - yyv4649 = yyv4649[:yyj4649] - yyc4649 = true - } else if yyj4649 == 0 && yyv4649 == nil { - yyv4649 = []ResourceQuota{} - yyc4649 = true + if yyj4805 < len(yyv4805) { + yyv4805 = yyv4805[:yyj4805] + yyc4805 = true + } else if yyj4805 == 0 && yyv4805 == nil { + yyv4805 = []ResourceQuota{} + yyc4805 = true } } - yyh4649.End() - if yyc4649 { - *v = yyv4649 + yyh4805.End() + if yyc4805 { + *v = yyv4805 } } @@ -59938,23 +61790,23 @@ func (x codecSelfer1234) encMapstringSliceuint8(v map[string][]uint8, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) - for yyk4653, yyv4653 := range v { + for yyk4809, yyv4809 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym4654 := z.EncBinary() - _ = yym4654 + yym4810 := z.EncBinary() + _ = yym4810 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk4653)) + r.EncodeString(codecSelferC_UTF81234, string(yyk4809)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv4653 == nil { + if yyv4809 == nil { r.EncodeNil() } else { - yym4655 := z.EncBinary() - _ = yym4655 + yym4811 := z.EncBinary() + _ = yym4811 if false { } else { - r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4653)) + r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4809)) } } } @@ -59966,80 +61818,80 @@ func (x codecSelfer1234) decMapstringSliceuint8(v *map[string][]uint8, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4656 := *v - yyl4656 := r.ReadMapStart() - yybh4656 := z.DecBasicHandle() - if yyv4656 == nil { - yyrl4656, _ := z.DecInferLen(yyl4656, yybh4656.MaxInitLen, 40) - yyv4656 = make(map[string][]uint8, yyrl4656) - *v = yyv4656 + yyv4812 := *v + yyl4812 := r.ReadMapStart() + yybh4812 := z.DecBasicHandle() + if yyv4812 == nil { + yyrl4812, _ := z.DecInferLen(yyl4812, yybh4812.MaxInitLen, 40) + yyv4812 = make(map[string][]uint8, yyrl4812) + *v = yyv4812 } - var yymk4656 string - var yymv4656 []uint8 - var yymg4656 bool - if yybh4656.MapValueReset { - yymg4656 = true + var yymk4812 string + var yymv4812 []uint8 + var yymg4812 bool + if yybh4812.MapValueReset { + yymg4812 = true } - if yyl4656 > 0 { - for yyj4656 := 0; yyj4656 < yyl4656; yyj4656++ { + if yyl4812 > 0 { + for yyj4812 := 0; yyj4812 < yyl4812; yyj4812++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk4656 = "" + yymk4812 = "" } else { - yymk4656 = string(r.DecodeString()) + yymk4812 = string(r.DecodeString()) } - if yymg4656 { - yymv4656 = yyv4656[yymk4656] + if yymg4812 { + yymv4812 = yyv4812[yymk4812] } else { - yymv4656 = nil + yymv4812 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv4656 = nil + yymv4812 = nil } else { - yyv4658 := &yymv4656 - yym4659 := z.DecBinary() - _ = yym4659 + yyv4814 := &yymv4812 + yym4815 := z.DecBinary() + _ = yym4815 if false { } else { - *yyv4658 = r.DecodeBytes(*(*[]byte)(yyv4658), false, false) + *yyv4814 = r.DecodeBytes(*(*[]byte)(yyv4814), false, false) } } - if yyv4656 != nil { - yyv4656[yymk4656] = yymv4656 + if yyv4812 != nil { + yyv4812[yymk4812] = yymv4812 } } - } else if yyl4656 < 0 { - for yyj4656 := 0; !r.CheckBreak(); yyj4656++ { + } else if yyl4812 < 0 { + for yyj4812 := 0; !r.CheckBreak(); yyj4812++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk4656 = "" + yymk4812 = "" } else { - yymk4656 = string(r.DecodeString()) + yymk4812 = string(r.DecodeString()) } - if yymg4656 { - yymv4656 = yyv4656[yymk4656] + if yymg4812 { + yymv4812 = yyv4812[yymk4812] } else { - yymv4656 = nil + yymv4812 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv4656 = nil + yymv4812 = nil } else { - yyv4661 := &yymv4656 - yym4662 := z.DecBinary() - _ = yym4662 + yyv4817 := &yymv4812 + yym4818 := z.DecBinary() + _ = yym4818 if false { } else { - *yyv4661 = r.DecodeBytes(*(*[]byte)(yyv4661), false, false) + *yyv4817 = r.DecodeBytes(*(*[]byte)(yyv4817), false, false) } } - if yyv4656 != nil { - yyv4656[yymk4656] = yymv4656 + if yyv4812 != nil { + yyv4812[yymk4812] = yymv4812 } } } // else len==0: TODO: Should we clear map entries? @@ -60051,10 +61903,10 @@ func (x codecSelfer1234) encSliceSecret(v []Secret, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4663 := range v { + for _, yyv4819 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4664 := &yyv4663 - yy4664.CodecEncodeSelf(e) + yy4820 := &yyv4819 + yy4820.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60064,83 +61916,83 @@ func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4665 := *v - yyh4665, yyl4665 := z.DecSliceHelperStart() - var yyc4665 bool - if yyl4665 == 0 { - if yyv4665 == nil { - yyv4665 = []Secret{} - yyc4665 = true - } else if len(yyv4665) != 0 { - yyv4665 = yyv4665[:0] - yyc4665 = true + yyv4821 := *v + yyh4821, yyl4821 := z.DecSliceHelperStart() + var yyc4821 bool + if yyl4821 == 0 { + if yyv4821 == nil { + yyv4821 = []Secret{} + yyc4821 = true + } else if len(yyv4821) != 0 { + yyv4821 = yyv4821[:0] + yyc4821 = true } - } else if yyl4665 > 0 { - var yyrr4665, yyrl4665 int - var yyrt4665 bool - if yyl4665 > cap(yyv4665) { + } else if yyl4821 > 0 { + var yyrr4821, yyrl4821 int + var yyrt4821 bool + if yyl4821 > cap(yyv4821) { - yyrg4665 := len(yyv4665) > 0 - yyv24665 := yyv4665 - yyrl4665, yyrt4665 = z.DecInferLen(yyl4665, z.DecBasicHandle().MaxInitLen, 272) - if yyrt4665 { - if yyrl4665 <= cap(yyv4665) { - yyv4665 = yyv4665[:yyrl4665] + yyrg4821 := len(yyv4821) > 0 + yyv24821 := yyv4821 + yyrl4821, yyrt4821 = z.DecInferLen(yyl4821, z.DecBasicHandle().MaxInitLen, 288) + if yyrt4821 { + if yyrl4821 <= cap(yyv4821) { + yyv4821 = yyv4821[:yyrl4821] } else { - yyv4665 = make([]Secret, yyrl4665) + yyv4821 = make([]Secret, yyrl4821) } } else { - yyv4665 = make([]Secret, yyrl4665) + yyv4821 = make([]Secret, yyrl4821) } - yyc4665 = true - yyrr4665 = len(yyv4665) - if yyrg4665 { - copy(yyv4665, yyv24665) + yyc4821 = true + yyrr4821 = len(yyv4821) + if yyrg4821 { + copy(yyv4821, yyv24821) } - } else if yyl4665 != len(yyv4665) { - yyv4665 = yyv4665[:yyl4665] - yyc4665 = true + } else if yyl4821 != len(yyv4821) { + yyv4821 = yyv4821[:yyl4821] + yyc4821 = true } - yyj4665 := 0 - for ; yyj4665 < yyrr4665; yyj4665++ { - yyh4665.ElemContainerState(yyj4665) + yyj4821 := 0 + for ; yyj4821 < yyrr4821; yyj4821++ { + yyh4821.ElemContainerState(yyj4821) if r.TryDecodeAsNil() { - yyv4665[yyj4665] = Secret{} + yyv4821[yyj4821] = Secret{} } else { - yyv4666 := &yyv4665[yyj4665] - yyv4666.CodecDecodeSelf(d) + yyv4822 := &yyv4821[yyj4821] + yyv4822.CodecDecodeSelf(d) } } - if yyrt4665 { - for ; yyj4665 < yyl4665; yyj4665++ { - yyv4665 = append(yyv4665, Secret{}) - yyh4665.ElemContainerState(yyj4665) + if yyrt4821 { + for ; yyj4821 < yyl4821; yyj4821++ { + yyv4821 = append(yyv4821, Secret{}) + yyh4821.ElemContainerState(yyj4821) if r.TryDecodeAsNil() { - yyv4665[yyj4665] = Secret{} + yyv4821[yyj4821] = Secret{} } else { - yyv4667 := &yyv4665[yyj4665] - yyv4667.CodecDecodeSelf(d) + yyv4823 := &yyv4821[yyj4821] + yyv4823.CodecDecodeSelf(d) } } } } else { - yyj4665 := 0 - for ; !r.CheckBreak(); yyj4665++ { + yyj4821 := 0 + for ; !r.CheckBreak(); yyj4821++ { - if yyj4665 >= len(yyv4665) { - yyv4665 = append(yyv4665, Secret{}) // var yyz4665 Secret - yyc4665 = true + if yyj4821 >= len(yyv4821) { + yyv4821 = append(yyv4821, Secret{}) // var yyz4821 Secret + yyc4821 = true } - yyh4665.ElemContainerState(yyj4665) - if yyj4665 < len(yyv4665) { + yyh4821.ElemContainerState(yyj4821) + if yyj4821 < len(yyv4821) { if r.TryDecodeAsNil() { - yyv4665[yyj4665] = Secret{} + yyv4821[yyj4821] = Secret{} } else { - yyv4668 := &yyv4665[yyj4665] - yyv4668.CodecDecodeSelf(d) + yyv4824 := &yyv4821[yyj4821] + yyv4824.CodecDecodeSelf(d) } } else { @@ -60148,17 +62000,17 @@ func (x codecSelfer1234) decSliceSecret(v *[]Secret, d *codec1978.Decoder) { } } - if yyj4665 < len(yyv4665) { - yyv4665 = yyv4665[:yyj4665] - yyc4665 = true - } else if yyj4665 == 0 && yyv4665 == nil { - yyv4665 = []Secret{} - yyc4665 = true + if yyj4821 < len(yyv4821) { + yyv4821 = yyv4821[:yyj4821] + yyc4821 = true + } else if yyj4821 == 0 && yyv4821 == nil { + yyv4821 = []Secret{} + yyc4821 = true } } - yyh4665.End() - if yyc4665 { - *v = yyv4665 + yyh4821.End() + if yyc4821 { + *v = yyv4821 } } @@ -60167,10 +62019,10 @@ func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4669 := range v { + for _, yyv4825 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4670 := &yyv4669 - yy4670.CodecEncodeSelf(e) + yy4826 := &yyv4825 + yy4826.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60180,83 +62032,83 @@ func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4671 := *v - yyh4671, yyl4671 := z.DecSliceHelperStart() - var yyc4671 bool - if yyl4671 == 0 { - if yyv4671 == nil { - yyv4671 = []ConfigMap{} - yyc4671 = true - } else if len(yyv4671) != 0 { - yyv4671 = yyv4671[:0] - yyc4671 = true + yyv4827 := *v + yyh4827, yyl4827 := z.DecSliceHelperStart() + var yyc4827 bool + if yyl4827 == 0 { + if yyv4827 == nil { + yyv4827 = []ConfigMap{} + yyc4827 = true + } else if len(yyv4827) != 0 { + yyv4827 = yyv4827[:0] + yyc4827 = true } - } else if yyl4671 > 0 { - var yyrr4671, yyrl4671 int - var yyrt4671 bool - if yyl4671 > cap(yyv4671) { + } else if yyl4827 > 0 { + var yyrr4827, yyrl4827 int + var yyrt4827 bool + if yyl4827 > cap(yyv4827) { - yyrg4671 := len(yyv4671) > 0 - yyv24671 := yyv4671 - yyrl4671, yyrt4671 = z.DecInferLen(yyl4671, z.DecBasicHandle().MaxInitLen, 248) - if yyrt4671 { - if yyrl4671 <= cap(yyv4671) { - yyv4671 = yyv4671[:yyrl4671] + yyrg4827 := len(yyv4827) > 0 + yyv24827 := yyv4827 + yyrl4827, yyrt4827 = z.DecInferLen(yyl4827, z.DecBasicHandle().MaxInitLen, 264) + if yyrt4827 { + if yyrl4827 <= cap(yyv4827) { + yyv4827 = yyv4827[:yyrl4827] } else { - yyv4671 = make([]ConfigMap, yyrl4671) + yyv4827 = make([]ConfigMap, yyrl4827) } } else { - yyv4671 = make([]ConfigMap, yyrl4671) + yyv4827 = make([]ConfigMap, yyrl4827) } - yyc4671 = true - yyrr4671 = len(yyv4671) - if yyrg4671 { - copy(yyv4671, yyv24671) + yyc4827 = true + yyrr4827 = len(yyv4827) + if yyrg4827 { + copy(yyv4827, yyv24827) } - } else if yyl4671 != len(yyv4671) { - yyv4671 = yyv4671[:yyl4671] - yyc4671 = true + } else if yyl4827 != len(yyv4827) { + yyv4827 = yyv4827[:yyl4827] + yyc4827 = true } - yyj4671 := 0 - for ; yyj4671 < yyrr4671; yyj4671++ { - yyh4671.ElemContainerState(yyj4671) + yyj4827 := 0 + for ; yyj4827 < yyrr4827; yyj4827++ { + yyh4827.ElemContainerState(yyj4827) if r.TryDecodeAsNil() { - yyv4671[yyj4671] = ConfigMap{} + yyv4827[yyj4827] = ConfigMap{} } else { - yyv4672 := &yyv4671[yyj4671] - yyv4672.CodecDecodeSelf(d) + yyv4828 := &yyv4827[yyj4827] + yyv4828.CodecDecodeSelf(d) } } - if yyrt4671 { - for ; yyj4671 < yyl4671; yyj4671++ { - yyv4671 = append(yyv4671, ConfigMap{}) - yyh4671.ElemContainerState(yyj4671) + if yyrt4827 { + for ; yyj4827 < yyl4827; yyj4827++ { + yyv4827 = append(yyv4827, ConfigMap{}) + yyh4827.ElemContainerState(yyj4827) if r.TryDecodeAsNil() { - yyv4671[yyj4671] = ConfigMap{} + yyv4827[yyj4827] = ConfigMap{} } else { - yyv4673 := &yyv4671[yyj4671] - yyv4673.CodecDecodeSelf(d) + yyv4829 := &yyv4827[yyj4827] + yyv4829.CodecDecodeSelf(d) } } } } else { - yyj4671 := 0 - for ; !r.CheckBreak(); yyj4671++ { + yyj4827 := 0 + for ; !r.CheckBreak(); yyj4827++ { - if yyj4671 >= len(yyv4671) { - yyv4671 = append(yyv4671, ConfigMap{}) // var yyz4671 ConfigMap - yyc4671 = true + if yyj4827 >= len(yyv4827) { + yyv4827 = append(yyv4827, ConfigMap{}) // var yyz4827 ConfigMap + yyc4827 = true } - yyh4671.ElemContainerState(yyj4671) - if yyj4671 < len(yyv4671) { + yyh4827.ElemContainerState(yyj4827) + if yyj4827 < len(yyv4827) { if r.TryDecodeAsNil() { - yyv4671[yyj4671] = ConfigMap{} + yyv4827[yyj4827] = ConfigMap{} } else { - yyv4674 := &yyv4671[yyj4671] - yyv4674.CodecDecodeSelf(d) + yyv4830 := &yyv4827[yyj4827] + yyv4830.CodecDecodeSelf(d) } } else { @@ -60264,17 +62116,17 @@ func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) } } - if yyj4671 < len(yyv4671) { - yyv4671 = yyv4671[:yyj4671] - yyc4671 = true - } else if yyj4671 == 0 && yyv4671 == nil { - yyv4671 = []ConfigMap{} - yyc4671 = true + if yyj4827 < len(yyv4827) { + yyv4827 = yyv4827[:yyj4827] + yyc4827 = true + } else if yyj4827 == 0 && yyv4827 == nil { + yyv4827 = []ConfigMap{} + yyc4827 = true } } - yyh4671.End() - if yyc4671 { - *v = yyv4671 + yyh4827.End() + if yyc4827 { + *v = yyv4827 } } @@ -60283,10 +62135,10 @@ func (x codecSelfer1234) encSliceComponentCondition(v []ComponentCondition, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4675 := range v { + for _, yyv4831 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4676 := &yyv4675 - yy4676.CodecEncodeSelf(e) + yy4832 := &yyv4831 + yy4832.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60296,83 +62148,83 @@ func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4677 := *v - yyh4677, yyl4677 := z.DecSliceHelperStart() - var yyc4677 bool - if yyl4677 == 0 { - if yyv4677 == nil { - yyv4677 = []ComponentCondition{} - yyc4677 = true - } else if len(yyv4677) != 0 { - yyv4677 = yyv4677[:0] - yyc4677 = true + yyv4833 := *v + yyh4833, yyl4833 := z.DecSliceHelperStart() + var yyc4833 bool + if yyl4833 == 0 { + if yyv4833 == nil { + yyv4833 = []ComponentCondition{} + yyc4833 = true + } else if len(yyv4833) != 0 { + yyv4833 = yyv4833[:0] + yyc4833 = true } - } else if yyl4677 > 0 { - var yyrr4677, yyrl4677 int - var yyrt4677 bool - if yyl4677 > cap(yyv4677) { + } else if yyl4833 > 0 { + var yyrr4833, yyrl4833 int + var yyrt4833 bool + if yyl4833 > cap(yyv4833) { - yyrg4677 := len(yyv4677) > 0 - yyv24677 := yyv4677 - yyrl4677, yyrt4677 = z.DecInferLen(yyl4677, z.DecBasicHandle().MaxInitLen, 64) - if yyrt4677 { - if yyrl4677 <= cap(yyv4677) { - yyv4677 = yyv4677[:yyrl4677] + yyrg4833 := len(yyv4833) > 0 + yyv24833 := yyv4833 + yyrl4833, yyrt4833 = z.DecInferLen(yyl4833, z.DecBasicHandle().MaxInitLen, 64) + if yyrt4833 { + if yyrl4833 <= cap(yyv4833) { + yyv4833 = yyv4833[:yyrl4833] } else { - yyv4677 = make([]ComponentCondition, yyrl4677) + yyv4833 = make([]ComponentCondition, yyrl4833) } } else { - yyv4677 = make([]ComponentCondition, yyrl4677) + yyv4833 = make([]ComponentCondition, yyrl4833) } - yyc4677 = true - yyrr4677 = len(yyv4677) - if yyrg4677 { - copy(yyv4677, yyv24677) + yyc4833 = true + yyrr4833 = len(yyv4833) + if yyrg4833 { + copy(yyv4833, yyv24833) } - } else if yyl4677 != len(yyv4677) { - yyv4677 = yyv4677[:yyl4677] - yyc4677 = true + } else if yyl4833 != len(yyv4833) { + yyv4833 = yyv4833[:yyl4833] + yyc4833 = true } - yyj4677 := 0 - for ; yyj4677 < yyrr4677; yyj4677++ { - yyh4677.ElemContainerState(yyj4677) + yyj4833 := 0 + for ; yyj4833 < yyrr4833; yyj4833++ { + yyh4833.ElemContainerState(yyj4833) if r.TryDecodeAsNil() { - yyv4677[yyj4677] = ComponentCondition{} + yyv4833[yyj4833] = ComponentCondition{} } else { - yyv4678 := &yyv4677[yyj4677] - yyv4678.CodecDecodeSelf(d) + yyv4834 := &yyv4833[yyj4833] + yyv4834.CodecDecodeSelf(d) } } - if yyrt4677 { - for ; yyj4677 < yyl4677; yyj4677++ { - yyv4677 = append(yyv4677, ComponentCondition{}) - yyh4677.ElemContainerState(yyj4677) + if yyrt4833 { + for ; yyj4833 < yyl4833; yyj4833++ { + yyv4833 = append(yyv4833, ComponentCondition{}) + yyh4833.ElemContainerState(yyj4833) if r.TryDecodeAsNil() { - yyv4677[yyj4677] = ComponentCondition{} + yyv4833[yyj4833] = ComponentCondition{} } else { - yyv4679 := &yyv4677[yyj4677] - yyv4679.CodecDecodeSelf(d) + yyv4835 := &yyv4833[yyj4833] + yyv4835.CodecDecodeSelf(d) } } } } else { - yyj4677 := 0 - for ; !r.CheckBreak(); yyj4677++ { + yyj4833 := 0 + for ; !r.CheckBreak(); yyj4833++ { - if yyj4677 >= len(yyv4677) { - yyv4677 = append(yyv4677, ComponentCondition{}) // var yyz4677 ComponentCondition - yyc4677 = true + if yyj4833 >= len(yyv4833) { + yyv4833 = append(yyv4833, ComponentCondition{}) // var yyz4833 ComponentCondition + yyc4833 = true } - yyh4677.ElemContainerState(yyj4677) - if yyj4677 < len(yyv4677) { + yyh4833.ElemContainerState(yyj4833) + if yyj4833 < len(yyv4833) { if r.TryDecodeAsNil() { - yyv4677[yyj4677] = ComponentCondition{} + yyv4833[yyj4833] = ComponentCondition{} } else { - yyv4680 := &yyv4677[yyj4677] - yyv4680.CodecDecodeSelf(d) + yyv4836 := &yyv4833[yyj4833] + yyv4836.CodecDecodeSelf(d) } } else { @@ -60380,17 +62232,17 @@ func (x codecSelfer1234) decSliceComponentCondition(v *[]ComponentCondition, d * } } - if yyj4677 < len(yyv4677) { - yyv4677 = yyv4677[:yyj4677] - yyc4677 = true - } else if yyj4677 == 0 && yyv4677 == nil { - yyv4677 = []ComponentCondition{} - yyc4677 = true + if yyj4833 < len(yyv4833) { + yyv4833 = yyv4833[:yyj4833] + yyc4833 = true + } else if yyj4833 == 0 && yyv4833 == nil { + yyv4833 = []ComponentCondition{} + yyc4833 = true } } - yyh4677.End() - if yyc4677 { - *v = yyv4677 + yyh4833.End() + if yyc4833 { + *v = yyv4833 } } @@ -60399,10 +62251,10 @@ func (x codecSelfer1234) encSliceComponentStatus(v []ComponentStatus, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4681 := range v { + for _, yyv4837 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4682 := &yyv4681 - yy4682.CodecEncodeSelf(e) + yy4838 := &yyv4837 + yy4838.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60412,83 +62264,83 @@ func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4683 := *v - yyh4683, yyl4683 := z.DecSliceHelperStart() - var yyc4683 bool - if yyl4683 == 0 { - if yyv4683 == nil { - yyv4683 = []ComponentStatus{} - yyc4683 = true - } else if len(yyv4683) != 0 { - yyv4683 = yyv4683[:0] - yyc4683 = true + yyv4839 := *v + yyh4839, yyl4839 := z.DecSliceHelperStart() + var yyc4839 bool + if yyl4839 == 0 { + if yyv4839 == nil { + yyv4839 = []ComponentStatus{} + yyc4839 = true + } else if len(yyv4839) != 0 { + yyv4839 = yyv4839[:0] + yyc4839 = true } - } else if yyl4683 > 0 { - var yyrr4683, yyrl4683 int - var yyrt4683 bool - if yyl4683 > cap(yyv4683) { + } else if yyl4839 > 0 { + var yyrr4839, yyrl4839 int + var yyrt4839 bool + if yyl4839 > cap(yyv4839) { - yyrg4683 := len(yyv4683) > 0 - yyv24683 := yyv4683 - yyrl4683, yyrt4683 = z.DecInferLen(yyl4683, z.DecBasicHandle().MaxInitLen, 264) - if yyrt4683 { - if yyrl4683 <= cap(yyv4683) { - yyv4683 = yyv4683[:yyrl4683] + yyrg4839 := len(yyv4839) > 0 + yyv24839 := yyv4839 + yyrl4839, yyrt4839 = z.DecInferLen(yyl4839, z.DecBasicHandle().MaxInitLen, 280) + if yyrt4839 { + if yyrl4839 <= cap(yyv4839) { + yyv4839 = yyv4839[:yyrl4839] } else { - yyv4683 = make([]ComponentStatus, yyrl4683) + yyv4839 = make([]ComponentStatus, yyrl4839) } } else { - yyv4683 = make([]ComponentStatus, yyrl4683) + yyv4839 = make([]ComponentStatus, yyrl4839) } - yyc4683 = true - yyrr4683 = len(yyv4683) - if yyrg4683 { - copy(yyv4683, yyv24683) + yyc4839 = true + yyrr4839 = len(yyv4839) + if yyrg4839 { + copy(yyv4839, yyv24839) } - } else if yyl4683 != len(yyv4683) { - yyv4683 = yyv4683[:yyl4683] - yyc4683 = true + } else if yyl4839 != len(yyv4839) { + yyv4839 = yyv4839[:yyl4839] + yyc4839 = true } - yyj4683 := 0 - for ; yyj4683 < yyrr4683; yyj4683++ { - yyh4683.ElemContainerState(yyj4683) + yyj4839 := 0 + for ; yyj4839 < yyrr4839; yyj4839++ { + yyh4839.ElemContainerState(yyj4839) if r.TryDecodeAsNil() { - yyv4683[yyj4683] = ComponentStatus{} + yyv4839[yyj4839] = ComponentStatus{} } else { - yyv4684 := &yyv4683[yyj4683] - yyv4684.CodecDecodeSelf(d) + yyv4840 := &yyv4839[yyj4839] + yyv4840.CodecDecodeSelf(d) } } - if yyrt4683 { - for ; yyj4683 < yyl4683; yyj4683++ { - yyv4683 = append(yyv4683, ComponentStatus{}) - yyh4683.ElemContainerState(yyj4683) + if yyrt4839 { + for ; yyj4839 < yyl4839; yyj4839++ { + yyv4839 = append(yyv4839, ComponentStatus{}) + yyh4839.ElemContainerState(yyj4839) if r.TryDecodeAsNil() { - yyv4683[yyj4683] = ComponentStatus{} + yyv4839[yyj4839] = ComponentStatus{} } else { - yyv4685 := &yyv4683[yyj4683] - yyv4685.CodecDecodeSelf(d) + yyv4841 := &yyv4839[yyj4839] + yyv4841.CodecDecodeSelf(d) } } } } else { - yyj4683 := 0 - for ; !r.CheckBreak(); yyj4683++ { + yyj4839 := 0 + for ; !r.CheckBreak(); yyj4839++ { - if yyj4683 >= len(yyv4683) { - yyv4683 = append(yyv4683, ComponentStatus{}) // var yyz4683 ComponentStatus - yyc4683 = true + if yyj4839 >= len(yyv4839) { + yyv4839 = append(yyv4839, ComponentStatus{}) // var yyz4839 ComponentStatus + yyc4839 = true } - yyh4683.ElemContainerState(yyj4683) - if yyj4683 < len(yyv4683) { + yyh4839.ElemContainerState(yyj4839) + if yyj4839 < len(yyv4839) { if r.TryDecodeAsNil() { - yyv4683[yyj4683] = ComponentStatus{} + yyv4839[yyj4839] = ComponentStatus{} } else { - yyv4686 := &yyv4683[yyj4683] - yyv4686.CodecDecodeSelf(d) + yyv4842 := &yyv4839[yyj4839] + yyv4842.CodecDecodeSelf(d) } } else { @@ -60496,17 +62348,17 @@ func (x codecSelfer1234) decSliceComponentStatus(v *[]ComponentStatus, d *codec1 } } - if yyj4683 < len(yyv4683) { - yyv4683 = yyv4683[:yyj4683] - yyc4683 = true - } else if yyj4683 == 0 && yyv4683 == nil { - yyv4683 = []ComponentStatus{} - yyc4683 = true + if yyj4839 < len(yyv4839) { + yyv4839 = yyv4839[:yyj4839] + yyc4839 = true + } else if yyj4839 == 0 && yyv4839 == nil { + yyv4839 = []ComponentStatus{} + yyc4839 = true } } - yyh4683.End() - if yyc4683 { - *v = yyv4683 + yyh4839.End() + if yyc4839 { + *v = yyv4839 } } @@ -60515,10 +62367,10 @@ func (x codecSelfer1234) encSliceDownwardAPIVolumeFile(v []DownwardAPIVolumeFile z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv4687 := range v { + for _, yyv4843 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy4688 := &yyv4687 - yy4688.CodecEncodeSelf(e) + yy4844 := &yyv4843 + yy4844.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -60528,83 +62380,83 @@ func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFil z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv4689 := *v - yyh4689, yyl4689 := z.DecSliceHelperStart() - var yyc4689 bool - if yyl4689 == 0 { - if yyv4689 == nil { - yyv4689 = []DownwardAPIVolumeFile{} - yyc4689 = true - } else if len(yyv4689) != 0 { - yyv4689 = yyv4689[:0] - yyc4689 = true + yyv4845 := *v + yyh4845, yyl4845 := z.DecSliceHelperStart() + var yyc4845 bool + if yyl4845 == 0 { + if yyv4845 == nil { + yyv4845 = []DownwardAPIVolumeFile{} + yyc4845 = true + } else if len(yyv4845) != 0 { + yyv4845 = yyv4845[:0] + yyc4845 = true } - } else if yyl4689 > 0 { - var yyrr4689, yyrl4689 int - var yyrt4689 bool - if yyl4689 > cap(yyv4689) { + } else if yyl4845 > 0 { + var yyrr4845, yyrl4845 int + var yyrt4845 bool + if yyl4845 > cap(yyv4845) { - yyrg4689 := len(yyv4689) > 0 - yyv24689 := yyv4689 - yyrl4689, yyrt4689 = z.DecInferLen(yyl4689, z.DecBasicHandle().MaxInitLen, 32) - if yyrt4689 { - if yyrl4689 <= cap(yyv4689) { - yyv4689 = yyv4689[:yyrl4689] + yyrg4845 := len(yyv4845) > 0 + yyv24845 := yyv4845 + yyrl4845, yyrt4845 = z.DecInferLen(yyl4845, z.DecBasicHandle().MaxInitLen, 40) + if yyrt4845 { + if yyrl4845 <= cap(yyv4845) { + yyv4845 = yyv4845[:yyrl4845] } else { - yyv4689 = make([]DownwardAPIVolumeFile, yyrl4689) + yyv4845 = make([]DownwardAPIVolumeFile, yyrl4845) } } else { - yyv4689 = make([]DownwardAPIVolumeFile, yyrl4689) + yyv4845 = make([]DownwardAPIVolumeFile, yyrl4845) } - yyc4689 = true - yyrr4689 = len(yyv4689) - if yyrg4689 { - copy(yyv4689, yyv24689) + yyc4845 = true + yyrr4845 = len(yyv4845) + if yyrg4845 { + copy(yyv4845, yyv24845) } - } else if yyl4689 != len(yyv4689) { - yyv4689 = yyv4689[:yyl4689] - yyc4689 = true + } else if yyl4845 != len(yyv4845) { + yyv4845 = yyv4845[:yyl4845] + yyc4845 = true } - yyj4689 := 0 - for ; yyj4689 < yyrr4689; yyj4689++ { - yyh4689.ElemContainerState(yyj4689) + yyj4845 := 0 + for ; yyj4845 < yyrr4845; yyj4845++ { + yyh4845.ElemContainerState(yyj4845) if r.TryDecodeAsNil() { - yyv4689[yyj4689] = DownwardAPIVolumeFile{} + yyv4845[yyj4845] = DownwardAPIVolumeFile{} } else { - yyv4690 := &yyv4689[yyj4689] - yyv4690.CodecDecodeSelf(d) + yyv4846 := &yyv4845[yyj4845] + yyv4846.CodecDecodeSelf(d) } } - if yyrt4689 { - for ; yyj4689 < yyl4689; yyj4689++ { - yyv4689 = append(yyv4689, DownwardAPIVolumeFile{}) - yyh4689.ElemContainerState(yyj4689) + if yyrt4845 { + for ; yyj4845 < yyl4845; yyj4845++ { + yyv4845 = append(yyv4845, DownwardAPIVolumeFile{}) + yyh4845.ElemContainerState(yyj4845) if r.TryDecodeAsNil() { - yyv4689[yyj4689] = DownwardAPIVolumeFile{} + yyv4845[yyj4845] = DownwardAPIVolumeFile{} } else { - yyv4691 := &yyv4689[yyj4689] - yyv4691.CodecDecodeSelf(d) + yyv4847 := &yyv4845[yyj4845] + yyv4847.CodecDecodeSelf(d) } } } } else { - yyj4689 := 0 - for ; !r.CheckBreak(); yyj4689++ { + yyj4845 := 0 + for ; !r.CheckBreak(); yyj4845++ { - if yyj4689 >= len(yyv4689) { - yyv4689 = append(yyv4689, DownwardAPIVolumeFile{}) // var yyz4689 DownwardAPIVolumeFile - yyc4689 = true + if yyj4845 >= len(yyv4845) { + yyv4845 = append(yyv4845, DownwardAPIVolumeFile{}) // var yyz4845 DownwardAPIVolumeFile + yyc4845 = true } - yyh4689.ElemContainerState(yyj4689) - if yyj4689 < len(yyv4689) { + yyh4845.ElemContainerState(yyj4845) + if yyj4845 < len(yyv4845) { if r.TryDecodeAsNil() { - yyv4689[yyj4689] = DownwardAPIVolumeFile{} + yyv4845[yyj4845] = DownwardAPIVolumeFile{} } else { - yyv4692 := &yyv4689[yyj4689] - yyv4692.CodecDecodeSelf(d) + yyv4848 := &yyv4845[yyj4845] + yyv4848.CodecDecodeSelf(d) } } else { @@ -60612,16 +62464,16 @@ func (x codecSelfer1234) decSliceDownwardAPIVolumeFile(v *[]DownwardAPIVolumeFil } } - if yyj4689 < len(yyv4689) { - yyv4689 = yyv4689[:yyj4689] - yyc4689 = true - } else if yyj4689 == 0 && yyv4689 == nil { - yyv4689 = []DownwardAPIVolumeFile{} - yyc4689 = true + if yyj4845 < len(yyv4845) { + yyv4845 = yyv4845[:yyj4845] + yyc4845 = true + } else if yyj4845 == 0 && yyv4845 == nil { + yyv4845 = []DownwardAPIVolumeFile{} + yyc4845 = true } } - yyh4689.End() - if yyc4689 { - *v = yyv4689 + yyh4845.End() + if yyc4845 { + *v = yyv4845 } } diff --git a/1.4/pkg/api/v1/types.go b/1.4/pkg/api/v1/types.go index 2ac63797..5bc232d3 100644 --- a/1.4/pkg/api/v1/types.go +++ b/1.4/pkg/api/v1/types.go @@ -167,7 +167,6 @@ type ObjectMeta struct { // (scope and select) objects. May match selectors of replication controllers // and services. // More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md - // TODO: replace map[string]string with labels.LabelSet type Labels map[string]string `json:"labels,omitempty" protobuf:"bytes,11,rep,name=labels"` // Annotations is an unstructured key value map stored with a resource that may be @@ -187,6 +186,11 @@ type ObjectMeta struct { // from the list. If the deletionTimestamp of the object is non-nil, entries // in this list can only be removed. Finalizers []string `json:"finalizers,omitempty" patchStrategy:"merge" protobuf:"bytes,14,rep,name=finalizers"` + + // The name of the cluster which the object belongs to. + // This is used to distinguish resources with same name and namespace in different clusters. + // This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. + ClusterName string `json:"clusterName,omitempty" protobuf:"bytes,15,opt,name=clusterName"` } const ( @@ -260,13 +264,10 @@ type VolumeSource struct { // Cinder represents a cinder volume attached and mounted on kubelets host machine // More info: http://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md Cinder *CinderVolumeSource `json:"cinder,omitempty" protobuf:"bytes,13,opt,name=cinder"` - // CephFS represents a Ceph FS mount on the host that shares a pod's lifetime CephFS *CephFSVolumeSource `json:"cephfs,omitempty" protobuf:"bytes,14,opt,name=cephfs"` - // Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running Flocker *FlockerVolumeSource `json:"flocker,omitempty" protobuf:"bytes,15,opt,name=flocker"` - // DownwardAPI represents downward API about the pod that should populate this volume DownwardAPI *DownwardAPIVolumeSource `json:"downwardAPI,omitempty" protobuf:"bytes,16,opt,name=downwardAPI"` // FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. @@ -277,6 +278,10 @@ type VolumeSource struct { ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty" protobuf:"bytes,19,opt,name=configMap"` // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty" protobuf:"bytes,20,opt,name=vsphereVolume"` + // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty" protobuf:"bytes,21,opt,name=quobyte"` + // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty" protobuf:"bytes,22,opt,name=azureDisk"` } // PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. @@ -339,6 +344,10 @@ type PersistentVolumeSource struct { AzureFile *AzureFileVolumeSource `json:"azureFile,omitempty" protobuf:"bytes,13,opt,name=azureFile"` // VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty" protobuf:"bytes,14,opt,name=vsphereVolume"` + // Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty" protobuf:"bytes,15,opt,name=quobyte"` + // AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty" protobuf:"bytes,16,opt,name=azureDisk"` } // +genclient=true @@ -689,6 +698,30 @@ type GCEPersistentDiskVolumeSource struct { ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,4,opt,name=readOnly"` } +// Represents a Quobyte mount that lasts the lifetime of a pod. +// Quobyte volumes do not support ownership management or SELinux relabeling. +type QuobyteVolumeSource struct { + // Registry represents a single or multiple Quobyte Registry services + // specified as a string as host:port pair (multiple entries are separated with commas) + // which acts as the central registry for volumes + Registry string `json:"registry" protobuf:"bytes,1,opt,name=registry"` + + // Volume is a string that references an already created Quobyte volume by name. + Volume string `json:"volume" protobuf:"bytes,2,opt,name=volume"` + + // ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. + // Defaults to false. + ReadOnly bool `json:"readOnly,omitempty" protobuf:"varint,3,opt,name=readOnly"` + + // User to map volume access to + // Defaults to serivceaccount user + User string `json:"user,omitempty" protobuf:"bytes,4,opt,name=user"` + + // Group to map volume access to + // Default is no group + Group string `json:"group,omitempty" protobuf:"bytes,5,opt,name=group"` +} + // FlexVolume represents a generic volume resource that is // provisioned/attached using a exec based plugin. This is an alpha feature and may change in future. type FlexVolumeSource struct { @@ -770,8 +803,18 @@ type SecretVolumeSource struct { // the volume setup will error. Paths must be relative and may not contain // the '..' path or start with '..'. Items []KeyToPath `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` + // Optional: mode bits to use on created files by default. Must be a + // value between 0 and 0777. Defaults to 0644. + // Directories within the path are not affected by this setting. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + DefaultMode *int32 `json:"defaultMode,omitempty" protobuf:"bytes,3,opt,name=defaultMode"` } +const ( + SecretVolumeSourceDefaultMode int32 = 0644 +) + // Represents an NFS mount that lasts the lifetime of a pod. // NFS volumes do not support ownership management or SELinux relabeling. type NFSVolumeSource struct { @@ -852,6 +895,30 @@ type VsphereVirtualDiskVolumeSource struct { // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. FSType string `json:"fsType,omitempty" protobuf:"bytes,2,opt,name=fsType"` } +type AzureDataDiskCachingMode string + +const ( + AzureDataDiskCachingNone AzureDataDiskCachingMode = "None" + AzureDataDiskCachingReadOnly AzureDataDiskCachingMode = "ReadOnly" + AzureDataDiskCachingReadWrite AzureDataDiskCachingMode = "ReadWrite" +) + +// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. +type AzureDiskVolumeSource struct { + // The Name of the data disk in the blob storage + DiskName string `json:"diskName" protobuf:"bytes,1,opt,name=diskName"` + // The URI the data disk in the blob storage + DataDiskURI string `json:"diskURI" protobuf:"bytes,2,opt,name=diskURI"` + // Host Caching mode: None, Read Only, Read Write. + CachingMode *AzureDataDiskCachingMode `json:"cachingMode,omitempty" protobuf:"bytes,3,opt,name=cachingMode,casttype=AzureDataDiskCachingMode"` + // Filesystem type to mount. + // Must be a filesystem type supported by the host operating system. + // Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. + FSType *string `json:"fsType,omitempty" protobuf:"bytes,4,opt,name=fsType"` + // Defaults to false (read/write). ReadOnly here will force + // the ReadOnly setting in VolumeMounts. + ReadOnly *bool `json:"readOnly,omitempty" protobuf:"varint,5,opt,name=readOnly"` +} // Adapts a ConfigMap into a volume. // @@ -869,8 +936,18 @@ type ConfigMapVolumeSource struct { // the volume setup will error. Paths must be relative and may not contain // the '..' path or start with '..'. Items []KeyToPath `json:"items,omitempty" protobuf:"bytes,2,rep,name=items"` + // Optional: mode bits to use on created files by default. Must be a + // value between 0 and 0777. Defaults to 0644. + // Directories within the path are not affected by this setting. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + DefaultMode *int32 `json:"defaultMode,omitempty" protobuf:"varint,3,opt,name=defaultMode"` } +const ( + ConfigMapVolumeSourceDefaultMode int32 = 0644 +) + // Maps a string key to a path within a volume. type KeyToPath struct { // The key to project. @@ -881,6 +958,11 @@ type KeyToPath struct { // May not contain the path element '..'. // May not start with the string '..'. Path string `json:"path" protobuf:"bytes,2,opt,name=path"` + // Optional: mode bits to use on this file, must be a value between 0 + // and 0777. If not specified, the volume defaultMode will be used. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + Mode *int32 `json:"mode,omitempty" protobuf:"varint,3,opt,name=mode"` } // ContainerPort represents a network port in a single container. @@ -941,7 +1023,8 @@ type EnvVar struct { // EnvVarSource represents a source for the value of an EnvVar. type EnvVarSource struct { - // Selects a field of the pod; only name and namespace are supported. + // Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, + // spec.nodeName, spec.serviceAccountName, status.podIP. FieldRef *ObjectFieldSelector `json:"fieldRef,omitempty" protobuf:"bytes,1,opt,name=fieldRef"` // Selects a resource of the container: only resources limits and requests // (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. @@ -1089,12 +1172,12 @@ type Capabilities struct { // ResourceRequirements describes the compute resource requirements. type ResourceRequirements struct { // Limits describes the maximum amount of compute resources allowed. - // More info: http://releases.k8s.io/HEAD/docs/design/resources.md#resource-specifications + // More info: http://kubernetes.io/docs/user-guide/compute-resources/ Limits ResourceList `json:"limits,omitempty" protobuf:"bytes,1,rep,name=limits,casttype=ResourceList,castkey=ResourceName"` // Requests describes the minimum amount of compute resources required. // If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, // otherwise to an implementation-defined value. - // More info: http://releases.k8s.io/HEAD/docs/design/resources.md#resource-specifications + // More info: http://kubernetes.io/docs/user-guide/compute-resources/ Requests ResourceList `json:"requests,omitempty" protobuf:"bytes,2,rep,name=requests,casttype=ResourceList,castkey=ResourceName"` } @@ -1655,11 +1738,17 @@ const ( const ( // This annotation key will be used to contain an array of v1 JSON encoded Containers // for init containers. The annotation will be placed into the internal type and cleared. + // This key is only recognized by version >= 1.4. + PodInitContainersBetaAnnotationKey = "pod.beta.kubernetes.io/init-containers" + // This annotation key will be used to contain an array of v1 JSON encoded Containers + // for init containers. The annotation will be placed into the internal type and cleared. + // This key is recognized by version >= 1.3. For version 1.4 code, this key + // will have its value copied to the beta key. PodInitContainersAnnotationKey = "pod.alpha.kubernetes.io/init-containers" // This annotation key will be used to contain an array of v1 JSON encoded // ContainerStatuses for init containers. The annotation will be placed into the internal // type and cleared. - PodInitContainerStatusesAnnotationKey = "pod.alpha.kubernetes.io/init-container-statuses" + PodInitContainerStatusesAnnotationKey = "pod.beta.kubernetes.io/init-container-statuses" ) // PodSpec is a description of a pod. @@ -1951,6 +2040,9 @@ type ReplicationControllerStatus struct { // The number of pods that have labels matching the labels of the pod template of the replication controller. FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty" protobuf:"varint,2,opt,name=fullyLabeledReplicas"` + // The number of ready replicas for this replication controller. + ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,4,opt,name=readyReplicas"` + // ObservedGeneration reflects the generation of the most recently observed replication controller. ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` } @@ -2017,6 +2109,11 @@ const ( // external load balancer (if the cloud provider supports it), in addition // to 'NodePort' type. ServiceTypeLoadBalancer ServiceType = "LoadBalancer" + + // ServiceTypeExternalName means a service consists of only a reference to + // an external name that kubedns or equivalent will return as a CNAME + // record, with no exposing or proxying of any pods involved. + ServiceTypeExternalName ServiceType = "ExternalName" ) // ServiceStatus represents the current status of a service. @@ -2051,24 +2148,39 @@ type ServiceSpec struct { // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#virtual-ips-and-service-proxies Ports []ServicePort `json:"ports" patchStrategy:"merge" patchMergeKey:"port" protobuf:"bytes,1,rep,name=ports"` - // This service will route traffic to pods having labels matching this selector. - // Label keys and values that must match in order to receive traffic for this service. - // If not specified, endpoints must be manually specified and the system will not automatically manage them. + // Route service traffic to pods with label keys and values matching this + // selector. If empty or not present, the service is assumed to have an + // external process managing its endpoints, which Kubernetes will not + // modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. + // Ignored if type is ExternalName. // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#overview Selector map[string]string `json:"selector,omitempty" protobuf:"bytes,2,rep,name=selector"` - // ClusterIP is usually assigned by the master and is the IP address of the service. - // If specified, it will be allocated to the service if it is unused - // or else creation of the service will fail. - // Valid values are None, empty string (""), or a valid IP address. - // 'None' can be specified for a headless service when proxying is not required. - // Cannot be updated. + // clusterIP is the IP address of the service and is usually assigned + // randomly by the master. If an address is specified manually and is not in + // use by others, it will be allocated to the service; otherwise, creation + // of the service will fail. This field can not be changed through updates. + // Valid values are "None", empty string (""), or a valid IP address. "None" + // can be specified for headless services when proxying is not required. + // Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if + // type is ExternalName. // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#virtual-ips-and-service-proxies ClusterIP string `json:"clusterIP,omitempty" protobuf:"bytes,3,opt,name=clusterIP"` - // Type of exposed service. Must be ClusterIP, NodePort, or LoadBalancer. - // Defaults to ClusterIP. - // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#external-services + // type determines how the Service is exposed. Defaults to ClusterIP. Valid + // options are ExternalName, ClusterIP, NodePort, and LoadBalancer. + // "ExternalName" maps to the specified externalName. + // "ClusterIP" allocates a cluster-internal IP address for load-balancing to + // endpoints. Endpoints are determined by the selector or if that is not + // specified, by manual construction of an Endpoints object. If clusterIP is + // "None", no virtual IP is allocated and the endpoints are published as a + // set of endpoints rather than a stable IP. + // "NodePort" builds on ClusterIP and allocates a port on every node which + // routes to the clusterIP. + // "LoadBalancer" builds on NodePort and creates an + // external load-balancer (if supported in the current cloud) which routes + // to the clusterIP. + // More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#overview Type ServiceType `json:"type,omitempty" protobuf:"bytes,4,opt,name=type,casttype=ServiceType"` // externalIPs is a list of IP addresses for which nodes in the cluster @@ -2107,6 +2219,11 @@ type ServiceSpec struct { // cloud-provider does not support the feature." // More info: http://releases.k8s.io/HEAD/docs/user-guide/services-firewalls.md LoadBalancerSourceRanges []string `json:"loadBalancerSourceRanges,omitempty" protobuf:"bytes,9,opt,name=loadBalancerSourceRanges"` + + // externalName is the external reference that kubedns or equivalent will + // return as a CNAME record for this service. No proxying will be involved. + // Must be a valid DNS name and requires Type to be ExternalName. + ExternalName string `json:"externalName,omitempty" protobuf:"bytes,10,opt,name=externalName"` } // ServicePort contains information on service's port. @@ -3287,8 +3404,18 @@ type ComponentStatusList struct { type DownwardAPIVolumeSource struct { // Items is a list of downward API volume file Items []DownwardAPIVolumeFile `json:"items,omitempty" protobuf:"bytes,1,rep,name=items"` + // Optional: mode bits to use on created files by default. Must be a + // value between 0 and 0777. Defaults to 0644. + // Directories within the path are not affected by this setting. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + DefaultMode *int32 `json:"defaultMode,omitempty" protobuf:"varint,2,opt,name=defaultMode"` } +const ( + DownwardAPIVolumeSourceDefaultMode int32 = 0644 +) + // DownwardAPIVolumeFile represents information to create the file containing the pod field type DownwardAPIVolumeFile struct { // Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' @@ -3298,6 +3425,11 @@ type DownwardAPIVolumeFile struct { // Selects a resource of the container: only resources limits and requests // (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. ResourceFieldRef *ResourceFieldSelector `json:"resourceFieldRef,omitempty" protobuf:"bytes,3,opt,name=resourceFieldRef"` + // Optional: mode bits to use on this file, must be a value between 0 + // and 0777. If not specified, the volume defaultMode will be used. + // This might be in conflict with other options that affect the file + // mode, like fsGroup, and the result can be other mode bits set. + Mode *int32 `json:"mode,omitempty" protobuf:"varint,4,opt,name=mode"` } // SecurityContext holds security configuration that will be applied to a container. diff --git a/1.4/pkg/api/v1/types_swagger_doc_generated.go b/1.4/pkg/api/v1/types_swagger_doc_generated.go index d41c5865..886ed425 100644 --- a/1.4/pkg/api/v1/types_swagger_doc_generated.go +++ b/1.4/pkg/api/v1/types_swagger_doc_generated.go @@ -69,6 +69,19 @@ func (AvoidPods) SwaggerDoc() map[string]string { return map_AvoidPods } +var map_AzureDiskVolumeSource = map[string]string{ + "": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", + "diskName": "The Name of the data disk in the blob storage", + "diskURI": "The URI the data disk in the blob storage", + "cachingMode": "Host Caching mode: None, Read Only, Read Write.", + "fsType": "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.", + "readOnly": "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.", +} + +func (AzureDiskVolumeSource) SwaggerDoc() map[string]string { + return map_AzureDiskVolumeSource +} + var map_AzureFileVolumeSource = map[string]string{ "": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", "secretName": "the name of secret that contains Azure Storage Account Name and Key", @@ -187,8 +200,9 @@ func (ConfigMapList) SwaggerDoc() map[string]string { } var map_ConfigMapVolumeSource = map[string]string{ - "": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", - "items": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'.", + "": "Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.", + "items": "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'.", + "defaultMode": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", } func (ConfigMapVolumeSource) SwaggerDoc() map[string]string { @@ -330,6 +344,7 @@ var map_DownwardAPIVolumeFile = map[string]string{ "path": "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'", "fieldRef": "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.", "resourceFieldRef": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", + "mode": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", } func (DownwardAPIVolumeFile) SwaggerDoc() map[string]string { @@ -337,8 +352,9 @@ func (DownwardAPIVolumeFile) SwaggerDoc() map[string]string { } var map_DownwardAPIVolumeSource = map[string]string{ - "": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", - "items": "Items is a list of downward API volume file", + "": "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.", + "items": "Items is a list of downward API volume file", + "defaultMode": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", } func (DownwardAPIVolumeSource) SwaggerDoc() map[string]string { @@ -421,7 +437,7 @@ func (EnvVar) SwaggerDoc() map[string]string { var map_EnvVarSource = map[string]string{ "": "EnvVarSource represents a source for the value of an EnvVar.", - "fieldRef": "Selects a field of the pod; only name and namespace are supported.", + "fieldRef": "Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.podIP.", "resourceFieldRef": "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.", "configMapKeyRef": "Selects a key of a ConfigMap.", "secretKeyRef": "Selects a key of a secret in the pod's namespace", @@ -616,6 +632,7 @@ var map_KeyToPath = map[string]string{ "": "Maps a string key to a path within a volume.", "key": "The key to project.", "path": "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.", + "mode": "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", } func (KeyToPath) SwaggerDoc() map[string]string { @@ -952,6 +969,7 @@ var map_ObjectMeta = map[string]string{ "annotations": "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://releases.k8s.io/HEAD/docs/user-guide/annotations.md", "ownerReferences": "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.", "finalizers": "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed.", + "clusterName": "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.", } func (ObjectMeta) SwaggerDoc() map[string]string { @@ -1077,6 +1095,8 @@ var map_PersistentVolumeSource = map[string]string{ "flexVolume": "FlexVolume represents a generic volume resource that is provisioned/attached using a exec based plugin. This is an alpha feature and may change in future.", "azureFile": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", "vsphereVolume": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + "quobyte": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + "azureDisk": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", } func (PersistentVolumeSource) SwaggerDoc() map[string]string { @@ -1371,6 +1391,19 @@ func (Probe) SwaggerDoc() map[string]string { return map_Probe } +var map_QuobyteVolumeSource = map[string]string{ + "": "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.", + "registry": "Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes", + "volume": "Volume is a string that references an already created Quobyte volume by name.", + "readOnly": "ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.", + "user": "User to map volume access to Defaults to serivceaccount user", + "group": "Group to map volume access to Default is no group", +} + +func (QuobyteVolumeSource) SwaggerDoc() map[string]string { + return map_QuobyteVolumeSource +} + var map_RBDVolumeSource = map[string]string{ "": "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.", "monitors": "A collection of Ceph monitors. More info: http://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it", @@ -1434,6 +1467,7 @@ var map_ReplicationControllerStatus = map[string]string{ "": "ReplicationControllerStatus represents the current status of a replication controller.", "replicas": "Replicas is the most recently oberved number of replicas. More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md#what-is-a-replication-controller", "fullyLabeledReplicas": "The number of pods that have labels matching the labels of the pod template of the replication controller.", + "readyReplicas": "The number of ready replicas for this replication controller.", "observedGeneration": "ObservedGeneration reflects the generation of the most recently observed replication controller.", } @@ -1495,8 +1529,8 @@ func (ResourceQuotaStatus) SwaggerDoc() map[string]string { var map_ResourceRequirements = map[string]string{ "": "ResourceRequirements describes the compute resource requirements.", - "limits": "Limits describes the maximum amount of compute resources allowed. More info: http://releases.k8s.io/HEAD/docs/design/resources.md#resource-specifications", - "requests": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://releases.k8s.io/HEAD/docs/design/resources.md#resource-specifications", + "limits": "Limits describes the maximum amount of compute resources allowed. More info: http://kubernetes.io/docs/user-guide/compute-resources/", + "requests": "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: http://kubernetes.io/docs/user-guide/compute-resources/", } func (ResourceRequirements) SwaggerDoc() map[string]string { @@ -1547,9 +1581,10 @@ func (SecretList) SwaggerDoc() map[string]string { } var map_SecretVolumeSource = map[string]string{ - "": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", - "secretName": "Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets", - "items": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'.", + "": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", + "secretName": "Name of the secret in the pod's namespace to use. More info: http://releases.k8s.io/HEAD/docs/user-guide/volumes.md#secrets", + "items": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error. Paths must be relative and may not contain the '..' path or start with '..'.", + "defaultMode": "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", } func (SecretVolumeSource) SwaggerDoc() map[string]string { @@ -1646,14 +1681,15 @@ func (ServiceProxyOptions) SwaggerDoc() map[string]string { var map_ServiceSpec = map[string]string{ "": "ServiceSpec describes the attributes that a user creates on a service.", "ports": "The list of ports that are exposed by this service. More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#virtual-ips-and-service-proxies", - "selector": "This service will route traffic to pods having labels matching this selector. Label keys and values that must match in order to receive traffic for this service. If not specified, endpoints must be manually specified and the system will not automatically manage them. More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#overview", - "clusterIP": "ClusterIP is usually assigned by the master and is the IP address of the service. If specified, it will be allocated to the service if it is unused or else creation of the service will fail. Valid values are None, empty string (\"\"), or a valid IP address. 'None' can be specified for a headless service when proxying is not required. Cannot be updated. More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#virtual-ips-and-service-proxies", - "type": "Type of exposed service. Must be ClusterIP, NodePort, or LoadBalancer. Defaults to ClusterIP. More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#external-services", + "selector": "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#overview", + "clusterIP": "clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#virtual-ips-and-service-proxies", + "type": "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#overview", "externalIPs": "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. A previous form of this functionality exists as the deprecatedPublicIPs field. When using this field, callers should also clear the deprecatedPublicIPs field.", "deprecatedPublicIPs": "deprecatedPublicIPs is deprecated and replaced by the externalIPs field with almost the exact same semantics. This field is retained in the v1 API for compatibility until at least 8/20/2016. It will be removed from any new API revisions. If both deprecatedPublicIPs *and* externalIPs are set, deprecatedPublicIPs is used.", "sessionAffinity": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: http://releases.k8s.io/HEAD/docs/user-guide/services.md#virtual-ips-and-service-proxies", "loadBalancerIP": "Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature.", "loadBalancerSourceRanges": "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: http://releases.k8s.io/HEAD/docs/user-guide/services-firewalls.md", + "externalName": "externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid DNS name and requires Type to be ExternalName.", } func (ServiceSpec) SwaggerDoc() map[string]string { @@ -1744,6 +1780,8 @@ var map_VolumeSource = map[string]string{ "azureFile": "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.", "configMap": "ConfigMap represents a configMap that should populate this volume", "vsphereVolume": "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine", + "quobyte": "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime", + "azureDisk": "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.", } func (VolumeSource) SwaggerDoc() map[string]string { diff --git a/1.4/pkg/api/v1/zz_generated.conversion.go b/1.4/pkg/api/v1/zz_generated.conversion.go index 9a372804..b17859fd 100644 --- a/1.4/pkg/api/v1/zz_generated.conversion.go +++ b/1.4/pkg/api/v1/zz_generated.conversion.go @@ -44,6 +44,8 @@ func RegisterConversions(scheme *runtime.Scheme) error { Convert_api_AttachedVolume_To_v1_AttachedVolume, Convert_v1_AvoidPods_To_api_AvoidPods, Convert_api_AvoidPods_To_v1_AvoidPods, + Convert_v1_AzureDiskVolumeSource_To_api_AzureDiskVolumeSource, + Convert_api_AzureDiskVolumeSource_To_v1_AzureDiskVolumeSource, Convert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource, Convert_api_AzureFileVolumeSource_To_v1_AzureFileVolumeSource, Convert_v1_Binding_To_api_Binding, @@ -270,6 +272,8 @@ func RegisterConversions(scheme *runtime.Scheme) error { Convert_api_PreferredSchedulingTerm_To_v1_PreferredSchedulingTerm, Convert_v1_Probe_To_api_Probe, Convert_api_Probe_To_v1_Probe, + Convert_v1_QuobyteVolumeSource_To_api_QuobyteVolumeSource, + Convert_api_QuobyteVolumeSource_To_v1_QuobyteVolumeSource, Convert_v1_RBDVolumeSource_To_api_RBDVolumeSource, Convert_api_RBDVolumeSource_To_v1_RBDVolumeSource, Convert_v1_RangeAllocation_To_api_RangeAllocation, @@ -495,6 +499,45 @@ func Convert_api_AvoidPods_To_v1_AvoidPods(in *api.AvoidPods, out *AvoidPods, s return autoConvert_api_AvoidPods_To_v1_AvoidPods(in, out, s) } +func autoConvert_v1_AzureDiskVolumeSource_To_api_AzureDiskVolumeSource(in *AzureDiskVolumeSource, out *api.AzureDiskVolumeSource, s conversion.Scope) error { + SetDefaults_AzureDiskVolumeSource(in) + out.DiskName = in.DiskName + out.DataDiskURI = in.DataDiskURI + if in.CachingMode != nil { + in, out := &in.CachingMode, &out.CachingMode + *out = new(api.AzureDataDiskCachingMode) + **out = api.AzureDataDiskCachingMode(**in) + } else { + out.CachingMode = nil + } + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_v1_AzureDiskVolumeSource_To_api_AzureDiskVolumeSource(in *AzureDiskVolumeSource, out *api.AzureDiskVolumeSource, s conversion.Scope) error { + return autoConvert_v1_AzureDiskVolumeSource_To_api_AzureDiskVolumeSource(in, out, s) +} + +func autoConvert_api_AzureDiskVolumeSource_To_v1_AzureDiskVolumeSource(in *api.AzureDiskVolumeSource, out *AzureDiskVolumeSource, s conversion.Scope) error { + out.DiskName = in.DiskName + out.DataDiskURI = in.DataDiskURI + if in.CachingMode != nil { + in, out := &in.CachingMode, &out.CachingMode + *out = new(AzureDataDiskCachingMode) + **out = AzureDataDiskCachingMode(**in) + } else { + out.CachingMode = nil + } + out.FSType = in.FSType + out.ReadOnly = in.ReadOnly + return nil +} + +func Convert_api_AzureDiskVolumeSource_To_v1_AzureDiskVolumeSource(in *api.AzureDiskVolumeSource, out *AzureDiskVolumeSource, s conversion.Scope) error { + return autoConvert_api_AzureDiskVolumeSource_To_v1_AzureDiskVolumeSource(in, out, s) +} + func autoConvert_v1_AzureFileVolumeSource_To_api_AzureFileVolumeSource(in *AzureFileVolumeSource, out *api.AzureFileVolumeSource, s conversion.Scope) error { out.SecretName = in.SecretName out.ShareName = in.ShareName @@ -899,6 +942,7 @@ func Convert_api_ConfigMapList_To_v1_ConfigMapList(in *api.ConfigMapList, out *C } func autoConvert_v1_ConfigMapVolumeSource_To_api_ConfigMapVolumeSource(in *ConfigMapVolumeSource, out *api.ConfigMapVolumeSource, s conversion.Scope) error { + SetDefaults_ConfigMapVolumeSource(in) if err := Convert_v1_LocalObjectReference_To_api_LocalObjectReference(&in.LocalObjectReference, &out.LocalObjectReference, s); err != nil { return err } @@ -913,6 +957,7 @@ func autoConvert_v1_ConfigMapVolumeSource_To_api_ConfigMapVolumeSource(in *Confi } else { out.Items = nil } + out.DefaultMode = in.DefaultMode return nil } @@ -935,6 +980,7 @@ func autoConvert_api_ConfigMapVolumeSource_To_v1_ConfigMapVolumeSource(in *api.C } else { out.Items = nil } + out.DefaultMode = in.DefaultMode return nil } @@ -1442,6 +1488,7 @@ func autoConvert_v1_DownwardAPIVolumeFile_To_api_DownwardAPIVolumeFile(in *Downw } else { out.ResourceFieldRef = nil } + out.Mode = in.Mode return nil } @@ -1469,6 +1516,7 @@ func autoConvert_api_DownwardAPIVolumeFile_To_v1_DownwardAPIVolumeFile(in *api.D } else { out.ResourceFieldRef = nil } + out.Mode = in.Mode return nil } @@ -1477,6 +1525,7 @@ func Convert_api_DownwardAPIVolumeFile_To_v1_DownwardAPIVolumeFile(in *api.Downw } func autoConvert_v1_DownwardAPIVolumeSource_To_api_DownwardAPIVolumeSource(in *DownwardAPIVolumeSource, out *api.DownwardAPIVolumeSource, s conversion.Scope) error { + SetDefaults_DownwardAPIVolumeSource(in) if in.Items != nil { in, out := &in.Items, &out.Items *out = make([]api.DownwardAPIVolumeFile, len(*in)) @@ -1488,6 +1537,7 @@ func autoConvert_v1_DownwardAPIVolumeSource_To_api_DownwardAPIVolumeSource(in *D } else { out.Items = nil } + out.DefaultMode = in.DefaultMode return nil } @@ -1507,6 +1557,7 @@ func autoConvert_api_DownwardAPIVolumeSource_To_v1_DownwardAPIVolumeSource(in *a } else { out.Items = nil } + out.DefaultMode = in.DefaultMode return nil } @@ -2420,6 +2471,7 @@ func Convert_api_ISCSIVolumeSource_To_v1_ISCSIVolumeSource(in *api.ISCSIVolumeSo func autoConvert_v1_KeyToPath_To_api_KeyToPath(in *KeyToPath, out *api.KeyToPath, s conversion.Scope) error { out.Key = in.Key out.Path = in.Path + out.Mode = in.Mode return nil } @@ -2430,6 +2482,7 @@ func Convert_v1_KeyToPath_To_api_KeyToPath(in *KeyToPath, out *api.KeyToPath, s func autoConvert_api_KeyToPath_To_v1_KeyToPath(in *api.KeyToPath, out *KeyToPath, s conversion.Scope) error { out.Key = in.Key out.Path = in.Path + out.Mode = in.Mode return nil } @@ -3665,6 +3718,7 @@ func autoConvert_v1_ObjectMeta_To_api_ObjectMeta(in *ObjectMeta, out *api.Object out.OwnerReferences = nil } out.Finalizers = in.Finalizers + out.ClusterName = in.ClusterName return nil } @@ -3699,6 +3753,7 @@ func autoConvert_api_ObjectMeta_To_v1_ObjectMeta(in *api.ObjectMeta, out *Object out.OwnerReferences = nil } out.Finalizers = in.Finalizers + out.ClusterName = in.ClusterName return nil } @@ -4187,6 +4242,24 @@ func autoConvert_v1_PersistentVolumeSource_To_api_PersistentVolumeSource(in *Per } else { out.VsphereVolume = nil } + if in.Quobyte != nil { + in, out := &in.Quobyte, &out.Quobyte + *out = new(api.QuobyteVolumeSource) + if err := Convert_v1_QuobyteVolumeSource_To_api_QuobyteVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Quobyte = nil + } + if in.AzureDisk != nil { + in, out := &in.AzureDisk, &out.AzureDisk + *out = new(api.AzureDiskVolumeSource) + if err := Convert_v1_AzureDiskVolumeSource_To_api_AzureDiskVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.AzureDisk = nil + } return nil } @@ -4249,6 +4322,15 @@ func autoConvert_api_PersistentVolumeSource_To_v1_PersistentVolumeSource(in *api } else { out.RBD = nil } + if in.Quobyte != nil { + in, out := &in.Quobyte, &out.Quobyte + *out = new(QuobyteVolumeSource) + if err := Convert_api_QuobyteVolumeSource_To_v1_QuobyteVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Quobyte = nil + } if in.ISCSI != nil { in, out := &in.ISCSI, &out.ISCSI *out = new(ISCSIVolumeSource) @@ -4321,6 +4403,15 @@ func autoConvert_api_PersistentVolumeSource_To_v1_PersistentVolumeSource(in *api } else { out.VsphereVolume = nil } + if in.AzureDisk != nil { + in, out := &in.AzureDisk, &out.AzureDisk + *out = new(AzureDiskVolumeSource) + if err := Convert_api_AzureDiskVolumeSource_To_v1_AzureDiskVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.AzureDisk = nil + } return nil } @@ -5349,6 +5440,32 @@ func Convert_api_Probe_To_v1_Probe(in *api.Probe, out *Probe, s conversion.Scope return autoConvert_api_Probe_To_v1_Probe(in, out, s) } +func autoConvert_v1_QuobyteVolumeSource_To_api_QuobyteVolumeSource(in *QuobyteVolumeSource, out *api.QuobyteVolumeSource, s conversion.Scope) error { + out.Registry = in.Registry + out.Volume = in.Volume + out.ReadOnly = in.ReadOnly + out.User = in.User + out.Group = in.Group + return nil +} + +func Convert_v1_QuobyteVolumeSource_To_api_QuobyteVolumeSource(in *QuobyteVolumeSource, out *api.QuobyteVolumeSource, s conversion.Scope) error { + return autoConvert_v1_QuobyteVolumeSource_To_api_QuobyteVolumeSource(in, out, s) +} + +func autoConvert_api_QuobyteVolumeSource_To_v1_QuobyteVolumeSource(in *api.QuobyteVolumeSource, out *QuobyteVolumeSource, s conversion.Scope) error { + out.Registry = in.Registry + out.Volume = in.Volume + out.ReadOnly = in.ReadOnly + out.User = in.User + out.Group = in.Group + return nil +} + +func Convert_api_QuobyteVolumeSource_To_v1_QuobyteVolumeSource(in *api.QuobyteVolumeSource, out *QuobyteVolumeSource, s conversion.Scope) error { + return autoConvert_api_QuobyteVolumeSource_To_v1_QuobyteVolumeSource(in, out, s) +} + func autoConvert_v1_RBDVolumeSource_To_api_RBDVolumeSource(in *RBDVolumeSource, out *api.RBDVolumeSource, s conversion.Scope) error { SetDefaults_RBDVolumeSource(in) out.CephMonitors = in.CephMonitors @@ -5562,6 +5679,7 @@ func autoConvert_api_ReplicationControllerSpec_To_v1_ReplicationControllerSpec(i func autoConvert_v1_ReplicationControllerStatus_To_api_ReplicationControllerStatus(in *ReplicationControllerStatus, out *api.ReplicationControllerStatus, s conversion.Scope) error { out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ReadyReplicas = in.ReadyReplicas out.ObservedGeneration = in.ObservedGeneration return nil } @@ -5573,6 +5691,7 @@ func Convert_v1_ReplicationControllerStatus_To_api_ReplicationControllerStatus(i func autoConvert_api_ReplicationControllerStatus_To_v1_ReplicationControllerStatus(in *api.ReplicationControllerStatus, out *ReplicationControllerStatus, s conversion.Scope) error { out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ReadyReplicas = in.ReadyReplicas out.ObservedGeneration = in.ObservedGeneration return nil } @@ -5971,6 +6090,7 @@ func Convert_api_SecretList_To_v1_SecretList(in *api.SecretList, out *SecretList } func autoConvert_v1_SecretVolumeSource_To_api_SecretVolumeSource(in *SecretVolumeSource, out *api.SecretVolumeSource, s conversion.Scope) error { + SetDefaults_SecretVolumeSource(in) out.SecretName = in.SecretName if in.Items != nil { in, out := &in.Items, &out.Items @@ -5983,6 +6103,7 @@ func autoConvert_v1_SecretVolumeSource_To_api_SecretVolumeSource(in *SecretVolum } else { out.Items = nil } + out.DefaultMode = in.DefaultMode return nil } @@ -6003,6 +6124,7 @@ func autoConvert_api_SecretVolumeSource_To_v1_SecretVolumeSource(in *api.SecretV } else { out.Items = nil } + out.DefaultMode = in.DefaultMode return nil } @@ -6384,6 +6506,7 @@ func autoConvert_v1_ServiceSpec_To_api_ServiceSpec(in *ServiceSpec, out *api.Ser out.SessionAffinity = api.ServiceAffinity(in.SessionAffinity) out.LoadBalancerIP = in.LoadBalancerIP out.LoadBalancerSourceRanges = in.LoadBalancerSourceRanges + out.ExternalName = in.ExternalName return nil } @@ -6402,6 +6525,7 @@ func autoConvert_api_ServiceSpec_To_v1_ServiceSpec(in *api.ServiceSpec, out *Ser } out.Selector = in.Selector out.ClusterIP = in.ClusterIP + out.ExternalName = in.ExternalName out.ExternalIPs = in.ExternalIPs out.LoadBalancerIP = in.LoadBalancerIP out.SessionAffinity = ServiceAffinity(in.SessionAffinity) @@ -6729,6 +6853,24 @@ func autoConvert_v1_VolumeSource_To_api_VolumeSource(in *VolumeSource, out *api. } else { out.VsphereVolume = nil } + if in.Quobyte != nil { + in, out := &in.Quobyte, &out.Quobyte + *out = new(api.QuobyteVolumeSource) + if err := Convert_v1_QuobyteVolumeSource_To_api_QuobyteVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Quobyte = nil + } + if in.AzureDisk != nil { + in, out := &in.AzureDisk, &out.AzureDisk + *out = new(api.AzureDiskVolumeSource) + if err := Convert_v1_AzureDiskVolumeSource_To_api_AzureDiskVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.AzureDisk = nil + } return nil } @@ -6836,6 +6978,15 @@ func autoConvert_api_VolumeSource_To_v1_VolumeSource(in *api.VolumeSource, out * } else { out.RBD = nil } + if in.Quobyte != nil { + in, out := &in.Quobyte, &out.Quobyte + *out = new(QuobyteVolumeSource) + if err := Convert_api_QuobyteVolumeSource_To_v1_QuobyteVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.Quobyte = nil + } if in.FlexVolume != nil { in, out := &in.FlexVolume, &out.FlexVolume *out = new(FlexVolumeSource) @@ -6917,6 +7068,15 @@ func autoConvert_api_VolumeSource_To_v1_VolumeSource(in *api.VolumeSource, out * } else { out.VsphereVolume = nil } + if in.AzureDisk != nil { + in, out := &in.AzureDisk, &out.AzureDisk + *out = new(AzureDiskVolumeSource) + if err := Convert_api_AzureDiskVolumeSource_To_v1_AzureDiskVolumeSource(*in, *out, s); err != nil { + return err + } + } else { + out.AzureDisk = nil + } return nil } diff --git a/1.4/pkg/api/v1/zz_generated.deepcopy.go b/1.4/pkg/api/v1/zz_generated.deepcopy.go index 04fb0fbb..b5179518 100644 --- a/1.4/pkg/api/v1/zz_generated.deepcopy.go +++ b/1.4/pkg/api/v1/zz_generated.deepcopy.go @@ -40,6 +40,7 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Affinity, InType: reflect.TypeOf(&Affinity{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_AttachedVolume, InType: reflect.TypeOf(&AttachedVolume{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_AvoidPods, InType: reflect.TypeOf(&AvoidPods{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_AzureDiskVolumeSource, InType: reflect.TypeOf(&AzureDiskVolumeSource{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_AzureFileVolumeSource, InType: reflect.TypeOf(&AzureFileVolumeSource{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Binding, InType: reflect.TypeOf(&Binding{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Capabilities, InType: reflect.TypeOf(&Capabilities{})}, @@ -153,6 +154,7 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PreferAvoidPodsEntry, InType: reflect.TypeOf(&PreferAvoidPodsEntry{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_PreferredSchedulingTerm, InType: reflect.TypeOf(&PreferredSchedulingTerm{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_Probe, InType: reflect.TypeOf(&Probe{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_QuobyteVolumeSource, InType: reflect.TypeOf(&QuobyteVolumeSource{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_RBDVolumeSource, InType: reflect.TypeOf(&RBDVolumeSource{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_RangeAllocation, InType: reflect.TypeOf(&RangeAllocation{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1_ReplicationController, InType: reflect.TypeOf(&ReplicationController{})}, @@ -267,6 +269,37 @@ func DeepCopy_v1_AvoidPods(in interface{}, out interface{}, c *conversion.Cloner } } +func DeepCopy_v1_AzureDiskVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AzureDiskVolumeSource) + out := out.(*AzureDiskVolumeSource) + out.DiskName = in.DiskName + out.DataDiskURI = in.DataDiskURI + if in.CachingMode != nil { + in, out := &in.CachingMode, &out.CachingMode + *out = new(AzureDataDiskCachingMode) + **out = **in + } else { + out.CachingMode = nil + } + if in.FSType != nil { + in, out := &in.FSType, &out.FSType + *out = new(string) + **out = **in + } else { + out.FSType = nil + } + if in.ReadOnly != nil { + in, out := &in.ReadOnly, &out.ReadOnly + *out = new(bool) + **out = **in + } else { + out.ReadOnly = nil + } + return nil + } +} + func DeepCopy_v1_AzureFileVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*AzureFileVolumeSource) @@ -469,11 +502,20 @@ func DeepCopy_v1_ConfigMapVolumeSource(in interface{}, out interface{}, c *conve in, out := &in.Items, &out.Items *out = make([]KeyToPath, len(*in)) for i := range *in { - (*out)[i] = (*in)[i] + if err := DeepCopy_v1_KeyToPath(&(*in)[i], &(*out)[i], c); err != nil { + return err + } } } else { out.Items = nil } + if in.DefaultMode != nil { + in, out := &in.DefaultMode, &out.DefaultMode + *out = new(int32) + **out = **in + } else { + out.DefaultMode = nil + } return nil } } @@ -754,6 +796,13 @@ func DeepCopy_v1_DownwardAPIVolumeFile(in interface{}, out interface{}, c *conve } else { out.ResourceFieldRef = nil } + if in.Mode != nil { + in, out := &in.Mode, &out.Mode + *out = new(int32) + **out = **in + } else { + out.Mode = nil + } return nil } } @@ -773,6 +822,13 @@ func DeepCopy_v1_DownwardAPIVolumeSource(in interface{}, out interface{}, c *con } else { out.Items = nil } + if in.DefaultMode != nil { + in, out := &in.DefaultMode, &out.DefaultMode + *out = new(int32) + **out = **in + } else { + out.DefaultMode = nil + } return nil } } @@ -1225,6 +1281,13 @@ func DeepCopy_v1_KeyToPath(in interface{}, out interface{}, c *conversion.Cloner out := out.(*KeyToPath) out.Key = in.Key out.Path = in.Path + if in.Mode != nil { + in, out := &in.Mode, &out.Mode + *out = new(int32) + **out = **in + } else { + out.Mode = nil + } return nil } } @@ -1858,6 +1921,7 @@ func DeepCopy_v1_ObjectMeta(in interface{}, out interface{}, c *conversion.Clone } else { out.Finalizers = nil } + out.ClusterName = in.ClusterName return nil } } @@ -2149,6 +2213,22 @@ func DeepCopy_v1_PersistentVolumeSource(in interface{}, out interface{}, c *conv } else { out.VsphereVolume = nil } + if in.Quobyte != nil { + in, out := &in.Quobyte, &out.Quobyte + *out = new(QuobyteVolumeSource) + **out = **in + } else { + out.Quobyte = nil + } + if in.AzureDisk != nil { + in, out := &in.AzureDisk, &out.AzureDisk + *out = new(AzureDiskVolumeSource) + if err := DeepCopy_v1_AzureDiskVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.AzureDisk = nil + } return nil } } @@ -2752,6 +2832,19 @@ func DeepCopy_v1_Probe(in interface{}, out interface{}, c *conversion.Cloner) er } } +func DeepCopy_v1_QuobyteVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*QuobyteVolumeSource) + out := out.(*QuobyteVolumeSource) + out.Registry = in.Registry + out.Volume = in.Volume + out.ReadOnly = in.ReadOnly + out.User = in.User + out.Group = in.Group + return nil + } +} + func DeepCopy_v1_RBDVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*RBDVolumeSource) @@ -2876,6 +2969,7 @@ func DeepCopy_v1_ReplicationControllerStatus(in interface{}, out interface{}, c out := out.(*ReplicationControllerStatus) out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ReadyReplicas = in.ReadyReplicas out.ObservedGeneration = in.ObservedGeneration return nil } @@ -3096,11 +3190,20 @@ func DeepCopy_v1_SecretVolumeSource(in interface{}, out interface{}, c *conversi in, out := &in.Items, &out.Items *out = make([]KeyToPath, len(*in)) for i := range *in { - (*out)[i] = (*in)[i] + if err := DeepCopy_v1_KeyToPath(&(*in)[i], &(*out)[i], c); err != nil { + return err + } } } else { out.Items = nil } + if in.DefaultMode != nil { + in, out := &in.DefaultMode, &out.DefaultMode + *out = new(int32) + **out = **in + } else { + out.DefaultMode = nil + } return nil } } @@ -3327,6 +3430,7 @@ func DeepCopy_v1_ServiceSpec(in interface{}, out interface{}, c *conversion.Clon } else { out.LoadBalancerSourceRanges = nil } + out.ExternalName = in.ExternalName return nil } } @@ -3556,6 +3660,22 @@ func DeepCopy_v1_VolumeSource(in interface{}, out interface{}, c *conversion.Clo } else { out.VsphereVolume = nil } + if in.Quobyte != nil { + in, out := &in.Quobyte, &out.Quobyte + *out = new(QuobyteVolumeSource) + **out = **in + } else { + out.Quobyte = nil + } + if in.AzureDisk != nil { + in, out := &in.AzureDisk, &out.AzureDisk + *out = new(AzureDiskVolumeSource) + if err := DeepCopy_v1_AzureDiskVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.AzureDisk = nil + } return nil } } diff --git a/1.4/pkg/api/validation/events.go b/1.4/pkg/api/validation/events.go index d1b96d26..adfbc12a 100644 --- a/1.4/pkg/api/validation/events.go +++ b/1.4/pkg/api/validation/events.go @@ -17,7 +17,13 @@ limitations under the License. package validation import ( + "fmt" + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/api/meta" + "k8s.io/client-go/1.4/pkg/api/unversioned" + apiutil "k8s.io/client-go/1.4/pkg/api/util" + "k8s.io/client-go/1.4/pkg/apimachinery/registered" "k8s.io/client-go/1.4/pkg/util/validation" "k8s.io/client-go/1.4/pkg/util/validation/field" ) @@ -25,21 +31,50 @@ import ( // ValidateEvent makes sure that the event makes sense. func ValidateEvent(event *api.Event) field.ErrorList { allErrs := field.ErrorList{} - // There is no namespace required for node or persistent volume. - // However, older client code accidentally sets event.Namespace - // to api.NamespaceDefault, so we accept that too, but "" is preferred. - if (event.InvolvedObject.Kind == "Node" || event.InvolvedObject.Kind == "PersistentVolume") && - event.Namespace != api.NamespaceDefault && - event.Namespace != "" { - allErrs = append(allErrs, field.Invalid(field.NewPath("involvedObject", "namespace"), event.InvolvedObject.Namespace, "not allowed for node")) + + // Make sure event.Namespace and the involvedObject.Namespace agree + if len(event.InvolvedObject.Namespace) == 0 { + // event.Namespace must also be empty (or "default", for compatibility with old clients) + if event.Namespace != api.NamespaceNone && event.Namespace != api.NamespaceDefault { + allErrs = append(allErrs, field.Invalid(field.NewPath("involvedObject", "namespace"), event.InvolvedObject.Namespace, "does not match event.namespace")) + } + } else { + // event namespace must match + if event.Namespace != event.InvolvedObject.Namespace { + allErrs = append(allErrs, field.Invalid(field.NewPath("involvedObject", "namespace"), event.InvolvedObject.Namespace, "does not match event.namespace")) + } } - if event.InvolvedObject.Kind != "Node" && - event.InvolvedObject.Kind != "PersistentVolume" && - event.Namespace != event.InvolvedObject.Namespace { - allErrs = append(allErrs, field.Invalid(field.NewPath("involvedObject", "namespace"), event.InvolvedObject.Namespace, "does not match involvedObject")) + + // For kinds we recognize, make sure involvedObject.Namespace is set for namespaced kinds + if namespaced, err := isNamespacedKind(event.InvolvedObject.Kind, event.InvolvedObject.APIVersion); err == nil { + if namespaced && len(event.InvolvedObject.Namespace) == 0 { + allErrs = append(allErrs, field.Required(field.NewPath("involvedObject", "namespace"), fmt.Sprintf("required for kind %s", event.InvolvedObject.Kind))) + } + if !namespaced && len(event.InvolvedObject.Namespace) > 0 { + allErrs = append(allErrs, field.Invalid(field.NewPath("involvedObject", "namespace"), event.InvolvedObject.Namespace, fmt.Sprintf("not allowed for kind %s", event.InvolvedObject.Kind))) + } } + for _, msg := range validation.IsDNS1123Subdomain(event.Namespace) { allErrs = append(allErrs, field.Invalid(field.NewPath("namespace"), event.Namespace, msg)) } return allErrs } + +// Check whether the kind in groupVersion is scoped at the root of the api hierarchy +func isNamespacedKind(kind, groupVersion string) (bool, error) { + group := apiutil.GetGroup(groupVersion) + g, err := registered.Group(group) + if err != nil { + return false, err + } + restMapping, err := g.RESTMapper.RESTMapping(unversioned.GroupKind{Group: group, Kind: kind}, apiutil.GetVersion(groupVersion)) + if err != nil { + return false, err + } + scopeName := restMapping.Scope.Name() + if scopeName == meta.RESTScopeNameNamespace { + return true, nil + } + return false, nil +} diff --git a/1.4/pkg/api/validation/validation.go b/1.4/pkg/api/validation/validation.go index 96c44a64..22bb72c2 100644 --- a/1.4/pkg/api/validation/validation.go +++ b/1.4/pkg/api/validation/validation.go @@ -23,6 +23,7 @@ import ( "os" "path" "reflect" + "regexp" "strings" "github.com/golang/glog" @@ -36,6 +37,8 @@ import ( "k8s.io/client-go/1.4/pkg/api/v1" "k8s.io/client-go/1.4/pkg/capabilities" "k8s.io/client-go/1.4/pkg/labels" + "k8s.io/client-go/1.4/pkg/security/apparmor" + utilconfig "k8s.io/client-go/1.4/pkg/util/config" "k8s.io/client-go/1.4/pkg/util/intstr" "k8s.io/client-go/1.4/pkg/util/sets" "k8s.io/client-go/1.4/pkg/util/validation" @@ -52,6 +55,7 @@ const fieldImmutableErrorMsg string = `field is immutable` const isNotIntegerErrorMsg string = `must be an integer` var pdPartitionErrorMsg string = validation.InclusiveRangeError(1, 255) +var volumeModeErrorMsg string = "must be a number between 0 and 0777 (octal), both inclusive" const totalAnnotationSizeLimitB int = 256 * (1 << 10) // 256 kB @@ -100,7 +104,16 @@ func ValidateDNS1123Label(value string, fldPath *field.Path) field.ErrorList { return allErrs } -func ValidatePodSpecificAnnotations(annotations map[string]string, fldPath *field.Path) field.ErrorList { +// ValidateDNS1123Subdomain validates that a name is a proper DNS subdomain. +func ValidateDNS1123Subdomain(value string, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for _, msg := range validation.IsDNS1123Subdomain(value) { + allErrs = append(allErrs, field.Invalid(fldPath, value, msg)) + } + return allErrs +} + +func ValidatePodSpecificAnnotations(annotations map[string]string, spec *api.PodSpec, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} if annotations[api.AffinityAnnotationKey] != "" { allErrs = append(allErrs, ValidateAffinityInPodAnnotations(annotations, fldPath)...) @@ -119,7 +132,50 @@ func ValidatePodSpecificAnnotations(annotations map[string]string, fldPath *fiel } allErrs = append(allErrs, ValidateSeccompPodAnnotations(annotations, fldPath)...) + allErrs = append(allErrs, ValidateAppArmorPodAnnotations(annotations, spec, fldPath)...) + sysctls, err := api.SysctlsFromPodAnnotation(annotations[api.SysctlsPodAnnotationKey]) + if err != nil { + allErrs = append(allErrs, field.Invalid(fldPath.Key(api.SysctlsPodAnnotationKey), annotations[api.SysctlsPodAnnotationKey], err.Error())) + } else { + allErrs = append(allErrs, validateSysctls(sysctls, fldPath.Key(api.SysctlsPodAnnotationKey))...) + } + unsafeSysctls, err := api.SysctlsFromPodAnnotation(annotations[api.UnsafeSysctlsPodAnnotationKey]) + if err != nil { + allErrs = append(allErrs, field.Invalid(fldPath.Key(api.UnsafeSysctlsPodAnnotationKey), annotations[api.UnsafeSysctlsPodAnnotationKey], err.Error())) + } else { + allErrs = append(allErrs, validateSysctls(unsafeSysctls, fldPath.Key(api.UnsafeSysctlsPodAnnotationKey))...) + } + inBoth := sysctlIntersection(sysctls, unsafeSysctls) + if len(inBoth) > 0 { + allErrs = append(allErrs, field.Invalid(fldPath.Key(api.UnsafeSysctlsPodAnnotationKey), strings.Join(inBoth, ", "), "can not be safe and unsafe")) + } + + return allErrs +} + +func ValidatePodSpecificAnnotationUpdates(newPod, oldPod *api.Pod, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + newAnnotations := newPod.Annotations + oldAnnotations := oldPod.Annotations + for k, oldVal := range oldAnnotations { + if newAnnotations[k] == oldVal { + continue // No change. + } + if strings.HasPrefix(k, apparmor.ContainerAnnotationKeyPrefix) { + allErrs = append(allErrs, field.Forbidden(fldPath.Key(k), "may not update AppArmor annotations")) + } + } + // Check for removals. + for k := range newAnnotations { + if _, ok := oldAnnotations[k]; ok { + continue // No change. + } + if strings.HasPrefix(k, apparmor.ContainerAnnotationKeyPrefix) { + allErrs = append(allErrs, field.Forbidden(fldPath.Key(k), "may not remove AppArmor annotations")) + } + } + allErrs = append(allErrs, ValidatePodSpecificAnnotations(newAnnotations, &newPod.Spec, fldPath)...) return allErrs } @@ -242,6 +298,9 @@ var ValidateServiceAccountName = NameIsDNSSubdomain // trailing dashes are allowed. var ValidateEndpointsName = NameIsDNSSubdomain +// ValidateClusterName can be used to check whether the given cluster name is valid. +var ValidateClusterName = NameIsDNS1035Label + // NameIsDNSSubdomain is a ValidateNameFunc for names that must be a DNS subdomain. func NameIsDNSSubdomain(name string, prefix bool) []string { if prefix { @@ -327,6 +386,11 @@ func ValidateObjectMeta(meta *api.ObjectMeta, requiresNamespace bool, nameFn Val allErrs = append(allErrs, field.Forbidden(fldPath.Child("namespace"), "not allowed on this type")) } } + if len(meta.ClusterName) != 0 { + for _, msg := range ValidateClusterName(meta.ClusterName, false) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("clusterName"), meta.ClusterName, msg)) + } + } allErrs = append(allErrs, ValidateNonnegativeField(meta.Generation, fldPath.Child("generation"))...) allErrs = append(allErrs, unversionedvalidation.ValidateLabels(meta.Labels, fldPath.Child("labels"))...) allErrs = append(allErrs, ValidateAnnotations(meta.Annotations, fldPath.Child("annotations"))...) @@ -388,6 +452,7 @@ func ValidateObjectMetaUpdate(newMeta, oldMeta *api.ObjectMeta, fldPath *field.P allErrs = append(allErrs, ValidateImmutableField(newMeta.Namespace, oldMeta.Namespace, fldPath.Child("namespace"))...) allErrs = append(allErrs, ValidateImmutableField(newMeta.UID, oldMeta.UID, fldPath.Child("uid"))...) allErrs = append(allErrs, ValidateImmutableField(newMeta.CreationTimestamp, oldMeta.CreationTimestamp, fldPath.Child("creationTimestamp"))...) + allErrs = append(allErrs, ValidateImmutableField(newMeta.ClusterName, oldMeta.ClusterName, fldPath.Child("clusterName"))...) allErrs = append(allErrs, unversionedvalidation.ValidateLabels(newMeta.Labels, fldPath.Child("labels"))...) allErrs = append(allErrs, ValidateAnnotations(newMeta.Annotations, fldPath.Child("annotations"))...) @@ -533,6 +598,14 @@ func validateVolumeSource(source *api.VolumeSource, fldPath *field.Path) field.E allErrs = append(allErrs, validateCephFSVolumeSource(source.CephFS, fldPath.Child("cephfs"))...) } } + if source.Quobyte != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(fldPath.Child("quobyte"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateQuobyteVolumeSource(source.Quobyte, fldPath.Child("quobyte"))...) + } + } if source.DownwardAPI != nil { if numVolumes > 0 { allErrs = append(allErrs, field.Forbidden(fldPath.Child("downwarAPI"), "may not specify more than 1 volume type")) @@ -577,6 +650,11 @@ func validateVolumeSource(source *api.VolumeSource, fldPath *field.Path) field.E allErrs = append(allErrs, validateVsphereVolumeSource(source.VsphereVolume, fldPath.Child("vsphereVolume"))...) } } + if source.AzureDisk != nil { + numVolumes++ + allErrs = append(allErrs, validateAzureDisk(source.AzureDisk, fldPath.Child("azureDisk"))...) + } + if numVolumes == 0 { allErrs = append(allErrs, field.Required(fldPath, "must specify a volume type")) } @@ -660,6 +738,12 @@ func validateSecretVolumeSource(secretSource *api.SecretVolumeSource, fldPath *f if len(secretSource.SecretName) == 0 { allErrs = append(allErrs, field.Required(fldPath.Child("secretName"), "")) } + + secretMode := secretSource.DefaultMode + if secretMode != nil && (*secretMode > 0777 || *secretMode < 0) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("defaultMode"), *secretMode, volumeModeErrorMsg)) + } + itemsPath := fldPath.Child("items") for i, kp := range secretSource.Items { itemPath := itemsPath.Index(i) @@ -673,6 +757,12 @@ func validateConfigMapVolumeSource(configMapSource *api.ConfigMapVolumeSource, f if len(configMapSource.Name) == 0 { allErrs = append(allErrs, field.Required(fldPath.Child("name"), "")) } + + configMapMode := configMapSource.DefaultMode + if configMapMode != nil && (*configMapMode > 0777 || *configMapMode < 0) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("defaultMode"), *configMapMode, volumeModeErrorMsg)) + } + itemsPath := fldPath.Child("items") for i, kp := range configMapSource.Items { itemPath := itemsPath.Index(i) @@ -690,6 +780,10 @@ func validateKeyToPath(kp *api.KeyToPath, fldPath *field.Path) field.ErrorList { allErrs = append(allErrs, field.Required(fldPath.Child("path"), "")) } allErrs = append(allErrs, validateLocalNonReservedPath(kp.Path, fldPath.Child("path"))...) + if kp.Mode != nil && (*kp.Mode > 0777 || *kp.Mode < 0) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("mode"), *kp.Mode, volumeModeErrorMsg)) + } + return allErrs } @@ -715,6 +809,24 @@ func validateNFSVolumeSource(nfs *api.NFSVolumeSource, fldPath *field.Path) fiel return allErrs } +func validateQuobyteVolumeSource(quobyte *api.QuobyteVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(quobyte.Registry) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("registry"), "must be a host:port pair or multiple pairs seperated by commas")) + } else { + for _, hostPortPair := range strings.Split(quobyte.Registry, ",") { + if _, _, err := net.SplitHostPort(hostPortPair); err != nil { + allErrs = append(allErrs, field.Invalid(fldPath.Child("registry"), quobyte.Registry, "must be a host:port pair or multiple pairs seperated by commas")) + } + } + } + + if len(quobyte.Volume) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("volume"), "")) + } + return allErrs +} + func validateGlusterfs(glusterfs *api.GlusterfsVolumeSource, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} if len(glusterfs.EndpointsName) == 0 { @@ -745,6 +857,12 @@ var validDownwardAPIFieldPathExpressions = sets.NewString( func validateDownwardAPIVolumeSource(downwardAPIVolume *api.DownwardAPIVolumeSource, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} + + downwardAPIMode := downwardAPIVolume.DefaultMode + if downwardAPIMode != nil && (*downwardAPIMode > 0777 || *downwardAPIMode < 0) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("defaultMode"), *downwardAPIMode, volumeModeErrorMsg)) + } + for _, file := range downwardAPIVolume.Items { if len(file.Path) == 0 { allErrs = append(allErrs, field.Required(fldPath.Child("path"), "")) @@ -760,6 +878,9 @@ func validateDownwardAPIVolumeSource(downwardAPIVolume *api.DownwardAPIVolumeSou } else { allErrs = append(allErrs, field.Required(fldPath, "one of fieldRef and resourceFieldRef is required")) } + if file.Mode != nil && (*file.Mode > 0777 || *file.Mode < 0) { + allErrs = append(allErrs, field.Invalid(fldPath.Child("mode"), *file.Mode, volumeModeErrorMsg)) + } } return allErrs } @@ -844,6 +965,22 @@ func validateAzureFile(azure *api.AzureFileVolumeSource, fldPath *field.Path) fi return allErrs } +var supportedCachingModes = sets.NewString(string(api.AzureDataDiskCachingNone), string(api.AzureDataDiskCachingReadOnly), string(api.AzureDataDiskCachingReadWrite)) + +func validateAzureDisk(azure *api.AzureDiskVolumeSource, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if azure.DiskName == "" { + allErrs = append(allErrs, field.Required(fldPath.Child("diskName"), "")) + } + if azure.DataDiskURI == "" { + allErrs = append(allErrs, field.Required(fldPath.Child("diskURI"), "")) + } + if azure.CachingMode != nil && !supportedCachingModes.Has(string(*azure.CachingMode)) { + allErrs = append(allErrs, field.NotSupported(fldPath.Child("cachingMode"), *azure.CachingMode, supportedCachingModes.List())) + } + return allErrs +} + func validateVsphereVolumeSource(cd *api.VsphereVirtualDiskVolumeSource, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} if len(cd.VolumePath) == 0 { @@ -858,6 +995,8 @@ var ValidatePersistentVolumeName = NameIsDNSSubdomain var supportedAccessModes = sets.NewString(string(api.ReadWriteOnce), string(api.ReadOnlyMany), string(api.ReadWriteMany)) +var supportedReclaimPolicy = sets.NewString(string(api.PersistentVolumeReclaimDelete), string(api.PersistentVolumeReclaimRecycle), string(api.PersistentVolumeReclaimRetain)) + func ValidatePersistentVolume(pv *api.PersistentVolume) field.ErrorList { allErrs := ValidateObjectMeta(&pv.ObjectMeta, false, ValidatePersistentVolumeName, field.NewPath("metadata")) @@ -882,6 +1021,11 @@ func ValidatePersistentVolume(pv *api.PersistentVolume) field.ErrorList { for r, qty := range pv.Spec.Capacity { allErrs = append(allErrs, validateBasicResource(qty, capPath.Key(string(r)))...) } + if len(string(pv.Spec.PersistentVolumeReclaimPolicy)) > 0 { + if !supportedReclaimPolicy.Has(string(pv.Spec.PersistentVolumeReclaimPolicy)) { + allErrs = append(allErrs, field.NotSupported(specPath.Child("persistentVolumeReclaimPolicy"), pv.Spec.PersistentVolumeReclaimPolicy, supportedReclaimPolicy.List())) + } + } numVolumes := 0 if pv.Spec.HostPath != nil { @@ -940,6 +1084,14 @@ func ValidatePersistentVolume(pv *api.PersistentVolume) field.ErrorList { allErrs = append(allErrs, validateRBDVolumeSource(pv.Spec.RBD, specPath.Child("rbd"))...) } } + if pv.Spec.Quobyte != nil { + if numVolumes > 0 { + allErrs = append(allErrs, field.Forbidden(specPath.Child("quobyte"), "may not specify more than 1 volume type")) + } else { + numVolumes++ + allErrs = append(allErrs, validateQuobyteVolumeSource(pv.Spec.Quobyte, specPath.Child("quobyte"))...) + } + } if pv.Spec.CephFS != nil { if numVolumes > 0 { allErrs = append(allErrs, field.Forbidden(specPath.Child("cephFS"), "may not specify more than 1 volume type")) @@ -988,9 +1140,20 @@ func ValidatePersistentVolume(pv *api.PersistentVolume) field.ErrorList { allErrs = append(allErrs, validateVsphereVolumeSource(pv.Spec.VsphereVolume, specPath.Child("vsphereVolume"))...) } } + if pv.Spec.AzureDisk != nil { + numVolumes++ + allErrs = append(allErrs, validateAzureDisk(pv.Spec.AzureDisk, specPath.Child("azureDisk"))...) + } + if numVolumes == 0 { allErrs = append(allErrs, field.Required(specPath, "must specify a volume type")) } + + // do not allow hostPath mounts of '/' to have a 'recycle' reclaim policy + if pv.Spec.HostPath != nil && path.Clean(pv.Spec.HostPath.Path) == "/" && pv.Spec.PersistentVolumeReclaimPolicy == api.PersistentVolumeReclaimRecycle { + allErrs = append(allErrs, field.Forbidden(specPath.Child("persistentVolumeReclaimPolicy"), "may not be 'recycle' for a hostPath mount of '/'")) + } + return allErrs } @@ -1014,26 +1177,37 @@ func ValidatePersistentVolumeStatusUpdate(newPv, oldPv *api.PersistentVolume) fi return allErrs } +// ValidatePersistentVolumeClaim validates a PersistentVolumeClaim func ValidatePersistentVolumeClaim(pvc *api.PersistentVolumeClaim) field.ErrorList { allErrs := ValidateObjectMeta(&pvc.ObjectMeta, true, ValidatePersistentVolumeName, field.NewPath("metadata")) - specPath := field.NewPath("spec") - if len(pvc.Spec.AccessModes) == 0 { - allErrs = append(allErrs, field.Required(specPath.Child("accessModes"), "at least 1 accessMode is required")) + allErrs = append(allErrs, ValidatePersistentVolumeClaimSpec(&pvc.Spec, field.NewPath("spec"))...) + return allErrs +} + +// ValidatePersistentVolumeClaimSpec validates a PersistentVolumeClaimSpec +func ValidatePersistentVolumeClaimSpec(spec *api.PersistentVolumeClaimSpec, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + if len(spec.AccessModes) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Child("accessModes"), "at least 1 access mode is required")) } - if pvc.Spec.Selector != nil { - allErrs = append(allErrs, unversionedvalidation.ValidateLabelSelector(pvc.Spec.Selector, specPath.Child("selector"))...) + if spec.Selector != nil { + allErrs = append(allErrs, unversionedvalidation.ValidateLabelSelector(spec.Selector, fldPath.Child("selector"))...) } - for _, mode := range pvc.Spec.AccessModes { + for _, mode := range spec.AccessModes { if mode != api.ReadWriteOnce && mode != api.ReadOnlyMany && mode != api.ReadWriteMany { - allErrs = append(allErrs, field.NotSupported(specPath.Child("accessModes"), mode, supportedAccessModes.List())) + allErrs = append(allErrs, field.NotSupported(fldPath.Child("accessModes"), mode, supportedAccessModes.List())) } } - if _, ok := pvc.Spec.Resources.Requests[api.ResourceStorage]; !ok { - allErrs = append(allErrs, field.Required(specPath.Child("resources").Key(string(api.ResourceStorage)), "")) + storageValue, ok := spec.Resources.Requests[api.ResourceStorage] + if !ok { + allErrs = append(allErrs, field.Required(fldPath.Child("resources").Key(string(api.ResourceStorage)), "")) + } else { + allErrs = append(allErrs, ValidateResourceQuantityValue(string(api.ResourceStorage), storageValue, fldPath.Child("resources").Key(string(api.ResourceStorage)))...) } return allErrs } +// ValidatePersistentVolumeClaimUpdate validates an update to a PeristentVolumeClaim func ValidatePersistentVolumeClaimUpdate(newPvc, oldPvc *api.PersistentVolumeClaim) field.ErrorList { allErrs := ValidateObjectMetaUpdate(&newPvc.ObjectMeta, &oldPvc.ObjectMeta, field.NewPath("metadata")) allErrs = append(allErrs, ValidatePersistentVolumeClaim(newPvc)...) @@ -1054,6 +1228,7 @@ func ValidatePersistentVolumeClaimUpdate(newPvc, oldPvc *api.PersistentVolumeCla return allErrs } +// ValidatePersistentVolumeClaimStatusUpdate validates an update to status of a PeristentVolumeClaim func ValidatePersistentVolumeClaimStatusUpdate(newPvc, oldPvc *api.PersistentVolumeClaim) field.ErrorList { allErrs := ValidateObjectMetaUpdate(&newPvc.ObjectMeta, &oldPvc.ObjectMeta, field.NewPath("metadata")) if len(newPvc.ResourceVersion) == 0 { @@ -1127,7 +1302,7 @@ func validateEnv(vars []api.EnvVar, fldPath *field.Path) field.ErrorList { return allErrs } -var validFieldPathExpressionsEnv = sets.NewString("metadata.name", "metadata.namespace", "status.podIP") +var validFieldPathExpressionsEnv = sets.NewString("metadata.name", "metadata.namespace", "spec.nodeName", "spec.serviceAccountName", "status.podIP") var validContainerResourceFieldPathExpressions = sets.NewString("limits.cpu", "limits.memory", "requests.cpu", "requests.memory") func validateEnvVarValueFrom(ev api.EnvVar, fldPath *field.Path) field.ErrorList { @@ -1636,7 +1811,7 @@ func validateTolerations(tolerations []api.Toleration, fldPath *field.Path) fiel func ValidatePod(pod *api.Pod) field.ErrorList { fldPath := field.NewPath("metadata") allErrs := ValidateObjectMeta(&pod.ObjectMeta, true, ValidatePodName, fldPath) - allErrs = append(allErrs, ValidatePodSpecificAnnotations(pod.ObjectMeta.Annotations, fldPath.Child("annotations"))...) + allErrs = append(allErrs, ValidatePodSpecificAnnotations(pod.ObjectMeta.Annotations, &pod.Spec, fldPath.Child("annotations"))...) allErrs = append(allErrs, ValidatePodSpec(&pod.Spec, field.NewPath("spec"))...) return allErrs } @@ -1952,6 +2127,77 @@ func ValidateSeccompPodAnnotations(annotations map[string]string, fldPath *field return allErrs } +func ValidateAppArmorPodAnnotations(annotations map[string]string, spec *api.PodSpec, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for k, p := range annotations { + if !strings.HasPrefix(k, apparmor.ContainerAnnotationKeyPrefix) { + continue + } + if !utilconfig.DefaultFeatureGate.AppArmor() { + allErrs = append(allErrs, field.Forbidden(fldPath.Key(k), "AppArmor is disabled by feature-gate")) + continue + } + containerName := strings.TrimPrefix(k, apparmor.ContainerAnnotationKeyPrefix) + if !podSpecHasContainer(spec, containerName) { + allErrs = append(allErrs, field.Invalid(fldPath.Key(k), containerName, "container not found")) + } + + if err := apparmor.ValidateProfileFormat(p); err != nil { + allErrs = append(allErrs, field.Invalid(fldPath.Key(k), p, err.Error())) + } + } + + return allErrs +} + +func podSpecHasContainer(spec *api.PodSpec, containerName string) bool { + for _, c := range spec.InitContainers { + if c.Name == containerName { + return true + } + } + for _, c := range spec.Containers { + if c.Name == containerName { + return true + } + } + return false +} + +const ( + // a sysctl segment regex, concatenated with dots to form a sysctl name + SysctlSegmentFmt string = "[a-z0-9]([-_a-z0-9]*[a-z0-9])?" + + // a sysctl name regex + SysctlFmt string = "(" + SysctlSegmentFmt + "\\.)*" + SysctlSegmentFmt + + // the maximal length of a sysctl name + SysctlMaxLength int = 253 +) + +var sysctlRegexp = regexp.MustCompile("^" + SysctlFmt + "$") + +// IsValidSysctlName checks that the given string is a valid sysctl name, +// i.e. matches SysctlFmt. +func IsValidSysctlName(name string) bool { + if len(name) > SysctlMaxLength { + return false + } + return sysctlRegexp.MatchString(name) +} + +func validateSysctls(sysctls []api.Sysctl, fldPath *field.Path) field.ErrorList { + allErrs := field.ErrorList{} + for i, s := range sysctls { + if len(s.Name) == 0 { + allErrs = append(allErrs, field.Required(fldPath.Index(i).Child("name"), "")) + } else if !IsValidSysctlName(s.Name) { + allErrs = append(allErrs, field.Invalid(fldPath.Index(i).Child("name"), s.Name, fmt.Sprintf("must have at most %d characters and match regex %s", SysctlMaxLength, SysctlFmt))) + } + } + return allErrs +} + // ValidatePodSecurityContext test that the specified PodSecurityContext has valid data. func ValidatePodSecurityContext(securityContext *api.PodSecurityContext, spec *api.PodSpec, specPath, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} @@ -1978,7 +2224,7 @@ func ValidatePodSecurityContext(securityContext *api.PodSecurityContext, spec *a return allErrs } -func validateContainerUpdates(newContainers, oldContainers []api.Container, fldPath *field.Path) (allErrs field.ErrorList, stop bool) { +func ValidateContainerUpdates(newContainers, oldContainers []api.Container, fldPath *field.Path) (allErrs field.ErrorList, stop bool) { allErrs = field.ErrorList{} if len(newContainers) != len(oldContainers) { //TODO: Pinpoint the specific container that causes the invalid error after we have strategic merge diff @@ -2000,7 +2246,7 @@ func validateContainerUpdates(newContainers, oldContainers []api.Container, fldP func ValidatePodUpdate(newPod, oldPod *api.Pod) field.ErrorList { fldPath := field.NewPath("metadata") allErrs := ValidateObjectMetaUpdate(&newPod.ObjectMeta, &oldPod.ObjectMeta, fldPath) - allErrs = append(allErrs, ValidatePodSpecificAnnotations(newPod.ObjectMeta.Annotations, fldPath.Child("annotations"))...) + allErrs = append(allErrs, ValidatePodSpecificAnnotationUpdates(newPod, oldPod, fldPath.Child("annotations"))...) specPath := field.NewPath("spec") // validate updateable fields: @@ -2008,12 +2254,12 @@ func ValidatePodUpdate(newPod, oldPod *api.Pod) field.ErrorList { // 2. initContainers[*].image // 3. spec.activeDeadlineSeconds - containerErrs, stop := validateContainerUpdates(newPod.Spec.Containers, oldPod.Spec.Containers, specPath.Child("containers")) + containerErrs, stop := ValidateContainerUpdates(newPod.Spec.Containers, oldPod.Spec.Containers, specPath.Child("containers")) allErrs = append(allErrs, containerErrs...) if stop { return allErrs } - containerErrs, stop = validateContainerUpdates(newPod.Spec.InitContainers, oldPod.Spec.InitContainers, specPath.Child("initContainers")) + containerErrs, stop = ValidateContainerUpdates(newPod.Spec.InitContainers, oldPod.Spec.InitContainers, specPath.Child("initContainers")) allErrs = append(allErrs, containerErrs...) if stop { return allErrs @@ -2118,17 +2364,19 @@ func ValidatePodTemplateUpdate(newPod, oldPod *api.PodTemplate) field.ErrorList var supportedSessionAffinityType = sets.NewString(string(api.ServiceAffinityClientIP), string(api.ServiceAffinityNone)) var supportedServiceType = sets.NewString(string(api.ServiceTypeClusterIP), string(api.ServiceTypeNodePort), - string(api.ServiceTypeLoadBalancer)) + string(api.ServiceTypeLoadBalancer), string(api.ServiceTypeExternalName)) // ValidateService tests if required fields in the service are set. func ValidateService(service *api.Service) field.ErrorList { allErrs := ValidateObjectMeta(&service.ObjectMeta, true, ValidateServiceName, field.NewPath("metadata")) specPath := field.NewPath("spec") - if len(service.Spec.Ports) == 0 && service.Spec.ClusterIP != api.ClusterIPNone { + isHeadlessService := service.Spec.ClusterIP == api.ClusterIPNone + if len(service.Spec.Ports) == 0 && !isHeadlessService && service.Spec.Type != api.ServiceTypeExternalName { allErrs = append(allErrs, field.Required(specPath.Child("ports"), "")) } - if service.Spec.Type == api.ServiceTypeLoadBalancer { + switch service.Spec.Type { + case api.ServiceTypeLoadBalancer: for ix := range service.Spec.Ports { port := &service.Spec.Ports[ix] // This is a workaround for broken cloud environments that @@ -2139,9 +2387,17 @@ func ValidateService(service *api.Service) field.ErrorList { allErrs = append(allErrs, field.Invalid(portPath, port.Port, "may not expose port 10250 externally since it is used by kubelet")) } } + case api.ServiceTypeExternalName: + if service.Spec.ClusterIP != "" { + allErrs = append(allErrs, field.Invalid(specPath.Child("clusterIP"), service.Spec.ClusterIP, "must be empty for ExternalName services")) + } + if len(service.Spec.ExternalName) > 0 { + allErrs = append(allErrs, ValidateDNS1123Subdomain(service.Spec.ExternalName, specPath.Child("externalName"))...) + } else { + allErrs = append(allErrs, field.Required(specPath.Child("externalName"), "")) + } } - isHeadlessService := service.Spec.ClusterIP == api.ClusterIPNone allPortNames := sets.String{} portsPath := specPath.Child("ports") for i := range service.Spec.Ports { @@ -2382,7 +2638,7 @@ func ValidatePodTemplateSpec(spec *api.PodTemplateSpec, fldPath *field.Path) fie allErrs := field.ErrorList{} allErrs = append(allErrs, unversionedvalidation.ValidateLabels(spec.Labels, fldPath.Child("labels"))...) allErrs = append(allErrs, ValidateAnnotations(spec.Annotations, fldPath.Child("annotations"))...) - allErrs = append(allErrs, ValidatePodSpecificAnnotations(spec.Annotations, fldPath.Child("annotations"))...) + allErrs = append(allErrs, ValidatePodSpecificAnnotations(spec.Annotations, &spec.Spec, fldPath.Child("annotations"))...) allErrs = append(allErrs, ValidatePodSpec(&spec.Spec, fldPath.Child("spec"))...) return allErrs } @@ -2405,6 +2661,9 @@ func ValidateReadOnlyPersistentDisks(volumes []api.Volume, fldPath *field.Path) // validateTaints tests if given taints have valid data. func validateTaints(taints []api.Taint, fldPath *field.Path) field.ErrorList { allErrors := field.ErrorList{} + + uniqueTaints := map[api.TaintEffect]sets.String{} + for i, currTaint := range taints { idxPath := fldPath.Index(i) // validate the taint key @@ -2415,6 +2674,20 @@ func validateTaints(taints []api.Taint, fldPath *field.Path) field.ErrorList { } // validate the taint effect allErrors = append(allErrors, validateTaintEffect(&currTaint.Effect, false, idxPath.Child("effect"))...) + + // validate if taint is unique by + if len(uniqueTaints[currTaint.Effect]) > 0 && uniqueTaints[currTaint.Effect].Has(currTaint.Key) { + duplicatedError := field.Duplicate(idxPath, currTaint) + duplicatedError.Detail = "taints must be unique by key and effect pair" + allErrors = append(allErrors, duplicatedError) + continue + } + + // add taint to existingTaints for uniqueness check + if len(uniqueTaints[currTaint.Effect]) == 0 { + uniqueTaints[currTaint.Effect] = sets.String{} + } + uniqueTaints[currTaint.Effect].Insert(currTaint.Key) } return allErrors } @@ -3272,3 +3545,17 @@ func isValidHostnamesMap(serializedPodHostNames string) bool { } return true } + +func sysctlIntersection(a []api.Sysctl, b []api.Sysctl) []string { + lookup := make(map[string]struct{}, len(a)) + result := []string{} + for i := range a { + lookup[a[i].Name] = struct{}{} + } + for i := range b { + if _, found := lookup[b[i].Name]; found { + result = append(result, b[i].Name) + } + } + return result +} diff --git a/1.4/pkg/api/zz_generated.deepcopy.go b/1.4/pkg/api/zz_generated.deepcopy.go index 8591bb2e..5e8986fe 100644 --- a/1.4/pkg/api/zz_generated.deepcopy.go +++ b/1.4/pkg/api/zz_generated.deepcopy.go @@ -42,6 +42,7 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Affinity, InType: reflect.TypeOf(&Affinity{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_AttachedVolume, InType: reflect.TypeOf(&AttachedVolume{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_AvoidPods, InType: reflect.TypeOf(&AvoidPods{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_AzureDiskVolumeSource, InType: reflect.TypeOf(&AzureDiskVolumeSource{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_AzureFileVolumeSource, InType: reflect.TypeOf(&AzureFileVolumeSource{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Binding, InType: reflect.TypeOf(&Binding{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Capabilities, InType: reflect.TypeOf(&Capabilities{})}, @@ -157,6 +158,7 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PreferAvoidPodsEntry, InType: reflect.TypeOf(&PreferAvoidPodsEntry{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_PreferredSchedulingTerm, InType: reflect.TypeOf(&PreferredSchedulingTerm{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Probe, InType: reflect.TypeOf(&Probe{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_QuobyteVolumeSource, InType: reflect.TypeOf(&QuobyteVolumeSource{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_RBDVolumeSource, InType: reflect.TypeOf(&RBDVolumeSource{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_RangeAllocation, InType: reflect.TypeOf(&RangeAllocation{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ReplicationController, InType: reflect.TypeOf(&ReplicationController{})}, @@ -184,6 +186,7 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ServiceProxyOptions, InType: reflect.TypeOf(&ServiceProxyOptions{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ServiceSpec, InType: reflect.TypeOf(&ServiceSpec{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_ServiceStatus, InType: reflect.TypeOf(&ServiceStatus{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Sysctl, InType: reflect.TypeOf(&Sysctl{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_TCPSocketAction, InType: reflect.TypeOf(&TCPSocketAction{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Taint, InType: reflect.TypeOf(&Taint{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_api_Toleration, InType: reflect.TypeOf(&Toleration{})}, @@ -271,6 +274,37 @@ func DeepCopy_api_AvoidPods(in interface{}, out interface{}, c *conversion.Clone } } +func DeepCopy_api_AzureDiskVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*AzureDiskVolumeSource) + out := out.(*AzureDiskVolumeSource) + out.DiskName = in.DiskName + out.DataDiskURI = in.DataDiskURI + if in.CachingMode != nil { + in, out := &in.CachingMode, &out.CachingMode + *out = new(AzureDataDiskCachingMode) + **out = **in + } else { + out.CachingMode = nil + } + if in.FSType != nil { + in, out := &in.FSType, &out.FSType + *out = new(string) + **out = **in + } else { + out.FSType = nil + } + if in.ReadOnly != nil { + in, out := &in.ReadOnly, &out.ReadOnly + *out = new(bool) + **out = **in + } else { + out.ReadOnly = nil + } + return nil + } +} + func DeepCopy_api_AzureFileVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*AzureFileVolumeSource) @@ -473,11 +507,20 @@ func DeepCopy_api_ConfigMapVolumeSource(in interface{}, out interface{}, c *conv in, out := &in.Items, &out.Items *out = make([]KeyToPath, len(*in)) for i := range *in { - (*out)[i] = (*in)[i] + if err := DeepCopy_api_KeyToPath(&(*in)[i], &(*out)[i], c); err != nil { + return err + } } } else { out.Items = nil } + if in.DefaultMode != nil { + in, out := &in.DefaultMode, &out.DefaultMode + *out = new(int32) + **out = **in + } else { + out.DefaultMode = nil + } return nil } } @@ -781,6 +824,13 @@ func DeepCopy_api_DownwardAPIVolumeFile(in interface{}, out interface{}, c *conv } else { out.ResourceFieldRef = nil } + if in.Mode != nil { + in, out := &in.Mode, &out.Mode + *out = new(int32) + **out = **in + } else { + out.Mode = nil + } return nil } } @@ -800,6 +850,13 @@ func DeepCopy_api_DownwardAPIVolumeSource(in interface{}, out interface{}, c *co } else { out.Items = nil } + if in.DefaultMode != nil { + in, out := &in.DefaultMode, &out.DefaultMode + *out = new(int32) + **out = **in + } else { + out.DefaultMode = nil + } return nil } } @@ -1252,6 +1309,13 @@ func DeepCopy_api_KeyToPath(in interface{}, out interface{}, c *conversion.Clone out := out.(*KeyToPath) out.Key = in.Key out.Path = in.Path + if in.Mode != nil { + in, out := &in.Mode, &out.Mode + *out = new(int32) + **out = **in + } else { + out.Mode = nil + } return nil } } @@ -1916,6 +1980,7 @@ func DeepCopy_api_ObjectMeta(in interface{}, out interface{}, c *conversion.Clon } else { out.Finalizers = nil } + out.ClusterName = in.ClusterName return nil } } @@ -2145,6 +2210,13 @@ func DeepCopy_api_PersistentVolumeSource(in interface{}, out interface{}, c *con } else { out.RBD = nil } + if in.Quobyte != nil { + in, out := &in.Quobyte, &out.Quobyte + *out = new(QuobyteVolumeSource) + **out = **in + } else { + out.Quobyte = nil + } if in.ISCSI != nil { in, out := &in.ISCSI, &out.ISCSI *out = new(ISCSIVolumeSource) @@ -2207,6 +2279,15 @@ func DeepCopy_api_PersistentVolumeSource(in interface{}, out interface{}, c *con } else { out.VsphereVolume = nil } + if in.AzureDisk != nil { + in, out := &in.AzureDisk, &out.AzureDisk + *out = new(AzureDiskVolumeSource) + if err := DeepCopy_api_AzureDiskVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.AzureDisk = nil + } return nil } } @@ -2809,6 +2890,19 @@ func DeepCopy_api_Probe(in interface{}, out interface{}, c *conversion.Cloner) e } } +func DeepCopy_api_QuobyteVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*QuobyteVolumeSource) + out := out.(*QuobyteVolumeSource) + out.Registry = in.Registry + out.Volume = in.Volume + out.ReadOnly = in.ReadOnly + out.User = in.User + out.Group = in.Group + return nil + } +} + func DeepCopy_api_RBDVolumeSource(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*RBDVolumeSource) @@ -2927,6 +3021,7 @@ func DeepCopy_api_ReplicationControllerStatus(in interface{}, out interface{}, c out := out.(*ReplicationControllerStatus) out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ReadyReplicas = in.ReadyReplicas out.ObservedGeneration = in.ObservedGeneration return nil } @@ -3138,11 +3233,20 @@ func DeepCopy_api_SecretVolumeSource(in interface{}, out interface{}, c *convers in, out := &in.Items, &out.Items *out = make([]KeyToPath, len(*in)) for i := range *in { - (*out)[i] = (*in)[i] + if err := DeepCopy_api_KeyToPath(&(*in)[i], &(*out)[i], c); err != nil { + return err + } } } else { out.Items = nil } + if in.DefaultMode != nil { + in, out := &in.DefaultMode, &out.DefaultMode + *out = new(int32) + **out = **in + } else { + out.DefaultMode = nil + } return nil } } @@ -3346,6 +3450,7 @@ func DeepCopy_api_ServiceSpec(in interface{}, out interface{}, c *conversion.Clo out.Selector = nil } out.ClusterIP = in.ClusterIP + out.ExternalName = in.ExternalName if in.ExternalIPs != nil { in, out := &in.ExternalIPs, &out.ExternalIPs *out = make([]string, len(*in)) @@ -3377,6 +3482,16 @@ func DeepCopy_api_ServiceStatus(in interface{}, out interface{}, c *conversion.C } } +func DeepCopy_api_Sysctl(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Sysctl) + out := out.(*Sysctl) + out.Name = in.Name + out.Value = in.Value + return nil + } +} + func DeepCopy_api_TCPSocketAction(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*TCPSocketAction) @@ -3518,6 +3633,13 @@ func DeepCopy_api_VolumeSource(in interface{}, out interface{}, c *conversion.Cl } else { out.RBD = nil } + if in.Quobyte != nil { + in, out := &in.Quobyte, &out.Quobyte + *out = new(QuobyteVolumeSource) + **out = **in + } else { + out.Quobyte = nil + } if in.FlexVolume != nil { in, out := &in.FlexVolume, &out.FlexVolume *out = new(FlexVolumeSource) @@ -3591,6 +3713,15 @@ func DeepCopy_api_VolumeSource(in interface{}, out interface{}, c *conversion.Cl } else { out.VsphereVolume = nil } + if in.AzureDisk != nil { + in, out := &in.AzureDisk, &out.AzureDisk + *out = new(AzureDiskVolumeSource) + if err := DeepCopy_api_AzureDiskVolumeSource(*in, *out, c); err != nil { + return err + } + } else { + out.AzureDisk = nil + } return nil } } diff --git a/1.4/pkg/apimachinery/registered/registered.go b/1.4/pkg/apimachinery/registered/registered.go index 83fcfbf2..50810329 100644 --- a/1.4/pkg/apimachinery/registered/registered.go +++ b/1.4/pkg/apimachinery/registered/registered.go @@ -32,8 +32,13 @@ import ( ) var ( + DefaultAPIRegistrationManager = NewOrDie(os.Getenv("KUBE_API_VERSIONS")) +) + +// APIRegistrationManager +type APIRegistrationManager struct { // registeredGroupVersions stores all API group versions for which RegisterGroup is called. - registeredVersions = map[unversioned.GroupVersion]struct{}{} + registeredVersions map[unversioned.GroupVersion]struct{} // thirdPartyGroupVersions are API versions which are dynamically // registered (and unregistered) via API calls to the apiserver @@ -42,75 +47,99 @@ var ( // enabledVersions represents all enabled API versions. It should be a // subset of registeredVersions. Please call EnableVersions() to add // enabled versions. - enabledVersions = map[unversioned.GroupVersion]struct{}{} + enabledVersions map[unversioned.GroupVersion]struct{} // map of group meta for all groups. - groupMetaMap = map[string]*apimachinery.GroupMeta{} + groupMetaMap map[string]*apimachinery.GroupMeta // envRequestedVersions represents the versions requested via the // KUBE_API_VERSIONS environment variable. The install package of each group // checks this list before add their versions to the latest package and // Scheme. This list is small and order matters, so represent as a slice - envRequestedVersions = []unversioned.GroupVersion{} -) - -func init() { - loadKubeAPIVersions() + envRequestedVersions []unversioned.GroupVersion } -func loadKubeAPIVersions() { - // Env var KUBE_API_VERSIONS is a comma separated list of API versions that - // should be registered in the scheme. - kubeAPIVersions := os.Getenv("KUBE_API_VERSIONS") +// NewAPIRegistrationManager constructs a new manager. The argument ought to be +// the value of the KUBE_API_VERSIONS env var, or a value of this which you +// wish to test. +func NewAPIRegistrationManager(kubeAPIVersions string) (*APIRegistrationManager, error) { + m := &APIRegistrationManager{ + registeredVersions: map[unversioned.GroupVersion]struct{}{}, + thirdPartyGroupVersions: []unversioned.GroupVersion{}, + enabledVersions: map[unversioned.GroupVersion]struct{}{}, + groupMetaMap: map[string]*apimachinery.GroupMeta{}, + envRequestedVersions: []unversioned.GroupVersion{}, + } + if len(kubeAPIVersions) != 0 { for _, version := range strings.Split(kubeAPIVersions, ",") { gv, err := unversioned.ParseGroupVersion(version) if err != nil { - glog.Fatalf("invalid api version: %s in KUBE_API_VERSIONS: %s.", - version, os.Getenv("KUBE_API_VERSIONS")) + return nil, fmt.Errorf("invalid api version: %s in KUBE_API_VERSIONS: %s.", + version, kubeAPIVersions) } - envRequestedVersions = append(envRequestedVersions, gv) + m.envRequestedVersions = append(m.envRequestedVersions, gv) } } + return m, nil } -// Resets everything to clean room for the start of a test -func clearForTesting() { - registeredVersions = map[unversioned.GroupVersion]struct{}{} - thirdPartyGroupVersions = []unversioned.GroupVersion{} - enabledVersions = map[unversioned.GroupVersion]struct{}{} - groupMetaMap = map[string]*apimachinery.GroupMeta{} - envRequestedVersions = []unversioned.GroupVersion{} - loadKubeAPIVersions() +func NewOrDie(kubeAPIVersions string) *APIRegistrationManager { + m, err := NewAPIRegistrationManager(kubeAPIVersions) + if err != nil { + glog.Fatalf("Could not construct version manager: %v (KUBE_API_VERSIONS=%q)", err, kubeAPIVersions) + } + return m } +// People are calling global functions. Let them continue to do that (for now). +var ( + ValidateEnvRequestedVersions = DefaultAPIRegistrationManager.ValidateEnvRequestedVersions + AllPreferredGroupVersions = DefaultAPIRegistrationManager.AllPreferredGroupVersions + RESTMapper = DefaultAPIRegistrationManager.RESTMapper + GroupOrDie = DefaultAPIRegistrationManager.GroupOrDie + AddThirdPartyAPIGroupVersions = DefaultAPIRegistrationManager.AddThirdPartyAPIGroupVersions + IsThirdPartyAPIGroupVersion = DefaultAPIRegistrationManager.IsThirdPartyAPIGroupVersion + RegisteredGroupVersions = DefaultAPIRegistrationManager.RegisteredGroupVersions + IsRegisteredVersion = DefaultAPIRegistrationManager.IsRegisteredVersion + IsRegistered = DefaultAPIRegistrationManager.IsRegistered + Group = DefaultAPIRegistrationManager.Group + EnabledVersionsForGroup = DefaultAPIRegistrationManager.EnabledVersionsForGroup + EnabledVersions = DefaultAPIRegistrationManager.EnabledVersions + IsEnabledVersion = DefaultAPIRegistrationManager.IsEnabledVersion + IsAllowedVersion = DefaultAPIRegistrationManager.IsAllowedVersion + EnableVersions = DefaultAPIRegistrationManager.EnableVersions + RegisterGroup = DefaultAPIRegistrationManager.RegisterGroup + RegisterVersions = DefaultAPIRegistrationManager.RegisterVersions +) + // RegisterVersions adds the given group versions to the list of registered group versions. -func RegisterVersions(availableVersions []unversioned.GroupVersion) { +func (m *APIRegistrationManager) RegisterVersions(availableVersions []unversioned.GroupVersion) { for _, v := range availableVersions { - registeredVersions[v] = struct{}{} + m.registeredVersions[v] = struct{}{} } } // RegisterGroup adds the given group to the list of registered groups. -func RegisterGroup(groupMeta apimachinery.GroupMeta) error { +func (m *APIRegistrationManager) RegisterGroup(groupMeta apimachinery.GroupMeta) error { groupName := groupMeta.GroupVersion.Group - if _, found := groupMetaMap[groupName]; found { - return fmt.Errorf("group %v is already registered", groupMetaMap) + if _, found := m.groupMetaMap[groupName]; found { + return fmt.Errorf("group %v is already registered", m.groupMetaMap) } - groupMetaMap[groupName] = &groupMeta + m.groupMetaMap[groupName] = &groupMeta return nil } // EnableVersions adds the versions for the given group to the list of enabled versions. // Note that the caller should call RegisterGroup before calling this method. // The caller of this function is responsible to add the versions to scheme and RESTMapper. -func EnableVersions(versions ...unversioned.GroupVersion) error { +func (m *APIRegistrationManager) EnableVersions(versions ...unversioned.GroupVersion) error { var unregisteredVersions []unversioned.GroupVersion for _, v := range versions { - if _, found := registeredVersions[v]; !found { + if _, found := m.registeredVersions[v]; !found { unregisteredVersions = append(unregisteredVersions, v) } - enabledVersions[v] = struct{}{} + m.enabledVersions[v] = struct{}{} } if len(unregisteredVersions) != 0 { return fmt.Errorf("Please register versions before enabling them: %v", unregisteredVersions) @@ -121,11 +150,11 @@ func EnableVersions(versions ...unversioned.GroupVersion) error { // IsAllowedVersion returns if the version is allowed by the KUBE_API_VERSIONS // environment variable. If the environment variable is empty, then it always // returns true. -func IsAllowedVersion(v unversioned.GroupVersion) bool { - if len(envRequestedVersions) == 0 { +func (m *APIRegistrationManager) IsAllowedVersion(v unversioned.GroupVersion) bool { + if len(m.envRequestedVersions) == 0 { return true } - for _, envGV := range envRequestedVersions { + for _, envGV := range m.envRequestedVersions { if v == envGV { return true } @@ -134,24 +163,24 @@ func IsAllowedVersion(v unversioned.GroupVersion) bool { } // IsEnabledVersion returns if a version is enabled. -func IsEnabledVersion(v unversioned.GroupVersion) bool { - _, found := enabledVersions[v] +func (m *APIRegistrationManager) IsEnabledVersion(v unversioned.GroupVersion) bool { + _, found := m.enabledVersions[v] return found } // EnabledVersions returns all enabled versions. Groups are randomly ordered, but versions within groups // are priority order from best to worst -func EnabledVersions() []unversioned.GroupVersion { +func (m *APIRegistrationManager) EnabledVersions() []unversioned.GroupVersion { ret := []unversioned.GroupVersion{} - for _, groupMeta := range groupMetaMap { + for _, groupMeta := range m.groupMetaMap { ret = append(ret, groupMeta.GroupVersions...) } return ret } // EnabledVersionsForGroup returns all enabled versions for a group in order of best to worst -func EnabledVersionsForGroup(group string) []unversioned.GroupVersion { - groupMeta, ok := groupMetaMap[group] +func (m *APIRegistrationManager) EnabledVersionsForGroup(group string) []unversioned.GroupVersion { + groupMeta, ok := m.groupMetaMap[group] if !ok { return []unversioned.GroupVersion{} } @@ -159,10 +188,10 @@ func EnabledVersionsForGroup(group string) []unversioned.GroupVersion { return append([]unversioned.GroupVersion{}, groupMeta.GroupVersions...) } -// Group returns the metadata of a group if the gruop is registered, otherwise -// an erorr is returned. -func Group(group string) (*apimachinery.GroupMeta, error) { - groupMeta, found := groupMetaMap[group] +// Group returns the metadata of a group if the group is registered, otherwise +// an error is returned. +func (m *APIRegistrationManager) Group(group string) (*apimachinery.GroupMeta, error) { + groupMeta, found := m.groupMetaMap[group] if !found { return nil, fmt.Errorf("group %v has not been registered", group) } @@ -171,30 +200,30 @@ func Group(group string) (*apimachinery.GroupMeta, error) { } // IsRegistered takes a string and determines if it's one of the registered groups -func IsRegistered(group string) bool { - _, found := groupMetaMap[group] +func (m *APIRegistrationManager) IsRegistered(group string) bool { + _, found := m.groupMetaMap[group] return found } // IsRegisteredVersion returns if a version is registered. -func IsRegisteredVersion(v unversioned.GroupVersion) bool { - _, found := registeredVersions[v] +func (m *APIRegistrationManager) IsRegisteredVersion(v unversioned.GroupVersion) bool { + _, found := m.registeredVersions[v] return found } // RegisteredGroupVersions returns all registered group versions. -func RegisteredGroupVersions() []unversioned.GroupVersion { +func (m *APIRegistrationManager) RegisteredGroupVersions() []unversioned.GroupVersion { ret := []unversioned.GroupVersion{} - for groupVersion := range registeredVersions { + for groupVersion := range m.registeredVersions { ret = append(ret, groupVersion) } return ret } // IsThirdPartyAPIGroupVersion returns true if the api version is a user-registered group/version. -func IsThirdPartyAPIGroupVersion(gv unversioned.GroupVersion) bool { - for ix := range thirdPartyGroupVersions { - if thirdPartyGroupVersions[ix] == gv { +func (m *APIRegistrationManager) IsThirdPartyAPIGroupVersion(gv unversioned.GroupVersion) bool { + for ix := range m.thirdPartyGroupVersions { + if m.thirdPartyGroupVersions[ix] == gv { return true } } @@ -205,11 +234,11 @@ func IsThirdPartyAPIGroupVersion(gv unversioned.GroupVersion) bool { // registers them in the API machinery and enables them. // Skips GroupVersions that are already registered. // Returns the list of GroupVersions that were skipped. -func AddThirdPartyAPIGroupVersions(gvs ...unversioned.GroupVersion) []unversioned.GroupVersion { +func (m *APIRegistrationManager) AddThirdPartyAPIGroupVersions(gvs ...unversioned.GroupVersion) []unversioned.GroupVersion { filteredGVs := []unversioned.GroupVersion{} skippedGVs := []unversioned.GroupVersion{} for ix := range gvs { - if !IsRegisteredVersion(gvs[ix]) { + if !m.IsRegisteredVersion(gvs[ix]) { filteredGVs = append(filteredGVs, gvs[ix]) } else { glog.V(3).Infof("Skipping %s, because its already registered", gvs[ix].String()) @@ -219,17 +248,18 @@ func AddThirdPartyAPIGroupVersions(gvs ...unversioned.GroupVersion) []unversione if len(filteredGVs) == 0 { return skippedGVs } - RegisterVersions(filteredGVs) - EnableVersions(filteredGVs...) - thirdPartyGroupVersions = append(thirdPartyGroupVersions, filteredGVs...) + m.RegisterVersions(filteredGVs) + m.EnableVersions(filteredGVs...) + m.thirdPartyGroupVersions = append(m.thirdPartyGroupVersions, filteredGVs...) + return skippedGVs } // TODO: This is an expedient function, because we don't check if a Group is // supported throughout the code base. We will abandon this function and // checking the error returned by the Group() function. -func GroupOrDie(group string) *apimachinery.GroupMeta { - groupMeta, found := groupMetaMap[group] +func (m *APIRegistrationManager) GroupOrDie(group string) *apimachinery.GroupMeta { + groupMeta, found := m.groupMetaMap[group] if !found { if group == "" { panic("The legacy v1 API is not registered.") @@ -246,13 +276,13 @@ func GroupOrDie(group string) *apimachinery.GroupMeta { // 1. legacy kube group preferred version, extensions preferred version, metrics perferred version, legacy // kube any version, extensions any version, metrics any version, all other groups alphabetical preferred version, // all other groups alphabetical. -func RESTMapper(versionPatterns ...unversioned.GroupVersion) meta.RESTMapper { +func (m *APIRegistrationManager) RESTMapper(versionPatterns ...unversioned.GroupVersion) meta.RESTMapper { unionMapper := meta.MultiRESTMapper{} unionedGroups := sets.NewString() - for enabledVersion := range enabledVersions { + for enabledVersion := range m.enabledVersions { if !unionedGroups.Has(enabledVersion.Group) { unionedGroups.Insert(enabledVersion.Group) - groupMeta := groupMetaMap[enabledVersion.Group] + groupMeta := m.groupMetaMap[enabledVersion.Group] unionMapper = append(unionMapper, groupMeta.RESTMapper) } } @@ -268,11 +298,11 @@ func RESTMapper(versionPatterns ...unversioned.GroupVersion) meta.RESTMapper { return meta.PriorityRESTMapper{Delegate: unionMapper, ResourcePriority: resourcePriority, KindPriority: kindPriority} } - if len(envRequestedVersions) != 0 { + if len(m.envRequestedVersions) != 0 { resourcePriority := []unversioned.GroupVersionResource{} kindPriority := []unversioned.GroupVersionKind{} - for _, versionPriority := range envRequestedVersions { + for _, versionPriority := range m.envRequestedVersions { resourcePriority = append(resourcePriority, versionPriority.WithResource(meta.AnyResource)) kindPriority = append(kindPriority, versionPriority.WithKind(meta.AnyKind)) } @@ -281,17 +311,17 @@ func RESTMapper(versionPatterns ...unversioned.GroupVersion) meta.RESTMapper { } prioritizedGroups := []string{"", "extensions", "metrics"} - resourcePriority, kindPriority := prioritiesForGroups(prioritizedGroups...) + resourcePriority, kindPriority := m.prioritiesForGroups(prioritizedGroups...) prioritizedGroupsSet := sets.NewString(prioritizedGroups...) remainingGroups := sets.String{} - for enabledVersion := range enabledVersions { + for enabledVersion := range m.enabledVersions { if !prioritizedGroupsSet.Has(enabledVersion.Group) { remainingGroups.Insert(enabledVersion.Group) } } - remainingResourcePriority, remainingKindPriority := prioritiesForGroups(remainingGroups.List()...) + remainingResourcePriority, remainingKindPriority := m.prioritiesForGroups(remainingGroups.List()...) resourcePriority = append(resourcePriority, remainingResourcePriority...) kindPriority = append(kindPriority, remainingKindPriority...) @@ -300,12 +330,12 @@ func RESTMapper(versionPatterns ...unversioned.GroupVersion) meta.RESTMapper { // prioritiesForGroups returns the resource and kind priorities for a PriorityRESTMapper, preferring the preferred version of each group first, // then any non-preferred version of the group second. -func prioritiesForGroups(groups ...string) ([]unversioned.GroupVersionResource, []unversioned.GroupVersionKind) { +func (m *APIRegistrationManager) prioritiesForGroups(groups ...string) ([]unversioned.GroupVersionResource, []unversioned.GroupVersionKind) { resourcePriority := []unversioned.GroupVersionResource{} kindPriority := []unversioned.GroupVersionKind{} for _, group := range groups { - availableVersions := EnabledVersionsForGroup(group) + availableVersions := m.EnabledVersionsForGroup(group) if len(availableVersions) > 0 { resourcePriority = append(resourcePriority, availableVersions[0].WithResource(meta.AnyResource)) kindPriority = append(kindPriority, availableVersions[0].WithKind(meta.AnyKind)) @@ -321,12 +351,12 @@ func prioritiesForGroups(groups ...string) ([]unversioned.GroupVersionResource, // AllPreferredGroupVersions returns the preferred versions of all registered // groups in the form of "group1/version1,group2/version2,..." -func AllPreferredGroupVersions() string { - if len(groupMetaMap) == 0 { +func (m *APIRegistrationManager) AllPreferredGroupVersions() string { + if len(m.groupMetaMap) == 0 { return "" } var defaults []string - for _, groupMeta := range groupMetaMap { + for _, groupMeta := range m.groupMetaMap { defaults = append(defaults, groupMeta.GroupVersion.String()) } sort.Strings(defaults) @@ -335,21 +365,12 @@ func AllPreferredGroupVersions() string { // ValidateEnvRequestedVersions returns a list of versions that are requested in // the KUBE_API_VERSIONS environment variable, but not enabled. -func ValidateEnvRequestedVersions() []unversioned.GroupVersion { +func (m *APIRegistrationManager) ValidateEnvRequestedVersions() []unversioned.GroupVersion { var missingVersions []unversioned.GroupVersion - for _, v := range envRequestedVersions { - if _, found := enabledVersions[v]; !found { + for _, v := range m.envRequestedVersions { + if _, found := m.enabledVersions[v]; !found { missingVersions = append(missingVersions, v) } } return missingVersions } - -// Resets the state. -// Should not be used by anyone else than tests. -func reset() { - registeredVersions = map[unversioned.GroupVersion]struct{}{} - enabledVersions = map[unversioned.GroupVersion]struct{}{} - groupMetaMap = map[string]*apimachinery.GroupMeta{} - -} diff --git a/1.4/pkg/apis/apps/register.go b/1.4/pkg/apis/apps/register.go index 4ee6a9b1..28225023 100644 --- a/1.4/pkg/apis/apps/register.go +++ b/1.4/pkg/apis/apps/register.go @@ -33,12 +33,12 @@ const GroupName = "apps" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} -// Kind takes an unqualified kind and returns back a Group qualified GroupKind +// Kind takes an unqualified kind and returns a Group qualified GroupKind func Kind(kind string) unversioned.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() } -// Resource takes an unqualified resource and returns back a Group qualified GroupResource +// Resource takes an unqualified resource and returns a Group qualified GroupResource func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } diff --git a/1.4/pkg/apis/apps/types.generated.go b/1.4/pkg/apis/apps/types.generated.go index 0fabcb8e..9d421a89 100644 --- a/1.4/pkg/apis/apps/types.generated.go +++ b/1.4/pkg/apis/apps/types.generated.go @@ -1431,7 +1431,7 @@ func (x codecSelfer1234) decSliceapi_PersistentVolumeClaim(v *[]pkg2_api.Persist yyrg121 := len(yyv121) > 0 yyv2121 := yyv121 - yyrl121, yyrt121 = z.DecInferLen(yyl121, z.DecBasicHandle().MaxInitLen, 352) + yyrl121, yyrt121 = z.DecInferLen(yyl121, z.DecBasicHandle().MaxInitLen, 368) if yyrt121 { if yyrl121 <= cap(yyv121) { yyv121 = yyv121[:yyrl121] @@ -1547,7 +1547,7 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { yyrg127 := len(yyv127) > 0 yyv2127 := yyv127 - yyrl127, yyrt127 = z.DecInferLen(yyl127, z.DecBasicHandle().MaxInitLen, 744) + yyrl127, yyrt127 = z.DecInferLen(yyl127, z.DecBasicHandle().MaxInitLen, 776) if yyrt127 { if yyrl127 <= cap(yyv127) { yyv127 = yyv127[:yyrl127] diff --git a/1.4/pkg/apis/apps/v1alpha1/types.generated.go b/1.4/pkg/apis/apps/v1alpha1/types.generated.go index 29253262..3466ac1a 100644 --- a/1.4/pkg/apis/apps/v1alpha1/types.generated.go +++ b/1.4/pkg/apis/apps/v1alpha1/types.generated.go @@ -1461,7 +1461,7 @@ func (x codecSelfer1234) decSlicev1_PersistentVolumeClaim(v *[]pkg2_v1.Persisten yyrg125 := len(yyv125) > 0 yyv2125 := yyv125 - yyrl125, yyrt125 = z.DecInferLen(yyl125, z.DecBasicHandle().MaxInitLen, 352) + yyrl125, yyrt125 = z.DecInferLen(yyl125, z.DecBasicHandle().MaxInitLen, 368) if yyrt125 { if yyrl125 <= cap(yyv125) { yyv125 = yyv125[:yyrl125] @@ -1577,7 +1577,7 @@ func (x codecSelfer1234) decSlicePetSet(v *[]PetSet, d *codec1978.Decoder) { yyrg131 := len(yyv131) > 0 yyv2131 := yyv131 - yyrl131, yyrt131 = z.DecInferLen(yyl131, z.DecBasicHandle().MaxInitLen, 768) + yyrl131, yyrt131 = z.DecInferLen(yyl131, z.DecBasicHandle().MaxInitLen, 800) if yyrt131 { if yyrl131 <= cap(yyv131) { yyv131 = yyv131[:yyrl131] diff --git a/1.4/pkg/apis/authentication/register.go b/1.4/pkg/apis/authentication/register.go index e9041c7a..5548c16a 100644 --- a/1.4/pkg/apis/authentication/register.go +++ b/1.4/pkg/apis/authentication/register.go @@ -28,12 +28,12 @@ const GroupName = "authentication.k8s.io" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} -// Kind takes an unqualified kind and returns back a Group qualified GroupKind +// Kind takes an unqualified kind and returns a Group qualified GroupKind func Kind(kind string) unversioned.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() } -// Resource takes an unqualified resource and returns back a Group qualified GroupResource +// Resource takes an unqualified resource and returns a Group qualified GroupResource func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } diff --git a/1.4/pkg/apis/authentication/types.generated.go b/1.4/pkg/apis/authentication/types.generated.go index 4aa8a96f..9ee1c69b 100644 --- a/1.4/pkg/apis/authentication/types.generated.go +++ b/1.4/pkg/apis/authentication/types.generated.go @@ -85,7 +85,7 @@ func (x *TokenReview) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [18]bool + var yyq2 [19]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false yyq2[0] = x.Kind != "" @@ -104,9 +104,10 @@ func (x *TokenReview) CodecEncodeSelf(e *codec1978.Encoder) { yyq2[13] = len(x.Annotations) != 0 yyq2[14] = len(x.OwnerReferences) != 0 yyq2[15] = len(x.Finalizers) != 0 + yyq2[16] = x.ClusterName != "" var yynn2 int if yyr2 || yy2arr2 { - r.EncodeArrayStart(18) + r.EncodeArrayStart(19) } else { yynn2 = 2 for _, b := range yyq2 { @@ -621,25 +622,50 @@ func (x *TokenReview) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy56 := &x.Spec - yy56.CodecEncodeSelf(e) + if yyq2[16] { + yym56 := z.EncBinary() + _ = yym56 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym57 := z.EncBinary() + _ = yym57 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy59 := &x.Spec + yy59.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy57 := &x.Spec - yy57.CodecEncodeSelf(e) + yy60 := &x.Spec + yy60.CodecEncodeSelf(e) } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy59 := &x.Status - yy59.CodecEncodeSelf(e) + yy62 := &x.Status + yy62.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy60 := &x.Status - yy60.CodecEncodeSelf(e) + yy63 := &x.Status + yy63.CodecEncodeSelf(e) } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -654,25 +680,25 @@ func (x *TokenReview) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym61 := z.DecBinary() - _ = yym61 + yym64 := z.DecBinary() + _ = yym64 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct62 := r.ContainerType() - if yyct62 == codecSelferValueTypeMap1234 { - yyl62 := r.ReadMapStart() - if yyl62 == 0 { + yyct65 := r.ContainerType() + if yyct65 == codecSelferValueTypeMap1234 { + yyl65 := r.ReadMapStart() + if yyl65 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl62, d) + x.codecDecodeSelfFromMap(yyl65, d) } - } else if yyct62 == codecSelferValueTypeArray1234 { - yyl62 := r.ReadArrayStart() - if yyl62 == 0 { + } else if yyct65 == codecSelferValueTypeArray1234 { + yyl65 := r.ReadArrayStart() + if yyl65 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl62, d) + x.codecDecodeSelfFromArray(yyl65, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -684,12 +710,12 @@ func (x *TokenReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys63Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys63Slc - var yyhl63 bool = l >= 0 - for yyj63 := 0; ; yyj63++ { - if yyhl63 { - if yyj63 >= l { + var yys66Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys66Slc + var yyhl66 bool = l >= 0 + for yyj66 := 0; ; yyj66++ { + if yyhl66 { + if yyj66 >= l { break } } else { @@ -698,10 +724,10 @@ func (x *TokenReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys63Slc = r.DecodeBytes(yys63Slc, true, true) - yys63 := string(yys63Slc) + yys66Slc = r.DecodeBytes(yys66Slc, true, true) + yys66 := string(yys66Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys63 { + switch yys66 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -760,17 +786,17 @@ func (x *TokenReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.CreationTimestamp = pkg1_unversioned.Time{} } else { - yyv73 := &x.CreationTimestamp - yym74 := z.DecBinary() - _ = yym74 + yyv76 := &x.CreationTimestamp + yym77 := z.DecBinary() + _ = yym77 if false { - } else if z.HasExtensions() && z.DecExt(yyv73) { - } else if yym74 { - z.DecBinaryUnmarshal(yyv73) - } else if !yym74 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv73) + } else if z.HasExtensions() && z.DecExt(yyv76) { + } else if yym77 { + z.DecBinaryUnmarshal(yyv76) + } else if !yym77 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv76) } else { - z.DecFallback(yyv73, false) + z.DecFallback(yyv76, false) } } case "deletionTimestamp": @@ -785,13 +811,13 @@ func (x *TokenReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg1_unversioned.Time) } - yym76 := z.DecBinary() - _ = yym76 + yym79 := z.DecBinary() + _ = yym79 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym76 { + } else if yym79 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym76 && z.IsJSONHandle() { + } else if !yym79 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) @@ -809,8 +835,8 @@ func (x *TokenReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } - yym78 := z.DecBinary() - _ = yym78 + yym81 := z.DecBinary() + _ = yym81 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -820,68 +846,74 @@ func (x *TokenReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Labels = nil } else { - yyv79 := &x.Labels - yym80 := z.DecBinary() - _ = yym80 + yyv82 := &x.Labels + yym83 := z.DecBinary() + _ = yym83 if false { } else { - z.F.DecMapStringStringX(yyv79, false, d) + z.F.DecMapStringStringX(yyv82, false, d) } } case "annotations": if r.TryDecodeAsNil() { x.Annotations = nil } else { - yyv81 := &x.Annotations - yym82 := z.DecBinary() - _ = yym82 + yyv84 := &x.Annotations + yym85 := z.DecBinary() + _ = yym85 if false { } else { - z.F.DecMapStringStringX(yyv81, false, d) + z.F.DecMapStringStringX(yyv84, false, d) } } case "ownerReferences": if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { - yyv83 := &x.OwnerReferences - yym84 := z.DecBinary() - _ = yym84 + yyv86 := &x.OwnerReferences + yym87 := z.DecBinary() + _ = yym87 if false { } else { - h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv83), d) + h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv86), d) } } case "finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv85 := &x.Finalizers - yym86 := z.DecBinary() - _ = yym86 + yyv88 := &x.Finalizers + yym89 := z.DecBinary() + _ = yym89 if false { } else { - z.F.DecSliceStringX(yyv85, false, d) + z.F.DecSliceStringX(yyv88, false, d) } } + case "clusterName": + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } case "Spec": if r.TryDecodeAsNil() { x.Spec = TokenReviewSpec{} } else { - yyv87 := &x.Spec - yyv87.CodecDecodeSelf(d) + yyv91 := &x.Spec + yyv91.CodecDecodeSelf(d) } case "Status": if r.TryDecodeAsNil() { x.Status = TokenReviewStatus{} } else { - yyv88 := &x.Status - yyv88.CodecDecodeSelf(d) + yyv92 := &x.Status + yyv92.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys63) - } // end switch yys63 - } // end for yyj63 + z.DecStructFieldNotFound(-1, yys66) + } // end switch yys66 + } // end for yyj66 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -889,16 +921,16 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj89 int - var yyb89 bool - var yyhl89 bool = l >= 0 - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + var yyj93 int + var yyb93 bool + var yyhl93 bool = l >= 0 + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -908,13 +940,13 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -924,13 +956,13 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -940,13 +972,13 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Name = string(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -956,13 +988,13 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.GenerateName = string(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -972,13 +1004,13 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Namespace = string(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -988,13 +1020,13 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.SelfLink = string(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1004,13 +1036,13 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.UID = pkg3_types.UID(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1020,13 +1052,13 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.ResourceVersion = string(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1036,13 +1068,13 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Generation = int64(r.DecodeInt(64)) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1050,29 +1082,29 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.CreationTimestamp = pkg1_unversioned.Time{} } else { - yyv99 := &x.CreationTimestamp - yym100 := z.DecBinary() - _ = yym100 + yyv103 := &x.CreationTimestamp + yym104 := z.DecBinary() + _ = yym104 if false { - } else if z.HasExtensions() && z.DecExt(yyv99) { - } else if yym100 { - z.DecBinaryUnmarshal(yyv99) - } else if !yym100 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv99) + } else if z.HasExtensions() && z.DecExt(yyv103) { + } else if yym104 { + z.DecBinaryUnmarshal(yyv103) + } else if !yym104 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv103) } else { - z.DecFallback(yyv99, false) + z.DecFallback(yyv103, false) } } if x.ObjectMeta.DeletionTimestamp == nil { x.ObjectMeta.DeletionTimestamp = new(pkg1_unversioned.Time) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1085,13 +1117,13 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg1_unversioned.Time) } - yym102 := z.DecBinary() - _ = yym102 + yym106 := z.DecBinary() + _ = yym106 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym102 { + } else if yym106 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym102 && z.IsJSONHandle() { + } else if !yym106 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) @@ -1100,13 +1132,13 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.ObjectMeta.DeletionGracePeriodSeconds == nil { x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1119,20 +1151,20 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } - yym104 := z.DecBinary() - _ = yym104 + yym108 := z.DecBinary() + _ = yym108 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1140,21 +1172,21 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Labels = nil } else { - yyv105 := &x.Labels - yym106 := z.DecBinary() - _ = yym106 + yyv109 := &x.Labels + yym110 := z.DecBinary() + _ = yym110 if false { } else { - z.F.DecMapStringStringX(yyv105, false, d) + z.F.DecMapStringStringX(yyv109, false, d) } } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1162,21 +1194,21 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Annotations = nil } else { - yyv107 := &x.Annotations - yym108 := z.DecBinary() - _ = yym108 + yyv111 := &x.Annotations + yym112 := z.DecBinary() + _ = yym112 if false { } else { - z.F.DecMapStringStringX(yyv107, false, d) + z.F.DecMapStringStringX(yyv111, false, d) } } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1184,21 +1216,21 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { - yyv109 := &x.OwnerReferences - yym110 := z.DecBinary() - _ = yym110 + yyv113 := &x.OwnerReferences + yym114 := z.DecBinary() + _ = yym114 if false { } else { - h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv109), d) + h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv113), d) } } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1206,21 +1238,37 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv111 := &x.Finalizers - yym112 := z.DecBinary() - _ = yym112 + yyv115 := &x.Finalizers + yym116 := z.DecBinary() + _ = yym116 if false { } else { - z.F.DecSliceStringX(yyv111, false, d) + z.F.DecSliceStringX(yyv115, false, d) } } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1228,16 +1276,16 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = TokenReviewSpec{} } else { - yyv113 := &x.Spec - yyv113.CodecDecodeSelf(d) + yyv118 := &x.Spec + yyv118.CodecDecodeSelf(d) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1245,21 +1293,21 @@ func (x *TokenReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Status = TokenReviewStatus{} } else { - yyv114 := &x.Status - yyv114.CodecDecodeSelf(d) + yyv119 := &x.Status + yyv119.CodecDecodeSelf(d) } for { - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj89-1, "") + z.DecStructFieldNotFound(yyj93-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1271,33 +1319,33 @@ func (x *TokenReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym115 := z.EncBinary() - _ = yym115 + yym120 := z.EncBinary() + _ = yym120 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep116 := !z.EncBinary() - yy2arr116 := z.EncBasicHandle().StructToArray - var yyq116 [1]bool - _, _, _ = yysep116, yyq116, yy2arr116 - const yyr116 bool = false - var yynn116 int - if yyr116 || yy2arr116 { + yysep121 := !z.EncBinary() + yy2arr121 := z.EncBasicHandle().StructToArray + var yyq121 [1]bool + _, _, _ = yysep121, yyq121, yy2arr121 + const yyr121 bool = false + var yynn121 int + if yyr121 || yy2arr121 { r.EncodeArrayStart(1) } else { - yynn116 = 1 - for _, b := range yyq116 { + yynn121 = 1 + for _, b := range yyq121 { if b { - yynn116++ + yynn121++ } } - r.EncodeMapStart(yynn116) - yynn116 = 0 + r.EncodeMapStart(yynn121) + yynn121 = 0 } - if yyr116 || yy2arr116 { + if yyr121 || yy2arr121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym118 := z.EncBinary() - _ = yym118 + yym123 := z.EncBinary() + _ = yym123 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Token)) @@ -1306,14 +1354,14 @@ func (x *TokenReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Token")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym119 := z.EncBinary() - _ = yym119 + yym124 := z.EncBinary() + _ = yym124 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Token)) } } - if yyr116 || yy2arr116 { + if yyr121 || yy2arr121 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1326,25 +1374,25 @@ func (x *TokenReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym120 := z.DecBinary() - _ = yym120 + yym125 := z.DecBinary() + _ = yym125 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct121 := r.ContainerType() - if yyct121 == codecSelferValueTypeMap1234 { - yyl121 := r.ReadMapStart() - if yyl121 == 0 { + yyct126 := r.ContainerType() + if yyct126 == codecSelferValueTypeMap1234 { + yyl126 := r.ReadMapStart() + if yyl126 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl121, d) + x.codecDecodeSelfFromMap(yyl126, d) } - } else if yyct121 == codecSelferValueTypeArray1234 { - yyl121 := r.ReadArrayStart() - if yyl121 == 0 { + } else if yyct126 == codecSelferValueTypeArray1234 { + yyl126 := r.ReadArrayStart() + if yyl126 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl121, d) + x.codecDecodeSelfFromArray(yyl126, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1356,12 +1404,12 @@ func (x *TokenReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys122Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys122Slc - var yyhl122 bool = l >= 0 - for yyj122 := 0; ; yyj122++ { - if yyhl122 { - if yyj122 >= l { + var yys127Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys127Slc + var yyhl127 bool = l >= 0 + for yyj127 := 0; ; yyj127++ { + if yyhl127 { + if yyj127 >= l { break } } else { @@ -1370,10 +1418,10 @@ func (x *TokenReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys122Slc = r.DecodeBytes(yys122Slc, true, true) - yys122 := string(yys122Slc) + yys127Slc = r.DecodeBytes(yys127Slc, true, true) + yys127 := string(yys127Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys122 { + switch yys127 { case "Token": if r.TryDecodeAsNil() { x.Token = "" @@ -1381,9 +1429,9 @@ func (x *TokenReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Token = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys122) - } // end switch yys122 - } // end for yyj122 + z.DecStructFieldNotFound(-1, yys127) + } // end switch yys127 + } // end for yyj127 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1391,16 +1439,16 @@ func (x *TokenReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj124 int - var yyb124 bool - var yyhl124 bool = l >= 0 - yyj124++ - if yyhl124 { - yyb124 = yyj124 > l + var yyj129 int + var yyb129 bool + var yyhl129 bool = l >= 0 + yyj129++ + if yyhl129 { + yyb129 = yyj129 > l } else { - yyb124 = r.CheckBreak() + yyb129 = r.CheckBreak() } - if yyb124 { + if yyb129 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1411,17 +1459,17 @@ func (x *TokenReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.Token = string(r.DecodeString()) } for { - yyj124++ - if yyhl124 { - yyb124 = yyj124 > l + yyj129++ + if yyhl129 { + yyb129 = yyj129 > l } else { - yyb124 = r.CheckBreak() + yyb129 = r.CheckBreak() } - if yyb124 { + if yyb129 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj124-1, "") + z.DecStructFieldNotFound(yyj129-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1433,33 +1481,33 @@ func (x *TokenReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym126 := z.EncBinary() - _ = yym126 + yym131 := z.EncBinary() + _ = yym131 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep127 := !z.EncBinary() - yy2arr127 := z.EncBasicHandle().StructToArray - var yyq127 [3]bool - _, _, _ = yysep127, yyq127, yy2arr127 - const yyr127 bool = false - var yynn127 int - if yyr127 || yy2arr127 { + yysep132 := !z.EncBinary() + yy2arr132 := z.EncBasicHandle().StructToArray + var yyq132 [3]bool + _, _, _ = yysep132, yyq132, yy2arr132 + const yyr132 bool = false + var yynn132 int + if yyr132 || yy2arr132 { r.EncodeArrayStart(3) } else { - yynn127 = 3 - for _, b := range yyq127 { + yynn132 = 3 + for _, b := range yyq132 { if b { - yynn127++ + yynn132++ } } - r.EncodeMapStart(yynn127) - yynn127 = 0 + r.EncodeMapStart(yynn132) + yynn132 = 0 } - if yyr127 || yy2arr127 { + if yyr132 || yy2arr132 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym129 := z.EncBinary() - _ = yym129 + yym134 := z.EncBinary() + _ = yym134 if false { } else { r.EncodeBool(bool(x.Authenticated)) @@ -1468,28 +1516,28 @@ func (x *TokenReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Authenticated")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym130 := z.EncBinary() - _ = yym130 + yym135 := z.EncBinary() + _ = yym135 if false { } else { r.EncodeBool(bool(x.Authenticated)) } } - if yyr127 || yy2arr127 { + if yyr132 || yy2arr132 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy132 := &x.User - yy132.CodecEncodeSelf(e) + yy137 := &x.User + yy137.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("User")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy133 := &x.User - yy133.CodecEncodeSelf(e) + yy138 := &x.User + yy138.CodecEncodeSelf(e) } - if yyr127 || yy2arr127 { + if yyr132 || yy2arr132 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym135 := z.EncBinary() - _ = yym135 + yym140 := z.EncBinary() + _ = yym140 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) @@ -1498,14 +1546,14 @@ func (x *TokenReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym136 := z.EncBinary() - _ = yym136 + yym141 := z.EncBinary() + _ = yym141 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } - if yyr127 || yy2arr127 { + if yyr132 || yy2arr132 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1518,25 +1566,25 @@ func (x *TokenReviewStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym137 := z.DecBinary() - _ = yym137 + yym142 := z.DecBinary() + _ = yym142 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct138 := r.ContainerType() - if yyct138 == codecSelferValueTypeMap1234 { - yyl138 := r.ReadMapStart() - if yyl138 == 0 { + yyct143 := r.ContainerType() + if yyct143 == codecSelferValueTypeMap1234 { + yyl143 := r.ReadMapStart() + if yyl143 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl138, d) + x.codecDecodeSelfFromMap(yyl143, d) } - } else if yyct138 == codecSelferValueTypeArray1234 { - yyl138 := r.ReadArrayStart() - if yyl138 == 0 { + } else if yyct143 == codecSelferValueTypeArray1234 { + yyl143 := r.ReadArrayStart() + if yyl143 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl138, d) + x.codecDecodeSelfFromArray(yyl143, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1548,12 +1596,12 @@ func (x *TokenReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys139Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys139Slc - var yyhl139 bool = l >= 0 - for yyj139 := 0; ; yyj139++ { - if yyhl139 { - if yyj139 >= l { + var yys144Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys144Slc + var yyhl144 bool = l >= 0 + for yyj144 := 0; ; yyj144++ { + if yyhl144 { + if yyj144 >= l { break } } else { @@ -1562,10 +1610,10 @@ func (x *TokenReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys139Slc = r.DecodeBytes(yys139Slc, true, true) - yys139 := string(yys139Slc) + yys144Slc = r.DecodeBytes(yys144Slc, true, true) + yys144 := string(yys144Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys139 { + switch yys144 { case "Authenticated": if r.TryDecodeAsNil() { x.Authenticated = false @@ -1576,8 +1624,8 @@ func (x *TokenReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.User = UserInfo{} } else { - yyv141 := &x.User - yyv141.CodecDecodeSelf(d) + yyv146 := &x.User + yyv146.CodecDecodeSelf(d) } case "Error": if r.TryDecodeAsNil() { @@ -1586,9 +1634,9 @@ func (x *TokenReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Error = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys139) - } // end switch yys139 - } // end for yyj139 + z.DecStructFieldNotFound(-1, yys144) + } // end switch yys144 + } // end for yyj144 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1596,16 +1644,16 @@ func (x *TokenReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj143 int - var yyb143 bool - var yyhl143 bool = l >= 0 - yyj143++ - if yyhl143 { - yyb143 = yyj143 > l + var yyj148 int + var yyb148 bool + var yyhl148 bool = l >= 0 + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb143 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb143 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1615,13 +1663,13 @@ func (x *TokenReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Authenticated = bool(r.DecodeBool()) } - yyj143++ - if yyhl143 { - yyb143 = yyj143 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb143 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb143 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1629,16 +1677,16 @@ func (x *TokenReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.User = UserInfo{} } else { - yyv145 := &x.User - yyv145.CodecDecodeSelf(d) + yyv150 := &x.User + yyv150.CodecDecodeSelf(d) } - yyj143++ - if yyhl143 { - yyb143 = yyj143 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb143 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb143 { + if yyb148 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1649,17 +1697,17 @@ func (x *TokenReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder x.Error = string(r.DecodeString()) } for { - yyj143++ - if yyhl143 { - yyb143 = yyj143 > l + yyj148++ + if yyhl148 { + yyb148 = yyj148 > l } else { - yyb143 = r.CheckBreak() + yyb148 = r.CheckBreak() } - if yyb143 { + if yyb148 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj143-1, "") + z.DecStructFieldNotFound(yyj148-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1671,33 +1719,33 @@ func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym147 := z.EncBinary() - _ = yym147 + yym152 := z.EncBinary() + _ = yym152 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep148 := !z.EncBinary() - yy2arr148 := z.EncBasicHandle().StructToArray - var yyq148 [4]bool - _, _, _ = yysep148, yyq148, yy2arr148 - const yyr148 bool = false - var yynn148 int - if yyr148 || yy2arr148 { + yysep153 := !z.EncBinary() + yy2arr153 := z.EncBasicHandle().StructToArray + var yyq153 [4]bool + _, _, _ = yysep153, yyq153, yy2arr153 + const yyr153 bool = false + var yynn153 int + if yyr153 || yy2arr153 { r.EncodeArrayStart(4) } else { - yynn148 = 4 - for _, b := range yyq148 { + yynn153 = 4 + for _, b := range yyq153 { if b { - yynn148++ + yynn153++ } } - r.EncodeMapStart(yynn148) - yynn148 = 0 + r.EncodeMapStart(yynn153) + yynn153 = 0 } - if yyr148 || yy2arr148 { + if yyr153 || yy2arr153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym150 := z.EncBinary() - _ = yym150 + yym155 := z.EncBinary() + _ = yym155 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Username)) @@ -1706,17 +1754,17 @@ func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Username")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym151 := z.EncBinary() - _ = yym151 + yym156 := z.EncBinary() + _ = yym156 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Username)) } } - if yyr148 || yy2arr148 { + if yyr153 || yy2arr153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym153 := z.EncBinary() - _ = yym153 + yym158 := z.EncBinary() + _ = yym158 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) @@ -1725,20 +1773,20 @@ func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("UID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym154 := z.EncBinary() - _ = yym154 + yym159 := z.EncBinary() + _ = yym159 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } - if yyr148 || yy2arr148 { + if yyr153 || yy2arr153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Groups == nil { r.EncodeNil() } else { - yym156 := z.EncBinary() - _ = yym156 + yym161 := z.EncBinary() + _ = yym161 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) @@ -1751,21 +1799,21 @@ func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder) { if x.Groups == nil { r.EncodeNil() } else { - yym157 := z.EncBinary() - _ = yym157 + yym162 := z.EncBinary() + _ = yym162 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) } } } - if yyr148 || yy2arr148 { + if yyr153 || yy2arr153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Extra == nil { r.EncodeNil() } else { - yym159 := z.EncBinary() - _ = yym159 + yym164 := z.EncBinary() + _ = yym164 if false { } else { h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) @@ -1778,15 +1826,15 @@ func (x *UserInfo) CodecEncodeSelf(e *codec1978.Encoder) { if x.Extra == nil { r.EncodeNil() } else { - yym160 := z.EncBinary() - _ = yym160 + yym165 := z.EncBinary() + _ = yym165 if false { } else { h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) } } } - if yyr148 || yy2arr148 { + if yyr153 || yy2arr153 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1799,25 +1847,25 @@ func (x *UserInfo) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym161 := z.DecBinary() - _ = yym161 + yym166 := z.DecBinary() + _ = yym166 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct162 := r.ContainerType() - if yyct162 == codecSelferValueTypeMap1234 { - yyl162 := r.ReadMapStart() - if yyl162 == 0 { + yyct167 := r.ContainerType() + if yyct167 == codecSelferValueTypeMap1234 { + yyl167 := r.ReadMapStart() + if yyl167 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl162, d) + x.codecDecodeSelfFromMap(yyl167, d) } - } else if yyct162 == codecSelferValueTypeArray1234 { - yyl162 := r.ReadArrayStart() - if yyl162 == 0 { + } else if yyct167 == codecSelferValueTypeArray1234 { + yyl167 := r.ReadArrayStart() + if yyl167 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl162, d) + x.codecDecodeSelfFromArray(yyl167, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1829,12 +1877,12 @@ func (x *UserInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys163Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys163Slc - var yyhl163 bool = l >= 0 - for yyj163 := 0; ; yyj163++ { - if yyhl163 { - if yyj163 >= l { + var yys168Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys168Slc + var yyhl168 bool = l >= 0 + for yyj168 := 0; ; yyj168++ { + if yyhl168 { + if yyj168 >= l { break } } else { @@ -1843,10 +1891,10 @@ func (x *UserInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys163Slc = r.DecodeBytes(yys163Slc, true, true) - yys163 := string(yys163Slc) + yys168Slc = r.DecodeBytes(yys168Slc, true, true) + yys168 := string(yys168Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys163 { + switch yys168 { case "Username": if r.TryDecodeAsNil() { x.Username = "" @@ -1863,30 +1911,30 @@ func (x *UserInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Groups = nil } else { - yyv166 := &x.Groups - yym167 := z.DecBinary() - _ = yym167 + yyv171 := &x.Groups + yym172 := z.DecBinary() + _ = yym172 if false { } else { - z.F.DecSliceStringX(yyv166, false, d) + z.F.DecSliceStringX(yyv171, false, d) } } case "Extra": if r.TryDecodeAsNil() { x.Extra = nil } else { - yyv168 := &x.Extra - yym169 := z.DecBinary() - _ = yym169 + yyv173 := &x.Extra + yym174 := z.DecBinary() + _ = yym174 if false { } else { - h.decMapstringExtraValue((*map[string]ExtraValue)(yyv168), d) + h.decMapstringExtraValue((*map[string]ExtraValue)(yyv173), d) } } default: - z.DecStructFieldNotFound(-1, yys163) - } // end switch yys163 - } // end for yyj163 + z.DecStructFieldNotFound(-1, yys168) + } // end switch yys168 + } // end for yyj168 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -1894,16 +1942,16 @@ func (x *UserInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj170 int - var yyb170 bool - var yyhl170 bool = l >= 0 - yyj170++ - if yyhl170 { - yyb170 = yyj170 > l + var yyj175 int + var yyb175 bool + var yyhl175 bool = l >= 0 + yyj175++ + if yyhl175 { + yyb175 = yyj175 > l } else { - yyb170 = r.CheckBreak() + yyb175 = r.CheckBreak() } - if yyb170 { + if yyb175 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1913,13 +1961,13 @@ func (x *UserInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Username = string(r.DecodeString()) } - yyj170++ - if yyhl170 { - yyb170 = yyj170 > l + yyj175++ + if yyhl175 { + yyb175 = yyj175 > l } else { - yyb170 = r.CheckBreak() + yyb175 = r.CheckBreak() } - if yyb170 { + if yyb175 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1929,13 +1977,13 @@ func (x *UserInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.UID = string(r.DecodeString()) } - yyj170++ - if yyhl170 { - yyb170 = yyj170 > l + yyj175++ + if yyhl175 { + yyb175 = yyj175 > l } else { - yyb170 = r.CheckBreak() + yyb175 = r.CheckBreak() } - if yyb170 { + if yyb175 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1943,21 +1991,21 @@ func (x *UserInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Groups = nil } else { - yyv173 := &x.Groups - yym174 := z.DecBinary() - _ = yym174 + yyv178 := &x.Groups + yym179 := z.DecBinary() + _ = yym179 if false { } else { - z.F.DecSliceStringX(yyv173, false, d) + z.F.DecSliceStringX(yyv178, false, d) } } - yyj170++ - if yyhl170 { - yyb170 = yyj170 > l + yyj175++ + if yyhl175 { + yyb175 = yyj175 > l } else { - yyb170 = r.CheckBreak() + yyb175 = r.CheckBreak() } - if yyb170 { + if yyb175 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1965,26 +2013,26 @@ func (x *UserInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Extra = nil } else { - yyv175 := &x.Extra - yym176 := z.DecBinary() - _ = yym176 + yyv180 := &x.Extra + yym181 := z.DecBinary() + _ = yym181 if false { } else { - h.decMapstringExtraValue((*map[string]ExtraValue)(yyv175), d) + h.decMapstringExtraValue((*map[string]ExtraValue)(yyv180), d) } } for { - yyj170++ - if yyhl170 { - yyb170 = yyj170 > l + yyj175++ + if yyhl175 { + yyb175 = yyj175 > l } else { - yyb170 = r.CheckBreak() + yyb175 = r.CheckBreak() } - if yyb170 { + if yyb175 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj170-1, "") + z.DecStructFieldNotFound(yyj175-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1996,8 +2044,8 @@ func (x ExtraValue) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym177 := z.EncBinary() - _ = yym177 + yym182 := z.EncBinary() + _ = yym182 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -2010,8 +2058,8 @@ func (x *ExtraValue) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym178 := z.DecBinary() - _ = yym178 + yym183 := z.DecBinary() + _ = yym183 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -2024,10 +2072,10 @@ func (x codecSelfer1234) encSliceapi_OwnerReference(v []pkg2_api.OwnerReference, z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv179 := range v { + for _, yyv184 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy180 := &yyv179 - yy180.CodecEncodeSelf(e) + yy185 := &yyv184 + yy185.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2037,83 +2085,83 @@ func (x codecSelfer1234) decSliceapi_OwnerReference(v *[]pkg2_api.OwnerReference z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv181 := *v - yyh181, yyl181 := z.DecSliceHelperStart() - var yyc181 bool - if yyl181 == 0 { - if yyv181 == nil { - yyv181 = []pkg2_api.OwnerReference{} - yyc181 = true - } else if len(yyv181) != 0 { - yyv181 = yyv181[:0] - yyc181 = true + yyv186 := *v + yyh186, yyl186 := z.DecSliceHelperStart() + var yyc186 bool + if yyl186 == 0 { + if yyv186 == nil { + yyv186 = []pkg2_api.OwnerReference{} + yyc186 = true + } else if len(yyv186) != 0 { + yyv186 = yyv186[:0] + yyc186 = true } - } else if yyl181 > 0 { - var yyrr181, yyrl181 int - var yyrt181 bool - if yyl181 > cap(yyv181) { + } else if yyl186 > 0 { + var yyrr186, yyrl186 int + var yyrt186 bool + if yyl186 > cap(yyv186) { - yyrg181 := len(yyv181) > 0 - yyv2181 := yyv181 - yyrl181, yyrt181 = z.DecInferLen(yyl181, z.DecBasicHandle().MaxInitLen, 72) - if yyrt181 { - if yyrl181 <= cap(yyv181) { - yyv181 = yyv181[:yyrl181] + yyrg186 := len(yyv186) > 0 + yyv2186 := yyv186 + yyrl186, yyrt186 = z.DecInferLen(yyl186, z.DecBasicHandle().MaxInitLen, 72) + if yyrt186 { + if yyrl186 <= cap(yyv186) { + yyv186 = yyv186[:yyrl186] } else { - yyv181 = make([]pkg2_api.OwnerReference, yyrl181) + yyv186 = make([]pkg2_api.OwnerReference, yyrl186) } } else { - yyv181 = make([]pkg2_api.OwnerReference, yyrl181) + yyv186 = make([]pkg2_api.OwnerReference, yyrl186) } - yyc181 = true - yyrr181 = len(yyv181) - if yyrg181 { - copy(yyv181, yyv2181) + yyc186 = true + yyrr186 = len(yyv186) + if yyrg186 { + copy(yyv186, yyv2186) } - } else if yyl181 != len(yyv181) { - yyv181 = yyv181[:yyl181] - yyc181 = true + } else if yyl186 != len(yyv186) { + yyv186 = yyv186[:yyl186] + yyc186 = true } - yyj181 := 0 - for ; yyj181 < yyrr181; yyj181++ { - yyh181.ElemContainerState(yyj181) + yyj186 := 0 + for ; yyj186 < yyrr186; yyj186++ { + yyh186.ElemContainerState(yyj186) if r.TryDecodeAsNil() { - yyv181[yyj181] = pkg2_api.OwnerReference{} + yyv186[yyj186] = pkg2_api.OwnerReference{} } else { - yyv182 := &yyv181[yyj181] - yyv182.CodecDecodeSelf(d) + yyv187 := &yyv186[yyj186] + yyv187.CodecDecodeSelf(d) } } - if yyrt181 { - for ; yyj181 < yyl181; yyj181++ { - yyv181 = append(yyv181, pkg2_api.OwnerReference{}) - yyh181.ElemContainerState(yyj181) + if yyrt186 { + for ; yyj186 < yyl186; yyj186++ { + yyv186 = append(yyv186, pkg2_api.OwnerReference{}) + yyh186.ElemContainerState(yyj186) if r.TryDecodeAsNil() { - yyv181[yyj181] = pkg2_api.OwnerReference{} + yyv186[yyj186] = pkg2_api.OwnerReference{} } else { - yyv183 := &yyv181[yyj181] - yyv183.CodecDecodeSelf(d) + yyv188 := &yyv186[yyj186] + yyv188.CodecDecodeSelf(d) } } } } else { - yyj181 := 0 - for ; !r.CheckBreak(); yyj181++ { + yyj186 := 0 + for ; !r.CheckBreak(); yyj186++ { - if yyj181 >= len(yyv181) { - yyv181 = append(yyv181, pkg2_api.OwnerReference{}) // var yyz181 pkg2_api.OwnerReference - yyc181 = true + if yyj186 >= len(yyv186) { + yyv186 = append(yyv186, pkg2_api.OwnerReference{}) // var yyz186 pkg2_api.OwnerReference + yyc186 = true } - yyh181.ElemContainerState(yyj181) - if yyj181 < len(yyv181) { + yyh186.ElemContainerState(yyj186) + if yyj186 < len(yyv186) { if r.TryDecodeAsNil() { - yyv181[yyj181] = pkg2_api.OwnerReference{} + yyv186[yyj186] = pkg2_api.OwnerReference{} } else { - yyv184 := &yyv181[yyj181] - yyv184.CodecDecodeSelf(d) + yyv189 := &yyv186[yyj186] + yyv189.CodecDecodeSelf(d) } } else { @@ -2121,17 +2169,17 @@ func (x codecSelfer1234) decSliceapi_OwnerReference(v *[]pkg2_api.OwnerReference } } - if yyj181 < len(yyv181) { - yyv181 = yyv181[:yyj181] - yyc181 = true - } else if yyj181 == 0 && yyv181 == nil { - yyv181 = []pkg2_api.OwnerReference{} - yyc181 = true + if yyj186 < len(yyv186) { + yyv186 = yyv186[:yyj186] + yyc186 = true + } else if yyj186 == 0 && yyv186 == nil { + yyv186 = []pkg2_api.OwnerReference{} + yyc186 = true } } - yyh181.End() - if yyc181 { - *v = yyv181 + yyh186.End() + if yyc186 { + *v = yyv186 } } @@ -2140,19 +2188,19 @@ func (x codecSelfer1234) encMapstringExtraValue(v map[string]ExtraValue, e *code z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) - for yyk185, yyv185 := range v { + for yyk190, yyv190 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym186 := z.EncBinary() - _ = yym186 + yym191 := z.EncBinary() + _ = yym191 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk185)) + r.EncodeString(codecSelferC_UTF81234, string(yyk190)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv185 == nil { + if yyv190 == nil { r.EncodeNil() } else { - yyv185.CodecEncodeSelf(e) + yyv190.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -2163,70 +2211,70 @@ func (x codecSelfer1234) decMapstringExtraValue(v *map[string]ExtraValue, d *cod z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv187 := *v - yyl187 := r.ReadMapStart() - yybh187 := z.DecBasicHandle() - if yyv187 == nil { - yyrl187, _ := z.DecInferLen(yyl187, yybh187.MaxInitLen, 40) - yyv187 = make(map[string]ExtraValue, yyrl187) - *v = yyv187 + yyv192 := *v + yyl192 := r.ReadMapStart() + yybh192 := z.DecBasicHandle() + if yyv192 == nil { + yyrl192, _ := z.DecInferLen(yyl192, yybh192.MaxInitLen, 40) + yyv192 = make(map[string]ExtraValue, yyrl192) + *v = yyv192 } - var yymk187 string - var yymv187 ExtraValue - var yymg187 bool - if yybh187.MapValueReset { - yymg187 = true + var yymk192 string + var yymv192 ExtraValue + var yymg192 bool + if yybh192.MapValueReset { + yymg192 = true } - if yyl187 > 0 { - for yyj187 := 0; yyj187 < yyl187; yyj187++ { + if yyl192 > 0 { + for yyj192 := 0; yyj192 < yyl192; yyj192++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk187 = "" + yymk192 = "" } else { - yymk187 = string(r.DecodeString()) + yymk192 = string(r.DecodeString()) } - if yymg187 { - yymv187 = yyv187[yymk187] + if yymg192 { + yymv192 = yyv192[yymk192] } else { - yymv187 = nil + yymv192 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv187 = nil + yymv192 = nil } else { - yyv189 := &yymv187 - yyv189.CodecDecodeSelf(d) + yyv194 := &yymv192 + yyv194.CodecDecodeSelf(d) } - if yyv187 != nil { - yyv187[yymk187] = yymv187 + if yyv192 != nil { + yyv192[yymk192] = yymv192 } } - } else if yyl187 < 0 { - for yyj187 := 0; !r.CheckBreak(); yyj187++ { + } else if yyl192 < 0 { + for yyj192 := 0; !r.CheckBreak(); yyj192++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk187 = "" + yymk192 = "" } else { - yymk187 = string(r.DecodeString()) + yymk192 = string(r.DecodeString()) } - if yymg187 { - yymv187 = yyv187[yymk187] + if yymg192 { + yymv192 = yyv192[yymk192] } else { - yymv187 = nil + yymv192 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv187 = nil + yymv192 = nil } else { - yyv191 := &yymv187 - yyv191.CodecDecodeSelf(d) + yyv196 := &yymv192 + yyv196.CodecDecodeSelf(d) } - if yyv187 != nil { - yyv187[yymk187] = yymv187 + if yyv192 != nil { + yyv192[yymk192] = yymv192 } } } // else len==0: TODO: Should we clear map entries? @@ -2238,13 +2286,13 @@ func (x codecSelfer1234) encExtraValue(v ExtraValue, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv192 := range v { + for _, yyv197 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym193 := z.EncBinary() - _ = yym193 + yym198 := z.EncBinary() + _ = yym198 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv192)) + r.EncodeString(codecSelferC_UTF81234, string(yyv197)) } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -2255,75 +2303,75 @@ func (x codecSelfer1234) decExtraValue(v *ExtraValue, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv194 := *v - yyh194, yyl194 := z.DecSliceHelperStart() - var yyc194 bool - if yyl194 == 0 { - if yyv194 == nil { - yyv194 = []string{} - yyc194 = true - } else if len(yyv194) != 0 { - yyv194 = yyv194[:0] - yyc194 = true + yyv199 := *v + yyh199, yyl199 := z.DecSliceHelperStart() + var yyc199 bool + if yyl199 == 0 { + if yyv199 == nil { + yyv199 = []string{} + yyc199 = true + } else if len(yyv199) != 0 { + yyv199 = yyv199[:0] + yyc199 = true } - } else if yyl194 > 0 { - var yyrr194, yyrl194 int - var yyrt194 bool - if yyl194 > cap(yyv194) { + } else if yyl199 > 0 { + var yyrr199, yyrl199 int + var yyrt199 bool + if yyl199 > cap(yyv199) { - yyrl194, yyrt194 = z.DecInferLen(yyl194, z.DecBasicHandle().MaxInitLen, 16) - if yyrt194 { - if yyrl194 <= cap(yyv194) { - yyv194 = yyv194[:yyrl194] + yyrl199, yyrt199 = z.DecInferLen(yyl199, z.DecBasicHandle().MaxInitLen, 16) + if yyrt199 { + if yyrl199 <= cap(yyv199) { + yyv199 = yyv199[:yyrl199] } else { - yyv194 = make([]string, yyrl194) + yyv199 = make([]string, yyrl199) } } else { - yyv194 = make([]string, yyrl194) + yyv199 = make([]string, yyrl199) } - yyc194 = true - yyrr194 = len(yyv194) - } else if yyl194 != len(yyv194) { - yyv194 = yyv194[:yyl194] - yyc194 = true + yyc199 = true + yyrr199 = len(yyv199) + } else if yyl199 != len(yyv199) { + yyv199 = yyv199[:yyl199] + yyc199 = true } - yyj194 := 0 - for ; yyj194 < yyrr194; yyj194++ { - yyh194.ElemContainerState(yyj194) + yyj199 := 0 + for ; yyj199 < yyrr199; yyj199++ { + yyh199.ElemContainerState(yyj199) if r.TryDecodeAsNil() { - yyv194[yyj194] = "" + yyv199[yyj199] = "" } else { - yyv194[yyj194] = string(r.DecodeString()) + yyv199[yyj199] = string(r.DecodeString()) } } - if yyrt194 { - for ; yyj194 < yyl194; yyj194++ { - yyv194 = append(yyv194, "") - yyh194.ElemContainerState(yyj194) + if yyrt199 { + for ; yyj199 < yyl199; yyj199++ { + yyv199 = append(yyv199, "") + yyh199.ElemContainerState(yyj199) if r.TryDecodeAsNil() { - yyv194[yyj194] = "" + yyv199[yyj199] = "" } else { - yyv194[yyj194] = string(r.DecodeString()) + yyv199[yyj199] = string(r.DecodeString()) } } } } else { - yyj194 := 0 - for ; !r.CheckBreak(); yyj194++ { + yyj199 := 0 + for ; !r.CheckBreak(); yyj199++ { - if yyj194 >= len(yyv194) { - yyv194 = append(yyv194, "") // var yyz194 string - yyc194 = true + if yyj199 >= len(yyv199) { + yyv199 = append(yyv199, "") // var yyz199 string + yyc199 = true } - yyh194.ElemContainerState(yyj194) - if yyj194 < len(yyv194) { + yyh199.ElemContainerState(yyj199) + if yyj199 < len(yyv199) { if r.TryDecodeAsNil() { - yyv194[yyj194] = "" + yyv199[yyj199] = "" } else { - yyv194[yyj194] = string(r.DecodeString()) + yyv199[yyj199] = string(r.DecodeString()) } } else { @@ -2331,16 +2379,16 @@ func (x codecSelfer1234) decExtraValue(v *ExtraValue, d *codec1978.Decoder) { } } - if yyj194 < len(yyv194) { - yyv194 = yyv194[:yyj194] - yyc194 = true - } else if yyj194 == 0 && yyv194 == nil { - yyv194 = []string{} - yyc194 = true + if yyj199 < len(yyv199) { + yyv199 = yyv199[:yyj199] + yyc199 = true + } else if yyj199 == 0 && yyv199 == nil { + yyv199 = []string{} + yyc199 = true } } - yyh194.End() - if yyc194 { - *v = yyv194 + yyh199.End() + if yyc199 { + *v = yyv199 } } diff --git a/1.4/pkg/apis/authentication/types.go b/1.4/pkg/apis/authentication/types.go index b0ffe606..eceb509d 100644 --- a/1.4/pkg/apis/authentication/types.go +++ b/1.4/pkg/apis/authentication/types.go @@ -21,6 +21,21 @@ import ( "k8s.io/client-go/1.4/pkg/api/unversioned" ) +const ( + // ImpersonateUserHeader is used to impersonate a particular user during an API server request + ImpersonateUserHeader = "Impersonate-User" + + // ImpersonateGroupHeader is used to impersonate a particular group during an API server request. + // It can be repeated multiplied times for multiple groups. + ImpersonateGroupHeader = "Impersonate-Group" + + // ImpersonateUserExtraHeaderPrefix is a prefix for any header used to impersonate an entry in the + // extra map[string][]string for user.Info. The key will be every after the prefix. + // It can be repeated multiplied times for multiple map keys and the same key can be repeated multiple + // times to have multiple elements in the slice under a single key + ImpersonateUserExtraHeaderPrefix = "Impersonate-Extra-" +) + // +genclient=true // +nonNamespaced=true // +noMethods=true diff --git a/1.4/pkg/apis/authorization/register.go b/1.4/pkg/apis/authorization/register.go index 1c4006fd..20bf37b4 100644 --- a/1.4/pkg/apis/authorization/register.go +++ b/1.4/pkg/apis/authorization/register.go @@ -27,12 +27,12 @@ const GroupName = "authorization.k8s.io" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} -// Kind takes an unqualified kind and returns back a Group qualified GroupKind +// Kind takes an unqualified kind and returns a Group qualified GroupKind func Kind(kind string) unversioned.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() } -// Resource takes an unqualified resource and returns back a Group qualified GroupResource +// Resource takes an unqualified resource and returns a Group qualified GroupResource func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } diff --git a/1.4/pkg/apis/authorization/types.generated.go b/1.4/pkg/apis/authorization/types.generated.go index 1e47f4be..fe1206e4 100644 --- a/1.4/pkg/apis/authorization/types.generated.go +++ b/1.4/pkg/apis/authorization/types.generated.go @@ -85,7 +85,7 @@ func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray - var yyq2 [18]bool + var yyq2 [19]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false yyq2[0] = x.Kind != "" @@ -104,9 +104,10 @@ func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { yyq2[13] = len(x.Annotations) != 0 yyq2[14] = len(x.OwnerReferences) != 0 yyq2[15] = len(x.Finalizers) != 0 + yyq2[16] = x.ClusterName != "" var yynn2 int if yyr2 || yy2arr2 { - r.EncodeArrayStart(18) + r.EncodeArrayStart(19) } else { yynn2 = 2 for _, b := range yyq2 { @@ -621,25 +622,50 @@ func (x *SubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy56 := &x.Spec - yy56.CodecEncodeSelf(e) + if yyq2[16] { + yym56 := z.EncBinary() + _ = yym56 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym57 := z.EncBinary() + _ = yym57 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy59 := &x.Spec + yy59.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy57 := &x.Spec - yy57.CodecEncodeSelf(e) + yy60 := &x.Spec + yy60.CodecEncodeSelf(e) } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy59 := &x.Status - yy59.CodecEncodeSelf(e) + yy62 := &x.Status + yy62.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy60 := &x.Status - yy60.CodecEncodeSelf(e) + yy63 := &x.Status + yy63.CodecEncodeSelf(e) } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -654,25 +680,25 @@ func (x *SubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym61 := z.DecBinary() - _ = yym61 + yym64 := z.DecBinary() + _ = yym64 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct62 := r.ContainerType() - if yyct62 == codecSelferValueTypeMap1234 { - yyl62 := r.ReadMapStart() - if yyl62 == 0 { + yyct65 := r.ContainerType() + if yyct65 == codecSelferValueTypeMap1234 { + yyl65 := r.ReadMapStart() + if yyl65 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl62, d) + x.codecDecodeSelfFromMap(yyl65, d) } - } else if yyct62 == codecSelferValueTypeArray1234 { - yyl62 := r.ReadArrayStart() - if yyl62 == 0 { + } else if yyct65 == codecSelferValueTypeArray1234 { + yyl65 := r.ReadArrayStart() + if yyl65 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl62, d) + x.codecDecodeSelfFromArray(yyl65, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -684,12 +710,12 @@ func (x *SubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys63Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys63Slc - var yyhl63 bool = l >= 0 - for yyj63 := 0; ; yyj63++ { - if yyhl63 { - if yyj63 >= l { + var yys66Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys66Slc + var yyhl66 bool = l >= 0 + for yyj66 := 0; ; yyj66++ { + if yyhl66 { + if yyj66 >= l { break } } else { @@ -698,10 +724,10 @@ func (x *SubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys63Slc = r.DecodeBytes(yys63Slc, true, true) - yys63 := string(yys63Slc) + yys66Slc = r.DecodeBytes(yys66Slc, true, true) + yys66 := string(yys66Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys63 { + switch yys66 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -760,17 +786,17 @@ func (x *SubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.CreationTimestamp = pkg1_unversioned.Time{} } else { - yyv73 := &x.CreationTimestamp - yym74 := z.DecBinary() - _ = yym74 + yyv76 := &x.CreationTimestamp + yym77 := z.DecBinary() + _ = yym77 if false { - } else if z.HasExtensions() && z.DecExt(yyv73) { - } else if yym74 { - z.DecBinaryUnmarshal(yyv73) - } else if !yym74 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv73) + } else if z.HasExtensions() && z.DecExt(yyv76) { + } else if yym77 { + z.DecBinaryUnmarshal(yyv76) + } else if !yym77 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv76) } else { - z.DecFallback(yyv73, false) + z.DecFallback(yyv76, false) } } case "deletionTimestamp": @@ -785,13 +811,13 @@ func (x *SubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg1_unversioned.Time) } - yym76 := z.DecBinary() - _ = yym76 + yym79 := z.DecBinary() + _ = yym79 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym76 { + } else if yym79 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym76 && z.IsJSONHandle() { + } else if !yym79 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) @@ -809,8 +835,8 @@ func (x *SubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } - yym78 := z.DecBinary() - _ = yym78 + yym81 := z.DecBinary() + _ = yym81 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -820,68 +846,74 @@ func (x *SubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Labels = nil } else { - yyv79 := &x.Labels - yym80 := z.DecBinary() - _ = yym80 + yyv82 := &x.Labels + yym83 := z.DecBinary() + _ = yym83 if false { } else { - z.F.DecMapStringStringX(yyv79, false, d) + z.F.DecMapStringStringX(yyv82, false, d) } } case "annotations": if r.TryDecodeAsNil() { x.Annotations = nil } else { - yyv81 := &x.Annotations - yym82 := z.DecBinary() - _ = yym82 + yyv84 := &x.Annotations + yym85 := z.DecBinary() + _ = yym85 if false { } else { - z.F.DecMapStringStringX(yyv81, false, d) + z.F.DecMapStringStringX(yyv84, false, d) } } case "ownerReferences": if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { - yyv83 := &x.OwnerReferences - yym84 := z.DecBinary() - _ = yym84 + yyv86 := &x.OwnerReferences + yym87 := z.DecBinary() + _ = yym87 if false { } else { - h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv83), d) + h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv86), d) } } case "finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv85 := &x.Finalizers - yym86 := z.DecBinary() - _ = yym86 + yyv88 := &x.Finalizers + yym89 := z.DecBinary() + _ = yym89 if false { } else { - z.F.DecSliceStringX(yyv85, false, d) + z.F.DecSliceStringX(yyv88, false, d) } } + case "clusterName": + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } case "Spec": if r.TryDecodeAsNil() { x.Spec = SubjectAccessReviewSpec{} } else { - yyv87 := &x.Spec - yyv87.CodecDecodeSelf(d) + yyv91 := &x.Spec + yyv91.CodecDecodeSelf(d) } case "Status": if r.TryDecodeAsNil() { x.Status = SubjectAccessReviewStatus{} } else { - yyv88 := &x.Status - yyv88.CodecDecodeSelf(d) + yyv92 := &x.Status + yyv92.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys63) - } // end switch yys63 - } // end for yyj63 + z.DecStructFieldNotFound(-1, yys66) + } // end switch yys66 + } // end for yyj66 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -889,16 +921,16 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj89 int - var yyb89 bool - var yyhl89 bool = l >= 0 - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + var yyj93 int + var yyb93 bool + var yyhl93 bool = l >= 0 + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -908,13 +940,13 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Kind = string(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -924,13 +956,13 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.APIVersion = string(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -940,13 +972,13 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Name = string(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -956,13 +988,13 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.GenerateName = string(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -972,13 +1004,13 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Namespace = string(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -988,13 +1020,13 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.SelfLink = string(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1004,13 +1036,13 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.UID = pkg3_types.UID(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1020,13 +1052,13 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.ResourceVersion = string(r.DecodeString()) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1036,13 +1068,13 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.Generation = int64(r.DecodeInt(64)) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1050,29 +1082,29 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.CreationTimestamp = pkg1_unversioned.Time{} } else { - yyv99 := &x.CreationTimestamp - yym100 := z.DecBinary() - _ = yym100 + yyv103 := &x.CreationTimestamp + yym104 := z.DecBinary() + _ = yym104 if false { - } else if z.HasExtensions() && z.DecExt(yyv99) { - } else if yym100 { - z.DecBinaryUnmarshal(yyv99) - } else if !yym100 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv99) + } else if z.HasExtensions() && z.DecExt(yyv103) { + } else if yym104 { + z.DecBinaryUnmarshal(yyv103) + } else if !yym104 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv103) } else { - z.DecFallback(yyv99, false) + z.DecFallback(yyv103, false) } } if x.ObjectMeta.DeletionTimestamp == nil { x.ObjectMeta.DeletionTimestamp = new(pkg1_unversioned.Time) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1085,13 +1117,13 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg1_unversioned.Time) } - yym102 := z.DecBinary() - _ = yym102 + yym106 := z.DecBinary() + _ = yym106 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym102 { + } else if yym106 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym102 && z.IsJSONHandle() { + } else if !yym106 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) @@ -1100,13 +1132,13 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod if x.ObjectMeta.DeletionGracePeriodSeconds == nil { x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1119,20 +1151,20 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } - yym104 := z.DecBinary() - _ = yym104 + yym108 := z.DecBinary() + _ = yym108 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1140,21 +1172,21 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Labels = nil } else { - yyv105 := &x.Labels - yym106 := z.DecBinary() - _ = yym106 + yyv109 := &x.Labels + yym110 := z.DecBinary() + _ = yym110 if false { } else { - z.F.DecMapStringStringX(yyv105, false, d) + z.F.DecMapStringStringX(yyv109, false, d) } } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1162,21 +1194,21 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Annotations = nil } else { - yyv107 := &x.Annotations - yym108 := z.DecBinary() - _ = yym108 + yyv111 := &x.Annotations + yym112 := z.DecBinary() + _ = yym112 if false { } else { - z.F.DecMapStringStringX(yyv107, false, d) + z.F.DecMapStringStringX(yyv111, false, d) } } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1184,21 +1216,21 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { - yyv109 := &x.OwnerReferences - yym110 := z.DecBinary() - _ = yym110 + yyv113 := &x.OwnerReferences + yym114 := z.DecBinary() + _ = yym114 if false { } else { - h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv109), d) + h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv113), d) } } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1206,21 +1238,37 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv111 := &x.Finalizers - yym112 := z.DecBinary() - _ = yym112 + yyv115 := &x.Finalizers + yym116 := z.DecBinary() + _ = yym116 if false { } else { - z.F.DecSliceStringX(yyv111, false, d) + z.F.DecSliceStringX(yyv115, false, d) } } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1228,16 +1276,16 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Spec = SubjectAccessReviewSpec{} } else { - yyv113 := &x.Spec - yyv113.CodecDecodeSelf(d) + yyv118 := &x.Spec + yyv118.CodecDecodeSelf(d) } - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -1245,21 +1293,21 @@ func (x *SubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.Status = SubjectAccessReviewStatus{} } else { - yyv114 := &x.Status - yyv114.CodecDecodeSelf(d) + yyv119 := &x.Status + yyv119.CodecDecodeSelf(d) } for { - yyj89++ - if yyhl89 { - yyb89 = yyj89 > l + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l } else { - yyb89 = r.CheckBreak() + yyb93 = r.CheckBreak() } - if yyb89 { + if yyb93 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj89-1, "") + z.DecStructFieldNotFound(yyj93-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1271,50 +1319,51 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym115 := z.EncBinary() - _ = yym115 + yym120 := z.EncBinary() + _ = yym120 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep116 := !z.EncBinary() - yy2arr116 := z.EncBasicHandle().StructToArray - var yyq116 [18]bool - _, _, _ = yysep116, yyq116, yy2arr116 - const yyr116 bool = false - yyq116[0] = x.Kind != "" - yyq116[1] = x.APIVersion != "" - yyq116[2] = x.Name != "" - yyq116[3] = x.GenerateName != "" - yyq116[4] = x.Namespace != "" - yyq116[5] = x.SelfLink != "" - yyq116[6] = x.UID != "" - yyq116[7] = x.ResourceVersion != "" - yyq116[8] = x.Generation != 0 - yyq116[9] = true - yyq116[10] = x.ObjectMeta.DeletionTimestamp != nil && x.DeletionTimestamp != nil - yyq116[11] = x.ObjectMeta.DeletionGracePeriodSeconds != nil && x.DeletionGracePeriodSeconds != nil - yyq116[12] = len(x.Labels) != 0 - yyq116[13] = len(x.Annotations) != 0 - yyq116[14] = len(x.OwnerReferences) != 0 - yyq116[15] = len(x.Finalizers) != 0 - var yynn116 int - if yyr116 || yy2arr116 { - r.EncodeArrayStart(18) + yysep121 := !z.EncBinary() + yy2arr121 := z.EncBasicHandle().StructToArray + var yyq121 [19]bool + _, _, _ = yysep121, yyq121, yy2arr121 + const yyr121 bool = false + yyq121[0] = x.Kind != "" + yyq121[1] = x.APIVersion != "" + yyq121[2] = x.Name != "" + yyq121[3] = x.GenerateName != "" + yyq121[4] = x.Namespace != "" + yyq121[5] = x.SelfLink != "" + yyq121[6] = x.UID != "" + yyq121[7] = x.ResourceVersion != "" + yyq121[8] = x.Generation != 0 + yyq121[9] = true + yyq121[10] = x.ObjectMeta.DeletionTimestamp != nil && x.DeletionTimestamp != nil + yyq121[11] = x.ObjectMeta.DeletionGracePeriodSeconds != nil && x.DeletionGracePeriodSeconds != nil + yyq121[12] = len(x.Labels) != 0 + yyq121[13] = len(x.Annotations) != 0 + yyq121[14] = len(x.OwnerReferences) != 0 + yyq121[15] = len(x.Finalizers) != 0 + yyq121[16] = x.ClusterName != "" + var yynn121 int + if yyr121 || yy2arr121 { + r.EncodeArrayStart(19) } else { - yynn116 = 2 - for _, b := range yyq116 { + yynn121 = 2 + for _, b := range yyq121 { if b { - yynn116++ + yynn121++ } } - r.EncodeMapStart(yynn116) - yynn116 = 0 + r.EncodeMapStart(yynn121) + yynn121 = 0 } - if yyr116 || yy2arr116 { + if yyr121 || yy2arr121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[0] { - yym118 := z.EncBinary() - _ = yym118 + if yyq121[0] { + yym123 := z.EncBinary() + _ = yym123 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -1323,176 +1372,176 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq116[0] { + if yyq121[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym119 := z.EncBinary() - _ = yym119 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr116 || yy2arr116 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[1] { - yym121 := z.EncBinary() - _ = yym121 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq116[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym122 := z.EncBinary() - _ = yym122 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr116 || yy2arr116 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[2] { yym124 := z.EncBinary() _ = yym124 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[1] { + yym126 := z.EncBinary() + _ = yym126 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq116[2] { + if yyq121[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym125 := z.EncBinary() - _ = yym125 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - } - if yyr116 || yy2arr116 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[3] { yym127 := z.EncBinary() _ = yym127 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[2] { + yym129 := z.EncBinary() + _ = yym129 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq116[3] { + if yyq121[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("generateName")) + r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym128 := z.EncBinary() - _ = yym128 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } - } - if yyr116 || yy2arr116 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[4] { yym130 := z.EncBinary() _ = yym130 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[3] { + yym132 := z.EncBinary() + _ = yym132 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq116[4] { + if yyq121[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("namespace")) + r.EncodeString(codecSelferC_UTF81234, string("generateName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym131 := z.EncBinary() - _ = yym131 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } - } - if yyr116 || yy2arr116 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[5] { yym133 := z.EncBinary() _ = yym133 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) + r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[4] { + yym135 := z.EncBinary() + _ = yym135 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq116[5] { + if yyq121[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selfLink")) + r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym134 := z.EncBinary() - _ = yym134 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) - } - } - } - if yyr116 || yy2arr116 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[6] { yym136 := z.EncBinary() _ = yym136 if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[5] { + yym138 := z.EncBinary() + _ = yym138 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq116[6] { + if yyq121[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("uid")) + r.EncodeString(codecSelferC_UTF81234, string("selfLink")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym137 := z.EncBinary() - _ = yym137 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } - } - if yyr116 || yy2arr116 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[7] { yym139 := z.EncBinary() _ = yym139 if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[6] { + yym141 := z.EncBinary() + _ = yym141 + if false { + } else if z.HasExtensions() && z.EncExt(x.UID) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq121[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("uid")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym142 := z.EncBinary() + _ = yym142 + if false { + } else if z.HasExtensions() && z.EncExt(x.UID) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq121[7] { + yym144 := z.EncBinary() + _ = yym144 + if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } @@ -1500,23 +1549,23 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq116[7] { + if yyq121[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym140 := z.EncBinary() - _ = yym140 + yym145 := z.EncBinary() + _ = yym145 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } - if yyr116 || yy2arr116 { + if yyr121 || yy2arr121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[8] { - yym142 := z.EncBinary() - _ = yym142 + if yyq121[8] { + yym147 := z.EncBinary() + _ = yym147 if false { } else { r.EncodeInt(int64(x.Generation)) @@ -1525,77 +1574,77 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq116[8] { + if yyq121[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("generation")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym143 := z.EncBinary() - _ = yym143 + yym148 := z.EncBinary() + _ = yym148 if false { } else { r.EncodeInt(int64(x.Generation)) } } } - if yyr116 || yy2arr116 { + if yyr121 || yy2arr121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[9] { - yy145 := &x.CreationTimestamp - yym146 := z.EncBinary() - _ = yym146 + if yyq121[9] { + yy150 := &x.CreationTimestamp + yym151 := z.EncBinary() + _ = yym151 if false { - } else if z.HasExtensions() && z.EncExt(yy145) { - } else if yym146 { - z.EncBinaryMarshal(yy145) - } else if !yym146 && z.IsJSONHandle() { - z.EncJSONMarshal(yy145) + } else if z.HasExtensions() && z.EncExt(yy150) { + } else if yym151 { + z.EncBinaryMarshal(yy150) + } else if !yym151 && z.IsJSONHandle() { + z.EncJSONMarshal(yy150) } else { - z.EncFallback(yy145) + z.EncFallback(yy150) } } else { r.EncodeNil() } } else { - if yyq116[9] { + if yyq121[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy147 := &x.CreationTimestamp - yym148 := z.EncBinary() - _ = yym148 + yy152 := &x.CreationTimestamp + yym153 := z.EncBinary() + _ = yym153 if false { - } else if z.HasExtensions() && z.EncExt(yy147) { - } else if yym148 { - z.EncBinaryMarshal(yy147) - } else if !yym148 && z.IsJSONHandle() { - z.EncJSONMarshal(yy147) + } else if z.HasExtensions() && z.EncExt(yy152) { + } else if yym153 { + z.EncBinaryMarshal(yy152) + } else if !yym153 && z.IsJSONHandle() { + z.EncJSONMarshal(yy152) } else { - z.EncFallback(yy147) + z.EncFallback(yy152) } } } - var yyn149 bool + var yyn154 bool if x.ObjectMeta.DeletionTimestamp == nil { - yyn149 = true - goto LABEL149 + yyn154 = true + goto LABEL154 } - LABEL149: - if yyr116 || yy2arr116 { - if yyn149 { + LABEL154: + if yyr121 || yy2arr121 { + if yyn154 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[10] { + if yyq121[10] { if x.DeletionTimestamp == nil { r.EncodeNil() } else { - yym150 := z.EncBinary() - _ = yym150 + yym155 := z.EncBinary() + _ = yym155 if false { } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym150 { + } else if yym155 { z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym150 && z.IsJSONHandle() { + } else if !yym155 && z.IsJSONHandle() { z.EncJSONMarshal(x.DeletionTimestamp) } else { z.EncFallback(x.DeletionTimestamp) @@ -1606,23 +1655,23 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq116[10] { + if yyq121[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn149 { + if yyn154 { r.EncodeNil() } else { if x.DeletionTimestamp == nil { r.EncodeNil() } else { - yym151 := z.EncBinary() - _ = yym151 + yym156 := z.EncBinary() + _ = yym156 if false { } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym151 { + } else if yym156 { z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym151 && z.IsJSONHandle() { + } else if !yym156 && z.IsJSONHandle() { z.EncJSONMarshal(x.DeletionTimestamp) } else { z.EncFallback(x.DeletionTimestamp) @@ -1631,27 +1680,27 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn152 bool + var yyn157 bool if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - yyn152 = true - goto LABEL152 + yyn157 = true + goto LABEL157 } - LABEL152: - if yyr116 || yy2arr116 { - if yyn152 { + LABEL157: + if yyr121 || yy2arr121 { + if yyn157 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[11] { + if yyq121[11] { if x.DeletionGracePeriodSeconds == nil { r.EncodeNil() } else { - yy153 := *x.DeletionGracePeriodSeconds - yym154 := z.EncBinary() - _ = yym154 + yy158 := *x.DeletionGracePeriodSeconds + yym159 := z.EncBinary() + _ = yym159 if false { } else { - r.EncodeInt(int64(yy153)) + r.EncodeInt(int64(yy158)) } } } else { @@ -1659,35 +1708,35 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq116[11] { + if yyq121[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn152 { + if yyn157 { r.EncodeNil() } else { if x.DeletionGracePeriodSeconds == nil { r.EncodeNil() } else { - yy155 := *x.DeletionGracePeriodSeconds - yym156 := z.EncBinary() - _ = yym156 + yy160 := *x.DeletionGracePeriodSeconds + yym161 := z.EncBinary() + _ = yym161 if false { } else { - r.EncodeInt(int64(yy155)) + r.EncodeInt(int64(yy160)) } } } } } - if yyr116 || yy2arr116 { + if yyr121 || yy2arr121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[12] { + if yyq121[12] { if x.Labels == nil { r.EncodeNil() } else { - yym158 := z.EncBinary() - _ = yym158 + yym163 := z.EncBinary() + _ = yym163 if false { } else { z.F.EncMapStringStringV(x.Labels, false, e) @@ -1697,15 +1746,15 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq116[12] { + if yyq121[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("labels")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Labels == nil { r.EncodeNil() } else { - yym159 := z.EncBinary() - _ = yym159 + yym164 := z.EncBinary() + _ = yym164 if false { } else { z.F.EncMapStringStringV(x.Labels, false, e) @@ -1713,14 +1762,14 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr116 || yy2arr116 { + if yyr121 || yy2arr121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[13] { + if yyq121[13] { if x.Annotations == nil { r.EncodeNil() } else { - yym161 := z.EncBinary() - _ = yym161 + yym166 := z.EncBinary() + _ = yym166 if false { } else { z.F.EncMapStringStringV(x.Annotations, false, e) @@ -1730,15 +1779,15 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq116[13] { + if yyq121[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("annotations")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Annotations == nil { r.EncodeNil() } else { - yym162 := z.EncBinary() - _ = yym162 + yym167 := z.EncBinary() + _ = yym167 if false { } else { z.F.EncMapStringStringV(x.Annotations, false, e) @@ -1746,14 +1795,14 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr116 || yy2arr116 { + if yyr121 || yy2arr121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[14] { + if yyq121[14] { if x.OwnerReferences == nil { r.EncodeNil() } else { - yym164 := z.EncBinary() - _ = yym164 + yym169 := z.EncBinary() + _ = yym169 if false { } else { h.encSliceapi_OwnerReference(([]pkg2_api.OwnerReference)(x.OwnerReferences), e) @@ -1763,15 +1812,15 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq116[14] { + if yyq121[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.OwnerReferences == nil { r.EncodeNil() } else { - yym165 := z.EncBinary() - _ = yym165 + yym170 := z.EncBinary() + _ = yym170 if false { } else { h.encSliceapi_OwnerReference(([]pkg2_api.OwnerReference)(x.OwnerReferences), e) @@ -1779,14 +1828,14 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr116 || yy2arr116 { + if yyr121 || yy2arr121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq116[15] { + if yyq121[15] { if x.Finalizers == nil { r.EncodeNil() } else { - yym167 := z.EncBinary() - _ = yym167 + yym172 := z.EncBinary() + _ = yym172 if false { } else { z.F.EncSliceStringV(x.Finalizers, false, e) @@ -1796,15 +1845,15 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq116[15] { + if yyq121[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finalizers")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Finalizers == nil { r.EncodeNil() } else { - yym168 := z.EncBinary() - _ = yym168 + yym173 := z.EncBinary() + _ = yym173 if false { } else { z.F.EncSliceStringV(x.Finalizers, false, e) @@ -1812,29 +1861,54 @@ func (x *SelfSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr116 || yy2arr116 { + if yyr121 || yy2arr121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy170 := &x.Spec - yy170.CodecEncodeSelf(e) + if yyq121[16] { + yym175 := z.EncBinary() + _ = yym175 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq121[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym176 := z.EncBinary() + _ = yym176 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy178 := &x.Spec + yy178.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy171 := &x.Spec - yy171.CodecEncodeSelf(e) + yy179 := &x.Spec + yy179.CodecEncodeSelf(e) } - if yyr116 || yy2arr116 { + if yyr121 || yy2arr121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy173 := &x.Status - yy173.CodecEncodeSelf(e) + yy181 := &x.Status + yy181.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy174 := &x.Status - yy174.CodecEncodeSelf(e) + yy182 := &x.Status + yy182.CodecEncodeSelf(e) } - if yyr116 || yy2arr116 { + if yyr121 || yy2arr121 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -1847,25 +1921,25 @@ func (x *SelfSubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym175 := z.DecBinary() - _ = yym175 + yym183 := z.DecBinary() + _ = yym183 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct176 := r.ContainerType() - if yyct176 == codecSelferValueTypeMap1234 { - yyl176 := r.ReadMapStart() - if yyl176 == 0 { + yyct184 := r.ContainerType() + if yyct184 == codecSelferValueTypeMap1234 { + yyl184 := r.ReadMapStart() + if yyl184 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl176, d) + x.codecDecodeSelfFromMap(yyl184, d) } - } else if yyct176 == codecSelferValueTypeArray1234 { - yyl176 := r.ReadArrayStart() - if yyl176 == 0 { + } else if yyct184 == codecSelferValueTypeArray1234 { + yyl184 := r.ReadArrayStart() + if yyl184 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl176, d) + x.codecDecodeSelfFromArray(yyl184, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -1877,12 +1951,12 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys177Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys177Slc - var yyhl177 bool = l >= 0 - for yyj177 := 0; ; yyj177++ { - if yyhl177 { - if yyj177 >= l { + var yys185Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys185Slc + var yyhl185 bool = l >= 0 + for yyj185 := 0; ; yyj185++ { + if yyhl185 { + if yyj185 >= l { break } } else { @@ -1891,10 +1965,10 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys177Slc = r.DecodeBytes(yys177Slc, true, true) - yys177 := string(yys177Slc) + yys185Slc = r.DecodeBytes(yys185Slc, true, true) + yys185 := string(yys185Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys177 { + switch yys185 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -1953,17 +2027,17 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.CreationTimestamp = pkg1_unversioned.Time{} } else { - yyv187 := &x.CreationTimestamp - yym188 := z.DecBinary() - _ = yym188 + yyv195 := &x.CreationTimestamp + yym196 := z.DecBinary() + _ = yym196 if false { - } else if z.HasExtensions() && z.DecExt(yyv187) { - } else if yym188 { - z.DecBinaryUnmarshal(yyv187) - } else if !yym188 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv187) + } else if z.HasExtensions() && z.DecExt(yyv195) { + } else if yym196 { + z.DecBinaryUnmarshal(yyv195) + } else if !yym196 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv195) } else { - z.DecFallback(yyv187, false) + z.DecFallback(yyv195, false) } } case "deletionTimestamp": @@ -1978,13 +2052,13 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Dec if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg1_unversioned.Time) } - yym190 := z.DecBinary() - _ = yym190 + yym198 := z.DecBinary() + _ = yym198 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym190 { + } else if yym198 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym190 && z.IsJSONHandle() { + } else if !yym198 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) @@ -2002,8 +2076,8 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Dec if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } - yym192 := z.DecBinary() - _ = yym192 + yym200 := z.DecBinary() + _ = yym200 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -2013,68 +2087,74 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Labels = nil } else { - yyv193 := &x.Labels - yym194 := z.DecBinary() - _ = yym194 + yyv201 := &x.Labels + yym202 := z.DecBinary() + _ = yym202 if false { } else { - z.F.DecMapStringStringX(yyv193, false, d) + z.F.DecMapStringStringX(yyv201, false, d) } } case "annotations": if r.TryDecodeAsNil() { x.Annotations = nil } else { - yyv195 := &x.Annotations - yym196 := z.DecBinary() - _ = yym196 + yyv203 := &x.Annotations + yym204 := z.DecBinary() + _ = yym204 if false { } else { - z.F.DecMapStringStringX(yyv195, false, d) + z.F.DecMapStringStringX(yyv203, false, d) } } case "ownerReferences": if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { - yyv197 := &x.OwnerReferences - yym198 := z.DecBinary() - _ = yym198 + yyv205 := &x.OwnerReferences + yym206 := z.DecBinary() + _ = yym206 if false { } else { - h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv197), d) + h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv205), d) } } case "finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv199 := &x.Finalizers - yym200 := z.DecBinary() - _ = yym200 + yyv207 := &x.Finalizers + yym208 := z.DecBinary() + _ = yym208 if false { } else { - z.F.DecSliceStringX(yyv199, false, d) + z.F.DecSliceStringX(yyv207, false, d) } } + case "clusterName": + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } case "Spec": if r.TryDecodeAsNil() { x.Spec = SelfSubjectAccessReviewSpec{} } else { - yyv201 := &x.Spec - yyv201.CodecDecodeSelf(d) + yyv210 := &x.Spec + yyv210.CodecDecodeSelf(d) } case "Status": if r.TryDecodeAsNil() { x.Status = SubjectAccessReviewStatus{} } else { - yyv202 := &x.Status - yyv202.CodecDecodeSelf(d) + yyv211 := &x.Status + yyv211.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys177) - } // end switch yys177 - } // end for yyj177 + z.DecStructFieldNotFound(-1, yys185) + } // end switch yys185 + } // end for yyj185 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -2082,16 +2162,16 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj203 int - var yyb203 bool - var yyhl203 bool = l >= 0 - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + var yyj212 int + var yyb212 bool + var yyhl212 bool = l >= 0 + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2101,13 +2181,13 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Kind = string(r.DecodeString()) } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2117,13 +2197,13 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.APIVersion = string(r.DecodeString()) } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2133,13 +2213,13 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Name = string(r.DecodeString()) } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2149,13 +2229,13 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.GenerateName = string(r.DecodeString()) } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2165,13 +2245,13 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Namespace = string(r.DecodeString()) } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2181,13 +2261,13 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.SelfLink = string(r.DecodeString()) } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2197,13 +2277,13 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.UID = pkg3_types.UID(r.DecodeString()) } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2213,13 +2293,13 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.ResourceVersion = string(r.DecodeString()) } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2229,13 +2309,13 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.Generation = int64(r.DecodeInt(64)) } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2243,29 +2323,29 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.CreationTimestamp = pkg1_unversioned.Time{} } else { - yyv213 := &x.CreationTimestamp - yym214 := z.DecBinary() - _ = yym214 + yyv222 := &x.CreationTimestamp + yym223 := z.DecBinary() + _ = yym223 if false { - } else if z.HasExtensions() && z.DecExt(yyv213) { - } else if yym214 { - z.DecBinaryUnmarshal(yyv213) - } else if !yym214 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv213) + } else if z.HasExtensions() && z.DecExt(yyv222) { + } else if yym223 { + z.DecBinaryUnmarshal(yyv222) + } else if !yym223 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv222) } else { - z.DecFallback(yyv213, false) + z.DecFallback(yyv222, false) } } if x.ObjectMeta.DeletionTimestamp == nil { x.ObjectMeta.DeletionTimestamp = new(pkg1_unversioned.Time) } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2278,13 +2358,13 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg1_unversioned.Time) } - yym216 := z.DecBinary() - _ = yym216 + yym225 := z.DecBinary() + _ = yym225 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym216 { + } else if yym225 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym216 && z.IsJSONHandle() { + } else if !yym225 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) @@ -2293,13 +2373,13 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D if x.ObjectMeta.DeletionGracePeriodSeconds == nil { x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2312,20 +2392,20 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } - yym218 := z.DecBinary() - _ = yym218 + yym227 := z.DecBinary() + _ = yym227 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2333,21 +2413,21 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Labels = nil } else { - yyv219 := &x.Labels - yym220 := z.DecBinary() - _ = yym220 + yyv228 := &x.Labels + yym229 := z.DecBinary() + _ = yym229 if false { } else { - z.F.DecMapStringStringX(yyv219, false, d) + z.F.DecMapStringStringX(yyv228, false, d) } } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2355,21 +2435,21 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Annotations = nil } else { - yyv221 := &x.Annotations - yym222 := z.DecBinary() - _ = yym222 + yyv230 := &x.Annotations + yym231 := z.DecBinary() + _ = yym231 if false { } else { - z.F.DecMapStringStringX(yyv221, false, d) + z.F.DecMapStringStringX(yyv230, false, d) } } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2377,21 +2457,21 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { - yyv223 := &x.OwnerReferences - yym224 := z.DecBinary() - _ = yym224 + yyv232 := &x.OwnerReferences + yym233 := z.DecBinary() + _ = yym233 if false { } else { - h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv223), d) + h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv232), d) } } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2399,21 +2479,37 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv225 := &x.Finalizers - yym226 := z.DecBinary() - _ = yym226 + yyv234 := &x.Finalizers + yym235 := z.DecBinary() + _ = yym235 if false { } else { - z.F.DecSliceStringX(yyv225, false, d) + z.F.DecSliceStringX(yyv234, false, d) } } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l + } else { + yyb212 = r.CheckBreak() + } + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2421,16 +2517,16 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Spec = SelfSubjectAccessReviewSpec{} } else { - yyv227 := &x.Spec - yyv227.CodecDecodeSelf(d) + yyv237 := &x.Spec + yyv237.CodecDecodeSelf(d) } - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -2438,21 +2534,21 @@ func (x *SelfSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Status = SubjectAccessReviewStatus{} } else { - yyv228 := &x.Status - yyv228.CodecDecodeSelf(d) + yyv238 := &x.Status + yyv238.CodecDecodeSelf(d) } for { - yyj203++ - if yyhl203 { - yyb203 = yyj203 > l + yyj212++ + if yyhl212 { + yyb212 = yyj212 > l } else { - yyb203 = r.CheckBreak() + yyb212 = r.CheckBreak() } - if yyb203 { + if yyb212 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj203-1, "") + z.DecStructFieldNotFound(yyj212-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -2464,252 +2560,253 @@ func (x *LocalSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym229 := z.EncBinary() - _ = yym229 + yym239 := z.EncBinary() + _ = yym239 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep230 := !z.EncBinary() - yy2arr230 := z.EncBasicHandle().StructToArray - var yyq230 [18]bool - _, _, _ = yysep230, yyq230, yy2arr230 - const yyr230 bool = false - yyq230[0] = x.Kind != "" - yyq230[1] = x.APIVersion != "" - yyq230[2] = x.Name != "" - yyq230[3] = x.GenerateName != "" - yyq230[4] = x.Namespace != "" - yyq230[5] = x.SelfLink != "" - yyq230[6] = x.UID != "" - yyq230[7] = x.ResourceVersion != "" - yyq230[8] = x.Generation != 0 - yyq230[9] = true - yyq230[10] = x.ObjectMeta.DeletionTimestamp != nil && x.DeletionTimestamp != nil - yyq230[11] = x.ObjectMeta.DeletionGracePeriodSeconds != nil && x.DeletionGracePeriodSeconds != nil - yyq230[12] = len(x.Labels) != 0 - yyq230[13] = len(x.Annotations) != 0 - yyq230[14] = len(x.OwnerReferences) != 0 - yyq230[15] = len(x.Finalizers) != 0 - var yynn230 int - if yyr230 || yy2arr230 { - r.EncodeArrayStart(18) + yysep240 := !z.EncBinary() + yy2arr240 := z.EncBasicHandle().StructToArray + var yyq240 [19]bool + _, _, _ = yysep240, yyq240, yy2arr240 + const yyr240 bool = false + yyq240[0] = x.Kind != "" + yyq240[1] = x.APIVersion != "" + yyq240[2] = x.Name != "" + yyq240[3] = x.GenerateName != "" + yyq240[4] = x.Namespace != "" + yyq240[5] = x.SelfLink != "" + yyq240[6] = x.UID != "" + yyq240[7] = x.ResourceVersion != "" + yyq240[8] = x.Generation != 0 + yyq240[9] = true + yyq240[10] = x.ObjectMeta.DeletionTimestamp != nil && x.DeletionTimestamp != nil + yyq240[11] = x.ObjectMeta.DeletionGracePeriodSeconds != nil && x.DeletionGracePeriodSeconds != nil + yyq240[12] = len(x.Labels) != 0 + yyq240[13] = len(x.Annotations) != 0 + yyq240[14] = len(x.OwnerReferences) != 0 + yyq240[15] = len(x.Finalizers) != 0 + yyq240[16] = x.ClusterName != "" + var yynn240 int + if yyr240 || yy2arr240 { + r.EncodeArrayStart(19) } else { - yynn230 = 2 - for _, b := range yyq230 { + yynn240 = 2 + for _, b := range yyq240 { if b { - yynn230++ + yynn240++ } } - r.EncodeMapStart(yynn230) - yynn230 = 0 + r.EncodeMapStart(yynn240) + yynn240 = 0 } - if yyr230 || yy2arr230 { + if yyr240 || yy2arr240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[0] { - yym232 := z.EncBinary() - _ = yym232 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq230[0] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kind")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym233 := z.EncBinary() - _ = yym233 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) - } - } - } - if yyr230 || yy2arr230 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[1] { - yym235 := z.EncBinary() - _ = yym235 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq230[1] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym236 := z.EncBinary() - _ = yym236 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) - } - } - } - if yyr230 || yy2arr230 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[2] { - yym238 := z.EncBinary() - _ = yym238 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq230[2] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("name")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym239 := z.EncBinary() - _ = yym239 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Name)) - } - } - } - if yyr230 || yy2arr230 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[3] { - yym241 := z.EncBinary() - _ = yym241 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq230[3] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("generateName")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyq240[0] { yym242 := z.EncBinary() _ = yym242 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) - } - } - } - if yyr230 || yy2arr230 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[4] { - yym244 := z.EncBinary() - _ = yym244 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq230[4] { + if yyq240[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("namespace")) + r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym243 := z.EncBinary() + _ = yym243 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[1] { yym245 := z.EncBinary() _ = yym245 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) - } - } - } - if yyr230 || yy2arr230 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[5] { - yym247 := z.EncBinary() - _ = yym247 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq230[5] { + if yyq240[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("selfLink")) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym246 := z.EncBinary() + _ = yym246 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[2] { yym248 := z.EncBinary() _ = yym248 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) - } - } - } - if yyr230 || yy2arr230 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[6] { - yym250 := z.EncBinary() - _ = yym250 - if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq230[6] { + if yyq240[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("uid")) + r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym249 := z.EncBinary() + _ = yym249 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[3] { yym251 := z.EncBinary() _ = yym251 if false { - } else if z.HasExtensions() && z.EncExt(x.UID) { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.UID)) - } - } - } - if yyr230 || yy2arr230 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[7] { - yym253 := z.EncBinary() - _ = yym253 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq230[7] { + if yyq240[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) + r.EncodeString(codecSelferC_UTF81234, string("generateName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym252 := z.EncBinary() + _ = yym252 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) + } + } + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[4] { yym254 := z.EncBinary() _ = yym254 if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq240[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("namespace")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym255 := z.EncBinary() + _ = yym255 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[5] { + yym257 := z.EncBinary() + _ = yym257 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq240[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("selfLink")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym258 := z.EncBinary() + _ = yym258 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) + } + } + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[6] { + yym260 := z.EncBinary() + _ = yym260 + if false { + } else if z.HasExtensions() && z.EncExt(x.UID) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq240[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("uid")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym261 := z.EncBinary() + _ = yym261 + if false { + } else if z.HasExtensions() && z.EncExt(x.UID) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[7] { + yym263 := z.EncBinary() + _ = yym263 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq240[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym264 := z.EncBinary() + _ = yym264 + if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } - if yyr230 || yy2arr230 { + if yyr240 || yy2arr240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[8] { - yym256 := z.EncBinary() - _ = yym256 + if yyq240[8] { + yym266 := z.EncBinary() + _ = yym266 if false { } else { r.EncodeInt(int64(x.Generation)) @@ -2718,77 +2815,77 @@ func (x *LocalSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq230[8] { + if yyq240[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("generation")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym257 := z.EncBinary() - _ = yym257 + yym267 := z.EncBinary() + _ = yym267 if false { } else { r.EncodeInt(int64(x.Generation)) } } } - if yyr230 || yy2arr230 { + if yyr240 || yy2arr240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[9] { - yy259 := &x.CreationTimestamp - yym260 := z.EncBinary() - _ = yym260 + if yyq240[9] { + yy269 := &x.CreationTimestamp + yym270 := z.EncBinary() + _ = yym270 if false { - } else if z.HasExtensions() && z.EncExt(yy259) { - } else if yym260 { - z.EncBinaryMarshal(yy259) - } else if !yym260 && z.IsJSONHandle() { - z.EncJSONMarshal(yy259) + } else if z.HasExtensions() && z.EncExt(yy269) { + } else if yym270 { + z.EncBinaryMarshal(yy269) + } else if !yym270 && z.IsJSONHandle() { + z.EncJSONMarshal(yy269) } else { - z.EncFallback(yy259) + z.EncFallback(yy269) } } else { r.EncodeNil() } } else { - if yyq230[9] { + if yyq240[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy261 := &x.CreationTimestamp - yym262 := z.EncBinary() - _ = yym262 + yy271 := &x.CreationTimestamp + yym272 := z.EncBinary() + _ = yym272 if false { - } else if z.HasExtensions() && z.EncExt(yy261) { - } else if yym262 { - z.EncBinaryMarshal(yy261) - } else if !yym262 && z.IsJSONHandle() { - z.EncJSONMarshal(yy261) + } else if z.HasExtensions() && z.EncExt(yy271) { + } else if yym272 { + z.EncBinaryMarshal(yy271) + } else if !yym272 && z.IsJSONHandle() { + z.EncJSONMarshal(yy271) } else { - z.EncFallback(yy261) + z.EncFallback(yy271) } } } - var yyn263 bool + var yyn273 bool if x.ObjectMeta.DeletionTimestamp == nil { - yyn263 = true - goto LABEL263 + yyn273 = true + goto LABEL273 } - LABEL263: - if yyr230 || yy2arr230 { - if yyn263 { + LABEL273: + if yyr240 || yy2arr240 { + if yyn273 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[10] { + if yyq240[10] { if x.DeletionTimestamp == nil { r.EncodeNil() } else { - yym264 := z.EncBinary() - _ = yym264 + yym274 := z.EncBinary() + _ = yym274 if false { } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym264 { + } else if yym274 { z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym264 && z.IsJSONHandle() { + } else if !yym274 && z.IsJSONHandle() { z.EncJSONMarshal(x.DeletionTimestamp) } else { z.EncFallback(x.DeletionTimestamp) @@ -2799,23 +2896,23 @@ func (x *LocalSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq230[10] { + if yyq240[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn263 { + if yyn273 { r.EncodeNil() } else { if x.DeletionTimestamp == nil { r.EncodeNil() } else { - yym265 := z.EncBinary() - _ = yym265 + yym275 := z.EncBinary() + _ = yym275 if false { } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { - } else if yym265 { + } else if yym275 { z.EncBinaryMarshal(x.DeletionTimestamp) - } else if !yym265 && z.IsJSONHandle() { + } else if !yym275 && z.IsJSONHandle() { z.EncJSONMarshal(x.DeletionTimestamp) } else { z.EncFallback(x.DeletionTimestamp) @@ -2824,27 +2921,27 @@ func (x *LocalSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } } } - var yyn266 bool + var yyn276 bool if x.ObjectMeta.DeletionGracePeriodSeconds == nil { - yyn266 = true - goto LABEL266 + yyn276 = true + goto LABEL276 } - LABEL266: - if yyr230 || yy2arr230 { - if yyn266 { + LABEL276: + if yyr240 || yy2arr240 { + if yyn276 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[11] { + if yyq240[11] { if x.DeletionGracePeriodSeconds == nil { r.EncodeNil() } else { - yy267 := *x.DeletionGracePeriodSeconds - yym268 := z.EncBinary() - _ = yym268 + yy277 := *x.DeletionGracePeriodSeconds + yym278 := z.EncBinary() + _ = yym278 if false { } else { - r.EncodeInt(int64(yy267)) + r.EncodeInt(int64(yy277)) } } } else { @@ -2852,182 +2949,207 @@ func (x *LocalSubjectAccessReview) CodecEncodeSelf(e *codec1978.Encoder) { } } } else { - if yyq230[11] { + if yyq240[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyn266 { + if yyn276 { r.EncodeNil() } else { if x.DeletionGracePeriodSeconds == nil { r.EncodeNil() } else { - yy269 := *x.DeletionGracePeriodSeconds - yym270 := z.EncBinary() - _ = yym270 + yy279 := *x.DeletionGracePeriodSeconds + yym280 := z.EncBinary() + _ = yym280 if false { } else { - r.EncodeInt(int64(yy269)) + r.EncodeInt(int64(yy279)) } } } } } - if yyr230 || yy2arr230 { + if yyr240 || yy2arr240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[12] { + if yyq240[12] { if x.Labels == nil { r.EncodeNil() - } else { - yym272 := z.EncBinary() - _ = yym272 - if false { - } else { - z.F.EncMapStringStringV(x.Labels, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq230[12] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("labels")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Labels == nil { - r.EncodeNil() - } else { - yym273 := z.EncBinary() - _ = yym273 - if false { - } else { - z.F.EncMapStringStringV(x.Labels, false, e) - } - } - } - } - if yyr230 || yy2arr230 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[13] { - if x.Annotations == nil { - r.EncodeNil() - } else { - yym275 := z.EncBinary() - _ = yym275 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq230[13] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("annotations")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Annotations == nil { - r.EncodeNil() - } else { - yym276 := z.EncBinary() - _ = yym276 - if false { - } else { - z.F.EncMapStringStringV(x.Annotations, false, e) - } - } - } - } - if yyr230 || yy2arr230 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[14] { - if x.OwnerReferences == nil { - r.EncodeNil() - } else { - yym278 := z.EncBinary() - _ = yym278 - if false { - } else { - h.encSliceapi_OwnerReference(([]pkg2_api.OwnerReference)(x.OwnerReferences), e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq230[14] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.OwnerReferences == nil { - r.EncodeNil() - } else { - yym279 := z.EncBinary() - _ = yym279 - if false { - } else { - h.encSliceapi_OwnerReference(([]pkg2_api.OwnerReference)(x.OwnerReferences), e) - } - } - } - } - if yyr230 || yy2arr230 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq230[15] { - if x.Finalizers == nil { - r.EncodeNil() - } else { - yym281 := z.EncBinary() - _ = yym281 - if false { - } else { - z.F.EncSliceStringV(x.Finalizers, false, e) - } - } - } else { - r.EncodeNil() - } - } else { - if yyq230[15] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("finalizers")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - if x.Finalizers == nil { - r.EncodeNil() } else { yym282 := z.EncBinary() _ = yym282 if false { + } else { + z.F.EncMapStringStringV(x.Labels, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq240[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("labels")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Labels == nil { + r.EncodeNil() + } else { + yym283 := z.EncBinary() + _ = yym283 + if false { + } else { + z.F.EncMapStringStringV(x.Labels, false, e) + } + } + } + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[13] { + if x.Annotations == nil { + r.EncodeNil() + } else { + yym285 := z.EncBinary() + _ = yym285 + if false { + } else { + z.F.EncMapStringStringV(x.Annotations, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq240[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("annotations")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Annotations == nil { + r.EncodeNil() + } else { + yym286 := z.EncBinary() + _ = yym286 + if false { + } else { + z.F.EncMapStringStringV(x.Annotations, false, e) + } + } + } + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[14] { + if x.OwnerReferences == nil { + r.EncodeNil() + } else { + yym288 := z.EncBinary() + _ = yym288 + if false { + } else { + h.encSliceapi_OwnerReference(([]pkg2_api.OwnerReference)(x.OwnerReferences), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq240[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.OwnerReferences == nil { + r.EncodeNil() + } else { + yym289 := z.EncBinary() + _ = yym289 + if false { + } else { + h.encSliceapi_OwnerReference(([]pkg2_api.OwnerReference)(x.OwnerReferences), e) + } + } + } + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq240[15] { + if x.Finalizers == nil { + r.EncodeNil() + } else { + yym291 := z.EncBinary() + _ = yym291 + if false { + } else { + z.F.EncSliceStringV(x.Finalizers, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq240[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("finalizers")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Finalizers == nil { + r.EncodeNil() + } else { + yym292 := z.EncBinary() + _ = yym292 + if false { } else { z.F.EncSliceStringV(x.Finalizers, false, e) } } } } - if yyr230 || yy2arr230 { + if yyr240 || yy2arr240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy284 := &x.Spec - yy284.CodecEncodeSelf(e) + if yyq240[16] { + yym294 := z.EncBinary() + _ = yym294 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq240[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym295 := z.EncBinary() + _ = yym295 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } + } + if yyr240 || yy2arr240 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy297 := &x.Spec + yy297.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy285 := &x.Spec - yy285.CodecEncodeSelf(e) + yy298 := &x.Spec + yy298.CodecEncodeSelf(e) } - if yyr230 || yy2arr230 { + if yyr240 || yy2arr240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy287 := &x.Status - yy287.CodecEncodeSelf(e) + yy300 := &x.Status + yy300.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy288 := &x.Status - yy288.CodecEncodeSelf(e) + yy301 := &x.Status + yy301.CodecEncodeSelf(e) } - if yyr230 || yy2arr230 { + if yyr240 || yy2arr240 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3040,25 +3162,25 @@ func (x *LocalSubjectAccessReview) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym289 := z.DecBinary() - _ = yym289 + yym302 := z.DecBinary() + _ = yym302 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct290 := r.ContainerType() - if yyct290 == codecSelferValueTypeMap1234 { - yyl290 := r.ReadMapStart() - if yyl290 == 0 { + yyct303 := r.ContainerType() + if yyct303 == codecSelferValueTypeMap1234 { + yyl303 := r.ReadMapStart() + if yyl303 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl290, d) + x.codecDecodeSelfFromMap(yyl303, d) } - } else if yyct290 == codecSelferValueTypeArray1234 { - yyl290 := r.ReadArrayStart() - if yyl290 == 0 { + } else if yyct303 == codecSelferValueTypeArray1234 { + yyl303 := r.ReadArrayStart() + if yyl303 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl290, d) + x.codecDecodeSelfFromArray(yyl303, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3070,12 +3192,12 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys291Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys291Slc - var yyhl291 bool = l >= 0 - for yyj291 := 0; ; yyj291++ { - if yyhl291 { - if yyj291 >= l { + var yys304Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys304Slc + var yyhl304 bool = l >= 0 + for yyj304 := 0; ; yyj304++ { + if yyhl304 { + if yyj304 >= l { break } } else { @@ -3084,10 +3206,10 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys291Slc = r.DecodeBytes(yys291Slc, true, true) - yys291 := string(yys291Slc) + yys304Slc = r.DecodeBytes(yys304Slc, true, true) + yys304 := string(yys304Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys291 { + switch yys304 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -3146,17 +3268,17 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.CreationTimestamp = pkg1_unversioned.Time{} } else { - yyv301 := &x.CreationTimestamp - yym302 := z.DecBinary() - _ = yym302 + yyv314 := &x.CreationTimestamp + yym315 := z.DecBinary() + _ = yym315 if false { - } else if z.HasExtensions() && z.DecExt(yyv301) { - } else if yym302 { - z.DecBinaryUnmarshal(yyv301) - } else if !yym302 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv301) + } else if z.HasExtensions() && z.DecExt(yyv314) { + } else if yym315 { + z.DecBinaryUnmarshal(yyv314) + } else if !yym315 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv314) } else { - z.DecFallback(yyv301, false) + z.DecFallback(yyv314, false) } } case "deletionTimestamp": @@ -3171,13 +3293,13 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.De if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg1_unversioned.Time) } - yym304 := z.DecBinary() - _ = yym304 + yym317 := z.DecBinary() + _ = yym317 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym304 { + } else if yym317 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym304 && z.IsJSONHandle() { + } else if !yym317 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) @@ -3195,8 +3317,8 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.De if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } - yym306 := z.DecBinary() - _ = yym306 + yym319 := z.DecBinary() + _ = yym319 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) @@ -3206,68 +3328,74 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Labels = nil } else { - yyv307 := &x.Labels - yym308 := z.DecBinary() - _ = yym308 + yyv320 := &x.Labels + yym321 := z.DecBinary() + _ = yym321 if false { } else { - z.F.DecMapStringStringX(yyv307, false, d) + z.F.DecMapStringStringX(yyv320, false, d) } } case "annotations": if r.TryDecodeAsNil() { x.Annotations = nil } else { - yyv309 := &x.Annotations - yym310 := z.DecBinary() - _ = yym310 + yyv322 := &x.Annotations + yym323 := z.DecBinary() + _ = yym323 if false { } else { - z.F.DecMapStringStringX(yyv309, false, d) + z.F.DecMapStringStringX(yyv322, false, d) } } case "ownerReferences": if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { - yyv311 := &x.OwnerReferences - yym312 := z.DecBinary() - _ = yym312 + yyv324 := &x.OwnerReferences + yym325 := z.DecBinary() + _ = yym325 if false { } else { - h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv311), d) + h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv324), d) } } case "finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv313 := &x.Finalizers - yym314 := z.DecBinary() - _ = yym314 + yyv326 := &x.Finalizers + yym327 := z.DecBinary() + _ = yym327 if false { } else { - z.F.DecSliceStringX(yyv313, false, d) + z.F.DecSliceStringX(yyv326, false, d) } } + case "clusterName": + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } case "Spec": if r.TryDecodeAsNil() { x.Spec = SubjectAccessReviewSpec{} } else { - yyv315 := &x.Spec - yyv315.CodecDecodeSelf(d) + yyv329 := &x.Spec + yyv329.CodecDecodeSelf(d) } case "Status": if r.TryDecodeAsNil() { x.Status = SubjectAccessReviewStatus{} } else { - yyv316 := &x.Status - yyv316.CodecDecodeSelf(d) + yyv330 := &x.Status + yyv330.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys291) - } // end switch yys291 - } // end for yyj291 + z.DecStructFieldNotFound(-1, yys304) + } // end switch yys304 + } // end for yyj304 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3275,16 +3403,16 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj317 int - var yyb317 bool - var yyhl317 bool = l >= 0 - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + var yyj331 int + var yyb331 bool + var yyhl331 bool = l >= 0 + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3294,13 +3422,13 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Kind = string(r.DecodeString()) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3310,13 +3438,13 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.APIVersion = string(r.DecodeString()) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3326,13 +3454,13 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Name = string(r.DecodeString()) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3342,13 +3470,13 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.GenerateName = string(r.DecodeString()) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3358,13 +3486,13 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Namespace = string(r.DecodeString()) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3374,13 +3502,13 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.SelfLink = string(r.DecodeString()) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3390,13 +3518,13 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.UID = pkg3_types.UID(r.DecodeString()) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3406,13 +3534,13 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.ResourceVersion = string(r.DecodeString()) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3422,13 +3550,13 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Generation = int64(r.DecodeInt(64)) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3436,29 +3564,29 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.CreationTimestamp = pkg1_unversioned.Time{} } else { - yyv327 := &x.CreationTimestamp - yym328 := z.DecBinary() - _ = yym328 + yyv341 := &x.CreationTimestamp + yym342 := z.DecBinary() + _ = yym342 if false { - } else if z.HasExtensions() && z.DecExt(yyv327) { - } else if yym328 { - z.DecBinaryUnmarshal(yyv327) - } else if !yym328 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv327) + } else if z.HasExtensions() && z.DecExt(yyv341) { + } else if yym342 { + z.DecBinaryUnmarshal(yyv341) + } else if !yym342 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv341) } else { - z.DecFallback(yyv327, false) + z.DecFallback(yyv341, false) } } if x.ObjectMeta.DeletionTimestamp == nil { x.ObjectMeta.DeletionTimestamp = new(pkg1_unversioned.Time) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3471,13 +3599,13 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg1_unversioned.Time) } - yym330 := z.DecBinary() - _ = yym330 + yym344 := z.DecBinary() + _ = yym344 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { - } else if yym330 { + } else if yym344 { z.DecBinaryUnmarshal(x.DeletionTimestamp) - } else if !yym330 && z.IsJSONHandle() { + } else if !yym344 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) @@ -3486,13 +3614,13 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. if x.ObjectMeta.DeletionGracePeriodSeconds == nil { x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3505,20 +3633,20 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } - yym332 := z.DecBinary() - _ = yym332 + yym346 := z.DecBinary() + _ = yym346 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3526,21 +3654,21 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Labels = nil } else { - yyv333 := &x.Labels - yym334 := z.DecBinary() - _ = yym334 + yyv347 := &x.Labels + yym348 := z.DecBinary() + _ = yym348 if false { } else { - z.F.DecMapStringStringX(yyv333, false, d) + z.F.DecMapStringStringX(yyv347, false, d) } } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3548,21 +3676,21 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Annotations = nil } else { - yyv335 := &x.Annotations - yym336 := z.DecBinary() - _ = yym336 + yyv349 := &x.Annotations + yym350 := z.DecBinary() + _ = yym350 if false { } else { - z.F.DecMapStringStringX(yyv335, false, d) + z.F.DecMapStringStringX(yyv349, false, d) } } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3570,21 +3698,21 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { - yyv337 := &x.OwnerReferences - yym338 := z.DecBinary() - _ = yym338 + yyv351 := &x.OwnerReferences + yym352 := z.DecBinary() + _ = yym352 if false { } else { - h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv337), d) + h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv351), d) } } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3592,21 +3720,37 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Finalizers = nil } else { - yyv339 := &x.Finalizers - yym340 := z.DecBinary() - _ = yym340 + yyv353 := &x.Finalizers + yym354 := z.DecBinary() + _ = yym354 if false { } else { - z.F.DecSliceStringX(yyv339, false, d) + z.F.DecSliceStringX(yyv353, false, d) } } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l + } else { + yyb331 = r.CheckBreak() + } + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3614,16 +3758,16 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Spec = SubjectAccessReviewSpec{} } else { - yyv341 := &x.Spec - yyv341.CodecDecodeSelf(d) + yyv356 := &x.Spec + yyv356.CodecDecodeSelf(d) } - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3631,21 +3775,21 @@ func (x *LocalSubjectAccessReview) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Status = SubjectAccessReviewStatus{} } else { - yyv342 := &x.Status - yyv342.CodecDecodeSelf(d) + yyv357 := &x.Status + yyv357.CodecDecodeSelf(d) } for { - yyj317++ - if yyhl317 { - yyb317 = yyj317 > l + yyj331++ + if yyhl331 { + yyb331 = yyj331 > l } else { - yyb317 = r.CheckBreak() + yyb331 = r.CheckBreak() } - if yyb317 { + if yyb331 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj317-1, "") + z.DecStructFieldNotFound(yyj331-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -3657,33 +3801,33 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym343 := z.EncBinary() - _ = yym343 + yym358 := z.EncBinary() + _ = yym358 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep344 := !z.EncBinary() - yy2arr344 := z.EncBasicHandle().StructToArray - var yyq344 [7]bool - _, _, _ = yysep344, yyq344, yy2arr344 - const yyr344 bool = false - var yynn344 int - if yyr344 || yy2arr344 { + yysep359 := !z.EncBinary() + yy2arr359 := z.EncBasicHandle().StructToArray + var yyq359 [7]bool + _, _, _ = yysep359, yyq359, yy2arr359 + const yyr359 bool = false + var yynn359 int + if yyr359 || yy2arr359 { r.EncodeArrayStart(7) } else { - yynn344 = 7 - for _, b := range yyq344 { + yynn359 = 7 + for _, b := range yyq359 { if b { - yynn344++ + yynn359++ } } - r.EncodeMapStart(yynn344) - yynn344 = 0 + r.EncodeMapStart(yynn359) + yynn359 = 0 } - if yyr344 || yy2arr344 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym346 := z.EncBinary() - _ = yym346 + yym361 := z.EncBinary() + _ = yym361 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) @@ -3692,17 +3836,17 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym347 := z.EncBinary() - _ = yym347 + yym362 := z.EncBinary() + _ = yym362 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } - if yyr344 || yy2arr344 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym349 := z.EncBinary() - _ = yym349 + yym364 := z.EncBinary() + _ = yym364 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) @@ -3711,17 +3855,17 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Verb")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym350 := z.EncBinary() - _ = yym350 + yym365 := z.EncBinary() + _ = yym365 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) } } - if yyr344 || yy2arr344 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym352 := z.EncBinary() - _ = yym352 + yym367 := z.EncBinary() + _ = yym367 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Group)) @@ -3730,17 +3874,17 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Group")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym353 := z.EncBinary() - _ = yym353 + yym368 := z.EncBinary() + _ = yym368 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Group)) } } - if yyr344 || yy2arr344 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym355 := z.EncBinary() - _ = yym355 + yym370 := z.EncBinary() + _ = yym370 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Version)) @@ -3749,17 +3893,17 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Version")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym356 := z.EncBinary() - _ = yym356 + yym371 := z.EncBinary() + _ = yym371 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Version)) } } - if yyr344 || yy2arr344 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym358 := z.EncBinary() - _ = yym358 + yym373 := z.EncBinary() + _ = yym373 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) @@ -3768,17 +3912,17 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Resource")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym359 := z.EncBinary() - _ = yym359 + yym374 := z.EncBinary() + _ = yym374 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) } } - if yyr344 || yy2arr344 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym361 := z.EncBinary() - _ = yym361 + yym376 := z.EncBinary() + _ = yym376 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subresource)) @@ -3787,17 +3931,17 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Subresource")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym362 := z.EncBinary() - _ = yym362 + yym377 := z.EncBinary() + _ = yym377 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subresource)) } } - if yyr344 || yy2arr344 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym364 := z.EncBinary() - _ = yym364 + yym379 := z.EncBinary() + _ = yym379 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) @@ -3806,14 +3950,14 @@ func (x *ResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym365 := z.EncBinary() - _ = yym365 + yym380 := z.EncBinary() + _ = yym380 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } - if yyr344 || yy2arr344 { + if yyr359 || yy2arr359 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -3826,25 +3970,25 @@ func (x *ResourceAttributes) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym366 := z.DecBinary() - _ = yym366 + yym381 := z.DecBinary() + _ = yym381 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct367 := r.ContainerType() - if yyct367 == codecSelferValueTypeMap1234 { - yyl367 := r.ReadMapStart() - if yyl367 == 0 { + yyct382 := r.ContainerType() + if yyct382 == codecSelferValueTypeMap1234 { + yyl382 := r.ReadMapStart() + if yyl382 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl367, d) + x.codecDecodeSelfFromMap(yyl382, d) } - } else if yyct367 == codecSelferValueTypeArray1234 { - yyl367 := r.ReadArrayStart() - if yyl367 == 0 { + } else if yyct382 == codecSelferValueTypeArray1234 { + yyl382 := r.ReadArrayStart() + if yyl382 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl367, d) + x.codecDecodeSelfFromArray(yyl382, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3856,12 +4000,12 @@ func (x *ResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys368Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys368Slc - var yyhl368 bool = l >= 0 - for yyj368 := 0; ; yyj368++ { - if yyhl368 { - if yyj368 >= l { + var yys383Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys383Slc + var yyhl383 bool = l >= 0 + for yyj383 := 0; ; yyj383++ { + if yyhl383 { + if yyj383 >= l { break } } else { @@ -3870,10 +4014,10 @@ func (x *ResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys368Slc = r.DecodeBytes(yys368Slc, true, true) - yys368 := string(yys368Slc) + yys383Slc = r.DecodeBytes(yys383Slc, true, true) + yys383 := string(yys383Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys368 { + switch yys383 { case "Namespace": if r.TryDecodeAsNil() { x.Namespace = "" @@ -3917,9 +4061,9 @@ func (x *ResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.Name = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys368) - } // end switch yys368 - } // end for yyj368 + z.DecStructFieldNotFound(-1, yys383) + } // end switch yys383 + } // end for yyj383 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -3927,16 +4071,16 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj376 int - var yyb376 bool - var yyhl376 bool = l >= 0 - yyj376++ - if yyhl376 { - yyb376 = yyj376 > l + var yyj391 int + var yyb391 bool + var yyhl391 bool = l >= 0 + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb376 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb376 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3946,13 +4090,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Namespace = string(r.DecodeString()) } - yyj376++ - if yyhl376 { - yyb376 = yyj376 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb376 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb376 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3962,13 +4106,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Verb = string(r.DecodeString()) } - yyj376++ - if yyhl376 { - yyb376 = yyj376 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb376 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb376 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3978,13 +4122,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Group = string(r.DecodeString()) } - yyj376++ - if yyhl376 { - yyb376 = yyj376 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb376 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb376 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -3994,13 +4138,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Version = string(r.DecodeString()) } - yyj376++ - if yyhl376 { - yyb376 = yyj376 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb376 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb376 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4010,13 +4154,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Resource = string(r.DecodeString()) } - yyj376++ - if yyhl376 { - yyb376 = yyj376 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb376 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb376 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4026,13 +4170,13 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode } else { x.Subresource = string(r.DecodeString()) } - yyj376++ - if yyhl376 { - yyb376 = yyj376 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb376 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb376 { + if yyb391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4043,17 +4187,17 @@ func (x *ResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Decode x.Name = string(r.DecodeString()) } for { - yyj376++ - if yyhl376 { - yyb376 = yyj376 > l + yyj391++ + if yyhl391 { + yyb391 = yyj391 > l } else { - yyb376 = r.CheckBreak() + yyb391 = r.CheckBreak() } - if yyb376 { + if yyb391 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj376-1, "") + z.DecStructFieldNotFound(yyj391-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4065,33 +4209,33 @@ func (x *NonResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym384 := z.EncBinary() - _ = yym384 + yym399 := z.EncBinary() + _ = yym399 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep385 := !z.EncBinary() - yy2arr385 := z.EncBasicHandle().StructToArray - var yyq385 [2]bool - _, _, _ = yysep385, yyq385, yy2arr385 - const yyr385 bool = false - var yynn385 int - if yyr385 || yy2arr385 { + yysep400 := !z.EncBinary() + yy2arr400 := z.EncBasicHandle().StructToArray + var yyq400 [2]bool + _, _, _ = yysep400, yyq400, yy2arr400 + const yyr400 bool = false + var yynn400 int + if yyr400 || yy2arr400 { r.EncodeArrayStart(2) } else { - yynn385 = 2 - for _, b := range yyq385 { + yynn400 = 2 + for _, b := range yyq400 { if b { - yynn385++ + yynn400++ } } - r.EncodeMapStart(yynn385) - yynn385 = 0 + r.EncodeMapStart(yynn400) + yynn400 = 0 } - if yyr385 || yy2arr385 { + if yyr400 || yy2arr400 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym387 := z.EncBinary() - _ = yym387 + yym402 := z.EncBinary() + _ = yym402 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) @@ -4100,17 +4244,17 @@ func (x *NonResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym388 := z.EncBinary() - _ = yym388 + yym403 := z.EncBinary() + _ = yym403 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } - if yyr385 || yy2arr385 { + if yyr400 || yy2arr400 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym390 := z.EncBinary() - _ = yym390 + yym405 := z.EncBinary() + _ = yym405 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) @@ -4119,14 +4263,14 @@ func (x *NonResourceAttributes) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Verb")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym391 := z.EncBinary() - _ = yym391 + yym406 := z.EncBinary() + _ = yym406 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Verb)) } } - if yyr385 || yy2arr385 { + if yyr400 || yy2arr400 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4139,25 +4283,25 @@ func (x *NonResourceAttributes) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym392 := z.DecBinary() - _ = yym392 + yym407 := z.DecBinary() + _ = yym407 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct393 := r.ContainerType() - if yyct393 == codecSelferValueTypeMap1234 { - yyl393 := r.ReadMapStart() - if yyl393 == 0 { + yyct408 := r.ContainerType() + if yyct408 == codecSelferValueTypeMap1234 { + yyl408 := r.ReadMapStart() + if yyl408 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl393, d) + x.codecDecodeSelfFromMap(yyl408, d) } - } else if yyct393 == codecSelferValueTypeArray1234 { - yyl393 := r.ReadArrayStart() - if yyl393 == 0 { + } else if yyct408 == codecSelferValueTypeArray1234 { + yyl408 := r.ReadArrayStart() + if yyl408 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl393, d) + x.codecDecodeSelfFromArray(yyl408, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4169,12 +4313,12 @@ func (x *NonResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys394Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys394Slc - var yyhl394 bool = l >= 0 - for yyj394 := 0; ; yyj394++ { - if yyhl394 { - if yyj394 >= l { + var yys409Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys409Slc + var yyhl409 bool = l >= 0 + for yyj409 := 0; ; yyj409++ { + if yyhl409 { + if yyj409 >= l { break } } else { @@ -4183,10 +4327,10 @@ func (x *NonResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys394Slc = r.DecodeBytes(yys394Slc, true, true) - yys394 := string(yys394Slc) + yys409Slc = r.DecodeBytes(yys409Slc, true, true) + yys409 := string(yys409Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys394 { + switch yys409 { case "Path": if r.TryDecodeAsNil() { x.Path = "" @@ -4200,9 +4344,9 @@ func (x *NonResourceAttributes) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.Verb = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys394) - } // end switch yys394 - } // end for yyj394 + z.DecStructFieldNotFound(-1, yys409) + } // end switch yys409 + } // end for yyj409 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4210,16 +4354,16 @@ func (x *NonResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj397 int - var yyb397 bool - var yyhl397 bool = l >= 0 - yyj397++ - if yyhl397 { - yyb397 = yyj397 > l + var yyj412 int + var yyb412 bool + var yyhl412 bool = l >= 0 + yyj412++ + if yyhl412 { + yyb412 = yyj412 > l } else { - yyb397 = r.CheckBreak() + yyb412 = r.CheckBreak() } - if yyb397 { + if yyb412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4229,13 +4373,13 @@ func (x *NonResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Path = string(r.DecodeString()) } - yyj397++ - if yyhl397 { - yyb397 = yyj397 > l + yyj412++ + if yyhl412 { + yyb412 = yyj412 > l } else { - yyb397 = r.CheckBreak() + yyb412 = r.CheckBreak() } - if yyb397 { + if yyb412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4246,17 +4390,17 @@ func (x *NonResourceAttributes) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.Verb = string(r.DecodeString()) } for { - yyj397++ - if yyhl397 { - yyb397 = yyj397 > l + yyj412++ + if yyhl412 { + yyb412 = yyj412 > l } else { - yyb397 = r.CheckBreak() + yyb412 = r.CheckBreak() } - if yyb397 { + if yyb412 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj397-1, "") + z.DecStructFieldNotFound(yyj412-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4268,30 +4412,30 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym400 := z.EncBinary() - _ = yym400 + yym415 := z.EncBinary() + _ = yym415 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep401 := !z.EncBinary() - yy2arr401 := z.EncBasicHandle().StructToArray - var yyq401 [5]bool - _, _, _ = yysep401, yyq401, yy2arr401 - const yyr401 bool = false - var yynn401 int - if yyr401 || yy2arr401 { + yysep416 := !z.EncBinary() + yy2arr416 := z.EncBasicHandle().StructToArray + var yyq416 [5]bool + _, _, _ = yysep416, yyq416, yy2arr416 + const yyr416 bool = false + var yynn416 int + if yyr416 || yy2arr416 { r.EncodeArrayStart(5) } else { - yynn401 = 5 - for _, b := range yyq401 { + yynn416 = 5 + for _, b := range yyq416 { if b { - yynn401++ + yynn416++ } } - r.EncodeMapStart(yynn401) - yynn401 = 0 + r.EncodeMapStart(yynn416) + yynn416 = 0 } - if yyr401 || yy2arr401 { + if yyr416 || yy2arr416 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.ResourceAttributes == nil { r.EncodeNil() @@ -4308,7 +4452,7 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { x.ResourceAttributes.CodecEncodeSelf(e) } } - if yyr401 || yy2arr401 { + if yyr416 || yy2arr416 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NonResourceAttributes == nil { r.EncodeNil() @@ -4325,10 +4469,10 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { x.NonResourceAttributes.CodecEncodeSelf(e) } } - if yyr401 || yy2arr401 { + if yyr416 || yy2arr416 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym405 := z.EncBinary() - _ = yym405 + yym420 := z.EncBinary() + _ = yym420 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) @@ -4337,20 +4481,20 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("User")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym406 := z.EncBinary() - _ = yym406 + yym421 := z.EncBinary() + _ = yym421 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } - if yyr401 || yy2arr401 { + if yyr416 || yy2arr416 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Groups == nil { r.EncodeNil() } else { - yym408 := z.EncBinary() - _ = yym408 + yym423 := z.EncBinary() + _ = yym423 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) @@ -4363,21 +4507,21 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Groups == nil { r.EncodeNil() } else { - yym409 := z.EncBinary() - _ = yym409 + yym424 := z.EncBinary() + _ = yym424 if false { } else { z.F.EncSliceStringV(x.Groups, false, e) } } } - if yyr401 || yy2arr401 { + if yyr416 || yy2arr416 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Extra == nil { r.EncodeNil() } else { - yym411 := z.EncBinary() - _ = yym411 + yym426 := z.EncBinary() + _ = yym426 if false { } else { h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) @@ -4390,15 +4534,15 @@ func (x *SubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x.Extra == nil { r.EncodeNil() } else { - yym412 := z.EncBinary() - _ = yym412 + yym427 := z.EncBinary() + _ = yym427 if false { } else { h.encMapstringExtraValue((map[string]ExtraValue)(x.Extra), e) } } } - if yyr401 || yy2arr401 { + if yyr416 || yy2arr416 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4411,25 +4555,25 @@ func (x *SubjectAccessReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym413 := z.DecBinary() - _ = yym413 + yym428 := z.DecBinary() + _ = yym428 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct414 := r.ContainerType() - if yyct414 == codecSelferValueTypeMap1234 { - yyl414 := r.ReadMapStart() - if yyl414 == 0 { + yyct429 := r.ContainerType() + if yyct429 == codecSelferValueTypeMap1234 { + yyl429 := r.ReadMapStart() + if yyl429 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl414, d) + x.codecDecodeSelfFromMap(yyl429, d) } - } else if yyct414 == codecSelferValueTypeArray1234 { - yyl414 := r.ReadArrayStart() - if yyl414 == 0 { + } else if yyct429 == codecSelferValueTypeArray1234 { + yyl429 := r.ReadArrayStart() + if yyl429 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl414, d) + x.codecDecodeSelfFromArray(yyl429, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4441,12 +4585,12 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys415Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys415Slc - var yyhl415 bool = l >= 0 - for yyj415 := 0; ; yyj415++ { - if yyhl415 { - if yyj415 >= l { + var yys430Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys430Slc + var yyhl430 bool = l >= 0 + for yyj430 := 0; ; yyj430++ { + if yyhl430 { + if yyj430 >= l { break } } else { @@ -4455,10 +4599,10 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys415Slc = r.DecodeBytes(yys415Slc, true, true) - yys415 := string(yys415Slc) + yys430Slc = r.DecodeBytes(yys430Slc, true, true) + yys430 := string(yys430Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys415 { + switch yys430 { case "ResourceAttributes": if r.TryDecodeAsNil() { if x.ResourceAttributes != nil { @@ -4491,30 +4635,30 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Groups = nil } else { - yyv419 := &x.Groups - yym420 := z.DecBinary() - _ = yym420 + yyv434 := &x.Groups + yym435 := z.DecBinary() + _ = yym435 if false { } else { - z.F.DecSliceStringX(yyv419, false, d) + z.F.DecSliceStringX(yyv434, false, d) } } case "Extra": if r.TryDecodeAsNil() { x.Extra = nil } else { - yyv421 := &x.Extra - yym422 := z.DecBinary() - _ = yym422 + yyv436 := &x.Extra + yym437 := z.DecBinary() + _ = yym437 if false { } else { - h.decMapstringExtraValue((*map[string]ExtraValue)(yyv421), d) + h.decMapstringExtraValue((*map[string]ExtraValue)(yyv436), d) } } default: - z.DecStructFieldNotFound(-1, yys415) - } // end switch yys415 - } // end for yyj415 + z.DecStructFieldNotFound(-1, yys430) + } // end switch yys430 + } // end for yyj430 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4522,16 +4666,16 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj423 int - var yyb423 bool - var yyhl423 bool = l >= 0 - yyj423++ - if yyhl423 { - yyb423 = yyj423 > l + var yyj438 int + var yyb438 bool + var yyhl438 bool = l >= 0 + yyj438++ + if yyhl438 { + yyb438 = yyj438 > l } else { - yyb423 = r.CheckBreak() + yyb438 = r.CheckBreak() } - if yyb423 { + if yyb438 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4546,13 +4690,13 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D } x.ResourceAttributes.CodecDecodeSelf(d) } - yyj423++ - if yyhl423 { - yyb423 = yyj423 > l + yyj438++ + if yyhl438 { + yyb438 = yyj438 > l } else { - yyb423 = r.CheckBreak() + yyb438 = r.CheckBreak() } - if yyb423 { + if yyb438 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4567,13 +4711,13 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D } x.NonResourceAttributes.CodecDecodeSelf(d) } - yyj423++ - if yyhl423 { - yyb423 = yyj423 > l + yyj438++ + if yyhl438 { + yyb438 = yyj438 > l } else { - yyb423 = r.CheckBreak() + yyb438 = r.CheckBreak() } - if yyb423 { + if yyb438 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4583,13 +4727,13 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D } else { x.User = string(r.DecodeString()) } - yyj423++ - if yyhl423 { - yyb423 = yyj423 > l + yyj438++ + if yyhl438 { + yyb438 = yyj438 > l } else { - yyb423 = r.CheckBreak() + yyb438 = r.CheckBreak() } - if yyb423 { + if yyb438 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4597,21 +4741,21 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Groups = nil } else { - yyv427 := &x.Groups - yym428 := z.DecBinary() - _ = yym428 + yyv442 := &x.Groups + yym443 := z.DecBinary() + _ = yym443 if false { } else { - z.F.DecSliceStringX(yyv427, false, d) + z.F.DecSliceStringX(yyv442, false, d) } } - yyj423++ - if yyhl423 { - yyb423 = yyj423 > l + yyj438++ + if yyhl438 { + yyb438 = yyj438 > l } else { - yyb423 = r.CheckBreak() + yyb438 = r.CheckBreak() } - if yyb423 { + if yyb438 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4619,26 +4763,26 @@ func (x *SubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.D if r.TryDecodeAsNil() { x.Extra = nil } else { - yyv429 := &x.Extra - yym430 := z.DecBinary() - _ = yym430 + yyv444 := &x.Extra + yym445 := z.DecBinary() + _ = yym445 if false { } else { - h.decMapstringExtraValue((*map[string]ExtraValue)(yyv429), d) + h.decMapstringExtraValue((*map[string]ExtraValue)(yyv444), d) } } for { - yyj423++ - if yyhl423 { - yyb423 = yyj423 > l + yyj438++ + if yyhl438 { + yyb438 = yyj438 > l } else { - yyb423 = r.CheckBreak() + yyb438 = r.CheckBreak() } - if yyb423 { + if yyb438 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj423-1, "") + z.DecStructFieldNotFound(yyj438-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4650,8 +4794,8 @@ func (x ExtraValue) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym431 := z.EncBinary() - _ = yym431 + yym446 := z.EncBinary() + _ = yym446 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -4664,8 +4808,8 @@ func (x *ExtraValue) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym432 := z.DecBinary() - _ = yym432 + yym447 := z.DecBinary() + _ = yym447 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -4680,30 +4824,30 @@ func (x *SelfSubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym433 := z.EncBinary() - _ = yym433 + yym448 := z.EncBinary() + _ = yym448 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep434 := !z.EncBinary() - yy2arr434 := z.EncBasicHandle().StructToArray - var yyq434 [2]bool - _, _, _ = yysep434, yyq434, yy2arr434 - const yyr434 bool = false - var yynn434 int - if yyr434 || yy2arr434 { + yysep449 := !z.EncBinary() + yy2arr449 := z.EncBasicHandle().StructToArray + var yyq449 [2]bool + _, _, _ = yysep449, yyq449, yy2arr449 + const yyr449 bool = false + var yynn449 int + if yyr449 || yy2arr449 { r.EncodeArrayStart(2) } else { - yynn434 = 2 - for _, b := range yyq434 { + yynn449 = 2 + for _, b := range yyq449 { if b { - yynn434++ + yynn449++ } } - r.EncodeMapStart(yynn434) - yynn434 = 0 + r.EncodeMapStart(yynn449) + yynn449 = 0 } - if yyr434 || yy2arr434 { + if yyr449 || yy2arr449 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.ResourceAttributes == nil { r.EncodeNil() @@ -4720,7 +4864,7 @@ func (x *SelfSubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { x.ResourceAttributes.CodecEncodeSelf(e) } } - if yyr434 || yy2arr434 { + if yyr449 || yy2arr449 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NonResourceAttributes == nil { r.EncodeNil() @@ -4737,7 +4881,7 @@ func (x *SelfSubjectAccessReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { x.NonResourceAttributes.CodecEncodeSelf(e) } } - if yyr434 || yy2arr434 { + if yyr449 || yy2arr449 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4750,25 +4894,25 @@ func (x *SelfSubjectAccessReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym437 := z.DecBinary() - _ = yym437 + yym452 := z.DecBinary() + _ = yym452 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct438 := r.ContainerType() - if yyct438 == codecSelferValueTypeMap1234 { - yyl438 := r.ReadMapStart() - if yyl438 == 0 { + yyct453 := r.ContainerType() + if yyct453 == codecSelferValueTypeMap1234 { + yyl453 := r.ReadMapStart() + if yyl453 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl438, d) + x.codecDecodeSelfFromMap(yyl453, d) } - } else if yyct438 == codecSelferValueTypeArray1234 { - yyl438 := r.ReadArrayStart() - if yyl438 == 0 { + } else if yyct453 == codecSelferValueTypeArray1234 { + yyl453 := r.ReadArrayStart() + if yyl453 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl438, d) + x.codecDecodeSelfFromArray(yyl453, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -4780,12 +4924,12 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys439Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys439Slc - var yyhl439 bool = l >= 0 - for yyj439 := 0; ; yyj439++ { - if yyhl439 { - if yyj439 >= l { + var yys454Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys454Slc + var yyhl454 bool = l >= 0 + for yyj454 := 0; ; yyj454++ { + if yyhl454 { + if yyj454 >= l { break } } else { @@ -4794,10 +4938,10 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys439Slc = r.DecodeBytes(yys439Slc, true, true) - yys439 := string(yys439Slc) + yys454Slc = r.DecodeBytes(yys454Slc, true, true) + yys454 := string(yys454Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys439 { + switch yys454 { case "ResourceAttributes": if r.TryDecodeAsNil() { if x.ResourceAttributes != nil { @@ -4821,9 +4965,9 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978 x.NonResourceAttributes.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys439) - } // end switch yys439 - } // end for yyj439 + z.DecStructFieldNotFound(-1, yys454) + } // end switch yys454 + } // end for yyj454 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4831,16 +4975,16 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj442 int - var yyb442 bool - var yyhl442 bool = l >= 0 - yyj442++ - if yyhl442 { - yyb442 = yyj442 > l + var yyj457 int + var yyb457 bool + var yyhl457 bool = l >= 0 + yyj457++ + if yyhl457 { + yyb457 = yyj457 > l } else { - yyb442 = r.CheckBreak() + yyb457 = r.CheckBreak() } - if yyb442 { + if yyb457 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4855,13 +4999,13 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec19 } x.ResourceAttributes.CodecDecodeSelf(d) } - yyj442++ - if yyhl442 { - yyb442 = yyj442 > l + yyj457++ + if yyhl457 { + yyb457 = yyj457 > l } else { - yyb442 = r.CheckBreak() + yyb457 = r.CheckBreak() } - if yyb442 { + if yyb457 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4877,17 +5021,17 @@ func (x *SelfSubjectAccessReviewSpec) codecDecodeSelfFromArray(l int, d *codec19 x.NonResourceAttributes.CodecDecodeSelf(d) } for { - yyj442++ - if yyhl442 { - yyb442 = yyj442 > l + yyj457++ + if yyhl457 { + yyb457 = yyj457 > l } else { - yyb442 = r.CheckBreak() + yyb457 = r.CheckBreak() } - if yyb442 { + if yyb457 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj442-1, "") + z.DecStructFieldNotFound(yyj457-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -4899,33 +5043,33 @@ func (x *SubjectAccessReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym445 := z.EncBinary() - _ = yym445 + yym460 := z.EncBinary() + _ = yym460 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep446 := !z.EncBinary() - yy2arr446 := z.EncBasicHandle().StructToArray - var yyq446 [3]bool - _, _, _ = yysep446, yyq446, yy2arr446 - const yyr446 bool = false - var yynn446 int - if yyr446 || yy2arr446 { + yysep461 := !z.EncBinary() + yy2arr461 := z.EncBasicHandle().StructToArray + var yyq461 [3]bool + _, _, _ = yysep461, yyq461, yy2arr461 + const yyr461 bool = false + var yynn461 int + if yyr461 || yy2arr461 { r.EncodeArrayStart(3) } else { - yynn446 = 3 - for _, b := range yyq446 { + yynn461 = 3 + for _, b := range yyq461 { if b { - yynn446++ + yynn461++ } } - r.EncodeMapStart(yynn446) - yynn446 = 0 + r.EncodeMapStart(yynn461) + yynn461 = 0 } - if yyr446 || yy2arr446 { + if yyr461 || yy2arr461 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym448 := z.EncBinary() - _ = yym448 + yym463 := z.EncBinary() + _ = yym463 if false { } else { r.EncodeBool(bool(x.Allowed)) @@ -4934,17 +5078,17 @@ func (x *SubjectAccessReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Allowed")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym449 := z.EncBinary() - _ = yym449 + yym464 := z.EncBinary() + _ = yym464 if false { } else { r.EncodeBool(bool(x.Allowed)) } } - if yyr446 || yy2arr446 { + if yyr461 || yy2arr461 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym451 := z.EncBinary() - _ = yym451 + yym466 := z.EncBinary() + _ = yym466 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) @@ -4953,17 +5097,17 @@ func (x *SubjectAccessReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym452 := z.EncBinary() - _ = yym452 + yym467 := z.EncBinary() + _ = yym467 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } - if yyr446 || yy2arr446 { + if yyr461 || yy2arr461 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym454 := z.EncBinary() - _ = yym454 + yym469 := z.EncBinary() + _ = yym469 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EvaluationError)) @@ -4972,14 +5116,14 @@ func (x *SubjectAccessReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("EvaluationError")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym455 := z.EncBinary() - _ = yym455 + yym470 := z.EncBinary() + _ = yym470 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EvaluationError)) } } - if yyr446 || yy2arr446 { + if yyr461 || yy2arr461 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -4992,25 +5136,25 @@ func (x *SubjectAccessReviewStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym456 := z.DecBinary() - _ = yym456 + yym471 := z.DecBinary() + _ = yym471 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct457 := r.ContainerType() - if yyct457 == codecSelferValueTypeMap1234 { - yyl457 := r.ReadMapStart() - if yyl457 == 0 { + yyct472 := r.ContainerType() + if yyct472 == codecSelferValueTypeMap1234 { + yyl472 := r.ReadMapStart() + if yyl472 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl457, d) + x.codecDecodeSelfFromMap(yyl472, d) } - } else if yyct457 == codecSelferValueTypeArray1234 { - yyl457 := r.ReadArrayStart() - if yyl457 == 0 { + } else if yyct472 == codecSelferValueTypeArray1234 { + yyl472 := r.ReadArrayStart() + if yyl472 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl457, d) + x.codecDecodeSelfFromArray(yyl472, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -5022,12 +5166,12 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.D var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys458Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys458Slc - var yyhl458 bool = l >= 0 - for yyj458 := 0; ; yyj458++ { - if yyhl458 { - if yyj458 >= l { + var yys473Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys473Slc + var yyhl473 bool = l >= 0 + for yyj473 := 0; ; yyj473++ { + if yyhl473 { + if yyj473 >= l { break } } else { @@ -5036,10 +5180,10 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.D } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys458Slc = r.DecodeBytes(yys458Slc, true, true) - yys458 := string(yys458Slc) + yys473Slc = r.DecodeBytes(yys473Slc, true, true) + yys473 := string(yys473Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys458 { + switch yys473 { case "Allowed": if r.TryDecodeAsNil() { x.Allowed = false @@ -5059,9 +5203,9 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.D x.EvaluationError = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys458) - } // end switch yys458 - } // end for yyj458 + z.DecStructFieldNotFound(-1, yys473) + } // end switch yys473 + } // end for yyj473 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -5069,16 +5213,16 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj462 int - var yyb462 bool - var yyhl462 bool = l >= 0 - yyj462++ - if yyhl462 { - yyb462 = yyj462 > l + var yyj477 int + var yyb477 bool + var yyhl477 bool = l >= 0 + yyj477++ + if yyhl477 { + yyb477 = yyj477 > l } else { - yyb462 = r.CheckBreak() + yyb477 = r.CheckBreak() } - if yyb462 { + if yyb477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5088,13 +5232,13 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Allowed = bool(r.DecodeBool()) } - yyj462++ - if yyhl462 { - yyb462 = yyj462 > l + yyj477++ + if yyhl477 { + yyb477 = yyj477 > l } else { - yyb462 = r.CheckBreak() + yyb477 = r.CheckBreak() } - if yyb462 { + if yyb477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5104,13 +5248,13 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978 } else { x.Reason = string(r.DecodeString()) } - yyj462++ - if yyhl462 { - yyb462 = yyj462 > l + yyj477++ + if yyhl477 { + yyb477 = yyj477 > l } else { - yyb462 = r.CheckBreak() + yyb477 = r.CheckBreak() } - if yyb462 { + if yyb477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5121,17 +5265,17 @@ func (x *SubjectAccessReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978 x.EvaluationError = string(r.DecodeString()) } for { - yyj462++ - if yyhl462 { - yyb462 = yyj462 > l + yyj477++ + if yyhl477 { + yyb477 = yyj477 > l } else { - yyb462 = r.CheckBreak() + yyb477 = r.CheckBreak() } - if yyb462 { + if yyb477 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj462-1, "") + z.DecStructFieldNotFound(yyj477-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5141,10 +5285,10 @@ func (x codecSelfer1234) encSliceapi_OwnerReference(v []pkg2_api.OwnerReference, z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv466 := range v { + for _, yyv481 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy467 := &yyv466 - yy467.CodecEncodeSelf(e) + yy482 := &yyv481 + yy482.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5154,83 +5298,83 @@ func (x codecSelfer1234) decSliceapi_OwnerReference(v *[]pkg2_api.OwnerReference z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv468 := *v - yyh468, yyl468 := z.DecSliceHelperStart() - var yyc468 bool - if yyl468 == 0 { - if yyv468 == nil { - yyv468 = []pkg2_api.OwnerReference{} - yyc468 = true - } else if len(yyv468) != 0 { - yyv468 = yyv468[:0] - yyc468 = true + yyv483 := *v + yyh483, yyl483 := z.DecSliceHelperStart() + var yyc483 bool + if yyl483 == 0 { + if yyv483 == nil { + yyv483 = []pkg2_api.OwnerReference{} + yyc483 = true + } else if len(yyv483) != 0 { + yyv483 = yyv483[:0] + yyc483 = true } - } else if yyl468 > 0 { - var yyrr468, yyrl468 int - var yyrt468 bool - if yyl468 > cap(yyv468) { + } else if yyl483 > 0 { + var yyrr483, yyrl483 int + var yyrt483 bool + if yyl483 > cap(yyv483) { - yyrg468 := len(yyv468) > 0 - yyv2468 := yyv468 - yyrl468, yyrt468 = z.DecInferLen(yyl468, z.DecBasicHandle().MaxInitLen, 72) - if yyrt468 { - if yyrl468 <= cap(yyv468) { - yyv468 = yyv468[:yyrl468] + yyrg483 := len(yyv483) > 0 + yyv2483 := yyv483 + yyrl483, yyrt483 = z.DecInferLen(yyl483, z.DecBasicHandle().MaxInitLen, 72) + if yyrt483 { + if yyrl483 <= cap(yyv483) { + yyv483 = yyv483[:yyrl483] } else { - yyv468 = make([]pkg2_api.OwnerReference, yyrl468) + yyv483 = make([]pkg2_api.OwnerReference, yyrl483) } } else { - yyv468 = make([]pkg2_api.OwnerReference, yyrl468) + yyv483 = make([]pkg2_api.OwnerReference, yyrl483) } - yyc468 = true - yyrr468 = len(yyv468) - if yyrg468 { - copy(yyv468, yyv2468) + yyc483 = true + yyrr483 = len(yyv483) + if yyrg483 { + copy(yyv483, yyv2483) } - } else if yyl468 != len(yyv468) { - yyv468 = yyv468[:yyl468] - yyc468 = true + } else if yyl483 != len(yyv483) { + yyv483 = yyv483[:yyl483] + yyc483 = true } - yyj468 := 0 - for ; yyj468 < yyrr468; yyj468++ { - yyh468.ElemContainerState(yyj468) + yyj483 := 0 + for ; yyj483 < yyrr483; yyj483++ { + yyh483.ElemContainerState(yyj483) if r.TryDecodeAsNil() { - yyv468[yyj468] = pkg2_api.OwnerReference{} + yyv483[yyj483] = pkg2_api.OwnerReference{} } else { - yyv469 := &yyv468[yyj468] - yyv469.CodecDecodeSelf(d) + yyv484 := &yyv483[yyj483] + yyv484.CodecDecodeSelf(d) } } - if yyrt468 { - for ; yyj468 < yyl468; yyj468++ { - yyv468 = append(yyv468, pkg2_api.OwnerReference{}) - yyh468.ElemContainerState(yyj468) + if yyrt483 { + for ; yyj483 < yyl483; yyj483++ { + yyv483 = append(yyv483, pkg2_api.OwnerReference{}) + yyh483.ElemContainerState(yyj483) if r.TryDecodeAsNil() { - yyv468[yyj468] = pkg2_api.OwnerReference{} + yyv483[yyj483] = pkg2_api.OwnerReference{} } else { - yyv470 := &yyv468[yyj468] - yyv470.CodecDecodeSelf(d) + yyv485 := &yyv483[yyj483] + yyv485.CodecDecodeSelf(d) } } } } else { - yyj468 := 0 - for ; !r.CheckBreak(); yyj468++ { + yyj483 := 0 + for ; !r.CheckBreak(); yyj483++ { - if yyj468 >= len(yyv468) { - yyv468 = append(yyv468, pkg2_api.OwnerReference{}) // var yyz468 pkg2_api.OwnerReference - yyc468 = true + if yyj483 >= len(yyv483) { + yyv483 = append(yyv483, pkg2_api.OwnerReference{}) // var yyz483 pkg2_api.OwnerReference + yyc483 = true } - yyh468.ElemContainerState(yyj468) - if yyj468 < len(yyv468) { + yyh483.ElemContainerState(yyj483) + if yyj483 < len(yyv483) { if r.TryDecodeAsNil() { - yyv468[yyj468] = pkg2_api.OwnerReference{} + yyv483[yyj483] = pkg2_api.OwnerReference{} } else { - yyv471 := &yyv468[yyj468] - yyv471.CodecDecodeSelf(d) + yyv486 := &yyv483[yyj483] + yyv486.CodecDecodeSelf(d) } } else { @@ -5238,17 +5382,17 @@ func (x codecSelfer1234) decSliceapi_OwnerReference(v *[]pkg2_api.OwnerReference } } - if yyj468 < len(yyv468) { - yyv468 = yyv468[:yyj468] - yyc468 = true - } else if yyj468 == 0 && yyv468 == nil { - yyv468 = []pkg2_api.OwnerReference{} - yyc468 = true + if yyj483 < len(yyv483) { + yyv483 = yyv483[:yyj483] + yyc483 = true + } else if yyj483 == 0 && yyv483 == nil { + yyv483 = []pkg2_api.OwnerReference{} + yyc483 = true } } - yyh468.End() - if yyc468 { - *v = yyv468 + yyh483.End() + if yyc483 { + *v = yyv483 } } @@ -5257,19 +5401,19 @@ func (x codecSelfer1234) encMapstringExtraValue(v map[string]ExtraValue, e *code z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) - for yyk472, yyv472 := range v { + for yyk487, yyv487 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym473 := z.EncBinary() - _ = yym473 + yym488 := z.EncBinary() + _ = yym488 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk472)) + r.EncodeString(codecSelferC_UTF81234, string(yyk487)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) - if yyv472 == nil { + if yyv487 == nil { r.EncodeNil() } else { - yyv472.CodecEncodeSelf(e) + yyv487.CodecEncodeSelf(e) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -5280,70 +5424,70 @@ func (x codecSelfer1234) decMapstringExtraValue(v *map[string]ExtraValue, d *cod z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv474 := *v - yyl474 := r.ReadMapStart() - yybh474 := z.DecBasicHandle() - if yyv474 == nil { - yyrl474, _ := z.DecInferLen(yyl474, yybh474.MaxInitLen, 40) - yyv474 = make(map[string]ExtraValue, yyrl474) - *v = yyv474 + yyv489 := *v + yyl489 := r.ReadMapStart() + yybh489 := z.DecBasicHandle() + if yyv489 == nil { + yyrl489, _ := z.DecInferLen(yyl489, yybh489.MaxInitLen, 40) + yyv489 = make(map[string]ExtraValue, yyrl489) + *v = yyv489 } - var yymk474 string - var yymv474 ExtraValue - var yymg474 bool - if yybh474.MapValueReset { - yymg474 = true + var yymk489 string + var yymv489 ExtraValue + var yymg489 bool + if yybh489.MapValueReset { + yymg489 = true } - if yyl474 > 0 { - for yyj474 := 0; yyj474 < yyl474; yyj474++ { + if yyl489 > 0 { + for yyj489 := 0; yyj489 < yyl489; yyj489++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk474 = "" + yymk489 = "" } else { - yymk474 = string(r.DecodeString()) + yymk489 = string(r.DecodeString()) } - if yymg474 { - yymv474 = yyv474[yymk474] + if yymg489 { + yymv489 = yyv489[yymk489] } else { - yymv474 = nil + yymv489 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv474 = nil + yymv489 = nil } else { - yyv476 := &yymv474 - yyv476.CodecDecodeSelf(d) + yyv491 := &yymv489 + yyv491.CodecDecodeSelf(d) } - if yyv474 != nil { - yyv474[yymk474] = yymv474 + if yyv489 != nil { + yyv489[yymk489] = yymv489 } } - } else if yyl474 < 0 { - for yyj474 := 0; !r.CheckBreak(); yyj474++ { + } else if yyl489 < 0 { + for yyj489 := 0; !r.CheckBreak(); yyj489++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk474 = "" + yymk489 = "" } else { - yymk474 = string(r.DecodeString()) + yymk489 = string(r.DecodeString()) } - if yymg474 { - yymv474 = yyv474[yymk474] + if yymg489 { + yymv489 = yyv489[yymk489] } else { - yymv474 = nil + yymv489 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv474 = nil + yymv489 = nil } else { - yyv478 := &yymv474 - yyv478.CodecDecodeSelf(d) + yyv493 := &yymv489 + yyv493.CodecDecodeSelf(d) } - if yyv474 != nil { - yyv474[yymk474] = yymv474 + if yyv489 != nil { + yyv489[yymk489] = yymv489 } } } // else len==0: TODO: Should we clear map entries? @@ -5355,13 +5499,13 @@ func (x codecSelfer1234) encExtraValue(v ExtraValue, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv479 := range v { + for _, yyv494 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym480 := z.EncBinary() - _ = yym480 + yym495 := z.EncBinary() + _ = yym495 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv479)) + r.EncodeString(codecSelferC_UTF81234, string(yyv494)) } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -5372,75 +5516,75 @@ func (x codecSelfer1234) decExtraValue(v *ExtraValue, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv481 := *v - yyh481, yyl481 := z.DecSliceHelperStart() - var yyc481 bool - if yyl481 == 0 { - if yyv481 == nil { - yyv481 = []string{} - yyc481 = true - } else if len(yyv481) != 0 { - yyv481 = yyv481[:0] - yyc481 = true + yyv496 := *v + yyh496, yyl496 := z.DecSliceHelperStart() + var yyc496 bool + if yyl496 == 0 { + if yyv496 == nil { + yyv496 = []string{} + yyc496 = true + } else if len(yyv496) != 0 { + yyv496 = yyv496[:0] + yyc496 = true } - } else if yyl481 > 0 { - var yyrr481, yyrl481 int - var yyrt481 bool - if yyl481 > cap(yyv481) { + } else if yyl496 > 0 { + var yyrr496, yyrl496 int + var yyrt496 bool + if yyl496 > cap(yyv496) { - yyrl481, yyrt481 = z.DecInferLen(yyl481, z.DecBasicHandle().MaxInitLen, 16) - if yyrt481 { - if yyrl481 <= cap(yyv481) { - yyv481 = yyv481[:yyrl481] + yyrl496, yyrt496 = z.DecInferLen(yyl496, z.DecBasicHandle().MaxInitLen, 16) + if yyrt496 { + if yyrl496 <= cap(yyv496) { + yyv496 = yyv496[:yyrl496] } else { - yyv481 = make([]string, yyrl481) + yyv496 = make([]string, yyrl496) } } else { - yyv481 = make([]string, yyrl481) + yyv496 = make([]string, yyrl496) } - yyc481 = true - yyrr481 = len(yyv481) - } else if yyl481 != len(yyv481) { - yyv481 = yyv481[:yyl481] - yyc481 = true + yyc496 = true + yyrr496 = len(yyv496) + } else if yyl496 != len(yyv496) { + yyv496 = yyv496[:yyl496] + yyc496 = true } - yyj481 := 0 - for ; yyj481 < yyrr481; yyj481++ { - yyh481.ElemContainerState(yyj481) + yyj496 := 0 + for ; yyj496 < yyrr496; yyj496++ { + yyh496.ElemContainerState(yyj496) if r.TryDecodeAsNil() { - yyv481[yyj481] = "" + yyv496[yyj496] = "" } else { - yyv481[yyj481] = string(r.DecodeString()) + yyv496[yyj496] = string(r.DecodeString()) } } - if yyrt481 { - for ; yyj481 < yyl481; yyj481++ { - yyv481 = append(yyv481, "") - yyh481.ElemContainerState(yyj481) + if yyrt496 { + for ; yyj496 < yyl496; yyj496++ { + yyv496 = append(yyv496, "") + yyh496.ElemContainerState(yyj496) if r.TryDecodeAsNil() { - yyv481[yyj481] = "" + yyv496[yyj496] = "" } else { - yyv481[yyj481] = string(r.DecodeString()) + yyv496[yyj496] = string(r.DecodeString()) } } } } else { - yyj481 := 0 - for ; !r.CheckBreak(); yyj481++ { + yyj496 := 0 + for ; !r.CheckBreak(); yyj496++ { - if yyj481 >= len(yyv481) { - yyv481 = append(yyv481, "") // var yyz481 string - yyc481 = true + if yyj496 >= len(yyv496) { + yyv496 = append(yyv496, "") // var yyz496 string + yyc496 = true } - yyh481.ElemContainerState(yyj481) - if yyj481 < len(yyv481) { + yyh496.ElemContainerState(yyj496) + if yyj496 < len(yyv496) { if r.TryDecodeAsNil() { - yyv481[yyj481] = "" + yyv496[yyj496] = "" } else { - yyv481[yyj481] = string(r.DecodeString()) + yyv496[yyj496] = string(r.DecodeString()) } } else { @@ -5448,16 +5592,16 @@ func (x codecSelfer1234) decExtraValue(v *ExtraValue, d *codec1978.Decoder) { } } - if yyj481 < len(yyv481) { - yyv481 = yyv481[:yyj481] - yyc481 = true - } else if yyj481 == 0 && yyv481 == nil { - yyv481 = []string{} - yyc481 = true + if yyj496 < len(yyv496) { + yyv496 = yyv496[:yyj496] + yyc496 = true + } else if yyj496 == 0 && yyv496 == nil { + yyv496 = []string{} + yyc496 = true } } - yyh481.End() - if yyc481 { - *v = yyv481 + yyh496.End() + if yyc496 { + *v = yyv496 } } diff --git a/1.4/pkg/apis/autoscaling/register.go b/1.4/pkg/apis/autoscaling/register.go index 62fde796..40a5d2c6 100644 --- a/1.4/pkg/apis/autoscaling/register.go +++ b/1.4/pkg/apis/autoscaling/register.go @@ -28,12 +28,12 @@ const GroupName = "autoscaling" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} -// Kind takes an unqualified kind and returns back a Group qualified GroupKind +// Kind takes an unqualified kind and returns a Group qualified GroupKind func Kind(kind string) unversioned.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() } -// Resource takes an unqualified resource and returns back a Group qualified GroupResource +// Resource takes an unqualified resource and returns a Group qualified GroupResource func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } diff --git a/1.4/pkg/apis/autoscaling/types.generated.go b/1.4/pkg/apis/autoscaling/types.generated.go index 8960a212..5ce64bd1 100644 --- a/1.4/pkg/apis/autoscaling/types.generated.go +++ b/1.4/pkg/apis/autoscaling/types.generated.go @@ -2575,7 +2575,7 @@ func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutos yyrg220 := len(yyv220) > 0 yyv2220 := yyv220 - yyrl220, yyrt220 = z.DecInferLen(yyl220, z.DecBasicHandle().MaxInitLen, 344) + yyrl220, yyrt220 = z.DecInferLen(yyl220, z.DecBasicHandle().MaxInitLen, 360) if yyrt220 { if yyrl220 <= cap(yyv220) { yyv220 = yyv220[:yyrl220] diff --git a/1.4/pkg/apis/autoscaling/v1/types.generated.go b/1.4/pkg/apis/autoscaling/v1/types.generated.go index 14ad036e..ce13480e 100644 --- a/1.4/pkg/apis/autoscaling/v1/types.generated.go +++ b/1.4/pkg/apis/autoscaling/v1/types.generated.go @@ -2575,7 +2575,7 @@ func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutos yyrg220 := len(yyv220) > 0 yyv2220 := yyv220 - yyrl220, yyrt220 = z.DecInferLen(yyl220, z.DecBasicHandle().MaxInitLen, 344) + yyrl220, yyrt220 = z.DecInferLen(yyl220, z.DecBasicHandle().MaxInitLen, 360) if yyrt220 { if yyrl220 <= cap(yyv220) { yyv220 = yyv220[:yyrl220] diff --git a/1.4/pkg/apis/batch/register.go b/1.4/pkg/apis/batch/register.go index 8b84cdde..f62ea35d 100644 --- a/1.4/pkg/apis/batch/register.go +++ b/1.4/pkg/apis/batch/register.go @@ -28,12 +28,12 @@ const GroupName = "batch" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} -// Kind takes an unqualified kind and returns back a Group qualified GroupKind +// Kind takes an unqualified kind and returns a Group qualified GroupKind func Kind(kind string) unversioned.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() } -// Resource takes an unqualified resource and returns back a Group qualified GroupResource +// Resource takes an unqualified resource and returns a Group qualified GroupResource func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } diff --git a/1.4/pkg/apis/batch/types.generated.go b/1.4/pkg/apis/batch/types.generated.go index 2de7c00c..f22f1007 100644 --- a/1.4/pkg/apis/batch/types.generated.go +++ b/1.4/pkg/apis/batch/types.generated.go @@ -4247,7 +4247,7 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { yyrg370 := len(yyv370) > 0 yyv2370 := yyv370 - yyrl370, yyrt370 = z.DecInferLen(yyl370, z.DecBasicHandle().MaxInitLen, 768) + yyrl370, yyrt370 = z.DecInferLen(yyl370, z.DecBasicHandle().MaxInitLen, 800) if yyrt370 { if yyrl370 <= cap(yyv370) { yyv370 = yyv370[:yyrl370] @@ -4479,7 +4479,7 @@ func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.De yyrg382 := len(yyv382) > 0 yyv2382 := yyv382 - yyrl382, yyrt382 = z.DecInferLen(yyl382, z.DecBasicHandle().MaxInitLen, 1000) + yyrl382, yyrt382 = z.DecInferLen(yyl382, z.DecBasicHandle().MaxInitLen, 1048) if yyrt382 { if yyrl382 <= cap(yyv382) { yyv382 = yyv382[:yyrl382] diff --git a/1.4/pkg/apis/batch/v1/types.generated.go b/1.4/pkg/apis/batch/v1/types.generated.go index c766863d..a66b9869 100644 --- a/1.4/pkg/apis/batch/v1/types.generated.go +++ b/1.4/pkg/apis/batch/v1/types.generated.go @@ -2872,7 +2872,7 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { yyrg245 := len(yyv245) > 0 yyv2245 := yyv245 - yyrl245, yyrt245 = z.DecInferLen(yyl245, z.DecBasicHandle().MaxInitLen, 792) + yyrl245, yyrt245 = z.DecInferLen(yyl245, z.DecBasicHandle().MaxInitLen, 824) if yyrt245 { if yyrl245 <= cap(yyv245) { yyv245 = yyv245[:yyrl245] diff --git a/1.4/pkg/apis/batch/v2alpha1/types.generated.go b/1.4/pkg/apis/batch/v2alpha1/types.generated.go index 7172a7a9..60802c76 100644 --- a/1.4/pkg/apis/batch/v2alpha1/types.generated.go +++ b/1.4/pkg/apis/batch/v2alpha1/types.generated.go @@ -4767,7 +4767,7 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { yyrg409 := len(yyv409) > 0 yyv2409 := yyv409 - yyrl409, yyrt409 = z.DecInferLen(yyl409, z.DecBasicHandle().MaxInitLen, 792) + yyrl409, yyrt409 = z.DecInferLen(yyl409, z.DecBasicHandle().MaxInitLen, 824) if yyrt409 { if yyrl409 <= cap(yyv409) { yyv409 = yyv409[:yyrl409] @@ -4999,7 +4999,7 @@ func (x codecSelfer1234) decSliceScheduledJob(v *[]ScheduledJob, d *codec1978.De yyrg421 := len(yyv421) > 0 yyv2421 := yyv421 - yyrl421, yyrt421 = z.DecInferLen(yyl421, z.DecBasicHandle().MaxInitLen, 1024) + yyrl421, yyrt421 = z.DecInferLen(yyl421, z.DecBasicHandle().MaxInitLen, 1072) if yyrt421 { if yyrl421 <= cap(yyv421) { yyv421 = yyv421[:yyrl421] diff --git a/1.4/pkg/apis/certificates/register.go b/1.4/pkg/apis/certificates/register.go index bfdceef0..8e225c23 100644 --- a/1.4/pkg/apis/certificates/register.go +++ b/1.4/pkg/apis/certificates/register.go @@ -33,12 +33,12 @@ const GroupName = "certificates" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} -// Kind takes an unqualified kind and returns back a Group qualified GroupKind +// Kind takes an unqualified kind and returns a Group qualified GroupKind func Kind(kind string) unversioned.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() } -// Resource takes an unqualified resource and returns back a Group qualified GroupResource +// Resource takes an unqualified resource and returns a Group qualified GroupResource func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } diff --git a/1.4/pkg/apis/certificates/types.generated.go b/1.4/pkg/apis/certificates/types.generated.go index e4df1b2e..76efda02 100644 --- a/1.4/pkg/apis/certificates/types.generated.go +++ b/1.4/pkg/apis/certificates/types.generated.go @@ -1876,7 +1876,7 @@ func (x codecSelfer1234) decSliceCertificateSigningRequest(v *[]CertificateSigni yyrg152 := len(yyv152) > 0 yyv2152 := yyv152 - yyrl152, yyrt152 = z.DecInferLen(yyl152, z.DecBasicHandle().MaxInitLen, 368) + yyrl152, yyrt152 = z.DecInferLen(yyl152, z.DecBasicHandle().MaxInitLen, 384) if yyrt152 { if yyrl152 <= cap(yyv152) { yyv152 = yyv152[:yyrl152] diff --git a/1.4/pkg/apis/certificates/types.go b/1.4/pkg/apis/certificates/types.go index 8a7cd235..db6992d4 100644 --- a/1.4/pkg/apis/certificates/types.go +++ b/1.4/pkg/apis/certificates/types.go @@ -29,7 +29,7 @@ type CertificateSigningRequest struct { unversioned.TypeMeta `json:",inline"` api.ObjectMeta `json:"metadata,omitempty"` - // The certificate request itself and any additonal information. + // The certificate request itself and any additional information. Spec CertificateSigningRequestSpec `json:"spec,omitempty"` // Derived information about the request. diff --git a/1.4/pkg/apis/certificates/v1alpha1/conversion.go b/1.4/pkg/apis/certificates/v1alpha1/conversion.go index afbbfac5..d608638d 100644 --- a/1.4/pkg/apis/certificates/v1alpha1/conversion.go +++ b/1.4/pkg/apis/certificates/v1alpha1/conversion.go @@ -16,9 +16,24 @@ limitations under the License. package v1alpha1 -import "k8s.io/client-go/1.4/pkg/runtime" +import ( + "fmt" + + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/runtime" +) func addConversionFuncs(scheme *runtime.Scheme) error { // Add non-generated conversion functions here. Currently there are none. - return nil + + return api.Scheme.AddFieldLabelConversionFunc(SchemeGroupVersion.String(), "CertificateSigningRequest", + func(label, value string) (string, string, error) { + switch label { + case "metadata.name": + return label, value, nil + default: + return "", "", fmt.Errorf("field label not supported: %s", label) + } + }, + ) } diff --git a/1.4/pkg/apis/certificates/v1alpha1/generated.proto b/1.4/pkg/apis/certificates/v1alpha1/generated.proto index 5e8250b1..5638d1d6 100644 --- a/1.4/pkg/apis/certificates/v1alpha1/generated.proto +++ b/1.4/pkg/apis/certificates/v1alpha1/generated.proto @@ -34,7 +34,7 @@ option go_package = "v1alpha1"; message CertificateSigningRequest { optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; - // The certificate request itself and any additonal information. + // The certificate request itself and any additional information. optional CertificateSigningRequestSpec spec = 2; // Derived information about the request. diff --git a/1.4/pkg/apis/certificates/v1alpha1/register.go b/1.4/pkg/apis/certificates/v1alpha1/register.go index 67bedd56..ced77f7b 100644 --- a/1.4/pkg/apis/certificates/v1alpha1/register.go +++ b/1.4/pkg/apis/certificates/v1alpha1/register.go @@ -29,12 +29,12 @@ const GroupName = "certificates" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1alpha1"} -// Kind takes an unqualified kind and returns back a Group qualified GroupKind +// Kind takes an unqualified kind and returns a Group qualified GroupKind func Kind(kind string) unversioned.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() } -// Resource takes an unqualified resource and returns back a Group qualified GroupResource +// Resource takes an unqualified resource and returns a Group qualified GroupResource func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } diff --git a/1.4/pkg/apis/certificates/v1alpha1/types.generated.go b/1.4/pkg/apis/certificates/v1alpha1/types.generated.go index e9ffc869..27719eb6 100644 --- a/1.4/pkg/apis/certificates/v1alpha1/types.generated.go +++ b/1.4/pkg/apis/certificates/v1alpha1/types.generated.go @@ -1869,7 +1869,7 @@ func (x codecSelfer1234) decSliceCertificateSigningRequest(v *[]CertificateSigni yyrg152 := len(yyv152) > 0 yyv2152 := yyv152 - yyrl152, yyrt152 = z.DecInferLen(yyl152, z.DecBasicHandle().MaxInitLen, 368) + yyrl152, yyrt152 = z.DecInferLen(yyl152, z.DecBasicHandle().MaxInitLen, 384) if yyrt152 { if yyrl152 <= cap(yyv152) { yyv152 = yyv152[:yyrl152] diff --git a/1.4/pkg/apis/certificates/v1alpha1/types.go b/1.4/pkg/apis/certificates/v1alpha1/types.go index 2e1181d2..4b1fc151 100644 --- a/1.4/pkg/apis/certificates/v1alpha1/types.go +++ b/1.4/pkg/apis/certificates/v1alpha1/types.go @@ -29,7 +29,7 @@ type CertificateSigningRequest struct { unversioned.TypeMeta `json:",inline"` v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` - // The certificate request itself and any additonal information. + // The certificate request itself and any additional information. Spec CertificateSigningRequestSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` // Derived information about the request. diff --git a/1.4/pkg/apis/certificates/v1alpha1/types_swagger_doc_generated.go b/1.4/pkg/apis/certificates/v1alpha1/types_swagger_doc_generated.go index 47b3b282..cf66d074 100644 --- a/1.4/pkg/apis/certificates/v1alpha1/types_swagger_doc_generated.go +++ b/1.4/pkg/apis/certificates/v1alpha1/types_swagger_doc_generated.go @@ -29,7 +29,7 @@ package v1alpha1 // AUTO-GENERATED FUNCTIONS START HERE var map_CertificateSigningRequest = map[string]string{ "": "Describes a certificate signing request", - "spec": "The certificate request itself and any additonal information.", + "spec": "The certificate request itself and any additional information.", "status": "Derived information about the request.", } diff --git a/1.4/pkg/apis/componentconfig/register.go b/1.4/pkg/apis/componentconfig/register.go index 9047ad6e..8ee27bce 100644 --- a/1.4/pkg/apis/componentconfig/register.go +++ b/1.4/pkg/apis/componentconfig/register.go @@ -32,12 +32,12 @@ const GroupName = "componentconfig" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} -// Kind takes an unqualified kind and returns back a Group qualified GroupKind +// Kind takes an unqualified kind and returns a Group qualified GroupKind func Kind(kind string) unversioned.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() } -// Resource takes an unqualified resource and returns back a Group qualified GroupResource +// Resource takes an unqualified resource and returns a Group qualified GroupResource func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } diff --git a/1.4/pkg/apis/componentconfig/types.generated.go b/1.4/pkg/apis/componentconfig/types.generated.go index bc3391dc..98fa5935 100644 --- a/1.4/pkg/apis/componentconfig/types.generated.go +++ b/1.4/pkg/apis/componentconfig/types.generated.go @@ -1218,35 +1218,36 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep130 := !z.EncBinary() yy2arr130 := z.EncBasicHandle().StructToArray - var yyq130 [98]bool + var yyq130 [105]bool _, _, _ = yysep130, yyq130, yy2arr130 const yyr130 bool = false yyq130[0] = x.Kind != "" yyq130[1] = x.APIVersion != "" - yyq130[50] = x.CloudProvider != "" - yyq130[51] = x.CloudConfigFile != "" - yyq130[52] = x.KubeletCgroups != "" - yyq130[53] = x.CgroupsPerQOS != false - yyq130[54] = x.RuntimeCgroups != "" - yyq130[55] = x.SystemCgroups != "" - yyq130[56] = x.CgroupRoot != "" - yyq130[58] = true - yyq130[59] = x.RktPath != "" - yyq130[60] = x.RktAPIEndpoint != "" - yyq130[61] = x.RktStage1Image != "" - yyq130[82] = true - yyq130[83] = x.NodeIP != "" - yyq130[87] = x.EvictionHard != "" - yyq130[88] = x.EvictionSoft != "" - yyq130[89] = x.EvictionSoftGracePeriod != "" - yyq130[90] = true - yyq130[91] = x.EvictionMaxPodGracePeriod != 0 - yyq130[92] = x.EvictionMinimumReclaim != "" + yyq130[51] = x.CloudProvider != "" + yyq130[52] = x.CloudConfigFile != "" + yyq130[53] = x.KubeletCgroups != "" + yyq130[54] = x.CgroupsPerQOS != false + yyq130[55] = x.RuntimeCgroups != "" + yyq130[56] = x.SystemCgroups != "" + yyq130[57] = x.CgroupRoot != "" + yyq130[61] = true + yyq130[62] = x.RktPath != "" + yyq130[63] = x.RktAPIEndpoint != "" + yyq130[64] = x.RktStage1Image != "" + yyq130[85] = true + yyq130[86] = x.NodeIP != "" + yyq130[90] = x.EvictionHard != "" + yyq130[91] = x.EvictionSoft != "" + yyq130[92] = x.EvictionSoftGracePeriod != "" + yyq130[93] = true + yyq130[94] = x.EvictionMaxPodGracePeriod != 0 + yyq130[95] = x.EvictionMinimumReclaim != "" + yyq130[104] = len(x.AllowedUnsafeSysctls) != 0 var yynn130 int if yyr130 || yy2arr130 { - r.EncodeArrayStart(98) + r.EncodeArrayStart(105) } else { - yynn130 = 77 + yynn130 = 83 for _, b := range yyq130 { if b { yynn130++ @@ -2273,17 +2274,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym292 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginDir)) + r.EncodeInt(int64(x.NetworkPluginMTU)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("networkPluginDir")) + r.EncodeString(codecSelferC_UTF81234, string("networkPluginMTU")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym293 := z.EncBinary() _ = yym293 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginDir)) + r.EncodeInt(int64(x.NetworkPluginMTU)) } } if yyr130 || yy2arr130 { @@ -2291,6 +2292,25 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { yym295 := z.EncBinary() _ = yym295 if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginDir)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("networkPluginDir")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym296 := z.EncBinary() + _ = yym296 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.NetworkPluginDir)) + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym298 := z.EncBinary() + _ = yym298 + if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePluginDir)) } @@ -2298,38 +2318,13 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumePluginDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym296 := z.EncBinary() - _ = yym296 + yym299 := z.EncBinary() + _ = yym299 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePluginDir)) } } - if yyr130 || yy2arr130 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq130[50] { - yym298 := z.EncBinary() - _ = yym298 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq130[50] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cloudProvider")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym299 := z.EncBinary() - _ = yym299 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) - } - } - } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq130[51] { @@ -2337,7 +2332,7 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym301 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) + r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) } } else { r.EncodeString(codecSelferC_UTF81234, "") @@ -2345,13 +2340,13 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } else { if yyq130[51] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cloudConfigFile")) + r.EncodeString(codecSelferC_UTF81234, string("cloudProvider")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym302 := z.EncBinary() _ = yym302 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) + r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) } } } @@ -2362,7 +2357,7 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym304 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KubeletCgroups)) + r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) } } else { r.EncodeString(codecSelferC_UTF81234, "") @@ -2370,13 +2365,13 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } else { if yyq130[52] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeletCgroups")) + r.EncodeString(codecSelferC_UTF81234, string("cloudConfigFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym305 := z.EncBinary() _ = yym305 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.KubeletCgroups)) + r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) } } } @@ -2387,21 +2382,21 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym307 if false { } else { - r.EncodeBool(bool(x.CgroupsPerQOS)) + r.EncodeString(codecSelferC_UTF81234, string(x.KubeletCgroups)) } } else { - r.EncodeBool(false) + r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq130[53] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("CgroupsPerQOS")) + r.EncodeString(codecSelferC_UTF81234, string("kubeletCgroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym308 := z.EncBinary() _ = yym308 if false { } else { - r.EncodeBool(bool(x.CgroupsPerQOS)) + r.EncodeString(codecSelferC_UTF81234, string(x.KubeletCgroups)) } } } @@ -2412,21 +2407,21 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym310 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RuntimeCgroups)) + r.EncodeBool(bool(x.CgroupsPerQOS)) } } else { - r.EncodeString(codecSelferC_UTF81234, "") + r.EncodeBool(false) } } else { if yyq130[54] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("runtimeCgroups")) + r.EncodeString(codecSelferC_UTF81234, string("CgroupsPerQOS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym311 := z.EncBinary() _ = yym311 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RuntimeCgroups)) + r.EncodeBool(bool(x.CgroupsPerQOS)) } } } @@ -2437,7 +2432,7 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym313 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SystemCgroups)) + r.EncodeString(codecSelferC_UTF81234, string(x.RuntimeCgroups)) } } else { r.EncodeString(codecSelferC_UTF81234, "") @@ -2445,13 +2440,13 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } else { if yyq130[55] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("systemCgroups")) + r.EncodeString(codecSelferC_UTF81234, string("runtimeCgroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym314 := z.EncBinary() _ = yym314 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.SystemCgroups)) + r.EncodeString(codecSelferC_UTF81234, string(x.RuntimeCgroups)) } } } @@ -2462,7 +2457,7 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym316 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.CgroupRoot)) + r.EncodeString(codecSelferC_UTF81234, string(x.SystemCgroups)) } } else { r.EncodeString(codecSelferC_UTF81234, "") @@ -2470,11 +2465,36 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } else { if yyq130[56] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cgroupRoot")) + r.EncodeString(codecSelferC_UTF81234, string("systemCgroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym317 := z.EncBinary() _ = yym317 if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SystemCgroups)) + } + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq130[57] { + yym319 := z.EncBinary() + _ = yym319 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.CgroupRoot)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq130[57] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("cgroupRoot")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym320 := z.EncBinary() + _ = yym320 + if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CgroupRoot)) } @@ -2482,8 +2502,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym319 := z.EncBinary() - _ = yym319 + yym322 := z.EncBinary() + _ = yym322 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntime)) @@ -2492,8 +2512,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerRuntime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym320 := z.EncBinary() - _ = yym320 + yym323 := z.EncBinary() + _ = yym323 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntime)) @@ -2501,167 +2521,148 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq130[58] { - yy322 := &x.RuntimeRequestTimeout - yym323 := z.EncBinary() - _ = yym323 + yym325 := z.EncBinary() + _ = yym325 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RemoteRuntimeEndpoint)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("remoteRuntimeEndpoint")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym326 := z.EncBinary() + _ = yym326 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RemoteRuntimeEndpoint)) + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym328 := z.EncBinary() + _ = yym328 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RemoteImageEndpoint)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("remoteImageEndpoint")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym329 := z.EncBinary() + _ = yym329 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RemoteImageEndpoint)) + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq130[61] { + yy331 := &x.RuntimeRequestTimeout + yym332 := z.EncBinary() + _ = yym332 if false { - } else if z.HasExtensions() && z.EncExt(yy322) { - } else if !yym323 && z.IsJSONHandle() { - z.EncJSONMarshal(yy322) + } else if z.HasExtensions() && z.EncExt(yy331) { + } else if !yym332 && z.IsJSONHandle() { + z.EncJSONMarshal(yy331) } else { - z.EncFallback(yy322) + z.EncFallback(yy331) } } else { r.EncodeNil() } } else { - if yyq130[58] { + if yyq130[61] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runtimeRequestTimeout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy324 := &x.RuntimeRequestTimeout - yym325 := z.EncBinary() - _ = yym325 - if false { - } else if z.HasExtensions() && z.EncExt(yy324) { - } else if !yym325 && z.IsJSONHandle() { - z.EncJSONMarshal(yy324) - } else { - z.EncFallback(yy324) - } - } - } - if yyr130 || yy2arr130 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq130[59] { - yym327 := z.EncBinary() - _ = yym327 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktPath)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq130[59] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rktPath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym328 := z.EncBinary() - _ = yym328 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktPath)) - } - } - } - if yyr130 || yy2arr130 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq130[60] { - yym330 := z.EncBinary() - _ = yym330 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktAPIEndpoint)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq130[60] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rktAPIEndpoint")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym331 := z.EncBinary() - _ = yym331 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktAPIEndpoint)) - } - } - } - if yyr130 || yy2arr130 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq130[61] { - yym333 := z.EncBinary() - _ = yym333 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktStage1Image)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq130[61] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("rktStage1Image")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy333 := &x.RuntimeRequestTimeout yym334 := z.EncBinary() _ = yym334 if false { + } else if z.HasExtensions() && z.EncExt(yy333) { + } else if !yym334 && z.IsJSONHandle() { + z.EncJSONMarshal(yy333) } else { - r.EncodeString(codecSelferC_UTF81234, string(x.RktStage1Image)) + z.EncFallback(yy333) } } } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym336 := z.EncBinary() - _ = yym336 - if false { + if yyq130[62] { + yym336 := z.EncBinary() + _ = yym336 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RktPath)) + } } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LockFilePath)) + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("lockFilePath")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym337 := z.EncBinary() - _ = yym337 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.LockFilePath)) + if yyq130[62] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rktPath")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym337 := z.EncBinary() + _ = yym337 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RktPath)) + } } } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym339 := z.EncBinary() - _ = yym339 - if false { + if yyq130[63] { + yym339 := z.EncBinary() + _ = yym339 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RktAPIEndpoint)) + } } else { - r.EncodeBool(bool(x.ExitOnLockContention)) + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("exitOnLockContention")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym340 := z.EncBinary() - _ = yym340 - if false { - } else { - r.EncodeBool(bool(x.ExitOnLockContention)) + if yyq130[63] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rktAPIEndpoint")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym340 := z.EncBinary() + _ = yym340 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RktAPIEndpoint)) + } } } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym342 := z.EncBinary() - _ = yym342 - if false { + if yyq130[64] { + yym342 := z.EncBinary() + _ = yym342 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RktStage1Image)) + } } else { - r.EncodeBool(bool(x.ConfigureCBR0)) + r.EncodeString(codecSelferC_UTF81234, "") } } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("configureCbr0")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym343 := z.EncBinary() - _ = yym343 - if false { - } else { - r.EncodeBool(bool(x.ConfigureCBR0)) + if yyq130[64] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("rktStage1Image")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym343 := z.EncBinary() + _ = yym343 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.RktStage1Image)) + } } } if yyr130 || yy2arr130 { @@ -2670,17 +2671,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym345 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HairpinMode)) + r.EncodeString(codecSelferC_UTF81234, string(x.LockFilePath)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("hairpinMode")) + r.EncodeString(codecSelferC_UTF81234, string("lockFilePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym346 := z.EncBinary() _ = yym346 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.HairpinMode)) + r.EncodeString(codecSelferC_UTF81234, string(x.LockFilePath)) } } if yyr130 || yy2arr130 { @@ -2689,17 +2690,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym348 if false { } else { - r.EncodeBool(bool(x.BabysitDaemons)) + r.EncodeBool(bool(x.ExitOnLockContention)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("babysitDaemons")) + r.EncodeString(codecSelferC_UTF81234, string("exitOnLockContention")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym349 := z.EncBinary() _ = yym349 if false { } else { - r.EncodeBool(bool(x.BabysitDaemons)) + r.EncodeBool(bool(x.ExitOnLockContention)) } } if yyr130 || yy2arr130 { @@ -2708,17 +2709,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym351 if false { } else { - r.EncodeInt(int64(x.MaxPods)) + r.EncodeBool(bool(x.ConfigureCBR0)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxPods")) + r.EncodeString(codecSelferC_UTF81234, string("configureCbr0")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym352 := z.EncBinary() _ = yym352 if false { } else { - r.EncodeInt(int64(x.MaxPods)) + r.EncodeBool(bool(x.ConfigureCBR0)) } } if yyr130 || yy2arr130 { @@ -2727,17 +2728,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym354 if false { } else { - r.EncodeInt(int64(x.NvidiaGPUs)) + r.EncodeString(codecSelferC_UTF81234, string(x.HairpinMode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nvidiaGPUs")) + r.EncodeString(codecSelferC_UTF81234, string("hairpinMode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym355 := z.EncBinary() _ = yym355 if false { } else { - r.EncodeInt(int64(x.NvidiaGPUs)) + r.EncodeString(codecSelferC_UTF81234, string(x.HairpinMode)) } } if yyr130 || yy2arr130 { @@ -2746,17 +2747,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym357 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DockerExecHandlerName)) + r.EncodeBool(bool(x.BabysitDaemons)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("dockerExecHandlerName")) + r.EncodeString(codecSelferC_UTF81234, string("babysitDaemons")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym358 := z.EncBinary() _ = yym358 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.DockerExecHandlerName)) + r.EncodeBool(bool(x.BabysitDaemons)) } } if yyr130 || yy2arr130 { @@ -2765,17 +2766,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym360 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) + r.EncodeInt(int64(x.MaxPods)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) + r.EncodeString(codecSelferC_UTF81234, string("maxPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym361 := z.EncBinary() _ = yym361 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) + r.EncodeInt(int64(x.MaxPods)) } } if yyr130 || yy2arr130 { @@ -2784,17 +2785,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym363 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResolverConfig)) + r.EncodeInt(int64(x.NvidiaGPUs)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("resolvConf")) + r.EncodeString(codecSelferC_UTF81234, string("nvidiaGPUs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym364 := z.EncBinary() _ = yym364 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ResolverConfig)) + r.EncodeInt(int64(x.NvidiaGPUs)) } } if yyr130 || yy2arr130 { @@ -2803,17 +2804,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym366 if false { } else { - r.EncodeBool(bool(x.CPUCFSQuota)) + r.EncodeString(codecSelferC_UTF81234, string(x.DockerExecHandlerName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("cpuCFSQuota")) + r.EncodeString(codecSelferC_UTF81234, string("dockerExecHandlerName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym367 := z.EncBinary() _ = yym367 if false { } else { - r.EncodeBool(bool(x.CPUCFSQuota)) + r.EncodeString(codecSelferC_UTF81234, string(x.DockerExecHandlerName)) } } if yyr130 || yy2arr130 { @@ -2822,17 +2823,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym369 if false { } else { - r.EncodeBool(bool(x.Containerized)) + r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("containerized")) + r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym370 := z.EncBinary() _ = yym370 if false { } else { - r.EncodeBool(bool(x.Containerized)) + r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } if yyr130 || yy2arr130 { @@ -2841,17 +2842,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym372 if false { } else { - r.EncodeInt(int64(x.MaxOpenFiles)) + r.EncodeString(codecSelferC_UTF81234, string(x.ResolverConfig)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("maxOpenFiles")) + r.EncodeString(codecSelferC_UTF81234, string("resolvConf")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym373 := z.EncBinary() _ = yym373 if false { } else { - r.EncodeInt(int64(x.MaxOpenFiles)) + r.EncodeString(codecSelferC_UTF81234, string(x.ResolverConfig)) } } if yyr130 || yy2arr130 { @@ -2860,17 +2861,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym375 if false { } else { - r.EncodeBool(bool(x.ReconcileCIDR)) + r.EncodeBool(bool(x.CPUCFSQuota)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("reconcileCIDR")) + r.EncodeString(codecSelferC_UTF81234, string("cpuCFSQuota")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym376 := z.EncBinary() _ = yym376 if false { } else { - r.EncodeBool(bool(x.ReconcileCIDR)) + r.EncodeBool(bool(x.CPUCFSQuota)) } } if yyr130 || yy2arr130 { @@ -2879,17 +2880,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym378 if false { } else { - r.EncodeBool(bool(x.RegisterSchedulable)) + r.EncodeBool(bool(x.Containerized)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("registerSchedulable")) + r.EncodeString(codecSelferC_UTF81234, string("containerized")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym379 := z.EncBinary() _ = yym379 if false { } else { - r.EncodeBool(bool(x.RegisterSchedulable)) + r.EncodeBool(bool(x.Containerized)) } } if yyr130 || yy2arr130 { @@ -2898,17 +2899,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym381 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) + r.EncodeInt(int64(x.MaxOpenFiles)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("contentType")) + r.EncodeString(codecSelferC_UTF81234, string("maxOpenFiles")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym382 := z.EncBinary() _ = yym382 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) + r.EncodeInt(int64(x.MaxOpenFiles)) } } if yyr130 || yy2arr130 { @@ -2917,17 +2918,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym384 if false { } else { - r.EncodeInt(int64(x.KubeAPIQPS)) + r.EncodeBool(bool(x.ReconcileCIDR)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) + r.EncodeString(codecSelferC_UTF81234, string("reconcileCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym385 := z.EncBinary() _ = yym385 if false { } else { - r.EncodeInt(int64(x.KubeAPIQPS)) + r.EncodeBool(bool(x.ReconcileCIDR)) } } if yyr130 || yy2arr130 { @@ -2936,17 +2937,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym387 if false { } else { - r.EncodeInt(int64(x.KubeAPIBurst)) + r.EncodeBool(bool(x.RegisterSchedulable)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) + r.EncodeString(codecSelferC_UTF81234, string("registerSchedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym388 := z.EncBinary() _ = yym388 if false { } else { - r.EncodeInt(int64(x.KubeAPIBurst)) + r.EncodeBool(bool(x.RegisterSchedulable)) } } if yyr130 || yy2arr130 { @@ -2955,17 +2956,17 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym390 if false { } else { - r.EncodeBool(bool(x.SerializeImagePulls)) + r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("serializeImagePulls")) + r.EncodeString(codecSelferC_UTF81234, string("contentType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym391 := z.EncBinary() _ = yym391 if false { } else { - r.EncodeBool(bool(x.SerializeImagePulls)) + r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) } } if yyr130 || yy2arr130 { @@ -2973,6 +2974,63 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { yym393 := z.EncBinary() _ = yym393 if false { + } else { + r.EncodeInt(int64(x.KubeAPIQPS)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym394 := z.EncBinary() + _ = yym394 + if false { + } else { + r.EncodeInt(int64(x.KubeAPIQPS)) + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym396 := z.EncBinary() + _ = yym396 + if false { + } else { + r.EncodeInt(int64(x.KubeAPIBurst)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym397 := z.EncBinary() + _ = yym397 + if false { + } else { + r.EncodeInt(int64(x.KubeAPIBurst)) + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym399 := z.EncBinary() + _ = yym399 + if false { + } else { + r.EncodeBool(bool(x.SerializeImagePulls)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("serializeImagePulls")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym400 := z.EncBinary() + _ = yym400 + if false { + } else { + r.EncodeBool(bool(x.SerializeImagePulls)) + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym402 := z.EncBinary() + _ = yym402 + if false { } else { r.EncodeBool(bool(x.ExperimentalFlannelOverlay)) } @@ -2980,8 +3038,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("experimentalFlannelOverlay")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym394 := z.EncBinary() - _ = yym394 + yym403 := z.EncBinary() + _ = yym403 if false { } else { r.EncodeBool(bool(x.ExperimentalFlannelOverlay)) @@ -2989,42 +3047,42 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq130[82] { - yy396 := &x.OutOfDiskTransitionFrequency - yym397 := z.EncBinary() - _ = yym397 + if yyq130[85] { + yy405 := &x.OutOfDiskTransitionFrequency + yym406 := z.EncBinary() + _ = yym406 if false { - } else if z.HasExtensions() && z.EncExt(yy396) { - } else if !yym397 && z.IsJSONHandle() { - z.EncJSONMarshal(yy396) + } else if z.HasExtensions() && z.EncExt(yy405) { + } else if !yym406 && z.IsJSONHandle() { + z.EncJSONMarshal(yy405) } else { - z.EncFallback(yy396) + z.EncFallback(yy405) } } else { r.EncodeNil() } } else { - if yyq130[82] { + if yyq130[85] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("outOfDiskTransitionFrequency")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy398 := &x.OutOfDiskTransitionFrequency - yym399 := z.EncBinary() - _ = yym399 + yy407 := &x.OutOfDiskTransitionFrequency + yym408 := z.EncBinary() + _ = yym408 if false { - } else if z.HasExtensions() && z.EncExt(yy398) { - } else if !yym399 && z.IsJSONHandle() { - z.EncJSONMarshal(yy398) + } else if z.HasExtensions() && z.EncExt(yy407) { + } else if !yym408 && z.IsJSONHandle() { + z.EncJSONMarshal(yy407) } else { - z.EncFallback(yy398) + z.EncFallback(yy407) } } } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq130[83] { - yym401 := z.EncBinary() - _ = yym401 + if yyq130[86] { + yym410 := z.EncBinary() + _ = yym410 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeIP)) @@ -3033,12 +3091,12 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq130[83] { + if yyq130[86] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym402 := z.EncBinary() - _ = yym402 + yym411 := z.EncBinary() + _ = yym411 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeIP)) @@ -3050,8 +3108,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x.NodeLabels == nil { r.EncodeNil() } else { - yym404 := z.EncBinary() - _ = yym404 + yym413 := z.EncBinary() + _ = yym413 if false { } else { z.F.EncMapStringStringV(x.NodeLabels, false, e) @@ -3064,8 +3122,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x.NodeLabels == nil { r.EncodeNil() } else { - yym405 := z.EncBinary() - _ = yym405 + yym414 := z.EncBinary() + _ = yym414 if false { } else { z.F.EncMapStringStringV(x.NodeLabels, false, e) @@ -3074,8 +3132,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym407 := z.EncBinary() - _ = yym407 + yym416 := z.EncBinary() + _ = yym416 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NonMasqueradeCIDR)) @@ -3084,8 +3142,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nonMasqueradeCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym408 := z.EncBinary() - _ = yym408 + yym417 := z.EncBinary() + _ = yym417 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NonMasqueradeCIDR)) @@ -3093,8 +3151,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym410 := z.EncBinary() - _ = yym410 + yym419 := z.EncBinary() + _ = yym419 if false { } else { r.EncodeBool(bool(x.EnableCustomMetrics)) @@ -3103,8 +3161,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableCustomMetrics")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym411 := z.EncBinary() - _ = yym411 + yym420 := z.EncBinary() + _ = yym420 if false { } else { r.EncodeBool(bool(x.EnableCustomMetrics)) @@ -3112,9 +3170,9 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq130[87] { - yym413 := z.EncBinary() - _ = yym413 + if yyq130[90] { + yym422 := z.EncBinary() + _ = yym422 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EvictionHard)) @@ -3123,106 +3181,106 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq130[87] { + if yyq130[90] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionHard")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym414 := z.EncBinary() - _ = yym414 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionHard)) - } - } - } - if yyr130 || yy2arr130 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq130[88] { - yym416 := z.EncBinary() - _ = yym416 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoft)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq130[88] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionSoft")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym417 := z.EncBinary() - _ = yym417 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoft)) - } - } - } - if yyr130 || yy2arr130 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq130[89] { - yym419 := z.EncBinary() - _ = yym419 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoftGracePeriod)) - } - } else { - r.EncodeString(codecSelferC_UTF81234, "") - } - } else { - if yyq130[89] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionSoftGracePeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym420 := z.EncBinary() - _ = yym420 - if false { - } else { - r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoftGracePeriod)) - } - } - } - if yyr130 || yy2arr130 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq130[90] { - yy422 := &x.EvictionPressureTransitionPeriod yym423 := z.EncBinary() _ = yym423 if false { - } else if z.HasExtensions() && z.EncExt(yy422) { - } else if !yym423 && z.IsJSONHandle() { - z.EncJSONMarshal(yy422) } else { - z.EncFallback(yy422) - } - } else { - r.EncodeNil() - } - } else { - if yyq130[90] { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("evictionPressureTransitionPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy424 := &x.EvictionPressureTransitionPeriod - yym425 := z.EncBinary() - _ = yym425 - if false { - } else if z.HasExtensions() && z.EncExt(yy424) { - } else if !yym425 && z.IsJSONHandle() { - z.EncJSONMarshal(yy424) - } else { - z.EncFallback(yy424) + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionHard)) } } } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq130[91] { - yym427 := z.EncBinary() - _ = yym427 + yym425 := z.EncBinary() + _ = yym425 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoft)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq130[91] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("evictionSoft")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym426 := z.EncBinary() + _ = yym426 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoft)) + } + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq130[92] { + yym428 := z.EncBinary() + _ = yym428 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoftGracePeriod)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq130[92] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("evictionSoftGracePeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym429 := z.EncBinary() + _ = yym429 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.EvictionSoftGracePeriod)) + } + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq130[93] { + yy431 := &x.EvictionPressureTransitionPeriod + yym432 := z.EncBinary() + _ = yym432 + if false { + } else if z.HasExtensions() && z.EncExt(yy431) { + } else if !yym432 && z.IsJSONHandle() { + z.EncJSONMarshal(yy431) + } else { + z.EncFallback(yy431) + } + } else { + r.EncodeNil() + } + } else { + if yyq130[93] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("evictionPressureTransitionPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy433 := &x.EvictionPressureTransitionPeriod + yym434 := z.EncBinary() + _ = yym434 + if false { + } else if z.HasExtensions() && z.EncExt(yy433) { + } else if !yym434 && z.IsJSONHandle() { + z.EncJSONMarshal(yy433) + } else { + z.EncFallback(yy433) + } + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq130[94] { + yym436 := z.EncBinary() + _ = yym436 if false { } else { r.EncodeInt(int64(x.EvictionMaxPodGracePeriod)) @@ -3231,12 +3289,12 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeInt(0) } } else { - if yyq130[91] { + if yyq130[94] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionMaxPodGracePeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym428 := z.EncBinary() - _ = yym428 + yym437 := z.EncBinary() + _ = yym437 if false { } else { r.EncodeInt(int64(x.EvictionMaxPodGracePeriod)) @@ -3245,9 +3303,9 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq130[92] { - yym430 := z.EncBinary() - _ = yym430 + if yyq130[95] { + yym439 := z.EncBinary() + _ = yym439 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EvictionMinimumReclaim)) @@ -3256,12 +3314,12 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq130[92] { + if yyq130[95] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionMinimumReclaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym431 := z.EncBinary() - _ = yym431 + yym440 := z.EncBinary() + _ = yym440 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EvictionMinimumReclaim)) @@ -3270,8 +3328,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym433 := z.EncBinary() - _ = yym433 + yym442 := z.EncBinary() + _ = yym442 if false { } else { r.EncodeInt(int64(x.PodsPerCore)) @@ -3280,8 +3338,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podsPerCore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym434 := z.EncBinary() - _ = yym434 + yym443 := z.EncBinary() + _ = yym443 if false { } else { r.EncodeInt(int64(x.PodsPerCore)) @@ -3289,8 +3347,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym436 := z.EncBinary() - _ = yym436 + yym445 := z.EncBinary() + _ = yym445 if false { } else { r.EncodeBool(bool(x.EnableControllerAttachDetach)) @@ -3299,8 +3357,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableControllerAttachDetach")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym437 := z.EncBinary() - _ = yym437 + yym446 := z.EncBinary() + _ = yym446 if false { } else { r.EncodeBool(bool(x.EnableControllerAttachDetach)) @@ -3311,8 +3369,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x.SystemReserved == nil { r.EncodeNil() } else { - yym439 := z.EncBinary() - _ = yym439 + yym448 := z.EncBinary() + _ = yym448 if false { } else if z.HasExtensions() && z.EncExt(x.SystemReserved) { } else { @@ -3326,8 +3384,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x.SystemReserved == nil { r.EncodeNil() } else { - yym440 := z.EncBinary() - _ = yym440 + yym449 := z.EncBinary() + _ = yym449 if false { } else if z.HasExtensions() && z.EncExt(x.SystemReserved) { } else { @@ -3340,8 +3398,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x.KubeReserved == nil { r.EncodeNil() } else { - yym442 := z.EncBinary() - _ = yym442 + yym451 := z.EncBinary() + _ = yym451 if false { } else if z.HasExtensions() && z.EncExt(x.KubeReserved) { } else { @@ -3355,8 +3413,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x.KubeReserved == nil { r.EncodeNil() } else { - yym443 := z.EncBinary() - _ = yym443 + yym452 := z.EncBinary() + _ = yym452 if false { } else if z.HasExtensions() && z.EncExt(x.KubeReserved) { } else { @@ -3366,8 +3424,8 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym445 := z.EncBinary() - _ = yym445 + yym454 := z.EncBinary() + _ = yym454 if false { } else { r.EncodeBool(bool(x.ProtectKernelDefaults)) @@ -3376,13 +3434,103 @@ func (x *KubeletConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protectKernelDefaults")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym446 := z.EncBinary() - _ = yym446 + yym455 := z.EncBinary() + _ = yym455 if false { } else { r.EncodeBool(bool(x.ProtectKernelDefaults)) } } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym457 := z.EncBinary() + _ = yym457 + if false { + } else { + r.EncodeBool(bool(x.MakeIPTablesUtilChains)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("makeIPTablesUtilChains")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym458 := z.EncBinary() + _ = yym458 + if false { + } else { + r.EncodeBool(bool(x.MakeIPTablesUtilChains)) + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym460 := z.EncBinary() + _ = yym460 + if false { + } else { + r.EncodeInt(int64(x.IPTablesMasqueradeBit)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iptablesMasqueradeBit")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym461 := z.EncBinary() + _ = yym461 + if false { + } else { + r.EncodeInt(int64(x.IPTablesMasqueradeBit)) + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym463 := z.EncBinary() + _ = yym463 + if false { + } else { + r.EncodeInt(int64(x.IPTablesDropBit)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("iptablesDropBit")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym464 := z.EncBinary() + _ = yym464 + if false { + } else { + r.EncodeInt(int64(x.IPTablesDropBit)) + } + } + if yyr130 || yy2arr130 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq130[104] { + if x.AllowedUnsafeSysctls == nil { + r.EncodeNil() + } else { + yym466 := z.EncBinary() + _ = yym466 + if false { + } else { + z.F.EncSliceStringV(x.AllowedUnsafeSysctls, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq130[104] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("experimentalAllowedUnsafeSysctls")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.AllowedUnsafeSysctls == nil { + r.EncodeNil() + } else { + yym467 := z.EncBinary() + _ = yym467 + if false { + } else { + z.F.EncSliceStringV(x.AllowedUnsafeSysctls, false, e) + } + } + } + } if yyr130 || yy2arr130 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { @@ -3396,25 +3544,25 @@ func (x *KubeletConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym447 := z.DecBinary() - _ = yym447 + yym468 := z.DecBinary() + _ = yym468 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct448 := r.ContainerType() - if yyct448 == codecSelferValueTypeMap1234 { - yyl448 := r.ReadMapStart() - if yyl448 == 0 { + yyct469 := r.ContainerType() + if yyct469 == codecSelferValueTypeMap1234 { + yyl469 := r.ReadMapStart() + if yyl469 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl448, d) + x.codecDecodeSelfFromMap(yyl469, d) } - } else if yyct448 == codecSelferValueTypeArray1234 { - yyl448 := r.ReadArrayStart() - if yyl448 == 0 { + } else if yyct469 == codecSelferValueTypeArray1234 { + yyl469 := r.ReadArrayStart() + if yyl469 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl448, d) + x.codecDecodeSelfFromArray(yyl469, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -3426,12 +3574,12 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys449Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys449Slc - var yyhl449 bool = l >= 0 - for yyj449 := 0; ; yyj449++ { - if yyhl449 { - if yyj449 >= l { + var yys470Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys470Slc + var yyhl470 bool = l >= 0 + for yyj470 := 0; ; yyj470++ { + if yyhl470 { + if yyj470 >= l { break } } else { @@ -3440,10 +3588,10 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys449Slc = r.DecodeBytes(yys449Slc, true, true) - yys449 := string(yys449Slc) + yys470Slc = r.DecodeBytes(yys470Slc, true, true) + yys470 := string(yys470Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys449 { + switch yys470 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -3466,45 +3614,45 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.SyncFrequency = pkg1_unversioned.Duration{} } else { - yyv453 := &x.SyncFrequency - yym454 := z.DecBinary() - _ = yym454 + yyv474 := &x.SyncFrequency + yym475 := z.DecBinary() + _ = yym475 if false { - } else if z.HasExtensions() && z.DecExt(yyv453) { - } else if !yym454 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv453) + } else if z.HasExtensions() && z.DecExt(yyv474) { + } else if !yym475 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv474) } else { - z.DecFallback(yyv453, false) + z.DecFallback(yyv474, false) } } case "fileCheckFrequency": if r.TryDecodeAsNil() { x.FileCheckFrequency = pkg1_unversioned.Duration{} } else { - yyv455 := &x.FileCheckFrequency - yym456 := z.DecBinary() - _ = yym456 + yyv476 := &x.FileCheckFrequency + yym477 := z.DecBinary() + _ = yym477 if false { - } else if z.HasExtensions() && z.DecExt(yyv455) { - } else if !yym456 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv455) + } else if z.HasExtensions() && z.DecExt(yyv476) { + } else if !yym477 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv476) } else { - z.DecFallback(yyv455, false) + z.DecFallback(yyv476, false) } } case "httpCheckFrequency": if r.TryDecodeAsNil() { x.HTTPCheckFrequency = pkg1_unversioned.Duration{} } else { - yyv457 := &x.HTTPCheckFrequency - yym458 := z.DecBinary() - _ = yym458 + yyv478 := &x.HTTPCheckFrequency + yym479 := z.DecBinary() + _ = yym479 if false { - } else if z.HasExtensions() && z.DecExt(yyv457) { - } else if !yym458 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv457) + } else if z.HasExtensions() && z.DecExt(yyv478) { + } else if !yym479 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv478) } else { - z.DecFallback(yyv457, false) + z.DecFallback(yyv478, false) } } case "manifestURL": @@ -3601,36 +3749,36 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.HostNetworkSources = nil } else { - yyv474 := &x.HostNetworkSources - yym475 := z.DecBinary() - _ = yym475 + yyv495 := &x.HostNetworkSources + yym496 := z.DecBinary() + _ = yym496 if false { } else { - z.F.DecSliceStringX(yyv474, false, d) + z.F.DecSliceStringX(yyv495, false, d) } } case "hostPIDSources": if r.TryDecodeAsNil() { x.HostPIDSources = nil } else { - yyv476 := &x.HostPIDSources - yym477 := z.DecBinary() - _ = yym477 + yyv497 := &x.HostPIDSources + yym498 := z.DecBinary() + _ = yym498 if false { } else { - z.F.DecSliceStringX(yyv476, false, d) + z.F.DecSliceStringX(yyv497, false, d) } } case "hostIPCSources": if r.TryDecodeAsNil() { x.HostIPCSources = nil } else { - yyv478 := &x.HostIPCSources - yym479 := z.DecBinary() - _ = yym479 + yyv499 := &x.HostIPCSources + yym500 := z.DecBinary() + _ = yym500 if false { } else { - z.F.DecSliceStringX(yyv478, false, d) + z.F.DecSliceStringX(yyv499, false, d) } } case "registryPullQPS": @@ -3667,15 +3815,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.MinimumGCAge = pkg1_unversioned.Duration{} } else { - yyv485 := &x.MinimumGCAge - yym486 := z.DecBinary() - _ = yym486 + yyv506 := &x.MinimumGCAge + yym507 := z.DecBinary() + _ = yym507 if false { - } else if z.HasExtensions() && z.DecExt(yyv485) { - } else if !yym486 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv485) + } else if z.HasExtensions() && z.DecExt(yyv506) { + } else if !yym507 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv506) } else { - z.DecFallback(yyv485, false) + z.DecFallback(yyv506, false) } } case "maxPerPodContainerCount": @@ -3742,45 +3890,45 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.StreamingConnectionIdleTimeout = pkg1_unversioned.Duration{} } else { - yyv497 := &x.StreamingConnectionIdleTimeout - yym498 := z.DecBinary() - _ = yym498 + yyv518 := &x.StreamingConnectionIdleTimeout + yym519 := z.DecBinary() + _ = yym519 if false { - } else if z.HasExtensions() && z.DecExt(yyv497) { - } else if !yym498 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv497) + } else if z.HasExtensions() && z.DecExt(yyv518) { + } else if !yym519 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv518) } else { - z.DecFallback(yyv497, false) + z.DecFallback(yyv518, false) } } case "nodeStatusUpdateFrequency": if r.TryDecodeAsNil() { x.NodeStatusUpdateFrequency = pkg1_unversioned.Duration{} } else { - yyv499 := &x.NodeStatusUpdateFrequency - yym500 := z.DecBinary() - _ = yym500 + yyv520 := &x.NodeStatusUpdateFrequency + yym521 := z.DecBinary() + _ = yym521 if false { - } else if z.HasExtensions() && z.DecExt(yyv499) { - } else if !yym500 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv499) + } else if z.HasExtensions() && z.DecExt(yyv520) { + } else if !yym521 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv520) } else { - z.DecFallback(yyv499, false) + z.DecFallback(yyv520, false) } } case "imageMinimumGCAge": if r.TryDecodeAsNil() { x.ImageMinimumGCAge = pkg1_unversioned.Duration{} } else { - yyv501 := &x.ImageMinimumGCAge - yym502 := z.DecBinary() - _ = yym502 + yyv522 := &x.ImageMinimumGCAge + yym523 := z.DecBinary() + _ = yym523 if false { - } else if z.HasExtensions() && z.DecExt(yyv501) { - } else if !yym502 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv501) + } else if z.HasExtensions() && z.DecExt(yyv522) { + } else if !yym523 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv522) } else { - z.DecFallback(yyv501, false) + z.DecFallback(yyv522, false) } } case "imageGCHighThresholdPercent": @@ -3805,15 +3953,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.VolumeStatsAggPeriod = pkg1_unversioned.Duration{} } else { - yyv506 := &x.VolumeStatsAggPeriod - yym507 := z.DecBinary() - _ = yym507 + yyv527 := &x.VolumeStatsAggPeriod + yym528 := z.DecBinary() + _ = yym528 if false { - } else if z.HasExtensions() && z.DecExt(yyv506) { - } else if !yym507 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv506) + } else if z.HasExtensions() && z.DecExt(yyv527) { + } else if !yym528 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv527) } else { - z.DecFallback(yyv506, false) + z.DecFallback(yyv527, false) } } case "networkPluginName": @@ -3822,6 +3970,12 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode } else { x.NetworkPluginName = string(r.DecodeString()) } + case "networkPluginMTU": + if r.TryDecodeAsNil() { + x.NetworkPluginMTU = 0 + } else { + x.NetworkPluginMTU = int32(r.DecodeInt(32)) + } case "networkPluginDir": if r.TryDecodeAsNil() { x.NetworkPluginDir = "" @@ -3882,19 +4036,31 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode } else { x.ContainerRuntime = string(r.DecodeString()) } + case "remoteRuntimeEndpoint": + if r.TryDecodeAsNil() { + x.RemoteRuntimeEndpoint = "" + } else { + x.RemoteRuntimeEndpoint = string(r.DecodeString()) + } + case "remoteImageEndpoint": + if r.TryDecodeAsNil() { + x.RemoteImageEndpoint = "" + } else { + x.RemoteImageEndpoint = string(r.DecodeString()) + } case "runtimeRequestTimeout": if r.TryDecodeAsNil() { x.RuntimeRequestTimeout = pkg1_unversioned.Duration{} } else { - yyv519 := &x.RuntimeRequestTimeout - yym520 := z.DecBinary() - _ = yym520 + yyv543 := &x.RuntimeRequestTimeout + yym544 := z.DecBinary() + _ = yym544 if false { - } else if z.HasExtensions() && z.DecExt(yyv519) { - } else if !yym520 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv519) + } else if z.HasExtensions() && z.DecExt(yyv543) { + } else if !yym544 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv543) } else { - z.DecFallback(yyv519, false) + z.DecFallback(yyv543, false) } } case "rktPath": @@ -4039,15 +4205,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.OutOfDiskTransitionFrequency = pkg1_unversioned.Duration{} } else { - yyv544 := &x.OutOfDiskTransitionFrequency - yym545 := z.DecBinary() - _ = yym545 + yyv568 := &x.OutOfDiskTransitionFrequency + yym569 := z.DecBinary() + _ = yym569 if false { - } else if z.HasExtensions() && z.DecExt(yyv544) { - } else if !yym545 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv544) + } else if z.HasExtensions() && z.DecExt(yyv568) { + } else if !yym569 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv568) } else { - z.DecFallback(yyv544, false) + z.DecFallback(yyv568, false) } } case "nodeIP": @@ -4060,12 +4226,12 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.NodeLabels = nil } else { - yyv547 := &x.NodeLabels - yym548 := z.DecBinary() - _ = yym548 + yyv571 := &x.NodeLabels + yym572 := z.DecBinary() + _ = yym572 if false { } else { - z.F.DecMapStringStringX(yyv547, false, d) + z.F.DecMapStringStringX(yyv571, false, d) } } case "nonMasqueradeCIDR": @@ -4102,15 +4268,15 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.EvictionPressureTransitionPeriod = pkg1_unversioned.Duration{} } else { - yyv554 := &x.EvictionPressureTransitionPeriod - yym555 := z.DecBinary() - _ = yym555 + yyv578 := &x.EvictionPressureTransitionPeriod + yym579 := z.DecBinary() + _ = yym579 if false { - } else if z.HasExtensions() && z.DecExt(yyv554) { - } else if !yym555 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv554) + } else if z.HasExtensions() && z.DecExt(yyv578) { + } else if !yym579 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv578) } else { - z.DecFallback(yyv554, false) + z.DecFallback(yyv578, false) } } case "evictionMaxPodGracePeriod": @@ -4141,26 +4307,26 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode if r.TryDecodeAsNil() { x.SystemReserved = nil } else { - yyv560 := &x.SystemReserved - yym561 := z.DecBinary() - _ = yym561 + yyv584 := &x.SystemReserved + yym585 := z.DecBinary() + _ = yym585 if false { - } else if z.HasExtensions() && z.DecExt(yyv560) { + } else if z.HasExtensions() && z.DecExt(yyv584) { } else { - h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv560), d) + h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv584), d) } } case "kubeReserved": if r.TryDecodeAsNil() { x.KubeReserved = nil } else { - yyv562 := &x.KubeReserved - yym563 := z.DecBinary() - _ = yym563 + yyv586 := &x.KubeReserved + yym587 := z.DecBinary() + _ = yym587 if false { - } else if z.HasExtensions() && z.DecExt(yyv562) { + } else if z.HasExtensions() && z.DecExt(yyv586) { } else { - h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv562), d) + h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv586), d) } } case "protectKernelDefaults": @@ -4169,10 +4335,40 @@ func (x *KubeletConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decode } else { x.ProtectKernelDefaults = bool(r.DecodeBool()) } + case "makeIPTablesUtilChains": + if r.TryDecodeAsNil() { + x.MakeIPTablesUtilChains = false + } else { + x.MakeIPTablesUtilChains = bool(r.DecodeBool()) + } + case "iptablesMasqueradeBit": + if r.TryDecodeAsNil() { + x.IPTablesMasqueradeBit = 0 + } else { + x.IPTablesMasqueradeBit = int32(r.DecodeInt(32)) + } + case "iptablesDropBit": + if r.TryDecodeAsNil() { + x.IPTablesDropBit = 0 + } else { + x.IPTablesDropBit = int32(r.DecodeInt(32)) + } + case "experimentalAllowedUnsafeSysctls": + if r.TryDecodeAsNil() { + x.AllowedUnsafeSysctls = nil + } else { + yyv592 := &x.AllowedUnsafeSysctls + yym593 := z.DecBinary() + _ = yym593 + if false { + } else { + z.F.DecSliceStringX(yyv592, false, d) + } + } default: - z.DecStructFieldNotFound(-1, yys449) - } // end switch yys449 - } // end for yyj449 + z.DecStructFieldNotFound(-1, yys470) + } // end switch yys470 + } // end for yyj470 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -4180,16 +4376,16 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj565 int - var yyb565 bool - var yyhl565 bool = l >= 0 - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + var yyj594 int + var yyb594 bool + var yyhl594 bool = l >= 0 + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4199,13 +4395,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Kind = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4215,13 +4411,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.APIVersion = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4231,13 +4427,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.PodManifestPath = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4245,24 +4441,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.SyncFrequency = pkg1_unversioned.Duration{} } else { - yyv569 := &x.SyncFrequency - yym570 := z.DecBinary() - _ = yym570 + yyv598 := &x.SyncFrequency + yym599 := z.DecBinary() + _ = yym599 if false { - } else if z.HasExtensions() && z.DecExt(yyv569) { - } else if !yym570 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv569) + } else if z.HasExtensions() && z.DecExt(yyv598) { + } else if !yym599 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv598) } else { - z.DecFallback(yyv569, false) + z.DecFallback(yyv598, false) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4270,24 +4466,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.FileCheckFrequency = pkg1_unversioned.Duration{} } else { - yyv571 := &x.FileCheckFrequency - yym572 := z.DecBinary() - _ = yym572 + yyv600 := &x.FileCheckFrequency + yym601 := z.DecBinary() + _ = yym601 if false { - } else if z.HasExtensions() && z.DecExt(yyv571) { - } else if !yym572 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv571) + } else if z.HasExtensions() && z.DecExt(yyv600) { + } else if !yym601 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv600) } else { - z.DecFallback(yyv571, false) + z.DecFallback(yyv600, false) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4295,24 +4491,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.HTTPCheckFrequency = pkg1_unversioned.Duration{} } else { - yyv573 := &x.HTTPCheckFrequency - yym574 := z.DecBinary() - _ = yym574 + yyv602 := &x.HTTPCheckFrequency + yym603 := z.DecBinary() + _ = yym603 if false { - } else if z.HasExtensions() && z.DecExt(yyv573) { - } else if !yym574 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv573) + } else if z.HasExtensions() && z.DecExt(yyv602) { + } else if !yym603 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv602) } else { - z.DecFallback(yyv573, false) + z.DecFallback(yyv602, false) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4322,13 +4518,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ManifestURL = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4338,13 +4534,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ManifestURLHeader = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4354,13 +4550,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.EnableServer = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4370,13 +4566,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Address = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4386,13 +4582,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Port = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4402,13 +4598,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ReadOnlyPort = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4418,13 +4614,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.TLSCertFile = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4434,13 +4630,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.TLSPrivateKeyFile = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4450,13 +4646,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.CertDirectory = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4466,13 +4662,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.HostnameOverride = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4482,13 +4678,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.PodInfraContainerImage = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4498,13 +4694,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.DockerEndpoint = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4514,13 +4710,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RootDirectory = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4530,13 +4726,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.SeccompProfileRoot = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4546,13 +4742,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.AllowPrivileged = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4560,21 +4756,21 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.HostNetworkSources = nil } else { - yyv590 := &x.HostNetworkSources - yym591 := z.DecBinary() - _ = yym591 + yyv619 := &x.HostNetworkSources + yym620 := z.DecBinary() + _ = yym620 if false { } else { - z.F.DecSliceStringX(yyv590, false, d) + z.F.DecSliceStringX(yyv619, false, d) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4582,21 +4778,21 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.HostPIDSources = nil } else { - yyv592 := &x.HostPIDSources - yym593 := z.DecBinary() - _ = yym593 + yyv621 := &x.HostPIDSources + yym622 := z.DecBinary() + _ = yym622 if false { } else { - z.F.DecSliceStringX(yyv592, false, d) + z.F.DecSliceStringX(yyv621, false, d) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4604,21 +4800,21 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.HostIPCSources = nil } else { - yyv594 := &x.HostIPCSources - yym595 := z.DecBinary() - _ = yym595 + yyv623 := &x.HostIPCSources + yym624 := z.DecBinary() + _ = yym624 if false { } else { - z.F.DecSliceStringX(yyv594, false, d) + z.F.DecSliceStringX(yyv623, false, d) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4628,13 +4824,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RegistryPullQPS = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4644,13 +4840,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RegistryBurst = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4660,13 +4856,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.EventRecordQPS = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4676,13 +4872,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.EventBurst = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4692,13 +4888,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.EnableDebuggingHandlers = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4706,24 +4902,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.MinimumGCAge = pkg1_unversioned.Duration{} } else { - yyv601 := &x.MinimumGCAge - yym602 := z.DecBinary() - _ = yym602 + yyv630 := &x.MinimumGCAge + yym631 := z.DecBinary() + _ = yym631 if false { - } else if z.HasExtensions() && z.DecExt(yyv601) { - } else if !yym602 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv601) + } else if z.HasExtensions() && z.DecExt(yyv630) { + } else if !yym631 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv630) } else { - z.DecFallback(yyv601, false) + z.DecFallback(yyv630, false) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4733,13 +4929,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.MaxPerPodContainerCount = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4749,13 +4945,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.MaxContainerCount = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4765,13 +4961,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.CAdvisorPort = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4781,13 +4977,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.HealthzPort = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4797,13 +4993,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.HealthzBindAddress = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4813,13 +5009,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.OOMScoreAdj = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4829,13 +5025,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RegisterNode = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4845,13 +5041,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ClusterDomain = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4861,13 +5057,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.MasterServiceNamespace = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4877,13 +5073,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ClusterDNS = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4891,24 +5087,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.StreamingConnectionIdleTimeout = pkg1_unversioned.Duration{} } else { - yyv613 := &x.StreamingConnectionIdleTimeout - yym614 := z.DecBinary() - _ = yym614 + yyv642 := &x.StreamingConnectionIdleTimeout + yym643 := z.DecBinary() + _ = yym643 if false { - } else if z.HasExtensions() && z.DecExt(yyv613) { - } else if !yym614 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv613) + } else if z.HasExtensions() && z.DecExt(yyv642) { + } else if !yym643 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv642) } else { - z.DecFallback(yyv613, false) + z.DecFallback(yyv642, false) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4916,24 +5112,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.NodeStatusUpdateFrequency = pkg1_unversioned.Duration{} } else { - yyv615 := &x.NodeStatusUpdateFrequency - yym616 := z.DecBinary() - _ = yym616 + yyv644 := &x.NodeStatusUpdateFrequency + yym645 := z.DecBinary() + _ = yym645 if false { - } else if z.HasExtensions() && z.DecExt(yyv615) { - } else if !yym616 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv615) + } else if z.HasExtensions() && z.DecExt(yyv644) { + } else if !yym645 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv644) } else { - z.DecFallback(yyv615, false) + z.DecFallback(yyv644, false) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4941,24 +5137,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.ImageMinimumGCAge = pkg1_unversioned.Duration{} } else { - yyv617 := &x.ImageMinimumGCAge - yym618 := z.DecBinary() - _ = yym618 + yyv646 := &x.ImageMinimumGCAge + yym647 := z.DecBinary() + _ = yym647 if false { - } else if z.HasExtensions() && z.DecExt(yyv617) { - } else if !yym618 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv617) + } else if z.HasExtensions() && z.DecExt(yyv646) { + } else if !yym647 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv646) } else { - z.DecFallback(yyv617, false) + z.DecFallback(yyv646, false) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4968,13 +5164,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ImageGCHighThresholdPercent = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -4984,13 +5180,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ImageGCLowThresholdPercent = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5000,13 +5196,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.LowDiskSpaceThresholdMB = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5014,24 +5210,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.VolumeStatsAggPeriod = pkg1_unversioned.Duration{} } else { - yyv622 := &x.VolumeStatsAggPeriod - yym623 := z.DecBinary() - _ = yym623 + yyv651 := &x.VolumeStatsAggPeriod + yym652 := z.DecBinary() + _ = yym652 if false { - } else if z.HasExtensions() && z.DecExt(yyv622) { - } else if !yym623 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv622) + } else if z.HasExtensions() && z.DecExt(yyv651) { + } else if !yym652 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv651) } else { - z.DecFallback(yyv622, false) + z.DecFallback(yyv651, false) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5041,13 +5237,29 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.NetworkPluginName = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NetworkPluginMTU = 0 + } else { + x.NetworkPluginMTU = int32(r.DecodeInt(32)) + } + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l + } else { + yyb594 = r.CheckBreak() + } + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5057,13 +5269,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.NetworkPluginDir = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5073,13 +5285,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.VolumePluginDir = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5089,13 +5301,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.CloudProvider = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5105,13 +5317,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.CloudConfigFile = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5121,13 +5333,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.KubeletCgroups = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5137,13 +5349,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.CgroupsPerQOS = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5153,13 +5365,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RuntimeCgroups = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5169,13 +5381,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.SystemCgroups = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5185,13 +5397,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.CgroupRoot = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5201,13 +5413,45 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ContainerRuntime = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RemoteRuntimeEndpoint = "" + } else { + x.RemoteRuntimeEndpoint = string(r.DecodeString()) + } + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l + } else { + yyb594 = r.CheckBreak() + } + if yyb594 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.RemoteImageEndpoint = "" + } else { + x.RemoteImageEndpoint = string(r.DecodeString()) + } + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l + } else { + yyb594 = r.CheckBreak() + } + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5215,24 +5459,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.RuntimeRequestTimeout = pkg1_unversioned.Duration{} } else { - yyv635 := &x.RuntimeRequestTimeout - yym636 := z.DecBinary() - _ = yym636 + yyv667 := &x.RuntimeRequestTimeout + yym668 := z.DecBinary() + _ = yym668 if false { - } else if z.HasExtensions() && z.DecExt(yyv635) { - } else if !yym636 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv635) + } else if z.HasExtensions() && z.DecExt(yyv667) { + } else if !yym668 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv667) } else { - z.DecFallback(yyv635, false) + z.DecFallback(yyv667, false) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5242,13 +5486,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RktPath = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5258,13 +5502,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RktAPIEndpoint = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5274,13 +5518,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RktStage1Image = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5290,13 +5534,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.LockFilePath = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5306,13 +5550,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ExitOnLockContention = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5322,13 +5566,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ConfigureCBR0 = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5338,13 +5582,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.HairpinMode = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5354,13 +5598,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.BabysitDaemons = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5370,13 +5614,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.MaxPods = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5386,13 +5630,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.NvidiaGPUs = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5402,13 +5646,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.DockerExecHandlerName = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5418,13 +5662,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.PodCIDR = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5434,13 +5678,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ResolverConfig = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5450,13 +5694,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.CPUCFSQuota = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5466,13 +5710,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.Containerized = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5482,13 +5726,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.MaxOpenFiles = int64(r.DecodeInt(64)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5498,13 +5742,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ReconcileCIDR = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5514,13 +5758,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.RegisterSchedulable = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5530,13 +5774,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ContentType = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5546,13 +5790,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.KubeAPIQPS = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5562,13 +5806,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.KubeAPIBurst = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5578,13 +5822,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.SerializeImagePulls = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5594,13 +5838,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ExperimentalFlannelOverlay = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5608,24 +5852,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.OutOfDiskTransitionFrequency = pkg1_unversioned.Duration{} } else { - yyv660 := &x.OutOfDiskTransitionFrequency - yym661 := z.DecBinary() - _ = yym661 + yyv692 := &x.OutOfDiskTransitionFrequency + yym693 := z.DecBinary() + _ = yym693 if false { - } else if z.HasExtensions() && z.DecExt(yyv660) { - } else if !yym661 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv660) + } else if z.HasExtensions() && z.DecExt(yyv692) { + } else if !yym693 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv692) } else { - z.DecFallback(yyv660, false) + z.DecFallback(yyv692, false) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5635,13 +5879,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.NodeIP = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5649,21 +5893,21 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.NodeLabels = nil } else { - yyv663 := &x.NodeLabels - yym664 := z.DecBinary() - _ = yym664 + yyv695 := &x.NodeLabels + yym696 := z.DecBinary() + _ = yym696 if false { } else { - z.F.DecMapStringStringX(yyv663, false, d) + z.F.DecMapStringStringX(yyv695, false, d) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5673,13 +5917,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.NonMasqueradeCIDR = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5689,13 +5933,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.EnableCustomMetrics = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5705,13 +5949,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.EvictionHard = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5721,13 +5965,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.EvictionSoft = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5737,13 +5981,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.EvictionSoftGracePeriod = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5751,24 +5995,24 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.EvictionPressureTransitionPeriod = pkg1_unversioned.Duration{} } else { - yyv670 := &x.EvictionPressureTransitionPeriod - yym671 := z.DecBinary() - _ = yym671 + yyv702 := &x.EvictionPressureTransitionPeriod + yym703 := z.DecBinary() + _ = yym703 if false { - } else if z.HasExtensions() && z.DecExt(yyv670) { - } else if !yym671 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv670) + } else if z.HasExtensions() && z.DecExt(yyv702) { + } else if !yym703 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv702) } else { - z.DecFallback(yyv670, false) + z.DecFallback(yyv702, false) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5778,13 +6022,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.EvictionMaxPodGracePeriod = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5794,13 +6038,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.EvictionMinimumReclaim = string(r.DecodeString()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5810,13 +6054,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.PodsPerCore = int32(r.DecodeInt(32)) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5826,13 +6070,13 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.EnableControllerAttachDetach = bool(r.DecodeBool()) } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5840,22 +6084,22 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.SystemReserved = nil } else { - yyv676 := &x.SystemReserved - yym677 := z.DecBinary() - _ = yym677 + yyv708 := &x.SystemReserved + yym709 := z.DecBinary() + _ = yym709 if false { - } else if z.HasExtensions() && z.DecExt(yyv676) { + } else if z.HasExtensions() && z.DecExt(yyv708) { } else { - h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv676), d) + h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv708), d) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5863,22 +6107,22 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.KubeReserved = nil } else { - yyv678 := &x.KubeReserved - yym679 := z.DecBinary() - _ = yym679 + yyv710 := &x.KubeReserved + yym711 := z.DecBinary() + _ = yym711 if false { - } else if z.HasExtensions() && z.DecExt(yyv678) { + } else if z.HasExtensions() && z.DecExt(yyv710) { } else { - h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv678), d) + h.decconfig_ConfigurationMap((*pkg2_config.ConfigurationMap)(yyv710), d) } } - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l } else { - yyb565 = r.CheckBreak() + yyb594 = r.CheckBreak() } - if yyb565 { + if yyb594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -5888,18 +6132,88 @@ func (x *KubeletConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Deco } else { x.ProtectKernelDefaults = bool(r.DecodeBool()) } - for { - yyj565++ - if yyhl565 { - yyb565 = yyj565 > l + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l + } else { + yyb594 = r.CheckBreak() + } + if yyb594 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.MakeIPTablesUtilChains = false + } else { + x.MakeIPTablesUtilChains = bool(r.DecodeBool()) + } + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l + } else { + yyb594 = r.CheckBreak() + } + if yyb594 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IPTablesMasqueradeBit = 0 + } else { + x.IPTablesMasqueradeBit = int32(r.DecodeInt(32)) + } + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l + } else { + yyb594 = r.CheckBreak() + } + if yyb594 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.IPTablesDropBit = 0 + } else { + x.IPTablesDropBit = int32(r.DecodeInt(32)) + } + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l + } else { + yyb594 = r.CheckBreak() + } + if yyb594 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.AllowedUnsafeSysctls = nil + } else { + yyv716 := &x.AllowedUnsafeSysctls + yym717 := z.DecBinary() + _ = yym717 + if false { } else { - yyb565 = r.CheckBreak() + z.F.DecSliceStringX(yyv716, false, d) } - if yyb565 { + } + for { + yyj594++ + if yyhl594 { + yyb594 = yyj594 > l + } else { + yyb594 = r.CheckBreak() + } + if yyb594 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj565-1, "") + z.DecStructFieldNotFound(yyj594-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -5911,36 +6225,36 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym681 := z.EncBinary() - _ = yym681 + yym718 := z.EncBinary() + _ = yym718 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep682 := !z.EncBinary() - yy2arr682 := z.EncBasicHandle().StructToArray - var yyq682 [14]bool - _, _, _ = yysep682, yyq682, yy2arr682 - const yyr682 bool = false - yyq682[0] = x.Kind != "" - yyq682[1] = x.APIVersion != "" - var yynn682 int - if yyr682 || yy2arr682 { + yysep719 := !z.EncBinary() + yy2arr719 := z.EncBasicHandle().StructToArray + var yyq719 [14]bool + _, _, _ = yysep719, yyq719, yy2arr719 + const yyr719 bool = false + yyq719[0] = x.Kind != "" + yyq719[1] = x.APIVersion != "" + var yynn719 int + if yyr719 || yy2arr719 { r.EncodeArrayStart(14) } else { - yynn682 = 12 - for _, b := range yyq682 { + yynn719 = 12 + for _, b := range yyq719 { if b { - yynn682++ + yynn719++ } } - r.EncodeMapStart(yynn682) - yynn682 = 0 + r.EncodeMapStart(yynn719) + yynn719 = 0 } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq682[0] { - yym684 := z.EncBinary() - _ = yym684 + if yyq719[0] { + yym721 := z.EncBinary() + _ = yym721 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -5949,23 +6263,23 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq682[0] { + if yyq719[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym685 := z.EncBinary() - _ = yym685 + yym722 := z.EncBinary() + _ = yym722 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq682[1] { - yym687 := z.EncBinary() - _ = yym687 + if yyq719[1] { + yym724 := z.EncBinary() + _ = yym724 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -5974,22 +6288,22 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq682[1] { + if yyq719[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym688 := z.EncBinary() - _ = yym688 + yym725 := z.EncBinary() + _ = yym725 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym690 := z.EncBinary() - _ = yym690 + yym727 := z.EncBinary() + _ = yym727 if false { } else { r.EncodeInt(int64(x.Port)) @@ -5998,17 +6312,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym691 := z.EncBinary() - _ = yym691 + yym728 := z.EncBinary() + _ = yym728 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym693 := z.EncBinary() - _ = yym693 + yym730 := z.EncBinary() + _ = yym730 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) @@ -6017,17 +6331,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("address")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym694 := z.EncBinary() - _ = yym694 + yym731 := z.EncBinary() + _ = yym731 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym696 := z.EncBinary() - _ = yym696 + yym733 := z.EncBinary() + _ = yym733 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.AlgorithmProvider)) @@ -6036,17 +6350,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("algorithmProvider")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym697 := z.EncBinary() - _ = yym697 + yym734 := z.EncBinary() + _ = yym734 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.AlgorithmProvider)) } } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym699 := z.EncBinary() - _ = yym699 + yym736 := z.EncBinary() + _ = yym736 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PolicyConfigFile)) @@ -6055,17 +6369,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("policyConfigFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym700 := z.EncBinary() - _ = yym700 + yym737 := z.EncBinary() + _ = yym737 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PolicyConfigFile)) } } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym702 := z.EncBinary() - _ = yym702 + yym739 := z.EncBinary() + _ = yym739 if false { } else { r.EncodeBool(bool(x.EnableProfiling)) @@ -6074,17 +6388,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableProfiling")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym703 := z.EncBinary() - _ = yym703 + yym740 := z.EncBinary() + _ = yym740 if false { } else { r.EncodeBool(bool(x.EnableProfiling)) } } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym705 := z.EncBinary() - _ = yym705 + yym742 := z.EncBinary() + _ = yym742 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) @@ -6093,17 +6407,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("contentType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym706 := z.EncBinary() - _ = yym706 + yym743 := z.EncBinary() + _ = yym743 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) } } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym708 := z.EncBinary() - _ = yym708 + yym745 := z.EncBinary() + _ = yym745 if false { } else { r.EncodeFloat32(float32(x.KubeAPIQPS)) @@ -6112,17 +6426,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym709 := z.EncBinary() - _ = yym709 + yym746 := z.EncBinary() + _ = yym746 if false { } else { r.EncodeFloat32(float32(x.KubeAPIQPS)) } } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym711 := z.EncBinary() - _ = yym711 + yym748 := z.EncBinary() + _ = yym748 if false { } else { r.EncodeInt(int64(x.KubeAPIBurst)) @@ -6131,17 +6445,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym712 := z.EncBinary() - _ = yym712 + yym749 := z.EncBinary() + _ = yym749 if false { } else { r.EncodeInt(int64(x.KubeAPIBurst)) } } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym714 := z.EncBinary() - _ = yym714 + yym751 := z.EncBinary() + _ = yym751 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SchedulerName)) @@ -6150,17 +6464,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("schedulerName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym715 := z.EncBinary() - _ = yym715 + yym752 := z.EncBinary() + _ = yym752 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SchedulerName)) } } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym717 := z.EncBinary() - _ = yym717 + yym754 := z.EncBinary() + _ = yym754 if false { } else { r.EncodeInt(int64(x.HardPodAffinitySymmetricWeight)) @@ -6169,17 +6483,17 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hardPodAffinitySymmetricWeight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym718 := z.EncBinary() - _ = yym718 + yym755 := z.EncBinary() + _ = yym755 if false { } else { r.EncodeInt(int64(x.HardPodAffinitySymmetricWeight)) } } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym720 := z.EncBinary() - _ = yym720 + yym757 := z.EncBinary() + _ = yym757 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FailureDomains)) @@ -6188,25 +6502,25 @@ func (x *KubeSchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failureDomains")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym721 := z.EncBinary() - _ = yym721 + yym758 := z.EncBinary() + _ = yym758 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FailureDomains)) } } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy723 := &x.LeaderElection - yy723.CodecEncodeSelf(e) + yy760 := &x.LeaderElection + yy760.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("leaderElection")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy724 := &x.LeaderElection - yy724.CodecEncodeSelf(e) + yy761 := &x.LeaderElection + yy761.CodecEncodeSelf(e) } - if yyr682 || yy2arr682 { + if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6219,25 +6533,25 @@ func (x *KubeSchedulerConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym725 := z.DecBinary() - _ = yym725 + yym762 := z.DecBinary() + _ = yym762 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct726 := r.ContainerType() - if yyct726 == codecSelferValueTypeMap1234 { - yyl726 := r.ReadMapStart() - if yyl726 == 0 { + yyct763 := r.ContainerType() + if yyct763 == codecSelferValueTypeMap1234 { + yyl763 := r.ReadMapStart() + if yyl763 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl726, d) + x.codecDecodeSelfFromMap(yyl763, d) } - } else if yyct726 == codecSelferValueTypeArray1234 { - yyl726 := r.ReadArrayStart() - if yyl726 == 0 { + } else if yyct763 == codecSelferValueTypeArray1234 { + yyl763 := r.ReadArrayStart() + if yyl763 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl726, d) + x.codecDecodeSelfFromArray(yyl763, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6249,12 +6563,12 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys727Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys727Slc - var yyhl727 bool = l >= 0 - for yyj727 := 0; ; yyj727++ { - if yyhl727 { - if yyj727 >= l { + var yys764Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys764Slc + var yyhl764 bool = l >= 0 + for yyj764 := 0; ; yyj764++ { + if yyhl764 { + if yyj764 >= l { break } } else { @@ -6263,10 +6577,10 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978. } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys727Slc = r.DecodeBytes(yys727Slc, true, true) - yys727 := string(yys727Slc) + yys764Slc = r.DecodeBytes(yys764Slc, true, true) + yys764 := string(yys764Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys727 { + switch yys764 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -6349,13 +6663,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978. if r.TryDecodeAsNil() { x.LeaderElection = LeaderElectionConfiguration{} } else { - yyv741 := &x.LeaderElection - yyv741.CodecDecodeSelf(d) + yyv778 := &x.LeaderElection + yyv778.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys727) - } // end switch yys727 - } // end for yyj727 + z.DecStructFieldNotFound(-1, yys764) + } // end switch yys764 + } // end for yyj764 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6363,16 +6677,16 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj742 int - var yyb742 bool - var yyhl742 bool = l >= 0 - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + var yyj779 int + var yyb779 bool + var yyhl779 bool = l >= 0 + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6382,13 +6696,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.Kind = string(r.DecodeString()) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6398,13 +6712,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.APIVersion = string(r.DecodeString()) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6414,13 +6728,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.Port = int32(r.DecodeInt(32)) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6430,13 +6744,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.Address = string(r.DecodeString()) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6446,13 +6760,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.AlgorithmProvider = string(r.DecodeString()) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6462,13 +6776,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.PolicyConfigFile = string(r.DecodeString()) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6478,13 +6792,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.EnableProfiling = bool(r.DecodeBool()) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6494,13 +6808,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.ContentType = string(r.DecodeString()) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6510,13 +6824,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.KubeAPIQPS = float32(r.DecodeFloat(true)) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6526,13 +6840,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.KubeAPIBurst = int32(r.DecodeInt(32)) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6542,13 +6856,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.SchedulerName = string(r.DecodeString()) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6558,13 +6872,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.HardPodAffinitySymmetricWeight = int(r.DecodeInt(codecSelferBitsize1234)) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6574,13 +6888,13 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 } else { x.FailureDomains = string(r.DecodeString()) } - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6588,21 +6902,21 @@ func (x *KubeSchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec197 if r.TryDecodeAsNil() { x.LeaderElection = LeaderElectionConfiguration{} } else { - yyv756 := &x.LeaderElection - yyv756.CodecDecodeSelf(d) + yyv793 := &x.LeaderElection + yyv793.CodecDecodeSelf(d) } for { - yyj742++ - if yyhl742 { - yyb742 = yyj742 > l + yyj779++ + if yyhl779 { + yyb779 = yyj779 > l } else { - yyb742 = r.CheckBreak() + yyb779 = r.CheckBreak() } - if yyb742 { + if yyb779 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj742-1, "") + z.DecStructFieldNotFound(yyj779-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6614,33 +6928,33 @@ func (x *LeaderElectionConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym757 := z.EncBinary() - _ = yym757 + yym794 := z.EncBinary() + _ = yym794 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep758 := !z.EncBinary() - yy2arr758 := z.EncBasicHandle().StructToArray - var yyq758 [4]bool - _, _, _ = yysep758, yyq758, yy2arr758 - const yyr758 bool = false - var yynn758 int - if yyr758 || yy2arr758 { + yysep795 := !z.EncBinary() + yy2arr795 := z.EncBasicHandle().StructToArray + var yyq795 [4]bool + _, _, _ = yysep795, yyq795, yy2arr795 + const yyr795 bool = false + var yynn795 int + if yyr795 || yy2arr795 { r.EncodeArrayStart(4) } else { - yynn758 = 4 - for _, b := range yyq758 { + yynn795 = 4 + for _, b := range yyq795 { if b { - yynn758++ + yynn795++ } } - r.EncodeMapStart(yynn758) - yynn758 = 0 + r.EncodeMapStart(yynn795) + yynn795 = 0 } - if yyr758 || yy2arr758 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym760 := z.EncBinary() - _ = yym760 + yym797 := z.EncBinary() + _ = yym797 if false { } else { r.EncodeBool(bool(x.LeaderElect)) @@ -6649,95 +6963,95 @@ func (x *LeaderElectionConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("leaderElect")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym761 := z.EncBinary() - _ = yym761 + yym798 := z.EncBinary() + _ = yym798 if false { } else { r.EncodeBool(bool(x.LeaderElect)) } } - if yyr758 || yy2arr758 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy763 := &x.LeaseDuration - yym764 := z.EncBinary() - _ = yym764 + yy800 := &x.LeaseDuration + yym801 := z.EncBinary() + _ = yym801 if false { - } else if z.HasExtensions() && z.EncExt(yy763) { - } else if !yym764 && z.IsJSONHandle() { - z.EncJSONMarshal(yy763) + } else if z.HasExtensions() && z.EncExt(yy800) { + } else if !yym801 && z.IsJSONHandle() { + z.EncJSONMarshal(yy800) } else { - z.EncFallback(yy763) + z.EncFallback(yy800) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("leaseDuration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy765 := &x.LeaseDuration - yym766 := z.EncBinary() - _ = yym766 + yy802 := &x.LeaseDuration + yym803 := z.EncBinary() + _ = yym803 if false { - } else if z.HasExtensions() && z.EncExt(yy765) { - } else if !yym766 && z.IsJSONHandle() { - z.EncJSONMarshal(yy765) + } else if z.HasExtensions() && z.EncExt(yy802) { + } else if !yym803 && z.IsJSONHandle() { + z.EncJSONMarshal(yy802) } else { - z.EncFallback(yy765) + z.EncFallback(yy802) } } - if yyr758 || yy2arr758 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy768 := &x.RenewDeadline - yym769 := z.EncBinary() - _ = yym769 + yy805 := &x.RenewDeadline + yym806 := z.EncBinary() + _ = yym806 if false { - } else if z.HasExtensions() && z.EncExt(yy768) { - } else if !yym769 && z.IsJSONHandle() { - z.EncJSONMarshal(yy768) + } else if z.HasExtensions() && z.EncExt(yy805) { + } else if !yym806 && z.IsJSONHandle() { + z.EncJSONMarshal(yy805) } else { - z.EncFallback(yy768) + z.EncFallback(yy805) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("renewDeadline")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy770 := &x.RenewDeadline - yym771 := z.EncBinary() - _ = yym771 + yy807 := &x.RenewDeadline + yym808 := z.EncBinary() + _ = yym808 if false { - } else if z.HasExtensions() && z.EncExt(yy770) { - } else if !yym771 && z.IsJSONHandle() { - z.EncJSONMarshal(yy770) + } else if z.HasExtensions() && z.EncExt(yy807) { + } else if !yym808 && z.IsJSONHandle() { + z.EncJSONMarshal(yy807) } else { - z.EncFallback(yy770) + z.EncFallback(yy807) } } - if yyr758 || yy2arr758 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy773 := &x.RetryPeriod - yym774 := z.EncBinary() - _ = yym774 + yy810 := &x.RetryPeriod + yym811 := z.EncBinary() + _ = yym811 if false { - } else if z.HasExtensions() && z.EncExt(yy773) { - } else if !yym774 && z.IsJSONHandle() { - z.EncJSONMarshal(yy773) + } else if z.HasExtensions() && z.EncExt(yy810) { + } else if !yym811 && z.IsJSONHandle() { + z.EncJSONMarshal(yy810) } else { - z.EncFallback(yy773) + z.EncFallback(yy810) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("retryPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy775 := &x.RetryPeriod - yym776 := z.EncBinary() - _ = yym776 + yy812 := &x.RetryPeriod + yym813 := z.EncBinary() + _ = yym813 if false { - } else if z.HasExtensions() && z.EncExt(yy775) { - } else if !yym776 && z.IsJSONHandle() { - z.EncJSONMarshal(yy775) + } else if z.HasExtensions() && z.EncExt(yy812) { + } else if !yym813 && z.IsJSONHandle() { + z.EncJSONMarshal(yy812) } else { - z.EncFallback(yy775) + z.EncFallback(yy812) } } - if yyr758 || yy2arr758 { + if yyr795 || yy2arr795 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -6750,25 +7064,25 @@ func (x *LeaderElectionConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym777 := z.DecBinary() - _ = yym777 + yym814 := z.DecBinary() + _ = yym814 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct778 := r.ContainerType() - if yyct778 == codecSelferValueTypeMap1234 { - yyl778 := r.ReadMapStart() - if yyl778 == 0 { + yyct815 := r.ContainerType() + if yyct815 == codecSelferValueTypeMap1234 { + yyl815 := r.ReadMapStart() + if yyl815 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl778, d) + x.codecDecodeSelfFromMap(yyl815, d) } - } else if yyct778 == codecSelferValueTypeArray1234 { - yyl778 := r.ReadArrayStart() - if yyl778 == 0 { + } else if yyct815 == codecSelferValueTypeArray1234 { + yyl815 := r.ReadArrayStart() + if yyl815 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl778, d) + x.codecDecodeSelfFromArray(yyl815, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -6780,12 +7094,12 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromMap(l int, d *codec1978 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys779Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys779Slc - var yyhl779 bool = l >= 0 - for yyj779 := 0; ; yyj779++ { - if yyhl779 { - if yyj779 >= l { + var yys816Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys816Slc + var yyhl816 bool = l >= 0 + for yyj816 := 0; ; yyj816++ { + if yyhl816 { + if yyj816 >= l { break } } else { @@ -6794,10 +7108,10 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromMap(l int, d *codec1978 } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys779Slc = r.DecodeBytes(yys779Slc, true, true) - yys779 := string(yys779Slc) + yys816Slc = r.DecodeBytes(yys816Slc, true, true) + yys816 := string(yys816Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys779 { + switch yys816 { case "leaderElect": if r.TryDecodeAsNil() { x.LeaderElect = false @@ -6808,51 +7122,51 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromMap(l int, d *codec1978 if r.TryDecodeAsNil() { x.LeaseDuration = pkg1_unversioned.Duration{} } else { - yyv781 := &x.LeaseDuration - yym782 := z.DecBinary() - _ = yym782 + yyv818 := &x.LeaseDuration + yym819 := z.DecBinary() + _ = yym819 if false { - } else if z.HasExtensions() && z.DecExt(yyv781) { - } else if !yym782 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv781) + } else if z.HasExtensions() && z.DecExt(yyv818) { + } else if !yym819 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv818) } else { - z.DecFallback(yyv781, false) + z.DecFallback(yyv818, false) } } case "renewDeadline": if r.TryDecodeAsNil() { x.RenewDeadline = pkg1_unversioned.Duration{} } else { - yyv783 := &x.RenewDeadline - yym784 := z.DecBinary() - _ = yym784 + yyv820 := &x.RenewDeadline + yym821 := z.DecBinary() + _ = yym821 if false { - } else if z.HasExtensions() && z.DecExt(yyv783) { - } else if !yym784 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv783) + } else if z.HasExtensions() && z.DecExt(yyv820) { + } else if !yym821 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv820) } else { - z.DecFallback(yyv783, false) + z.DecFallback(yyv820, false) } } case "retryPeriod": if r.TryDecodeAsNil() { x.RetryPeriod = pkg1_unversioned.Duration{} } else { - yyv785 := &x.RetryPeriod - yym786 := z.DecBinary() - _ = yym786 + yyv822 := &x.RetryPeriod + yym823 := z.DecBinary() + _ = yym823 if false { - } else if z.HasExtensions() && z.DecExt(yyv785) { - } else if !yym786 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv785) + } else if z.HasExtensions() && z.DecExt(yyv822) { + } else if !yym823 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv822) } else { - z.DecFallback(yyv785, false) + z.DecFallback(yyv822, false) } } default: - z.DecStructFieldNotFound(-1, yys779) - } // end switch yys779 - } // end for yyj779 + z.DecStructFieldNotFound(-1, yys816) + } // end switch yys816 + } // end for yyj816 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -6860,16 +7174,16 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromArray(l int, d *codec19 var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj787 int - var yyb787 bool - var yyhl787 bool = l >= 0 - yyj787++ - if yyhl787 { - yyb787 = yyj787 > l + var yyj824 int + var yyb824 bool + var yyhl824 bool = l >= 0 + yyj824++ + if yyhl824 { + yyb824 = yyj824 > l } else { - yyb787 = r.CheckBreak() + yyb824 = r.CheckBreak() } - if yyb787 { + if yyb824 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6879,13 +7193,13 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromArray(l int, d *codec19 } else { x.LeaderElect = bool(r.DecodeBool()) } - yyj787++ - if yyhl787 { - yyb787 = yyj787 > l + yyj824++ + if yyhl824 { + yyb824 = yyj824 > l } else { - yyb787 = r.CheckBreak() + yyb824 = r.CheckBreak() } - if yyb787 { + if yyb824 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6893,24 +7207,24 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.LeaseDuration = pkg1_unversioned.Duration{} } else { - yyv789 := &x.LeaseDuration - yym790 := z.DecBinary() - _ = yym790 + yyv826 := &x.LeaseDuration + yym827 := z.DecBinary() + _ = yym827 if false { - } else if z.HasExtensions() && z.DecExt(yyv789) { - } else if !yym790 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv789) + } else if z.HasExtensions() && z.DecExt(yyv826) { + } else if !yym827 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv826) } else { - z.DecFallback(yyv789, false) + z.DecFallback(yyv826, false) } } - yyj787++ - if yyhl787 { - yyb787 = yyj787 > l + yyj824++ + if yyhl824 { + yyb824 = yyj824 > l } else { - yyb787 = r.CheckBreak() + yyb824 = r.CheckBreak() } - if yyb787 { + if yyb824 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6918,24 +7232,24 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.RenewDeadline = pkg1_unversioned.Duration{} } else { - yyv791 := &x.RenewDeadline - yym792 := z.DecBinary() - _ = yym792 + yyv828 := &x.RenewDeadline + yym829 := z.DecBinary() + _ = yym829 if false { - } else if z.HasExtensions() && z.DecExt(yyv791) { - } else if !yym792 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv791) + } else if z.HasExtensions() && z.DecExt(yyv828) { + } else if !yym829 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv828) } else { - z.DecFallback(yyv791, false) + z.DecFallback(yyv828, false) } } - yyj787++ - if yyhl787 { - yyb787 = yyj787 > l + yyj824++ + if yyhl824 { + yyb824 = yyj824 > l } else { - yyb787 = r.CheckBreak() + yyb824 = r.CheckBreak() } - if yyb787 { + if yyb824 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -6943,29 +7257,29 @@ func (x *LeaderElectionConfiguration) codecDecodeSelfFromArray(l int, d *codec19 if r.TryDecodeAsNil() { x.RetryPeriod = pkg1_unversioned.Duration{} } else { - yyv793 := &x.RetryPeriod - yym794 := z.DecBinary() - _ = yym794 + yyv830 := &x.RetryPeriod + yym831 := z.DecBinary() + _ = yym831 if false { - } else if z.HasExtensions() && z.DecExt(yyv793) { - } else if !yym794 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv793) + } else if z.HasExtensions() && z.DecExt(yyv830) { + } else if !yym831 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv830) } else { - z.DecFallback(yyv793, false) + z.DecFallback(yyv830, false) } } for { - yyj787++ - if yyhl787 { - yyb787 = yyj787 > l + yyj824++ + if yyhl824 { + yyb824 = yyj824 > l } else { - yyb787 = r.CheckBreak() + yyb824 = r.CheckBreak() } - if yyb787 { + if yyb824 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj787-1, "") + z.DecStructFieldNotFound(yyj824-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -6977,36 +7291,36 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode if x == nil { r.EncodeNil() } else { - yym795 := z.EncBinary() - _ = yym795 + yym832 := z.EncBinary() + _ = yym832 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep796 := !z.EncBinary() - yy2arr796 := z.EncBasicHandle().StructToArray - var yyq796 [54]bool - _, _, _ = yysep796, yyq796, yy2arr796 - const yyr796 bool = false - yyq796[0] = x.Kind != "" - yyq796[1] = x.APIVersion != "" - var yynn796 int - if yyr796 || yy2arr796 { - r.EncodeArrayStart(54) + yysep833 := !z.EncBinary() + yy2arr833 := z.EncBasicHandle().StructToArray + var yyq833 [59]bool + _, _, _ = yysep833, yyq833, yy2arr833 + const yyr833 bool = false + yyq833[0] = x.Kind != "" + yyq833[1] = x.APIVersion != "" + var yynn833 int + if yyr833 || yy2arr833 { + r.EncodeArrayStart(59) } else { - yynn796 = 52 - for _, b := range yyq796 { + yynn833 = 57 + for _, b := range yyq833 { if b { - yynn796++ + yynn833++ } } - r.EncodeMapStart(yynn796) - yynn796 = 0 + r.EncodeMapStart(yynn833) + yynn833 = 0 } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq796[0] { - yym798 := z.EncBinary() - _ = yym798 + if yyq833[0] { + yym835 := z.EncBinary() + _ = yym835 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -7015,23 +7329,23 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq796[0] { + if yyq833[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym799 := z.EncBinary() - _ = yym799 + yym836 := z.EncBinary() + _ = yym836 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq796[1] { - yym801 := z.EncBinary() - _ = yym801 + if yyq833[1] { + yym838 := z.EncBinary() + _ = yym838 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -7040,22 +7354,22 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq796[1] { + if yyq833[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym802 := z.EncBinary() - _ = yym802 + yym839 := z.EncBinary() + _ = yym839 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym804 := z.EncBinary() - _ = yym804 + yym841 := z.EncBinary() + _ = yym841 if false { } else { r.EncodeInt(int64(x.Port)) @@ -7064,17 +7378,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym805 := z.EncBinary() - _ = yym805 + yym842 := z.EncBinary() + _ = yym842 if false { } else { r.EncodeInt(int64(x.Port)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym807 := z.EncBinary() - _ = yym807 + yym844 := z.EncBinary() + _ = yym844 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) @@ -7083,17 +7397,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("address")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym808 := z.EncBinary() - _ = yym808 + yym845 := z.EncBinary() + _ = yym845 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym810 := z.EncBinary() - _ = yym810 + yym847 := z.EncBinary() + _ = yym847 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) @@ -7102,17 +7416,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cloudProvider")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym811 := z.EncBinary() - _ = yym811 + yym848 := z.EncBinary() + _ = yym848 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CloudProvider)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym813 := z.EncBinary() - _ = yym813 + yym850 := z.EncBinary() + _ = yym850 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) @@ -7121,17 +7435,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cloudConfigFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym814 := z.EncBinary() - _ = yym814 + yym851 := z.EncBinary() + _ = yym851 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.CloudConfigFile)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym816 := z.EncBinary() - _ = yym816 + yym853 := z.EncBinary() + _ = yym853 if false { } else { r.EncodeInt(int64(x.ConcurrentEndpointSyncs)) @@ -7140,17 +7454,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentEndpointSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym817 := z.EncBinary() - _ = yym817 + yym854 := z.EncBinary() + _ = yym854 if false { } else { r.EncodeInt(int64(x.ConcurrentEndpointSyncs)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym819 := z.EncBinary() - _ = yym819 + yym856 := z.EncBinary() + _ = yym856 if false { } else { r.EncodeInt(int64(x.ConcurrentRSSyncs)) @@ -7159,17 +7473,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentRSSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym820 := z.EncBinary() - _ = yym820 + yym857 := z.EncBinary() + _ = yym857 if false { } else { r.EncodeInt(int64(x.ConcurrentRSSyncs)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym822 := z.EncBinary() - _ = yym822 + yym859 := z.EncBinary() + _ = yym859 if false { } else { r.EncodeInt(int64(x.ConcurrentRCSyncs)) @@ -7178,17 +7492,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentRCSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym823 := z.EncBinary() - _ = yym823 + yym860 := z.EncBinary() + _ = yym860 if false { } else { r.EncodeInt(int64(x.ConcurrentRCSyncs)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym825 := z.EncBinary() - _ = yym825 + yym862 := z.EncBinary() + _ = yym862 if false { } else { r.EncodeInt(int64(x.ConcurrentServiceSyncs)) @@ -7197,17 +7511,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentServiceSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym826 := z.EncBinary() - _ = yym826 + yym863 := z.EncBinary() + _ = yym863 if false { } else { r.EncodeInt(int64(x.ConcurrentServiceSyncs)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym828 := z.EncBinary() - _ = yym828 + yym865 := z.EncBinary() + _ = yym865 if false { } else { r.EncodeInt(int64(x.ConcurrentResourceQuotaSyncs)) @@ -7216,17 +7530,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentResourceQuotaSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym829 := z.EncBinary() - _ = yym829 + yym866 := z.EncBinary() + _ = yym866 if false { } else { r.EncodeInt(int64(x.ConcurrentResourceQuotaSyncs)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym831 := z.EncBinary() - _ = yym831 + yym868 := z.EncBinary() + _ = yym868 if false { } else { r.EncodeInt(int64(x.ConcurrentDeploymentSyncs)) @@ -7235,17 +7549,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentDeploymentSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym832 := z.EncBinary() - _ = yym832 + yym869 := z.EncBinary() + _ = yym869 if false { } else { r.EncodeInt(int64(x.ConcurrentDeploymentSyncs)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym834 := z.EncBinary() - _ = yym834 + yym871 := z.EncBinary() + _ = yym871 if false { } else { r.EncodeInt(int64(x.ConcurrentDaemonSetSyncs)) @@ -7254,17 +7568,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentDaemonSetSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym835 := z.EncBinary() - _ = yym835 + yym872 := z.EncBinary() + _ = yym872 if false { } else { r.EncodeInt(int64(x.ConcurrentDaemonSetSyncs)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym837 := z.EncBinary() - _ = yym837 + yym874 := z.EncBinary() + _ = yym874 if false { } else { r.EncodeInt(int64(x.ConcurrentJobSyncs)) @@ -7273,17 +7587,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentJobSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym838 := z.EncBinary() - _ = yym838 + yym875 := z.EncBinary() + _ = yym875 if false { } else { r.EncodeInt(int64(x.ConcurrentJobSyncs)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym840 := z.EncBinary() - _ = yym840 + yym877 := z.EncBinary() + _ = yym877 if false { } else { r.EncodeInt(int64(x.ConcurrentNamespaceSyncs)) @@ -7292,17 +7606,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentNamespaceSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym841 := z.EncBinary() - _ = yym841 + yym878 := z.EncBinary() + _ = yym878 if false { } else { r.EncodeInt(int64(x.ConcurrentNamespaceSyncs)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym843 := z.EncBinary() - _ = yym843 + yym880 := z.EncBinary() + _ = yym880 if false { } else { r.EncodeInt(int64(x.ConcurrentSATokenSyncs)) @@ -7311,17 +7625,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentSATokenSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym844 := z.EncBinary() - _ = yym844 + yym881 := z.EncBinary() + _ = yym881 if false { } else { r.EncodeInt(int64(x.ConcurrentSATokenSyncs)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym846 := z.EncBinary() - _ = yym846 + yym883 := z.EncBinary() + _ = yym883 if false { } else { r.EncodeInt(int64(x.LookupCacheSizeForRC)) @@ -7330,17 +7644,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForRC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym847 := z.EncBinary() - _ = yym847 + yym884 := z.EncBinary() + _ = yym884 if false { } else { r.EncodeInt(int64(x.LookupCacheSizeForRC)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym849 := z.EncBinary() - _ = yym849 + yym886 := z.EncBinary() + _ = yym886 if false { } else { r.EncodeInt(int64(x.LookupCacheSizeForRS)) @@ -7349,17 +7663,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForRS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym850 := z.EncBinary() - _ = yym850 + yym887 := z.EncBinary() + _ = yym887 if false { } else { r.EncodeInt(int64(x.LookupCacheSizeForRS)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym852 := z.EncBinary() - _ = yym852 + yym889 := z.EncBinary() + _ = yym889 if false { } else { r.EncodeInt(int64(x.LookupCacheSizeForDaemonSet)) @@ -7368,316 +7682,111 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lookupCacheSizeForDaemonSet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym853 := z.EncBinary() - _ = yym853 + yym890 := z.EncBinary() + _ = yym890 if false { } else { r.EncodeInt(int64(x.LookupCacheSizeForDaemonSet)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy855 := &x.ServiceSyncPeriod - yym856 := z.EncBinary() - _ = yym856 + yy892 := &x.ServiceSyncPeriod + yym893 := z.EncBinary() + _ = yym893 if false { - } else if z.HasExtensions() && z.EncExt(yy855) { - } else if !yym856 && z.IsJSONHandle() { - z.EncJSONMarshal(yy855) + } else if z.HasExtensions() && z.EncExt(yy892) { + } else if !yym893 && z.IsJSONHandle() { + z.EncJSONMarshal(yy892) } else { - z.EncFallback(yy855) + z.EncFallback(yy892) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceSyncPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy857 := &x.ServiceSyncPeriod - yym858 := z.EncBinary() - _ = yym858 + yy894 := &x.ServiceSyncPeriod + yym895 := z.EncBinary() + _ = yym895 if false { - } else if z.HasExtensions() && z.EncExt(yy857) { - } else if !yym858 && z.IsJSONHandle() { - z.EncJSONMarshal(yy857) + } else if z.HasExtensions() && z.EncExt(yy894) { + } else if !yym895 && z.IsJSONHandle() { + z.EncJSONMarshal(yy894) } else { - z.EncFallback(yy857) + z.EncFallback(yy894) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy860 := &x.NodeSyncPeriod - yym861 := z.EncBinary() - _ = yym861 + yy897 := &x.NodeSyncPeriod + yym898 := z.EncBinary() + _ = yym898 if false { - } else if z.HasExtensions() && z.EncExt(yy860) { - } else if !yym861 && z.IsJSONHandle() { - z.EncJSONMarshal(yy860) + } else if z.HasExtensions() && z.EncExt(yy897) { + } else if !yym898 && z.IsJSONHandle() { + z.EncJSONMarshal(yy897) } else { - z.EncFallback(yy860) + z.EncFallback(yy897) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSyncPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy862 := &x.NodeSyncPeriod - yym863 := z.EncBinary() - _ = yym863 + yy899 := &x.NodeSyncPeriod + yym900 := z.EncBinary() + _ = yym900 if false { - } else if z.HasExtensions() && z.EncExt(yy862) { - } else if !yym863 && z.IsJSONHandle() { - z.EncJSONMarshal(yy862) + } else if z.HasExtensions() && z.EncExt(yy899) { + } else if !yym900 && z.IsJSONHandle() { + z.EncJSONMarshal(yy899) } else { - z.EncFallback(yy862) + z.EncFallback(yy899) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy865 := &x.ResourceQuotaSyncPeriod - yym866 := z.EncBinary() - _ = yym866 + yy902 := &x.ResourceQuotaSyncPeriod + yym903 := z.EncBinary() + _ = yym903 if false { - } else if z.HasExtensions() && z.EncExt(yy865) { - } else if !yym866 && z.IsJSONHandle() { - z.EncJSONMarshal(yy865) + } else if z.HasExtensions() && z.EncExt(yy902) { + } else if !yym903 && z.IsJSONHandle() { + z.EncJSONMarshal(yy902) } else { - z.EncFallback(yy865) + z.EncFallback(yy902) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceQuotaSyncPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy867 := &x.ResourceQuotaSyncPeriod - yym868 := z.EncBinary() - _ = yym868 + yy904 := &x.ResourceQuotaSyncPeriod + yym905 := z.EncBinary() + _ = yym905 if false { - } else if z.HasExtensions() && z.EncExt(yy867) { - } else if !yym868 && z.IsJSONHandle() { - z.EncJSONMarshal(yy867) + } else if z.HasExtensions() && z.EncExt(yy904) { + } else if !yym905 && z.IsJSONHandle() { + z.EncJSONMarshal(yy904) } else { - z.EncFallback(yy867) + z.EncFallback(yy904) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy870 := &x.NamespaceSyncPeriod - yym871 := z.EncBinary() - _ = yym871 + yy907 := &x.NamespaceSyncPeriod + yym908 := z.EncBinary() + _ = yym908 if false { - } else if z.HasExtensions() && z.EncExt(yy870) { - } else if !yym871 && z.IsJSONHandle() { - z.EncJSONMarshal(yy870) + } else if z.HasExtensions() && z.EncExt(yy907) { + } else if !yym908 && z.IsJSONHandle() { + z.EncJSONMarshal(yy907) } else { - z.EncFallback(yy870) + z.EncFallback(yy907) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespaceSyncPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy872 := &x.NamespaceSyncPeriod - yym873 := z.EncBinary() - _ = yym873 - if false { - } else if z.HasExtensions() && z.EncExt(yy872) { - } else if !yym873 && z.IsJSONHandle() { - z.EncJSONMarshal(yy872) - } else { - z.EncFallback(yy872) - } - } - if yyr796 || yy2arr796 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy875 := &x.PVClaimBinderSyncPeriod - yym876 := z.EncBinary() - _ = yym876 - if false { - } else if z.HasExtensions() && z.EncExt(yy875) { - } else if !yym876 && z.IsJSONHandle() { - z.EncJSONMarshal(yy875) - } else { - z.EncFallback(yy875) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("pvClaimBinderSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy877 := &x.PVClaimBinderSyncPeriod - yym878 := z.EncBinary() - _ = yym878 - if false { - } else if z.HasExtensions() && z.EncExt(yy877) { - } else if !yym878 && z.IsJSONHandle() { - z.EncJSONMarshal(yy877) - } else { - z.EncFallback(yy877) - } - } - if yyr796 || yy2arr796 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy880 := &x.MinResyncPeriod - yym881 := z.EncBinary() - _ = yym881 - if false { - } else if z.HasExtensions() && z.EncExt(yy880) { - } else if !yym881 && z.IsJSONHandle() { - z.EncJSONMarshal(yy880) - } else { - z.EncFallback(yy880) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("minResyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy882 := &x.MinResyncPeriod - yym883 := z.EncBinary() - _ = yym883 - if false { - } else if z.HasExtensions() && z.EncExt(yy882) { - } else if !yym883 && z.IsJSONHandle() { - z.EncJSONMarshal(yy882) - } else { - z.EncFallback(yy882) - } - } - if yyr796 || yy2arr796 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym885 := z.EncBinary() - _ = yym885 - if false { - } else { - r.EncodeInt(int64(x.TerminatedPodGCThreshold)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("terminatedPodGCThreshold")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym886 := z.EncBinary() - _ = yym886 - if false { - } else { - r.EncodeInt(int64(x.TerminatedPodGCThreshold)) - } - } - if yyr796 || yy2arr796 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy888 := &x.HorizontalPodAutoscalerSyncPeriod - yym889 := z.EncBinary() - _ = yym889 - if false { - } else if z.HasExtensions() && z.EncExt(yy888) { - } else if !yym889 && z.IsJSONHandle() { - z.EncJSONMarshal(yy888) - } else { - z.EncFallback(yy888) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("horizontalPodAutoscalerSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy890 := &x.HorizontalPodAutoscalerSyncPeriod - yym891 := z.EncBinary() - _ = yym891 - if false { - } else if z.HasExtensions() && z.EncExt(yy890) { - } else if !yym891 && z.IsJSONHandle() { - z.EncJSONMarshal(yy890) - } else { - z.EncFallback(yy890) - } - } - if yyr796 || yy2arr796 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy893 := &x.DeploymentControllerSyncPeriod - yym894 := z.EncBinary() - _ = yym894 - if false { - } else if z.HasExtensions() && z.EncExt(yy893) { - } else if !yym894 && z.IsJSONHandle() { - z.EncJSONMarshal(yy893) - } else { - z.EncFallback(yy893) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deploymentControllerSyncPeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy895 := &x.DeploymentControllerSyncPeriod - yym896 := z.EncBinary() - _ = yym896 - if false { - } else if z.HasExtensions() && z.EncExt(yy895) { - } else if !yym896 && z.IsJSONHandle() { - z.EncJSONMarshal(yy895) - } else { - z.EncFallback(yy895) - } - } - if yyr796 || yy2arr796 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy898 := &x.PodEvictionTimeout - yym899 := z.EncBinary() - _ = yym899 - if false { - } else if z.HasExtensions() && z.EncExt(yy898) { - } else if !yym899 && z.IsJSONHandle() { - z.EncJSONMarshal(yy898) - } else { - z.EncFallback(yy898) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("podEvictionTimeout")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy900 := &x.PodEvictionTimeout - yym901 := z.EncBinary() - _ = yym901 - if false { - } else if z.HasExtensions() && z.EncExt(yy900) { - } else if !yym901 && z.IsJSONHandle() { - z.EncJSONMarshal(yy900) - } else { - z.EncFallback(yy900) - } - } - if yyr796 || yy2arr796 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym903 := z.EncBinary() - _ = yym903 - if false { - } else { - r.EncodeFloat32(float32(x.DeletingPodsQps)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletingPodsQps")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym904 := z.EncBinary() - _ = yym904 - if false { - } else { - r.EncodeFloat32(float32(x.DeletingPodsQps)) - } - } - if yyr796 || yy2arr796 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym906 := z.EncBinary() - _ = yym906 - if false { - } else { - r.EncodeInt(int64(x.DeletingPodsBurst)) - } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("deletingPodsBurst")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym907 := z.EncBinary() - _ = yym907 - if false { - } else { - r.EncodeInt(int64(x.DeletingPodsBurst)) - } - } - if yyr796 || yy2arr796 { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy909 := &x.NodeMonitorGracePeriod + yy909 := &x.NamespaceSyncPeriod yym910 := z.EncBinary() _ = yym910 if false { @@ -7687,43 +7796,37 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode } else { z.EncFallback(yy909) } - } else { - z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorGracePeriod")) - z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy911 := &x.NodeMonitorGracePeriod - yym912 := z.EncBinary() - _ = yym912 - if false { - } else if z.HasExtensions() && z.EncExt(yy911) { - } else if !yym912 && z.IsJSONHandle() { - z.EncJSONMarshal(yy911) - } else { - z.EncFallback(yy911) - } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym914 := z.EncBinary() - _ = yym914 + yy912 := &x.PVClaimBinderSyncPeriod + yym913 := z.EncBinary() + _ = yym913 if false { + } else if z.HasExtensions() && z.EncExt(yy912) { + } else if !yym913 && z.IsJSONHandle() { + z.EncJSONMarshal(yy912) } else { - r.EncodeInt(int64(x.RegisterRetryCount)) + z.EncFallback(yy912) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("registerRetryCount")) + r.EncodeString(codecSelferC_UTF81234, string("pvClaimBinderSyncPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy914 := &x.PVClaimBinderSyncPeriod yym915 := z.EncBinary() _ = yym915 if false { + } else if z.HasExtensions() && z.EncExt(yy914) { + } else if !yym915 && z.IsJSONHandle() { + z.EncJSONMarshal(yy914) } else { - r.EncodeInt(int64(x.RegisterRetryCount)) + z.EncFallback(yy914) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy917 := &x.NodeStartupGracePeriod + yy917 := &x.MinResyncPeriod yym918 := z.EncBinary() _ = yym918 if false { @@ -7735,9 +7838,9 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("nodeStartupGracePeriod")) + r.EncodeString(codecSelferC_UTF81234, string("minResyncPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy919 := &x.NodeStartupGracePeriod + yy919 := &x.MinResyncPeriod yym920 := z.EncBinary() _ = yym920 if false { @@ -7748,37 +7851,248 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncFallback(yy919) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy922 := &x.NodeMonitorPeriod + yym922 := z.EncBinary() + _ = yym922 + if false { + } else { + r.EncodeInt(int64(x.TerminatedPodGCThreshold)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("terminatedPodGCThreshold")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) yym923 := z.EncBinary() _ = yym923 if false { - } else if z.HasExtensions() && z.EncExt(yy922) { - } else if !yym923 && z.IsJSONHandle() { - z.EncJSONMarshal(yy922) } else { - z.EncFallback(yy922) + r.EncodeInt(int64(x.TerminatedPodGCThreshold)) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy925 := &x.HorizontalPodAutoscalerSyncPeriod + yym926 := z.EncBinary() + _ = yym926 + if false { + } else if z.HasExtensions() && z.EncExt(yy925) { + } else if !yym926 && z.IsJSONHandle() { + z.EncJSONMarshal(yy925) + } else { + z.EncFallback(yy925) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("horizontalPodAutoscalerSyncPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy927 := &x.HorizontalPodAutoscalerSyncPeriod + yym928 := z.EncBinary() + _ = yym928 + if false { + } else if z.HasExtensions() && z.EncExt(yy927) { + } else if !yym928 && z.IsJSONHandle() { + z.EncJSONMarshal(yy927) + } else { + z.EncFallback(yy927) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy930 := &x.DeploymentControllerSyncPeriod + yym931 := z.EncBinary() + _ = yym931 + if false { + } else if z.HasExtensions() && z.EncExt(yy930) { + } else if !yym931 && z.IsJSONHandle() { + z.EncJSONMarshal(yy930) + } else { + z.EncFallback(yy930) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deploymentControllerSyncPeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy932 := &x.DeploymentControllerSyncPeriod + yym933 := z.EncBinary() + _ = yym933 + if false { + } else if z.HasExtensions() && z.EncExt(yy932) { + } else if !yym933 && z.IsJSONHandle() { + z.EncJSONMarshal(yy932) + } else { + z.EncFallback(yy932) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy935 := &x.PodEvictionTimeout + yym936 := z.EncBinary() + _ = yym936 + if false { + } else if z.HasExtensions() && z.EncExt(yy935) { + } else if !yym936 && z.IsJSONHandle() { + z.EncJSONMarshal(yy935) + } else { + z.EncFallback(yy935) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("podEvictionTimeout")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy937 := &x.PodEvictionTimeout + yym938 := z.EncBinary() + _ = yym938 + if false { + } else if z.HasExtensions() && z.EncExt(yy937) { + } else if !yym938 && z.IsJSONHandle() { + z.EncJSONMarshal(yy937) + } else { + z.EncFallback(yy937) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym940 := z.EncBinary() + _ = yym940 + if false { + } else { + r.EncodeFloat32(float32(x.DeletingPodsQps)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deletingPodsQps")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym941 := z.EncBinary() + _ = yym941 + if false { + } else { + r.EncodeFloat32(float32(x.DeletingPodsQps)) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym943 := z.EncBinary() + _ = yym943 + if false { + } else { + r.EncodeInt(int64(x.DeletingPodsBurst)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deletingPodsBurst")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym944 := z.EncBinary() + _ = yym944 + if false { + } else { + r.EncodeInt(int64(x.DeletingPodsBurst)) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy946 := &x.NodeMonitorGracePeriod + yym947 := z.EncBinary() + _ = yym947 + if false { + } else if z.HasExtensions() && z.EncExt(yy946) { + } else if !yym947 && z.IsJSONHandle() { + z.EncJSONMarshal(yy946) + } else { + z.EncFallback(yy946) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorGracePeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy948 := &x.NodeMonitorGracePeriod + yym949 := z.EncBinary() + _ = yym949 + if false { + } else if z.HasExtensions() && z.EncExt(yy948) { + } else if !yym949 && z.IsJSONHandle() { + z.EncJSONMarshal(yy948) + } else { + z.EncFallback(yy948) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym951 := z.EncBinary() + _ = yym951 + if false { + } else { + r.EncodeInt(int64(x.RegisterRetryCount)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("registerRetryCount")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym952 := z.EncBinary() + _ = yym952 + if false { + } else { + r.EncodeInt(int64(x.RegisterRetryCount)) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy954 := &x.NodeStartupGracePeriod + yym955 := z.EncBinary() + _ = yym955 + if false { + } else if z.HasExtensions() && z.EncExt(yy954) { + } else if !yym955 && z.IsJSONHandle() { + z.EncJSONMarshal(yy954) + } else { + z.EncFallback(yy954) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeStartupGracePeriod")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy956 := &x.NodeStartupGracePeriod + yym957 := z.EncBinary() + _ = yym957 + if false { + } else if z.HasExtensions() && z.EncExt(yy956) { + } else if !yym957 && z.IsJSONHandle() { + z.EncJSONMarshal(yy956) + } else { + z.EncFallback(yy956) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy959 := &x.NodeMonitorPeriod + yym960 := z.EncBinary() + _ = yym960 + if false { + } else if z.HasExtensions() && z.EncExt(yy959) { + } else if !yym960 && z.IsJSONHandle() { + z.EncJSONMarshal(yy959) + } else { + z.EncFallback(yy959) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeMonitorPeriod")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy924 := &x.NodeMonitorPeriod - yym925 := z.EncBinary() - _ = yym925 + yy961 := &x.NodeMonitorPeriod + yym962 := z.EncBinary() + _ = yym962 if false { - } else if z.HasExtensions() && z.EncExt(yy924) { - } else if !yym925 && z.IsJSONHandle() { - z.EncJSONMarshal(yy924) + } else if z.HasExtensions() && z.EncExt(yy961) { + } else if !yym962 && z.IsJSONHandle() { + z.EncJSONMarshal(yy961) } else { - z.EncFallback(yy924) + z.EncFallback(yy961) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym927 := z.EncBinary() - _ = yym927 + yym964 := z.EncBinary() + _ = yym964 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountKeyFile)) @@ -7787,17 +8101,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceAccountKeyFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym928 := z.EncBinary() - _ = yym928 + yym965 := z.EncBinary() + _ = yym965 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountKeyFile)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym930 := z.EncBinary() - _ = yym930 + yym967 := z.EncBinary() + _ = yym967 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningCertFile)) @@ -7806,17 +8120,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterSigningCertFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym931 := z.EncBinary() - _ = yym931 + yym968 := z.EncBinary() + _ = yym968 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningCertFile)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym933 := z.EncBinary() - _ = yym933 + yym970 := z.EncBinary() + _ = yym970 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningKeyFile)) @@ -7825,17 +8139,36 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterSigningKeyFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym934 := z.EncBinary() - _ = yym934 + yym971 := z.EncBinary() + _ = yym971 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterSigningKeyFile)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym936 := z.EncBinary() - _ = yym936 + yym973 := z.EncBinary() + _ = yym973 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ApproveAllKubeletCSRsForGroup)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("approveAllKubeletCSRsForGroup")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym974 := z.EncBinary() + _ = yym974 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ApproveAllKubeletCSRsForGroup)) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym976 := z.EncBinary() + _ = yym976 if false { } else { r.EncodeBool(bool(x.EnableProfiling)) @@ -7844,17 +8177,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableProfiling")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym937 := z.EncBinary() - _ = yym937 + yym977 := z.EncBinary() + _ = yym977 if false { } else { r.EncodeBool(bool(x.EnableProfiling)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym939 := z.EncBinary() - _ = yym939 + yym979 := z.EncBinary() + _ = yym979 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) @@ -7863,17 +8196,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym940 := z.EncBinary() - _ = yym940 + yym980 := z.EncBinary() + _ = yym980 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym942 := z.EncBinary() - _ = yym942 + yym982 := z.EncBinary() + _ = yym982 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) @@ -7882,17 +8215,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym943 := z.EncBinary() - _ = yym943 + yym983 := z.EncBinary() + _ = yym983 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterCIDR)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym945 := z.EncBinary() - _ = yym945 + yym985 := z.EncBinary() + _ = yym985 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceCIDR)) @@ -7901,17 +8234,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym946 := z.EncBinary() - _ = yym946 + yym986 := z.EncBinary() + _ = yym986 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceCIDR)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym948 := z.EncBinary() - _ = yym948 + yym988 := z.EncBinary() + _ = yym988 if false { } else { r.EncodeInt(int64(x.NodeCIDRMaskSize)) @@ -7920,17 +8253,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeCIDRMaskSize")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym949 := z.EncBinary() - _ = yym949 + yym989 := z.EncBinary() + _ = yym989 if false { } else { r.EncodeInt(int64(x.NodeCIDRMaskSize)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym951 := z.EncBinary() - _ = yym951 + yym991 := z.EncBinary() + _ = yym991 if false { } else { r.EncodeBool(bool(x.AllocateNodeCIDRs)) @@ -7939,17 +8272,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allocateNodeCIDRs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym952 := z.EncBinary() - _ = yym952 + yym992 := z.EncBinary() + _ = yym992 if false { } else { r.EncodeBool(bool(x.AllocateNodeCIDRs)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym954 := z.EncBinary() - _ = yym954 + yym994 := z.EncBinary() + _ = yym994 if false { } else { r.EncodeBool(bool(x.ConfigureCloudRoutes)) @@ -7958,17 +8291,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configureCloudRoutes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym955 := z.EncBinary() - _ = yym955 + yym995 := z.EncBinary() + _ = yym995 if false { } else { r.EncodeBool(bool(x.ConfigureCloudRoutes)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym957 := z.EncBinary() - _ = yym957 + yym997 := z.EncBinary() + _ = yym997 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RootCAFile)) @@ -7977,17 +8310,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rootCAFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym958 := z.EncBinary() - _ = yym958 + yym998 := z.EncBinary() + _ = yym998 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RootCAFile)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym960 := z.EncBinary() - _ = yym960 + yym1000 := z.EncBinary() + _ = yym1000 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) @@ -7996,17 +8329,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("contentType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym961 := z.EncBinary() - _ = yym961 + yym1001 := z.EncBinary() + _ = yym1001 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContentType)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym963 := z.EncBinary() - _ = yym963 + yym1003 := z.EncBinary() + _ = yym1003 if false { } else { r.EncodeFloat32(float32(x.KubeAPIQPS)) @@ -8015,17 +8348,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeAPIQPS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym964 := z.EncBinary() - _ = yym964 + yym1004 := z.EncBinary() + _ = yym1004 if false { } else { r.EncodeFloat32(float32(x.KubeAPIQPS)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym966 := z.EncBinary() - _ = yym966 + yym1006 := z.EncBinary() + _ = yym1006 if false { } else { r.EncodeInt(int64(x.KubeAPIBurst)) @@ -8034,66 +8367,66 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeAPIBurst")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym967 := z.EncBinary() - _ = yym967 + yym1007 := z.EncBinary() + _ = yym1007 if false { } else { r.EncodeInt(int64(x.KubeAPIBurst)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy969 := &x.LeaderElection - yy969.CodecEncodeSelf(e) + yy1009 := &x.LeaderElection + yy1009.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("leaderElection")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy970 := &x.LeaderElection - yy970.CodecEncodeSelf(e) + yy1010 := &x.LeaderElection + yy1010.CodecEncodeSelf(e) } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy972 := &x.VolumeConfiguration - yy972.CodecEncodeSelf(e) + yy1012 := &x.VolumeConfiguration + yy1012.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeConfiguration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy973 := &x.VolumeConfiguration - yy973.CodecEncodeSelf(e) + yy1013 := &x.VolumeConfiguration + yy1013.CodecEncodeSelf(e) } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy975 := &x.ControllerStartInterval - yym976 := z.EncBinary() - _ = yym976 + yy1015 := &x.ControllerStartInterval + yym1016 := z.EncBinary() + _ = yym1016 if false { - } else if z.HasExtensions() && z.EncExt(yy975) { - } else if !yym976 && z.IsJSONHandle() { - z.EncJSONMarshal(yy975) + } else if z.HasExtensions() && z.EncExt(yy1015) { + } else if !yym1016 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1015) } else { - z.EncFallback(yy975) + z.EncFallback(yy1015) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("controllerStartInterval")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy977 := &x.ControllerStartInterval - yym978 := z.EncBinary() - _ = yym978 + yy1017 := &x.ControllerStartInterval + yym1018 := z.EncBinary() + _ = yym1018 if false { - } else if z.HasExtensions() && z.EncExt(yy977) { - } else if !yym978 && z.IsJSONHandle() { - z.EncJSONMarshal(yy977) + } else if z.HasExtensions() && z.EncExt(yy1017) { + } else if !yym1018 && z.IsJSONHandle() { + z.EncJSONMarshal(yy1017) } else { - z.EncFallback(yy977) + z.EncFallback(yy1017) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym980 := z.EncBinary() - _ = yym980 + yym1020 := z.EncBinary() + _ = yym1020 if false { } else { r.EncodeBool(bool(x.EnableGarbageCollector)) @@ -8102,17 +8435,17 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableGarbageCollector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym981 := z.EncBinary() - _ = yym981 + yym1021 := z.EncBinary() + _ = yym1021 if false { } else { r.EncodeBool(bool(x.EnableGarbageCollector)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym983 := z.EncBinary() - _ = yym983 + yym1023 := z.EncBinary() + _ = yym1023 if false { } else { r.EncodeInt(int64(x.ConcurrentGCSyncs)) @@ -8121,14 +8454,90 @@ func (x *KubeControllerManagerConfiguration) CodecEncodeSelf(e *codec1978.Encode z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("concurrentGCSyncs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym984 := z.EncBinary() - _ = yym984 + yym1024 := z.EncBinary() + _ = yym1024 if false { } else { r.EncodeInt(int64(x.ConcurrentGCSyncs)) } } - if yyr796 || yy2arr796 { + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1026 := z.EncBinary() + _ = yym1026 + if false { + } else { + r.EncodeFloat32(float32(x.NodeEvictionRate)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("nodeEvictionRate")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1027 := z.EncBinary() + _ = yym1027 + if false { + } else { + r.EncodeFloat32(float32(x.NodeEvictionRate)) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1029 := z.EncBinary() + _ = yym1029 + if false { + } else { + r.EncodeFloat32(float32(x.SecondaryNodeEvictionRate)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("secondaryNodeEvictionRate")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1030 := z.EncBinary() + _ = yym1030 + if false { + } else { + r.EncodeFloat32(float32(x.SecondaryNodeEvictionRate)) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1032 := z.EncBinary() + _ = yym1032 + if false { + } else { + r.EncodeInt(int64(x.LargeClusterSizeThreshold)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("largeClusterSizeThreshold")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1033 := z.EncBinary() + _ = yym1033 + if false { + } else { + r.EncodeInt(int64(x.LargeClusterSizeThreshold)) + } + } + if yyr833 || yy2arr833 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym1035 := z.EncBinary() + _ = yym1035 + if false { + } else { + r.EncodeFloat32(float32(x.UnhealthyZoneThreshold)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("unhealthyZoneThreshold")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1036 := z.EncBinary() + _ = yym1036 + if false { + } else { + r.EncodeFloat32(float32(x.UnhealthyZoneThreshold)) + } + } + if yyr833 || yy2arr833 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -8141,25 +8550,25 @@ func (x *KubeControllerManagerConfiguration) CodecDecodeSelf(d *codec1978.Decode var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym985 := z.DecBinary() - _ = yym985 + yym1037 := z.DecBinary() + _ = yym1037 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct986 := r.ContainerType() - if yyct986 == codecSelferValueTypeMap1234 { - yyl986 := r.ReadMapStart() - if yyl986 == 0 { + yyct1038 := r.ContainerType() + if yyct1038 == codecSelferValueTypeMap1234 { + yyl1038 := r.ReadMapStart() + if yyl1038 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl986, d) + x.codecDecodeSelfFromMap(yyl1038, d) } - } else if yyct986 == codecSelferValueTypeArray1234 { - yyl986 := r.ReadArrayStart() - if yyl986 == 0 { + } else if yyct1038 == codecSelferValueTypeArray1234 { + yyl1038 := r.ReadArrayStart() + if yyl1038 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl986, d) + x.codecDecodeSelfFromArray(yyl1038, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -8171,12 +8580,12 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys987Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys987Slc - var yyhl987 bool = l >= 0 - for yyj987 := 0; ; yyj987++ { - if yyhl987 { - if yyj987 >= l { + var yys1039Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1039Slc + var yyhl1039 bool = l >= 0 + for yyj1039 := 0; ; yyj1039++ { + if yyhl1039 { + if yyj1039 >= l { break } } else { @@ -8185,10 +8594,10 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys987Slc = r.DecodeBytes(yys987Slc, true, true) - yys987 := string(yys987Slc) + yys1039Slc = r.DecodeBytes(yys1039Slc, true, true) + yys1039 := string(yys1039Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys987 { + switch yys1039 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -8307,90 +8716,90 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co if r.TryDecodeAsNil() { x.ServiceSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1007 := &x.ServiceSyncPeriod - yym1008 := z.DecBinary() - _ = yym1008 + yyv1059 := &x.ServiceSyncPeriod + yym1060 := z.DecBinary() + _ = yym1060 if false { - } else if z.HasExtensions() && z.DecExt(yyv1007) { - } else if !yym1008 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1007) + } else if z.HasExtensions() && z.DecExt(yyv1059) { + } else if !yym1060 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1059) } else { - z.DecFallback(yyv1007, false) + z.DecFallback(yyv1059, false) } } case "nodeSyncPeriod": if r.TryDecodeAsNil() { x.NodeSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1009 := &x.NodeSyncPeriod - yym1010 := z.DecBinary() - _ = yym1010 + yyv1061 := &x.NodeSyncPeriod + yym1062 := z.DecBinary() + _ = yym1062 if false { - } else if z.HasExtensions() && z.DecExt(yyv1009) { - } else if !yym1010 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1009) + } else if z.HasExtensions() && z.DecExt(yyv1061) { + } else if !yym1062 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1061) } else { - z.DecFallback(yyv1009, false) + z.DecFallback(yyv1061, false) } } case "resourceQuotaSyncPeriod": if r.TryDecodeAsNil() { x.ResourceQuotaSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1011 := &x.ResourceQuotaSyncPeriod - yym1012 := z.DecBinary() - _ = yym1012 + yyv1063 := &x.ResourceQuotaSyncPeriod + yym1064 := z.DecBinary() + _ = yym1064 if false { - } else if z.HasExtensions() && z.DecExt(yyv1011) { - } else if !yym1012 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1011) + } else if z.HasExtensions() && z.DecExt(yyv1063) { + } else if !yym1064 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1063) } else { - z.DecFallback(yyv1011, false) + z.DecFallback(yyv1063, false) } } case "namespaceSyncPeriod": if r.TryDecodeAsNil() { x.NamespaceSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1013 := &x.NamespaceSyncPeriod - yym1014 := z.DecBinary() - _ = yym1014 + yyv1065 := &x.NamespaceSyncPeriod + yym1066 := z.DecBinary() + _ = yym1066 if false { - } else if z.HasExtensions() && z.DecExt(yyv1013) { - } else if !yym1014 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1013) + } else if z.HasExtensions() && z.DecExt(yyv1065) { + } else if !yym1066 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1065) } else { - z.DecFallback(yyv1013, false) + z.DecFallback(yyv1065, false) } } case "pvClaimBinderSyncPeriod": if r.TryDecodeAsNil() { x.PVClaimBinderSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1015 := &x.PVClaimBinderSyncPeriod - yym1016 := z.DecBinary() - _ = yym1016 + yyv1067 := &x.PVClaimBinderSyncPeriod + yym1068 := z.DecBinary() + _ = yym1068 if false { - } else if z.HasExtensions() && z.DecExt(yyv1015) { - } else if !yym1016 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1015) + } else if z.HasExtensions() && z.DecExt(yyv1067) { + } else if !yym1068 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1067) } else { - z.DecFallback(yyv1015, false) + z.DecFallback(yyv1067, false) } } case "minResyncPeriod": if r.TryDecodeAsNil() { x.MinResyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1017 := &x.MinResyncPeriod - yym1018 := z.DecBinary() - _ = yym1018 + yyv1069 := &x.MinResyncPeriod + yym1070 := z.DecBinary() + _ = yym1070 if false { - } else if z.HasExtensions() && z.DecExt(yyv1017) { - } else if !yym1018 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1017) + } else if z.HasExtensions() && z.DecExt(yyv1069) { + } else if !yym1070 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1069) } else { - z.DecFallback(yyv1017, false) + z.DecFallback(yyv1069, false) } } case "terminatedPodGCThreshold": @@ -8403,45 +8812,45 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co if r.TryDecodeAsNil() { x.HorizontalPodAutoscalerSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1020 := &x.HorizontalPodAutoscalerSyncPeriod - yym1021 := z.DecBinary() - _ = yym1021 + yyv1072 := &x.HorizontalPodAutoscalerSyncPeriod + yym1073 := z.DecBinary() + _ = yym1073 if false { - } else if z.HasExtensions() && z.DecExt(yyv1020) { - } else if !yym1021 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1020) + } else if z.HasExtensions() && z.DecExt(yyv1072) { + } else if !yym1073 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1072) } else { - z.DecFallback(yyv1020, false) + z.DecFallback(yyv1072, false) } } case "deploymentControllerSyncPeriod": if r.TryDecodeAsNil() { x.DeploymentControllerSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1022 := &x.DeploymentControllerSyncPeriod - yym1023 := z.DecBinary() - _ = yym1023 + yyv1074 := &x.DeploymentControllerSyncPeriod + yym1075 := z.DecBinary() + _ = yym1075 if false { - } else if z.HasExtensions() && z.DecExt(yyv1022) { - } else if !yym1023 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1022) + } else if z.HasExtensions() && z.DecExt(yyv1074) { + } else if !yym1075 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1074) } else { - z.DecFallback(yyv1022, false) + z.DecFallback(yyv1074, false) } } case "podEvictionTimeout": if r.TryDecodeAsNil() { x.PodEvictionTimeout = pkg1_unversioned.Duration{} } else { - yyv1024 := &x.PodEvictionTimeout - yym1025 := z.DecBinary() - _ = yym1025 + yyv1076 := &x.PodEvictionTimeout + yym1077 := z.DecBinary() + _ = yym1077 if false { - } else if z.HasExtensions() && z.DecExt(yyv1024) { - } else if !yym1025 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1024) + } else if z.HasExtensions() && z.DecExt(yyv1076) { + } else if !yym1077 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1076) } else { - z.DecFallback(yyv1024, false) + z.DecFallback(yyv1076, false) } } case "deletingPodsQps": @@ -8460,15 +8869,15 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co if r.TryDecodeAsNil() { x.NodeMonitorGracePeriod = pkg1_unversioned.Duration{} } else { - yyv1028 := &x.NodeMonitorGracePeriod - yym1029 := z.DecBinary() - _ = yym1029 + yyv1080 := &x.NodeMonitorGracePeriod + yym1081 := z.DecBinary() + _ = yym1081 if false { - } else if z.HasExtensions() && z.DecExt(yyv1028) { - } else if !yym1029 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1028) + } else if z.HasExtensions() && z.DecExt(yyv1080) { + } else if !yym1081 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1080) } else { - z.DecFallback(yyv1028, false) + z.DecFallback(yyv1080, false) } } case "registerRetryCount": @@ -8481,30 +8890,30 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co if r.TryDecodeAsNil() { x.NodeStartupGracePeriod = pkg1_unversioned.Duration{} } else { - yyv1031 := &x.NodeStartupGracePeriod - yym1032 := z.DecBinary() - _ = yym1032 + yyv1083 := &x.NodeStartupGracePeriod + yym1084 := z.DecBinary() + _ = yym1084 if false { - } else if z.HasExtensions() && z.DecExt(yyv1031) { - } else if !yym1032 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1031) + } else if z.HasExtensions() && z.DecExt(yyv1083) { + } else if !yym1084 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1083) } else { - z.DecFallback(yyv1031, false) + z.DecFallback(yyv1083, false) } } case "nodeMonitorPeriod": if r.TryDecodeAsNil() { x.NodeMonitorPeriod = pkg1_unversioned.Duration{} } else { - yyv1033 := &x.NodeMonitorPeriod - yym1034 := z.DecBinary() - _ = yym1034 + yyv1085 := &x.NodeMonitorPeriod + yym1086 := z.DecBinary() + _ = yym1086 if false { - } else if z.HasExtensions() && z.DecExt(yyv1033) { - } else if !yym1034 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1033) + } else if z.HasExtensions() && z.DecExt(yyv1085) { + } else if !yym1086 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1085) } else { - z.DecFallback(yyv1033, false) + z.DecFallback(yyv1085, false) } } case "serviceAccountKeyFile": @@ -8525,6 +8934,12 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co } else { x.ClusterSigningKeyFile = string(r.DecodeString()) } + case "approveAllKubeletCSRsForGroup": + if r.TryDecodeAsNil() { + x.ApproveAllKubeletCSRsForGroup = "" + } else { + x.ApproveAllKubeletCSRsForGroup = string(r.DecodeString()) + } case "enableProfiling": if r.TryDecodeAsNil() { x.EnableProfiling = false @@ -8595,29 +9010,29 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co if r.TryDecodeAsNil() { x.LeaderElection = LeaderElectionConfiguration{} } else { - yyv1049 := &x.LeaderElection - yyv1049.CodecDecodeSelf(d) + yyv1102 := &x.LeaderElection + yyv1102.CodecDecodeSelf(d) } case "volumeConfiguration": if r.TryDecodeAsNil() { x.VolumeConfiguration = VolumeConfiguration{} } else { - yyv1050 := &x.VolumeConfiguration - yyv1050.CodecDecodeSelf(d) + yyv1103 := &x.VolumeConfiguration + yyv1103.CodecDecodeSelf(d) } case "controllerStartInterval": if r.TryDecodeAsNil() { x.ControllerStartInterval = pkg1_unversioned.Duration{} } else { - yyv1051 := &x.ControllerStartInterval - yym1052 := z.DecBinary() - _ = yym1052 + yyv1104 := &x.ControllerStartInterval + yym1105 := z.DecBinary() + _ = yym1105 if false { - } else if z.HasExtensions() && z.DecExt(yyv1051) { - } else if !yym1052 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1051) + } else if z.HasExtensions() && z.DecExt(yyv1104) { + } else if !yym1105 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1104) } else { - z.DecFallback(yyv1051, false) + z.DecFallback(yyv1104, false) } } case "enableGarbageCollector": @@ -8632,10 +9047,34 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromMap(l int, d *co } else { x.ConcurrentGCSyncs = int32(r.DecodeInt(32)) } + case "nodeEvictionRate": + if r.TryDecodeAsNil() { + x.NodeEvictionRate = 0 + } else { + x.NodeEvictionRate = float32(r.DecodeFloat(true)) + } + case "secondaryNodeEvictionRate": + if r.TryDecodeAsNil() { + x.SecondaryNodeEvictionRate = 0 + } else { + x.SecondaryNodeEvictionRate = float32(r.DecodeFloat(true)) + } + case "largeClusterSizeThreshold": + if r.TryDecodeAsNil() { + x.LargeClusterSizeThreshold = 0 + } else { + x.LargeClusterSizeThreshold = int32(r.DecodeInt(32)) + } + case "unhealthyZoneThreshold": + if r.TryDecodeAsNil() { + x.UnhealthyZoneThreshold = 0 + } else { + x.UnhealthyZoneThreshold = float32(r.DecodeFloat(true)) + } default: - z.DecStructFieldNotFound(-1, yys987) - } // end switch yys987 - } // end for yyj987 + z.DecStructFieldNotFound(-1, yys1039) + } // end switch yys1039 + } // end for yyj1039 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -8643,16 +9082,16 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1055 int - var yyb1055 bool - var yyhl1055 bool = l >= 0 - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + var yyj1112 int + var yyb1112 bool + var yyhl1112 bool = l >= 0 + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8662,13 +9101,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.Kind = string(r.DecodeString()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8678,13 +9117,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.APIVersion = string(r.DecodeString()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8694,13 +9133,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.Port = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8710,13 +9149,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.Address = string(r.DecodeString()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8726,13 +9165,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.CloudProvider = string(r.DecodeString()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8742,13 +9181,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.CloudConfigFile = string(r.DecodeString()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8758,13 +9197,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentEndpointSyncs = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8774,13 +9213,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentRSSyncs = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8790,13 +9229,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentRCSyncs = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8806,13 +9245,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentServiceSyncs = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8822,13 +9261,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentResourceQuotaSyncs = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8838,13 +9277,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentDeploymentSyncs = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8854,13 +9293,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentDaemonSetSyncs = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8870,13 +9309,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentJobSyncs = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8886,13 +9325,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentNamespaceSyncs = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8902,13 +9341,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentSATokenSyncs = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8918,13 +9357,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.LookupCacheSizeForRC = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8934,13 +9373,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.LookupCacheSizeForRS = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8950,13 +9389,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.LookupCacheSizeForDaemonSet = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8964,24 +9403,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.ServiceSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1075 := &x.ServiceSyncPeriod - yym1076 := z.DecBinary() - _ = yym1076 + yyv1132 := &x.ServiceSyncPeriod + yym1133 := z.DecBinary() + _ = yym1133 if false { - } else if z.HasExtensions() && z.DecExt(yyv1075) { - } else if !yym1076 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1075) + } else if z.HasExtensions() && z.DecExt(yyv1132) { + } else if !yym1133 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1132) } else { - z.DecFallback(yyv1075, false) + z.DecFallback(yyv1132, false) } } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -8989,24 +9428,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.NodeSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1077 := &x.NodeSyncPeriod - yym1078 := z.DecBinary() - _ = yym1078 + yyv1134 := &x.NodeSyncPeriod + yym1135 := z.DecBinary() + _ = yym1135 if false { - } else if z.HasExtensions() && z.DecExt(yyv1077) { - } else if !yym1078 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1077) + } else if z.HasExtensions() && z.DecExt(yyv1134) { + } else if !yym1135 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1134) } else { - z.DecFallback(yyv1077, false) + z.DecFallback(yyv1134, false) } } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9014,24 +9453,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.ResourceQuotaSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1079 := &x.ResourceQuotaSyncPeriod - yym1080 := z.DecBinary() - _ = yym1080 + yyv1136 := &x.ResourceQuotaSyncPeriod + yym1137 := z.DecBinary() + _ = yym1137 if false { - } else if z.HasExtensions() && z.DecExt(yyv1079) { - } else if !yym1080 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1079) + } else if z.HasExtensions() && z.DecExt(yyv1136) { + } else if !yym1137 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1136) } else { - z.DecFallback(yyv1079, false) + z.DecFallback(yyv1136, false) } } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9039,24 +9478,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.NamespaceSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1081 := &x.NamespaceSyncPeriod - yym1082 := z.DecBinary() - _ = yym1082 + yyv1138 := &x.NamespaceSyncPeriod + yym1139 := z.DecBinary() + _ = yym1139 if false { - } else if z.HasExtensions() && z.DecExt(yyv1081) { - } else if !yym1082 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1081) + } else if z.HasExtensions() && z.DecExt(yyv1138) { + } else if !yym1139 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1138) } else { - z.DecFallback(yyv1081, false) + z.DecFallback(yyv1138, false) } } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9064,24 +9503,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.PVClaimBinderSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1083 := &x.PVClaimBinderSyncPeriod - yym1084 := z.DecBinary() - _ = yym1084 + yyv1140 := &x.PVClaimBinderSyncPeriod + yym1141 := z.DecBinary() + _ = yym1141 if false { - } else if z.HasExtensions() && z.DecExt(yyv1083) { - } else if !yym1084 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1083) + } else if z.HasExtensions() && z.DecExt(yyv1140) { + } else if !yym1141 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1140) } else { - z.DecFallback(yyv1083, false) + z.DecFallback(yyv1140, false) } } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9089,24 +9528,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.MinResyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1085 := &x.MinResyncPeriod - yym1086 := z.DecBinary() - _ = yym1086 + yyv1142 := &x.MinResyncPeriod + yym1143 := z.DecBinary() + _ = yym1143 if false { - } else if z.HasExtensions() && z.DecExt(yyv1085) { - } else if !yym1086 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1085) + } else if z.HasExtensions() && z.DecExt(yyv1142) { + } else if !yym1143 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1142) } else { - z.DecFallback(yyv1085, false) + z.DecFallback(yyv1142, false) } } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9116,13 +9555,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.TerminatedPodGCThreshold = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9130,24 +9569,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.HorizontalPodAutoscalerSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1088 := &x.HorizontalPodAutoscalerSyncPeriod - yym1089 := z.DecBinary() - _ = yym1089 + yyv1145 := &x.HorizontalPodAutoscalerSyncPeriod + yym1146 := z.DecBinary() + _ = yym1146 if false { - } else if z.HasExtensions() && z.DecExt(yyv1088) { - } else if !yym1089 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1088) + } else if z.HasExtensions() && z.DecExt(yyv1145) { + } else if !yym1146 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1145) } else { - z.DecFallback(yyv1088, false) + z.DecFallback(yyv1145, false) } } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9155,24 +9594,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.DeploymentControllerSyncPeriod = pkg1_unversioned.Duration{} } else { - yyv1090 := &x.DeploymentControllerSyncPeriod - yym1091 := z.DecBinary() - _ = yym1091 + yyv1147 := &x.DeploymentControllerSyncPeriod + yym1148 := z.DecBinary() + _ = yym1148 if false { - } else if z.HasExtensions() && z.DecExt(yyv1090) { - } else if !yym1091 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1090) + } else if z.HasExtensions() && z.DecExt(yyv1147) { + } else if !yym1148 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1147) } else { - z.DecFallback(yyv1090, false) + z.DecFallback(yyv1147, false) } } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9180,24 +9619,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.PodEvictionTimeout = pkg1_unversioned.Duration{} } else { - yyv1092 := &x.PodEvictionTimeout - yym1093 := z.DecBinary() - _ = yym1093 + yyv1149 := &x.PodEvictionTimeout + yym1150 := z.DecBinary() + _ = yym1150 if false { - } else if z.HasExtensions() && z.DecExt(yyv1092) { - } else if !yym1093 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1092) + } else if z.HasExtensions() && z.DecExt(yyv1149) { + } else if !yym1150 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1149) } else { - z.DecFallback(yyv1092, false) + z.DecFallback(yyv1149, false) } } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9207,13 +9646,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.DeletingPodsQps = float32(r.DecodeFloat(true)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9223,13 +9662,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.DeletingPodsBurst = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9237,24 +9676,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.NodeMonitorGracePeriod = pkg1_unversioned.Duration{} } else { - yyv1096 := &x.NodeMonitorGracePeriod - yym1097 := z.DecBinary() - _ = yym1097 + yyv1153 := &x.NodeMonitorGracePeriod + yym1154 := z.DecBinary() + _ = yym1154 if false { - } else if z.HasExtensions() && z.DecExt(yyv1096) { - } else if !yym1097 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1096) + } else if z.HasExtensions() && z.DecExt(yyv1153) { + } else if !yym1154 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1153) } else { - z.DecFallback(yyv1096, false) + z.DecFallback(yyv1153, false) } } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9264,13 +9703,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.RegisterRetryCount = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9278,24 +9717,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.NodeStartupGracePeriod = pkg1_unversioned.Duration{} } else { - yyv1099 := &x.NodeStartupGracePeriod - yym1100 := z.DecBinary() - _ = yym1100 + yyv1156 := &x.NodeStartupGracePeriod + yym1157 := z.DecBinary() + _ = yym1157 if false { - } else if z.HasExtensions() && z.DecExt(yyv1099) { - } else if !yym1100 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1099) + } else if z.HasExtensions() && z.DecExt(yyv1156) { + } else if !yym1157 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1156) } else { - z.DecFallback(yyv1099, false) + z.DecFallback(yyv1156, false) } } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9303,24 +9742,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.NodeMonitorPeriod = pkg1_unversioned.Duration{} } else { - yyv1101 := &x.NodeMonitorPeriod - yym1102 := z.DecBinary() - _ = yym1102 + yyv1158 := &x.NodeMonitorPeriod + yym1159 := z.DecBinary() + _ = yym1159 if false { - } else if z.HasExtensions() && z.DecExt(yyv1101) { - } else if !yym1102 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1101) + } else if z.HasExtensions() && z.DecExt(yyv1158) { + } else if !yym1159 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1158) } else { - z.DecFallback(yyv1101, false) + z.DecFallback(yyv1158, false) } } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9330,13 +9769,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ServiceAccountKeyFile = string(r.DecodeString()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9346,13 +9785,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ClusterSigningCertFile = string(r.DecodeString()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9362,13 +9801,29 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ClusterSigningKeyFile = string(r.DecodeString()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ApproveAllKubeletCSRsForGroup = "" + } else { + x.ApproveAllKubeletCSRsForGroup = string(r.DecodeString()) + } + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l + } else { + yyb1112 = r.CheckBreak() + } + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9378,13 +9833,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.EnableProfiling = bool(r.DecodeBool()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9394,13 +9849,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ClusterName = string(r.DecodeString()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9410,13 +9865,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ClusterCIDR = string(r.DecodeString()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9426,13 +9881,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ServiceCIDR = string(r.DecodeString()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9442,13 +9897,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.NodeCIDRMaskSize = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9458,13 +9913,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.AllocateNodeCIDRs = bool(r.DecodeBool()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9474,13 +9929,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConfigureCloudRoutes = bool(r.DecodeBool()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9490,13 +9945,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.RootCAFile = string(r.DecodeString()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9506,13 +9961,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ContentType = string(r.DecodeString()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9522,13 +9977,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.KubeAPIQPS = float32(r.DecodeFloat(true)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9538,13 +9993,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.KubeAPIBurst = int32(r.DecodeInt(32)) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9552,16 +10007,16 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.LeaderElection = LeaderElectionConfiguration{} } else { - yyv1117 := &x.LeaderElection - yyv1117.CodecDecodeSelf(d) + yyv1175 := &x.LeaderElection + yyv1175.CodecDecodeSelf(d) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9569,16 +10024,16 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.VolumeConfiguration = VolumeConfiguration{} } else { - yyv1118 := &x.VolumeConfiguration - yyv1118.CodecDecodeSelf(d) + yyv1176 := &x.VolumeConfiguration + yyv1176.CodecDecodeSelf(d) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9586,24 +10041,24 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * if r.TryDecodeAsNil() { x.ControllerStartInterval = pkg1_unversioned.Duration{} } else { - yyv1119 := &x.ControllerStartInterval - yym1120 := z.DecBinary() - _ = yym1120 + yyv1177 := &x.ControllerStartInterval + yym1178 := z.DecBinary() + _ = yym1178 if false { - } else if z.HasExtensions() && z.DecExt(yyv1119) { - } else if !yym1120 && z.IsJSONHandle() { - z.DecJSONUnmarshal(yyv1119) + } else if z.HasExtensions() && z.DecExt(yyv1177) { + } else if !yym1178 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv1177) } else { - z.DecFallback(yyv1119, false) + z.DecFallback(yyv1177, false) } } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9613,13 +10068,13 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.EnableGarbageCollector = bool(r.DecodeBool()) } - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9629,18 +10084,82 @@ func (x *KubeControllerManagerConfiguration) codecDecodeSelfFromArray(l int, d * } else { x.ConcurrentGCSyncs = int32(r.DecodeInt(32)) } + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l + } else { + yyb1112 = r.CheckBreak() + } + if yyb1112 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.NodeEvictionRate = 0 + } else { + x.NodeEvictionRate = float32(r.DecodeFloat(true)) + } + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l + } else { + yyb1112 = r.CheckBreak() + } + if yyb1112 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SecondaryNodeEvictionRate = 0 + } else { + x.SecondaryNodeEvictionRate = float32(r.DecodeFloat(true)) + } + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l + } else { + yyb1112 = r.CheckBreak() + } + if yyb1112 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.LargeClusterSizeThreshold = 0 + } else { + x.LargeClusterSizeThreshold = int32(r.DecodeInt(32)) + } + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l + } else { + yyb1112 = r.CheckBreak() + } + if yyb1112 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UnhealthyZoneThreshold = 0 + } else { + x.UnhealthyZoneThreshold = float32(r.DecodeFloat(true)) + } for { - yyj1055++ - if yyhl1055 { - yyb1055 = yyj1055 > l + yyj1112++ + if yyhl1112 { + yyb1112 = yyj1112 > l } else { - yyb1055 = r.CheckBreak() + yyb1112 = r.CheckBreak() } - if yyb1055 { + if yyb1112 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1055-1, "") + z.DecStructFieldNotFound(yyj1112-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9652,33 +10171,33 @@ func (x *VolumeConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1123 := z.EncBinary() - _ = yym1123 + yym1185 := z.EncBinary() + _ = yym1185 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1124 := !z.EncBinary() - yy2arr1124 := z.EncBasicHandle().StructToArray - var yyq1124 [4]bool - _, _, _ = yysep1124, yyq1124, yy2arr1124 - const yyr1124 bool = false - var yynn1124 int - if yyr1124 || yy2arr1124 { + yysep1186 := !z.EncBinary() + yy2arr1186 := z.EncBasicHandle().StructToArray + var yyq1186 [4]bool + _, _, _ = yysep1186, yyq1186, yy2arr1186 + const yyr1186 bool = false + var yynn1186 int + if yyr1186 || yy2arr1186 { r.EncodeArrayStart(4) } else { - yynn1124 = 4 - for _, b := range yyq1124 { + yynn1186 = 4 + for _, b := range yyq1186 { if b { - yynn1124++ + yynn1186++ } } - r.EncodeMapStart(yynn1124) - yynn1124 = 0 + r.EncodeMapStart(yynn1186) + yynn1186 = 0 } - if yyr1124 || yy2arr1124 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1126 := z.EncBinary() - _ = yym1126 + yym1188 := z.EncBinary() + _ = yym1188 if false { } else { r.EncodeBool(bool(x.EnableHostPathProvisioning)) @@ -9687,17 +10206,17 @@ func (x *VolumeConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableHostPathProvisioning")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1127 := z.EncBinary() - _ = yym1127 + yym1189 := z.EncBinary() + _ = yym1189 if false { } else { r.EncodeBool(bool(x.EnableHostPathProvisioning)) } } - if yyr1124 || yy2arr1124 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1129 := z.EncBinary() - _ = yym1129 + yym1191 := z.EncBinary() + _ = yym1191 if false { } else { r.EncodeBool(bool(x.EnableDynamicProvisioning)) @@ -9706,28 +10225,28 @@ func (x *VolumeConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("enableDynamicProvisioning")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1130 := z.EncBinary() - _ = yym1130 + yym1192 := z.EncBinary() + _ = yym1192 if false { } else { r.EncodeBool(bool(x.EnableDynamicProvisioning)) } } - if yyr1124 || yy2arr1124 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1132 := &x.PersistentVolumeRecyclerConfiguration - yy1132.CodecEncodeSelf(e) + yy1194 := &x.PersistentVolumeRecyclerConfiguration + yy1194.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persitentVolumeRecyclerConfiguration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1133 := &x.PersistentVolumeRecyclerConfiguration - yy1133.CodecEncodeSelf(e) + yy1195 := &x.PersistentVolumeRecyclerConfiguration + yy1195.CodecEncodeSelf(e) } - if yyr1124 || yy2arr1124 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1135 := z.EncBinary() - _ = yym1135 + yym1197 := z.EncBinary() + _ = yym1197 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FlexVolumePluginDir)) @@ -9736,14 +10255,14 @@ func (x *VolumeConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolumePluginDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1136 := z.EncBinary() - _ = yym1136 + yym1198 := z.EncBinary() + _ = yym1198 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FlexVolumePluginDir)) } } - if yyr1124 || yy2arr1124 { + if yyr1186 || yy2arr1186 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -9756,25 +10275,25 @@ func (x *VolumeConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1137 := z.DecBinary() - _ = yym1137 + yym1199 := z.DecBinary() + _ = yym1199 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1138 := r.ContainerType() - if yyct1138 == codecSelferValueTypeMap1234 { - yyl1138 := r.ReadMapStart() - if yyl1138 == 0 { + yyct1200 := r.ContainerType() + if yyct1200 == codecSelferValueTypeMap1234 { + yyl1200 := r.ReadMapStart() + if yyl1200 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1138, d) + x.codecDecodeSelfFromMap(yyl1200, d) } - } else if yyct1138 == codecSelferValueTypeArray1234 { - yyl1138 := r.ReadArrayStart() - if yyl1138 == 0 { + } else if yyct1200 == codecSelferValueTypeArray1234 { + yyl1200 := r.ReadArrayStart() + if yyl1200 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1138, d) + x.codecDecodeSelfFromArray(yyl1200, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -9786,12 +10305,12 @@ func (x *VolumeConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1139Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1139Slc - var yyhl1139 bool = l >= 0 - for yyj1139 := 0; ; yyj1139++ { - if yyhl1139 { - if yyj1139 >= l { + var yys1201Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1201Slc + var yyhl1201 bool = l >= 0 + for yyj1201 := 0; ; yyj1201++ { + if yyhl1201 { + if yyj1201 >= l { break } } else { @@ -9800,10 +10319,10 @@ func (x *VolumeConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1139Slc = r.DecodeBytes(yys1139Slc, true, true) - yys1139 := string(yys1139Slc) + yys1201Slc = r.DecodeBytes(yys1201Slc, true, true) + yys1201 := string(yys1201Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1139 { + switch yys1201 { case "enableHostPathProvisioning": if r.TryDecodeAsNil() { x.EnableHostPathProvisioning = false @@ -9820,8 +10339,8 @@ func (x *VolumeConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.PersistentVolumeRecyclerConfiguration = PersistentVolumeRecyclerConfiguration{} } else { - yyv1142 := &x.PersistentVolumeRecyclerConfiguration - yyv1142.CodecDecodeSelf(d) + yyv1204 := &x.PersistentVolumeRecyclerConfiguration + yyv1204.CodecDecodeSelf(d) } case "flexVolumePluginDir": if r.TryDecodeAsNil() { @@ -9830,9 +10349,9 @@ func (x *VolumeConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder x.FlexVolumePluginDir = string(r.DecodeString()) } default: - z.DecStructFieldNotFound(-1, yys1139) - } // end switch yys1139 - } // end for yyj1139 + z.DecStructFieldNotFound(-1, yys1201) + } // end switch yys1201 + } // end for yyj1201 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -9840,16 +10359,16 @@ func (x *VolumeConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1144 int - var yyb1144 bool - var yyhl1144 bool = l >= 0 - yyj1144++ - if yyhl1144 { - yyb1144 = yyj1144 > l + var yyj1206 int + var yyb1206 bool + var yyhl1206 bool = l >= 0 + yyj1206++ + if yyhl1206 { + yyb1206 = yyj1206 > l } else { - yyb1144 = r.CheckBreak() + yyb1206 = r.CheckBreak() } - if yyb1144 { + if yyb1206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9859,13 +10378,13 @@ func (x *VolumeConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.EnableHostPathProvisioning = bool(r.DecodeBool()) } - yyj1144++ - if yyhl1144 { - yyb1144 = yyj1144 > l + yyj1206++ + if yyhl1206 { + yyb1206 = yyj1206 > l } else { - yyb1144 = r.CheckBreak() + yyb1206 = r.CheckBreak() } - if yyb1144 { + if yyb1206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9875,13 +10394,13 @@ func (x *VolumeConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decod } else { x.EnableDynamicProvisioning = bool(r.DecodeBool()) } - yyj1144++ - if yyhl1144 { - yyb1144 = yyj1144 > l + yyj1206++ + if yyhl1206 { + yyb1206 = yyj1206 > l } else { - yyb1144 = r.CheckBreak() + yyb1206 = r.CheckBreak() } - if yyb1144 { + if yyb1206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9889,16 +10408,16 @@ func (x *VolumeConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.PersistentVolumeRecyclerConfiguration = PersistentVolumeRecyclerConfiguration{} } else { - yyv1147 := &x.PersistentVolumeRecyclerConfiguration - yyv1147.CodecDecodeSelf(d) + yyv1209 := &x.PersistentVolumeRecyclerConfiguration + yyv1209.CodecDecodeSelf(d) } - yyj1144++ - if yyhl1144 { - yyb1144 = yyj1144 > l + yyj1206++ + if yyhl1206 { + yyb1206 = yyj1206 > l } else { - yyb1144 = r.CheckBreak() + yyb1206 = r.CheckBreak() } - if yyb1144 { + if yyb1206 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -9909,17 +10428,17 @@ func (x *VolumeConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decod x.FlexVolumePluginDir = string(r.DecodeString()) } for { - yyj1144++ - if yyhl1144 { - yyb1144 = yyj1144 > l + yyj1206++ + if yyhl1206 { + yyb1206 = yyj1206 > l } else { - yyb1144 = r.CheckBreak() + yyb1206 = r.CheckBreak() } - if yyb1144 { + if yyb1206 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1144-1, "") + z.DecStructFieldNotFound(yyj1206-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -9931,33 +10450,33 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc if x == nil { r.EncodeNil() } else { - yym1149 := z.EncBinary() - _ = yym1149 + yym1211 := z.EncBinary() + _ = yym1211 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1150 := !z.EncBinary() - yy2arr1150 := z.EncBasicHandle().StructToArray - var yyq1150 [7]bool - _, _, _ = yysep1150, yyq1150, yy2arr1150 - const yyr1150 bool = false - var yynn1150 int - if yyr1150 || yy2arr1150 { + yysep1212 := !z.EncBinary() + yy2arr1212 := z.EncBasicHandle().StructToArray + var yyq1212 [7]bool + _, _, _ = yysep1212, yyq1212, yy2arr1212 + const yyr1212 bool = false + var yynn1212 int + if yyr1212 || yy2arr1212 { r.EncodeArrayStart(7) } else { - yynn1150 = 7 - for _, b := range yyq1150 { + yynn1212 = 7 + for _, b := range yyq1212 { if b { - yynn1150++ + yynn1212++ } } - r.EncodeMapStart(yynn1150) - yynn1150 = 0 + r.EncodeMapStart(yynn1212) + yynn1212 = 0 } - if yyr1150 || yy2arr1150 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1152 := z.EncBinary() - _ = yym1152 + yym1214 := z.EncBinary() + _ = yym1214 if false { } else { r.EncodeInt(int64(x.MaximumRetry)) @@ -9966,17 +10485,17 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("maximumRetry")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1153 := z.EncBinary() - _ = yym1153 + yym1215 := z.EncBinary() + _ = yym1215 if false { } else { r.EncodeInt(int64(x.MaximumRetry)) } } - if yyr1150 || yy2arr1150 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1155 := z.EncBinary() - _ = yym1155 + yym1217 := z.EncBinary() + _ = yym1217 if false { } else { r.EncodeInt(int64(x.MinimumTimeoutNFS)) @@ -9985,17 +10504,17 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minimumTimeoutNFS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1156 := z.EncBinary() - _ = yym1156 + yym1218 := z.EncBinary() + _ = yym1218 if false { } else { r.EncodeInt(int64(x.MinimumTimeoutNFS)) } } - if yyr1150 || yy2arr1150 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1158 := z.EncBinary() - _ = yym1158 + yym1220 := z.EncBinary() + _ = yym1220 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathNFS)) @@ -10004,17 +10523,17 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podTemplateFilePathNFS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1159 := z.EncBinary() - _ = yym1159 + yym1221 := z.EncBinary() + _ = yym1221 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathNFS)) } } - if yyr1150 || yy2arr1150 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1161 := z.EncBinary() - _ = yym1161 + yym1223 := z.EncBinary() + _ = yym1223 if false { } else { r.EncodeInt(int64(x.IncrementTimeoutNFS)) @@ -10023,17 +10542,17 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("incrementTimeoutNFS")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1162 := z.EncBinary() - _ = yym1162 + yym1224 := z.EncBinary() + _ = yym1224 if false { } else { r.EncodeInt(int64(x.IncrementTimeoutNFS)) } } - if yyr1150 || yy2arr1150 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1164 := z.EncBinary() - _ = yym1164 + yym1226 := z.EncBinary() + _ = yym1226 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathHostPath)) @@ -10042,17 +10561,17 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podTemplateFilePathHostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1165 := z.EncBinary() - _ = yym1165 + yym1227 := z.EncBinary() + _ = yym1227 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodTemplateFilePathHostPath)) } } - if yyr1150 || yy2arr1150 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1167 := z.EncBinary() - _ = yym1167 + yym1229 := z.EncBinary() + _ = yym1229 if false { } else { r.EncodeInt(int64(x.MinimumTimeoutHostPath)) @@ -10061,17 +10580,17 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minimumTimeoutHostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1168 := z.EncBinary() - _ = yym1168 + yym1230 := z.EncBinary() + _ = yym1230 if false { } else { r.EncodeInt(int64(x.MinimumTimeoutHostPath)) } } - if yyr1150 || yy2arr1150 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1170 := z.EncBinary() - _ = yym1170 + yym1232 := z.EncBinary() + _ = yym1232 if false { } else { r.EncodeInt(int64(x.IncrementTimeoutHostPath)) @@ -10080,14 +10599,14 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecEncodeSelf(e *codec1978.Enc z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("incrementTimeoutHostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1171 := z.EncBinary() - _ = yym1171 + yym1233 := z.EncBinary() + _ = yym1233 if false { } else { r.EncodeInt(int64(x.IncrementTimeoutHostPath)) } } - if yyr1150 || yy2arr1150 { + if yyr1212 || yy2arr1212 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10100,25 +10619,25 @@ func (x *PersistentVolumeRecyclerConfiguration) CodecDecodeSelf(d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1172 := z.DecBinary() - _ = yym1172 + yym1234 := z.DecBinary() + _ = yym1234 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1173 := r.ContainerType() - if yyct1173 == codecSelferValueTypeMap1234 { - yyl1173 := r.ReadMapStart() - if yyl1173 == 0 { + yyct1235 := r.ContainerType() + if yyct1235 == codecSelferValueTypeMap1234 { + yyl1235 := r.ReadMapStart() + if yyl1235 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1173, d) + x.codecDecodeSelfFromMap(yyl1235, d) } - } else if yyct1173 == codecSelferValueTypeArray1234 { - yyl1173 := r.ReadArrayStart() - if yyl1173 == 0 { + } else if yyct1235 == codecSelferValueTypeArray1234 { + yyl1235 := r.ReadArrayStart() + if yyl1235 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1173, d) + x.codecDecodeSelfFromArray(yyl1235, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10130,12 +10649,12 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromMap(l int, d var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1174Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1174Slc - var yyhl1174 bool = l >= 0 - for yyj1174 := 0; ; yyj1174++ { - if yyhl1174 { - if yyj1174 >= l { + var yys1236Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1236Slc + var yyhl1236 bool = l >= 0 + for yyj1236 := 0; ; yyj1236++ { + if yyhl1236 { + if yyj1236 >= l { break } } else { @@ -10144,10 +10663,10 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromMap(l int, d } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1174Slc = r.DecodeBytes(yys1174Slc, true, true) - yys1174 := string(yys1174Slc) + yys1236Slc = r.DecodeBytes(yys1236Slc, true, true) + yys1236 := string(yys1236Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1174 { + switch yys1236 { case "maximumRetry": if r.TryDecodeAsNil() { x.MaximumRetry = 0 @@ -10191,9 +10710,9 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromMap(l int, d x.IncrementTimeoutHostPath = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys1174) - } // end switch yys1174 - } // end for yyj1174 + z.DecStructFieldNotFound(-1, yys1236) + } // end switch yys1236 + } // end for yyj1236 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10201,16 +10720,16 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1182 int - var yyb1182 bool - var yyhl1182 bool = l >= 0 - yyj1182++ - if yyhl1182 { - yyb1182 = yyj1182 > l + var yyj1244 int + var yyb1244 bool + var yyhl1244 bool = l >= 0 + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb1182 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb1182 { + if yyb1244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10220,13 +10739,13 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, } else { x.MaximumRetry = int32(r.DecodeInt(32)) } - yyj1182++ - if yyhl1182 { - yyb1182 = yyj1182 > l + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb1182 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb1182 { + if yyb1244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10236,13 +10755,13 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, } else { x.MinimumTimeoutNFS = int32(r.DecodeInt(32)) } - yyj1182++ - if yyhl1182 { - yyb1182 = yyj1182 > l + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb1182 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb1182 { + if yyb1244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10252,13 +10771,13 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, } else { x.PodTemplateFilePathNFS = string(r.DecodeString()) } - yyj1182++ - if yyhl1182 { - yyb1182 = yyj1182 > l + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb1182 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb1182 { + if yyb1244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10268,13 +10787,13 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, } else { x.IncrementTimeoutNFS = int32(r.DecodeInt(32)) } - yyj1182++ - if yyhl1182 { - yyb1182 = yyj1182 > l + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb1182 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb1182 { + if yyb1244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10284,13 +10803,13 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, } else { x.PodTemplateFilePathHostPath = string(r.DecodeString()) } - yyj1182++ - if yyhl1182 { - yyb1182 = yyj1182 > l + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb1182 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb1182 { + if yyb1244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10300,13 +10819,13 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, } else { x.MinimumTimeoutHostPath = int32(r.DecodeInt(32)) } - yyj1182++ - if yyhl1182 { - yyb1182 = yyj1182 > l + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb1182 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb1182 { + if yyb1244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10317,17 +10836,17 @@ func (x *PersistentVolumeRecyclerConfiguration) codecDecodeSelfFromArray(l int, x.IncrementTimeoutHostPath = int32(r.DecodeInt(32)) } for { - yyj1182++ - if yyhl1182 { - yyb1182 = yyj1182 > l + yyj1244++ + if yyhl1244 { + yyb1244 = yyj1244 > l } else { - yyb1182 = r.CheckBreak() + yyb1244 = r.CheckBreak() } - if yyb1182 { + if yyb1244 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1182-1, "") + z.DecStructFieldNotFound(yyj1244-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10337,20 +10856,20 @@ func (x codecSelfer1234) encconfig_ConfigurationMap(v pkg2_config.ConfigurationM z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeMapStart(len(v)) - for yyk1190, yyv1190 := range v { + for yyk1252, yyv1252 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) - yym1191 := z.EncBinary() - _ = yym1191 + yym1253 := z.EncBinary() + _ = yym1253 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyk1190)) + r.EncodeString(codecSelferC_UTF81234, string(yyk1252)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1192 := z.EncBinary() - _ = yym1192 + yym1254 := z.EncBinary() + _ = yym1254 if false { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv1190)) + r.EncodeString(codecSelferC_UTF81234, string(yyv1252)) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -10361,63 +10880,63 @@ func (x codecSelfer1234) decconfig_ConfigurationMap(v *pkg2_config.Configuration z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1193 := *v - yyl1193 := r.ReadMapStart() - yybh1193 := z.DecBasicHandle() - if yyv1193 == nil { - yyrl1193, _ := z.DecInferLen(yyl1193, yybh1193.MaxInitLen, 32) - yyv1193 = make(map[string]string, yyrl1193) - *v = yyv1193 + yyv1255 := *v + yyl1255 := r.ReadMapStart() + yybh1255 := z.DecBasicHandle() + if yyv1255 == nil { + yyrl1255, _ := z.DecInferLen(yyl1255, yybh1255.MaxInitLen, 32) + yyv1255 = make(map[string]string, yyrl1255) + *v = yyv1255 } - var yymk1193 string - var yymv1193 string - var yymg1193 bool - if yybh1193.MapValueReset { + var yymk1255 string + var yymv1255 string + var yymg1255 bool + if yybh1255.MapValueReset { } - if yyl1193 > 0 { - for yyj1193 := 0; yyj1193 < yyl1193; yyj1193++ { + if yyl1255 > 0 { + for yyj1255 := 0; yyj1255 < yyl1255; yyj1255++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1193 = "" + yymk1255 = "" } else { - yymk1193 = string(r.DecodeString()) + yymk1255 = string(r.DecodeString()) } - if yymg1193 { - yymv1193 = yyv1193[yymk1193] + if yymg1255 { + yymv1255 = yyv1255[yymk1255] } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1193 = "" + yymv1255 = "" } else { - yymv1193 = string(r.DecodeString()) + yymv1255 = string(r.DecodeString()) } - if yyv1193 != nil { - yyv1193[yymk1193] = yymv1193 + if yyv1255 != nil { + yyv1255[yymk1255] = yymv1255 } } - } else if yyl1193 < 0 { - for yyj1193 := 0; !r.CheckBreak(); yyj1193++ { + } else if yyl1255 < 0 { + for yyj1255 := 0; !r.CheckBreak(); yyj1255++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { - yymk1193 = "" + yymk1255 = "" } else { - yymk1193 = string(r.DecodeString()) + yymk1255 = string(r.DecodeString()) } - if yymg1193 { - yymv1193 = yyv1193[yymk1193] + if yymg1255 { + yymv1255 = yyv1255[yymk1255] } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { - yymv1193 = "" + yymv1255 = "" } else { - yymv1193 = string(r.DecodeString()) + yymv1255 = string(r.DecodeString()) } - if yyv1193 != nil { - yyv1193[yymk1193] = yymv1193 + if yyv1255 != nil { + yyv1255[yymk1255] = yymv1255 } } } // else len==0: TODO: Should we clear map entries? diff --git a/1.4/pkg/apis/componentconfig/types.go b/1.4/pkg/apis/componentconfig/types.go index a71ff1e7..f64c30a5 100644 --- a/1.4/pkg/apis/componentconfig/types.go +++ b/1.4/pkg/apis/componentconfig/types.go @@ -66,7 +66,7 @@ type KubeProxyConfiguration struct { // Must be greater than 0. Only applicable for proxyMode=userspace. UDPIdleTimeout unversioned.Duration `json:"udpTimeoutMilliseconds"` // conntrackMax is the maximum number of NAT connections to track (0 to - // leave as-is). This takes precendence over conntrackMaxPerCore. + // leave as-is). This takes precedence over conntrackMaxPerCore. ConntrackMax int32 `json:"conntrackMax"` // conntrackMaxPerCore is the maximum number of NAT connections to track // per CPU core (0 to leave as-is). This value is only considered if @@ -233,7 +233,7 @@ type KubeletConfiguration struct { // status to master. Note: be cautious when changing the constant, it // must work with nodeMonitorGracePeriod in nodecontroller. NodeStatusUpdateFrequency unversioned.Duration `json:"nodeStatusUpdateFrequency"` - // imageMinimumGCAge is the minimum age for a unused image before it is + // imageMinimumGCAge is the minimum age for an unused image before it is // garbage collected. ImageMinimumGCAge unversioned.Duration `json:"imageMinimumGCAge"` // imageGCHighThresholdPercent is the percent of disk usage after which @@ -252,6 +252,10 @@ type KubeletConfiguration struct { // networkPluginName is the name of the network plugin to be invoked for // various events in kubelet/pod lifecycle NetworkPluginName string `json:"networkPluginName"` + // networkPluginMTU is the MTU to be passed to the network plugin, + // and overrides the default MTU for cases where it cannot be automatically + // computed (such as IPSEC). + NetworkPluginMTU int32 `json:"networkPluginMTU"` // networkPluginDir is the full path of the directory in which to search // for network plugins NetworkPluginDir string `json:"networkPluginDir"` @@ -279,6 +283,10 @@ type KubeletConfiguration struct { CgroupRoot string `json:"cgroupRoot,omitempty"` // containerRuntime is the container runtime to use. ContainerRuntime string `json:"containerRuntime"` + // remoteRuntimeEndpoint is the endpoint of remote runtime service + RemoteRuntimeEndpoint string `json:"remoteRuntimeEndpoint"` + // remoteImageEndpoint is the endpoint of remote image service + RemoteImageEndpoint string `json:"remoteImageEndpoint"` // runtimeRequestTimeout is the timeout for all runtime requests except long running // requests - pull, logs, exec and attach. RuntimeRequestTimeout unversioned.Duration `json:"runtimeRequestTimeout,omitempty"` @@ -399,6 +407,20 @@ type KubeletConfiguration struct { KubeReserved utilconfig.ConfigurationMap `json:"kubeReserved"` // Default behaviour for kernel tuning ProtectKernelDefaults bool `json:"protectKernelDefaults"` + // If true, Kubelet ensures a set of iptables rules are present on host. + // These rules will serve as utility for various components, e.g. kube-proxy. + // The rules will be created based on IPTablesMasqueradeBit and IPTablesDropBit. + MakeIPTablesUtilChains bool `json:"makeIPTablesUtilChains"` + // iptablesMasqueradeBit is the bit of the iptables fwmark space to use for SNAT + // Values must be within the range [0, 31]. + // Warning: Please match the value of corresponding parameter in kube-proxy + // TODO: clean up IPTablesMasqueradeBit in kube-proxy + IPTablesMasqueradeBit int32 `json:"iptablesMasqueradeBit"` + // iptablesDropBit is the bit of the iptables fwmark space to use for dropping packets. Kubelet will ensure iptables mark and drop rules. + // Values must be within the range [0, 31]. Must be different from IPTablesMasqueradeBit + IPTablesDropBit int32 `json:"iptablesDropBit"` + // Whitelist of unsafe sysctls or sysctl patterns (ending in *). + AllowedUnsafeSysctls []string `json:"experimentalAllowedUnsafeSysctls,omitempty"` } type KubeSchedulerConfiguration struct { @@ -547,7 +569,7 @@ type KubeControllerManagerConfiguration struct { DeploymentControllerSyncPeriod unversioned.Duration `json:"deploymentControllerSyncPeriod"` // podEvictionTimeout is the grace period for deleting pods on failed nodes. PodEvictionTimeout unversioned.Duration `json:"podEvictionTimeout"` - // deletingPodsQps is the number of nodes per second on which pods are deleted in + // DEPRECATED: deletingPodsQps is the number of nodes per second on which pods are deleted in // case of node failure. DeletingPodsQps float32 `json:"deletingPodsQps"` // DEPRECATED: deletingPodsBurst is the number of nodes on which pods are bursty deleted in @@ -575,6 +597,12 @@ type KubeControllerManagerConfiguration struct { // clusterSigningCertFile is the filename containing a PEM-encoded // RSA or ECDSA private key used to issue cluster-scoped certificates ClusterSigningKeyFile string `json:"clusterSigningKeyFile"` + // approveAllKubeletCSRs tells the CSR controller to approve all CSRs originating + // from the kubelet bootstrapping group automatically. + // WARNING: this grants all users with access to the certificates API group + // the ability to create credentials for any user that has access to the boostrapping + // user's credentials. + ApproveAllKubeletCSRsForGroup string `json:"approveAllKubeletCSRsForGroup"` // enableProfiling enables profiling via web interface host:port/debug/pprof/ EnableProfiling bool `json:"enableProfiling"` // clusterName is the instance prefix for the cluster. @@ -613,6 +641,15 @@ type KubeControllerManagerConfiguration struct { // concurrentGCSyncs is the number of garbage collector workers that are // allowed to sync concurrently. ConcurrentGCSyncs int32 `json:"concurrentGCSyncs"` + // nodeEvictionRate is the number of nodes per second on which pods are deleted in case of node failure when a zone is healthy + NodeEvictionRate float32 `json:"nodeEvictionRate"` + // secondaryNodeEvictionRate is the number of nodes per second on which pods are deleted in case of node failure when a zone is unhealty + SecondaryNodeEvictionRate float32 `json:"secondaryNodeEvictionRate"` + // secondaryNodeEvictionRate is implicitly overridden to 0 for clusters smaller than or equal to largeClusterSizeThreshold + LargeClusterSizeThreshold int32 `json:"largeClusterSizeThreshold"` + // Zone is treated as unhealthy in nodeEvictionRate and secondaryNodeEvictionRate when at least + // unhealthyZoneThreshold (no less than 3) of Nodes in the zone are NotReady + UnhealthyZoneThreshold float32 `json:"unhealthyZoneThreshold"` } // VolumeConfiguration contains *all* enumerated flags meant to configure all volume diff --git a/1.4/pkg/apis/componentconfig/v1alpha1/defaults.go b/1.4/pkg/apis/componentconfig/v1alpha1/defaults.go index f3657d00..3c889d91 100644 --- a/1.4/pkg/apis/componentconfig/v1alpha1/defaults.go +++ b/1.4/pkg/apis/componentconfig/v1alpha1/defaults.go @@ -43,6 +43,9 @@ const ( defaultRktAPIServiceEndpoint = "localhost:15441" AutoDetectCloudProvider = "auto-detect" + + defaultIPTablesMasqueradeBit = 14 + defaultIPTablesDropBit = 15 ) var zeroDuration = unversioned.Duration{} @@ -337,6 +340,17 @@ func SetDefaults_KubeletConfiguration(obj *KubeletConfiguration) { if obj.KubeReserved == nil { obj.KubeReserved = make(map[string]string) } + if obj.MakeIPTablesUtilChains == nil { + obj.MakeIPTablesUtilChains = boolVar(true) + } + if obj.IPTablesMasqueradeBit == nil { + temp := int32(defaultIPTablesMasqueradeBit) + obj.IPTablesMasqueradeBit = &temp + } + if obj.IPTablesDropBit == nil { + temp := int32(defaultIPTablesDropBit) + obj.IPTablesDropBit = &temp + } } func boolVar(b bool) *bool { diff --git a/1.4/pkg/apis/componentconfig/v1alpha1/types.go b/1.4/pkg/apis/componentconfig/v1alpha1/types.go index 59ad2af6..adb6d9b7 100644 --- a/1.4/pkg/apis/componentconfig/v1alpha1/types.go +++ b/1.4/pkg/apis/componentconfig/v1alpha1/types.go @@ -63,7 +63,7 @@ type KubeProxyConfiguration struct { // Must be greater than 0. Only applicable for proxyMode=userspace. UDPIdleTimeout unversioned.Duration `json:"udpTimeoutMilliseconds"` // conntrackMax is the maximum number of NAT connections to track (0 to - // leave as-is). This takes precendence over conntrackMaxPerCore. + // leave as-is). This takes precedence over conntrackMaxPerCore. ConntrackMax int32 `json:"conntrackMax"` // conntrackMaxPerCore is the maximum number of NAT connections to track // per CPU core (0 to leave as-is). This value is only considered if @@ -287,7 +287,7 @@ type KubeletConfiguration struct { // status to master. Note: be cautious when changing the constant, it // must work with nodeMonitorGracePeriod in nodecontroller. NodeStatusUpdateFrequency unversioned.Duration `json:"nodeStatusUpdateFrequency"` - // imageMinimumGCAge is the minimum age for a unused image before it is + // imageMinimumGCAge is the minimum age for an unused image before it is // garbage collected. ImageMinimumGCAge unversioned.Duration `json:"imageMinimumGCAge"` // imageGCHighThresholdPercent is the percent of disk usage after which @@ -310,6 +310,10 @@ type KubeletConfiguration struct { // networkPluginDir is the full path of the directory in which to search // for network plugins NetworkPluginDir string `json:"networkPluginDir"` + // networkPluginMTU is the MTU to be passed to the network plugin, + // and overrides the default MTU for cases where it cannot be automatically + // computed (such as IPSEC). + NetworkPluginMTU int32 `json:"networkPluginMTU"` // volumePluginDir is the full path of the directory in which to search // for additional third party volume plugins VolumePluginDir string `json:"volumePluginDir"` @@ -334,6 +338,10 @@ type KubeletConfiguration struct { CgroupsPerQOS *bool `json:"CgroupsPerQOS,omitempty"` // containerRuntime is the container runtime to use. ContainerRuntime string `json:"containerRuntime"` + // remoteRuntimeEndpoint is the endpoint of remote runtime service + RemoteRuntimeEndpoint string `json:"remoteRuntimeEndpoint"` + // remoteImageEndpoint is the endpoint of remote image service + RemoteImageEndpoint string `json:"remoteImageEndpoint"` // runtimeRequestTimeout is the timeout for all runtime requests except long running // requests - pull, logs, exec and attach. RuntimeRequestTimeout unversioned.Duration `json:"runtimeRequestTimeout"` @@ -454,4 +462,19 @@ type KubeletConfiguration struct { KubeReserved map[string]string `json:"kubeReserved"` // Default behaviour for kernel tuning ProtectKernelDefaults bool `json:"protectKernelDefaults"` + // If true, Kubelet ensures a set of iptables rules are present on host. + // These rules will serve as utility rules for various components, e.g. KubeProxy. + // The rules will be created based on IPTablesMasqueradeBit and IPTablesDropBit. + MakeIPTablesUtilChains *bool `json:"makeIPTablesUtilChains"` + // iptablesMasqueradeBit is the bit of the iptables fwmark space to mark for SNAT + // Values must be within the range [0, 31]. Must be different from other mark bits. + // Warning: Please match the value of corresponding parameter in kube-proxy + // TODO: clean up IPTablesMasqueradeBit in kube-proxy + IPTablesMasqueradeBit *int32 `json:"iptablesMasqueradeBit"` + // iptablesDropBit is the bit of the iptables fwmark space to mark for dropping packets. + // Values must be within the range [0, 31]. Must be different from other mark bits. + IPTablesDropBit *int32 `json:"iptablesDropBit"` + // Whitelist of unsafe sysctls or sysctl patterns (ending in *). Use these at your own risk. + // Resource isolation might be lacking and pod might influence each other on the same node. + AllowedUnsafeSysctls []string `json:"allowedUnsafeSysctls,omitempty"` } diff --git a/1.4/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go b/1.4/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go index 8f8bf59a..468941a4 100644 --- a/1.4/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go +++ b/1.4/pkg/apis/componentconfig/v1alpha1/zz_generated.conversion.go @@ -233,6 +233,7 @@ func autoConvert_v1alpha1_KubeletConfiguration_To_componentconfig_KubeletConfigu out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod out.NetworkPluginName = in.NetworkPluginName out.NetworkPluginDir = in.NetworkPluginDir + out.NetworkPluginMTU = in.NetworkPluginMTU out.VolumePluginDir = in.VolumePluginDir out.CloudProvider = in.CloudProvider out.CloudConfigFile = in.CloudConfigFile @@ -244,6 +245,8 @@ func autoConvert_v1alpha1_KubeletConfiguration_To_componentconfig_KubeletConfigu return err } out.ContainerRuntime = in.ContainerRuntime + out.RemoteRuntimeEndpoint = in.RemoteRuntimeEndpoint + out.RemoteImageEndpoint = in.RemoteImageEndpoint out.RuntimeRequestTimeout = in.RuntimeRequestTimeout out.RktPath = in.RktPath out.RktAPIEndpoint = in.RktAPIEndpoint @@ -320,6 +323,16 @@ func autoConvert_v1alpha1_KubeletConfiguration_To_componentconfig_KubeletConfigu out.KubeReserved = nil } out.ProtectKernelDefaults = in.ProtectKernelDefaults + if err := api.Convert_Pointer_bool_To_bool(&in.MakeIPTablesUtilChains, &out.MakeIPTablesUtilChains, s); err != nil { + return err + } + if err := api.Convert_Pointer_int32_To_int32(&in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit, s); err != nil { + return err + } + if err := api.Convert_Pointer_int32_To_int32(&in.IPTablesDropBit, &out.IPTablesDropBit, s); err != nil { + return err + } + out.AllowedUnsafeSysctls = in.AllowedUnsafeSysctls return nil } @@ -397,6 +410,7 @@ func autoConvert_componentconfig_KubeletConfiguration_To_v1alpha1_KubeletConfigu out.LowDiskSpaceThresholdMB = in.LowDiskSpaceThresholdMB out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod out.NetworkPluginName = in.NetworkPluginName + out.NetworkPluginMTU = in.NetworkPluginMTU out.NetworkPluginDir = in.NetworkPluginDir out.VolumePluginDir = in.VolumePluginDir out.CloudProvider = in.CloudProvider @@ -409,6 +423,8 @@ func autoConvert_componentconfig_KubeletConfiguration_To_v1alpha1_KubeletConfigu out.SystemCgroups = in.SystemCgroups out.CgroupRoot = in.CgroupRoot out.ContainerRuntime = in.ContainerRuntime + out.RemoteRuntimeEndpoint = in.RemoteRuntimeEndpoint + out.RemoteImageEndpoint = in.RemoteImageEndpoint out.RuntimeRequestTimeout = in.RuntimeRequestTimeout out.RktPath = in.RktPath out.RktAPIEndpoint = in.RktAPIEndpoint @@ -485,6 +501,16 @@ func autoConvert_componentconfig_KubeletConfiguration_To_v1alpha1_KubeletConfigu out.KubeReserved = nil } out.ProtectKernelDefaults = in.ProtectKernelDefaults + if err := api.Convert_bool_To_Pointer_bool(&in.MakeIPTablesUtilChains, &out.MakeIPTablesUtilChains, s); err != nil { + return err + } + if err := api.Convert_int32_To_Pointer_int32(&in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit, s); err != nil { + return err + } + if err := api.Convert_int32_To_Pointer_int32(&in.IPTablesDropBit, &out.IPTablesDropBit, s); err != nil { + return err + } + out.AllowedUnsafeSysctls = in.AllowedUnsafeSysctls return nil } diff --git a/1.4/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go b/1.4/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go index 56073705..22aa9c8e 100644 --- a/1.4/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go +++ b/1.4/pkg/apis/componentconfig/v1alpha1/zz_generated.deepcopy.go @@ -239,6 +239,7 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c * out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod out.NetworkPluginName = in.NetworkPluginName out.NetworkPluginDir = in.NetworkPluginDir + out.NetworkPluginMTU = in.NetworkPluginMTU out.VolumePluginDir = in.VolumePluginDir out.CloudProvider = in.CloudProvider out.CloudConfigFile = in.CloudConfigFile @@ -254,6 +255,8 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c * out.CgroupsPerQOS = nil } out.ContainerRuntime = in.ContainerRuntime + out.RemoteRuntimeEndpoint = in.RemoteRuntimeEndpoint + out.RemoteImageEndpoint = in.RemoteImageEndpoint out.RuntimeRequestTimeout = in.RuntimeRequestTimeout out.RktPath = in.RktPath out.RktAPIEndpoint = in.RktAPIEndpoint @@ -378,6 +381,34 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c * out.KubeReserved = nil } out.ProtectKernelDefaults = in.ProtectKernelDefaults + if in.MakeIPTablesUtilChains != nil { + in, out := &in.MakeIPTablesUtilChains, &out.MakeIPTablesUtilChains + *out = new(bool) + **out = **in + } else { + out.MakeIPTablesUtilChains = nil + } + if in.IPTablesMasqueradeBit != nil { + in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit + *out = new(int32) + **out = **in + } else { + out.IPTablesMasqueradeBit = nil + } + if in.IPTablesDropBit != nil { + in, out := &in.IPTablesDropBit, &out.IPTablesDropBit + *out = new(int32) + **out = **in + } else { + out.IPTablesDropBit = nil + } + if in.AllowedUnsafeSysctls != nil { + in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.AllowedUnsafeSysctls = nil + } return nil } } diff --git a/1.4/pkg/apis/componentconfig/zz_generated.deepcopy.go b/1.4/pkg/apis/componentconfig/zz_generated.deepcopy.go index 79748f87..aeb78ba8 100644 --- a/1.4/pkg/apis/componentconfig/zz_generated.deepcopy.go +++ b/1.4/pkg/apis/componentconfig/zz_generated.deepcopy.go @@ -103,6 +103,7 @@ func DeepCopy_componentconfig_KubeControllerManagerConfiguration(in interface{}, out.ServiceAccountKeyFile = in.ServiceAccountKeyFile out.ClusterSigningCertFile = in.ClusterSigningCertFile out.ClusterSigningKeyFile = in.ClusterSigningKeyFile + out.ApproveAllKubeletCSRsForGroup = in.ApproveAllKubeletCSRsForGroup out.EnableProfiling = in.EnableProfiling out.ClusterName = in.ClusterName out.ClusterCIDR = in.ClusterCIDR @@ -119,6 +120,10 @@ func DeepCopy_componentconfig_KubeControllerManagerConfiguration(in interface{}, out.ControllerStartInterval = in.ControllerStartInterval out.EnableGarbageCollector = in.EnableGarbageCollector out.ConcurrentGCSyncs = in.ConcurrentGCSyncs + out.NodeEvictionRate = in.NodeEvictionRate + out.SecondaryNodeEvictionRate = in.SecondaryNodeEvictionRate + out.LargeClusterSizeThreshold = in.LargeClusterSizeThreshold + out.UnhealthyZoneThreshold = in.UnhealthyZoneThreshold return nil } } @@ -252,6 +257,7 @@ func DeepCopy_componentconfig_KubeletConfiguration(in interface{}, out interface out.LowDiskSpaceThresholdMB = in.LowDiskSpaceThresholdMB out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod out.NetworkPluginName = in.NetworkPluginName + out.NetworkPluginMTU = in.NetworkPluginMTU out.NetworkPluginDir = in.NetworkPluginDir out.VolumePluginDir = in.VolumePluginDir out.CloudProvider = in.CloudProvider @@ -262,6 +268,8 @@ func DeepCopy_componentconfig_KubeletConfiguration(in interface{}, out interface out.SystemCgroups = in.SystemCgroups out.CgroupRoot = in.CgroupRoot out.ContainerRuntime = in.ContainerRuntime + out.RemoteRuntimeEndpoint = in.RemoteRuntimeEndpoint + out.RemoteImageEndpoint = in.RemoteImageEndpoint out.RuntimeRequestTimeout = in.RuntimeRequestTimeout out.RktPath = in.RktPath out.RktAPIEndpoint = in.RktAPIEndpoint @@ -326,6 +334,16 @@ func DeepCopy_componentconfig_KubeletConfiguration(in interface{}, out interface out.KubeReserved = nil } out.ProtectKernelDefaults = in.ProtectKernelDefaults + out.MakeIPTablesUtilChains = in.MakeIPTablesUtilChains + out.IPTablesMasqueradeBit = in.IPTablesMasqueradeBit + out.IPTablesDropBit = in.IPTablesDropBit + if in.AllowedUnsafeSysctls != nil { + in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls + *out = make([]string, len(*in)) + copy(*out, *in) + } else { + out.AllowedUnsafeSysctls = nil + } return nil } } diff --git a/1.4/pkg/apis/extensions/helpers.go b/1.4/pkg/apis/extensions/helpers.go new file mode 100644 index 00000000..27d3e23a --- /dev/null +++ b/1.4/pkg/apis/extensions/helpers.go @@ -0,0 +1,37 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package extensions + +import ( + "strings" +) + +// SysctlsFromPodSecurityPolicyAnnotation parses an annotation value of the key +// SysctlsSecurityPolocyAnnotationKey into a slice of sysctls. An empty slice +// is returned if annotation is the empty string. +func SysctlsFromPodSecurityPolicyAnnotation(annotation string) ([]string, error) { + if len(annotation) == 0 { + return []string{}, nil + } + + return strings.Split(annotation, ","), nil +} + +// PodAnnotationsFromSysctls creates an annotation value for a slice of Sysctls. +func PodAnnotationsFromSysctls(sysctls []string) string { + return strings.Join(sysctls, ",") +} diff --git a/1.4/pkg/apis/extensions/register.go b/1.4/pkg/apis/extensions/register.go index 701b68a2..84927998 100644 --- a/1.4/pkg/apis/extensions/register.go +++ b/1.4/pkg/apis/extensions/register.go @@ -30,12 +30,12 @@ const GroupName = "extensions" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} -// Kind takes an unqualified kind and returns back a Group qualified GroupKind +// Kind takes an unqualified kind and returns a Group qualified GroupKind func Kind(kind string) unversioned.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() } -// Resource takes an unqualified resource and returns back a Group qualified GroupResource +// Resource takes an unqualified resource and returns a Group qualified GroupResource func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } @@ -68,6 +68,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { &Ingress{}, &IngressList{}, &api.ListOptions{}, + &api.DeleteOptions{}, &ReplicaSet{}, &ReplicaSetList{}, &api.ExportOptions{}, diff --git a/1.4/pkg/apis/extensions/types.generated.go b/1.4/pkg/apis/extensions/types.generated.go index 2c7289c5..aa306f2c 100644 --- a/1.4/pkg/apis/extensions/types.generated.go +++ b/1.4/pkg/apis/extensions/types.generated.go @@ -10660,14 +10660,15 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep881 := !z.EncBinary() yy2arr881 := z.EncBasicHandle().StructToArray - var yyq881 [3]bool + var yyq881 [4]bool _, _, _ = yysep881, yyq881, yy2arr881 const yyr881 bool = false yyq881[1] = x.FullyLabeledReplicas != 0 - yyq881[2] = x.ObservedGeneration != 0 + yyq881[2] = x.ReadyReplicas != 0 + yyq881[3] = x.ObservedGeneration != 0 var yynn881 int if yyr881 || yy2arr881 { - r.EncodeArrayStart(3) + r.EncodeArrayStart(4) } else { yynn881 = 1 for _, b := range yyq881 { @@ -10729,7 +10730,7 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym889 if false { } else { - r.EncodeInt(int64(x.ObservedGeneration)) + r.EncodeInt(int64(x.ReadyReplicas)) } } else { r.EncodeInt(0) @@ -10737,11 +10738,36 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { } else { if yyq881[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) + r.EncodeString(codecSelferC_UTF81234, string("readyReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym890 := z.EncBinary() _ = yym890 if false { + } else { + r.EncodeInt(int64(x.ReadyReplicas)) + } + } + } + if yyr881 || yy2arr881 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq881[3] { + yym892 := z.EncBinary() + _ = yym892 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq881[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym893 := z.EncBinary() + _ = yym893 + if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } @@ -10760,25 +10786,25 @@ func (x *ReplicaSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym891 := z.DecBinary() - _ = yym891 + yym894 := z.DecBinary() + _ = yym894 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct892 := r.ContainerType() - if yyct892 == codecSelferValueTypeMap1234 { - yyl892 := r.ReadMapStart() - if yyl892 == 0 { + yyct895 := r.ContainerType() + if yyct895 == codecSelferValueTypeMap1234 { + yyl895 := r.ReadMapStart() + if yyl895 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl892, d) + x.codecDecodeSelfFromMap(yyl895, d) } - } else if yyct892 == codecSelferValueTypeArray1234 { - yyl892 := r.ReadArrayStart() - if yyl892 == 0 { + } else if yyct895 == codecSelferValueTypeArray1234 { + yyl895 := r.ReadArrayStart() + if yyl895 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl892, d) + x.codecDecodeSelfFromArray(yyl895, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -10790,12 +10816,12 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys893Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys893Slc - var yyhl893 bool = l >= 0 - for yyj893 := 0; ; yyj893++ { - if yyhl893 { - if yyj893 >= l { + var yys896Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys896Slc + var yyhl896 bool = l >= 0 + for yyj896 := 0; ; yyj896++ { + if yyhl896 { + if yyj896 >= l { break } } else { @@ -10804,10 +10830,10 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys893Slc = r.DecodeBytes(yys893Slc, true, true) - yys893 := string(yys893Slc) + yys896Slc = r.DecodeBytes(yys896Slc, true, true) + yys896 := string(yys896Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys893 { + switch yys896 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -10820,6 +10846,12 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } + case "readyReplicas": + if r.TryDecodeAsNil() { + x.ReadyReplicas = 0 + } else { + x.ReadyReplicas = int32(r.DecodeInt(32)) + } case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 @@ -10827,9 +10859,9 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ObservedGeneration = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys893) - } // end switch yys893 - } // end for yyj893 + z.DecStructFieldNotFound(-1, yys896) + } // end switch yys896 + } // end for yyj896 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -10837,16 +10869,16 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj897 int - var yyb897 bool - var yyhl897 bool = l >= 0 - yyj897++ - if yyhl897 { - yyb897 = yyj897 > l + var yyj901 int + var yyb901 bool + var yyhl901 bool = l >= 0 + yyj901++ + if yyhl901 { + yyb901 = yyj901 > l } else { - yyb897 = r.CheckBreak() + yyb901 = r.CheckBreak() } - if yyb897 { + if yyb901 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10856,13 +10888,13 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj897++ - if yyhl897 { - yyb897 = yyj897 > l + yyj901++ + if yyhl901 { + yyb901 = yyj901 > l } else { - yyb897 = r.CheckBreak() + yyb901 = r.CheckBreak() } - if yyb897 { + if yyb901 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10872,13 +10904,29 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } - yyj897++ - if yyhl897 { - yyb897 = yyj897 > l + yyj901++ + if yyhl901 { + yyb901 = yyj901 > l } else { - yyb897 = r.CheckBreak() + yyb901 = r.CheckBreak() } - if yyb897 { + if yyb901 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadyReplicas = 0 + } else { + x.ReadyReplicas = int32(r.DecodeInt(32)) + } + yyj901++ + if yyhl901 { + yyb901 = yyj901 > l + } else { + yyb901 = r.CheckBreak() + } + if yyb901 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -10889,17 +10937,17 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ObservedGeneration = int64(r.DecodeInt(64)) } for { - yyj897++ - if yyhl897 { - yyb897 = yyj897 > l + yyj901++ + if yyhl901 { + yyb901 = yyj901 > l } else { - yyb897 = r.CheckBreak() + yyb901 = r.CheckBreak() } - if yyb897 { + if yyb901 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj897-1, "") + z.DecStructFieldNotFound(yyj901-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -10911,38 +10959,38 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym901 := z.EncBinary() - _ = yym901 + yym906 := z.EncBinary() + _ = yym906 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep902 := !z.EncBinary() - yy2arr902 := z.EncBasicHandle().StructToArray - var yyq902 [4]bool - _, _, _ = yysep902, yyq902, yy2arr902 - const yyr902 bool = false - yyq902[0] = x.Kind != "" - yyq902[1] = x.APIVersion != "" - yyq902[2] = true - yyq902[3] = true - var yynn902 int - if yyr902 || yy2arr902 { + yysep907 := !z.EncBinary() + yy2arr907 := z.EncBasicHandle().StructToArray + var yyq907 [4]bool + _, _, _ = yysep907, yyq907, yy2arr907 + const yyr907 bool = false + yyq907[0] = x.Kind != "" + yyq907[1] = x.APIVersion != "" + yyq907[2] = true + yyq907[3] = true + var yynn907 int + if yyr907 || yy2arr907 { r.EncodeArrayStart(4) } else { - yynn902 = 0 - for _, b := range yyq902 { + yynn907 = 0 + for _, b := range yyq907 { if b { - yynn902++ + yynn907++ } } - r.EncodeMapStart(yynn902) - yynn902 = 0 + r.EncodeMapStart(yynn907) + yynn907 = 0 } - if yyr902 || yy2arr902 { + if yyr907 || yy2arr907 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq902[0] { - yym904 := z.EncBinary() - _ = yym904 + if yyq907[0] { + yym909 := z.EncBinary() + _ = yym909 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -10951,23 +10999,23 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq902[0] { + if yyq907[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym905 := z.EncBinary() - _ = yym905 + yym910 := z.EncBinary() + _ = yym910 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr902 || yy2arr902 { + if yyr907 || yy2arr907 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq902[1] { - yym907 := z.EncBinary() - _ = yym907 + if yyq907[1] { + yym912 := z.EncBinary() + _ = yym912 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -10976,53 +11024,53 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq902[1] { + if yyq907[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym908 := z.EncBinary() - _ = yym908 + yym913 := z.EncBinary() + _ = yym913 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr902 || yy2arr902 { + if yyr907 || yy2arr907 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq902[2] { - yy910 := &x.ObjectMeta - yy910.CodecEncodeSelf(e) + if yyq907[2] { + yy915 := &x.ObjectMeta + yy915.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq902[2] { + if yyq907[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy911 := &x.ObjectMeta - yy911.CodecEncodeSelf(e) + yy916 := &x.ObjectMeta + yy916.CodecEncodeSelf(e) } } - if yyr902 || yy2arr902 { + if yyr907 || yy2arr907 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq902[3] { - yy913 := &x.Spec - yy913.CodecEncodeSelf(e) + if yyq907[3] { + yy918 := &x.Spec + yy918.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq902[3] { + if yyq907[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy914 := &x.Spec - yy914.CodecEncodeSelf(e) + yy919 := &x.Spec + yy919.CodecEncodeSelf(e) } } - if yyr902 || yy2arr902 { + if yyr907 || yy2arr907 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11035,25 +11083,25 @@ func (x *PodSecurityPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym915 := z.DecBinary() - _ = yym915 + yym920 := z.DecBinary() + _ = yym920 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct916 := r.ContainerType() - if yyct916 == codecSelferValueTypeMap1234 { - yyl916 := r.ReadMapStart() - if yyl916 == 0 { + yyct921 := r.ContainerType() + if yyct921 == codecSelferValueTypeMap1234 { + yyl921 := r.ReadMapStart() + if yyl921 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl916, d) + x.codecDecodeSelfFromMap(yyl921, d) } - } else if yyct916 == codecSelferValueTypeArray1234 { - yyl916 := r.ReadArrayStart() - if yyl916 == 0 { + } else if yyct921 == codecSelferValueTypeArray1234 { + yyl921 := r.ReadArrayStart() + if yyl921 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl916, d) + x.codecDecodeSelfFromArray(yyl921, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11065,12 +11113,12 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys917Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys917Slc - var yyhl917 bool = l >= 0 - for yyj917 := 0; ; yyj917++ { - if yyhl917 { - if yyj917 >= l { + var yys922Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys922Slc + var yyhl922 bool = l >= 0 + for yyj922 := 0; ; yyj922++ { + if yyhl922 { + if yyj922 >= l { break } } else { @@ -11079,10 +11127,10 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys917Slc = r.DecodeBytes(yys917Slc, true, true) - yys917 := string(yys917Slc) + yys922Slc = r.DecodeBytes(yys922Slc, true, true) + yys922 := string(yys922Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys917 { + switch yys922 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -11099,20 +11147,20 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv920 := &x.ObjectMeta - yyv920.CodecDecodeSelf(d) + yyv925 := &x.ObjectMeta + yyv925.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSecurityPolicySpec{} } else { - yyv921 := &x.Spec - yyv921.CodecDecodeSelf(d) + yyv926 := &x.Spec + yyv926.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys917) - } // end switch yys917 - } // end for yyj917 + z.DecStructFieldNotFound(-1, yys922) + } // end switch yys922 + } // end for yyj922 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11120,16 +11168,16 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj922 int - var yyb922 bool - var yyhl922 bool = l >= 0 - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l + var yyj927 int + var yyb927 bool + var yyhl927 bool = l >= 0 + yyj927++ + if yyhl927 { + yyb927 = yyj927 > l } else { - yyb922 = r.CheckBreak() + yyb927 = r.CheckBreak() } - if yyb922 { + if yyb927 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11139,13 +11187,13 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l + yyj927++ + if yyhl927 { + yyb927 = yyj927 > l } else { - yyb922 = r.CheckBreak() + yyb927 = r.CheckBreak() } - if yyb922 { + if yyb927 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11155,13 +11203,13 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l + yyj927++ + if yyhl927 { + yyb927 = yyj927 > l } else { - yyb922 = r.CheckBreak() + yyb927 = r.CheckBreak() } - if yyb922 { + if yyb927 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11169,16 +11217,16 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv925 := &x.ObjectMeta - yyv925.CodecDecodeSelf(d) + yyv930 := &x.ObjectMeta + yyv930.CodecDecodeSelf(d) } - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l + yyj927++ + if yyhl927 { + yyb927 = yyj927 > l } else { - yyb922 = r.CheckBreak() + yyb927 = r.CheckBreak() } - if yyb922 { + if yyb927 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11186,21 +11234,21 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Spec = PodSecurityPolicySpec{} } else { - yyv926 := &x.Spec - yyv926.CodecDecodeSelf(d) + yyv931 := &x.Spec + yyv931.CodecDecodeSelf(d) } for { - yyj922++ - if yyhl922 { - yyb922 = yyj922 > l + yyj927++ + if yyhl927 { + yyb927 = yyj927 > l } else { - yyb922 = r.CheckBreak() + yyb927 = r.CheckBreak() } - if yyb922 { + if yyb927 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj922-1, "") + z.DecStructFieldNotFound(yyj927-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -11212,44 +11260,44 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym927 := z.EncBinary() - _ = yym927 + yym932 := z.EncBinary() + _ = yym932 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep928 := !z.EncBinary() - yy2arr928 := z.EncBasicHandle().StructToArray - var yyq928 [14]bool - _, _, _ = yysep928, yyq928, yy2arr928 - const yyr928 bool = false - yyq928[0] = x.Privileged != false - yyq928[1] = len(x.DefaultAddCapabilities) != 0 - yyq928[2] = len(x.RequiredDropCapabilities) != 0 - yyq928[3] = len(x.AllowedCapabilities) != 0 - yyq928[4] = len(x.Volumes) != 0 - yyq928[5] = x.HostNetwork != false - yyq928[6] = len(x.HostPorts) != 0 - yyq928[7] = x.HostPID != false - yyq928[8] = x.HostIPC != false - yyq928[13] = x.ReadOnlyRootFilesystem != false - var yynn928 int - if yyr928 || yy2arr928 { + yysep933 := !z.EncBinary() + yy2arr933 := z.EncBasicHandle().StructToArray + var yyq933 [14]bool + _, _, _ = yysep933, yyq933, yy2arr933 + const yyr933 bool = false + yyq933[0] = x.Privileged != false + yyq933[1] = len(x.DefaultAddCapabilities) != 0 + yyq933[2] = len(x.RequiredDropCapabilities) != 0 + yyq933[3] = len(x.AllowedCapabilities) != 0 + yyq933[4] = len(x.Volumes) != 0 + yyq933[5] = x.HostNetwork != false + yyq933[6] = len(x.HostPorts) != 0 + yyq933[7] = x.HostPID != false + yyq933[8] = x.HostIPC != false + yyq933[13] = x.ReadOnlyRootFilesystem != false + var yynn933 int + if yyr933 || yy2arr933 { r.EncodeArrayStart(14) } else { - yynn928 = 4 - for _, b := range yyq928 { + yynn933 = 4 + for _, b := range yyq933 { if b { - yynn928++ + yynn933++ } } - r.EncodeMapStart(yynn928) - yynn928 = 0 + r.EncodeMapStart(yynn933) + yynn933 = 0 } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq928[0] { - yym930 := z.EncBinary() - _ = yym930 + if yyq933[0] { + yym935 := z.EncBinary() + _ = yym935 if false { } else { r.EncodeBool(bool(x.Privileged)) @@ -11258,26 +11306,26 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq928[0] { + if yyq933[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym931 := z.EncBinary() - _ = yym931 + yym936 := z.EncBinary() + _ = yym936 if false { } else { r.EncodeBool(bool(x.Privileged)) } } } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq928[1] { + if yyq933[1] { if x.DefaultAddCapabilities == nil { r.EncodeNil() } else { - yym933 := z.EncBinary() - _ = yym933 + yym938 := z.EncBinary() + _ = yym938 if false { } else { h.encSliceapi_Capability(([]pkg2_api.Capability)(x.DefaultAddCapabilities), e) @@ -11287,15 +11335,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq928[1] { + if yyq933[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultAddCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DefaultAddCapabilities == nil { r.EncodeNil() } else { - yym934 := z.EncBinary() - _ = yym934 + yym939 := z.EncBinary() + _ = yym939 if false { } else { h.encSliceapi_Capability(([]pkg2_api.Capability)(x.DefaultAddCapabilities), e) @@ -11303,14 +11351,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq928[2] { + if yyq933[2] { if x.RequiredDropCapabilities == nil { r.EncodeNil() } else { - yym936 := z.EncBinary() - _ = yym936 + yym941 := z.EncBinary() + _ = yym941 if false { } else { h.encSliceapi_Capability(([]pkg2_api.Capability)(x.RequiredDropCapabilities), e) @@ -11320,15 +11368,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq928[2] { + if yyq933[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDropCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDropCapabilities == nil { r.EncodeNil() } else { - yym937 := z.EncBinary() - _ = yym937 + yym942 := z.EncBinary() + _ = yym942 if false { } else { h.encSliceapi_Capability(([]pkg2_api.Capability)(x.RequiredDropCapabilities), e) @@ -11336,14 +11384,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq928[3] { + if yyq933[3] { if x.AllowedCapabilities == nil { r.EncodeNil() } else { - yym939 := z.EncBinary() - _ = yym939 + yym944 := z.EncBinary() + _ = yym944 if false { } else { h.encSliceapi_Capability(([]pkg2_api.Capability)(x.AllowedCapabilities), e) @@ -11353,15 +11401,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq928[3] { + if yyq933[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allowedCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AllowedCapabilities == nil { r.EncodeNil() } else { - yym940 := z.EncBinary() - _ = yym940 + yym945 := z.EncBinary() + _ = yym945 if false { } else { h.encSliceapi_Capability(([]pkg2_api.Capability)(x.AllowedCapabilities), e) @@ -11369,14 +11417,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq928[4] { + if yyq933[4] { if x.Volumes == nil { r.EncodeNil() } else { - yym942 := z.EncBinary() - _ = yym942 + yym947 := z.EncBinary() + _ = yym947 if false { } else { h.encSliceFSType(([]FSType)(x.Volumes), e) @@ -11386,15 +11434,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq928[4] { + if yyq933[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Volumes == nil { r.EncodeNil() } else { - yym943 := z.EncBinary() - _ = yym943 + yym948 := z.EncBinary() + _ = yym948 if false { } else { h.encSliceFSType(([]FSType)(x.Volumes), e) @@ -11402,11 +11450,11 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq928[5] { - yym945 := z.EncBinary() - _ = yym945 + if yyq933[5] { + yym950 := z.EncBinary() + _ = yym950 if false { } else { r.EncodeBool(bool(x.HostNetwork)) @@ -11415,26 +11463,26 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq928[5] { + if yyq933[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym946 := z.EncBinary() - _ = yym946 + yym951 := z.EncBinary() + _ = yym951 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq928[6] { + if yyq933[6] { if x.HostPorts == nil { r.EncodeNil() } else { - yym948 := z.EncBinary() - _ = yym948 + yym953 := z.EncBinary() + _ = yym953 if false { } else { h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) @@ -11444,15 +11492,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq928[6] { + if yyq933[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPorts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HostPorts == nil { r.EncodeNil() } else { - yym949 := z.EncBinary() - _ = yym949 + yym954 := z.EncBinary() + _ = yym954 if false { } else { h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) @@ -11460,11 +11508,11 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq928[7] { - yym951 := z.EncBinary() - _ = yym951 + if yyq933[7] { + yym956 := z.EncBinary() + _ = yym956 if false { } else { r.EncodeBool(bool(x.HostPID)) @@ -11473,23 +11521,23 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq928[7] { + if yyq933[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym952 := z.EncBinary() - _ = yym952 + yym957 := z.EncBinary() + _ = yym957 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq928[8] { - yym954 := z.EncBinary() - _ = yym954 + if yyq933[8] { + yym959 := z.EncBinary() + _ = yym959 if false { } else { r.EncodeBool(bool(x.HostIPC)) @@ -11498,67 +11546,67 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq928[8] { + if yyq933[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym955 := z.EncBinary() - _ = yym955 + yym960 := z.EncBinary() + _ = yym960 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy957 := &x.SELinux - yy957.CodecEncodeSelf(e) + yy962 := &x.SELinux + yy962.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinux")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy958 := &x.SELinux - yy958.CodecEncodeSelf(e) + yy963 := &x.SELinux + yy963.CodecEncodeSelf(e) } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy960 := &x.RunAsUser - yy960.CodecEncodeSelf(e) + yy965 := &x.RunAsUser + yy965.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy961 := &x.RunAsUser - yy961.CodecEncodeSelf(e) + yy966 := &x.RunAsUser + yy966.CodecEncodeSelf(e) } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy963 := &x.SupplementalGroups - yy963.CodecEncodeSelf(e) + yy968 := &x.SupplementalGroups + yy968.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy964 := &x.SupplementalGroups - yy964.CodecEncodeSelf(e) + yy969 := &x.SupplementalGroups + yy969.CodecEncodeSelf(e) } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy966 := &x.FSGroup - yy966.CodecEncodeSelf(e) + yy971 := &x.FSGroup + yy971.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy967 := &x.FSGroup - yy967.CodecEncodeSelf(e) + yy972 := &x.FSGroup + yy972.CodecEncodeSelf(e) } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq928[13] { - yym969 := z.EncBinary() - _ = yym969 + if yyq933[13] { + yym974 := z.EncBinary() + _ = yym974 if false { } else { r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) @@ -11567,19 +11615,19 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq928[13] { + if yyq933[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym970 := z.EncBinary() - _ = yym970 + yym975 := z.EncBinary() + _ = yym975 if false { } else { r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) } } } - if yyr928 || yy2arr928 { + if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -11592,25 +11640,25 @@ func (x *PodSecurityPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym971 := z.DecBinary() - _ = yym971 + yym976 := z.DecBinary() + _ = yym976 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct972 := r.ContainerType() - if yyct972 == codecSelferValueTypeMap1234 { - yyl972 := r.ReadMapStart() - if yyl972 == 0 { + yyct977 := r.ContainerType() + if yyct977 == codecSelferValueTypeMap1234 { + yyl977 := r.ReadMapStart() + if yyl977 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl972, d) + x.codecDecodeSelfFromMap(yyl977, d) } - } else if yyct972 == codecSelferValueTypeArray1234 { - yyl972 := r.ReadArrayStart() - if yyl972 == 0 { + } else if yyct977 == codecSelferValueTypeArray1234 { + yyl977 := r.ReadArrayStart() + if yyl977 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl972, d) + x.codecDecodeSelfFromArray(yyl977, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -11622,12 +11670,12 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys973Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys973Slc - var yyhl973 bool = l >= 0 - for yyj973 := 0; ; yyj973++ { - if yyhl973 { - if yyj973 >= l { + var yys978Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys978Slc + var yyhl978 bool = l >= 0 + for yyj978 := 0; ; yyj978++ { + if yyhl978 { + if yyj978 >= l { break } } else { @@ -11636,10 +11684,10 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys973Slc = r.DecodeBytes(yys973Slc, true, true) - yys973 := string(yys973Slc) + yys978Slc = r.DecodeBytes(yys978Slc, true, true) + yys978 := string(yys978Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys973 { + switch yys978 { case "privileged": if r.TryDecodeAsNil() { x.Privileged = false @@ -11650,48 +11698,48 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.DefaultAddCapabilities = nil } else { - yyv975 := &x.DefaultAddCapabilities - yym976 := z.DecBinary() - _ = yym976 + yyv980 := &x.DefaultAddCapabilities + yym981 := z.DecBinary() + _ = yym981 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv975), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv980), d) } } case "requiredDropCapabilities": if r.TryDecodeAsNil() { x.RequiredDropCapabilities = nil } else { - yyv977 := &x.RequiredDropCapabilities - yym978 := z.DecBinary() - _ = yym978 + yyv982 := &x.RequiredDropCapabilities + yym983 := z.DecBinary() + _ = yym983 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv977), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv982), d) } } case "allowedCapabilities": if r.TryDecodeAsNil() { x.AllowedCapabilities = nil } else { - yyv979 := &x.AllowedCapabilities - yym980 := z.DecBinary() - _ = yym980 + yyv984 := &x.AllowedCapabilities + yym985 := z.DecBinary() + _ = yym985 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv979), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv984), d) } } case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv981 := &x.Volumes - yym982 := z.DecBinary() - _ = yym982 + yyv986 := &x.Volumes + yym987 := z.DecBinary() + _ = yym987 if false { } else { - h.decSliceFSType((*[]FSType)(yyv981), d) + h.decSliceFSType((*[]FSType)(yyv986), d) } } case "hostNetwork": @@ -11704,12 +11752,12 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.HostPorts = nil } else { - yyv984 := &x.HostPorts - yym985 := z.DecBinary() - _ = yym985 + yyv989 := &x.HostPorts + yym990 := z.DecBinary() + _ = yym990 if false { } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv984), d) + h.decSliceHostPortRange((*[]HostPortRange)(yyv989), d) } } case "hostPID": @@ -11728,29 +11776,29 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.SELinux = SELinuxStrategyOptions{} } else { - yyv988 := &x.SELinux - yyv988.CodecDecodeSelf(d) + yyv993 := &x.SELinux + yyv993.CodecDecodeSelf(d) } case "runAsUser": if r.TryDecodeAsNil() { x.RunAsUser = RunAsUserStrategyOptions{} } else { - yyv989 := &x.RunAsUser - yyv989.CodecDecodeSelf(d) + yyv994 := &x.RunAsUser + yyv994.CodecDecodeSelf(d) } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = SupplementalGroupsStrategyOptions{} } else { - yyv990 := &x.SupplementalGroups - yyv990.CodecDecodeSelf(d) + yyv995 := &x.SupplementalGroups + yyv995.CodecDecodeSelf(d) } case "fsGroup": if r.TryDecodeAsNil() { x.FSGroup = FSGroupStrategyOptions{} } else { - yyv991 := &x.FSGroup - yyv991.CodecDecodeSelf(d) + yyv996 := &x.FSGroup + yyv996.CodecDecodeSelf(d) } case "readOnlyRootFilesystem": if r.TryDecodeAsNil() { @@ -11759,9 +11807,9 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys973) - } // end switch yys973 - } // end for yyj973 + z.DecStructFieldNotFound(-1, yys978) + } // end switch yys978 + } // end for yyj978 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -11769,16 +11817,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj993 int - var yyb993 bool - var yyhl993 bool = l >= 0 - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + var yyj998 int + var yyb998 bool + var yyhl998 bool = l >= 0 + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11788,13 +11836,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Privileged = bool(r.DecodeBool()) } - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11802,21 +11850,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.DefaultAddCapabilities = nil } else { - yyv995 := &x.DefaultAddCapabilities - yym996 := z.DecBinary() - _ = yym996 + yyv1000 := &x.DefaultAddCapabilities + yym1001 := z.DecBinary() + _ = yym1001 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv995), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1000), d) } } - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11824,21 +11872,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.RequiredDropCapabilities = nil } else { - yyv997 := &x.RequiredDropCapabilities - yym998 := z.DecBinary() - _ = yym998 + yyv1002 := &x.RequiredDropCapabilities + yym1003 := z.DecBinary() + _ = yym1003 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv997), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1002), d) } } - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11846,21 +11894,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.AllowedCapabilities = nil } else { - yyv999 := &x.AllowedCapabilities - yym1000 := z.DecBinary() - _ = yym1000 + yyv1004 := &x.AllowedCapabilities + yym1005 := z.DecBinary() + _ = yym1005 if false { } else { - h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv999), d) + h.decSliceapi_Capability((*[]pkg2_api.Capability)(yyv1004), d) } } - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11868,21 +11916,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv1001 := &x.Volumes - yym1002 := z.DecBinary() - _ = yym1002 + yyv1006 := &x.Volumes + yym1007 := z.DecBinary() + _ = yym1007 if false { } else { - h.decSliceFSType((*[]FSType)(yyv1001), d) + h.decSliceFSType((*[]FSType)(yyv1006), d) } } - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11892,13 +11940,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostNetwork = bool(r.DecodeBool()) } - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11906,21 +11954,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.HostPorts = nil } else { - yyv1004 := &x.HostPorts - yym1005 := z.DecBinary() - _ = yym1005 + yyv1009 := &x.HostPorts + yym1010 := z.DecBinary() + _ = yym1010 if false { } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv1004), d) + h.decSliceHostPortRange((*[]HostPortRange)(yyv1009), d) } } - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11930,13 +11978,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostPID = bool(r.DecodeBool()) } - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11946,13 +11994,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostIPC = bool(r.DecodeBool()) } - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11960,16 +12008,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.SELinux = SELinuxStrategyOptions{} } else { - yyv1008 := &x.SELinux - yyv1008.CodecDecodeSelf(d) + yyv1013 := &x.SELinux + yyv1013.CodecDecodeSelf(d) } - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11977,16 +12025,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.RunAsUser = RunAsUserStrategyOptions{} } else { - yyv1009 := &x.RunAsUser - yyv1009.CodecDecodeSelf(d) + yyv1014 := &x.RunAsUser + yyv1014.CodecDecodeSelf(d) } - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -11994,16 +12042,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.SupplementalGroups = SupplementalGroupsStrategyOptions{} } else { - yyv1010 := &x.SupplementalGroups - yyv1010.CodecDecodeSelf(d) + yyv1015 := &x.SupplementalGroups + yyv1015.CodecDecodeSelf(d) } - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12011,16 +12059,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.FSGroup = FSGroupStrategyOptions{} } else { - yyv1011 := &x.FSGroup - yyv1011.CodecDecodeSelf(d) + yyv1016 := &x.FSGroup + yyv1016.CodecDecodeSelf(d) } - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12031,17 +12079,17 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) } for { - yyj993++ - if yyhl993 { - yyb993 = yyj993 > l + yyj998++ + if yyhl998 { + yyb998 = yyj998 > l } else { - yyb993 = r.CheckBreak() + yyb998 = r.CheckBreak() } - if yyb993 { + if yyb998 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj993-1, "") + z.DecStructFieldNotFound(yyj998-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12053,33 +12101,33 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1013 := z.EncBinary() - _ = yym1013 + yym1018 := z.EncBinary() + _ = yym1018 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1014 := !z.EncBinary() - yy2arr1014 := z.EncBasicHandle().StructToArray - var yyq1014 [2]bool - _, _, _ = yysep1014, yyq1014, yy2arr1014 - const yyr1014 bool = false - var yynn1014 int - if yyr1014 || yy2arr1014 { + yysep1019 := !z.EncBinary() + yy2arr1019 := z.EncBasicHandle().StructToArray + var yyq1019 [2]bool + _, _, _ = yysep1019, yyq1019, yy2arr1019 + const yyr1019 bool = false + var yynn1019 int + if yyr1019 || yy2arr1019 { r.EncodeArrayStart(2) } else { - yynn1014 = 2 - for _, b := range yyq1014 { + yynn1019 = 2 + for _, b := range yyq1019 { if b { - yynn1014++ + yynn1019++ } } - r.EncodeMapStart(yynn1014) - yynn1014 = 0 + r.EncodeMapStart(yynn1019) + yynn1019 = 0 } - if yyr1014 || yy2arr1014 { + if yyr1019 || yy2arr1019 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1016 := z.EncBinary() - _ = yym1016 + yym1021 := z.EncBinary() + _ = yym1021 if false { } else { r.EncodeInt(int64(x.Min)) @@ -12088,17 +12136,17 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1017 := z.EncBinary() - _ = yym1017 + yym1022 := z.EncBinary() + _ = yym1022 if false { } else { r.EncodeInt(int64(x.Min)) } } - if yyr1014 || yy2arr1014 { + if yyr1019 || yy2arr1019 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1019 := z.EncBinary() - _ = yym1019 + yym1024 := z.EncBinary() + _ = yym1024 if false { } else { r.EncodeInt(int64(x.Max)) @@ -12107,14 +12155,14 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1020 := z.EncBinary() - _ = yym1020 + yym1025 := z.EncBinary() + _ = yym1025 if false { } else { r.EncodeInt(int64(x.Max)) } } - if yyr1014 || yy2arr1014 { + if yyr1019 || yy2arr1019 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12127,25 +12175,25 @@ func (x *HostPortRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1021 := z.DecBinary() - _ = yym1021 + yym1026 := z.DecBinary() + _ = yym1026 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1022 := r.ContainerType() - if yyct1022 == codecSelferValueTypeMap1234 { - yyl1022 := r.ReadMapStart() - if yyl1022 == 0 { + yyct1027 := r.ContainerType() + if yyct1027 == codecSelferValueTypeMap1234 { + yyl1027 := r.ReadMapStart() + if yyl1027 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1022, d) + x.codecDecodeSelfFromMap(yyl1027, d) } - } else if yyct1022 == codecSelferValueTypeArray1234 { - yyl1022 := r.ReadArrayStart() - if yyl1022 == 0 { + } else if yyct1027 == codecSelferValueTypeArray1234 { + yyl1027 := r.ReadArrayStart() + if yyl1027 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1022, d) + x.codecDecodeSelfFromArray(yyl1027, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12157,12 +12205,12 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1023Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1023Slc - var yyhl1023 bool = l >= 0 - for yyj1023 := 0; ; yyj1023++ { - if yyhl1023 { - if yyj1023 >= l { + var yys1028Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1028Slc + var yyhl1028 bool = l >= 0 + for yyj1028 := 0; ; yyj1028++ { + if yyhl1028 { + if yyj1028 >= l { break } } else { @@ -12171,10 +12219,10 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1023Slc = r.DecodeBytes(yys1023Slc, true, true) - yys1023 := string(yys1023Slc) + yys1028Slc = r.DecodeBytes(yys1028Slc, true, true) + yys1028 := string(yys1028Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1023 { + switch yys1028 { case "min": if r.TryDecodeAsNil() { x.Min = 0 @@ -12188,9 +12236,9 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Max = int(r.DecodeInt(codecSelferBitsize1234)) } default: - z.DecStructFieldNotFound(-1, yys1023) - } // end switch yys1023 - } // end for yyj1023 + z.DecStructFieldNotFound(-1, yys1028) + } // end switch yys1028 + } // end for yyj1028 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12198,16 +12246,16 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1026 int - var yyb1026 bool - var yyhl1026 bool = l >= 0 - yyj1026++ - if yyhl1026 { - yyb1026 = yyj1026 > l + var yyj1031 int + var yyb1031 bool + var yyhl1031 bool = l >= 0 + yyj1031++ + if yyhl1031 { + yyb1031 = yyj1031 > l } else { - yyb1026 = r.CheckBreak() + yyb1031 = r.CheckBreak() } - if yyb1026 { + if yyb1031 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12217,13 +12265,13 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Min = int(r.DecodeInt(codecSelferBitsize1234)) } - yyj1026++ - if yyhl1026 { - yyb1026 = yyj1026 > l + yyj1031++ + if yyhl1031 { + yyb1031 = yyj1031 > l } else { - yyb1026 = r.CheckBreak() + yyb1031 = r.CheckBreak() } - if yyb1026 { + if yyb1031 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12234,17 +12282,17 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Max = int(r.DecodeInt(codecSelferBitsize1234)) } for { - yyj1026++ - if yyhl1026 { - yyb1026 = yyj1026 > l + yyj1031++ + if yyhl1031 { + yyb1031 = yyj1031 > l } else { - yyb1026 = r.CheckBreak() + yyb1031 = r.CheckBreak() } - if yyb1026 { + if yyb1031 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1026-1, "") + z.DecStructFieldNotFound(yyj1031-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12253,8 +12301,8 @@ func (x FSType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1029 := z.EncBinary() - _ = yym1029 + yym1034 := z.EncBinary() + _ = yym1034 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -12266,8 +12314,8 @@ func (x *FSType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1030 := z.DecBinary() - _ = yym1030 + yym1035 := z.DecBinary() + _ = yym1035 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -12282,31 +12330,31 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1031 := z.EncBinary() - _ = yym1031 + yym1036 := z.EncBinary() + _ = yym1036 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1032 := !z.EncBinary() - yy2arr1032 := z.EncBasicHandle().StructToArray - var yyq1032 [2]bool - _, _, _ = yysep1032, yyq1032, yy2arr1032 - const yyr1032 bool = false - yyq1032[1] = x.SELinuxOptions != nil - var yynn1032 int - if yyr1032 || yy2arr1032 { + yysep1037 := !z.EncBinary() + yy2arr1037 := z.EncBasicHandle().StructToArray + var yyq1037 [2]bool + _, _, _ = yysep1037, yyq1037, yy2arr1037 + const yyr1037 bool = false + yyq1037[1] = x.SELinuxOptions != nil + var yynn1037 int + if yyr1037 || yy2arr1037 { r.EncodeArrayStart(2) } else { - yynn1032 = 1 - for _, b := range yyq1032 { + yynn1037 = 1 + for _, b := range yyq1037 { if b { - yynn1032++ + yynn1037++ } } - r.EncodeMapStart(yynn1032) - yynn1032 = 0 + r.EncodeMapStart(yynn1037) + yynn1037 = 0 } - if yyr1032 || yy2arr1032 { + if yyr1037 || yy2arr1037 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Rule.CodecEncodeSelf(e) } else { @@ -12315,9 +12363,9 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } - if yyr1032 || yy2arr1032 { + if yyr1037 || yy2arr1037 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1032[1] { + if yyq1037[1] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -12327,7 +12375,7 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1032[1] { + if yyq1037[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -12338,7 +12386,7 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1032 || yy2arr1032 { + if yyr1037 || yy2arr1037 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12351,25 +12399,25 @@ func (x *SELinuxStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1035 := z.DecBinary() - _ = yym1035 + yym1040 := z.DecBinary() + _ = yym1040 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1036 := r.ContainerType() - if yyct1036 == codecSelferValueTypeMap1234 { - yyl1036 := r.ReadMapStart() - if yyl1036 == 0 { + yyct1041 := r.ContainerType() + if yyct1041 == codecSelferValueTypeMap1234 { + yyl1041 := r.ReadMapStart() + if yyl1041 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1036, d) + x.codecDecodeSelfFromMap(yyl1041, d) } - } else if yyct1036 == codecSelferValueTypeArray1234 { - yyl1036 := r.ReadArrayStart() - if yyl1036 == 0 { + } else if yyct1041 == codecSelferValueTypeArray1234 { + yyl1041 := r.ReadArrayStart() + if yyl1041 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1036, d) + x.codecDecodeSelfFromArray(yyl1041, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12381,12 +12429,12 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1037Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1037Slc - var yyhl1037 bool = l >= 0 - for yyj1037 := 0; ; yyj1037++ { - if yyhl1037 { - if yyj1037 >= l { + var yys1042Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1042Slc + var yyhl1042 bool = l >= 0 + for yyj1042 := 0; ; yyj1042++ { + if yyhl1042 { + if yyj1042 >= l { break } } else { @@ -12395,10 +12443,10 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1037Slc = r.DecodeBytes(yys1037Slc, true, true) - yys1037 := string(yys1037Slc) + yys1042Slc = r.DecodeBytes(yys1042Slc, true, true) + yys1042 := string(yys1042Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1037 { + switch yys1042 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -12417,9 +12465,9 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco x.SELinuxOptions.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1037) - } // end switch yys1037 - } // end for yyj1037 + z.DecStructFieldNotFound(-1, yys1042) + } // end switch yys1042 + } // end for yyj1042 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12427,16 +12475,16 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1040 int - var yyb1040 bool - var yyhl1040 bool = l >= 0 - yyj1040++ - if yyhl1040 { - yyb1040 = yyj1040 > l + var yyj1045 int + var yyb1045 bool + var yyhl1045 bool = l >= 0 + yyj1045++ + if yyhl1045 { + yyb1045 = yyj1045 > l } else { - yyb1040 = r.CheckBreak() + yyb1045 = r.CheckBreak() } - if yyb1040 { + if yyb1045 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12446,13 +12494,13 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Rule = SELinuxStrategy(r.DecodeString()) } - yyj1040++ - if yyhl1040 { - yyb1040 = yyj1040 > l + yyj1045++ + if yyhl1045 { + yyb1045 = yyj1045 > l } else { - yyb1040 = r.CheckBreak() + yyb1045 = r.CheckBreak() } - if yyb1040 { + if yyb1045 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12468,17 +12516,17 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De x.SELinuxOptions.CodecDecodeSelf(d) } for { - yyj1040++ - if yyhl1040 { - yyb1040 = yyj1040 > l + yyj1045++ + if yyhl1045 { + yyb1045 = yyj1045 > l } else { - yyb1040 = r.CheckBreak() + yyb1045 = r.CheckBreak() } - if yyb1040 { + if yyb1045 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1040-1, "") + z.DecStructFieldNotFound(yyj1045-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12487,8 +12535,8 @@ func (x SELinuxStrategy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1043 := z.EncBinary() - _ = yym1043 + yym1048 := z.EncBinary() + _ = yym1048 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -12500,8 +12548,8 @@ func (x *SELinuxStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1044 := z.DecBinary() - _ = yym1044 + yym1049 := z.DecBinary() + _ = yym1049 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -12516,31 +12564,31 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1045 := z.EncBinary() - _ = yym1045 + yym1050 := z.EncBinary() + _ = yym1050 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1046 := !z.EncBinary() - yy2arr1046 := z.EncBasicHandle().StructToArray - var yyq1046 [2]bool - _, _, _ = yysep1046, yyq1046, yy2arr1046 - const yyr1046 bool = false - yyq1046[1] = len(x.Ranges) != 0 - var yynn1046 int - if yyr1046 || yy2arr1046 { + yysep1051 := !z.EncBinary() + yy2arr1051 := z.EncBasicHandle().StructToArray + var yyq1051 [2]bool + _, _, _ = yysep1051, yyq1051, yy2arr1051 + const yyr1051 bool = false + yyq1051[1] = len(x.Ranges) != 0 + var yynn1051 int + if yyr1051 || yy2arr1051 { r.EncodeArrayStart(2) } else { - yynn1046 = 1 - for _, b := range yyq1046 { + yynn1051 = 1 + for _, b := range yyq1051 { if b { - yynn1046++ + yynn1051++ } } - r.EncodeMapStart(yynn1046) - yynn1046 = 0 + r.EncodeMapStart(yynn1051) + yynn1051 = 0 } - if yyr1046 || yy2arr1046 { + if yyr1051 || yy2arr1051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Rule.CodecEncodeSelf(e) } else { @@ -12549,14 +12597,14 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } - if yyr1046 || yy2arr1046 { + if yyr1051 || yy2arr1051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1046[1] { + if yyq1051[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1049 := z.EncBinary() - _ = yym1049 + yym1054 := z.EncBinary() + _ = yym1054 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -12566,15 +12614,15 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1046[1] { + if yyq1051[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1050 := z.EncBinary() - _ = yym1050 + yym1055 := z.EncBinary() + _ = yym1055 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -12582,7 +12630,7 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1046 || yy2arr1046 { + if yyr1051 || yy2arr1051 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12595,25 +12643,25 @@ func (x *RunAsUserStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1051 := z.DecBinary() - _ = yym1051 + yym1056 := z.DecBinary() + _ = yym1056 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1052 := r.ContainerType() - if yyct1052 == codecSelferValueTypeMap1234 { - yyl1052 := r.ReadMapStart() - if yyl1052 == 0 { + yyct1057 := r.ContainerType() + if yyct1057 == codecSelferValueTypeMap1234 { + yyl1057 := r.ReadMapStart() + if yyl1057 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1052, d) + x.codecDecodeSelfFromMap(yyl1057, d) } - } else if yyct1052 == codecSelferValueTypeArray1234 { - yyl1052 := r.ReadArrayStart() - if yyl1052 == 0 { + } else if yyct1057 == codecSelferValueTypeArray1234 { + yyl1057 := r.ReadArrayStart() + if yyl1057 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1052, d) + x.codecDecodeSelfFromArray(yyl1057, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12625,12 +12673,12 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1053Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1053Slc - var yyhl1053 bool = l >= 0 - for yyj1053 := 0; ; yyj1053++ { - if yyhl1053 { - if yyj1053 >= l { + var yys1058Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1058Slc + var yyhl1058 bool = l >= 0 + for yyj1058 := 0; ; yyj1058++ { + if yyhl1058 { + if yyj1058 >= l { break } } else { @@ -12639,10 +12687,10 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1053Slc = r.DecodeBytes(yys1053Slc, true, true) - yys1053 := string(yys1053Slc) + yys1058Slc = r.DecodeBytes(yys1058Slc, true, true) + yys1058 := string(yys1058Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1053 { + switch yys1058 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -12653,18 +12701,18 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1055 := &x.Ranges - yym1056 := z.DecBinary() - _ = yym1056 + yyv1060 := &x.Ranges + yym1061 := z.DecBinary() + _ = yym1061 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1055), d) + h.decSliceIDRange((*[]IDRange)(yyv1060), d) } } default: - z.DecStructFieldNotFound(-1, yys1053) - } // end switch yys1053 - } // end for yyj1053 + z.DecStructFieldNotFound(-1, yys1058) + } // end switch yys1058 + } // end for yyj1058 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12672,16 +12720,16 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1057 int - var yyb1057 bool - var yyhl1057 bool = l >= 0 - yyj1057++ - if yyhl1057 { - yyb1057 = yyj1057 > l + var yyj1062 int + var yyb1062 bool + var yyhl1062 bool = l >= 0 + yyj1062++ + if yyhl1062 { + yyb1062 = yyj1062 > l } else { - yyb1057 = r.CheckBreak() + yyb1062 = r.CheckBreak() } - if yyb1057 { + if yyb1062 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12691,13 +12739,13 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Rule = RunAsUserStrategy(r.DecodeString()) } - yyj1057++ - if yyhl1057 { - yyb1057 = yyj1057 > l + yyj1062++ + if yyhl1062 { + yyb1062 = yyj1062 > l } else { - yyb1057 = r.CheckBreak() + yyb1062 = r.CheckBreak() } - if yyb1057 { + if yyb1062 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12705,26 +12753,26 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1059 := &x.Ranges - yym1060 := z.DecBinary() - _ = yym1060 + yyv1064 := &x.Ranges + yym1065 := z.DecBinary() + _ = yym1065 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1059), d) + h.decSliceIDRange((*[]IDRange)(yyv1064), d) } } for { - yyj1057++ - if yyhl1057 { - yyb1057 = yyj1057 > l + yyj1062++ + if yyhl1062 { + yyb1062 = yyj1062 > l } else { - yyb1057 = r.CheckBreak() + yyb1062 = r.CheckBreak() } - if yyb1057 { + if yyb1062 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1057-1, "") + z.DecStructFieldNotFound(yyj1062-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12736,33 +12784,33 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1061 := z.EncBinary() - _ = yym1061 + yym1066 := z.EncBinary() + _ = yym1066 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1062 := !z.EncBinary() - yy2arr1062 := z.EncBasicHandle().StructToArray - var yyq1062 [2]bool - _, _, _ = yysep1062, yyq1062, yy2arr1062 - const yyr1062 bool = false - var yynn1062 int - if yyr1062 || yy2arr1062 { + yysep1067 := !z.EncBinary() + yy2arr1067 := z.EncBasicHandle().StructToArray + var yyq1067 [2]bool + _, _, _ = yysep1067, yyq1067, yy2arr1067 + const yyr1067 bool = false + var yynn1067 int + if yyr1067 || yy2arr1067 { r.EncodeArrayStart(2) } else { - yynn1062 = 2 - for _, b := range yyq1062 { + yynn1067 = 2 + for _, b := range yyq1067 { if b { - yynn1062++ + yynn1067++ } } - r.EncodeMapStart(yynn1062) - yynn1062 = 0 + r.EncodeMapStart(yynn1067) + yynn1067 = 0 } - if yyr1062 || yy2arr1062 { + if yyr1067 || yy2arr1067 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1064 := z.EncBinary() - _ = yym1064 + yym1069 := z.EncBinary() + _ = yym1069 if false { } else { r.EncodeInt(int64(x.Min)) @@ -12771,17 +12819,17 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1065 := z.EncBinary() - _ = yym1065 + yym1070 := z.EncBinary() + _ = yym1070 if false { } else { r.EncodeInt(int64(x.Min)) } } - if yyr1062 || yy2arr1062 { + if yyr1067 || yy2arr1067 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1067 := z.EncBinary() - _ = yym1067 + yym1072 := z.EncBinary() + _ = yym1072 if false { } else { r.EncodeInt(int64(x.Max)) @@ -12790,14 +12838,14 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1068 := z.EncBinary() - _ = yym1068 + yym1073 := z.EncBinary() + _ = yym1073 if false { } else { r.EncodeInt(int64(x.Max)) } } - if yyr1062 || yy2arr1062 { + if yyr1067 || yy2arr1067 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -12810,25 +12858,25 @@ func (x *IDRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1069 := z.DecBinary() - _ = yym1069 + yym1074 := z.DecBinary() + _ = yym1074 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1070 := r.ContainerType() - if yyct1070 == codecSelferValueTypeMap1234 { - yyl1070 := r.ReadMapStart() - if yyl1070 == 0 { + yyct1075 := r.ContainerType() + if yyct1075 == codecSelferValueTypeMap1234 { + yyl1075 := r.ReadMapStart() + if yyl1075 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1070, d) + x.codecDecodeSelfFromMap(yyl1075, d) } - } else if yyct1070 == codecSelferValueTypeArray1234 { - yyl1070 := r.ReadArrayStart() - if yyl1070 == 0 { + } else if yyct1075 == codecSelferValueTypeArray1234 { + yyl1075 := r.ReadArrayStart() + if yyl1075 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1070, d) + x.codecDecodeSelfFromArray(yyl1075, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -12840,12 +12888,12 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1071Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1071Slc - var yyhl1071 bool = l >= 0 - for yyj1071 := 0; ; yyj1071++ { - if yyhl1071 { - if yyj1071 >= l { + var yys1076Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1076Slc + var yyhl1076 bool = l >= 0 + for yyj1076 := 0; ; yyj1076++ { + if yyhl1076 { + if yyj1076 >= l { break } } else { @@ -12854,10 +12902,10 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1071Slc = r.DecodeBytes(yys1071Slc, true, true) - yys1071 := string(yys1071Slc) + yys1076Slc = r.DecodeBytes(yys1076Slc, true, true) + yys1076 := string(yys1076Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1071 { + switch yys1076 { case "min": if r.TryDecodeAsNil() { x.Min = 0 @@ -12871,9 +12919,9 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Max = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys1071) - } // end switch yys1071 - } // end for yyj1071 + z.DecStructFieldNotFound(-1, yys1076) + } // end switch yys1076 + } // end for yyj1076 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -12881,16 +12929,16 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1074 int - var yyb1074 bool - var yyhl1074 bool = l >= 0 - yyj1074++ - if yyhl1074 { - yyb1074 = yyj1074 > l + var yyj1079 int + var yyb1079 bool + var yyhl1079 bool = l >= 0 + yyj1079++ + if yyhl1079 { + yyb1079 = yyj1079 > l } else { - yyb1074 = r.CheckBreak() + yyb1079 = r.CheckBreak() } - if yyb1074 { + if yyb1079 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12900,13 +12948,13 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Min = int64(r.DecodeInt(64)) } - yyj1074++ - if yyhl1074 { - yyb1074 = yyj1074 > l + yyj1079++ + if yyhl1079 { + yyb1079 = yyj1079 > l } else { - yyb1074 = r.CheckBreak() + yyb1079 = r.CheckBreak() } - if yyb1074 { + if yyb1079 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -12917,17 +12965,17 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Max = int64(r.DecodeInt(64)) } for { - yyj1074++ - if yyhl1074 { - yyb1074 = yyj1074 > l + yyj1079++ + if yyhl1079 { + yyb1079 = yyj1079 > l } else { - yyb1074 = r.CheckBreak() + yyb1079 = r.CheckBreak() } - if yyb1074 { + if yyb1079 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1074-1, "") + z.DecStructFieldNotFound(yyj1079-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -12936,8 +12984,8 @@ func (x RunAsUserStrategy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1077 := z.EncBinary() - _ = yym1077 + yym1082 := z.EncBinary() + _ = yym1082 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -12949,8 +12997,8 @@ func (x *RunAsUserStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1078 := z.DecBinary() - _ = yym1078 + yym1083 := z.DecBinary() + _ = yym1083 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -12965,54 +13013,54 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1079 := z.EncBinary() - _ = yym1079 + yym1084 := z.EncBinary() + _ = yym1084 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1080 := !z.EncBinary() - yy2arr1080 := z.EncBasicHandle().StructToArray - var yyq1080 [2]bool - _, _, _ = yysep1080, yyq1080, yy2arr1080 - const yyr1080 bool = false - yyq1080[0] = x.Rule != "" - yyq1080[1] = len(x.Ranges) != 0 - var yynn1080 int - if yyr1080 || yy2arr1080 { + yysep1085 := !z.EncBinary() + yy2arr1085 := z.EncBasicHandle().StructToArray + var yyq1085 [2]bool + _, _, _ = yysep1085, yyq1085, yy2arr1085 + const yyr1085 bool = false + yyq1085[0] = x.Rule != "" + yyq1085[1] = len(x.Ranges) != 0 + var yynn1085 int + if yyr1085 || yy2arr1085 { r.EncodeArrayStart(2) } else { - yynn1080 = 0 - for _, b := range yyq1080 { + yynn1085 = 0 + for _, b := range yyq1085 { if b { - yynn1080++ + yynn1085++ } } - r.EncodeMapStart(yynn1080) - yynn1080 = 0 + r.EncodeMapStart(yynn1085) + yynn1085 = 0 } - if yyr1080 || yy2arr1080 { + if yyr1085 || yy2arr1085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1080[0] { + if yyq1085[0] { x.Rule.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1080[0] { + if yyq1085[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } } - if yyr1080 || yy2arr1080 { + if yyr1085 || yy2arr1085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1080[1] { + if yyq1085[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1083 := z.EncBinary() - _ = yym1083 + yym1088 := z.EncBinary() + _ = yym1088 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -13022,15 +13070,15 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1080[1] { + if yyq1085[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1084 := z.EncBinary() - _ = yym1084 + yym1089 := z.EncBinary() + _ = yym1089 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -13038,7 +13086,7 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1080 || yy2arr1080 { + if yyr1085 || yy2arr1085 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13051,25 +13099,25 @@ func (x *FSGroupStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1085 := z.DecBinary() - _ = yym1085 + yym1090 := z.DecBinary() + _ = yym1090 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1086 := r.ContainerType() - if yyct1086 == codecSelferValueTypeMap1234 { - yyl1086 := r.ReadMapStart() - if yyl1086 == 0 { + yyct1091 := r.ContainerType() + if yyct1091 == codecSelferValueTypeMap1234 { + yyl1091 := r.ReadMapStart() + if yyl1091 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1086, d) + x.codecDecodeSelfFromMap(yyl1091, d) } - } else if yyct1086 == codecSelferValueTypeArray1234 { - yyl1086 := r.ReadArrayStart() - if yyl1086 == 0 { + } else if yyct1091 == codecSelferValueTypeArray1234 { + yyl1091 := r.ReadArrayStart() + if yyl1091 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1086, d) + x.codecDecodeSelfFromArray(yyl1091, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13081,12 +13129,12 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1087Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1087Slc - var yyhl1087 bool = l >= 0 - for yyj1087 := 0; ; yyj1087++ { - if yyhl1087 { - if yyj1087 >= l { + var yys1092Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1092Slc + var yyhl1092 bool = l >= 0 + for yyj1092 := 0; ; yyj1092++ { + if yyhl1092 { + if yyj1092 >= l { break } } else { @@ -13095,10 +13143,10 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1087Slc = r.DecodeBytes(yys1087Slc, true, true) - yys1087 := string(yys1087Slc) + yys1092Slc = r.DecodeBytes(yys1092Slc, true, true) + yys1092 := string(yys1092Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1087 { + switch yys1092 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -13109,18 +13157,18 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1089 := &x.Ranges - yym1090 := z.DecBinary() - _ = yym1090 + yyv1094 := &x.Ranges + yym1095 := z.DecBinary() + _ = yym1095 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1089), d) + h.decSliceIDRange((*[]IDRange)(yyv1094), d) } } default: - z.DecStructFieldNotFound(-1, yys1087) - } // end switch yys1087 - } // end for yyj1087 + z.DecStructFieldNotFound(-1, yys1092) + } // end switch yys1092 + } // end for yyj1092 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13128,16 +13176,16 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1091 int - var yyb1091 bool - var yyhl1091 bool = l >= 0 - yyj1091++ - if yyhl1091 { - yyb1091 = yyj1091 > l + var yyj1096 int + var yyb1096 bool + var yyhl1096 bool = l >= 0 + yyj1096++ + if yyhl1096 { + yyb1096 = yyj1096 > l } else { - yyb1091 = r.CheckBreak() + yyb1096 = r.CheckBreak() } - if yyb1091 { + if yyb1096 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13147,13 +13195,13 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Rule = FSGroupStrategyType(r.DecodeString()) } - yyj1091++ - if yyhl1091 { - yyb1091 = yyj1091 > l + yyj1096++ + if yyhl1096 { + yyb1096 = yyj1096 > l } else { - yyb1091 = r.CheckBreak() + yyb1096 = r.CheckBreak() } - if yyb1091 { + if yyb1096 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13161,26 +13209,26 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1093 := &x.Ranges - yym1094 := z.DecBinary() - _ = yym1094 + yyv1098 := &x.Ranges + yym1099 := z.DecBinary() + _ = yym1099 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1093), d) + h.decSliceIDRange((*[]IDRange)(yyv1098), d) } } for { - yyj1091++ - if yyhl1091 { - yyb1091 = yyj1091 > l + yyj1096++ + if yyhl1096 { + yyb1096 = yyj1096 > l } else { - yyb1091 = r.CheckBreak() + yyb1096 = r.CheckBreak() } - if yyb1091 { + if yyb1096 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1091-1, "") + z.DecStructFieldNotFound(yyj1096-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13189,8 +13237,8 @@ func (x FSGroupStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1095 := z.EncBinary() - _ = yym1095 + yym1100 := z.EncBinary() + _ = yym1100 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -13202,8 +13250,8 @@ func (x *FSGroupStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1096 := z.DecBinary() - _ = yym1096 + yym1101 := z.DecBinary() + _ = yym1101 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -13218,54 +13266,54 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder if x == nil { r.EncodeNil() } else { - yym1097 := z.EncBinary() - _ = yym1097 + yym1102 := z.EncBinary() + _ = yym1102 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1098 := !z.EncBinary() - yy2arr1098 := z.EncBasicHandle().StructToArray - var yyq1098 [2]bool - _, _, _ = yysep1098, yyq1098, yy2arr1098 - const yyr1098 bool = false - yyq1098[0] = x.Rule != "" - yyq1098[1] = len(x.Ranges) != 0 - var yynn1098 int - if yyr1098 || yy2arr1098 { + yysep1103 := !z.EncBinary() + yy2arr1103 := z.EncBasicHandle().StructToArray + var yyq1103 [2]bool + _, _, _ = yysep1103, yyq1103, yy2arr1103 + const yyr1103 bool = false + yyq1103[0] = x.Rule != "" + yyq1103[1] = len(x.Ranges) != 0 + var yynn1103 int + if yyr1103 || yy2arr1103 { r.EncodeArrayStart(2) } else { - yynn1098 = 0 - for _, b := range yyq1098 { + yynn1103 = 0 + for _, b := range yyq1103 { if b { - yynn1098++ + yynn1103++ } } - r.EncodeMapStart(yynn1098) - yynn1098 = 0 + r.EncodeMapStart(yynn1103) + yynn1103 = 0 } - if yyr1098 || yy2arr1098 { + if yyr1103 || yy2arr1103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1098[0] { + if yyq1103[0] { x.Rule.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1098[0] { + if yyq1103[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } } - if yyr1098 || yy2arr1098 { + if yyr1103 || yy2arr1103 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1098[1] { + if yyq1103[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1101 := z.EncBinary() - _ = yym1101 + yym1106 := z.EncBinary() + _ = yym1106 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -13275,15 +13323,15 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder r.EncodeNil() } } else { - if yyq1098[1] { + if yyq1103[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1102 := z.EncBinary() - _ = yym1102 + yym1107 := z.EncBinary() + _ = yym1107 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -13291,7 +13339,7 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder } } } - if yyr1098 || yy2arr1098 { + if yyr1103 || yy2arr1103 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13304,25 +13352,25 @@ func (x *SupplementalGroupsStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1103 := z.DecBinary() - _ = yym1103 + yym1108 := z.DecBinary() + _ = yym1108 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1104 := r.ContainerType() - if yyct1104 == codecSelferValueTypeMap1234 { - yyl1104 := r.ReadMapStart() - if yyl1104 == 0 { + yyct1109 := r.ContainerType() + if yyct1109 == codecSelferValueTypeMap1234 { + yyl1109 := r.ReadMapStart() + if yyl1109 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1104, d) + x.codecDecodeSelfFromMap(yyl1109, d) } - } else if yyct1104 == codecSelferValueTypeArray1234 { - yyl1104 := r.ReadArrayStart() - if yyl1104 == 0 { + } else if yyct1109 == codecSelferValueTypeArray1234 { + yyl1109 := r.ReadArrayStart() + if yyl1109 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1104, d) + x.codecDecodeSelfFromArray(yyl1109, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13334,12 +13382,12 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1105Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1105Slc - var yyhl1105 bool = l >= 0 - for yyj1105 := 0; ; yyj1105++ { - if yyhl1105 { - if yyj1105 >= l { + var yys1110Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1110Slc + var yyhl1110 bool = l >= 0 + for yyj1110 := 0; ; yyj1110++ { + if yyhl1110 { + if yyj1110 >= l { break } } else { @@ -13348,10 +13396,10 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1105Slc = r.DecodeBytes(yys1105Slc, true, true) - yys1105 := string(yys1105Slc) + yys1110Slc = r.DecodeBytes(yys1110Slc, true, true) + yys1110 := string(yys1110Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1105 { + switch yys1110 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -13362,18 +13410,18 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1107 := &x.Ranges - yym1108 := z.DecBinary() - _ = yym1108 + yyv1112 := &x.Ranges + yym1113 := z.DecBinary() + _ = yym1113 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1107), d) + h.decSliceIDRange((*[]IDRange)(yyv1112), d) } } default: - z.DecStructFieldNotFound(-1, yys1105) - } // end switch yys1105 - } // end for yyj1105 + z.DecStructFieldNotFound(-1, yys1110) + } // end switch yys1110 + } // end for yyj1110 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13381,16 +13429,16 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1109 int - var yyb1109 bool - var yyhl1109 bool = l >= 0 - yyj1109++ - if yyhl1109 { - yyb1109 = yyj1109 > l + var yyj1114 int + var yyb1114 bool + var yyhl1114 bool = l >= 0 + yyj1114++ + if yyhl1114 { + yyb1114 = yyj1114 > l } else { - yyb1109 = r.CheckBreak() + yyb1114 = r.CheckBreak() } - if yyb1109 { + if yyb1114 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13400,13 +13448,13 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c } else { x.Rule = SupplementalGroupsStrategyType(r.DecodeString()) } - yyj1109++ - if yyhl1109 { - yyb1109 = yyj1109 > l + yyj1114++ + if yyhl1114 { + yyb1114 = yyj1114 > l } else { - yyb1109 = r.CheckBreak() + yyb1114 = r.CheckBreak() } - if yyb1109 { + if yyb1114 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13414,26 +13462,26 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1111 := &x.Ranges - yym1112 := z.DecBinary() - _ = yym1112 + yyv1116 := &x.Ranges + yym1117 := z.DecBinary() + _ = yym1117 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1111), d) + h.decSliceIDRange((*[]IDRange)(yyv1116), d) } } for { - yyj1109++ - if yyhl1109 { - yyb1109 = yyj1109 > l + yyj1114++ + if yyhl1114 { + yyb1114 = yyj1114 > l } else { - yyb1109 = r.CheckBreak() + yyb1114 = r.CheckBreak() } - if yyb1109 { + if yyb1114 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1109-1, "") + z.DecStructFieldNotFound(yyj1114-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13442,8 +13490,8 @@ func (x SupplementalGroupsStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1113 := z.EncBinary() - _ = yym1113 + yym1118 := z.EncBinary() + _ = yym1118 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -13455,8 +13503,8 @@ func (x *SupplementalGroupsStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1114 := z.DecBinary() - _ = yym1114 + yym1119 := z.DecBinary() + _ = yym1119 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -13471,37 +13519,37 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1115 := z.EncBinary() - _ = yym1115 + yym1120 := z.EncBinary() + _ = yym1120 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1116 := !z.EncBinary() - yy2arr1116 := z.EncBasicHandle().StructToArray - var yyq1116 [4]bool - _, _, _ = yysep1116, yyq1116, yy2arr1116 - const yyr1116 bool = false - yyq1116[0] = x.Kind != "" - yyq1116[1] = x.APIVersion != "" - yyq1116[2] = true - var yynn1116 int - if yyr1116 || yy2arr1116 { + yysep1121 := !z.EncBinary() + yy2arr1121 := z.EncBasicHandle().StructToArray + var yyq1121 [4]bool + _, _, _ = yysep1121, yyq1121, yy2arr1121 + const yyr1121 bool = false + yyq1121[0] = x.Kind != "" + yyq1121[1] = x.APIVersion != "" + yyq1121[2] = true + var yynn1121 int + if yyr1121 || yy2arr1121 { r.EncodeArrayStart(4) } else { - yynn1116 = 1 - for _, b := range yyq1116 { + yynn1121 = 1 + for _, b := range yyq1121 { if b { - yynn1116++ + yynn1121++ } } - r.EncodeMapStart(yynn1116) - yynn1116 = 0 + r.EncodeMapStart(yynn1121) + yynn1121 = 0 } - if yyr1116 || yy2arr1116 { + if yyr1121 || yy2arr1121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1116[0] { - yym1118 := z.EncBinary() - _ = yym1118 + if yyq1121[0] { + yym1123 := z.EncBinary() + _ = yym1123 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -13510,23 +13558,23 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1116[0] { + if yyq1121[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1119 := z.EncBinary() - _ = yym1119 + yym1124 := z.EncBinary() + _ = yym1124 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1116 || yy2arr1116 { + if yyr1121 || yy2arr1121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1116[1] { - yym1121 := z.EncBinary() - _ = yym1121 + if yyq1121[1] { + yym1126 := z.EncBinary() + _ = yym1126 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -13535,54 +13583,54 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1116[1] { + if yyq1121[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1122 := z.EncBinary() - _ = yym1122 + yym1127 := z.EncBinary() + _ = yym1127 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1116 || yy2arr1116 { + if yyr1121 || yy2arr1121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1116[2] { - yy1124 := &x.ListMeta - yym1125 := z.EncBinary() - _ = yym1125 + if yyq1121[2] { + yy1129 := &x.ListMeta + yym1130 := z.EncBinary() + _ = yym1130 if false { - } else if z.HasExtensions() && z.EncExt(yy1124) { + } else if z.HasExtensions() && z.EncExt(yy1129) { } else { - z.EncFallback(yy1124) + z.EncFallback(yy1129) } } else { r.EncodeNil() } } else { - if yyq1116[2] { + if yyq1121[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1126 := &x.ListMeta - yym1127 := z.EncBinary() - _ = yym1127 + yy1131 := &x.ListMeta + yym1132 := z.EncBinary() + _ = yym1132 if false { - } else if z.HasExtensions() && z.EncExt(yy1126) { + } else if z.HasExtensions() && z.EncExt(yy1131) { } else { - z.EncFallback(yy1126) + z.EncFallback(yy1131) } } } - if yyr1116 || yy2arr1116 { + if yyr1121 || yy2arr1121 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1129 := z.EncBinary() - _ = yym1129 + yym1134 := z.EncBinary() + _ = yym1134 if false { } else { h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) @@ -13595,15 +13643,15 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1130 := z.EncBinary() - _ = yym1130 + yym1135 := z.EncBinary() + _ = yym1135 if false { } else { h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) } } } - if yyr1116 || yy2arr1116 { + if yyr1121 || yy2arr1121 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13616,25 +13664,25 @@ func (x *PodSecurityPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1131 := z.DecBinary() - _ = yym1131 + yym1136 := z.DecBinary() + _ = yym1136 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1132 := r.ContainerType() - if yyct1132 == codecSelferValueTypeMap1234 { - yyl1132 := r.ReadMapStart() - if yyl1132 == 0 { + yyct1137 := r.ContainerType() + if yyct1137 == codecSelferValueTypeMap1234 { + yyl1137 := r.ReadMapStart() + if yyl1137 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1132, d) + x.codecDecodeSelfFromMap(yyl1137, d) } - } else if yyct1132 == codecSelferValueTypeArray1234 { - yyl1132 := r.ReadArrayStart() - if yyl1132 == 0 { + } else if yyct1137 == codecSelferValueTypeArray1234 { + yyl1137 := r.ReadArrayStart() + if yyl1137 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1132, d) + x.codecDecodeSelfFromArray(yyl1137, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13646,12 +13694,12 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1133Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1133Slc - var yyhl1133 bool = l >= 0 - for yyj1133 := 0; ; yyj1133++ { - if yyhl1133 { - if yyj1133 >= l { + var yys1138Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1138Slc + var yyhl1138 bool = l >= 0 + for yyj1138 := 0; ; yyj1138++ { + if yyhl1138 { + if yyj1138 >= l { break } } else { @@ -13660,10 +13708,10 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1133Slc = r.DecodeBytes(yys1133Slc, true, true) - yys1133 := string(yys1133Slc) + yys1138Slc = r.DecodeBytes(yys1138Slc, true, true) + yys1138 := string(yys1138Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1133 { + switch yys1138 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -13680,31 +13728,31 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1136 := &x.ListMeta - yym1137 := z.DecBinary() - _ = yym1137 + yyv1141 := &x.ListMeta + yym1142 := z.DecBinary() + _ = yym1142 if false { - } else if z.HasExtensions() && z.DecExt(yyv1136) { + } else if z.HasExtensions() && z.DecExt(yyv1141) { } else { - z.DecFallback(yyv1136, false) + z.DecFallback(yyv1141, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1138 := &x.Items - yym1139 := z.DecBinary() - _ = yym1139 + yyv1143 := &x.Items + yym1144 := z.DecBinary() + _ = yym1144 if false { } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1138), d) + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1143), d) } } default: - z.DecStructFieldNotFound(-1, yys1133) - } // end switch yys1133 - } // end for yyj1133 + z.DecStructFieldNotFound(-1, yys1138) + } // end switch yys1138 + } // end for yyj1138 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -13712,16 +13760,16 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1140 int - var yyb1140 bool - var yyhl1140 bool = l >= 0 - yyj1140++ - if yyhl1140 { - yyb1140 = yyj1140 > l + var yyj1145 int + var yyb1145 bool + var yyhl1145 bool = l >= 0 + yyj1145++ + if yyhl1145 { + yyb1145 = yyj1145 > l } else { - yyb1140 = r.CheckBreak() + yyb1145 = r.CheckBreak() } - if yyb1140 { + if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13731,13 +13779,13 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Kind = string(r.DecodeString()) } - yyj1140++ - if yyhl1140 { - yyb1140 = yyj1140 > l + yyj1145++ + if yyhl1145 { + yyb1145 = yyj1145 > l } else { - yyb1140 = r.CheckBreak() + yyb1145 = r.CheckBreak() } - if yyb1140 { + if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13747,13 +13795,13 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.APIVersion = string(r.DecodeString()) } - yyj1140++ - if yyhl1140 { - yyb1140 = yyj1140 > l + yyj1145++ + if yyhl1145 { + yyb1145 = yyj1145 > l } else { - yyb1140 = r.CheckBreak() + yyb1145 = r.CheckBreak() } - if yyb1140 { + if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13761,22 +13809,22 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1143 := &x.ListMeta - yym1144 := z.DecBinary() - _ = yym1144 + yyv1148 := &x.ListMeta + yym1149 := z.DecBinary() + _ = yym1149 if false { - } else if z.HasExtensions() && z.DecExt(yyv1143) { + } else if z.HasExtensions() && z.DecExt(yyv1148) { } else { - z.DecFallback(yyv1143, false) + z.DecFallback(yyv1148, false) } } - yyj1140++ - if yyhl1140 { - yyb1140 = yyj1140 > l + yyj1145++ + if yyhl1145 { + yyb1145 = yyj1145 > l } else { - yyb1140 = r.CheckBreak() + yyb1145 = r.CheckBreak() } - if yyb1140 { + if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -13784,26 +13832,26 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1145 := &x.Items - yym1146 := z.DecBinary() - _ = yym1146 + yyv1150 := &x.Items + yym1151 := z.DecBinary() + _ = yym1151 if false { } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1145), d) + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1150), d) } } for { - yyj1140++ - if yyhl1140 { - yyb1140 = yyj1140 > l + yyj1145++ + if yyhl1145 { + yyb1145 = yyj1145 > l } else { - yyb1140 = r.CheckBreak() + yyb1145 = r.CheckBreak() } - if yyb1140 { + if yyb1145 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1140-1, "") + z.DecStructFieldNotFound(yyj1145-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -13815,38 +13863,38 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1147 := z.EncBinary() - _ = yym1147 + yym1152 := z.EncBinary() + _ = yym1152 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1148 := !z.EncBinary() - yy2arr1148 := z.EncBasicHandle().StructToArray - var yyq1148 [4]bool - _, _, _ = yysep1148, yyq1148, yy2arr1148 - const yyr1148 bool = false - yyq1148[0] = x.Kind != "" - yyq1148[1] = x.APIVersion != "" - yyq1148[2] = true - yyq1148[3] = true - var yynn1148 int - if yyr1148 || yy2arr1148 { + yysep1153 := !z.EncBinary() + yy2arr1153 := z.EncBasicHandle().StructToArray + var yyq1153 [4]bool + _, _, _ = yysep1153, yyq1153, yy2arr1153 + const yyr1153 bool = false + yyq1153[0] = x.Kind != "" + yyq1153[1] = x.APIVersion != "" + yyq1153[2] = true + yyq1153[3] = true + var yynn1153 int + if yyr1153 || yy2arr1153 { r.EncodeArrayStart(4) } else { - yynn1148 = 0 - for _, b := range yyq1148 { + yynn1153 = 0 + for _, b := range yyq1153 { if b { - yynn1148++ + yynn1153++ } } - r.EncodeMapStart(yynn1148) - yynn1148 = 0 + r.EncodeMapStart(yynn1153) + yynn1153 = 0 } - if yyr1148 || yy2arr1148 { + if yyr1153 || yy2arr1153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1148[0] { - yym1150 := z.EncBinary() - _ = yym1150 + if yyq1153[0] { + yym1155 := z.EncBinary() + _ = yym1155 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -13855,23 +13903,23 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1148[0] { + if yyq1153[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1151 := z.EncBinary() - _ = yym1151 + yym1156 := z.EncBinary() + _ = yym1156 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1148 || yy2arr1148 { + if yyr1153 || yy2arr1153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1148[1] { - yym1153 := z.EncBinary() - _ = yym1153 + if yyq1153[1] { + yym1158 := z.EncBinary() + _ = yym1158 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -13880,53 +13928,53 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1148[1] { + if yyq1153[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1154 := z.EncBinary() - _ = yym1154 + yym1159 := z.EncBinary() + _ = yym1159 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1148 || yy2arr1148 { + if yyr1153 || yy2arr1153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1148[2] { - yy1156 := &x.ObjectMeta - yy1156.CodecEncodeSelf(e) + if yyq1153[2] { + yy1161 := &x.ObjectMeta + yy1161.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1148[2] { + if yyq1153[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1157 := &x.ObjectMeta - yy1157.CodecEncodeSelf(e) + yy1162 := &x.ObjectMeta + yy1162.CodecEncodeSelf(e) } } - if yyr1148 || yy2arr1148 { + if yyr1153 || yy2arr1153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1148[3] { - yy1159 := &x.Spec - yy1159.CodecEncodeSelf(e) + if yyq1153[3] { + yy1164 := &x.Spec + yy1164.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1148[3] { + if yyq1153[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1160 := &x.Spec - yy1160.CodecEncodeSelf(e) + yy1165 := &x.Spec + yy1165.CodecEncodeSelf(e) } } - if yyr1148 || yy2arr1148 { + if yyr1153 || yy2arr1153 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -13939,25 +13987,25 @@ func (x *NetworkPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1161 := z.DecBinary() - _ = yym1161 + yym1166 := z.DecBinary() + _ = yym1166 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1162 := r.ContainerType() - if yyct1162 == codecSelferValueTypeMap1234 { - yyl1162 := r.ReadMapStart() - if yyl1162 == 0 { + yyct1167 := r.ContainerType() + if yyct1167 == codecSelferValueTypeMap1234 { + yyl1167 := r.ReadMapStart() + if yyl1167 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1162, d) + x.codecDecodeSelfFromMap(yyl1167, d) } - } else if yyct1162 == codecSelferValueTypeArray1234 { - yyl1162 := r.ReadArrayStart() - if yyl1162 == 0 { + } else if yyct1167 == codecSelferValueTypeArray1234 { + yyl1167 := r.ReadArrayStart() + if yyl1167 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1162, d) + x.codecDecodeSelfFromArray(yyl1167, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -13969,12 +14017,12 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1163Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1163Slc - var yyhl1163 bool = l >= 0 - for yyj1163 := 0; ; yyj1163++ { - if yyhl1163 { - if yyj1163 >= l { + var yys1168Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1168Slc + var yyhl1168 bool = l >= 0 + for yyj1168 := 0; ; yyj1168++ { + if yyhl1168 { + if yyj1168 >= l { break } } else { @@ -13983,10 +14031,10 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1163Slc = r.DecodeBytes(yys1163Slc, true, true) - yys1163 := string(yys1163Slc) + yys1168Slc = r.DecodeBytes(yys1168Slc, true, true) + yys1168 := string(yys1168Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1163 { + switch yys1168 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -14003,20 +14051,20 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv1166 := &x.ObjectMeta - yyv1166.CodecDecodeSelf(d) + yyv1171 := &x.ObjectMeta + yyv1171.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NetworkPolicySpec{} } else { - yyv1167 := &x.Spec - yyv1167.CodecDecodeSelf(d) + yyv1172 := &x.Spec + yyv1172.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1163) - } // end switch yys1163 - } // end for yyj1163 + z.DecStructFieldNotFound(-1, yys1168) + } // end switch yys1168 + } // end for yyj1168 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14024,16 +14072,16 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1168 int - var yyb1168 bool - var yyhl1168 bool = l >= 0 - yyj1168++ - if yyhl1168 { - yyb1168 = yyj1168 > l + var yyj1173 int + var yyb1173 bool + var yyhl1173 bool = l >= 0 + yyj1173++ + if yyhl1173 { + yyb1173 = yyj1173 > l } else { - yyb1168 = r.CheckBreak() + yyb1173 = r.CheckBreak() } - if yyb1168 { + if yyb1173 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14043,13 +14091,13 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj1168++ - if yyhl1168 { - yyb1168 = yyj1168 > l + yyj1173++ + if yyhl1173 { + yyb1173 = yyj1173 > l } else { - yyb1168 = r.CheckBreak() + yyb1173 = r.CheckBreak() } - if yyb1168 { + if yyb1173 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14059,13 +14107,13 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj1168++ - if yyhl1168 { - yyb1168 = yyj1168 > l + yyj1173++ + if yyhl1173 { + yyb1173 = yyj1173 > l } else { - yyb1168 = r.CheckBreak() + yyb1173 = r.CheckBreak() } - if yyb1168 { + if yyb1173 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14073,16 +14121,16 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv1171 := &x.ObjectMeta - yyv1171.CodecDecodeSelf(d) + yyv1176 := &x.ObjectMeta + yyv1176.CodecDecodeSelf(d) } - yyj1168++ - if yyhl1168 { - yyb1168 = yyj1168 > l + yyj1173++ + if yyhl1173 { + yyb1173 = yyj1173 > l } else { - yyb1168 = r.CheckBreak() + yyb1173 = r.CheckBreak() } - if yyb1168 { + if yyb1173 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14090,21 +14138,21 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = NetworkPolicySpec{} } else { - yyv1172 := &x.Spec - yyv1172.CodecDecodeSelf(d) + yyv1177 := &x.Spec + yyv1177.CodecDecodeSelf(d) } for { - yyj1168++ - if yyhl1168 { - yyb1168 = yyj1168 > l + yyj1173++ + if yyhl1173 { + yyb1173 = yyj1173 > l } else { - yyb1168 = r.CheckBreak() + yyb1173 = r.CheckBreak() } - if yyb1168 { + if yyb1173 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1168-1, "") + z.DecStructFieldNotFound(yyj1173-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14116,61 +14164,61 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1173 := z.EncBinary() - _ = yym1173 + yym1178 := z.EncBinary() + _ = yym1178 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1174 := !z.EncBinary() - yy2arr1174 := z.EncBasicHandle().StructToArray - var yyq1174 [2]bool - _, _, _ = yysep1174, yyq1174, yy2arr1174 - const yyr1174 bool = false - yyq1174[1] = len(x.Ingress) != 0 - var yynn1174 int - if yyr1174 || yy2arr1174 { + yysep1179 := !z.EncBinary() + yy2arr1179 := z.EncBasicHandle().StructToArray + var yyq1179 [2]bool + _, _, _ = yysep1179, yyq1179, yy2arr1179 + const yyr1179 bool = false + yyq1179[1] = len(x.Ingress) != 0 + var yynn1179 int + if yyr1179 || yy2arr1179 { r.EncodeArrayStart(2) } else { - yynn1174 = 1 - for _, b := range yyq1174 { + yynn1179 = 1 + for _, b := range yyq1179 { if b { - yynn1174++ + yynn1179++ } } - r.EncodeMapStart(yynn1174) - yynn1174 = 0 + r.EncodeMapStart(yynn1179) + yynn1179 = 0 } - if yyr1174 || yy2arr1174 { + if yyr1179 || yy2arr1179 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1176 := &x.PodSelector - yym1177 := z.EncBinary() - _ = yym1177 + yy1181 := &x.PodSelector + yym1182 := z.EncBinary() + _ = yym1182 if false { - } else if z.HasExtensions() && z.EncExt(yy1176) { + } else if z.HasExtensions() && z.EncExt(yy1181) { } else { - z.EncFallback(yy1176) + z.EncFallback(yy1181) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1178 := &x.PodSelector - yym1179 := z.EncBinary() - _ = yym1179 + yy1183 := &x.PodSelector + yym1184 := z.EncBinary() + _ = yym1184 if false { - } else if z.HasExtensions() && z.EncExt(yy1178) { + } else if z.HasExtensions() && z.EncExt(yy1183) { } else { - z.EncFallback(yy1178) + z.EncFallback(yy1183) } } - if yyr1174 || yy2arr1174 { + if yyr1179 || yy2arr1179 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1174[1] { + if yyq1179[1] { if x.Ingress == nil { r.EncodeNil() } else { - yym1181 := z.EncBinary() - _ = yym1181 + yym1186 := z.EncBinary() + _ = yym1186 if false { } else { h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) @@ -14180,15 +14228,15 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1174[1] { + if yyq1179[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { - yym1182 := z.EncBinary() - _ = yym1182 + yym1187 := z.EncBinary() + _ = yym1187 if false { } else { h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) @@ -14196,7 +14244,7 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1174 || yy2arr1174 { + if yyr1179 || yy2arr1179 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14209,25 +14257,25 @@ func (x *NetworkPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1183 := z.DecBinary() - _ = yym1183 + yym1188 := z.DecBinary() + _ = yym1188 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1184 := r.ContainerType() - if yyct1184 == codecSelferValueTypeMap1234 { - yyl1184 := r.ReadMapStart() - if yyl1184 == 0 { + yyct1189 := r.ContainerType() + if yyct1189 == codecSelferValueTypeMap1234 { + yyl1189 := r.ReadMapStart() + if yyl1189 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1184, d) + x.codecDecodeSelfFromMap(yyl1189, d) } - } else if yyct1184 == codecSelferValueTypeArray1234 { - yyl1184 := r.ReadArrayStart() - if yyl1184 == 0 { + } else if yyct1189 == codecSelferValueTypeArray1234 { + yyl1189 := r.ReadArrayStart() + if yyl1189 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1184, d) + x.codecDecodeSelfFromArray(yyl1189, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14239,12 +14287,12 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1185Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1185Slc - var yyhl1185 bool = l >= 0 - for yyj1185 := 0; ; yyj1185++ { - if yyhl1185 { - if yyj1185 >= l { + var yys1190Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1190Slc + var yyhl1190 bool = l >= 0 + for yyj1190 := 0; ; yyj1190++ { + if yyhl1190 { + if yyj1190 >= l { break } } else { @@ -14253,39 +14301,39 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1185Slc = r.DecodeBytes(yys1185Slc, true, true) - yys1185 := string(yys1185Slc) + yys1190Slc = r.DecodeBytes(yys1190Slc, true, true) + yys1190 := string(yys1190Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1185 { + switch yys1190 { case "podSelector": if r.TryDecodeAsNil() { x.PodSelector = pkg1_unversioned.LabelSelector{} } else { - yyv1186 := &x.PodSelector - yym1187 := z.DecBinary() - _ = yym1187 + yyv1191 := &x.PodSelector + yym1192 := z.DecBinary() + _ = yym1192 if false { - } else if z.HasExtensions() && z.DecExt(yyv1186) { + } else if z.HasExtensions() && z.DecExt(yyv1191) { } else { - z.DecFallback(yyv1186, false) + z.DecFallback(yyv1191, false) } } case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv1188 := &x.Ingress - yym1189 := z.DecBinary() - _ = yym1189 + yyv1193 := &x.Ingress + yym1194 := z.DecBinary() + _ = yym1194 if false { } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1188), d) + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1193), d) } } default: - z.DecStructFieldNotFound(-1, yys1185) - } // end switch yys1185 - } // end for yyj1185 + z.DecStructFieldNotFound(-1, yys1190) + } // end switch yys1190 + } // end for yyj1190 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14293,16 +14341,16 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1190 int - var yyb1190 bool - var yyhl1190 bool = l >= 0 - yyj1190++ - if yyhl1190 { - yyb1190 = yyj1190 > l + var yyj1195 int + var yyb1195 bool + var yyhl1195 bool = l >= 0 + yyj1195++ + if yyhl1195 { + yyb1195 = yyj1195 > l } else { - yyb1190 = r.CheckBreak() + yyb1195 = r.CheckBreak() } - if yyb1190 { + if yyb1195 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14310,22 +14358,22 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.PodSelector = pkg1_unversioned.LabelSelector{} } else { - yyv1191 := &x.PodSelector - yym1192 := z.DecBinary() - _ = yym1192 + yyv1196 := &x.PodSelector + yym1197 := z.DecBinary() + _ = yym1197 if false { - } else if z.HasExtensions() && z.DecExt(yyv1191) { + } else if z.HasExtensions() && z.DecExt(yyv1196) { } else { - z.DecFallback(yyv1191, false) + z.DecFallback(yyv1196, false) } } - yyj1190++ - if yyhl1190 { - yyb1190 = yyj1190 > l + yyj1195++ + if yyhl1195 { + yyb1195 = yyj1195 > l } else { - yyb1190 = r.CheckBreak() + yyb1195 = r.CheckBreak() } - if yyb1190 { + if yyb1195 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14333,26 +14381,26 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv1193 := &x.Ingress - yym1194 := z.DecBinary() - _ = yym1194 + yyv1198 := &x.Ingress + yym1199 := z.DecBinary() + _ = yym1199 if false { } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1193), d) + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1198), d) } } for { - yyj1190++ - if yyhl1190 { - yyb1190 = yyj1190 > l + yyj1195++ + if yyhl1195 { + yyb1195 = yyj1195 > l } else { - yyb1190 = r.CheckBreak() + yyb1195 = r.CheckBreak() } - if yyb1190 { + if yyb1195 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1190-1, "") + z.DecStructFieldNotFound(yyj1195-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14364,39 +14412,39 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1195 := z.EncBinary() - _ = yym1195 + yym1200 := z.EncBinary() + _ = yym1200 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1196 := !z.EncBinary() - yy2arr1196 := z.EncBasicHandle().StructToArray - var yyq1196 [2]bool - _, _, _ = yysep1196, yyq1196, yy2arr1196 - const yyr1196 bool = false - yyq1196[0] = len(x.Ports) != 0 - yyq1196[1] = len(x.From) != 0 - var yynn1196 int - if yyr1196 || yy2arr1196 { + yysep1201 := !z.EncBinary() + yy2arr1201 := z.EncBasicHandle().StructToArray + var yyq1201 [2]bool + _, _, _ = yysep1201, yyq1201, yy2arr1201 + const yyr1201 bool = false + yyq1201[0] = len(x.Ports) != 0 + yyq1201[1] = len(x.From) != 0 + var yynn1201 int + if yyr1201 || yy2arr1201 { r.EncodeArrayStart(2) } else { - yynn1196 = 0 - for _, b := range yyq1196 { + yynn1201 = 0 + for _, b := range yyq1201 { if b { - yynn1196++ + yynn1201++ } } - r.EncodeMapStart(yynn1196) - yynn1196 = 0 + r.EncodeMapStart(yynn1201) + yynn1201 = 0 } - if yyr1196 || yy2arr1196 { + if yyr1201 || yy2arr1201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1196[0] { + if yyq1201[0] { if x.Ports == nil { r.EncodeNil() } else { - yym1198 := z.EncBinary() - _ = yym1198 + yym1203 := z.EncBinary() + _ = yym1203 if false { } else { h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) @@ -14406,15 +14454,15 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1196[0] { + if yyq1201[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { - yym1199 := z.EncBinary() - _ = yym1199 + yym1204 := z.EncBinary() + _ = yym1204 if false { } else { h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) @@ -14422,14 +14470,14 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1196 || yy2arr1196 { + if yyr1201 || yy2arr1201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1196[1] { + if yyq1201[1] { if x.From == nil { r.EncodeNil() } else { - yym1201 := z.EncBinary() - _ = yym1201 + yym1206 := z.EncBinary() + _ = yym1206 if false { } else { h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) @@ -14439,15 +14487,15 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1196[1] { + if yyq1201[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("from")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.From == nil { r.EncodeNil() } else { - yym1202 := z.EncBinary() - _ = yym1202 + yym1207 := z.EncBinary() + _ = yym1207 if false { } else { h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) @@ -14455,7 +14503,7 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1196 || yy2arr1196 { + if yyr1201 || yy2arr1201 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14468,25 +14516,25 @@ func (x *NetworkPolicyIngressRule) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1203 := z.DecBinary() - _ = yym1203 + yym1208 := z.DecBinary() + _ = yym1208 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1204 := r.ContainerType() - if yyct1204 == codecSelferValueTypeMap1234 { - yyl1204 := r.ReadMapStart() - if yyl1204 == 0 { + yyct1209 := r.ContainerType() + if yyct1209 == codecSelferValueTypeMap1234 { + yyl1209 := r.ReadMapStart() + if yyl1209 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1204, d) + x.codecDecodeSelfFromMap(yyl1209, d) } - } else if yyct1204 == codecSelferValueTypeArray1234 { - yyl1204 := r.ReadArrayStart() - if yyl1204 == 0 { + } else if yyct1209 == codecSelferValueTypeArray1234 { + yyl1209 := r.ReadArrayStart() + if yyl1209 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1204, d) + x.codecDecodeSelfFromArray(yyl1209, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14498,12 +14546,12 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1205Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1205Slc - var yyhl1205 bool = l >= 0 - for yyj1205 := 0; ; yyj1205++ { - if yyhl1205 { - if yyj1205 >= l { + var yys1210Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1210Slc + var yyhl1210 bool = l >= 0 + for yyj1210 := 0; ; yyj1210++ { + if yyhl1210 { + if yyj1210 >= l { break } } else { @@ -14512,38 +14560,38 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1205Slc = r.DecodeBytes(yys1205Slc, true, true) - yys1205 := string(yys1205Slc) + yys1210Slc = r.DecodeBytes(yys1210Slc, true, true) + yys1210 := string(yys1210Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1205 { + switch yys1210 { case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1206 := &x.Ports - yym1207 := z.DecBinary() - _ = yym1207 + yyv1211 := &x.Ports + yym1212 := z.DecBinary() + _ = yym1212 if false { } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1206), d) + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1211), d) } } case "from": if r.TryDecodeAsNil() { x.From = nil } else { - yyv1208 := &x.From - yym1209 := z.DecBinary() - _ = yym1209 + yyv1213 := &x.From + yym1214 := z.DecBinary() + _ = yym1214 if false { } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1208), d) + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1213), d) } } default: - z.DecStructFieldNotFound(-1, yys1205) - } // end switch yys1205 - } // end for yyj1205 + z.DecStructFieldNotFound(-1, yys1210) + } // end switch yys1210 + } // end for yyj1210 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14551,16 +14599,16 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1210 int - var yyb1210 bool - var yyhl1210 bool = l >= 0 - yyj1210++ - if yyhl1210 { - yyb1210 = yyj1210 > l + var yyj1215 int + var yyb1215 bool + var yyhl1215 bool = l >= 0 + yyj1215++ + if yyhl1215 { + yyb1215 = yyj1215 > l } else { - yyb1210 = r.CheckBreak() + yyb1215 = r.CheckBreak() } - if yyb1210 { + if yyb1215 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14568,21 +14616,21 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1211 := &x.Ports - yym1212 := z.DecBinary() - _ = yym1212 + yyv1216 := &x.Ports + yym1217 := z.DecBinary() + _ = yym1217 if false { } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1211), d) + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1216), d) } } - yyj1210++ - if yyhl1210 { - yyb1210 = yyj1210 > l + yyj1215++ + if yyhl1215 { + yyb1215 = yyj1215 > l } else { - yyb1210 = r.CheckBreak() + yyb1215 = r.CheckBreak() } - if yyb1210 { + if yyb1215 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14590,26 +14638,26 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.From = nil } else { - yyv1213 := &x.From - yym1214 := z.DecBinary() - _ = yym1214 + yyv1218 := &x.From + yym1219 := z.DecBinary() + _ = yym1219 if false { } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1213), d) + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1218), d) } } for { - yyj1210++ - if yyhl1210 { - yyb1210 = yyj1210 > l + yyj1215++ + if yyhl1215 { + yyb1215 = yyj1215 > l } else { - yyb1210 = r.CheckBreak() + yyb1215 = r.CheckBreak() } - if yyb1210 { + if yyb1215 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1210-1, "") + z.DecStructFieldNotFound(yyj1215-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14621,79 +14669,79 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1215 := z.EncBinary() - _ = yym1215 + yym1220 := z.EncBinary() + _ = yym1220 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1216 := !z.EncBinary() - yy2arr1216 := z.EncBasicHandle().StructToArray - var yyq1216 [2]bool - _, _, _ = yysep1216, yyq1216, yy2arr1216 - const yyr1216 bool = false - yyq1216[0] = x.Protocol != nil - yyq1216[1] = x.Port != nil - var yynn1216 int - if yyr1216 || yy2arr1216 { + yysep1221 := !z.EncBinary() + yy2arr1221 := z.EncBasicHandle().StructToArray + var yyq1221 [2]bool + _, _, _ = yysep1221, yyq1221, yy2arr1221 + const yyr1221 bool = false + yyq1221[0] = x.Protocol != nil + yyq1221[1] = x.Port != nil + var yynn1221 int + if yyr1221 || yy2arr1221 { r.EncodeArrayStart(2) } else { - yynn1216 = 0 - for _, b := range yyq1216 { + yynn1221 = 0 + for _, b := range yyq1221 { if b { - yynn1216++ + yynn1221++ } } - r.EncodeMapStart(yynn1216) - yynn1216 = 0 + r.EncodeMapStart(yynn1221) + yynn1221 = 0 } - if yyr1216 || yy2arr1216 { + if yyr1221 || yy2arr1221 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1216[0] { + if yyq1221[0] { if x.Protocol == nil { r.EncodeNil() } else { - yy1218 := *x.Protocol - yym1219 := z.EncBinary() - _ = yym1219 + yy1223 := *x.Protocol + yym1224 := z.EncBinary() + _ = yym1224 if false { - } else if z.HasExtensions() && z.EncExt(yy1218) { + } else if z.HasExtensions() && z.EncExt(yy1223) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1218)) + r.EncodeString(codecSelferC_UTF81234, string(yy1223)) } } } else { r.EncodeNil() } } else { - if yyq1216[0] { + if yyq1221[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Protocol == nil { r.EncodeNil() } else { - yy1220 := *x.Protocol - yym1221 := z.EncBinary() - _ = yym1221 + yy1225 := *x.Protocol + yym1226 := z.EncBinary() + _ = yym1226 if false { - } else if z.HasExtensions() && z.EncExt(yy1220) { + } else if z.HasExtensions() && z.EncExt(yy1225) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1220)) + r.EncodeString(codecSelferC_UTF81234, string(yy1225)) } } } } - if yyr1216 || yy2arr1216 { + if yyr1221 || yy2arr1221 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1216[1] { + if yyq1221[1] { if x.Port == nil { r.EncodeNil() } else { - yym1223 := z.EncBinary() - _ = yym1223 + yym1228 := z.EncBinary() + _ = yym1228 if false { } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym1223 && z.IsJSONHandle() { + } else if !yym1228 && z.IsJSONHandle() { z.EncJSONMarshal(x.Port) } else { z.EncFallback(x.Port) @@ -14703,18 +14751,18 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1216[1] { + if yyq1221[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Port == nil { r.EncodeNil() } else { - yym1224 := z.EncBinary() - _ = yym1224 + yym1229 := z.EncBinary() + _ = yym1229 if false { } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym1224 && z.IsJSONHandle() { + } else if !yym1229 && z.IsJSONHandle() { z.EncJSONMarshal(x.Port) } else { z.EncFallback(x.Port) @@ -14722,7 +14770,7 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1216 || yy2arr1216 { + if yyr1221 || yy2arr1221 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -14735,25 +14783,25 @@ func (x *NetworkPolicyPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1225 := z.DecBinary() - _ = yym1225 + yym1230 := z.DecBinary() + _ = yym1230 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1226 := r.ContainerType() - if yyct1226 == codecSelferValueTypeMap1234 { - yyl1226 := r.ReadMapStart() - if yyl1226 == 0 { + yyct1231 := r.ContainerType() + if yyct1231 == codecSelferValueTypeMap1234 { + yyl1231 := r.ReadMapStart() + if yyl1231 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1226, d) + x.codecDecodeSelfFromMap(yyl1231, d) } - } else if yyct1226 == codecSelferValueTypeArray1234 { - yyl1226 := r.ReadArrayStart() - if yyl1226 == 0 { + } else if yyct1231 == codecSelferValueTypeArray1234 { + yyl1231 := r.ReadArrayStart() + if yyl1231 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1226, d) + x.codecDecodeSelfFromArray(yyl1231, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -14765,12 +14813,12 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1227Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1227Slc - var yyhl1227 bool = l >= 0 - for yyj1227 := 0; ; yyj1227++ { - if yyhl1227 { - if yyj1227 >= l { + var yys1232Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1232Slc + var yyhl1232 bool = l >= 0 + for yyj1232 := 0; ; yyj1232++ { + if yyhl1232 { + if yyj1232 >= l { break } } else { @@ -14779,10 +14827,10 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1227Slc = r.DecodeBytes(yys1227Slc, true, true) - yys1227 := string(yys1227Slc) + yys1232Slc = r.DecodeBytes(yys1232Slc, true, true) + yys1232 := string(yys1232Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1227 { + switch yys1232 { case "protocol": if r.TryDecodeAsNil() { if x.Protocol != nil { @@ -14803,20 +14851,20 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.Port == nil { x.Port = new(pkg5_intstr.IntOrString) } - yym1230 := z.DecBinary() - _ = yym1230 + yym1235 := z.DecBinary() + _ = yym1235 if false { } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym1230 && z.IsJSONHandle() { + } else if !yym1235 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.Port) } else { z.DecFallback(x.Port, false) } } default: - z.DecStructFieldNotFound(-1, yys1227) - } // end switch yys1227 - } // end for yyj1227 + z.DecStructFieldNotFound(-1, yys1232) + } // end switch yys1232 + } // end for yyj1232 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -14824,16 +14872,16 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1231 int - var yyb1231 bool - var yyhl1231 bool = l >= 0 - yyj1231++ - if yyhl1231 { - yyb1231 = yyj1231 > l + var yyj1236 int + var yyb1236 bool + var yyhl1236 bool = l >= 0 + yyj1236++ + if yyhl1236 { + yyb1236 = yyj1236 > l } else { - yyb1231 = r.CheckBreak() + yyb1236 = r.CheckBreak() } - if yyb1231 { + if yyb1236 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14848,13 +14896,13 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } x.Protocol.CodecDecodeSelf(d) } - yyj1231++ - if yyhl1231 { - yyb1231 = yyj1231 > l + yyj1236++ + if yyhl1236 { + yyb1236 = yyj1236 > l } else { - yyb1231 = r.CheckBreak() + yyb1236 = r.CheckBreak() } - if yyb1231 { + if yyb1236 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -14867,28 +14915,28 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.Port == nil { x.Port = new(pkg5_intstr.IntOrString) } - yym1234 := z.DecBinary() - _ = yym1234 + yym1239 := z.DecBinary() + _ = yym1239 if false { } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym1234 && z.IsJSONHandle() { + } else if !yym1239 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.Port) } else { z.DecFallback(x.Port, false) } } for { - yyj1231++ - if yyhl1231 { - yyb1231 = yyj1231 > l + yyj1236++ + if yyhl1236 { + yyb1236 = yyj1236 > l } else { - yyb1231 = r.CheckBreak() + yyb1236 = r.CheckBreak() } - if yyb1231 { + if yyb1236 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1231-1, "") + z.DecStructFieldNotFound(yyj1236-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -14900,39 +14948,39 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1235 := z.EncBinary() - _ = yym1235 + yym1240 := z.EncBinary() + _ = yym1240 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1236 := !z.EncBinary() - yy2arr1236 := z.EncBasicHandle().StructToArray - var yyq1236 [2]bool - _, _, _ = yysep1236, yyq1236, yy2arr1236 - const yyr1236 bool = false - yyq1236[0] = x.PodSelector != nil - yyq1236[1] = x.NamespaceSelector != nil - var yynn1236 int - if yyr1236 || yy2arr1236 { + yysep1241 := !z.EncBinary() + yy2arr1241 := z.EncBasicHandle().StructToArray + var yyq1241 [2]bool + _, _, _ = yysep1241, yyq1241, yy2arr1241 + const yyr1241 bool = false + yyq1241[0] = x.PodSelector != nil + yyq1241[1] = x.NamespaceSelector != nil + var yynn1241 int + if yyr1241 || yy2arr1241 { r.EncodeArrayStart(2) } else { - yynn1236 = 0 - for _, b := range yyq1236 { + yynn1241 = 0 + for _, b := range yyq1241 { if b { - yynn1236++ + yynn1241++ } } - r.EncodeMapStart(yynn1236) - yynn1236 = 0 + r.EncodeMapStart(yynn1241) + yynn1241 = 0 } - if yyr1236 || yy2arr1236 { + if yyr1241 || yy2arr1241 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1236[0] { + if yyq1241[0] { if x.PodSelector == nil { r.EncodeNil() } else { - yym1238 := z.EncBinary() - _ = yym1238 + yym1243 := z.EncBinary() + _ = yym1243 if false { } else if z.HasExtensions() && z.EncExt(x.PodSelector) { } else { @@ -14943,15 +14991,15 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1236[0] { + if yyq1241[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PodSelector == nil { r.EncodeNil() } else { - yym1239 := z.EncBinary() - _ = yym1239 + yym1244 := z.EncBinary() + _ = yym1244 if false { } else if z.HasExtensions() && z.EncExt(x.PodSelector) { } else { @@ -14960,14 +15008,14 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1236 || yy2arr1236 { + if yyr1241 || yy2arr1241 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1236[1] { + if yyq1241[1] { if x.NamespaceSelector == nil { r.EncodeNil() } else { - yym1241 := z.EncBinary() - _ = yym1241 + yym1246 := z.EncBinary() + _ = yym1246 if false { } else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) { } else { @@ -14978,15 +15026,15 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1236[1] { + if yyq1241[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespaceSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NamespaceSelector == nil { r.EncodeNil() } else { - yym1242 := z.EncBinary() - _ = yym1242 + yym1247 := z.EncBinary() + _ = yym1247 if false { } else if z.HasExtensions() && z.EncExt(x.NamespaceSelector) { } else { @@ -14995,7 +15043,7 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1236 || yy2arr1236 { + if yyr1241 || yy2arr1241 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15008,25 +15056,25 @@ func (x *NetworkPolicyPeer) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1243 := z.DecBinary() - _ = yym1243 + yym1248 := z.DecBinary() + _ = yym1248 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1244 := r.ContainerType() - if yyct1244 == codecSelferValueTypeMap1234 { - yyl1244 := r.ReadMapStart() - if yyl1244 == 0 { + yyct1249 := r.ContainerType() + if yyct1249 == codecSelferValueTypeMap1234 { + yyl1249 := r.ReadMapStart() + if yyl1249 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1244, d) + x.codecDecodeSelfFromMap(yyl1249, d) } - } else if yyct1244 == codecSelferValueTypeArray1234 { - yyl1244 := r.ReadArrayStart() - if yyl1244 == 0 { + } else if yyct1249 == codecSelferValueTypeArray1234 { + yyl1249 := r.ReadArrayStart() + if yyl1249 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1244, d) + x.codecDecodeSelfFromArray(yyl1249, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15038,12 +15086,12 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1245Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1245Slc - var yyhl1245 bool = l >= 0 - for yyj1245 := 0; ; yyj1245++ { - if yyhl1245 { - if yyj1245 >= l { + var yys1250Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1250Slc + var yyhl1250 bool = l >= 0 + for yyj1250 := 0; ; yyj1250++ { + if yyhl1250 { + if yyj1250 >= l { break } } else { @@ -15052,10 +15100,10 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1245Slc = r.DecodeBytes(yys1245Slc, true, true) - yys1245 := string(yys1245Slc) + yys1250Slc = r.DecodeBytes(yys1250Slc, true, true) + yys1250 := string(yys1250Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1245 { + switch yys1250 { case "podSelector": if r.TryDecodeAsNil() { if x.PodSelector != nil { @@ -15065,8 +15113,8 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.PodSelector == nil { x.PodSelector = new(pkg1_unversioned.LabelSelector) } - yym1247 := z.DecBinary() - _ = yym1247 + yym1252 := z.DecBinary() + _ = yym1252 if false { } else if z.HasExtensions() && z.DecExt(x.PodSelector) { } else { @@ -15082,8 +15130,8 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.NamespaceSelector == nil { x.NamespaceSelector = new(pkg1_unversioned.LabelSelector) } - yym1249 := z.DecBinary() - _ = yym1249 + yym1254 := z.DecBinary() + _ = yym1254 if false { } else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) { } else { @@ -15091,9 +15139,9 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } default: - z.DecStructFieldNotFound(-1, yys1245) - } // end switch yys1245 - } // end for yyj1245 + z.DecStructFieldNotFound(-1, yys1250) + } // end switch yys1250 + } // end for yyj1250 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15101,16 +15149,16 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1250 int - var yyb1250 bool - var yyhl1250 bool = l >= 0 - yyj1250++ - if yyhl1250 { - yyb1250 = yyj1250 > l + var yyj1255 int + var yyb1255 bool + var yyhl1255 bool = l >= 0 + yyj1255++ + if yyhl1255 { + yyb1255 = yyj1255 > l } else { - yyb1250 = r.CheckBreak() + yyb1255 = r.CheckBreak() } - if yyb1250 { + if yyb1255 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15123,21 +15171,21 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.PodSelector == nil { x.PodSelector = new(pkg1_unversioned.LabelSelector) } - yym1252 := z.DecBinary() - _ = yym1252 + yym1257 := z.DecBinary() + _ = yym1257 if false { } else if z.HasExtensions() && z.DecExt(x.PodSelector) { } else { z.DecFallback(x.PodSelector, false) } } - yyj1250++ - if yyhl1250 { - yyb1250 = yyj1250 > l + yyj1255++ + if yyhl1255 { + yyb1255 = yyj1255 > l } else { - yyb1250 = r.CheckBreak() + yyb1255 = r.CheckBreak() } - if yyb1250 { + if yyb1255 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15150,8 +15198,8 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.NamespaceSelector == nil { x.NamespaceSelector = new(pkg1_unversioned.LabelSelector) } - yym1254 := z.DecBinary() - _ = yym1254 + yym1259 := z.DecBinary() + _ = yym1259 if false { } else if z.HasExtensions() && z.DecExt(x.NamespaceSelector) { } else { @@ -15159,17 +15207,17 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } } for { - yyj1250++ - if yyhl1250 { - yyb1250 = yyj1250 > l + yyj1255++ + if yyhl1255 { + yyb1255 = yyj1255 > l } else { - yyb1250 = r.CheckBreak() + yyb1255 = r.CheckBreak() } - if yyb1250 { + if yyb1255 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1250-1, "") + z.DecStructFieldNotFound(yyj1255-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15181,37 +15229,37 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1255 := z.EncBinary() - _ = yym1255 + yym1260 := z.EncBinary() + _ = yym1260 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1256 := !z.EncBinary() - yy2arr1256 := z.EncBasicHandle().StructToArray - var yyq1256 [4]bool - _, _, _ = yysep1256, yyq1256, yy2arr1256 - const yyr1256 bool = false - yyq1256[0] = x.Kind != "" - yyq1256[1] = x.APIVersion != "" - yyq1256[2] = true - var yynn1256 int - if yyr1256 || yy2arr1256 { + yysep1261 := !z.EncBinary() + yy2arr1261 := z.EncBasicHandle().StructToArray + var yyq1261 [4]bool + _, _, _ = yysep1261, yyq1261, yy2arr1261 + const yyr1261 bool = false + yyq1261[0] = x.Kind != "" + yyq1261[1] = x.APIVersion != "" + yyq1261[2] = true + var yynn1261 int + if yyr1261 || yy2arr1261 { r.EncodeArrayStart(4) } else { - yynn1256 = 1 - for _, b := range yyq1256 { + yynn1261 = 1 + for _, b := range yyq1261 { if b { - yynn1256++ + yynn1261++ } } - r.EncodeMapStart(yynn1256) - yynn1256 = 0 + r.EncodeMapStart(yynn1261) + yynn1261 = 0 } - if yyr1256 || yy2arr1256 { + if yyr1261 || yy2arr1261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1256[0] { - yym1258 := z.EncBinary() - _ = yym1258 + if yyq1261[0] { + yym1263 := z.EncBinary() + _ = yym1263 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -15220,23 +15268,23 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1256[0] { + if yyq1261[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1259 := z.EncBinary() - _ = yym1259 + yym1264 := z.EncBinary() + _ = yym1264 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1256 || yy2arr1256 { + if yyr1261 || yy2arr1261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1256[1] { - yym1261 := z.EncBinary() - _ = yym1261 + if yyq1261[1] { + yym1266 := z.EncBinary() + _ = yym1266 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -15245,54 +15293,54 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1256[1] { + if yyq1261[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1262 := z.EncBinary() - _ = yym1262 + yym1267 := z.EncBinary() + _ = yym1267 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1256 || yy2arr1256 { + if yyr1261 || yy2arr1261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1256[2] { - yy1264 := &x.ListMeta - yym1265 := z.EncBinary() - _ = yym1265 + if yyq1261[2] { + yy1269 := &x.ListMeta + yym1270 := z.EncBinary() + _ = yym1270 if false { - } else if z.HasExtensions() && z.EncExt(yy1264) { + } else if z.HasExtensions() && z.EncExt(yy1269) { } else { - z.EncFallback(yy1264) + z.EncFallback(yy1269) } } else { r.EncodeNil() } } else { - if yyq1256[2] { + if yyq1261[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1266 := &x.ListMeta - yym1267 := z.EncBinary() - _ = yym1267 + yy1271 := &x.ListMeta + yym1272 := z.EncBinary() + _ = yym1272 if false { - } else if z.HasExtensions() && z.EncExt(yy1266) { + } else if z.HasExtensions() && z.EncExt(yy1271) { } else { - z.EncFallback(yy1266) + z.EncFallback(yy1271) } } } - if yyr1256 || yy2arr1256 { + if yyr1261 || yy2arr1261 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1269 := z.EncBinary() - _ = yym1269 + yym1274 := z.EncBinary() + _ = yym1274 if false { } else { h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) @@ -15305,15 +15353,15 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1270 := z.EncBinary() - _ = yym1270 + yym1275 := z.EncBinary() + _ = yym1275 if false { } else { h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) } } } - if yyr1256 || yy2arr1256 { + if yyr1261 || yy2arr1261 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15326,25 +15374,25 @@ func (x *NetworkPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1271 := z.DecBinary() - _ = yym1271 + yym1276 := z.DecBinary() + _ = yym1276 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1272 := r.ContainerType() - if yyct1272 == codecSelferValueTypeMap1234 { - yyl1272 := r.ReadMapStart() - if yyl1272 == 0 { + yyct1277 := r.ContainerType() + if yyct1277 == codecSelferValueTypeMap1234 { + yyl1277 := r.ReadMapStart() + if yyl1277 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1272, d) + x.codecDecodeSelfFromMap(yyl1277, d) } - } else if yyct1272 == codecSelferValueTypeArray1234 { - yyl1272 := r.ReadArrayStart() - if yyl1272 == 0 { + } else if yyct1277 == codecSelferValueTypeArray1234 { + yyl1277 := r.ReadArrayStart() + if yyl1277 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1272, d) + x.codecDecodeSelfFromArray(yyl1277, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15356,12 +15404,12 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1273Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1273Slc - var yyhl1273 bool = l >= 0 - for yyj1273 := 0; ; yyj1273++ { - if yyhl1273 { - if yyj1273 >= l { + var yys1278Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1278Slc + var yyhl1278 bool = l >= 0 + for yyj1278 := 0; ; yyj1278++ { + if yyhl1278 { + if yyj1278 >= l { break } } else { @@ -15370,10 +15418,10 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1273Slc = r.DecodeBytes(yys1273Slc, true, true) - yys1273 := string(yys1273Slc) + yys1278Slc = r.DecodeBytes(yys1278Slc, true, true) + yys1278 := string(yys1278Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1273 { + switch yys1278 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -15390,31 +15438,31 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1276 := &x.ListMeta - yym1277 := z.DecBinary() - _ = yym1277 + yyv1281 := &x.ListMeta + yym1282 := z.DecBinary() + _ = yym1282 if false { - } else if z.HasExtensions() && z.DecExt(yyv1276) { + } else if z.HasExtensions() && z.DecExt(yyv1281) { } else { - z.DecFallback(yyv1276, false) + z.DecFallback(yyv1281, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1278 := &x.Items - yym1279 := z.DecBinary() - _ = yym1279 + yyv1283 := &x.Items + yym1284 := z.DecBinary() + _ = yym1284 if false { } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1278), d) + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1283), d) } } default: - z.DecStructFieldNotFound(-1, yys1273) - } // end switch yys1273 - } // end for yyj1273 + z.DecStructFieldNotFound(-1, yys1278) + } // end switch yys1278 + } // end for yyj1278 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15422,16 +15470,16 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1280 int - var yyb1280 bool - var yyhl1280 bool = l >= 0 - yyj1280++ - if yyhl1280 { - yyb1280 = yyj1280 > l + var yyj1285 int + var yyb1285 bool + var yyhl1285 bool = l >= 0 + yyj1285++ + if yyhl1285 { + yyb1285 = yyj1285 > l } else { - yyb1280 = r.CheckBreak() + yyb1285 = r.CheckBreak() } - if yyb1280 { + if yyb1285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15441,13 +15489,13 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj1280++ - if yyhl1280 { - yyb1280 = yyj1280 > l + yyj1285++ + if yyhl1285 { + yyb1285 = yyj1285 > l } else { - yyb1280 = r.CheckBreak() + yyb1285 = r.CheckBreak() } - if yyb1280 { + if yyb1285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15457,13 +15505,13 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj1280++ - if yyhl1280 { - yyb1280 = yyj1280 > l + yyj1285++ + if yyhl1285 { + yyb1285 = yyj1285 > l } else { - yyb1280 = r.CheckBreak() + yyb1285 = r.CheckBreak() } - if yyb1280 { + if yyb1285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15471,22 +15519,22 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1283 := &x.ListMeta - yym1284 := z.DecBinary() - _ = yym1284 + yyv1288 := &x.ListMeta + yym1289 := z.DecBinary() + _ = yym1289 if false { - } else if z.HasExtensions() && z.DecExt(yyv1283) { + } else if z.HasExtensions() && z.DecExt(yyv1288) { } else { - z.DecFallback(yyv1283, false) + z.DecFallback(yyv1288, false) } } - yyj1280++ - if yyhl1280 { - yyb1280 = yyj1280 > l + yyj1285++ + if yyhl1285 { + yyb1285 = yyj1285 > l } else { - yyb1280 = r.CheckBreak() + yyb1285 = r.CheckBreak() } - if yyb1280 { + if yyb1285 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15494,26 +15542,26 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1285 := &x.Items - yym1286 := z.DecBinary() - _ = yym1286 + yyv1290 := &x.Items + yym1291 := z.DecBinary() + _ = yym1291 if false { } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1285), d) + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1290), d) } } for { - yyj1280++ - if yyhl1280 { - yyb1280 = yyj1280 > l + yyj1285++ + if yyhl1285 { + yyb1285 = yyj1285 > l } else { - yyb1280 = r.CheckBreak() + yyb1285 = r.CheckBreak() } - if yyb1280 { + if yyb1285 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1280-1, "") + z.DecStructFieldNotFound(yyj1285-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15525,38 +15573,38 @@ func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1287 := z.EncBinary() - _ = yym1287 + yym1292 := z.EncBinary() + _ = yym1292 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1288 := !z.EncBinary() - yy2arr1288 := z.EncBasicHandle().StructToArray - var yyq1288 [5]bool - _, _, _ = yysep1288, yyq1288, yy2arr1288 - const yyr1288 bool = false - yyq1288[0] = x.Kind != "" - yyq1288[1] = x.APIVersion != "" - yyq1288[2] = true - yyq1288[4] = len(x.Parameters) != 0 - var yynn1288 int - if yyr1288 || yy2arr1288 { + yysep1293 := !z.EncBinary() + yy2arr1293 := z.EncBasicHandle().StructToArray + var yyq1293 [5]bool + _, _, _ = yysep1293, yyq1293, yy2arr1293 + const yyr1293 bool = false + yyq1293[0] = x.Kind != "" + yyq1293[1] = x.APIVersion != "" + yyq1293[2] = true + yyq1293[4] = len(x.Parameters) != 0 + var yynn1293 int + if yyr1293 || yy2arr1293 { r.EncodeArrayStart(5) } else { - yynn1288 = 1 - for _, b := range yyq1288 { + yynn1293 = 1 + for _, b := range yyq1293 { if b { - yynn1288++ + yynn1293++ } } - r.EncodeMapStart(yynn1288) - yynn1288 = 0 + r.EncodeMapStart(yynn1293) + yynn1293 = 0 } - if yyr1288 || yy2arr1288 { + if yyr1293 || yy2arr1293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1288[0] { - yym1290 := z.EncBinary() - _ = yym1290 + if yyq1293[0] { + yym1295 := z.EncBinary() + _ = yym1295 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -15565,23 +15613,23 @@ func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1288[0] { + if yyq1293[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1291 := z.EncBinary() - _ = yym1291 + yym1296 := z.EncBinary() + _ = yym1296 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1288 || yy2arr1288 { + if yyr1293 || yy2arr1293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1288[1] { - yym1293 := z.EncBinary() - _ = yym1293 + if yyq1293[1] { + yym1298 := z.EncBinary() + _ = yym1298 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -15590,39 +15638,39 @@ func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1288[1] { + if yyq1293[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1294 := z.EncBinary() - _ = yym1294 + yym1299 := z.EncBinary() + _ = yym1299 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1288 || yy2arr1288 { + if yyr1293 || yy2arr1293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1288[2] { - yy1296 := &x.ObjectMeta - yy1296.CodecEncodeSelf(e) + if yyq1293[2] { + yy1301 := &x.ObjectMeta + yy1301.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1288[2] { + if yyq1293[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1297 := &x.ObjectMeta - yy1297.CodecEncodeSelf(e) + yy1302 := &x.ObjectMeta + yy1302.CodecEncodeSelf(e) } } - if yyr1288 || yy2arr1288 { + if yyr1293 || yy2arr1293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1299 := z.EncBinary() - _ = yym1299 + yym1304 := z.EncBinary() + _ = yym1304 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Provisioner)) @@ -15631,21 +15679,21 @@ func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("provisioner")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1300 := z.EncBinary() - _ = yym1300 + yym1305 := z.EncBinary() + _ = yym1305 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Provisioner)) } } - if yyr1288 || yy2arr1288 { + if yyr1293 || yy2arr1293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1288[4] { + if yyq1293[4] { if x.Parameters == nil { r.EncodeNil() } else { - yym1302 := z.EncBinary() - _ = yym1302 + yym1307 := z.EncBinary() + _ = yym1307 if false { } else { z.F.EncMapStringStringV(x.Parameters, false, e) @@ -15655,15 +15703,15 @@ func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1288[4] { + if yyq1293[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("parameters")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Parameters == nil { r.EncodeNil() } else { - yym1303 := z.EncBinary() - _ = yym1303 + yym1308 := z.EncBinary() + _ = yym1308 if false { } else { z.F.EncMapStringStringV(x.Parameters, false, e) @@ -15671,7 +15719,7 @@ func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1288 || yy2arr1288 { + if yyr1293 || yy2arr1293 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -15684,25 +15732,25 @@ func (x *StorageClass) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1304 := z.DecBinary() - _ = yym1304 + yym1309 := z.DecBinary() + _ = yym1309 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1305 := r.ContainerType() - if yyct1305 == codecSelferValueTypeMap1234 { - yyl1305 := r.ReadMapStart() - if yyl1305 == 0 { + yyct1310 := r.ContainerType() + if yyct1310 == codecSelferValueTypeMap1234 { + yyl1310 := r.ReadMapStart() + if yyl1310 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1305, d) + x.codecDecodeSelfFromMap(yyl1310, d) } - } else if yyct1305 == codecSelferValueTypeArray1234 { - yyl1305 := r.ReadArrayStart() - if yyl1305 == 0 { + } else if yyct1310 == codecSelferValueTypeArray1234 { + yyl1310 := r.ReadArrayStart() + if yyl1310 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1305, d) + x.codecDecodeSelfFromArray(yyl1310, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -15714,12 +15762,12 @@ func (x *StorageClass) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1306Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1306Slc - var yyhl1306 bool = l >= 0 - for yyj1306 := 0; ; yyj1306++ { - if yyhl1306 { - if yyj1306 >= l { + var yys1311Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1311Slc + var yyhl1311 bool = l >= 0 + for yyj1311 := 0; ; yyj1311++ { + if yyhl1311 { + if yyj1311 >= l { break } } else { @@ -15728,10 +15776,10 @@ func (x *StorageClass) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1306Slc = r.DecodeBytes(yys1306Slc, true, true) - yys1306 := string(yys1306Slc) + yys1311Slc = r.DecodeBytes(yys1311Slc, true, true) + yys1311 := string(yys1311Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1306 { + switch yys1311 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -15748,8 +15796,8 @@ func (x *StorageClass) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv1309 := &x.ObjectMeta - yyv1309.CodecDecodeSelf(d) + yyv1314 := &x.ObjectMeta + yyv1314.CodecDecodeSelf(d) } case "provisioner": if r.TryDecodeAsNil() { @@ -15761,18 +15809,18 @@ func (x *StorageClass) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Parameters = nil } else { - yyv1311 := &x.Parameters - yym1312 := z.DecBinary() - _ = yym1312 + yyv1316 := &x.Parameters + yym1317 := z.DecBinary() + _ = yym1317 if false { } else { - z.F.DecMapStringStringX(yyv1311, false, d) + z.F.DecMapStringStringX(yyv1316, false, d) } } default: - z.DecStructFieldNotFound(-1, yys1306) - } // end switch yys1306 - } // end for yyj1306 + z.DecStructFieldNotFound(-1, yys1311) + } // end switch yys1311 + } // end for yyj1311 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -15780,16 +15828,16 @@ func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1313 int - var yyb1313 bool - var yyhl1313 bool = l >= 0 - yyj1313++ - if yyhl1313 { - yyb1313 = yyj1313 > l + var yyj1318 int + var yyb1318 bool + var yyhl1318 bool = l >= 0 + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l } else { - yyb1313 = r.CheckBreak() + yyb1318 = r.CheckBreak() } - if yyb1313 { + if yyb1318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15799,13 +15847,13 @@ func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj1313++ - if yyhl1313 { - yyb1313 = yyj1313 > l + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l } else { - yyb1313 = r.CheckBreak() + yyb1318 = r.CheckBreak() } - if yyb1313 { + if yyb1318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15815,13 +15863,13 @@ func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj1313++ - if yyhl1313 { - yyb1313 = yyj1313 > l + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l } else { - yyb1313 = r.CheckBreak() + yyb1318 = r.CheckBreak() } - if yyb1313 { + if yyb1318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15829,16 +15877,16 @@ func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_api.ObjectMeta{} } else { - yyv1316 := &x.ObjectMeta - yyv1316.CodecDecodeSelf(d) + yyv1321 := &x.ObjectMeta + yyv1321.CodecDecodeSelf(d) } - yyj1313++ - if yyhl1313 { - yyb1313 = yyj1313 > l + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l } else { - yyb1313 = r.CheckBreak() + yyb1318 = r.CheckBreak() } - if yyb1313 { + if yyb1318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15848,13 +15896,13 @@ func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Provisioner = string(r.DecodeString()) } - yyj1313++ - if yyhl1313 { - yyb1313 = yyj1313 > l + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l } else { - yyb1313 = r.CheckBreak() + yyb1318 = r.CheckBreak() } - if yyb1313 { + if yyb1318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -15862,26 +15910,26 @@ func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Parameters = nil } else { - yyv1318 := &x.Parameters - yym1319 := z.DecBinary() - _ = yym1319 + yyv1323 := &x.Parameters + yym1324 := z.DecBinary() + _ = yym1324 if false { } else { - z.F.DecMapStringStringX(yyv1318, false, d) + z.F.DecMapStringStringX(yyv1323, false, d) } } for { - yyj1313++ - if yyhl1313 { - yyb1313 = yyj1313 > l + yyj1318++ + if yyhl1318 { + yyb1318 = yyj1318 > l } else { - yyb1313 = r.CheckBreak() + yyb1318 = r.CheckBreak() } - if yyb1313 { + if yyb1318 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1313-1, "") + z.DecStructFieldNotFound(yyj1318-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -15893,37 +15941,37 @@ func (x *StorageClassList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1320 := z.EncBinary() - _ = yym1320 + yym1325 := z.EncBinary() + _ = yym1325 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1321 := !z.EncBinary() - yy2arr1321 := z.EncBasicHandle().StructToArray - var yyq1321 [4]bool - _, _, _ = yysep1321, yyq1321, yy2arr1321 - const yyr1321 bool = false - yyq1321[0] = x.Kind != "" - yyq1321[1] = x.APIVersion != "" - yyq1321[2] = true - var yynn1321 int - if yyr1321 || yy2arr1321 { + yysep1326 := !z.EncBinary() + yy2arr1326 := z.EncBasicHandle().StructToArray + var yyq1326 [4]bool + _, _, _ = yysep1326, yyq1326, yy2arr1326 + const yyr1326 bool = false + yyq1326[0] = x.Kind != "" + yyq1326[1] = x.APIVersion != "" + yyq1326[2] = true + var yynn1326 int + if yyr1326 || yy2arr1326 { r.EncodeArrayStart(4) } else { - yynn1321 = 1 - for _, b := range yyq1321 { + yynn1326 = 1 + for _, b := range yyq1326 { if b { - yynn1321++ + yynn1326++ } } - r.EncodeMapStart(yynn1321) - yynn1321 = 0 + r.EncodeMapStart(yynn1326) + yynn1326 = 0 } - if yyr1321 || yy2arr1321 { + if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1321[0] { - yym1323 := z.EncBinary() - _ = yym1323 + if yyq1326[0] { + yym1328 := z.EncBinary() + _ = yym1328 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -15932,23 +15980,23 @@ func (x *StorageClassList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1321[0] { + if yyq1326[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1324 := z.EncBinary() - _ = yym1324 + yym1329 := z.EncBinary() + _ = yym1329 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1321 || yy2arr1321 { + if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1321[1] { - yym1326 := z.EncBinary() - _ = yym1326 + if yyq1326[1] { + yym1331 := z.EncBinary() + _ = yym1331 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -15957,54 +16005,54 @@ func (x *StorageClassList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1321[1] { + if yyq1326[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1327 := z.EncBinary() - _ = yym1327 + yym1332 := z.EncBinary() + _ = yym1332 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1321 || yy2arr1321 { + if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1321[2] { - yy1329 := &x.ListMeta - yym1330 := z.EncBinary() - _ = yym1330 + if yyq1326[2] { + yy1334 := &x.ListMeta + yym1335 := z.EncBinary() + _ = yym1335 if false { - } else if z.HasExtensions() && z.EncExt(yy1329) { + } else if z.HasExtensions() && z.EncExt(yy1334) { } else { - z.EncFallback(yy1329) + z.EncFallback(yy1334) } } else { r.EncodeNil() } } else { - if yyq1321[2] { + if yyq1326[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1331 := &x.ListMeta - yym1332 := z.EncBinary() - _ = yym1332 + yy1336 := &x.ListMeta + yym1337 := z.EncBinary() + _ = yym1337 if false { - } else if z.HasExtensions() && z.EncExt(yy1331) { + } else if z.HasExtensions() && z.EncExt(yy1336) { } else { - z.EncFallback(yy1331) + z.EncFallback(yy1336) } } } - if yyr1321 || yy2arr1321 { + if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1334 := z.EncBinary() - _ = yym1334 + yym1339 := z.EncBinary() + _ = yym1339 if false { } else { h.encSliceStorageClass(([]StorageClass)(x.Items), e) @@ -16017,15 +16065,15 @@ func (x *StorageClassList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1335 := z.EncBinary() - _ = yym1335 + yym1340 := z.EncBinary() + _ = yym1340 if false { } else { h.encSliceStorageClass(([]StorageClass)(x.Items), e) } } } - if yyr1321 || yy2arr1321 { + if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16038,25 +16086,25 @@ func (x *StorageClassList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1336 := z.DecBinary() - _ = yym1336 + yym1341 := z.DecBinary() + _ = yym1341 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1337 := r.ContainerType() - if yyct1337 == codecSelferValueTypeMap1234 { - yyl1337 := r.ReadMapStart() - if yyl1337 == 0 { + yyct1342 := r.ContainerType() + if yyct1342 == codecSelferValueTypeMap1234 { + yyl1342 := r.ReadMapStart() + if yyl1342 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1337, d) + x.codecDecodeSelfFromMap(yyl1342, d) } - } else if yyct1337 == codecSelferValueTypeArray1234 { - yyl1337 := r.ReadArrayStart() - if yyl1337 == 0 { + } else if yyct1342 == codecSelferValueTypeArray1234 { + yyl1342 := r.ReadArrayStart() + if yyl1342 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1337, d) + x.codecDecodeSelfFromArray(yyl1342, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16068,12 +16116,12 @@ func (x *StorageClassList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1338Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1338Slc - var yyhl1338 bool = l >= 0 - for yyj1338 := 0; ; yyj1338++ { - if yyhl1338 { - if yyj1338 >= l { + var yys1343Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1343Slc + var yyhl1343 bool = l >= 0 + for yyj1343 := 0; ; yyj1343++ { + if yyhl1343 { + if yyj1343 >= l { break } } else { @@ -16082,10 +16130,10 @@ func (x *StorageClassList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1338Slc = r.DecodeBytes(yys1338Slc, true, true) - yys1338 := string(yys1338Slc) + yys1343Slc = r.DecodeBytes(yys1343Slc, true, true) + yys1343 := string(yys1343Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1338 { + switch yys1343 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -16102,31 +16150,31 @@ func (x *StorageClassList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1341 := &x.ListMeta - yym1342 := z.DecBinary() - _ = yym1342 + yyv1346 := &x.ListMeta + yym1347 := z.DecBinary() + _ = yym1347 if false { - } else if z.HasExtensions() && z.DecExt(yyv1341) { + } else if z.HasExtensions() && z.DecExt(yyv1346) { } else { - z.DecFallback(yyv1341, false) + z.DecFallback(yyv1346, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1343 := &x.Items - yym1344 := z.DecBinary() - _ = yym1344 + yyv1348 := &x.Items + yym1349 := z.DecBinary() + _ = yym1349 if false { } else { - h.decSliceStorageClass((*[]StorageClass)(yyv1343), d) + h.decSliceStorageClass((*[]StorageClass)(yyv1348), d) } } default: - z.DecStructFieldNotFound(-1, yys1338) - } // end switch yys1338 - } // end for yyj1338 + z.DecStructFieldNotFound(-1, yys1343) + } // end switch yys1343 + } // end for yyj1343 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16134,16 +16182,16 @@ func (x *StorageClassList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1345 int - var yyb1345 bool - var yyhl1345 bool = l >= 0 - yyj1345++ - if yyhl1345 { - yyb1345 = yyj1345 > l + var yyj1350 int + var yyb1350 bool + var yyhl1350 bool = l >= 0 + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l } else { - yyb1345 = r.CheckBreak() + yyb1350 = r.CheckBreak() } - if yyb1345 { + if yyb1350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16153,13 +16201,13 @@ func (x *StorageClassList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj1345++ - if yyhl1345 { - yyb1345 = yyj1345 > l + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l } else { - yyb1345 = r.CheckBreak() + yyb1350 = r.CheckBreak() } - if yyb1345 { + if yyb1350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16169,13 +16217,13 @@ func (x *StorageClassList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj1345++ - if yyhl1345 { - yyb1345 = yyj1345 > l + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l } else { - yyb1345 = r.CheckBreak() + yyb1350 = r.CheckBreak() } - if yyb1345 { + if yyb1350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16183,22 +16231,22 @@ func (x *StorageClassList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1348 := &x.ListMeta - yym1349 := z.DecBinary() - _ = yym1349 + yyv1353 := &x.ListMeta + yym1354 := z.DecBinary() + _ = yym1354 if false { - } else if z.HasExtensions() && z.DecExt(yyv1348) { + } else if z.HasExtensions() && z.DecExt(yyv1353) { } else { - z.DecFallback(yyv1348, false) + z.DecFallback(yyv1353, false) } } - yyj1345++ - if yyhl1345 { - yyb1345 = yyj1345 > l + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l } else { - yyb1345 = r.CheckBreak() + yyb1350 = r.CheckBreak() } - if yyb1345 { + if yyb1350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16206,26 +16254,26 @@ func (x *StorageClassList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1350 := &x.Items - yym1351 := z.DecBinary() - _ = yym1351 + yyv1355 := &x.Items + yym1356 := z.DecBinary() + _ = yym1356 if false { } else { - h.decSliceStorageClass((*[]StorageClass)(yyv1350), d) + h.decSliceStorageClass((*[]StorageClass)(yyv1355), d) } } for { - yyj1345++ - if yyhl1345 { - yyb1345 = yyj1345 > l + yyj1350++ + if yyhl1350 { + yyb1350 = yyj1350 > l } else { - yyb1345 = r.CheckBreak() + yyb1350 = r.CheckBreak() } - if yyb1345 { + if yyb1350 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1345-1, "") + z.DecStructFieldNotFound(yyj1350-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16235,10 +16283,10 @@ func (x codecSelfer1234) encSliceCustomMetricTarget(v []CustomMetricTarget, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1352 := range v { + for _, yyv1357 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1353 := &yyv1352 - yy1353.CodecEncodeSelf(e) + yy1358 := &yyv1357 + yy1358.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16248,83 +16296,83 @@ func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1354 := *v - yyh1354, yyl1354 := z.DecSliceHelperStart() - var yyc1354 bool - if yyl1354 == 0 { - if yyv1354 == nil { - yyv1354 = []CustomMetricTarget{} - yyc1354 = true - } else if len(yyv1354) != 0 { - yyv1354 = yyv1354[:0] - yyc1354 = true + yyv1359 := *v + yyh1359, yyl1359 := z.DecSliceHelperStart() + var yyc1359 bool + if yyl1359 == 0 { + if yyv1359 == nil { + yyv1359 = []CustomMetricTarget{} + yyc1359 = true + } else if len(yyv1359) != 0 { + yyv1359 = yyv1359[:0] + yyc1359 = true } - } else if yyl1354 > 0 { - var yyrr1354, yyrl1354 int - var yyrt1354 bool - if yyl1354 > cap(yyv1354) { + } else if yyl1359 > 0 { + var yyrr1359, yyrl1359 int + var yyrt1359 bool + if yyl1359 > cap(yyv1359) { - yyrg1354 := len(yyv1354) > 0 - yyv21354 := yyv1354 - yyrl1354, yyrt1354 = z.DecInferLen(yyl1354, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1354 { - if yyrl1354 <= cap(yyv1354) { - yyv1354 = yyv1354[:yyrl1354] + yyrg1359 := len(yyv1359) > 0 + yyv21359 := yyv1359 + yyrl1359, yyrt1359 = z.DecInferLen(yyl1359, z.DecBasicHandle().MaxInitLen, 72) + if yyrt1359 { + if yyrl1359 <= cap(yyv1359) { + yyv1359 = yyv1359[:yyrl1359] } else { - yyv1354 = make([]CustomMetricTarget, yyrl1354) + yyv1359 = make([]CustomMetricTarget, yyrl1359) } } else { - yyv1354 = make([]CustomMetricTarget, yyrl1354) + yyv1359 = make([]CustomMetricTarget, yyrl1359) } - yyc1354 = true - yyrr1354 = len(yyv1354) - if yyrg1354 { - copy(yyv1354, yyv21354) + yyc1359 = true + yyrr1359 = len(yyv1359) + if yyrg1359 { + copy(yyv1359, yyv21359) } - } else if yyl1354 != len(yyv1354) { - yyv1354 = yyv1354[:yyl1354] - yyc1354 = true + } else if yyl1359 != len(yyv1359) { + yyv1359 = yyv1359[:yyl1359] + yyc1359 = true } - yyj1354 := 0 - for ; yyj1354 < yyrr1354; yyj1354++ { - yyh1354.ElemContainerState(yyj1354) + yyj1359 := 0 + for ; yyj1359 < yyrr1359; yyj1359++ { + yyh1359.ElemContainerState(yyj1359) if r.TryDecodeAsNil() { - yyv1354[yyj1354] = CustomMetricTarget{} + yyv1359[yyj1359] = CustomMetricTarget{} } else { - yyv1355 := &yyv1354[yyj1354] - yyv1355.CodecDecodeSelf(d) + yyv1360 := &yyv1359[yyj1359] + yyv1360.CodecDecodeSelf(d) } } - if yyrt1354 { - for ; yyj1354 < yyl1354; yyj1354++ { - yyv1354 = append(yyv1354, CustomMetricTarget{}) - yyh1354.ElemContainerState(yyj1354) + if yyrt1359 { + for ; yyj1359 < yyl1359; yyj1359++ { + yyv1359 = append(yyv1359, CustomMetricTarget{}) + yyh1359.ElemContainerState(yyj1359) if r.TryDecodeAsNil() { - yyv1354[yyj1354] = CustomMetricTarget{} + yyv1359[yyj1359] = CustomMetricTarget{} } else { - yyv1356 := &yyv1354[yyj1354] - yyv1356.CodecDecodeSelf(d) + yyv1361 := &yyv1359[yyj1359] + yyv1361.CodecDecodeSelf(d) } } } } else { - yyj1354 := 0 - for ; !r.CheckBreak(); yyj1354++ { + yyj1359 := 0 + for ; !r.CheckBreak(); yyj1359++ { - if yyj1354 >= len(yyv1354) { - yyv1354 = append(yyv1354, CustomMetricTarget{}) // var yyz1354 CustomMetricTarget - yyc1354 = true + if yyj1359 >= len(yyv1359) { + yyv1359 = append(yyv1359, CustomMetricTarget{}) // var yyz1359 CustomMetricTarget + yyc1359 = true } - yyh1354.ElemContainerState(yyj1354) - if yyj1354 < len(yyv1354) { + yyh1359.ElemContainerState(yyj1359) + if yyj1359 < len(yyv1359) { if r.TryDecodeAsNil() { - yyv1354[yyj1354] = CustomMetricTarget{} + yyv1359[yyj1359] = CustomMetricTarget{} } else { - yyv1357 := &yyv1354[yyj1354] - yyv1357.CodecDecodeSelf(d) + yyv1362 := &yyv1359[yyj1359] + yyv1362.CodecDecodeSelf(d) } } else { @@ -16332,17 +16380,17 @@ func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d * } } - if yyj1354 < len(yyv1354) { - yyv1354 = yyv1354[:yyj1354] - yyc1354 = true - } else if yyj1354 == 0 && yyv1354 == nil { - yyv1354 = []CustomMetricTarget{} - yyc1354 = true + if yyj1359 < len(yyv1359) { + yyv1359 = yyv1359[:yyj1359] + yyc1359 = true + } else if yyj1359 == 0 && yyv1359 == nil { + yyv1359 = []CustomMetricTarget{} + yyc1359 = true } } - yyh1354.End() - if yyc1354 { - *v = yyv1354 + yyh1359.End() + if yyc1359 { + *v = yyv1359 } } @@ -16351,10 +16399,10 @@ func (x codecSelfer1234) encSliceCustomMetricCurrentStatus(v []CustomMetricCurre z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1358 := range v { + for _, yyv1363 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1359 := &yyv1358 - yy1359.CodecEncodeSelf(e) + yy1364 := &yyv1363 + yy1364.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16364,83 +16412,83 @@ func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurr z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1360 := *v - yyh1360, yyl1360 := z.DecSliceHelperStart() - var yyc1360 bool - if yyl1360 == 0 { - if yyv1360 == nil { - yyv1360 = []CustomMetricCurrentStatus{} - yyc1360 = true - } else if len(yyv1360) != 0 { - yyv1360 = yyv1360[:0] - yyc1360 = true + yyv1365 := *v + yyh1365, yyl1365 := z.DecSliceHelperStart() + var yyc1365 bool + if yyl1365 == 0 { + if yyv1365 == nil { + yyv1365 = []CustomMetricCurrentStatus{} + yyc1365 = true + } else if len(yyv1365) != 0 { + yyv1365 = yyv1365[:0] + yyc1365 = true } - } else if yyl1360 > 0 { - var yyrr1360, yyrl1360 int - var yyrt1360 bool - if yyl1360 > cap(yyv1360) { + } else if yyl1365 > 0 { + var yyrr1365, yyrl1365 int + var yyrt1365 bool + if yyl1365 > cap(yyv1365) { - yyrg1360 := len(yyv1360) > 0 - yyv21360 := yyv1360 - yyrl1360, yyrt1360 = z.DecInferLen(yyl1360, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1360 { - if yyrl1360 <= cap(yyv1360) { - yyv1360 = yyv1360[:yyrl1360] + yyrg1365 := len(yyv1365) > 0 + yyv21365 := yyv1365 + yyrl1365, yyrt1365 = z.DecInferLen(yyl1365, z.DecBasicHandle().MaxInitLen, 72) + if yyrt1365 { + if yyrl1365 <= cap(yyv1365) { + yyv1365 = yyv1365[:yyrl1365] } else { - yyv1360 = make([]CustomMetricCurrentStatus, yyrl1360) + yyv1365 = make([]CustomMetricCurrentStatus, yyrl1365) } } else { - yyv1360 = make([]CustomMetricCurrentStatus, yyrl1360) + yyv1365 = make([]CustomMetricCurrentStatus, yyrl1365) } - yyc1360 = true - yyrr1360 = len(yyv1360) - if yyrg1360 { - copy(yyv1360, yyv21360) + yyc1365 = true + yyrr1365 = len(yyv1365) + if yyrg1365 { + copy(yyv1365, yyv21365) } - } else if yyl1360 != len(yyv1360) { - yyv1360 = yyv1360[:yyl1360] - yyc1360 = true + } else if yyl1365 != len(yyv1365) { + yyv1365 = yyv1365[:yyl1365] + yyc1365 = true } - yyj1360 := 0 - for ; yyj1360 < yyrr1360; yyj1360++ { - yyh1360.ElemContainerState(yyj1360) + yyj1365 := 0 + for ; yyj1365 < yyrr1365; yyj1365++ { + yyh1365.ElemContainerState(yyj1365) if r.TryDecodeAsNil() { - yyv1360[yyj1360] = CustomMetricCurrentStatus{} + yyv1365[yyj1365] = CustomMetricCurrentStatus{} } else { - yyv1361 := &yyv1360[yyj1360] - yyv1361.CodecDecodeSelf(d) + yyv1366 := &yyv1365[yyj1365] + yyv1366.CodecDecodeSelf(d) } } - if yyrt1360 { - for ; yyj1360 < yyl1360; yyj1360++ { - yyv1360 = append(yyv1360, CustomMetricCurrentStatus{}) - yyh1360.ElemContainerState(yyj1360) + if yyrt1365 { + for ; yyj1365 < yyl1365; yyj1365++ { + yyv1365 = append(yyv1365, CustomMetricCurrentStatus{}) + yyh1365.ElemContainerState(yyj1365) if r.TryDecodeAsNil() { - yyv1360[yyj1360] = CustomMetricCurrentStatus{} + yyv1365[yyj1365] = CustomMetricCurrentStatus{} } else { - yyv1362 := &yyv1360[yyj1360] - yyv1362.CodecDecodeSelf(d) + yyv1367 := &yyv1365[yyj1365] + yyv1367.CodecDecodeSelf(d) } } } } else { - yyj1360 := 0 - for ; !r.CheckBreak(); yyj1360++ { + yyj1365 := 0 + for ; !r.CheckBreak(); yyj1365++ { - if yyj1360 >= len(yyv1360) { - yyv1360 = append(yyv1360, CustomMetricCurrentStatus{}) // var yyz1360 CustomMetricCurrentStatus - yyc1360 = true + if yyj1365 >= len(yyv1365) { + yyv1365 = append(yyv1365, CustomMetricCurrentStatus{}) // var yyz1365 CustomMetricCurrentStatus + yyc1365 = true } - yyh1360.ElemContainerState(yyj1360) - if yyj1360 < len(yyv1360) { + yyh1365.ElemContainerState(yyj1365) + if yyj1365 < len(yyv1365) { if r.TryDecodeAsNil() { - yyv1360[yyj1360] = CustomMetricCurrentStatus{} + yyv1365[yyj1365] = CustomMetricCurrentStatus{} } else { - yyv1363 := &yyv1360[yyj1360] - yyv1363.CodecDecodeSelf(d) + yyv1368 := &yyv1365[yyj1365] + yyv1368.CodecDecodeSelf(d) } } else { @@ -16448,17 +16496,17 @@ func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurr } } - if yyj1360 < len(yyv1360) { - yyv1360 = yyv1360[:yyj1360] - yyc1360 = true - } else if yyj1360 == 0 && yyv1360 == nil { - yyv1360 = []CustomMetricCurrentStatus{} - yyc1360 = true + if yyj1365 < len(yyv1365) { + yyv1365 = yyv1365[:yyj1365] + yyc1365 = true + } else if yyj1365 == 0 && yyv1365 == nil { + yyv1365 = []CustomMetricCurrentStatus{} + yyc1365 = true } } - yyh1360.End() - if yyc1360 { - *v = yyv1360 + yyh1365.End() + if yyc1365 { + *v = yyv1365 } } @@ -16467,10 +16515,10 @@ func (x codecSelfer1234) encSliceAPIVersion(v []APIVersion, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1364 := range v { + for _, yyv1369 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1365 := &yyv1364 - yy1365.CodecEncodeSelf(e) + yy1370 := &yyv1369 + yy1370.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16480,83 +16528,83 @@ func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1366 := *v - yyh1366, yyl1366 := z.DecSliceHelperStart() - var yyc1366 bool - if yyl1366 == 0 { - if yyv1366 == nil { - yyv1366 = []APIVersion{} - yyc1366 = true - } else if len(yyv1366) != 0 { - yyv1366 = yyv1366[:0] - yyc1366 = true + yyv1371 := *v + yyh1371, yyl1371 := z.DecSliceHelperStart() + var yyc1371 bool + if yyl1371 == 0 { + if yyv1371 == nil { + yyv1371 = []APIVersion{} + yyc1371 = true + } else if len(yyv1371) != 0 { + yyv1371 = yyv1371[:0] + yyc1371 = true } - } else if yyl1366 > 0 { - var yyrr1366, yyrl1366 int - var yyrt1366 bool - if yyl1366 > cap(yyv1366) { + } else if yyl1371 > 0 { + var yyrr1371, yyrl1371 int + var yyrt1371 bool + if yyl1371 > cap(yyv1371) { - yyrg1366 := len(yyv1366) > 0 - yyv21366 := yyv1366 - yyrl1366, yyrt1366 = z.DecInferLen(yyl1366, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1366 { - if yyrl1366 <= cap(yyv1366) { - yyv1366 = yyv1366[:yyrl1366] + yyrg1371 := len(yyv1371) > 0 + yyv21371 := yyv1371 + yyrl1371, yyrt1371 = z.DecInferLen(yyl1371, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1371 { + if yyrl1371 <= cap(yyv1371) { + yyv1371 = yyv1371[:yyrl1371] } else { - yyv1366 = make([]APIVersion, yyrl1366) + yyv1371 = make([]APIVersion, yyrl1371) } } else { - yyv1366 = make([]APIVersion, yyrl1366) + yyv1371 = make([]APIVersion, yyrl1371) } - yyc1366 = true - yyrr1366 = len(yyv1366) - if yyrg1366 { - copy(yyv1366, yyv21366) + yyc1371 = true + yyrr1371 = len(yyv1371) + if yyrg1371 { + copy(yyv1371, yyv21371) } - } else if yyl1366 != len(yyv1366) { - yyv1366 = yyv1366[:yyl1366] - yyc1366 = true + } else if yyl1371 != len(yyv1371) { + yyv1371 = yyv1371[:yyl1371] + yyc1371 = true } - yyj1366 := 0 - for ; yyj1366 < yyrr1366; yyj1366++ { - yyh1366.ElemContainerState(yyj1366) + yyj1371 := 0 + for ; yyj1371 < yyrr1371; yyj1371++ { + yyh1371.ElemContainerState(yyj1371) if r.TryDecodeAsNil() { - yyv1366[yyj1366] = APIVersion{} + yyv1371[yyj1371] = APIVersion{} } else { - yyv1367 := &yyv1366[yyj1366] - yyv1367.CodecDecodeSelf(d) + yyv1372 := &yyv1371[yyj1371] + yyv1372.CodecDecodeSelf(d) } } - if yyrt1366 { - for ; yyj1366 < yyl1366; yyj1366++ { - yyv1366 = append(yyv1366, APIVersion{}) - yyh1366.ElemContainerState(yyj1366) + if yyrt1371 { + for ; yyj1371 < yyl1371; yyj1371++ { + yyv1371 = append(yyv1371, APIVersion{}) + yyh1371.ElemContainerState(yyj1371) if r.TryDecodeAsNil() { - yyv1366[yyj1366] = APIVersion{} + yyv1371[yyj1371] = APIVersion{} } else { - yyv1368 := &yyv1366[yyj1366] - yyv1368.CodecDecodeSelf(d) + yyv1373 := &yyv1371[yyj1371] + yyv1373.CodecDecodeSelf(d) } } } } else { - yyj1366 := 0 - for ; !r.CheckBreak(); yyj1366++ { + yyj1371 := 0 + for ; !r.CheckBreak(); yyj1371++ { - if yyj1366 >= len(yyv1366) { - yyv1366 = append(yyv1366, APIVersion{}) // var yyz1366 APIVersion - yyc1366 = true + if yyj1371 >= len(yyv1371) { + yyv1371 = append(yyv1371, APIVersion{}) // var yyz1371 APIVersion + yyc1371 = true } - yyh1366.ElemContainerState(yyj1366) - if yyj1366 < len(yyv1366) { + yyh1371.ElemContainerState(yyj1371) + if yyj1371 < len(yyv1371) { if r.TryDecodeAsNil() { - yyv1366[yyj1366] = APIVersion{} + yyv1371[yyj1371] = APIVersion{} } else { - yyv1369 := &yyv1366[yyj1366] - yyv1369.CodecDecodeSelf(d) + yyv1374 := &yyv1371[yyj1371] + yyv1374.CodecDecodeSelf(d) } } else { @@ -16564,17 +16612,17 @@ func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decode } } - if yyj1366 < len(yyv1366) { - yyv1366 = yyv1366[:yyj1366] - yyc1366 = true - } else if yyj1366 == 0 && yyv1366 == nil { - yyv1366 = []APIVersion{} - yyc1366 = true + if yyj1371 < len(yyv1371) { + yyv1371 = yyv1371[:yyj1371] + yyc1371 = true + } else if yyj1371 == 0 && yyv1371 == nil { + yyv1371 = []APIVersion{} + yyc1371 = true } } - yyh1366.End() - if yyc1366 { - *v = yyv1366 + yyh1371.End() + if yyc1371 { + *v = yyv1371 } } @@ -16583,10 +16631,10 @@ func (x codecSelfer1234) encSliceThirdPartyResource(v []ThirdPartyResource, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1370 := range v { + for _, yyv1375 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1371 := &yyv1370 - yy1371.CodecEncodeSelf(e) + yy1376 := &yyv1375 + yy1376.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16596,83 +16644,83 @@ func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1372 := *v - yyh1372, yyl1372 := z.DecSliceHelperStart() - var yyc1372 bool - if yyl1372 == 0 { - if yyv1372 == nil { - yyv1372 = []ThirdPartyResource{} - yyc1372 = true - } else if len(yyv1372) != 0 { - yyv1372 = yyv1372[:0] - yyc1372 = true + yyv1377 := *v + yyh1377, yyl1377 := z.DecSliceHelperStart() + var yyc1377 bool + if yyl1377 == 0 { + if yyv1377 == nil { + yyv1377 = []ThirdPartyResource{} + yyc1377 = true + } else if len(yyv1377) != 0 { + yyv1377 = yyv1377[:0] + yyc1377 = true } - } else if yyl1372 > 0 { - var yyrr1372, yyrl1372 int - var yyrt1372 bool - if yyl1372 > cap(yyv1372) { + } else if yyl1377 > 0 { + var yyrr1377, yyrl1377 int + var yyrt1377 bool + if yyl1377 > cap(yyv1377) { - yyrg1372 := len(yyv1372) > 0 - yyv21372 := yyv1372 - yyrl1372, yyrt1372 = z.DecInferLen(yyl1372, z.DecBasicHandle().MaxInitLen, 280) - if yyrt1372 { - if yyrl1372 <= cap(yyv1372) { - yyv1372 = yyv1372[:yyrl1372] + yyrg1377 := len(yyv1377) > 0 + yyv21377 := yyv1377 + yyrl1377, yyrt1377 = z.DecInferLen(yyl1377, z.DecBasicHandle().MaxInitLen, 296) + if yyrt1377 { + if yyrl1377 <= cap(yyv1377) { + yyv1377 = yyv1377[:yyrl1377] } else { - yyv1372 = make([]ThirdPartyResource, yyrl1372) + yyv1377 = make([]ThirdPartyResource, yyrl1377) } } else { - yyv1372 = make([]ThirdPartyResource, yyrl1372) + yyv1377 = make([]ThirdPartyResource, yyrl1377) } - yyc1372 = true - yyrr1372 = len(yyv1372) - if yyrg1372 { - copy(yyv1372, yyv21372) + yyc1377 = true + yyrr1377 = len(yyv1377) + if yyrg1377 { + copy(yyv1377, yyv21377) } - } else if yyl1372 != len(yyv1372) { - yyv1372 = yyv1372[:yyl1372] - yyc1372 = true + } else if yyl1377 != len(yyv1377) { + yyv1377 = yyv1377[:yyl1377] + yyc1377 = true } - yyj1372 := 0 - for ; yyj1372 < yyrr1372; yyj1372++ { - yyh1372.ElemContainerState(yyj1372) + yyj1377 := 0 + for ; yyj1377 < yyrr1377; yyj1377++ { + yyh1377.ElemContainerState(yyj1377) if r.TryDecodeAsNil() { - yyv1372[yyj1372] = ThirdPartyResource{} + yyv1377[yyj1377] = ThirdPartyResource{} } else { - yyv1373 := &yyv1372[yyj1372] - yyv1373.CodecDecodeSelf(d) + yyv1378 := &yyv1377[yyj1377] + yyv1378.CodecDecodeSelf(d) } } - if yyrt1372 { - for ; yyj1372 < yyl1372; yyj1372++ { - yyv1372 = append(yyv1372, ThirdPartyResource{}) - yyh1372.ElemContainerState(yyj1372) + if yyrt1377 { + for ; yyj1377 < yyl1377; yyj1377++ { + yyv1377 = append(yyv1377, ThirdPartyResource{}) + yyh1377.ElemContainerState(yyj1377) if r.TryDecodeAsNil() { - yyv1372[yyj1372] = ThirdPartyResource{} + yyv1377[yyj1377] = ThirdPartyResource{} } else { - yyv1374 := &yyv1372[yyj1372] - yyv1374.CodecDecodeSelf(d) + yyv1379 := &yyv1377[yyj1377] + yyv1379.CodecDecodeSelf(d) } } } } else { - yyj1372 := 0 - for ; !r.CheckBreak(); yyj1372++ { + yyj1377 := 0 + for ; !r.CheckBreak(); yyj1377++ { - if yyj1372 >= len(yyv1372) { - yyv1372 = append(yyv1372, ThirdPartyResource{}) // var yyz1372 ThirdPartyResource - yyc1372 = true + if yyj1377 >= len(yyv1377) { + yyv1377 = append(yyv1377, ThirdPartyResource{}) // var yyz1377 ThirdPartyResource + yyc1377 = true } - yyh1372.ElemContainerState(yyj1372) - if yyj1372 < len(yyv1372) { + yyh1377.ElemContainerState(yyj1377) + if yyj1377 < len(yyv1377) { if r.TryDecodeAsNil() { - yyv1372[yyj1372] = ThirdPartyResource{} + yyv1377[yyj1377] = ThirdPartyResource{} } else { - yyv1375 := &yyv1372[yyj1372] - yyv1375.CodecDecodeSelf(d) + yyv1380 := &yyv1377[yyj1377] + yyv1380.CodecDecodeSelf(d) } } else { @@ -16680,17 +16728,17 @@ func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d * } } - if yyj1372 < len(yyv1372) { - yyv1372 = yyv1372[:yyj1372] - yyc1372 = true - } else if yyj1372 == 0 && yyv1372 == nil { - yyv1372 = []ThirdPartyResource{} - yyc1372 = true + if yyj1377 < len(yyv1377) { + yyv1377 = yyv1377[:yyj1377] + yyc1377 = true + } else if yyj1377 == 0 && yyv1377 == nil { + yyv1377 = []ThirdPartyResource{} + yyc1377 = true } } - yyh1372.End() - if yyc1372 { - *v = yyv1372 + yyh1377.End() + if yyc1377 { + *v = yyv1377 } } @@ -16699,10 +16747,10 @@ func (x codecSelfer1234) encSliceDeployment(v []Deployment, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1376 := range v { + for _, yyv1381 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1377 := &yyv1376 - yy1377.CodecEncodeSelf(e) + yy1382 := &yyv1381 + yy1382.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16712,83 +16760,83 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1378 := *v - yyh1378, yyl1378 := z.DecSliceHelperStart() - var yyc1378 bool - if yyl1378 == 0 { - if yyv1378 == nil { - yyv1378 = []Deployment{} - yyc1378 = true - } else if len(yyv1378) != 0 { - yyv1378 = yyv1378[:0] - yyc1378 = true + yyv1383 := *v + yyh1383, yyl1383 := z.DecSliceHelperStart() + var yyc1383 bool + if yyl1383 == 0 { + if yyv1383 == nil { + yyv1383 = []Deployment{} + yyc1383 = true + } else if len(yyv1383) != 0 { + yyv1383 = yyv1383[:0] + yyc1383 = true } - } else if yyl1378 > 0 { - var yyrr1378, yyrl1378 int - var yyrt1378 bool - if yyl1378 > cap(yyv1378) { + } else if yyl1383 > 0 { + var yyrr1383, yyrl1383 int + var yyrt1383 bool + if yyl1383 > cap(yyv1383) { - yyrg1378 := len(yyv1378) > 0 - yyv21378 := yyv1378 - yyrl1378, yyrt1378 = z.DecInferLen(yyl1378, z.DecBasicHandle().MaxInitLen, 768) - if yyrt1378 { - if yyrl1378 <= cap(yyv1378) { - yyv1378 = yyv1378[:yyrl1378] + yyrg1383 := len(yyv1383) > 0 + yyv21383 := yyv1383 + yyrl1383, yyrt1383 = z.DecInferLen(yyl1383, z.DecBasicHandle().MaxInitLen, 800) + if yyrt1383 { + if yyrl1383 <= cap(yyv1383) { + yyv1383 = yyv1383[:yyrl1383] } else { - yyv1378 = make([]Deployment, yyrl1378) + yyv1383 = make([]Deployment, yyrl1383) } } else { - yyv1378 = make([]Deployment, yyrl1378) + yyv1383 = make([]Deployment, yyrl1383) } - yyc1378 = true - yyrr1378 = len(yyv1378) - if yyrg1378 { - copy(yyv1378, yyv21378) + yyc1383 = true + yyrr1383 = len(yyv1383) + if yyrg1383 { + copy(yyv1383, yyv21383) } - } else if yyl1378 != len(yyv1378) { - yyv1378 = yyv1378[:yyl1378] - yyc1378 = true + } else if yyl1383 != len(yyv1383) { + yyv1383 = yyv1383[:yyl1383] + yyc1383 = true } - yyj1378 := 0 - for ; yyj1378 < yyrr1378; yyj1378++ { - yyh1378.ElemContainerState(yyj1378) + yyj1383 := 0 + for ; yyj1383 < yyrr1383; yyj1383++ { + yyh1383.ElemContainerState(yyj1383) if r.TryDecodeAsNil() { - yyv1378[yyj1378] = Deployment{} + yyv1383[yyj1383] = Deployment{} } else { - yyv1379 := &yyv1378[yyj1378] - yyv1379.CodecDecodeSelf(d) + yyv1384 := &yyv1383[yyj1383] + yyv1384.CodecDecodeSelf(d) } } - if yyrt1378 { - for ; yyj1378 < yyl1378; yyj1378++ { - yyv1378 = append(yyv1378, Deployment{}) - yyh1378.ElemContainerState(yyj1378) + if yyrt1383 { + for ; yyj1383 < yyl1383; yyj1383++ { + yyv1383 = append(yyv1383, Deployment{}) + yyh1383.ElemContainerState(yyj1383) if r.TryDecodeAsNil() { - yyv1378[yyj1378] = Deployment{} + yyv1383[yyj1383] = Deployment{} } else { - yyv1380 := &yyv1378[yyj1378] - yyv1380.CodecDecodeSelf(d) + yyv1385 := &yyv1383[yyj1383] + yyv1385.CodecDecodeSelf(d) } } } } else { - yyj1378 := 0 - for ; !r.CheckBreak(); yyj1378++ { + yyj1383 := 0 + for ; !r.CheckBreak(); yyj1383++ { - if yyj1378 >= len(yyv1378) { - yyv1378 = append(yyv1378, Deployment{}) // var yyz1378 Deployment - yyc1378 = true + if yyj1383 >= len(yyv1383) { + yyv1383 = append(yyv1383, Deployment{}) // var yyz1383 Deployment + yyc1383 = true } - yyh1378.ElemContainerState(yyj1378) - if yyj1378 < len(yyv1378) { + yyh1383.ElemContainerState(yyj1383) + if yyj1383 < len(yyv1383) { if r.TryDecodeAsNil() { - yyv1378[yyj1378] = Deployment{} + yyv1383[yyj1383] = Deployment{} } else { - yyv1381 := &yyv1378[yyj1378] - yyv1381.CodecDecodeSelf(d) + yyv1386 := &yyv1383[yyj1383] + yyv1386.CodecDecodeSelf(d) } } else { @@ -16796,17 +16844,17 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode } } - if yyj1378 < len(yyv1378) { - yyv1378 = yyv1378[:yyj1378] - yyc1378 = true - } else if yyj1378 == 0 && yyv1378 == nil { - yyv1378 = []Deployment{} - yyc1378 = true + if yyj1383 < len(yyv1383) { + yyv1383 = yyv1383[:yyj1383] + yyc1383 = true + } else if yyj1383 == 0 && yyv1383 == nil { + yyv1383 = []Deployment{} + yyc1383 = true } } - yyh1378.End() - if yyc1378 { - *v = yyv1378 + yyh1383.End() + if yyc1383 { + *v = yyv1383 } } @@ -16815,10 +16863,10 @@ func (x codecSelfer1234) encSliceDaemonSet(v []DaemonSet, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1382 := range v { + for _, yyv1387 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1383 := &yyv1382 - yy1383.CodecEncodeSelf(e) + yy1388 := &yyv1387 + yy1388.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16828,83 +16876,83 @@ func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1384 := *v - yyh1384, yyl1384 := z.DecSliceHelperStart() - var yyc1384 bool - if yyl1384 == 0 { - if yyv1384 == nil { - yyv1384 = []DaemonSet{} - yyc1384 = true - } else if len(yyv1384) != 0 { - yyv1384 = yyv1384[:0] - yyc1384 = true + yyv1389 := *v + yyh1389, yyl1389 := z.DecSliceHelperStart() + var yyc1389 bool + if yyl1389 == 0 { + if yyv1389 == nil { + yyv1389 = []DaemonSet{} + yyc1389 = true + } else if len(yyv1389) != 0 { + yyv1389 = yyv1389[:0] + yyc1389 = true } - } else if yyl1384 > 0 { - var yyrr1384, yyrl1384 int - var yyrt1384 bool - if yyl1384 > cap(yyv1384) { + } else if yyl1389 > 0 { + var yyrr1389, yyrl1389 int + var yyrt1389 bool + if yyl1389 > cap(yyv1389) { - yyrg1384 := len(yyv1384) > 0 - yyv21384 := yyv1384 - yyrl1384, yyrt1384 = z.DecInferLen(yyl1384, z.DecBasicHandle().MaxInitLen, 696) - if yyrt1384 { - if yyrl1384 <= cap(yyv1384) { - yyv1384 = yyv1384[:yyrl1384] + yyrg1389 := len(yyv1389) > 0 + yyv21389 := yyv1389 + yyrl1389, yyrt1389 = z.DecInferLen(yyl1389, z.DecBasicHandle().MaxInitLen, 728) + if yyrt1389 { + if yyrl1389 <= cap(yyv1389) { + yyv1389 = yyv1389[:yyrl1389] } else { - yyv1384 = make([]DaemonSet, yyrl1384) + yyv1389 = make([]DaemonSet, yyrl1389) } } else { - yyv1384 = make([]DaemonSet, yyrl1384) + yyv1389 = make([]DaemonSet, yyrl1389) } - yyc1384 = true - yyrr1384 = len(yyv1384) - if yyrg1384 { - copy(yyv1384, yyv21384) + yyc1389 = true + yyrr1389 = len(yyv1389) + if yyrg1389 { + copy(yyv1389, yyv21389) } - } else if yyl1384 != len(yyv1384) { - yyv1384 = yyv1384[:yyl1384] - yyc1384 = true + } else if yyl1389 != len(yyv1389) { + yyv1389 = yyv1389[:yyl1389] + yyc1389 = true } - yyj1384 := 0 - for ; yyj1384 < yyrr1384; yyj1384++ { - yyh1384.ElemContainerState(yyj1384) + yyj1389 := 0 + for ; yyj1389 < yyrr1389; yyj1389++ { + yyh1389.ElemContainerState(yyj1389) if r.TryDecodeAsNil() { - yyv1384[yyj1384] = DaemonSet{} + yyv1389[yyj1389] = DaemonSet{} } else { - yyv1385 := &yyv1384[yyj1384] - yyv1385.CodecDecodeSelf(d) + yyv1390 := &yyv1389[yyj1389] + yyv1390.CodecDecodeSelf(d) } } - if yyrt1384 { - for ; yyj1384 < yyl1384; yyj1384++ { - yyv1384 = append(yyv1384, DaemonSet{}) - yyh1384.ElemContainerState(yyj1384) + if yyrt1389 { + for ; yyj1389 < yyl1389; yyj1389++ { + yyv1389 = append(yyv1389, DaemonSet{}) + yyh1389.ElemContainerState(yyj1389) if r.TryDecodeAsNil() { - yyv1384[yyj1384] = DaemonSet{} + yyv1389[yyj1389] = DaemonSet{} } else { - yyv1386 := &yyv1384[yyj1384] - yyv1386.CodecDecodeSelf(d) + yyv1391 := &yyv1389[yyj1389] + yyv1391.CodecDecodeSelf(d) } } } } else { - yyj1384 := 0 - for ; !r.CheckBreak(); yyj1384++ { + yyj1389 := 0 + for ; !r.CheckBreak(); yyj1389++ { - if yyj1384 >= len(yyv1384) { - yyv1384 = append(yyv1384, DaemonSet{}) // var yyz1384 DaemonSet - yyc1384 = true + if yyj1389 >= len(yyv1389) { + yyv1389 = append(yyv1389, DaemonSet{}) // var yyz1389 DaemonSet + yyc1389 = true } - yyh1384.ElemContainerState(yyj1384) - if yyj1384 < len(yyv1384) { + yyh1389.ElemContainerState(yyj1389) + if yyj1389 < len(yyv1389) { if r.TryDecodeAsNil() { - yyv1384[yyj1384] = DaemonSet{} + yyv1389[yyj1389] = DaemonSet{} } else { - yyv1387 := &yyv1384[yyj1384] - yyv1387.CodecDecodeSelf(d) + yyv1392 := &yyv1389[yyj1389] + yyv1392.CodecDecodeSelf(d) } } else { @@ -16912,17 +16960,17 @@ func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) } } - if yyj1384 < len(yyv1384) { - yyv1384 = yyv1384[:yyj1384] - yyc1384 = true - } else if yyj1384 == 0 && yyv1384 == nil { - yyv1384 = []DaemonSet{} - yyc1384 = true + if yyj1389 < len(yyv1389) { + yyv1389 = yyv1389[:yyj1389] + yyc1389 = true + } else if yyj1389 == 0 && yyv1389 == nil { + yyv1389 = []DaemonSet{} + yyc1389 = true } } - yyh1384.End() - if yyc1384 { - *v = yyv1384 + yyh1389.End() + if yyc1389 { + *v = yyv1389 } } @@ -16931,10 +16979,10 @@ func (x codecSelfer1234) encSliceThirdPartyResourceData(v []ThirdPartyResourceDa z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1388 := range v { + for _, yyv1393 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1389 := &yyv1388 - yy1389.CodecEncodeSelf(e) + yy1394 := &yyv1393 + yy1394.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16944,83 +16992,83 @@ func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceD z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1390 := *v - yyh1390, yyl1390 := z.DecSliceHelperStart() - var yyc1390 bool - if yyl1390 == 0 { - if yyv1390 == nil { - yyv1390 = []ThirdPartyResourceData{} - yyc1390 = true - } else if len(yyv1390) != 0 { - yyv1390 = yyv1390[:0] - yyc1390 = true + yyv1395 := *v + yyh1395, yyl1395 := z.DecSliceHelperStart() + var yyc1395 bool + if yyl1395 == 0 { + if yyv1395 == nil { + yyv1395 = []ThirdPartyResourceData{} + yyc1395 = true + } else if len(yyv1395) != 0 { + yyv1395 = yyv1395[:0] + yyc1395 = true } - } else if yyl1390 > 0 { - var yyrr1390, yyrl1390 int - var yyrt1390 bool - if yyl1390 > cap(yyv1390) { + } else if yyl1395 > 0 { + var yyrr1395, yyrl1395 int + var yyrt1395 bool + if yyl1395 > cap(yyv1395) { - yyrg1390 := len(yyv1390) > 0 - yyv21390 := yyv1390 - yyrl1390, yyrt1390 = z.DecInferLen(yyl1390, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1390 { - if yyrl1390 <= cap(yyv1390) { - yyv1390 = yyv1390[:yyrl1390] + yyrg1395 := len(yyv1395) > 0 + yyv21395 := yyv1395 + yyrl1395, yyrt1395 = z.DecInferLen(yyl1395, z.DecBasicHandle().MaxInitLen, 280) + if yyrt1395 { + if yyrl1395 <= cap(yyv1395) { + yyv1395 = yyv1395[:yyrl1395] } else { - yyv1390 = make([]ThirdPartyResourceData, yyrl1390) + yyv1395 = make([]ThirdPartyResourceData, yyrl1395) } } else { - yyv1390 = make([]ThirdPartyResourceData, yyrl1390) + yyv1395 = make([]ThirdPartyResourceData, yyrl1395) } - yyc1390 = true - yyrr1390 = len(yyv1390) - if yyrg1390 { - copy(yyv1390, yyv21390) + yyc1395 = true + yyrr1395 = len(yyv1395) + if yyrg1395 { + copy(yyv1395, yyv21395) } - } else if yyl1390 != len(yyv1390) { - yyv1390 = yyv1390[:yyl1390] - yyc1390 = true + } else if yyl1395 != len(yyv1395) { + yyv1395 = yyv1395[:yyl1395] + yyc1395 = true } - yyj1390 := 0 - for ; yyj1390 < yyrr1390; yyj1390++ { - yyh1390.ElemContainerState(yyj1390) + yyj1395 := 0 + for ; yyj1395 < yyrr1395; yyj1395++ { + yyh1395.ElemContainerState(yyj1395) if r.TryDecodeAsNil() { - yyv1390[yyj1390] = ThirdPartyResourceData{} + yyv1395[yyj1395] = ThirdPartyResourceData{} } else { - yyv1391 := &yyv1390[yyj1390] - yyv1391.CodecDecodeSelf(d) + yyv1396 := &yyv1395[yyj1395] + yyv1396.CodecDecodeSelf(d) } } - if yyrt1390 { - for ; yyj1390 < yyl1390; yyj1390++ { - yyv1390 = append(yyv1390, ThirdPartyResourceData{}) - yyh1390.ElemContainerState(yyj1390) + if yyrt1395 { + for ; yyj1395 < yyl1395; yyj1395++ { + yyv1395 = append(yyv1395, ThirdPartyResourceData{}) + yyh1395.ElemContainerState(yyj1395) if r.TryDecodeAsNil() { - yyv1390[yyj1390] = ThirdPartyResourceData{} + yyv1395[yyj1395] = ThirdPartyResourceData{} } else { - yyv1392 := &yyv1390[yyj1390] - yyv1392.CodecDecodeSelf(d) + yyv1397 := &yyv1395[yyj1395] + yyv1397.CodecDecodeSelf(d) } } } } else { - yyj1390 := 0 - for ; !r.CheckBreak(); yyj1390++ { + yyj1395 := 0 + for ; !r.CheckBreak(); yyj1395++ { - if yyj1390 >= len(yyv1390) { - yyv1390 = append(yyv1390, ThirdPartyResourceData{}) // var yyz1390 ThirdPartyResourceData - yyc1390 = true + if yyj1395 >= len(yyv1395) { + yyv1395 = append(yyv1395, ThirdPartyResourceData{}) // var yyz1395 ThirdPartyResourceData + yyc1395 = true } - yyh1390.ElemContainerState(yyj1390) - if yyj1390 < len(yyv1390) { + yyh1395.ElemContainerState(yyj1395) + if yyj1395 < len(yyv1395) { if r.TryDecodeAsNil() { - yyv1390[yyj1390] = ThirdPartyResourceData{} + yyv1395[yyj1395] = ThirdPartyResourceData{} } else { - yyv1393 := &yyv1390[yyj1390] - yyv1393.CodecDecodeSelf(d) + yyv1398 := &yyv1395[yyj1395] + yyv1398.CodecDecodeSelf(d) } } else { @@ -17028,17 +17076,17 @@ func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceD } } - if yyj1390 < len(yyv1390) { - yyv1390 = yyv1390[:yyj1390] - yyc1390 = true - } else if yyj1390 == 0 && yyv1390 == nil { - yyv1390 = []ThirdPartyResourceData{} - yyc1390 = true + if yyj1395 < len(yyv1395) { + yyv1395 = yyv1395[:yyj1395] + yyc1395 = true + } else if yyj1395 == 0 && yyv1395 == nil { + yyv1395 = []ThirdPartyResourceData{} + yyc1395 = true } } - yyh1390.End() - if yyc1390 { - *v = yyv1390 + yyh1395.End() + if yyc1395 { + *v = yyv1395 } } @@ -17047,10 +17095,10 @@ func (x codecSelfer1234) encSliceIngress(v []Ingress, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1394 := range v { + for _, yyv1399 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1395 := &yyv1394 - yy1395.CodecEncodeSelf(e) + yy1400 := &yyv1399 + yy1400.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17060,83 +17108,83 @@ func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1396 := *v - yyh1396, yyl1396 := z.DecSliceHelperStart() - var yyc1396 bool - if yyl1396 == 0 { - if yyv1396 == nil { - yyv1396 = []Ingress{} - yyc1396 = true - } else if len(yyv1396) != 0 { - yyv1396 = yyv1396[:0] - yyc1396 = true + yyv1401 := *v + yyh1401, yyl1401 := z.DecSliceHelperStart() + var yyc1401 bool + if yyl1401 == 0 { + if yyv1401 == nil { + yyv1401 = []Ingress{} + yyc1401 = true + } else if len(yyv1401) != 0 { + yyv1401 = yyv1401[:0] + yyc1401 = true } - } else if yyl1396 > 0 { - var yyrr1396, yyrl1396 int - var yyrt1396 bool - if yyl1396 > cap(yyv1396) { + } else if yyl1401 > 0 { + var yyrr1401, yyrl1401 int + var yyrt1401 bool + if yyl1401 > cap(yyv1401) { - yyrg1396 := len(yyv1396) > 0 - yyv21396 := yyv1396 - yyrl1396, yyrt1396 = z.DecInferLen(yyl1396, z.DecBasicHandle().MaxInitLen, 320) - if yyrt1396 { - if yyrl1396 <= cap(yyv1396) { - yyv1396 = yyv1396[:yyrl1396] + yyrg1401 := len(yyv1401) > 0 + yyv21401 := yyv1401 + yyrl1401, yyrt1401 = z.DecInferLen(yyl1401, z.DecBasicHandle().MaxInitLen, 336) + if yyrt1401 { + if yyrl1401 <= cap(yyv1401) { + yyv1401 = yyv1401[:yyrl1401] } else { - yyv1396 = make([]Ingress, yyrl1396) + yyv1401 = make([]Ingress, yyrl1401) } } else { - yyv1396 = make([]Ingress, yyrl1396) + yyv1401 = make([]Ingress, yyrl1401) } - yyc1396 = true - yyrr1396 = len(yyv1396) - if yyrg1396 { - copy(yyv1396, yyv21396) + yyc1401 = true + yyrr1401 = len(yyv1401) + if yyrg1401 { + copy(yyv1401, yyv21401) } - } else if yyl1396 != len(yyv1396) { - yyv1396 = yyv1396[:yyl1396] - yyc1396 = true + } else if yyl1401 != len(yyv1401) { + yyv1401 = yyv1401[:yyl1401] + yyc1401 = true } - yyj1396 := 0 - for ; yyj1396 < yyrr1396; yyj1396++ { - yyh1396.ElemContainerState(yyj1396) + yyj1401 := 0 + for ; yyj1401 < yyrr1401; yyj1401++ { + yyh1401.ElemContainerState(yyj1401) if r.TryDecodeAsNil() { - yyv1396[yyj1396] = Ingress{} + yyv1401[yyj1401] = Ingress{} } else { - yyv1397 := &yyv1396[yyj1396] - yyv1397.CodecDecodeSelf(d) + yyv1402 := &yyv1401[yyj1401] + yyv1402.CodecDecodeSelf(d) } } - if yyrt1396 { - for ; yyj1396 < yyl1396; yyj1396++ { - yyv1396 = append(yyv1396, Ingress{}) - yyh1396.ElemContainerState(yyj1396) + if yyrt1401 { + for ; yyj1401 < yyl1401; yyj1401++ { + yyv1401 = append(yyv1401, Ingress{}) + yyh1401.ElemContainerState(yyj1401) if r.TryDecodeAsNil() { - yyv1396[yyj1396] = Ingress{} + yyv1401[yyj1401] = Ingress{} } else { - yyv1398 := &yyv1396[yyj1396] - yyv1398.CodecDecodeSelf(d) + yyv1403 := &yyv1401[yyj1401] + yyv1403.CodecDecodeSelf(d) } } } } else { - yyj1396 := 0 - for ; !r.CheckBreak(); yyj1396++ { + yyj1401 := 0 + for ; !r.CheckBreak(); yyj1401++ { - if yyj1396 >= len(yyv1396) { - yyv1396 = append(yyv1396, Ingress{}) // var yyz1396 Ingress - yyc1396 = true + if yyj1401 >= len(yyv1401) { + yyv1401 = append(yyv1401, Ingress{}) // var yyz1401 Ingress + yyc1401 = true } - yyh1396.ElemContainerState(yyj1396) - if yyj1396 < len(yyv1396) { + yyh1401.ElemContainerState(yyj1401) + if yyj1401 < len(yyv1401) { if r.TryDecodeAsNil() { - yyv1396[yyj1396] = Ingress{} + yyv1401[yyj1401] = Ingress{} } else { - yyv1399 := &yyv1396[yyj1396] - yyv1399.CodecDecodeSelf(d) + yyv1404 := &yyv1401[yyj1401] + yyv1404.CodecDecodeSelf(d) } } else { @@ -17144,17 +17192,17 @@ func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { } } - if yyj1396 < len(yyv1396) { - yyv1396 = yyv1396[:yyj1396] - yyc1396 = true - } else if yyj1396 == 0 && yyv1396 == nil { - yyv1396 = []Ingress{} - yyc1396 = true + if yyj1401 < len(yyv1401) { + yyv1401 = yyv1401[:yyj1401] + yyc1401 = true + } else if yyj1401 == 0 && yyv1401 == nil { + yyv1401 = []Ingress{} + yyc1401 = true } } - yyh1396.End() - if yyc1396 { - *v = yyv1396 + yyh1401.End() + if yyc1401 { + *v = yyv1401 } } @@ -17163,10 +17211,10 @@ func (x codecSelfer1234) encSliceIngressTLS(v []IngressTLS, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1400 := range v { + for _, yyv1405 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1401 := &yyv1400 - yy1401.CodecEncodeSelf(e) + yy1406 := &yyv1405 + yy1406.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17176,83 +17224,83 @@ func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1402 := *v - yyh1402, yyl1402 := z.DecSliceHelperStart() - var yyc1402 bool - if yyl1402 == 0 { - if yyv1402 == nil { - yyv1402 = []IngressTLS{} - yyc1402 = true - } else if len(yyv1402) != 0 { - yyv1402 = yyv1402[:0] - yyc1402 = true + yyv1407 := *v + yyh1407, yyl1407 := z.DecSliceHelperStart() + var yyc1407 bool + if yyl1407 == 0 { + if yyv1407 == nil { + yyv1407 = []IngressTLS{} + yyc1407 = true + } else if len(yyv1407) != 0 { + yyv1407 = yyv1407[:0] + yyc1407 = true } - } else if yyl1402 > 0 { - var yyrr1402, yyrl1402 int - var yyrt1402 bool - if yyl1402 > cap(yyv1402) { + } else if yyl1407 > 0 { + var yyrr1407, yyrl1407 int + var yyrt1407 bool + if yyl1407 > cap(yyv1407) { - yyrg1402 := len(yyv1402) > 0 - yyv21402 := yyv1402 - yyrl1402, yyrt1402 = z.DecInferLen(yyl1402, z.DecBasicHandle().MaxInitLen, 40) - if yyrt1402 { - if yyrl1402 <= cap(yyv1402) { - yyv1402 = yyv1402[:yyrl1402] + yyrg1407 := len(yyv1407) > 0 + yyv21407 := yyv1407 + yyrl1407, yyrt1407 = z.DecInferLen(yyl1407, z.DecBasicHandle().MaxInitLen, 40) + if yyrt1407 { + if yyrl1407 <= cap(yyv1407) { + yyv1407 = yyv1407[:yyrl1407] } else { - yyv1402 = make([]IngressTLS, yyrl1402) + yyv1407 = make([]IngressTLS, yyrl1407) } } else { - yyv1402 = make([]IngressTLS, yyrl1402) + yyv1407 = make([]IngressTLS, yyrl1407) } - yyc1402 = true - yyrr1402 = len(yyv1402) - if yyrg1402 { - copy(yyv1402, yyv21402) + yyc1407 = true + yyrr1407 = len(yyv1407) + if yyrg1407 { + copy(yyv1407, yyv21407) } - } else if yyl1402 != len(yyv1402) { - yyv1402 = yyv1402[:yyl1402] - yyc1402 = true + } else if yyl1407 != len(yyv1407) { + yyv1407 = yyv1407[:yyl1407] + yyc1407 = true } - yyj1402 := 0 - for ; yyj1402 < yyrr1402; yyj1402++ { - yyh1402.ElemContainerState(yyj1402) + yyj1407 := 0 + for ; yyj1407 < yyrr1407; yyj1407++ { + yyh1407.ElemContainerState(yyj1407) if r.TryDecodeAsNil() { - yyv1402[yyj1402] = IngressTLS{} + yyv1407[yyj1407] = IngressTLS{} } else { - yyv1403 := &yyv1402[yyj1402] - yyv1403.CodecDecodeSelf(d) + yyv1408 := &yyv1407[yyj1407] + yyv1408.CodecDecodeSelf(d) } } - if yyrt1402 { - for ; yyj1402 < yyl1402; yyj1402++ { - yyv1402 = append(yyv1402, IngressTLS{}) - yyh1402.ElemContainerState(yyj1402) + if yyrt1407 { + for ; yyj1407 < yyl1407; yyj1407++ { + yyv1407 = append(yyv1407, IngressTLS{}) + yyh1407.ElemContainerState(yyj1407) if r.TryDecodeAsNil() { - yyv1402[yyj1402] = IngressTLS{} + yyv1407[yyj1407] = IngressTLS{} } else { - yyv1404 := &yyv1402[yyj1402] - yyv1404.CodecDecodeSelf(d) + yyv1409 := &yyv1407[yyj1407] + yyv1409.CodecDecodeSelf(d) } } } } else { - yyj1402 := 0 - for ; !r.CheckBreak(); yyj1402++ { + yyj1407 := 0 + for ; !r.CheckBreak(); yyj1407++ { - if yyj1402 >= len(yyv1402) { - yyv1402 = append(yyv1402, IngressTLS{}) // var yyz1402 IngressTLS - yyc1402 = true + if yyj1407 >= len(yyv1407) { + yyv1407 = append(yyv1407, IngressTLS{}) // var yyz1407 IngressTLS + yyc1407 = true } - yyh1402.ElemContainerState(yyj1402) - if yyj1402 < len(yyv1402) { + yyh1407.ElemContainerState(yyj1407) + if yyj1407 < len(yyv1407) { if r.TryDecodeAsNil() { - yyv1402[yyj1402] = IngressTLS{} + yyv1407[yyj1407] = IngressTLS{} } else { - yyv1405 := &yyv1402[yyj1402] - yyv1405.CodecDecodeSelf(d) + yyv1410 := &yyv1407[yyj1407] + yyv1410.CodecDecodeSelf(d) } } else { @@ -17260,17 +17308,17 @@ func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decode } } - if yyj1402 < len(yyv1402) { - yyv1402 = yyv1402[:yyj1402] - yyc1402 = true - } else if yyj1402 == 0 && yyv1402 == nil { - yyv1402 = []IngressTLS{} - yyc1402 = true + if yyj1407 < len(yyv1407) { + yyv1407 = yyv1407[:yyj1407] + yyc1407 = true + } else if yyj1407 == 0 && yyv1407 == nil { + yyv1407 = []IngressTLS{} + yyc1407 = true } } - yyh1402.End() - if yyc1402 { - *v = yyv1402 + yyh1407.End() + if yyc1407 { + *v = yyv1407 } } @@ -17279,10 +17327,10 @@ func (x codecSelfer1234) encSliceIngressRule(v []IngressRule, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1406 := range v { + for _, yyv1411 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1407 := &yyv1406 - yy1407.CodecEncodeSelf(e) + yy1412 := &yyv1411 + yy1412.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17292,83 +17340,83 @@ func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1408 := *v - yyh1408, yyl1408 := z.DecSliceHelperStart() - var yyc1408 bool - if yyl1408 == 0 { - if yyv1408 == nil { - yyv1408 = []IngressRule{} - yyc1408 = true - } else if len(yyv1408) != 0 { - yyv1408 = yyv1408[:0] - yyc1408 = true + yyv1413 := *v + yyh1413, yyl1413 := z.DecSliceHelperStart() + var yyc1413 bool + if yyl1413 == 0 { + if yyv1413 == nil { + yyv1413 = []IngressRule{} + yyc1413 = true + } else if len(yyv1413) != 0 { + yyv1413 = yyv1413[:0] + yyc1413 = true } - } else if yyl1408 > 0 { - var yyrr1408, yyrl1408 int - var yyrt1408 bool - if yyl1408 > cap(yyv1408) { + } else if yyl1413 > 0 { + var yyrr1413, yyrl1413 int + var yyrt1413 bool + if yyl1413 > cap(yyv1413) { - yyrg1408 := len(yyv1408) > 0 - yyv21408 := yyv1408 - yyrl1408, yyrt1408 = z.DecInferLen(yyl1408, z.DecBasicHandle().MaxInitLen, 24) - if yyrt1408 { - if yyrl1408 <= cap(yyv1408) { - yyv1408 = yyv1408[:yyrl1408] + yyrg1413 := len(yyv1413) > 0 + yyv21413 := yyv1413 + yyrl1413, yyrt1413 = z.DecInferLen(yyl1413, z.DecBasicHandle().MaxInitLen, 24) + if yyrt1413 { + if yyrl1413 <= cap(yyv1413) { + yyv1413 = yyv1413[:yyrl1413] } else { - yyv1408 = make([]IngressRule, yyrl1408) + yyv1413 = make([]IngressRule, yyrl1413) } } else { - yyv1408 = make([]IngressRule, yyrl1408) + yyv1413 = make([]IngressRule, yyrl1413) } - yyc1408 = true - yyrr1408 = len(yyv1408) - if yyrg1408 { - copy(yyv1408, yyv21408) + yyc1413 = true + yyrr1413 = len(yyv1413) + if yyrg1413 { + copy(yyv1413, yyv21413) } - } else if yyl1408 != len(yyv1408) { - yyv1408 = yyv1408[:yyl1408] - yyc1408 = true + } else if yyl1413 != len(yyv1413) { + yyv1413 = yyv1413[:yyl1413] + yyc1413 = true } - yyj1408 := 0 - for ; yyj1408 < yyrr1408; yyj1408++ { - yyh1408.ElemContainerState(yyj1408) + yyj1413 := 0 + for ; yyj1413 < yyrr1413; yyj1413++ { + yyh1413.ElemContainerState(yyj1413) if r.TryDecodeAsNil() { - yyv1408[yyj1408] = IngressRule{} + yyv1413[yyj1413] = IngressRule{} } else { - yyv1409 := &yyv1408[yyj1408] - yyv1409.CodecDecodeSelf(d) + yyv1414 := &yyv1413[yyj1413] + yyv1414.CodecDecodeSelf(d) } } - if yyrt1408 { - for ; yyj1408 < yyl1408; yyj1408++ { - yyv1408 = append(yyv1408, IngressRule{}) - yyh1408.ElemContainerState(yyj1408) + if yyrt1413 { + for ; yyj1413 < yyl1413; yyj1413++ { + yyv1413 = append(yyv1413, IngressRule{}) + yyh1413.ElemContainerState(yyj1413) if r.TryDecodeAsNil() { - yyv1408[yyj1408] = IngressRule{} + yyv1413[yyj1413] = IngressRule{} } else { - yyv1410 := &yyv1408[yyj1408] - yyv1410.CodecDecodeSelf(d) + yyv1415 := &yyv1413[yyj1413] + yyv1415.CodecDecodeSelf(d) } } } } else { - yyj1408 := 0 - for ; !r.CheckBreak(); yyj1408++ { + yyj1413 := 0 + for ; !r.CheckBreak(); yyj1413++ { - if yyj1408 >= len(yyv1408) { - yyv1408 = append(yyv1408, IngressRule{}) // var yyz1408 IngressRule - yyc1408 = true + if yyj1413 >= len(yyv1413) { + yyv1413 = append(yyv1413, IngressRule{}) // var yyz1413 IngressRule + yyc1413 = true } - yyh1408.ElemContainerState(yyj1408) - if yyj1408 < len(yyv1408) { + yyh1413.ElemContainerState(yyj1413) + if yyj1413 < len(yyv1413) { if r.TryDecodeAsNil() { - yyv1408[yyj1408] = IngressRule{} + yyv1413[yyj1413] = IngressRule{} } else { - yyv1411 := &yyv1408[yyj1408] - yyv1411.CodecDecodeSelf(d) + yyv1416 := &yyv1413[yyj1413] + yyv1416.CodecDecodeSelf(d) } } else { @@ -17376,17 +17424,17 @@ func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Deco } } - if yyj1408 < len(yyv1408) { - yyv1408 = yyv1408[:yyj1408] - yyc1408 = true - } else if yyj1408 == 0 && yyv1408 == nil { - yyv1408 = []IngressRule{} - yyc1408 = true + if yyj1413 < len(yyv1413) { + yyv1413 = yyv1413[:yyj1413] + yyc1413 = true + } else if yyj1413 == 0 && yyv1413 == nil { + yyv1413 = []IngressRule{} + yyc1413 = true } } - yyh1408.End() - if yyc1408 { - *v = yyv1408 + yyh1413.End() + if yyc1413 { + *v = yyv1413 } } @@ -17395,10 +17443,10 @@ func (x codecSelfer1234) encSliceHTTPIngressPath(v []HTTPIngressPath, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1412 := range v { + for _, yyv1417 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1413 := &yyv1412 - yy1413.CodecEncodeSelf(e) + yy1418 := &yyv1417 + yy1418.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17408,83 +17456,83 @@ func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1414 := *v - yyh1414, yyl1414 := z.DecSliceHelperStart() - var yyc1414 bool - if yyl1414 == 0 { - if yyv1414 == nil { - yyv1414 = []HTTPIngressPath{} - yyc1414 = true - } else if len(yyv1414) != 0 { - yyv1414 = yyv1414[:0] - yyc1414 = true + yyv1419 := *v + yyh1419, yyl1419 := z.DecSliceHelperStart() + var yyc1419 bool + if yyl1419 == 0 { + if yyv1419 == nil { + yyv1419 = []HTTPIngressPath{} + yyc1419 = true + } else if len(yyv1419) != 0 { + yyv1419 = yyv1419[:0] + yyc1419 = true } - } else if yyl1414 > 0 { - var yyrr1414, yyrl1414 int - var yyrt1414 bool - if yyl1414 > cap(yyv1414) { + } else if yyl1419 > 0 { + var yyrr1419, yyrl1419 int + var yyrt1419 bool + if yyl1419 > cap(yyv1419) { - yyrg1414 := len(yyv1414) > 0 - yyv21414 := yyv1414 - yyrl1414, yyrt1414 = z.DecInferLen(yyl1414, z.DecBasicHandle().MaxInitLen, 64) - if yyrt1414 { - if yyrl1414 <= cap(yyv1414) { - yyv1414 = yyv1414[:yyrl1414] + yyrg1419 := len(yyv1419) > 0 + yyv21419 := yyv1419 + yyrl1419, yyrt1419 = z.DecInferLen(yyl1419, z.DecBasicHandle().MaxInitLen, 64) + if yyrt1419 { + if yyrl1419 <= cap(yyv1419) { + yyv1419 = yyv1419[:yyrl1419] } else { - yyv1414 = make([]HTTPIngressPath, yyrl1414) + yyv1419 = make([]HTTPIngressPath, yyrl1419) } } else { - yyv1414 = make([]HTTPIngressPath, yyrl1414) + yyv1419 = make([]HTTPIngressPath, yyrl1419) } - yyc1414 = true - yyrr1414 = len(yyv1414) - if yyrg1414 { - copy(yyv1414, yyv21414) + yyc1419 = true + yyrr1419 = len(yyv1419) + if yyrg1419 { + copy(yyv1419, yyv21419) } - } else if yyl1414 != len(yyv1414) { - yyv1414 = yyv1414[:yyl1414] - yyc1414 = true + } else if yyl1419 != len(yyv1419) { + yyv1419 = yyv1419[:yyl1419] + yyc1419 = true } - yyj1414 := 0 - for ; yyj1414 < yyrr1414; yyj1414++ { - yyh1414.ElemContainerState(yyj1414) + yyj1419 := 0 + for ; yyj1419 < yyrr1419; yyj1419++ { + yyh1419.ElemContainerState(yyj1419) if r.TryDecodeAsNil() { - yyv1414[yyj1414] = HTTPIngressPath{} + yyv1419[yyj1419] = HTTPIngressPath{} } else { - yyv1415 := &yyv1414[yyj1414] - yyv1415.CodecDecodeSelf(d) + yyv1420 := &yyv1419[yyj1419] + yyv1420.CodecDecodeSelf(d) } } - if yyrt1414 { - for ; yyj1414 < yyl1414; yyj1414++ { - yyv1414 = append(yyv1414, HTTPIngressPath{}) - yyh1414.ElemContainerState(yyj1414) + if yyrt1419 { + for ; yyj1419 < yyl1419; yyj1419++ { + yyv1419 = append(yyv1419, HTTPIngressPath{}) + yyh1419.ElemContainerState(yyj1419) if r.TryDecodeAsNil() { - yyv1414[yyj1414] = HTTPIngressPath{} + yyv1419[yyj1419] = HTTPIngressPath{} } else { - yyv1416 := &yyv1414[yyj1414] - yyv1416.CodecDecodeSelf(d) + yyv1421 := &yyv1419[yyj1419] + yyv1421.CodecDecodeSelf(d) } } } } else { - yyj1414 := 0 - for ; !r.CheckBreak(); yyj1414++ { + yyj1419 := 0 + for ; !r.CheckBreak(); yyj1419++ { - if yyj1414 >= len(yyv1414) { - yyv1414 = append(yyv1414, HTTPIngressPath{}) // var yyz1414 HTTPIngressPath - yyc1414 = true + if yyj1419 >= len(yyv1419) { + yyv1419 = append(yyv1419, HTTPIngressPath{}) // var yyz1419 HTTPIngressPath + yyc1419 = true } - yyh1414.ElemContainerState(yyj1414) - if yyj1414 < len(yyv1414) { + yyh1419.ElemContainerState(yyj1419) + if yyj1419 < len(yyv1419) { if r.TryDecodeAsNil() { - yyv1414[yyj1414] = HTTPIngressPath{} + yyv1419[yyj1419] = HTTPIngressPath{} } else { - yyv1417 := &yyv1414[yyj1414] - yyv1417.CodecDecodeSelf(d) + yyv1422 := &yyv1419[yyj1419] + yyv1422.CodecDecodeSelf(d) } } else { @@ -17492,17 +17540,17 @@ func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1 } } - if yyj1414 < len(yyv1414) { - yyv1414 = yyv1414[:yyj1414] - yyc1414 = true - } else if yyj1414 == 0 && yyv1414 == nil { - yyv1414 = []HTTPIngressPath{} - yyc1414 = true + if yyj1419 < len(yyv1419) { + yyv1419 = yyv1419[:yyj1419] + yyc1419 = true + } else if yyj1419 == 0 && yyv1419 == nil { + yyv1419 = []HTTPIngressPath{} + yyc1419 = true } } - yyh1414.End() - if yyc1414 { - *v = yyv1414 + yyh1419.End() + if yyc1419 { + *v = yyv1419 } } @@ -17511,10 +17559,10 @@ func (x codecSelfer1234) encSliceReplicaSet(v []ReplicaSet, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1418 := range v { + for _, yyv1423 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1419 := &yyv1418 - yy1419.CodecEncodeSelf(e) + yy1424 := &yyv1423 + yy1424.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17524,83 +17572,83 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1420 := *v - yyh1420, yyl1420 := z.DecSliceHelperStart() - var yyc1420 bool - if yyl1420 == 0 { - if yyv1420 == nil { - yyv1420 = []ReplicaSet{} - yyc1420 = true - } else if len(yyv1420) != 0 { - yyv1420 = yyv1420[:0] - yyc1420 = true + yyv1425 := *v + yyh1425, yyl1425 := z.DecSliceHelperStart() + var yyc1425 bool + if yyl1425 == 0 { + if yyv1425 == nil { + yyv1425 = []ReplicaSet{} + yyc1425 = true + } else if len(yyv1425) != 0 { + yyv1425 = yyv1425[:0] + yyc1425 = true } - } else if yyl1420 > 0 { - var yyrr1420, yyrl1420 int - var yyrt1420 bool - if yyl1420 > cap(yyv1420) { + } else if yyl1425 > 0 { + var yyrr1425, yyrl1425 int + var yyrt1425 bool + if yyl1425 > cap(yyv1425) { - yyrg1420 := len(yyv1420) > 0 - yyv21420 := yyv1420 - yyrl1420, yyrt1420 = z.DecInferLen(yyl1420, z.DecBasicHandle().MaxInitLen, 704) - if yyrt1420 { - if yyrl1420 <= cap(yyv1420) { - yyv1420 = yyv1420[:yyrl1420] + yyrg1425 := len(yyv1425) > 0 + yyv21425 := yyv1425 + yyrl1425, yyrt1425 = z.DecInferLen(yyl1425, z.DecBasicHandle().MaxInitLen, 744) + if yyrt1425 { + if yyrl1425 <= cap(yyv1425) { + yyv1425 = yyv1425[:yyrl1425] } else { - yyv1420 = make([]ReplicaSet, yyrl1420) + yyv1425 = make([]ReplicaSet, yyrl1425) } } else { - yyv1420 = make([]ReplicaSet, yyrl1420) + yyv1425 = make([]ReplicaSet, yyrl1425) } - yyc1420 = true - yyrr1420 = len(yyv1420) - if yyrg1420 { - copy(yyv1420, yyv21420) + yyc1425 = true + yyrr1425 = len(yyv1425) + if yyrg1425 { + copy(yyv1425, yyv21425) } - } else if yyl1420 != len(yyv1420) { - yyv1420 = yyv1420[:yyl1420] - yyc1420 = true + } else if yyl1425 != len(yyv1425) { + yyv1425 = yyv1425[:yyl1425] + yyc1425 = true } - yyj1420 := 0 - for ; yyj1420 < yyrr1420; yyj1420++ { - yyh1420.ElemContainerState(yyj1420) + yyj1425 := 0 + for ; yyj1425 < yyrr1425; yyj1425++ { + yyh1425.ElemContainerState(yyj1425) if r.TryDecodeAsNil() { - yyv1420[yyj1420] = ReplicaSet{} + yyv1425[yyj1425] = ReplicaSet{} } else { - yyv1421 := &yyv1420[yyj1420] - yyv1421.CodecDecodeSelf(d) + yyv1426 := &yyv1425[yyj1425] + yyv1426.CodecDecodeSelf(d) } } - if yyrt1420 { - for ; yyj1420 < yyl1420; yyj1420++ { - yyv1420 = append(yyv1420, ReplicaSet{}) - yyh1420.ElemContainerState(yyj1420) + if yyrt1425 { + for ; yyj1425 < yyl1425; yyj1425++ { + yyv1425 = append(yyv1425, ReplicaSet{}) + yyh1425.ElemContainerState(yyj1425) if r.TryDecodeAsNil() { - yyv1420[yyj1420] = ReplicaSet{} + yyv1425[yyj1425] = ReplicaSet{} } else { - yyv1422 := &yyv1420[yyj1420] - yyv1422.CodecDecodeSelf(d) + yyv1427 := &yyv1425[yyj1425] + yyv1427.CodecDecodeSelf(d) } } } } else { - yyj1420 := 0 - for ; !r.CheckBreak(); yyj1420++ { + yyj1425 := 0 + for ; !r.CheckBreak(); yyj1425++ { - if yyj1420 >= len(yyv1420) { - yyv1420 = append(yyv1420, ReplicaSet{}) // var yyz1420 ReplicaSet - yyc1420 = true + if yyj1425 >= len(yyv1425) { + yyv1425 = append(yyv1425, ReplicaSet{}) // var yyz1425 ReplicaSet + yyc1425 = true } - yyh1420.ElemContainerState(yyj1420) - if yyj1420 < len(yyv1420) { + yyh1425.ElemContainerState(yyj1425) + if yyj1425 < len(yyv1425) { if r.TryDecodeAsNil() { - yyv1420[yyj1420] = ReplicaSet{} + yyv1425[yyj1425] = ReplicaSet{} } else { - yyv1423 := &yyv1420[yyj1420] - yyv1423.CodecDecodeSelf(d) + yyv1428 := &yyv1425[yyj1425] + yyv1428.CodecDecodeSelf(d) } } else { @@ -17608,17 +17656,17 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode } } - if yyj1420 < len(yyv1420) { - yyv1420 = yyv1420[:yyj1420] - yyc1420 = true - } else if yyj1420 == 0 && yyv1420 == nil { - yyv1420 = []ReplicaSet{} - yyc1420 = true + if yyj1425 < len(yyv1425) { + yyv1425 = yyv1425[:yyj1425] + yyc1425 = true + } else if yyj1425 == 0 && yyv1425 == nil { + yyv1425 = []ReplicaSet{} + yyc1425 = true } } - yyh1420.End() - if yyc1420 { - *v = yyv1420 + yyh1425.End() + if yyc1425 { + *v = yyv1425 } } @@ -17627,14 +17675,14 @@ func (x codecSelfer1234) encSliceapi_Capability(v []pkg2_api.Capability, e *code z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1424 := range v { + for _, yyv1429 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1425 := z.EncBinary() - _ = yym1425 + yym1430 := z.EncBinary() + _ = yym1430 if false { - } else if z.HasExtensions() && z.EncExt(yyv1424) { + } else if z.HasExtensions() && z.EncExt(yyv1429) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv1424)) + r.EncodeString(codecSelferC_UTF81234, string(yyv1429)) } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -17645,119 +17693,12 @@ func (x codecSelfer1234) decSliceapi_Capability(v *[]pkg2_api.Capability, d *cod z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1426 := *v - yyh1426, yyl1426 := z.DecSliceHelperStart() - var yyc1426 bool - if yyl1426 == 0 { - if yyv1426 == nil { - yyv1426 = []pkg2_api.Capability{} - yyc1426 = true - } else if len(yyv1426) != 0 { - yyv1426 = yyv1426[:0] - yyc1426 = true - } - } else if yyl1426 > 0 { - var yyrr1426, yyrl1426 int - var yyrt1426 bool - if yyl1426 > cap(yyv1426) { - - yyrl1426, yyrt1426 = z.DecInferLen(yyl1426, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1426 { - if yyrl1426 <= cap(yyv1426) { - yyv1426 = yyv1426[:yyrl1426] - } else { - yyv1426 = make([]pkg2_api.Capability, yyrl1426) - } - } else { - yyv1426 = make([]pkg2_api.Capability, yyrl1426) - } - yyc1426 = true - yyrr1426 = len(yyv1426) - } else if yyl1426 != len(yyv1426) { - yyv1426 = yyv1426[:yyl1426] - yyc1426 = true - } - yyj1426 := 0 - for ; yyj1426 < yyrr1426; yyj1426++ { - yyh1426.ElemContainerState(yyj1426) - if r.TryDecodeAsNil() { - yyv1426[yyj1426] = "" - } else { - yyv1426[yyj1426] = pkg2_api.Capability(r.DecodeString()) - } - - } - if yyrt1426 { - for ; yyj1426 < yyl1426; yyj1426++ { - yyv1426 = append(yyv1426, "") - yyh1426.ElemContainerState(yyj1426) - if r.TryDecodeAsNil() { - yyv1426[yyj1426] = "" - } else { - yyv1426[yyj1426] = pkg2_api.Capability(r.DecodeString()) - } - - } - } - - } else { - yyj1426 := 0 - for ; !r.CheckBreak(); yyj1426++ { - - if yyj1426 >= len(yyv1426) { - yyv1426 = append(yyv1426, "") // var yyz1426 pkg2_api.Capability - yyc1426 = true - } - yyh1426.ElemContainerState(yyj1426) - if yyj1426 < len(yyv1426) { - if r.TryDecodeAsNil() { - yyv1426[yyj1426] = "" - } else { - yyv1426[yyj1426] = pkg2_api.Capability(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj1426 < len(yyv1426) { - yyv1426 = yyv1426[:yyj1426] - yyc1426 = true - } else if yyj1426 == 0 && yyv1426 == nil { - yyv1426 = []pkg2_api.Capability{} - yyc1426 = true - } - } - yyh1426.End() - if yyc1426 { - *v = yyv1426 - } -} - -func (x codecSelfer1234) encSliceFSType(v []FSType, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1430 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1430.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yyv1431 := *v yyh1431, yyl1431 := z.DecSliceHelperStart() var yyc1431 bool if yyl1431 == 0 { if yyv1431 == nil { - yyv1431 = []FSType{} + yyv1431 = []pkg2_api.Capability{} yyc1431 = true } else if len(yyv1431) != 0 { yyv1431 = yyv1431[:0] @@ -17773,10 +17714,10 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { if yyrl1431 <= cap(yyv1431) { yyv1431 = yyv1431[:yyrl1431] } else { - yyv1431 = make([]FSType, yyrl1431) + yyv1431 = make([]pkg2_api.Capability, yyrl1431) } } else { - yyv1431 = make([]FSType, yyrl1431) + yyv1431 = make([]pkg2_api.Capability, yyrl1431) } yyc1431 = true yyrr1431 = len(yyv1431) @@ -17790,7 +17731,7 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { if r.TryDecodeAsNil() { yyv1431[yyj1431] = "" } else { - yyv1431[yyj1431] = FSType(r.DecodeString()) + yyv1431[yyj1431] = pkg2_api.Capability(r.DecodeString()) } } @@ -17801,7 +17742,7 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { if r.TryDecodeAsNil() { yyv1431[yyj1431] = "" } else { - yyv1431[yyj1431] = FSType(r.DecodeString()) + yyv1431[yyj1431] = pkg2_api.Capability(r.DecodeString()) } } @@ -17812,7 +17753,7 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { for ; !r.CheckBreak(); yyj1431++ { if yyj1431 >= len(yyv1431) { - yyv1431 = append(yyv1431, "") // var yyz1431 FSType + yyv1431 = append(yyv1431, "") // var yyz1431 pkg2_api.Capability yyc1431 = true } yyh1431.ElemContainerState(yyj1431) @@ -17820,7 +17761,7 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { if r.TryDecodeAsNil() { yyv1431[yyj1431] = "" } else { - yyv1431[yyj1431] = FSType(r.DecodeString()) + yyv1431[yyj1431] = pkg2_api.Capability(r.DecodeString()) } } else { @@ -17832,7 +17773,7 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { yyv1431 = yyv1431[:yyj1431] yyc1431 = true } else if yyj1431 == 0 && yyv1431 == nil { - yyv1431 = []FSType{} + yyv1431 = []pkg2_api.Capability{} yyc1431 = true } } @@ -17842,15 +17783,122 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { } } -func (x codecSelfer1234) encSliceHostPortRange(v []HostPortRange, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceFSType(v []FSType, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1435 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1436 := &yyv1435 - yy1436.CodecEncodeSelf(e) + yyv1435.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1436 := *v + yyh1436, yyl1436 := z.DecSliceHelperStart() + var yyc1436 bool + if yyl1436 == 0 { + if yyv1436 == nil { + yyv1436 = []FSType{} + yyc1436 = true + } else if len(yyv1436) != 0 { + yyv1436 = yyv1436[:0] + yyc1436 = true + } + } else if yyl1436 > 0 { + var yyrr1436, yyrl1436 int + var yyrt1436 bool + if yyl1436 > cap(yyv1436) { + + yyrl1436, yyrt1436 = z.DecInferLen(yyl1436, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1436 { + if yyrl1436 <= cap(yyv1436) { + yyv1436 = yyv1436[:yyrl1436] + } else { + yyv1436 = make([]FSType, yyrl1436) + } + } else { + yyv1436 = make([]FSType, yyrl1436) + } + yyc1436 = true + yyrr1436 = len(yyv1436) + } else if yyl1436 != len(yyv1436) { + yyv1436 = yyv1436[:yyl1436] + yyc1436 = true + } + yyj1436 := 0 + for ; yyj1436 < yyrr1436; yyj1436++ { + yyh1436.ElemContainerState(yyj1436) + if r.TryDecodeAsNil() { + yyv1436[yyj1436] = "" + } else { + yyv1436[yyj1436] = FSType(r.DecodeString()) + } + + } + if yyrt1436 { + for ; yyj1436 < yyl1436; yyj1436++ { + yyv1436 = append(yyv1436, "") + yyh1436.ElemContainerState(yyj1436) + if r.TryDecodeAsNil() { + yyv1436[yyj1436] = "" + } else { + yyv1436[yyj1436] = FSType(r.DecodeString()) + } + + } + } + + } else { + yyj1436 := 0 + for ; !r.CheckBreak(); yyj1436++ { + + if yyj1436 >= len(yyv1436) { + yyv1436 = append(yyv1436, "") // var yyz1436 FSType + yyc1436 = true + } + yyh1436.ElemContainerState(yyj1436) + if yyj1436 < len(yyv1436) { + if r.TryDecodeAsNil() { + yyv1436[yyj1436] = "" + } else { + yyv1436[yyj1436] = FSType(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj1436 < len(yyv1436) { + yyv1436 = yyv1436[:yyj1436] + yyc1436 = true + } else if yyj1436 == 0 && yyv1436 == nil { + yyv1436 = []FSType{} + yyc1436 = true + } + } + yyh1436.End() + if yyc1436 { + *v = yyv1436 + } +} + +func (x codecSelfer1234) encSliceHostPortRange(v []HostPortRange, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1440 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1441 := &yyv1440 + yy1441.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17860,83 +17908,83 @@ func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1437 := *v - yyh1437, yyl1437 := z.DecSliceHelperStart() - var yyc1437 bool - if yyl1437 == 0 { - if yyv1437 == nil { - yyv1437 = []HostPortRange{} - yyc1437 = true - } else if len(yyv1437) != 0 { - yyv1437 = yyv1437[:0] - yyc1437 = true + yyv1442 := *v + yyh1442, yyl1442 := z.DecSliceHelperStart() + var yyc1442 bool + if yyl1442 == 0 { + if yyv1442 == nil { + yyv1442 = []HostPortRange{} + yyc1442 = true + } else if len(yyv1442) != 0 { + yyv1442 = yyv1442[:0] + yyc1442 = true } - } else if yyl1437 > 0 { - var yyrr1437, yyrl1437 int - var yyrt1437 bool - if yyl1437 > cap(yyv1437) { + } else if yyl1442 > 0 { + var yyrr1442, yyrl1442 int + var yyrt1442 bool + if yyl1442 > cap(yyv1442) { - yyrg1437 := len(yyv1437) > 0 - yyv21437 := yyv1437 - yyrl1437, yyrt1437 = z.DecInferLen(yyl1437, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1437 { - if yyrl1437 <= cap(yyv1437) { - yyv1437 = yyv1437[:yyrl1437] + yyrg1442 := len(yyv1442) > 0 + yyv21442 := yyv1442 + yyrl1442, yyrt1442 = z.DecInferLen(yyl1442, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1442 { + if yyrl1442 <= cap(yyv1442) { + yyv1442 = yyv1442[:yyrl1442] } else { - yyv1437 = make([]HostPortRange, yyrl1437) + yyv1442 = make([]HostPortRange, yyrl1442) } } else { - yyv1437 = make([]HostPortRange, yyrl1437) + yyv1442 = make([]HostPortRange, yyrl1442) } - yyc1437 = true - yyrr1437 = len(yyv1437) - if yyrg1437 { - copy(yyv1437, yyv21437) + yyc1442 = true + yyrr1442 = len(yyv1442) + if yyrg1442 { + copy(yyv1442, yyv21442) } - } else if yyl1437 != len(yyv1437) { - yyv1437 = yyv1437[:yyl1437] - yyc1437 = true + } else if yyl1442 != len(yyv1442) { + yyv1442 = yyv1442[:yyl1442] + yyc1442 = true } - yyj1437 := 0 - for ; yyj1437 < yyrr1437; yyj1437++ { - yyh1437.ElemContainerState(yyj1437) + yyj1442 := 0 + for ; yyj1442 < yyrr1442; yyj1442++ { + yyh1442.ElemContainerState(yyj1442) if r.TryDecodeAsNil() { - yyv1437[yyj1437] = HostPortRange{} + yyv1442[yyj1442] = HostPortRange{} } else { - yyv1438 := &yyv1437[yyj1437] - yyv1438.CodecDecodeSelf(d) + yyv1443 := &yyv1442[yyj1442] + yyv1443.CodecDecodeSelf(d) } } - if yyrt1437 { - for ; yyj1437 < yyl1437; yyj1437++ { - yyv1437 = append(yyv1437, HostPortRange{}) - yyh1437.ElemContainerState(yyj1437) + if yyrt1442 { + for ; yyj1442 < yyl1442; yyj1442++ { + yyv1442 = append(yyv1442, HostPortRange{}) + yyh1442.ElemContainerState(yyj1442) if r.TryDecodeAsNil() { - yyv1437[yyj1437] = HostPortRange{} + yyv1442[yyj1442] = HostPortRange{} } else { - yyv1439 := &yyv1437[yyj1437] - yyv1439.CodecDecodeSelf(d) + yyv1444 := &yyv1442[yyj1442] + yyv1444.CodecDecodeSelf(d) } } } } else { - yyj1437 := 0 - for ; !r.CheckBreak(); yyj1437++ { + yyj1442 := 0 + for ; !r.CheckBreak(); yyj1442++ { - if yyj1437 >= len(yyv1437) { - yyv1437 = append(yyv1437, HostPortRange{}) // var yyz1437 HostPortRange - yyc1437 = true + if yyj1442 >= len(yyv1442) { + yyv1442 = append(yyv1442, HostPortRange{}) // var yyz1442 HostPortRange + yyc1442 = true } - yyh1437.ElemContainerState(yyj1437) - if yyj1437 < len(yyv1437) { + yyh1442.ElemContainerState(yyj1442) + if yyj1442 < len(yyv1442) { if r.TryDecodeAsNil() { - yyv1437[yyj1437] = HostPortRange{} + yyv1442[yyj1442] = HostPortRange{} } else { - yyv1440 := &yyv1437[yyj1437] - yyv1440.CodecDecodeSelf(d) + yyv1445 := &yyv1442[yyj1442] + yyv1445.CodecDecodeSelf(d) } } else { @@ -17944,17 +17992,17 @@ func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978. } } - if yyj1437 < len(yyv1437) { - yyv1437 = yyv1437[:yyj1437] - yyc1437 = true - } else if yyj1437 == 0 && yyv1437 == nil { - yyv1437 = []HostPortRange{} - yyc1437 = true + if yyj1442 < len(yyv1442) { + yyv1442 = yyv1442[:yyj1442] + yyc1442 = true + } else if yyj1442 == 0 && yyv1442 == nil { + yyv1442 = []HostPortRange{} + yyc1442 = true } } - yyh1437.End() - if yyc1437 { - *v = yyv1437 + yyh1442.End() + if yyc1442 { + *v = yyv1442 } } @@ -17963,10 +18011,10 @@ func (x codecSelfer1234) encSliceIDRange(v []IDRange, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1441 := range v { + for _, yyv1446 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1442 := &yyv1441 - yy1442.CodecEncodeSelf(e) + yy1447 := &yyv1446 + yy1447.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17976,83 +18024,83 @@ func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1443 := *v - yyh1443, yyl1443 := z.DecSliceHelperStart() - var yyc1443 bool - if yyl1443 == 0 { - if yyv1443 == nil { - yyv1443 = []IDRange{} - yyc1443 = true - } else if len(yyv1443) != 0 { - yyv1443 = yyv1443[:0] - yyc1443 = true + yyv1448 := *v + yyh1448, yyl1448 := z.DecSliceHelperStart() + var yyc1448 bool + if yyl1448 == 0 { + if yyv1448 == nil { + yyv1448 = []IDRange{} + yyc1448 = true + } else if len(yyv1448) != 0 { + yyv1448 = yyv1448[:0] + yyc1448 = true } - } else if yyl1443 > 0 { - var yyrr1443, yyrl1443 int - var yyrt1443 bool - if yyl1443 > cap(yyv1443) { + } else if yyl1448 > 0 { + var yyrr1448, yyrl1448 int + var yyrt1448 bool + if yyl1448 > cap(yyv1448) { - yyrg1443 := len(yyv1443) > 0 - yyv21443 := yyv1443 - yyrl1443, yyrt1443 = z.DecInferLen(yyl1443, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1443 { - if yyrl1443 <= cap(yyv1443) { - yyv1443 = yyv1443[:yyrl1443] + yyrg1448 := len(yyv1448) > 0 + yyv21448 := yyv1448 + yyrl1448, yyrt1448 = z.DecInferLen(yyl1448, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1448 { + if yyrl1448 <= cap(yyv1448) { + yyv1448 = yyv1448[:yyrl1448] } else { - yyv1443 = make([]IDRange, yyrl1443) + yyv1448 = make([]IDRange, yyrl1448) } } else { - yyv1443 = make([]IDRange, yyrl1443) + yyv1448 = make([]IDRange, yyrl1448) } - yyc1443 = true - yyrr1443 = len(yyv1443) - if yyrg1443 { - copy(yyv1443, yyv21443) + yyc1448 = true + yyrr1448 = len(yyv1448) + if yyrg1448 { + copy(yyv1448, yyv21448) } - } else if yyl1443 != len(yyv1443) { - yyv1443 = yyv1443[:yyl1443] - yyc1443 = true + } else if yyl1448 != len(yyv1448) { + yyv1448 = yyv1448[:yyl1448] + yyc1448 = true } - yyj1443 := 0 - for ; yyj1443 < yyrr1443; yyj1443++ { - yyh1443.ElemContainerState(yyj1443) + yyj1448 := 0 + for ; yyj1448 < yyrr1448; yyj1448++ { + yyh1448.ElemContainerState(yyj1448) if r.TryDecodeAsNil() { - yyv1443[yyj1443] = IDRange{} + yyv1448[yyj1448] = IDRange{} } else { - yyv1444 := &yyv1443[yyj1443] - yyv1444.CodecDecodeSelf(d) + yyv1449 := &yyv1448[yyj1448] + yyv1449.CodecDecodeSelf(d) } } - if yyrt1443 { - for ; yyj1443 < yyl1443; yyj1443++ { - yyv1443 = append(yyv1443, IDRange{}) - yyh1443.ElemContainerState(yyj1443) + if yyrt1448 { + for ; yyj1448 < yyl1448; yyj1448++ { + yyv1448 = append(yyv1448, IDRange{}) + yyh1448.ElemContainerState(yyj1448) if r.TryDecodeAsNil() { - yyv1443[yyj1443] = IDRange{} + yyv1448[yyj1448] = IDRange{} } else { - yyv1445 := &yyv1443[yyj1443] - yyv1445.CodecDecodeSelf(d) + yyv1450 := &yyv1448[yyj1448] + yyv1450.CodecDecodeSelf(d) } } } } else { - yyj1443 := 0 - for ; !r.CheckBreak(); yyj1443++ { + yyj1448 := 0 + for ; !r.CheckBreak(); yyj1448++ { - if yyj1443 >= len(yyv1443) { - yyv1443 = append(yyv1443, IDRange{}) // var yyz1443 IDRange - yyc1443 = true + if yyj1448 >= len(yyv1448) { + yyv1448 = append(yyv1448, IDRange{}) // var yyz1448 IDRange + yyc1448 = true } - yyh1443.ElemContainerState(yyj1443) - if yyj1443 < len(yyv1443) { + yyh1448.ElemContainerState(yyj1448) + if yyj1448 < len(yyv1448) { if r.TryDecodeAsNil() { - yyv1443[yyj1443] = IDRange{} + yyv1448[yyj1448] = IDRange{} } else { - yyv1446 := &yyv1443[yyj1443] - yyv1446.CodecDecodeSelf(d) + yyv1451 := &yyv1448[yyj1448] + yyv1451.CodecDecodeSelf(d) } } else { @@ -18060,17 +18108,17 @@ func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { } } - if yyj1443 < len(yyv1443) { - yyv1443 = yyv1443[:yyj1443] - yyc1443 = true - } else if yyj1443 == 0 && yyv1443 == nil { - yyv1443 = []IDRange{} - yyc1443 = true + if yyj1448 < len(yyv1448) { + yyv1448 = yyv1448[:yyj1448] + yyc1448 = true + } else if yyj1448 == 0 && yyv1448 == nil { + yyv1448 = []IDRange{} + yyc1448 = true } } - yyh1443.End() - if yyc1443 { - *v = yyv1443 + yyh1448.End() + if yyc1448 { + *v = yyv1448 } } @@ -18079,10 +18127,10 @@ func (x codecSelfer1234) encSlicePodSecurityPolicy(v []PodSecurityPolicy, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1447 := range v { + for _, yyv1452 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1448 := &yyv1447 - yy1448.CodecEncodeSelf(e) + yy1453 := &yyv1452 + yy1453.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18092,83 +18140,83 @@ func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1449 := *v - yyh1449, yyl1449 := z.DecSliceHelperStart() - var yyc1449 bool - if yyl1449 == 0 { - if yyv1449 == nil { - yyv1449 = []PodSecurityPolicy{} - yyc1449 = true - } else if len(yyv1449) != 0 { - yyv1449 = yyv1449[:0] - yyc1449 = true + yyv1454 := *v + yyh1454, yyl1454 := z.DecSliceHelperStart() + var yyc1454 bool + if yyl1454 == 0 { + if yyv1454 == nil { + yyv1454 = []PodSecurityPolicy{} + yyc1454 = true + } else if len(yyv1454) != 0 { + yyv1454 = yyv1454[:0] + yyc1454 = true } - } else if yyl1449 > 0 { - var yyrr1449, yyrl1449 int - var yyrt1449 bool - if yyl1449 > cap(yyv1449) { + } else if yyl1454 > 0 { + var yyrr1454, yyrl1454 int + var yyrt1454 bool + if yyl1454 > cap(yyv1454) { - yyrg1449 := len(yyv1449) > 0 - yyv21449 := yyv1449 - yyrl1449, yyrt1449 = z.DecInferLen(yyl1449, z.DecBasicHandle().MaxInitLen, 536) - if yyrt1449 { - if yyrl1449 <= cap(yyv1449) { - yyv1449 = yyv1449[:yyrl1449] + yyrg1454 := len(yyv1454) > 0 + yyv21454 := yyv1454 + yyrl1454, yyrt1454 = z.DecInferLen(yyl1454, z.DecBasicHandle().MaxInitLen, 552) + if yyrt1454 { + if yyrl1454 <= cap(yyv1454) { + yyv1454 = yyv1454[:yyrl1454] } else { - yyv1449 = make([]PodSecurityPolicy, yyrl1449) + yyv1454 = make([]PodSecurityPolicy, yyrl1454) } } else { - yyv1449 = make([]PodSecurityPolicy, yyrl1449) + yyv1454 = make([]PodSecurityPolicy, yyrl1454) } - yyc1449 = true - yyrr1449 = len(yyv1449) - if yyrg1449 { - copy(yyv1449, yyv21449) + yyc1454 = true + yyrr1454 = len(yyv1454) + if yyrg1454 { + copy(yyv1454, yyv21454) } - } else if yyl1449 != len(yyv1449) { - yyv1449 = yyv1449[:yyl1449] - yyc1449 = true + } else if yyl1454 != len(yyv1454) { + yyv1454 = yyv1454[:yyl1454] + yyc1454 = true } - yyj1449 := 0 - for ; yyj1449 < yyrr1449; yyj1449++ { - yyh1449.ElemContainerState(yyj1449) + yyj1454 := 0 + for ; yyj1454 < yyrr1454; yyj1454++ { + yyh1454.ElemContainerState(yyj1454) if r.TryDecodeAsNil() { - yyv1449[yyj1449] = PodSecurityPolicy{} + yyv1454[yyj1454] = PodSecurityPolicy{} } else { - yyv1450 := &yyv1449[yyj1449] - yyv1450.CodecDecodeSelf(d) + yyv1455 := &yyv1454[yyj1454] + yyv1455.CodecDecodeSelf(d) } } - if yyrt1449 { - for ; yyj1449 < yyl1449; yyj1449++ { - yyv1449 = append(yyv1449, PodSecurityPolicy{}) - yyh1449.ElemContainerState(yyj1449) + if yyrt1454 { + for ; yyj1454 < yyl1454; yyj1454++ { + yyv1454 = append(yyv1454, PodSecurityPolicy{}) + yyh1454.ElemContainerState(yyj1454) if r.TryDecodeAsNil() { - yyv1449[yyj1449] = PodSecurityPolicy{} + yyv1454[yyj1454] = PodSecurityPolicy{} } else { - yyv1451 := &yyv1449[yyj1449] - yyv1451.CodecDecodeSelf(d) + yyv1456 := &yyv1454[yyj1454] + yyv1456.CodecDecodeSelf(d) } } } } else { - yyj1449 := 0 - for ; !r.CheckBreak(); yyj1449++ { + yyj1454 := 0 + for ; !r.CheckBreak(); yyj1454++ { - if yyj1449 >= len(yyv1449) { - yyv1449 = append(yyv1449, PodSecurityPolicy{}) // var yyz1449 PodSecurityPolicy - yyc1449 = true + if yyj1454 >= len(yyv1454) { + yyv1454 = append(yyv1454, PodSecurityPolicy{}) // var yyz1454 PodSecurityPolicy + yyc1454 = true } - yyh1449.ElemContainerState(yyj1449) - if yyj1449 < len(yyv1449) { + yyh1454.ElemContainerState(yyj1454) + if yyj1454 < len(yyv1454) { if r.TryDecodeAsNil() { - yyv1449[yyj1449] = PodSecurityPolicy{} + yyv1454[yyj1454] = PodSecurityPolicy{} } else { - yyv1452 := &yyv1449[yyj1449] - yyv1452.CodecDecodeSelf(d) + yyv1457 := &yyv1454[yyj1454] + yyv1457.CodecDecodeSelf(d) } } else { @@ -18176,17 +18224,17 @@ func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *co } } - if yyj1449 < len(yyv1449) { - yyv1449 = yyv1449[:yyj1449] - yyc1449 = true - } else if yyj1449 == 0 && yyv1449 == nil { - yyv1449 = []PodSecurityPolicy{} - yyc1449 = true + if yyj1454 < len(yyv1454) { + yyv1454 = yyv1454[:yyj1454] + yyc1454 = true + } else if yyj1454 == 0 && yyv1454 == nil { + yyv1454 = []PodSecurityPolicy{} + yyc1454 = true } } - yyh1449.End() - if yyc1449 { - *v = yyv1449 + yyh1454.End() + if yyc1454 { + *v = yyv1454 } } @@ -18195,10 +18243,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyIngressRule(v []NetworkPolicyIngre z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1453 := range v { + for _, yyv1458 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1454 := &yyv1453 - yy1454.CodecEncodeSelf(e) + yy1459 := &yyv1458 + yy1459.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18208,83 +18256,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngr z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1455 := *v - yyh1455, yyl1455 := z.DecSliceHelperStart() - var yyc1455 bool - if yyl1455 == 0 { - if yyv1455 == nil { - yyv1455 = []NetworkPolicyIngressRule{} - yyc1455 = true - } else if len(yyv1455) != 0 { - yyv1455 = yyv1455[:0] - yyc1455 = true + yyv1460 := *v + yyh1460, yyl1460 := z.DecSliceHelperStart() + var yyc1460 bool + if yyl1460 == 0 { + if yyv1460 == nil { + yyv1460 = []NetworkPolicyIngressRule{} + yyc1460 = true + } else if len(yyv1460) != 0 { + yyv1460 = yyv1460[:0] + yyc1460 = true } - } else if yyl1455 > 0 { - var yyrr1455, yyrl1455 int - var yyrt1455 bool - if yyl1455 > cap(yyv1455) { + } else if yyl1460 > 0 { + var yyrr1460, yyrl1460 int + var yyrt1460 bool + if yyl1460 > cap(yyv1460) { - yyrg1455 := len(yyv1455) > 0 - yyv21455 := yyv1455 - yyrl1455, yyrt1455 = z.DecInferLen(yyl1455, z.DecBasicHandle().MaxInitLen, 48) - if yyrt1455 { - if yyrl1455 <= cap(yyv1455) { - yyv1455 = yyv1455[:yyrl1455] + yyrg1460 := len(yyv1460) > 0 + yyv21460 := yyv1460 + yyrl1460, yyrt1460 = z.DecInferLen(yyl1460, z.DecBasicHandle().MaxInitLen, 48) + if yyrt1460 { + if yyrl1460 <= cap(yyv1460) { + yyv1460 = yyv1460[:yyrl1460] } else { - yyv1455 = make([]NetworkPolicyIngressRule, yyrl1455) + yyv1460 = make([]NetworkPolicyIngressRule, yyrl1460) } } else { - yyv1455 = make([]NetworkPolicyIngressRule, yyrl1455) + yyv1460 = make([]NetworkPolicyIngressRule, yyrl1460) } - yyc1455 = true - yyrr1455 = len(yyv1455) - if yyrg1455 { - copy(yyv1455, yyv21455) + yyc1460 = true + yyrr1460 = len(yyv1460) + if yyrg1460 { + copy(yyv1460, yyv21460) } - } else if yyl1455 != len(yyv1455) { - yyv1455 = yyv1455[:yyl1455] - yyc1455 = true + } else if yyl1460 != len(yyv1460) { + yyv1460 = yyv1460[:yyl1460] + yyc1460 = true } - yyj1455 := 0 - for ; yyj1455 < yyrr1455; yyj1455++ { - yyh1455.ElemContainerState(yyj1455) + yyj1460 := 0 + for ; yyj1460 < yyrr1460; yyj1460++ { + yyh1460.ElemContainerState(yyj1460) if r.TryDecodeAsNil() { - yyv1455[yyj1455] = NetworkPolicyIngressRule{} + yyv1460[yyj1460] = NetworkPolicyIngressRule{} } else { - yyv1456 := &yyv1455[yyj1455] - yyv1456.CodecDecodeSelf(d) + yyv1461 := &yyv1460[yyj1460] + yyv1461.CodecDecodeSelf(d) } } - if yyrt1455 { - for ; yyj1455 < yyl1455; yyj1455++ { - yyv1455 = append(yyv1455, NetworkPolicyIngressRule{}) - yyh1455.ElemContainerState(yyj1455) + if yyrt1460 { + for ; yyj1460 < yyl1460; yyj1460++ { + yyv1460 = append(yyv1460, NetworkPolicyIngressRule{}) + yyh1460.ElemContainerState(yyj1460) if r.TryDecodeAsNil() { - yyv1455[yyj1455] = NetworkPolicyIngressRule{} + yyv1460[yyj1460] = NetworkPolicyIngressRule{} } else { - yyv1457 := &yyv1455[yyj1455] - yyv1457.CodecDecodeSelf(d) + yyv1462 := &yyv1460[yyj1460] + yyv1462.CodecDecodeSelf(d) } } } } else { - yyj1455 := 0 - for ; !r.CheckBreak(); yyj1455++ { + yyj1460 := 0 + for ; !r.CheckBreak(); yyj1460++ { - if yyj1455 >= len(yyv1455) { - yyv1455 = append(yyv1455, NetworkPolicyIngressRule{}) // var yyz1455 NetworkPolicyIngressRule - yyc1455 = true + if yyj1460 >= len(yyv1460) { + yyv1460 = append(yyv1460, NetworkPolicyIngressRule{}) // var yyz1460 NetworkPolicyIngressRule + yyc1460 = true } - yyh1455.ElemContainerState(yyj1455) - if yyj1455 < len(yyv1455) { + yyh1460.ElemContainerState(yyj1460) + if yyj1460 < len(yyv1460) { if r.TryDecodeAsNil() { - yyv1455[yyj1455] = NetworkPolicyIngressRule{} + yyv1460[yyj1460] = NetworkPolicyIngressRule{} } else { - yyv1458 := &yyv1455[yyj1455] - yyv1458.CodecDecodeSelf(d) + yyv1463 := &yyv1460[yyj1460] + yyv1463.CodecDecodeSelf(d) } } else { @@ -18292,17 +18340,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngr } } - if yyj1455 < len(yyv1455) { - yyv1455 = yyv1455[:yyj1455] - yyc1455 = true - } else if yyj1455 == 0 && yyv1455 == nil { - yyv1455 = []NetworkPolicyIngressRule{} - yyc1455 = true + if yyj1460 < len(yyv1460) { + yyv1460 = yyv1460[:yyj1460] + yyc1460 = true + } else if yyj1460 == 0 && yyv1460 == nil { + yyv1460 = []NetworkPolicyIngressRule{} + yyc1460 = true } } - yyh1455.End() - if yyc1455 { - *v = yyv1455 + yyh1460.End() + if yyc1460 { + *v = yyv1460 } } @@ -18311,10 +18359,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyPort(v []NetworkPolicyPort, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1459 := range v { + for _, yyv1464 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1460 := &yyv1459 - yy1460.CodecEncodeSelf(e) + yy1465 := &yyv1464 + yy1465.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18324,83 +18372,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1461 := *v - yyh1461, yyl1461 := z.DecSliceHelperStart() - var yyc1461 bool - if yyl1461 == 0 { - if yyv1461 == nil { - yyv1461 = []NetworkPolicyPort{} - yyc1461 = true - } else if len(yyv1461) != 0 { - yyv1461 = yyv1461[:0] - yyc1461 = true + yyv1466 := *v + yyh1466, yyl1466 := z.DecSliceHelperStart() + var yyc1466 bool + if yyl1466 == 0 { + if yyv1466 == nil { + yyv1466 = []NetworkPolicyPort{} + yyc1466 = true + } else if len(yyv1466) != 0 { + yyv1466 = yyv1466[:0] + yyc1466 = true } - } else if yyl1461 > 0 { - var yyrr1461, yyrl1461 int - var yyrt1461 bool - if yyl1461 > cap(yyv1461) { + } else if yyl1466 > 0 { + var yyrr1466, yyrl1466 int + var yyrt1466 bool + if yyl1466 > cap(yyv1466) { - yyrg1461 := len(yyv1461) > 0 - yyv21461 := yyv1461 - yyrl1461, yyrt1461 = z.DecInferLen(yyl1461, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1461 { - if yyrl1461 <= cap(yyv1461) { - yyv1461 = yyv1461[:yyrl1461] + yyrg1466 := len(yyv1466) > 0 + yyv21466 := yyv1466 + yyrl1466, yyrt1466 = z.DecInferLen(yyl1466, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1466 { + if yyrl1466 <= cap(yyv1466) { + yyv1466 = yyv1466[:yyrl1466] } else { - yyv1461 = make([]NetworkPolicyPort, yyrl1461) + yyv1466 = make([]NetworkPolicyPort, yyrl1466) } } else { - yyv1461 = make([]NetworkPolicyPort, yyrl1461) + yyv1466 = make([]NetworkPolicyPort, yyrl1466) } - yyc1461 = true - yyrr1461 = len(yyv1461) - if yyrg1461 { - copy(yyv1461, yyv21461) + yyc1466 = true + yyrr1466 = len(yyv1466) + if yyrg1466 { + copy(yyv1466, yyv21466) } - } else if yyl1461 != len(yyv1461) { - yyv1461 = yyv1461[:yyl1461] - yyc1461 = true + } else if yyl1466 != len(yyv1466) { + yyv1466 = yyv1466[:yyl1466] + yyc1466 = true } - yyj1461 := 0 - for ; yyj1461 < yyrr1461; yyj1461++ { - yyh1461.ElemContainerState(yyj1461) + yyj1466 := 0 + for ; yyj1466 < yyrr1466; yyj1466++ { + yyh1466.ElemContainerState(yyj1466) if r.TryDecodeAsNil() { - yyv1461[yyj1461] = NetworkPolicyPort{} + yyv1466[yyj1466] = NetworkPolicyPort{} } else { - yyv1462 := &yyv1461[yyj1461] - yyv1462.CodecDecodeSelf(d) + yyv1467 := &yyv1466[yyj1466] + yyv1467.CodecDecodeSelf(d) } } - if yyrt1461 { - for ; yyj1461 < yyl1461; yyj1461++ { - yyv1461 = append(yyv1461, NetworkPolicyPort{}) - yyh1461.ElemContainerState(yyj1461) + if yyrt1466 { + for ; yyj1466 < yyl1466; yyj1466++ { + yyv1466 = append(yyv1466, NetworkPolicyPort{}) + yyh1466.ElemContainerState(yyj1466) if r.TryDecodeAsNil() { - yyv1461[yyj1461] = NetworkPolicyPort{} + yyv1466[yyj1466] = NetworkPolicyPort{} } else { - yyv1463 := &yyv1461[yyj1461] - yyv1463.CodecDecodeSelf(d) + yyv1468 := &yyv1466[yyj1466] + yyv1468.CodecDecodeSelf(d) } } } } else { - yyj1461 := 0 - for ; !r.CheckBreak(); yyj1461++ { + yyj1466 := 0 + for ; !r.CheckBreak(); yyj1466++ { - if yyj1461 >= len(yyv1461) { - yyv1461 = append(yyv1461, NetworkPolicyPort{}) // var yyz1461 NetworkPolicyPort - yyc1461 = true + if yyj1466 >= len(yyv1466) { + yyv1466 = append(yyv1466, NetworkPolicyPort{}) // var yyz1466 NetworkPolicyPort + yyc1466 = true } - yyh1461.ElemContainerState(yyj1461) - if yyj1461 < len(yyv1461) { + yyh1466.ElemContainerState(yyj1466) + if yyj1466 < len(yyv1466) { if r.TryDecodeAsNil() { - yyv1461[yyj1461] = NetworkPolicyPort{} + yyv1466[yyj1466] = NetworkPolicyPort{} } else { - yyv1464 := &yyv1461[yyj1461] - yyv1464.CodecDecodeSelf(d) + yyv1469 := &yyv1466[yyj1466] + yyv1469.CodecDecodeSelf(d) } } else { @@ -18408,17 +18456,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *co } } - if yyj1461 < len(yyv1461) { - yyv1461 = yyv1461[:yyj1461] - yyc1461 = true - } else if yyj1461 == 0 && yyv1461 == nil { - yyv1461 = []NetworkPolicyPort{} - yyc1461 = true + if yyj1466 < len(yyv1466) { + yyv1466 = yyv1466[:yyj1466] + yyc1466 = true + } else if yyj1466 == 0 && yyv1466 == nil { + yyv1466 = []NetworkPolicyPort{} + yyc1466 = true } } - yyh1461.End() - if yyc1461 { - *v = yyv1461 + yyh1466.End() + if yyc1466 { + *v = yyv1466 } } @@ -18427,10 +18475,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyPeer(v []NetworkPolicyPeer, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1465 := range v { + for _, yyv1470 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1466 := &yyv1465 - yy1466.CodecEncodeSelf(e) + yy1471 := &yyv1470 + yy1471.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18440,83 +18488,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1467 := *v - yyh1467, yyl1467 := z.DecSliceHelperStart() - var yyc1467 bool - if yyl1467 == 0 { - if yyv1467 == nil { - yyv1467 = []NetworkPolicyPeer{} - yyc1467 = true - } else if len(yyv1467) != 0 { - yyv1467 = yyv1467[:0] - yyc1467 = true + yyv1472 := *v + yyh1472, yyl1472 := z.DecSliceHelperStart() + var yyc1472 bool + if yyl1472 == 0 { + if yyv1472 == nil { + yyv1472 = []NetworkPolicyPeer{} + yyc1472 = true + } else if len(yyv1472) != 0 { + yyv1472 = yyv1472[:0] + yyc1472 = true } - } else if yyl1467 > 0 { - var yyrr1467, yyrl1467 int - var yyrt1467 bool - if yyl1467 > cap(yyv1467) { + } else if yyl1472 > 0 { + var yyrr1472, yyrl1472 int + var yyrt1472 bool + if yyl1472 > cap(yyv1472) { - yyrg1467 := len(yyv1467) > 0 - yyv21467 := yyv1467 - yyrl1467, yyrt1467 = z.DecInferLen(yyl1467, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1467 { - if yyrl1467 <= cap(yyv1467) { - yyv1467 = yyv1467[:yyrl1467] + yyrg1472 := len(yyv1472) > 0 + yyv21472 := yyv1472 + yyrl1472, yyrt1472 = z.DecInferLen(yyl1472, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1472 { + if yyrl1472 <= cap(yyv1472) { + yyv1472 = yyv1472[:yyrl1472] } else { - yyv1467 = make([]NetworkPolicyPeer, yyrl1467) + yyv1472 = make([]NetworkPolicyPeer, yyrl1472) } } else { - yyv1467 = make([]NetworkPolicyPeer, yyrl1467) + yyv1472 = make([]NetworkPolicyPeer, yyrl1472) } - yyc1467 = true - yyrr1467 = len(yyv1467) - if yyrg1467 { - copy(yyv1467, yyv21467) + yyc1472 = true + yyrr1472 = len(yyv1472) + if yyrg1472 { + copy(yyv1472, yyv21472) } - } else if yyl1467 != len(yyv1467) { - yyv1467 = yyv1467[:yyl1467] - yyc1467 = true + } else if yyl1472 != len(yyv1472) { + yyv1472 = yyv1472[:yyl1472] + yyc1472 = true } - yyj1467 := 0 - for ; yyj1467 < yyrr1467; yyj1467++ { - yyh1467.ElemContainerState(yyj1467) + yyj1472 := 0 + for ; yyj1472 < yyrr1472; yyj1472++ { + yyh1472.ElemContainerState(yyj1472) if r.TryDecodeAsNil() { - yyv1467[yyj1467] = NetworkPolicyPeer{} + yyv1472[yyj1472] = NetworkPolicyPeer{} } else { - yyv1468 := &yyv1467[yyj1467] - yyv1468.CodecDecodeSelf(d) + yyv1473 := &yyv1472[yyj1472] + yyv1473.CodecDecodeSelf(d) } } - if yyrt1467 { - for ; yyj1467 < yyl1467; yyj1467++ { - yyv1467 = append(yyv1467, NetworkPolicyPeer{}) - yyh1467.ElemContainerState(yyj1467) + if yyrt1472 { + for ; yyj1472 < yyl1472; yyj1472++ { + yyv1472 = append(yyv1472, NetworkPolicyPeer{}) + yyh1472.ElemContainerState(yyj1472) if r.TryDecodeAsNil() { - yyv1467[yyj1467] = NetworkPolicyPeer{} + yyv1472[yyj1472] = NetworkPolicyPeer{} } else { - yyv1469 := &yyv1467[yyj1467] - yyv1469.CodecDecodeSelf(d) + yyv1474 := &yyv1472[yyj1472] + yyv1474.CodecDecodeSelf(d) } } } } else { - yyj1467 := 0 - for ; !r.CheckBreak(); yyj1467++ { + yyj1472 := 0 + for ; !r.CheckBreak(); yyj1472++ { - if yyj1467 >= len(yyv1467) { - yyv1467 = append(yyv1467, NetworkPolicyPeer{}) // var yyz1467 NetworkPolicyPeer - yyc1467 = true + if yyj1472 >= len(yyv1472) { + yyv1472 = append(yyv1472, NetworkPolicyPeer{}) // var yyz1472 NetworkPolicyPeer + yyc1472 = true } - yyh1467.ElemContainerState(yyj1467) - if yyj1467 < len(yyv1467) { + yyh1472.ElemContainerState(yyj1472) + if yyj1472 < len(yyv1472) { if r.TryDecodeAsNil() { - yyv1467[yyj1467] = NetworkPolicyPeer{} + yyv1472[yyj1472] = NetworkPolicyPeer{} } else { - yyv1470 := &yyv1467[yyj1467] - yyv1470.CodecDecodeSelf(d) + yyv1475 := &yyv1472[yyj1472] + yyv1475.CodecDecodeSelf(d) } } else { @@ -18524,17 +18572,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *co } } - if yyj1467 < len(yyv1467) { - yyv1467 = yyv1467[:yyj1467] - yyc1467 = true - } else if yyj1467 == 0 && yyv1467 == nil { - yyv1467 = []NetworkPolicyPeer{} - yyc1467 = true + if yyj1472 < len(yyv1472) { + yyv1472 = yyv1472[:yyj1472] + yyc1472 = true + } else if yyj1472 == 0 && yyv1472 == nil { + yyv1472 = []NetworkPolicyPeer{} + yyc1472 = true } } - yyh1467.End() - if yyc1467 { - *v = yyv1467 + yyh1472.End() + if yyc1472 { + *v = yyv1472 } } @@ -18543,10 +18591,10 @@ func (x codecSelfer1234) encSliceNetworkPolicy(v []NetworkPolicy, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1471 := range v { + for _, yyv1476 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1472 := &yyv1471 - yy1472.CodecEncodeSelf(e) + yy1477 := &yyv1476 + yy1477.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18556,83 +18604,83 @@ func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1473 := *v - yyh1473, yyl1473 := z.DecSliceHelperStart() - var yyc1473 bool - if yyl1473 == 0 { - if yyv1473 == nil { - yyv1473 = []NetworkPolicy{} - yyc1473 = true - } else if len(yyv1473) != 0 { - yyv1473 = yyv1473[:0] - yyc1473 = true + yyv1478 := *v + yyh1478, yyl1478 := z.DecSliceHelperStart() + var yyc1478 bool + if yyl1478 == 0 { + if yyv1478 == nil { + yyv1478 = []NetworkPolicy{} + yyc1478 = true + } else if len(yyv1478) != 0 { + yyv1478 = yyv1478[:0] + yyc1478 = true } - } else if yyl1473 > 0 { - var yyrr1473, yyrl1473 int - var yyrt1473 bool - if yyl1473 > cap(yyv1473) { + } else if yyl1478 > 0 { + var yyrr1478, yyrl1478 int + var yyrt1478 bool + if yyl1478 > cap(yyv1478) { - yyrg1473 := len(yyv1473) > 0 - yyv21473 := yyv1473 - yyrl1473, yyrt1473 = z.DecInferLen(yyl1473, z.DecBasicHandle().MaxInitLen, 296) - if yyrt1473 { - if yyrl1473 <= cap(yyv1473) { - yyv1473 = yyv1473[:yyrl1473] + yyrg1478 := len(yyv1478) > 0 + yyv21478 := yyv1478 + yyrl1478, yyrt1478 = z.DecInferLen(yyl1478, z.DecBasicHandle().MaxInitLen, 312) + if yyrt1478 { + if yyrl1478 <= cap(yyv1478) { + yyv1478 = yyv1478[:yyrl1478] } else { - yyv1473 = make([]NetworkPolicy, yyrl1473) + yyv1478 = make([]NetworkPolicy, yyrl1478) } } else { - yyv1473 = make([]NetworkPolicy, yyrl1473) + yyv1478 = make([]NetworkPolicy, yyrl1478) } - yyc1473 = true - yyrr1473 = len(yyv1473) - if yyrg1473 { - copy(yyv1473, yyv21473) + yyc1478 = true + yyrr1478 = len(yyv1478) + if yyrg1478 { + copy(yyv1478, yyv21478) } - } else if yyl1473 != len(yyv1473) { - yyv1473 = yyv1473[:yyl1473] - yyc1473 = true + } else if yyl1478 != len(yyv1478) { + yyv1478 = yyv1478[:yyl1478] + yyc1478 = true } - yyj1473 := 0 - for ; yyj1473 < yyrr1473; yyj1473++ { - yyh1473.ElemContainerState(yyj1473) + yyj1478 := 0 + for ; yyj1478 < yyrr1478; yyj1478++ { + yyh1478.ElemContainerState(yyj1478) if r.TryDecodeAsNil() { - yyv1473[yyj1473] = NetworkPolicy{} + yyv1478[yyj1478] = NetworkPolicy{} } else { - yyv1474 := &yyv1473[yyj1473] - yyv1474.CodecDecodeSelf(d) + yyv1479 := &yyv1478[yyj1478] + yyv1479.CodecDecodeSelf(d) } } - if yyrt1473 { - for ; yyj1473 < yyl1473; yyj1473++ { - yyv1473 = append(yyv1473, NetworkPolicy{}) - yyh1473.ElemContainerState(yyj1473) + if yyrt1478 { + for ; yyj1478 < yyl1478; yyj1478++ { + yyv1478 = append(yyv1478, NetworkPolicy{}) + yyh1478.ElemContainerState(yyj1478) if r.TryDecodeAsNil() { - yyv1473[yyj1473] = NetworkPolicy{} + yyv1478[yyj1478] = NetworkPolicy{} } else { - yyv1475 := &yyv1473[yyj1473] - yyv1475.CodecDecodeSelf(d) + yyv1480 := &yyv1478[yyj1478] + yyv1480.CodecDecodeSelf(d) } } } } else { - yyj1473 := 0 - for ; !r.CheckBreak(); yyj1473++ { + yyj1478 := 0 + for ; !r.CheckBreak(); yyj1478++ { - if yyj1473 >= len(yyv1473) { - yyv1473 = append(yyv1473, NetworkPolicy{}) // var yyz1473 NetworkPolicy - yyc1473 = true + if yyj1478 >= len(yyv1478) { + yyv1478 = append(yyv1478, NetworkPolicy{}) // var yyz1478 NetworkPolicy + yyc1478 = true } - yyh1473.ElemContainerState(yyj1473) - if yyj1473 < len(yyv1473) { + yyh1478.ElemContainerState(yyj1478) + if yyj1478 < len(yyv1478) { if r.TryDecodeAsNil() { - yyv1473[yyj1473] = NetworkPolicy{} + yyv1478[yyj1478] = NetworkPolicy{} } else { - yyv1476 := &yyv1473[yyj1473] - yyv1476.CodecDecodeSelf(d) + yyv1481 := &yyv1478[yyj1478] + yyv1481.CodecDecodeSelf(d) } } else { @@ -18640,17 +18688,17 @@ func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978. } } - if yyj1473 < len(yyv1473) { - yyv1473 = yyv1473[:yyj1473] - yyc1473 = true - } else if yyj1473 == 0 && yyv1473 == nil { - yyv1473 = []NetworkPolicy{} - yyc1473 = true + if yyj1478 < len(yyv1478) { + yyv1478 = yyv1478[:yyj1478] + yyc1478 = true + } else if yyj1478 == 0 && yyv1478 == nil { + yyv1478 = []NetworkPolicy{} + yyc1478 = true } } - yyh1473.End() - if yyc1473 { - *v = yyv1473 + yyh1478.End() + if yyc1478 { + *v = yyv1478 } } @@ -18659,10 +18707,10 @@ func (x codecSelfer1234) encSliceStorageClass(v []StorageClass, e *codec1978.Enc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1477 := range v { + for _, yyv1482 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1478 := &yyv1477 - yy1478.CodecEncodeSelf(e) + yy1483 := &yyv1482 + yy1483.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18672,83 +18720,83 @@ func (x codecSelfer1234) decSliceStorageClass(v *[]StorageClass, d *codec1978.De z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1479 := *v - yyh1479, yyl1479 := z.DecSliceHelperStart() - var yyc1479 bool - if yyl1479 == 0 { - if yyv1479 == nil { - yyv1479 = []StorageClass{} - yyc1479 = true - } else if len(yyv1479) != 0 { - yyv1479 = yyv1479[:0] - yyc1479 = true + yyv1484 := *v + yyh1484, yyl1484 := z.DecSliceHelperStart() + var yyc1484 bool + if yyl1484 == 0 { + if yyv1484 == nil { + yyv1484 = []StorageClass{} + yyc1484 = true + } else if len(yyv1484) != 0 { + yyv1484 = yyv1484[:0] + yyc1484 = true } - } else if yyl1479 > 0 { - var yyrr1479, yyrl1479 int - var yyrt1479 bool - if yyl1479 > cap(yyv1479) { + } else if yyl1484 > 0 { + var yyrr1484, yyrl1484 int + var yyrt1484 bool + if yyl1484 > cap(yyv1484) { - yyrg1479 := len(yyv1479) > 0 - yyv21479 := yyv1479 - yyrl1479, yyrt1479 = z.DecInferLen(yyl1479, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1479 { - if yyrl1479 <= cap(yyv1479) { - yyv1479 = yyv1479[:yyrl1479] + yyrg1484 := len(yyv1484) > 0 + yyv21484 := yyv1484 + yyrl1484, yyrt1484 = z.DecInferLen(yyl1484, z.DecBasicHandle().MaxInitLen, 280) + if yyrt1484 { + if yyrl1484 <= cap(yyv1484) { + yyv1484 = yyv1484[:yyrl1484] } else { - yyv1479 = make([]StorageClass, yyrl1479) + yyv1484 = make([]StorageClass, yyrl1484) } } else { - yyv1479 = make([]StorageClass, yyrl1479) + yyv1484 = make([]StorageClass, yyrl1484) } - yyc1479 = true - yyrr1479 = len(yyv1479) - if yyrg1479 { - copy(yyv1479, yyv21479) + yyc1484 = true + yyrr1484 = len(yyv1484) + if yyrg1484 { + copy(yyv1484, yyv21484) } - } else if yyl1479 != len(yyv1479) { - yyv1479 = yyv1479[:yyl1479] - yyc1479 = true + } else if yyl1484 != len(yyv1484) { + yyv1484 = yyv1484[:yyl1484] + yyc1484 = true } - yyj1479 := 0 - for ; yyj1479 < yyrr1479; yyj1479++ { - yyh1479.ElemContainerState(yyj1479) + yyj1484 := 0 + for ; yyj1484 < yyrr1484; yyj1484++ { + yyh1484.ElemContainerState(yyj1484) if r.TryDecodeAsNil() { - yyv1479[yyj1479] = StorageClass{} + yyv1484[yyj1484] = StorageClass{} } else { - yyv1480 := &yyv1479[yyj1479] - yyv1480.CodecDecodeSelf(d) + yyv1485 := &yyv1484[yyj1484] + yyv1485.CodecDecodeSelf(d) } } - if yyrt1479 { - for ; yyj1479 < yyl1479; yyj1479++ { - yyv1479 = append(yyv1479, StorageClass{}) - yyh1479.ElemContainerState(yyj1479) + if yyrt1484 { + for ; yyj1484 < yyl1484; yyj1484++ { + yyv1484 = append(yyv1484, StorageClass{}) + yyh1484.ElemContainerState(yyj1484) if r.TryDecodeAsNil() { - yyv1479[yyj1479] = StorageClass{} + yyv1484[yyj1484] = StorageClass{} } else { - yyv1481 := &yyv1479[yyj1479] - yyv1481.CodecDecodeSelf(d) + yyv1486 := &yyv1484[yyj1484] + yyv1486.CodecDecodeSelf(d) } } } } else { - yyj1479 := 0 - for ; !r.CheckBreak(); yyj1479++ { + yyj1484 := 0 + for ; !r.CheckBreak(); yyj1484++ { - if yyj1479 >= len(yyv1479) { - yyv1479 = append(yyv1479, StorageClass{}) // var yyz1479 StorageClass - yyc1479 = true + if yyj1484 >= len(yyv1484) { + yyv1484 = append(yyv1484, StorageClass{}) // var yyz1484 StorageClass + yyc1484 = true } - yyh1479.ElemContainerState(yyj1479) - if yyj1479 < len(yyv1479) { + yyh1484.ElemContainerState(yyj1484) + if yyj1484 < len(yyv1484) { if r.TryDecodeAsNil() { - yyv1479[yyj1479] = StorageClass{} + yyv1484[yyj1484] = StorageClass{} } else { - yyv1482 := &yyv1479[yyj1479] - yyv1482.CodecDecodeSelf(d) + yyv1487 := &yyv1484[yyj1484] + yyv1487.CodecDecodeSelf(d) } } else { @@ -18756,16 +18804,16 @@ func (x codecSelfer1234) decSliceStorageClass(v *[]StorageClass, d *codec1978.De } } - if yyj1479 < len(yyv1479) { - yyv1479 = yyv1479[:yyj1479] - yyc1479 = true - } else if yyj1479 == 0 && yyv1479 == nil { - yyv1479 = []StorageClass{} - yyc1479 = true + if yyj1484 < len(yyv1484) { + yyv1484 = yyv1484[:yyj1484] + yyc1484 = true + } else if yyj1484 == 0 && yyv1484 == nil { + yyv1484 = []StorageClass{} + yyc1484 = true } } - yyh1479.End() - if yyc1479 { - *v = yyv1479 + yyh1484.End() + if yyc1484 { + *v = yyv1484 } } diff --git a/1.4/pkg/apis/extensions/types.go b/1.4/pkg/apis/extensions/types.go index acbb49b8..50f9ad41 100644 --- a/1.4/pkg/apis/extensions/types.go +++ b/1.4/pkg/apis/extensions/types.go @@ -35,6 +35,13 @@ import ( "k8s.io/client-go/1.4/pkg/util/intstr" ) +const ( + // SysctlsPodSecurityPolicyAnnotationKey represents the key of a whitelist of + // allowed safe and unsafe sysctls in a pod spec. It's a comma-separated list of plain sysctl + // names or sysctl patterns (which end in *). The string "*" matches all sysctls. + SysctlsPodSecurityPolicyAnnotationKey string = "security.alpha.kubernetes.io/sysctls" +) + // describes the attributes of a scale subresource type ScaleSpec struct { // desired number of instances for the scaled object. @@ -550,7 +557,7 @@ type HTTPIngressRuleValue struct { // HTTPIngressPath associates a path regex with a backend. Incoming urls matching // the path are forwarded to the backend. type HTTPIngressPath struct { - // Path is a extended POSIX regex as defined by IEEE Std 1003.1, + // Path is an extended POSIX regex as defined by IEEE Std 1003.1, // (i.e this follows the egrep/unix syntax, not the perl syntax) // matched against the path of an incoming request. Currently it can // contain characters disallowed from the conventional "path" @@ -622,6 +629,9 @@ type ReplicaSetStatus struct { // The number of pods that have labels matching the labels of the pod template of the replicaset. FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty"` + // The number of ready replicas for this replica set. + ReadyReplicas int32 `json:"readyReplicas,omitempty"` + // ObservedGeneration is the most recent generation observed by the controller. ObservedGeneration int64 `json:"observedGeneration,omitempty"` } @@ -714,6 +724,8 @@ var ( FC FSType = "fc" ConfigMap FSType = "configMap" VsphereVolume FSType = "vsphereVolume" + Quobyte FSType = "quobyte" + AzureDisk FSType = "azureDisk" All FSType = "*" ) diff --git a/1.4/pkg/apis/extensions/v1beta1/conversion.go b/1.4/pkg/apis/extensions/v1beta1/conversion.go index 3f93f316..ce555c2f 100644 --- a/1.4/pkg/apis/extensions/v1beta1/conversion.go +++ b/1.4/pkg/apis/extensions/v1beta1/conversion.go @@ -57,7 +57,8 @@ func addConversionFuncs(scheme *runtime.Scheme) error { } // Add field label conversions for kinds having selectable nothing but ObjectMeta fields. - for _, kind := range []string{"DaemonSet", "Deployment", "Ingress"} { + for _, k := range []string{"DaemonSet", "Deployment", "Ingress"} { + kind := k // don't close over range variables err = api.Scheme.AddFieldLabelConversionFunc("extensions/v1beta1", kind, func(label, value string) (string, string, error) { switch label { diff --git a/1.4/pkg/apis/extensions/v1beta1/generated.pb.go b/1.4/pkg/apis/extensions/v1beta1/generated.pb.go index e94d5a06..ad857c3c 100644 --- a/1.4/pkg/apis/extensions/v1beta1/generated.pb.go +++ b/1.4/pkg/apis/extensions/v1beta1/generated.pb.go @@ -2690,6 +2690,9 @@ func (m *ReplicaSetStatus) MarshalTo(data []byte) (int, error) { data[i] = 0x18 i++ i = encodeVarintGenerated(data, i, uint64(m.ObservedGeneration)) + data[i] = 0x20 + i++ + i = encodeVarintGenerated(data, i, uint64(m.ReadyReplicas)) return i, nil } @@ -4037,6 +4040,7 @@ func (m *ReplicaSetStatus) Size() (n int) { n += 1 + sovGenerated(uint64(m.Replicas)) n += 1 + sovGenerated(uint64(m.FullyLabeledReplicas)) n += 1 + sovGenerated(uint64(m.ObservedGeneration)) + n += 1 + sovGenerated(uint64(m.ReadyReplicas)) return n } @@ -4925,6 +4929,7 @@ func (this *ReplicaSetStatus) String() string { `Replicas:` + fmt.Sprintf("%v", this.Replicas) + `,`, `FullyLabeledReplicas:` + fmt.Sprintf("%v", this.FullyLabeledReplicas) + `,`, `ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`, + `ReadyReplicas:` + fmt.Sprintf("%v", this.ReadyReplicas) + `,`, `}`, }, "") return s @@ -12294,6 +12299,25 @@ func (m *ReplicaSetStatus) Unmarshal(data []byte) error { break } } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field ReadyReplicas", wireType) + } + m.ReadyReplicas = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + m.ReadyReplicas |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } default: iNdEx = preIndex skippy, err := skipGenerated(data[iNdEx:]) @@ -14376,7 +14400,7 @@ var ( ) var fileDescriptorGenerated = []byte{ - // 3999 bytes of a gzipped FileDescriptorProto + // 4015 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe4, 0x5c, 0xdb, 0x8f, 0x1c, 0x47, 0x57, 0xcf, 0xcc, 0xec, 0x65, 0xa6, 0xf6, 0xea, 0xf2, 0xda, 0x9e, 0x6c, 0x12, 0x3b, 0xe9, 0x88, 0x90, 0x88, 0x78, 0x16, 0x9b, 0x24, 0x38, 0x76, 0xe2, 0x64, 0x67, 0x2f, 0xb6, 0x93, 0x5d, 0x7b, @@ -14587,44 +14611,45 @@ var fileDescriptorGenerated = []byte{ 0x58, 0x9e, 0xe6, 0x6e, 0x13, 0xbe, 0xbd, 0x26, 0x89, 0x5c, 0x24, 0x45, 0x9a, 0xbf, 0xbd, 0x16, 0xd7, 0xb8, 0x87, 0xfb, 0x1b, 0x8b, 0xfd, 0xbd, 0xbd, 0x8e, 0x4c, 0x3c, 0xb4, 0xb7, 0xd7, 0x92, 0x8a, 0x7b, 0xbf, 0xbd, 0x8e, 0x98, 0x7f, 0x0a, 0xde, 0x5e, 0x47, 0xc6, 0xa6, 0xe4, 0xd3, 0x1f, - 0x2b, 0x3d, 0xfa, 0x19, 0x7c, 0xe0, 0xab, 0x7d, 0x9d, 0x43, 0xb3, 0x71, 0x07, 0x50, 0xde, 0x7e, - 0xe6, 0xee, 0xf9, 0xf6, 0xb3, 0x86, 0xe6, 0xb6, 0x3c, 0xd3, 0xec, 0xf1, 0xde, 0x48, 0x6f, 0x29, - 0xfc, 0x63, 0xe2, 0x87, 0x85, 0xe4, 0xdc, 0x6a, 0x02, 0x0f, 0x49, 0x94, 0x4c, 0x79, 0xc7, 0x5a, - 0x18, 0xe6, 0x1d, 0xab, 0xf6, 0x30, 0x9a, 0x17, 0xb8, 0xec, 0x73, 0xc9, 0xea, 0xb8, 0xec, 0x29, - 0x24, 0xb5, 0x97, 0xbd, 0x76, 0xbb, 0xa7, 0x5d, 0x86, 0xf9, 0x57, 0x1e, 0xdd, 0xfa, 0x7d, 0xf7, - 0xdf, 0x01, 0x8b, 0xd7, 0x10, 0x52, 0xdf, 0xfd, 0x76, 0x12, 0x72, 0x68, 0xdf, 0xe4, 0xd0, 0xa9, - 0x94, 0x67, 0x98, 0xf8, 0x36, 0x9a, 0x6e, 0xeb, 0x7b, 0xd2, 0x3b, 0x53, 0xb1, 0x42, 0xb2, 0xee, - 0x5d, 0xf8, 0x09, 0xc9, 0xba, 0x82, 0x44, 0x62, 0xc8, 0x3c, 0x7c, 0xe9, 0x7b, 0x75, 0xcf, 0x6e, - 0xd1, 0x21, 0x77, 0x48, 0xdc, 0xfb, 0xd6, 0x05, 0x06, 0x09, 0xd1, 0xd8, 0x63, 0xce, 0x72, 0x5a, - 0x2e, 0x83, 0xaa, 0x44, 0x7e, 0xce, 0xf9, 0x58, 0xec, 0x39, 0xe7, 0xb1, 0x3e, 0xb9, 0x23, 0x7a, - 0xcc, 0xf9, 0x65, 0x0e, 0x9d, 0x4c, 0xce, 0xf9, 0xf8, 0x97, 0x14, 0x8b, 0xcf, 0xc4, 0x2c, 0x9e, - 0x89, 0x49, 0x09, 0x7b, 0xb7, 0xd1, 0xb4, 0xa8, 0x0c, 0x04, 0xcc, 0x7d, 0xfc, 0xe6, 0x70, 0x37, - 0x2c, 0x3b, 0x82, 0x1c, 0xc7, 0xe7, 0x51, 0x6d, 0x23, 0x31, 0x5c, 0xed, 0x0f, 0xf3, 0x68, 0x94, - 0xbf, 0x71, 0x3a, 0xc4, 0x84, 0xf4, 0xa6, 0x92, 0x90, 0xb2, 0xde, 0x82, 0x72, 0xeb, 0x52, 0x73, - 0xd1, 0x66, 0x2c, 0x17, 0x5d, 0x1c, 0x0a, 0x7d, 0x70, 0x1a, 0x7a, 0x1e, 0x95, 0x42, 0x23, 0xb2, - 0x85, 0x2a, 0x96, 0xf4, 0x27, 0x24, 0x15, 0x19, 0x03, 0xdd, 0xae, 0x12, 0xf0, 0x87, 0xf9, 0x71, - 0xac, 0xa4, 0xbb, 0x12, 0x44, 0x7a, 0xff, 0xa4, 0x3e, 0x7a, 0xa5, 0xd8, 0x9f, 0x00, 0x20, 0x48, - 0xf9, 0xbf, 0x30, 0x0e, 0x4f, 0x26, 0x0a, 0xdc, 0x7b, 0x4f, 0x0a, 0x99, 0xe9, 0x0d, 0x85, 0x4a, - 0x62, 0xdc, 0xf3, 0x97, 0xd0, 0x94, 0xa2, 0x2c, 0xd3, 0x81, 0xfa, 0x37, 0x79, 0x34, 0x59, 0x07, - 0x49, 0xbd, 0x45, 0x97, 0x4c, 0xfd, 0x50, 0xdf, 0x77, 0xc1, 0x1e, 0xa7, 0x6b, 0x5b, 0x7e, 0x64, - 0xa5, 0xc1, 0x29, 0x76, 0x74, 0x80, 0x12, 0x91, 0x88, 0xcc, 0x87, 0x3f, 0x82, 0xad, 0xaf, 0x6e, - 0xeb, 0x00, 0x03, 0xc5, 0x85, 0x78, 0xd9, 0xf1, 0x6a, 0xd6, 0x89, 0x91, 0x7a, 0x58, 0xa9, 0x85, - 0x68, 0xfe, 0xdc, 0x44, 0xfb, 0xe8, 0x90, 0x40, 0x24, 0x95, 0xf3, 0x2f, 0xa2, 0x99, 0x98, 0x48, - 0xa6, 0x11, 0xfe, 0x57, 0x48, 0xc1, 0xb2, 0xfe, 0xa3, 0x28, 0xac, 0xde, 0x57, 0x0b, 0xab, 0x4b, - 0xfb, 0x18, 0xae, 0x94, 0xd2, 0xea, 0xef, 0x72, 0x68, 0x2e, 0xe9, 0x3d, 0x2e, 0x7b, 0x74, 0xb5, - 0x63, 0x88, 0x07, 0x44, 0xd2, 0xa3, 0xab, 0x57, 0xa1, 0x8d, 0x70, 0x4a, 0xf8, 0xd3, 0xb7, 0x7c, - 0xea, 0x4f, 0xdf, 0xce, 0x23, 0x04, 0xa6, 0x05, 0x57, 0x11, 0x05, 0xf5, 0xe9, 0x4a, 0xf4, 0xff, - 0x01, 0x20, 0x12, 0x17, 0x7f, 0x66, 0x17, 0xd9, 0x23, 0xee, 0x2f, 0xa2, 0xf7, 0x6f, 0x92, 0xa9, - 0x32, 0x9f, 0xf6, 0xf7, 0x39, 0xf4, 0xd8, 0x3d, 0xf7, 0x51, 0xb8, 0xaa, 0xa4, 0x95, 0x4a, 0x2c, - 0xad, 0x9c, 0x4e, 0x07, 0x38, 0xc2, 0x9f, 0x38, 0x7c, 0x9a, 0x47, 0x78, 0x63, 0xdb, 0xb0, 0x9b, - 0xe0, 0xac, 0x6e, 0x2f, 0xb8, 0xb0, 0x39, 0xdc, 0xf5, 0xdc, 0xa4, 0x4e, 0xc3, 0x36, 0xf8, 0x20, - 0xc5, 0xd7, 0xf3, 0x72, 0x44, 0x22, 0x32, 0x1f, 0xec, 0x67, 0x8a, 0xc2, 0x9b, 0x83, 0xd5, 0x9c, - 0xb5, 0xee, 0x8f, 0x3c, 0x20, 0x5a, 0x04, 0xa2, 0x01, 0xe2, 0x79, 0x00, 0xae, 0x7d, 0x06, 0x65, - 0x42, 0xff, 0x80, 0x2c, 0xfb, 0xaf, 0x90, 0x0e, 0x6b, 0x50, 0x1e, 0x46, 0x23, 0x1c, 0x95, 0x8d, - 0xc6, 0xa4, 0x7f, 0x2e, 0xcd, 0x34, 0x12, 0xde, 0xaa, 0x7d, 0x97, 0x43, 0xf3, 0xc9, 0x26, 0x1d, - 0x45, 0x54, 0xb8, 0xad, 0x46, 0x85, 0xac, 0x7b, 0xfb, 0x64, 0xc3, 0x53, 0xe2, 0xc3, 0x37, 0x89, - 0x83, 0x7f, 0x14, 0xbd, 0xdc, 0x52, 0x7b, 0xb9, 0xb8, 0xef, 0x5e, 0x26, 0xf7, 0xb0, 0xfa, 0xd4, - 0xdd, 0xff, 0x39, 0xfd, 0xc0, 0x57, 0xf0, 0xf7, 0x9f, 0xf0, 0xf7, 0xf1, 0xb7, 0xa7, 0x73, 0x77, - 0xe1, 0xef, 0x2b, 0xf8, 0xfb, 0x6f, 0xf8, 0xfb, 0xec, 0x7f, 0x4f, 0x3f, 0xf0, 0xe6, 0xb8, 0xc0, - 0xfc, 0x49, 0x00, 0x00, 0x00, 0xff, 0xff, 0x8e, 0x16, 0x2d, 0x53, 0x56, 0x46, 0x00, 0x00, + 0x2b, 0x3d, 0xfa, 0x19, 0x7c, 0xe0, 0xcb, 0x2e, 0x74, 0x66, 0xe3, 0x0e, 0xa0, 0xbc, 0xfd, 0xcc, + 0xdd, 0xf3, 0xed, 0x67, 0x0d, 0xcd, 0x6d, 0x79, 0xa6, 0xd9, 0xe3, 0xbd, 0x91, 0xde, 0x52, 0xf8, + 0xc7, 0xc4, 0x0f, 0x0b, 0xc9, 0xb9, 0xd5, 0x04, 0x1e, 0x92, 0x28, 0x99, 0xf2, 0x8e, 0xb5, 0x30, + 0xd4, 0x3b, 0xd6, 0x4b, 0x68, 0x8a, 0x45, 0x80, 0x5e, 0xec, 0x89, 0x47, 0x78, 0x38, 0x42, 0x64, + 0x22, 0x51, 0x79, 0xb5, 0x87, 0xd1, 0xbc, 0xf8, 0x37, 0xc3, 0x5a, 0xb2, 0x3a, 0x2e, 0x7b, 0x47, + 0x49, 0xed, 0x65, 0xaf, 0xdd, 0xee, 0x69, 0x97, 0xc1, 0x79, 0x94, 0x17, 0xbb, 0xfe, 0xc0, 0xf9, + 0x8f, 0x88, 0xc5, 0x53, 0x0a, 0x69, 0xe0, 0xfc, 0x76, 0x12, 0x72, 0x68, 0xdf, 0xe4, 0xd0, 0xa9, + 0x94, 0x37, 0x9c, 0xf8, 0x36, 0x9a, 0x6e, 0xeb, 0x7b, 0xd2, 0x23, 0x55, 0xb1, 0xbc, 0xb2, 0x6e, + 0x7c, 0xf8, 0xf1, 0xca, 0xba, 0x82, 0x44, 0x62, 0xc8, 0x3c, 0xf6, 0xe9, 0x7b, 0x75, 0xcf, 0x6e, + 0xd1, 0x21, 0xb7, 0x57, 0xdc, 0x75, 0xd7, 0x05, 0x06, 0x09, 0xd1, 0xd8, 0x4b, 0xd0, 0x72, 0x5a, + 0x22, 0x84, 0x92, 0x46, 0x7e, 0x0b, 0xfa, 0x58, 0xec, 0x2d, 0xe8, 0xb1, 0x3e, 0xb9, 0x23, 0x7a, + 0x09, 0xfa, 0x65, 0x0e, 0x9d, 0x4c, 0x2e, 0x18, 0xf0, 0x2f, 0x29, 0x16, 0x9f, 0x89, 0x59, 0x3c, + 0x13, 0x93, 0x12, 0xf6, 0x6e, 0xa3, 0x69, 0x51, 0x56, 0x08, 0x98, 0xfb, 0xf8, 0xc1, 0xe2, 0x6e, + 0x58, 0xb3, 0x04, 0x09, 0x92, 0xcf, 0xa3, 0xda, 0x46, 0x62, 0xb8, 0xda, 0x1f, 0xe6, 0xd1, 0x28, + 0x7f, 0x20, 0x75, 0x88, 0xd9, 0xec, 0x4d, 0x25, 0x9b, 0x65, 0xbd, 0x42, 0xe5, 0xd6, 0xa5, 0x26, + 0xb2, 0xcd, 0x58, 0x22, 0xbb, 0x38, 0x14, 0xfa, 0xe0, 0x1c, 0xf6, 0x3c, 0x2a, 0x85, 0x46, 0x64, + 0x8b, 0x73, 0xac, 0x62, 0x98, 0x90, 0x54, 0x64, 0x8c, 0x92, 0xbb, 0x4a, 0xb6, 0x18, 0xe6, 0x97, + 0xb5, 0x92, 0xee, 0x4a, 0x90, 0x26, 0xfc, 0x63, 0xfe, 0xe8, 0x89, 0x63, 0x7f, 0xf6, 0x80, 0x20, + 0xe5, 0xff, 0x3c, 0x39, 0x3c, 0xd6, 0x28, 0x70, 0xef, 0x3d, 0x29, 0x64, 0xa6, 0x37, 0x14, 0x2a, + 0x89, 0x71, 0xcf, 0x43, 0xfc, 0x54, 0x94, 0x65, 0x3a, 0x8d, 0xff, 0x26, 0x8f, 0x26, 0xeb, 0x20, + 0xa9, 0xb7, 0xe8, 0x92, 0xa9, 0x1f, 0xea, 0xe3, 0x30, 0xd8, 0x20, 0x75, 0x6d, 0xcb, 0x8f, 0xac, + 0x34, 0x38, 0x02, 0x8f, 0x4e, 0x5f, 0x22, 0x12, 0x91, 0xf9, 0xf0, 0x47, 0xb0, 0x6f, 0xd6, 0x6d, + 0x1d, 0x60, 0xa0, 0x32, 0x11, 0xcf, 0x42, 0x5e, 0xcd, 0x3a, 0x31, 0x52, 0x0f, 0x2b, 0xb5, 0x10, + 0xcd, 0x9f, 0x9b, 0x68, 0x13, 0x1e, 0x12, 0x88, 0xa4, 0x72, 0xfe, 0x45, 0x34, 0x13, 0x13, 0xc9, + 0x34, 0xc2, 0xff, 0x9a, 0x43, 0xb3, 0xb2, 0xfe, 0xa3, 0xa8, 0xca, 0xde, 0x57, 0xab, 0xb2, 0x4b, + 0xfb, 0x18, 0xae, 0x94, 0xba, 0xec, 0xef, 0x72, 0x68, 0x2e, 0xe9, 0x31, 0x2f, 0x7b, 0xb1, 0xb5, + 0x63, 0x88, 0xd7, 0x47, 0xd2, 0x8b, 0xad, 0x57, 0xa1, 0x8d, 0x70, 0x4a, 0xf8, 0xbb, 0xb9, 0x7c, + 0xea, 0xef, 0xe6, 0xce, 0x23, 0x04, 0xa6, 0x05, 0xf7, 0x18, 0x05, 0xf5, 0xdd, 0x4b, 0xf4, 0x3f, + 0x11, 0x20, 0x12, 0x17, 0x7f, 0xa3, 0x17, 0xd9, 0x23, 0x2e, 0x3f, 0xa2, 0xc7, 0x73, 0x92, 0xa9, + 0x32, 0x9f, 0xf6, 0xf7, 0x39, 0xf4, 0xd8, 0x3d, 0x37, 0x61, 0xb8, 0xaa, 0xa4, 0x95, 0x4a, 0x2c, + 0xad, 0x9c, 0x4e, 0x07, 0x38, 0xc2, 0xdf, 0x47, 0x7c, 0x9a, 0x47, 0x78, 0x63, 0xdb, 0xb0, 0x9b, + 0xe0, 0xac, 0x6e, 0x2f, 0xb8, 0xed, 0x39, 0xdc, 0xf5, 0xdc, 0xa4, 0x4e, 0xc3, 0x36, 0xf8, 0x20, + 0xc5, 0xd7, 0xf3, 0x72, 0x44, 0x22, 0x32, 0x1f, 0x6c, 0x86, 0x8a, 0xc2, 0x9b, 0x83, 0xd5, 0x9c, + 0x75, 0xd3, 0x10, 0x79, 0x40, 0xb4, 0x08, 0x44, 0x03, 0xc4, 0xf3, 0x00, 0x5c, 0xfb, 0x0c, 0xca, + 0x84, 0xfe, 0x01, 0x59, 0xf6, 0x9f, 0x30, 0x1d, 0xd6, 0xa0, 0x3c, 0x8c, 0x46, 0x38, 0x2a, 0x1b, + 0x8d, 0x49, 0xff, 0x50, 0x9b, 0x69, 0x24, 0xbc, 0x55, 0xfb, 0x2e, 0x87, 0xe6, 0x93, 0x4d, 0x3a, + 0x8a, 0xa8, 0x70, 0x5b, 0x8d, 0x0a, 0x59, 0x0f, 0x06, 0x92, 0x0d, 0x4f, 0x89, 0x0f, 0xdf, 0x24, + 0x0e, 0xfe, 0x51, 0xf4, 0x72, 0x4b, 0xed, 0xe5, 0xe2, 0xbe, 0x7b, 0x99, 0xdc, 0xc3, 0xea, 0x53, + 0x77, 0xff, 0xe7, 0xf4, 0x03, 0x5f, 0xc1, 0xdf, 0x7f, 0xc2, 0xdf, 0xc7, 0xdf, 0x9e, 0xce, 0xdd, + 0x85, 0xbf, 0xaf, 0xe0, 0xef, 0xbf, 0xe1, 0xef, 0xb3, 0xff, 0x3d, 0xfd, 0xc0, 0x9b, 0xe3, 0x02, + 0xf3, 0x27, 0x01, 0x00, 0x00, 0xff, 0xff, 0x55, 0x2c, 0x00, 0x0f, 0x93, 0x46, 0x00, 0x00, } diff --git a/1.4/pkg/apis/extensions/v1beta1/generated.proto b/1.4/pkg/apis/extensions/v1beta1/generated.proto index 8abe881b..494fee02 100644 --- a/1.4/pkg/apis/extensions/v1beta1/generated.proto +++ b/1.4/pkg/apis/extensions/v1beta1/generated.proto @@ -248,7 +248,7 @@ message FSGroupStrategyOptions { // HTTPIngressPath associates a path regex with a backend. Incoming urls matching // the path are forwarded to the backend. message HTTPIngressPath { - // Path is a extended POSIX regex as defined by IEEE Std 1003.1, + // Path is an extended POSIX regex as defined by IEEE Std 1003.1, // (i.e this follows the egrep/unix syntax, not the perl syntax) // matched against the path of an incoming request. Currently it can // contain characters disallowed from the conventional "path" @@ -847,6 +847,9 @@ message ReplicaSetStatus { // The number of pods that have labels matching the labels of the pod template of the replicaset. optional int32 fullyLabeledReplicas = 2; + // The number of ready replicas for this replica set. + optional int32 readyReplicas = 4; + // ObservedGeneration reflects the generation of the most recently observed ReplicaSet. optional int64 observedGeneration = 3; } diff --git a/1.4/pkg/apis/extensions/v1beta1/types.generated.go b/1.4/pkg/apis/extensions/v1beta1/types.generated.go index 1caf93db..1ff75ce7 100644 --- a/1.4/pkg/apis/extensions/v1beta1/types.generated.go +++ b/1.4/pkg/apis/extensions/v1beta1/types.generated.go @@ -16214,14 +16214,15 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { } else { yysep1360 := !z.EncBinary() yy2arr1360 := z.EncBasicHandle().StructToArray - var yyq1360 [3]bool + var yyq1360 [4]bool _, _, _ = yysep1360, yyq1360, yy2arr1360 const yyr1360 bool = false yyq1360[1] = x.FullyLabeledReplicas != 0 - yyq1360[2] = x.ObservedGeneration != 0 + yyq1360[2] = x.ReadyReplicas != 0 + yyq1360[3] = x.ObservedGeneration != 0 var yynn1360 int if yyr1360 || yy2arr1360 { - r.EncodeArrayStart(3) + r.EncodeArrayStart(4) } else { yynn1360 = 1 for _, b := range yyq1360 { @@ -16283,7 +16284,7 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { _ = yym1368 if false { } else { - r.EncodeInt(int64(x.ObservedGeneration)) + r.EncodeInt(int64(x.ReadyReplicas)) } } else { r.EncodeInt(0) @@ -16291,11 +16292,36 @@ func (x *ReplicaSetStatus) CodecEncodeSelf(e *codec1978.Encoder) { } else { if yyq1360[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) - r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) + r.EncodeString(codecSelferC_UTF81234, string("readyReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1369 := z.EncBinary() _ = yym1369 if false { + } else { + r.EncodeInt(int64(x.ReadyReplicas)) + } + } + } + if yyr1360 || yy2arr1360 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq1360[3] { + yym1371 := z.EncBinary() + _ = yym1371 + if false { + } else { + r.EncodeInt(int64(x.ObservedGeneration)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq1360[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym1372 := z.EncBinary() + _ = yym1372 + if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } @@ -16314,25 +16340,25 @@ func (x *ReplicaSetStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1370 := z.DecBinary() - _ = yym1370 + yym1373 := z.DecBinary() + _ = yym1373 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1371 := r.ContainerType() - if yyct1371 == codecSelferValueTypeMap1234 { - yyl1371 := r.ReadMapStart() - if yyl1371 == 0 { + yyct1374 := r.ContainerType() + if yyct1374 == codecSelferValueTypeMap1234 { + yyl1374 := r.ReadMapStart() + if yyl1374 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1371, d) + x.codecDecodeSelfFromMap(yyl1374, d) } - } else if yyct1371 == codecSelferValueTypeArray1234 { - yyl1371 := r.ReadArrayStart() - if yyl1371 == 0 { + } else if yyct1374 == codecSelferValueTypeArray1234 { + yyl1374 := r.ReadArrayStart() + if yyl1374 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1371, d) + x.codecDecodeSelfFromArray(yyl1374, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16344,12 +16370,12 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1372Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1372Slc - var yyhl1372 bool = l >= 0 - for yyj1372 := 0; ; yyj1372++ { - if yyhl1372 { - if yyj1372 >= l { + var yys1375Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1375Slc + var yyhl1375 bool = l >= 0 + for yyj1375 := 0; ; yyj1375++ { + if yyhl1375 { + if yyj1375 >= l { break } } else { @@ -16358,10 +16384,10 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1372Slc = r.DecodeBytes(yys1372Slc, true, true) - yys1372 := string(yys1372Slc) + yys1375Slc = r.DecodeBytes(yys1375Slc, true, true) + yys1375 := string(yys1375Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1372 { + switch yys1375 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 @@ -16374,6 +16400,12 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } + case "readyReplicas": + if r.TryDecodeAsNil() { + x.ReadyReplicas = 0 + } else { + x.ReadyReplicas = int32(r.DecodeInt(32)) + } case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 @@ -16381,9 +16413,9 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.ObservedGeneration = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys1372) - } // end switch yys1372 - } // end for yyj1372 + z.DecStructFieldNotFound(-1, yys1375) + } // end switch yys1375 + } // end for yyj1375 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16391,16 +16423,16 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1376 int - var yyb1376 bool - var yyhl1376 bool = l >= 0 - yyj1376++ - if yyhl1376 { - yyb1376 = yyj1376 > l + var yyj1380 int + var yyb1380 bool + var yyhl1380 bool = l >= 0 + yyj1380++ + if yyhl1380 { + yyb1380 = yyj1380 > l } else { - yyb1376 = r.CheckBreak() + yyb1380 = r.CheckBreak() } - if yyb1376 { + if yyb1380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16410,13 +16442,13 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Replicas = int32(r.DecodeInt(32)) } - yyj1376++ - if yyhl1376 { - yyb1376 = yyj1376 > l + yyj1380++ + if yyhl1380 { + yyb1380 = yyj1380 > l } else { - yyb1376 = r.CheckBreak() + yyb1380 = r.CheckBreak() } - if yyb1376 { + if yyb1380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16426,13 +16458,29 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } - yyj1376++ - if yyhl1376 { - yyb1376 = yyj1376 > l + yyj1380++ + if yyhl1380 { + yyb1380 = yyj1380 > l } else { - yyb1376 = r.CheckBreak() + yyb1380 = r.CheckBreak() } - if yyb1376 { + if yyb1380 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ReadyReplicas = 0 + } else { + x.ReadyReplicas = int32(r.DecodeInt(32)) + } + yyj1380++ + if yyhl1380 { + yyb1380 = yyj1380 > l + } else { + yyb1380 = r.CheckBreak() + } + if yyb1380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16443,17 +16491,17 @@ func (x *ReplicaSetStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) x.ObservedGeneration = int64(r.DecodeInt(64)) } for { - yyj1376++ - if yyhl1376 { - yyb1376 = yyj1376 > l + yyj1380++ + if yyhl1380 { + yyb1380 = yyj1380 > l } else { - yyb1376 = r.CheckBreak() + yyb1380 = r.CheckBreak() } - if yyb1376 { + if yyb1380 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1376-1, "") + z.DecStructFieldNotFound(yyj1380-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16465,38 +16513,38 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1380 := z.EncBinary() - _ = yym1380 + yym1385 := z.EncBinary() + _ = yym1385 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1381 := !z.EncBinary() - yy2arr1381 := z.EncBasicHandle().StructToArray - var yyq1381 [4]bool - _, _, _ = yysep1381, yyq1381, yy2arr1381 - const yyr1381 bool = false - yyq1381[0] = x.Kind != "" - yyq1381[1] = x.APIVersion != "" - yyq1381[2] = true - yyq1381[3] = true - var yynn1381 int - if yyr1381 || yy2arr1381 { + yysep1386 := !z.EncBinary() + yy2arr1386 := z.EncBasicHandle().StructToArray + var yyq1386 [4]bool + _, _, _ = yysep1386, yyq1386, yy2arr1386 + const yyr1386 bool = false + yyq1386[0] = x.Kind != "" + yyq1386[1] = x.APIVersion != "" + yyq1386[2] = true + yyq1386[3] = true + var yynn1386 int + if yyr1386 || yy2arr1386 { r.EncodeArrayStart(4) } else { - yynn1381 = 0 - for _, b := range yyq1381 { + yynn1386 = 0 + for _, b := range yyq1386 { if b { - yynn1381++ + yynn1386++ } } - r.EncodeMapStart(yynn1381) - yynn1381 = 0 + r.EncodeMapStart(yynn1386) + yynn1386 = 0 } - if yyr1381 || yy2arr1381 { + if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1381[0] { - yym1383 := z.EncBinary() - _ = yym1383 + if yyq1386[0] { + yym1388 := z.EncBinary() + _ = yym1388 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -16505,23 +16553,23 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1381[0] { + if yyq1386[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1384 := z.EncBinary() - _ = yym1384 + yym1389 := z.EncBinary() + _ = yym1389 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1381 || yy2arr1381 { + if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1381[1] { - yym1386 := z.EncBinary() - _ = yym1386 + if yyq1386[1] { + yym1391 := z.EncBinary() + _ = yym1391 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -16530,53 +16578,53 @@ func (x *PodSecurityPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1381[1] { + if yyq1386[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1387 := z.EncBinary() - _ = yym1387 + yym1392 := z.EncBinary() + _ = yym1392 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1381 || yy2arr1381 { + if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1381[2] { - yy1389 := &x.ObjectMeta - yy1389.CodecEncodeSelf(e) + if yyq1386[2] { + yy1394 := &x.ObjectMeta + yy1394.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1381[2] { + if yyq1386[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1390 := &x.ObjectMeta - yy1390.CodecEncodeSelf(e) + yy1395 := &x.ObjectMeta + yy1395.CodecEncodeSelf(e) } } - if yyr1381 || yy2arr1381 { + if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1381[3] { - yy1392 := &x.Spec - yy1392.CodecEncodeSelf(e) + if yyq1386[3] { + yy1397 := &x.Spec + yy1397.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1381[3] { + if yyq1386[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1393 := &x.Spec - yy1393.CodecEncodeSelf(e) + yy1398 := &x.Spec + yy1398.CodecEncodeSelf(e) } } - if yyr1381 || yy2arr1381 { + if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -16589,25 +16637,25 @@ func (x *PodSecurityPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1394 := z.DecBinary() - _ = yym1394 + yym1399 := z.DecBinary() + _ = yym1399 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1395 := r.ContainerType() - if yyct1395 == codecSelferValueTypeMap1234 { - yyl1395 := r.ReadMapStart() - if yyl1395 == 0 { + yyct1400 := r.ContainerType() + if yyct1400 == codecSelferValueTypeMap1234 { + yyl1400 := r.ReadMapStart() + if yyl1400 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1395, d) + x.codecDecodeSelfFromMap(yyl1400, d) } - } else if yyct1395 == codecSelferValueTypeArray1234 { - yyl1395 := r.ReadArrayStart() - if yyl1395 == 0 { + } else if yyct1400 == codecSelferValueTypeArray1234 { + yyl1400 := r.ReadArrayStart() + if yyl1400 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1395, d) + x.codecDecodeSelfFromArray(yyl1400, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -16619,12 +16667,12 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1396Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1396Slc - var yyhl1396 bool = l >= 0 - for yyj1396 := 0; ; yyj1396++ { - if yyhl1396 { - if yyj1396 >= l { + var yys1401Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1401Slc + var yyhl1401 bool = l >= 0 + for yyj1401 := 0; ; yyj1401++ { + if yyhl1401 { + if yyj1401 >= l { break } } else { @@ -16633,10 +16681,10 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1396Slc = r.DecodeBytes(yys1396Slc, true, true) - yys1396 := string(yys1396Slc) + yys1401Slc = r.DecodeBytes(yys1401Slc, true, true) + yys1401 := string(yys1401Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1396 { + switch yys1401 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -16653,20 +16701,20 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1399 := &x.ObjectMeta - yyv1399.CodecDecodeSelf(d) + yyv1404 := &x.ObjectMeta + yyv1404.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSecurityPolicySpec{} } else { - yyv1400 := &x.Spec - yyv1400.CodecDecodeSelf(d) + yyv1405 := &x.Spec + yyv1405.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1396) - } // end switch yys1396 - } // end for yyj1396 + z.DecStructFieldNotFound(-1, yys1401) + } // end switch yys1401 + } // end for yyj1401 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -16674,16 +16722,16 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1401 int - var yyb1401 bool - var yyhl1401 bool = l >= 0 - yyj1401++ - if yyhl1401 { - yyb1401 = yyj1401 > l + var yyj1406 int + var yyb1406 bool + var yyhl1406 bool = l >= 0 + yyj1406++ + if yyhl1406 { + yyb1406 = yyj1406 > l } else { - yyb1401 = r.CheckBreak() + yyb1406 = r.CheckBreak() } - if yyb1401 { + if yyb1406 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16693,13 +16741,13 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj1401++ - if yyhl1401 { - yyb1401 = yyj1401 > l + yyj1406++ + if yyhl1406 { + yyb1406 = yyj1406 > l } else { - yyb1401 = r.CheckBreak() + yyb1406 = r.CheckBreak() } - if yyb1401 { + if yyb1406 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16709,13 +16757,13 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj1401++ - if yyhl1401 { - yyb1401 = yyj1401 > l + yyj1406++ + if yyhl1406 { + yyb1406 = yyj1406 > l } else { - yyb1401 = r.CheckBreak() + yyb1406 = r.CheckBreak() } - if yyb1401 { + if yyb1406 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16723,16 +16771,16 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1404 := &x.ObjectMeta - yyv1404.CodecDecodeSelf(d) + yyv1409 := &x.ObjectMeta + yyv1409.CodecDecodeSelf(d) } - yyj1401++ - if yyhl1401 { - yyb1401 = yyj1401 > l + yyj1406++ + if yyhl1406 { + yyb1406 = yyj1406 > l } else { - yyb1401 = r.CheckBreak() + yyb1406 = r.CheckBreak() } - if yyb1401 { + if yyb1406 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -16740,21 +16788,21 @@ func (x *PodSecurityPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Spec = PodSecurityPolicySpec{} } else { - yyv1405 := &x.Spec - yyv1405.CodecDecodeSelf(d) + yyv1410 := &x.Spec + yyv1410.CodecDecodeSelf(d) } for { - yyj1401++ - if yyhl1401 { - yyb1401 = yyj1401 > l + yyj1406++ + if yyhl1406 { + yyb1406 = yyj1406 > l } else { - yyb1401 = r.CheckBreak() + yyb1406 = r.CheckBreak() } - if yyb1401 { + if yyb1406 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1401-1, "") + z.DecStructFieldNotFound(yyj1406-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -16766,44 +16814,44 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1406 := z.EncBinary() - _ = yym1406 + yym1411 := z.EncBinary() + _ = yym1411 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1407 := !z.EncBinary() - yy2arr1407 := z.EncBasicHandle().StructToArray - var yyq1407 [14]bool - _, _, _ = yysep1407, yyq1407, yy2arr1407 - const yyr1407 bool = false - yyq1407[0] = x.Privileged != false - yyq1407[1] = len(x.DefaultAddCapabilities) != 0 - yyq1407[2] = len(x.RequiredDropCapabilities) != 0 - yyq1407[3] = len(x.AllowedCapabilities) != 0 - yyq1407[4] = len(x.Volumes) != 0 - yyq1407[5] = x.HostNetwork != false - yyq1407[6] = len(x.HostPorts) != 0 - yyq1407[7] = x.HostPID != false - yyq1407[8] = x.HostIPC != false - yyq1407[13] = x.ReadOnlyRootFilesystem != false - var yynn1407 int - if yyr1407 || yy2arr1407 { + yysep1412 := !z.EncBinary() + yy2arr1412 := z.EncBasicHandle().StructToArray + var yyq1412 [14]bool + _, _, _ = yysep1412, yyq1412, yy2arr1412 + const yyr1412 bool = false + yyq1412[0] = x.Privileged != false + yyq1412[1] = len(x.DefaultAddCapabilities) != 0 + yyq1412[2] = len(x.RequiredDropCapabilities) != 0 + yyq1412[3] = len(x.AllowedCapabilities) != 0 + yyq1412[4] = len(x.Volumes) != 0 + yyq1412[5] = x.HostNetwork != false + yyq1412[6] = len(x.HostPorts) != 0 + yyq1412[7] = x.HostPID != false + yyq1412[8] = x.HostIPC != false + yyq1412[13] = x.ReadOnlyRootFilesystem != false + var yynn1412 int + if yyr1412 || yy2arr1412 { r.EncodeArrayStart(14) } else { - yynn1407 = 4 - for _, b := range yyq1407 { + yynn1412 = 4 + for _, b := range yyq1412 { if b { - yynn1407++ + yynn1412++ } } - r.EncodeMapStart(yynn1407) - yynn1407 = 0 + r.EncodeMapStart(yynn1412) + yynn1412 = 0 } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1407[0] { - yym1409 := z.EncBinary() - _ = yym1409 + if yyq1412[0] { + yym1414 := z.EncBinary() + _ = yym1414 if false { } else { r.EncodeBool(bool(x.Privileged)) @@ -16812,26 +16860,26 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1407[0] { + if yyq1412[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1410 := z.EncBinary() - _ = yym1410 + yym1415 := z.EncBinary() + _ = yym1415 if false { } else { r.EncodeBool(bool(x.Privileged)) } } } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1407[1] { + if yyq1412[1] { if x.DefaultAddCapabilities == nil { r.EncodeNil() } else { - yym1412 := z.EncBinary() - _ = yym1412 + yym1417 := z.EncBinary() + _ = yym1417 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.DefaultAddCapabilities), e) @@ -16841,15 +16889,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1407[1] { + if yyq1412[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultAddCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DefaultAddCapabilities == nil { r.EncodeNil() } else { - yym1413 := z.EncBinary() - _ = yym1413 + yym1418 := z.EncBinary() + _ = yym1418 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.DefaultAddCapabilities), e) @@ -16857,14 +16905,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1407[2] { + if yyq1412[2] { if x.RequiredDropCapabilities == nil { r.EncodeNil() } else { - yym1415 := z.EncBinary() - _ = yym1415 + yym1420 := z.EncBinary() + _ = yym1420 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.RequiredDropCapabilities), e) @@ -16874,15 +16922,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1407[2] { + if yyq1412[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDropCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDropCapabilities == nil { r.EncodeNil() } else { - yym1416 := z.EncBinary() - _ = yym1416 + yym1421 := z.EncBinary() + _ = yym1421 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.RequiredDropCapabilities), e) @@ -16890,14 +16938,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1407[3] { + if yyq1412[3] { if x.AllowedCapabilities == nil { r.EncodeNil() } else { - yym1418 := z.EncBinary() - _ = yym1418 + yym1423 := z.EncBinary() + _ = yym1423 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.AllowedCapabilities), e) @@ -16907,15 +16955,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1407[3] { + if yyq1412[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allowedCapabilities")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AllowedCapabilities == nil { r.EncodeNil() } else { - yym1419 := z.EncBinary() - _ = yym1419 + yym1424 := z.EncBinary() + _ = yym1424 if false { } else { h.encSlicev1_Capability(([]pkg2_v1.Capability)(x.AllowedCapabilities), e) @@ -16923,14 +16971,14 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1407[4] { + if yyq1412[4] { if x.Volumes == nil { r.EncodeNil() } else { - yym1421 := z.EncBinary() - _ = yym1421 + yym1426 := z.EncBinary() + _ = yym1426 if false { } else { h.encSliceFSType(([]FSType)(x.Volumes), e) @@ -16940,15 +16988,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1407[4] { + if yyq1412[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Volumes == nil { r.EncodeNil() } else { - yym1422 := z.EncBinary() - _ = yym1422 + yym1427 := z.EncBinary() + _ = yym1427 if false { } else { h.encSliceFSType(([]FSType)(x.Volumes), e) @@ -16956,11 +17004,11 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1407[5] { - yym1424 := z.EncBinary() - _ = yym1424 + if yyq1412[5] { + yym1429 := z.EncBinary() + _ = yym1429 if false { } else { r.EncodeBool(bool(x.HostNetwork)) @@ -16969,26 +17017,26 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1407[5] { + if yyq1412[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1425 := z.EncBinary() - _ = yym1425 + yym1430 := z.EncBinary() + _ = yym1430 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1407[6] { + if yyq1412[6] { if x.HostPorts == nil { r.EncodeNil() } else { - yym1427 := z.EncBinary() - _ = yym1427 + yym1432 := z.EncBinary() + _ = yym1432 if false { } else { h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) @@ -16998,15 +17046,15 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1407[6] { + if yyq1412[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPorts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HostPorts == nil { r.EncodeNil() } else { - yym1428 := z.EncBinary() - _ = yym1428 + yym1433 := z.EncBinary() + _ = yym1433 if false { } else { h.encSliceHostPortRange(([]HostPortRange)(x.HostPorts), e) @@ -17014,11 +17062,11 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1407[7] { - yym1430 := z.EncBinary() - _ = yym1430 + if yyq1412[7] { + yym1435 := z.EncBinary() + _ = yym1435 if false { } else { r.EncodeBool(bool(x.HostPID)) @@ -17027,23 +17075,23 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1407[7] { + if yyq1412[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1431 := z.EncBinary() - _ = yym1431 + yym1436 := z.EncBinary() + _ = yym1436 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1407[8] { - yym1433 := z.EncBinary() - _ = yym1433 + if yyq1412[8] { + yym1438 := z.EncBinary() + _ = yym1438 if false { } else { r.EncodeBool(bool(x.HostIPC)) @@ -17052,67 +17100,67 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1407[8] { + if yyq1412[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1434 := z.EncBinary() - _ = yym1434 + yym1439 := z.EncBinary() + _ = yym1439 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1436 := &x.SELinux - yy1436.CodecEncodeSelf(e) + yy1441 := &x.SELinux + yy1441.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinux")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1437 := &x.SELinux - yy1437.CodecEncodeSelf(e) + yy1442 := &x.SELinux + yy1442.CodecEncodeSelf(e) } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1439 := &x.RunAsUser - yy1439.CodecEncodeSelf(e) + yy1444 := &x.RunAsUser + yy1444.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1440 := &x.RunAsUser - yy1440.CodecEncodeSelf(e) + yy1445 := &x.RunAsUser + yy1445.CodecEncodeSelf(e) } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1442 := &x.SupplementalGroups - yy1442.CodecEncodeSelf(e) + yy1447 := &x.SupplementalGroups + yy1447.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1443 := &x.SupplementalGroups - yy1443.CodecEncodeSelf(e) + yy1448 := &x.SupplementalGroups + yy1448.CodecEncodeSelf(e) } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1445 := &x.FSGroup - yy1445.CodecEncodeSelf(e) + yy1450 := &x.FSGroup + yy1450.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1446 := &x.FSGroup - yy1446.CodecEncodeSelf(e) + yy1451 := &x.FSGroup + yy1451.CodecEncodeSelf(e) } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1407[13] { - yym1448 := z.EncBinary() - _ = yym1448 + if yyq1412[13] { + yym1453 := z.EncBinary() + _ = yym1453 if false { } else { r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) @@ -17121,19 +17169,19 @@ func (x *PodSecurityPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeBool(false) } } else { - if yyq1407[13] { + if yyq1412[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1449 := z.EncBinary() - _ = yym1449 + yym1454 := z.EncBinary() + _ = yym1454 if false { } else { r.EncodeBool(bool(x.ReadOnlyRootFilesystem)) } } } - if yyr1407 || yy2arr1407 { + if yyr1412 || yy2arr1412 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17146,25 +17194,25 @@ func (x *PodSecurityPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1450 := z.DecBinary() - _ = yym1450 + yym1455 := z.DecBinary() + _ = yym1455 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1451 := r.ContainerType() - if yyct1451 == codecSelferValueTypeMap1234 { - yyl1451 := r.ReadMapStart() - if yyl1451 == 0 { + yyct1456 := r.ContainerType() + if yyct1456 == codecSelferValueTypeMap1234 { + yyl1456 := r.ReadMapStart() + if yyl1456 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1451, d) + x.codecDecodeSelfFromMap(yyl1456, d) } - } else if yyct1451 == codecSelferValueTypeArray1234 { - yyl1451 := r.ReadArrayStart() - if yyl1451 == 0 { + } else if yyct1456 == codecSelferValueTypeArray1234 { + yyl1456 := r.ReadArrayStart() + if yyl1456 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1451, d) + x.codecDecodeSelfFromArray(yyl1456, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17176,12 +17224,12 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1452Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1452Slc - var yyhl1452 bool = l >= 0 - for yyj1452 := 0; ; yyj1452++ { - if yyhl1452 { - if yyj1452 >= l { + var yys1457Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1457Slc + var yyhl1457 bool = l >= 0 + for yyj1457 := 0; ; yyj1457++ { + if yyhl1457 { + if yyj1457 >= l { break } } else { @@ -17190,10 +17238,10 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1452Slc = r.DecodeBytes(yys1452Slc, true, true) - yys1452 := string(yys1452Slc) + yys1457Slc = r.DecodeBytes(yys1457Slc, true, true) + yys1457 := string(yys1457Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1452 { + switch yys1457 { case "privileged": if r.TryDecodeAsNil() { x.Privileged = false @@ -17204,48 +17252,48 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.DefaultAddCapabilities = nil } else { - yyv1454 := &x.DefaultAddCapabilities - yym1455 := z.DecBinary() - _ = yym1455 + yyv1459 := &x.DefaultAddCapabilities + yym1460 := z.DecBinary() + _ = yym1460 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1454), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1459), d) } } case "requiredDropCapabilities": if r.TryDecodeAsNil() { x.RequiredDropCapabilities = nil } else { - yyv1456 := &x.RequiredDropCapabilities - yym1457 := z.DecBinary() - _ = yym1457 + yyv1461 := &x.RequiredDropCapabilities + yym1462 := z.DecBinary() + _ = yym1462 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1456), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1461), d) } } case "allowedCapabilities": if r.TryDecodeAsNil() { x.AllowedCapabilities = nil } else { - yyv1458 := &x.AllowedCapabilities - yym1459 := z.DecBinary() - _ = yym1459 + yyv1463 := &x.AllowedCapabilities + yym1464 := z.DecBinary() + _ = yym1464 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1458), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1463), d) } } case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv1460 := &x.Volumes - yym1461 := z.DecBinary() - _ = yym1461 + yyv1465 := &x.Volumes + yym1466 := z.DecBinary() + _ = yym1466 if false { } else { - h.decSliceFSType((*[]FSType)(yyv1460), d) + h.decSliceFSType((*[]FSType)(yyv1465), d) } } case "hostNetwork": @@ -17258,12 +17306,12 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.HostPorts = nil } else { - yyv1463 := &x.HostPorts - yym1464 := z.DecBinary() - _ = yym1464 + yyv1468 := &x.HostPorts + yym1469 := z.DecBinary() + _ = yym1469 if false { } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv1463), d) + h.decSliceHostPortRange((*[]HostPortRange)(yyv1468), d) } } case "hostPID": @@ -17282,29 +17330,29 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.SELinux = SELinuxStrategyOptions{} } else { - yyv1467 := &x.SELinux - yyv1467.CodecDecodeSelf(d) + yyv1472 := &x.SELinux + yyv1472.CodecDecodeSelf(d) } case "runAsUser": if r.TryDecodeAsNil() { x.RunAsUser = RunAsUserStrategyOptions{} } else { - yyv1468 := &x.RunAsUser - yyv1468.CodecDecodeSelf(d) + yyv1473 := &x.RunAsUser + yyv1473.CodecDecodeSelf(d) } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = SupplementalGroupsStrategyOptions{} } else { - yyv1469 := &x.SupplementalGroups - yyv1469.CodecDecodeSelf(d) + yyv1474 := &x.SupplementalGroups + yyv1474.CodecDecodeSelf(d) } case "fsGroup": if r.TryDecodeAsNil() { x.FSGroup = FSGroupStrategyOptions{} } else { - yyv1470 := &x.FSGroup - yyv1470.CodecDecodeSelf(d) + yyv1475 := &x.FSGroup + yyv1475.CodecDecodeSelf(d) } case "readOnlyRootFilesystem": if r.TryDecodeAsNil() { @@ -17313,9 +17361,9 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decod x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) } default: - z.DecStructFieldNotFound(-1, yys1452) - } // end switch yys1452 - } // end for yyj1452 + z.DecStructFieldNotFound(-1, yys1457) + } // end switch yys1457 + } // end for yyj1457 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17323,16 +17371,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1472 int - var yyb1472 bool - var yyhl1472 bool = l >= 0 - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + var yyj1477 int + var yyb1477 bool + var yyhl1477 bool = l >= 0 + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17342,13 +17390,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Privileged = bool(r.DecodeBool()) } - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17356,21 +17404,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.DefaultAddCapabilities = nil } else { - yyv1474 := &x.DefaultAddCapabilities - yym1475 := z.DecBinary() - _ = yym1475 + yyv1479 := &x.DefaultAddCapabilities + yym1480 := z.DecBinary() + _ = yym1480 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1474), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1479), d) } } - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17378,21 +17426,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.RequiredDropCapabilities = nil } else { - yyv1476 := &x.RequiredDropCapabilities - yym1477 := z.DecBinary() - _ = yym1477 + yyv1481 := &x.RequiredDropCapabilities + yym1482 := z.DecBinary() + _ = yym1482 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1476), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1481), d) } } - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17400,21 +17448,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.AllowedCapabilities = nil } else { - yyv1478 := &x.AllowedCapabilities - yym1479 := z.DecBinary() - _ = yym1479 + yyv1483 := &x.AllowedCapabilities + yym1484 := z.DecBinary() + _ = yym1484 if false { } else { - h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1478), d) + h.decSlicev1_Capability((*[]pkg2_v1.Capability)(yyv1483), d) } } - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17422,21 +17470,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Volumes = nil } else { - yyv1480 := &x.Volumes - yym1481 := z.DecBinary() - _ = yym1481 + yyv1485 := &x.Volumes + yym1486 := z.DecBinary() + _ = yym1486 if false { } else { - h.decSliceFSType((*[]FSType)(yyv1480), d) + h.decSliceFSType((*[]FSType)(yyv1485), d) } } - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17446,13 +17494,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostNetwork = bool(r.DecodeBool()) } - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17460,21 +17508,21 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.HostPorts = nil } else { - yyv1483 := &x.HostPorts - yym1484 := z.DecBinary() - _ = yym1484 + yyv1488 := &x.HostPorts + yym1489 := z.DecBinary() + _ = yym1489 if false { } else { - h.decSliceHostPortRange((*[]HostPortRange)(yyv1483), d) + h.decSliceHostPortRange((*[]HostPortRange)(yyv1488), d) } } - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17484,13 +17532,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostPID = bool(r.DecodeBool()) } - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17500,13 +17548,13 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.HostIPC = bool(r.DecodeBool()) } - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17514,16 +17562,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.SELinux = SELinuxStrategyOptions{} } else { - yyv1487 := &x.SELinux - yyv1487.CodecDecodeSelf(d) + yyv1492 := &x.SELinux + yyv1492.CodecDecodeSelf(d) } - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17531,16 +17579,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.RunAsUser = RunAsUserStrategyOptions{} } else { - yyv1488 := &x.RunAsUser - yyv1488.CodecDecodeSelf(d) + yyv1493 := &x.RunAsUser + yyv1493.CodecDecodeSelf(d) } - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17548,16 +17596,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.SupplementalGroups = SupplementalGroupsStrategyOptions{} } else { - yyv1489 := &x.SupplementalGroups - yyv1489.CodecDecodeSelf(d) + yyv1494 := &x.SupplementalGroups + yyv1494.CodecDecodeSelf(d) } - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17565,16 +17613,16 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.FSGroup = FSGroupStrategyOptions{} } else { - yyv1490 := &x.FSGroup - yyv1490.CodecDecodeSelf(d) + yyv1495 := &x.FSGroup + yyv1495.CodecDecodeSelf(d) } - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17585,17 +17633,17 @@ func (x *PodSecurityPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Dec x.ReadOnlyRootFilesystem = bool(r.DecodeBool()) } for { - yyj1472++ - if yyhl1472 { - yyb1472 = yyj1472 > l + yyj1477++ + if yyhl1477 { + yyb1477 = yyj1477 > l } else { - yyb1472 = r.CheckBreak() + yyb1477 = r.CheckBreak() } - if yyb1472 { + if yyb1477 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1472-1, "") + z.DecStructFieldNotFound(yyj1477-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17604,8 +17652,8 @@ func (x FSType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1492 := z.EncBinary() - _ = yym1492 + yym1497 := z.EncBinary() + _ = yym1497 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -17617,8 +17665,8 @@ func (x *FSType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1493 := z.DecBinary() - _ = yym1493 + yym1498 := z.DecBinary() + _ = yym1498 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -17633,33 +17681,33 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1494 := z.EncBinary() - _ = yym1494 + yym1499 := z.EncBinary() + _ = yym1499 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1495 := !z.EncBinary() - yy2arr1495 := z.EncBasicHandle().StructToArray - var yyq1495 [2]bool - _, _, _ = yysep1495, yyq1495, yy2arr1495 - const yyr1495 bool = false - var yynn1495 int - if yyr1495 || yy2arr1495 { + yysep1500 := !z.EncBinary() + yy2arr1500 := z.EncBasicHandle().StructToArray + var yyq1500 [2]bool + _, _, _ = yysep1500, yyq1500, yy2arr1500 + const yyr1500 bool = false + var yynn1500 int + if yyr1500 || yy2arr1500 { r.EncodeArrayStart(2) } else { - yynn1495 = 2 - for _, b := range yyq1495 { + yynn1500 = 2 + for _, b := range yyq1500 { if b { - yynn1495++ + yynn1500++ } } - r.EncodeMapStart(yynn1495) - yynn1495 = 0 + r.EncodeMapStart(yynn1500) + yynn1500 = 0 } - if yyr1495 || yy2arr1495 { + if yyr1500 || yy2arr1500 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1497 := z.EncBinary() - _ = yym1497 + yym1502 := z.EncBinary() + _ = yym1502 if false { } else { r.EncodeInt(int64(x.Min)) @@ -17668,17 +17716,17 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1498 := z.EncBinary() - _ = yym1498 + yym1503 := z.EncBinary() + _ = yym1503 if false { } else { r.EncodeInt(int64(x.Min)) } } - if yyr1495 || yy2arr1495 { + if yyr1500 || yy2arr1500 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1500 := z.EncBinary() - _ = yym1500 + yym1505 := z.EncBinary() + _ = yym1505 if false { } else { r.EncodeInt(int64(x.Max)) @@ -17687,14 +17735,14 @@ func (x *HostPortRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1501 := z.EncBinary() - _ = yym1501 + yym1506 := z.EncBinary() + _ = yym1506 if false { } else { r.EncodeInt(int64(x.Max)) } } - if yyr1495 || yy2arr1495 { + if yyr1500 || yy2arr1500 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17707,25 +17755,25 @@ func (x *HostPortRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1502 := z.DecBinary() - _ = yym1502 + yym1507 := z.DecBinary() + _ = yym1507 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1503 := r.ContainerType() - if yyct1503 == codecSelferValueTypeMap1234 { - yyl1503 := r.ReadMapStart() - if yyl1503 == 0 { + yyct1508 := r.ContainerType() + if yyct1508 == codecSelferValueTypeMap1234 { + yyl1508 := r.ReadMapStart() + if yyl1508 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1503, d) + x.codecDecodeSelfFromMap(yyl1508, d) } - } else if yyct1503 == codecSelferValueTypeArray1234 { - yyl1503 := r.ReadArrayStart() - if yyl1503 == 0 { + } else if yyct1508 == codecSelferValueTypeArray1234 { + yyl1508 := r.ReadArrayStart() + if yyl1508 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1503, d) + x.codecDecodeSelfFromArray(yyl1508, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17737,12 +17785,12 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1504Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1504Slc - var yyhl1504 bool = l >= 0 - for yyj1504 := 0; ; yyj1504++ { - if yyhl1504 { - if yyj1504 >= l { + var yys1509Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1509Slc + var yyhl1509 bool = l >= 0 + for yyj1509 := 0; ; yyj1509++ { + if yyhl1509 { + if yyj1509 >= l { break } } else { @@ -17751,10 +17799,10 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1504Slc = r.DecodeBytes(yys1504Slc, true, true) - yys1504 := string(yys1504Slc) + yys1509Slc = r.DecodeBytes(yys1509Slc, true, true) + yys1509 := string(yys1509Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1504 { + switch yys1509 { case "min": if r.TryDecodeAsNil() { x.Min = 0 @@ -17768,9 +17816,9 @@ func (x *HostPortRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Max = int32(r.DecodeInt(32)) } default: - z.DecStructFieldNotFound(-1, yys1504) - } // end switch yys1504 - } // end for yyj1504 + z.DecStructFieldNotFound(-1, yys1509) + } // end switch yys1509 + } // end for yyj1509 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17778,16 +17826,16 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1507 int - var yyb1507 bool - var yyhl1507 bool = l >= 0 - yyj1507++ - if yyhl1507 { - yyb1507 = yyj1507 > l + var yyj1512 int + var yyb1512 bool + var yyhl1512 bool = l >= 0 + yyj1512++ + if yyhl1512 { + yyb1512 = yyj1512 > l } else { - yyb1507 = r.CheckBreak() + yyb1512 = r.CheckBreak() } - if yyb1507 { + if yyb1512 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17797,13 +17845,13 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Min = int32(r.DecodeInt(32)) } - yyj1507++ - if yyhl1507 { - yyb1507 = yyj1507 > l + yyj1512++ + if yyhl1512 { + yyb1512 = yyj1512 > l } else { - yyb1507 = r.CheckBreak() + yyb1512 = r.CheckBreak() } - if yyb1507 { + if yyb1512 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -17814,17 +17862,17 @@ func (x *HostPortRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Max = int32(r.DecodeInt(32)) } for { - yyj1507++ - if yyhl1507 { - yyb1507 = yyj1507 > l + yyj1512++ + if yyhl1512 { + yyb1512 = yyj1512 > l } else { - yyb1507 = r.CheckBreak() + yyb1512 = r.CheckBreak() } - if yyb1507 { + if yyb1512 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1507-1, "") + z.DecStructFieldNotFound(yyj1512-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -17836,31 +17884,31 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1510 := z.EncBinary() - _ = yym1510 + yym1515 := z.EncBinary() + _ = yym1515 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1511 := !z.EncBinary() - yy2arr1511 := z.EncBasicHandle().StructToArray - var yyq1511 [2]bool - _, _, _ = yysep1511, yyq1511, yy2arr1511 - const yyr1511 bool = false - yyq1511[1] = x.SELinuxOptions != nil - var yynn1511 int - if yyr1511 || yy2arr1511 { + yysep1516 := !z.EncBinary() + yy2arr1516 := z.EncBasicHandle().StructToArray + var yyq1516 [2]bool + _, _, _ = yysep1516, yyq1516, yy2arr1516 + const yyr1516 bool = false + yyq1516[1] = x.SELinuxOptions != nil + var yynn1516 int + if yyr1516 || yy2arr1516 { r.EncodeArrayStart(2) } else { - yynn1511 = 1 - for _, b := range yyq1511 { + yynn1516 = 1 + for _, b := range yyq1516 { if b { - yynn1511++ + yynn1516++ } } - r.EncodeMapStart(yynn1511) - yynn1511 = 0 + r.EncodeMapStart(yynn1516) + yynn1516 = 0 } - if yyr1511 || yy2arr1511 { + if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Rule.CodecEncodeSelf(e) } else { @@ -17869,9 +17917,9 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } - if yyr1511 || yy2arr1511 { + if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1511[1] { + if yyq1516[1] { if x.SELinuxOptions == nil { r.EncodeNil() } else { @@ -17881,7 +17929,7 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1511[1] { + if yyq1516[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -17892,7 +17940,7 @@ func (x *SELinuxStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1511 || yy2arr1511 { + if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -17905,25 +17953,25 @@ func (x *SELinuxStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1514 := z.DecBinary() - _ = yym1514 + yym1519 := z.DecBinary() + _ = yym1519 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1515 := r.ContainerType() - if yyct1515 == codecSelferValueTypeMap1234 { - yyl1515 := r.ReadMapStart() - if yyl1515 == 0 { + yyct1520 := r.ContainerType() + if yyct1520 == codecSelferValueTypeMap1234 { + yyl1520 := r.ReadMapStart() + if yyl1520 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1515, d) + x.codecDecodeSelfFromMap(yyl1520, d) } - } else if yyct1515 == codecSelferValueTypeArray1234 { - yyl1515 := r.ReadArrayStart() - if yyl1515 == 0 { + } else if yyct1520 == codecSelferValueTypeArray1234 { + yyl1520 := r.ReadArrayStart() + if yyl1520 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1515, d) + x.codecDecodeSelfFromArray(yyl1520, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -17935,12 +17983,12 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1516Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1516Slc - var yyhl1516 bool = l >= 0 - for yyj1516 := 0; ; yyj1516++ { - if yyhl1516 { - if yyj1516 >= l { + var yys1521Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1521Slc + var yyhl1521 bool = l >= 0 + for yyj1521 := 0; ; yyj1521++ { + if yyhl1521 { + if yyj1521 >= l { break } } else { @@ -17949,10 +17997,10 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1516Slc = r.DecodeBytes(yys1516Slc, true, true) - yys1516 := string(yys1516Slc) + yys1521Slc = r.DecodeBytes(yys1521Slc, true, true) + yys1521 := string(yys1521Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1516 { + switch yys1521 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -17971,9 +18019,9 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco x.SELinuxOptions.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1516) - } // end switch yys1516 - } // end for yyj1516 + z.DecStructFieldNotFound(-1, yys1521) + } // end switch yys1521 + } // end for yyj1521 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -17981,16 +18029,16 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1519 int - var yyb1519 bool - var yyhl1519 bool = l >= 0 - yyj1519++ - if yyhl1519 { - yyb1519 = yyj1519 > l + var yyj1524 int + var yyb1524 bool + var yyhl1524 bool = l >= 0 + yyj1524++ + if yyhl1524 { + yyb1524 = yyj1524 > l } else { - yyb1519 = r.CheckBreak() + yyb1524 = r.CheckBreak() } - if yyb1519 { + if yyb1524 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18000,13 +18048,13 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Rule = SELinuxStrategy(r.DecodeString()) } - yyj1519++ - if yyhl1519 { - yyb1519 = yyj1519 > l + yyj1524++ + if yyhl1524 { + yyb1524 = yyj1524 > l } else { - yyb1519 = r.CheckBreak() + yyb1524 = r.CheckBreak() } - if yyb1519 { + if yyb1524 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18022,17 +18070,17 @@ func (x *SELinuxStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De x.SELinuxOptions.CodecDecodeSelf(d) } for { - yyj1519++ - if yyhl1519 { - yyb1519 = yyj1519 > l + yyj1524++ + if yyhl1524 { + yyb1524 = yyj1524 > l } else { - yyb1519 = r.CheckBreak() + yyb1524 = r.CheckBreak() } - if yyb1519 { + if yyb1524 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1519-1, "") + z.DecStructFieldNotFound(yyj1524-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18041,8 +18089,8 @@ func (x SELinuxStrategy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1522 := z.EncBinary() - _ = yym1522 + yym1527 := z.EncBinary() + _ = yym1527 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18054,8 +18102,8 @@ func (x *SELinuxStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1523 := z.DecBinary() - _ = yym1523 + yym1528 := z.DecBinary() + _ = yym1528 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18070,31 +18118,31 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1524 := z.EncBinary() - _ = yym1524 + yym1529 := z.EncBinary() + _ = yym1529 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1525 := !z.EncBinary() - yy2arr1525 := z.EncBasicHandle().StructToArray - var yyq1525 [2]bool - _, _, _ = yysep1525, yyq1525, yy2arr1525 - const yyr1525 bool = false - yyq1525[1] = len(x.Ranges) != 0 - var yynn1525 int - if yyr1525 || yy2arr1525 { + yysep1530 := !z.EncBinary() + yy2arr1530 := z.EncBasicHandle().StructToArray + var yyq1530 [2]bool + _, _, _ = yysep1530, yyq1530, yy2arr1530 + const yyr1530 bool = false + yyq1530[1] = len(x.Ranges) != 0 + var yynn1530 int + if yyr1530 || yy2arr1530 { r.EncodeArrayStart(2) } else { - yynn1525 = 1 - for _, b := range yyq1525 { + yynn1530 = 1 + for _, b := range yyq1530 { if b { - yynn1525++ + yynn1530++ } } - r.EncodeMapStart(yynn1525) - yynn1525 = 0 + r.EncodeMapStart(yynn1530) + yynn1530 = 0 } - if yyr1525 || yy2arr1525 { + if yyr1530 || yy2arr1530 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Rule.CodecEncodeSelf(e) } else { @@ -18103,14 +18151,14 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } - if yyr1525 || yy2arr1525 { + if yyr1530 || yy2arr1530 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1525[1] { + if yyq1530[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1528 := z.EncBinary() - _ = yym1528 + yym1533 := z.EncBinary() + _ = yym1533 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18120,15 +18168,15 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1525[1] { + if yyq1530[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1529 := z.EncBinary() - _ = yym1529 + yym1534 := z.EncBinary() + _ = yym1534 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18136,7 +18184,7 @@ func (x *RunAsUserStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1525 || yy2arr1525 { + if yyr1530 || yy2arr1530 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18149,25 +18197,25 @@ func (x *RunAsUserStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1530 := z.DecBinary() - _ = yym1530 + yym1535 := z.DecBinary() + _ = yym1535 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1531 := r.ContainerType() - if yyct1531 == codecSelferValueTypeMap1234 { - yyl1531 := r.ReadMapStart() - if yyl1531 == 0 { + yyct1536 := r.ContainerType() + if yyct1536 == codecSelferValueTypeMap1234 { + yyl1536 := r.ReadMapStart() + if yyl1536 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1531, d) + x.codecDecodeSelfFromMap(yyl1536, d) } - } else if yyct1531 == codecSelferValueTypeArray1234 { - yyl1531 := r.ReadArrayStart() - if yyl1531 == 0 { + } else if yyct1536 == codecSelferValueTypeArray1234 { + yyl1536 := r.ReadArrayStart() + if yyl1536 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1531, d) + x.codecDecodeSelfFromArray(yyl1536, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18179,12 +18227,12 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1532Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1532Slc - var yyhl1532 bool = l >= 0 - for yyj1532 := 0; ; yyj1532++ { - if yyhl1532 { - if yyj1532 >= l { + var yys1537Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1537Slc + var yyhl1537 bool = l >= 0 + for yyj1537 := 0; ; yyj1537++ { + if yyhl1537 { + if yyj1537 >= l { break } } else { @@ -18193,10 +18241,10 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1532Slc = r.DecodeBytes(yys1532Slc, true, true) - yys1532 := string(yys1532Slc) + yys1537Slc = r.DecodeBytes(yys1537Slc, true, true) + yys1537 := string(yys1537Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1532 { + switch yys1537 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -18207,18 +18255,18 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1534 := &x.Ranges - yym1535 := z.DecBinary() - _ = yym1535 + yyv1539 := &x.Ranges + yym1540 := z.DecBinary() + _ = yym1540 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1534), d) + h.decSliceIDRange((*[]IDRange)(yyv1539), d) } } default: - z.DecStructFieldNotFound(-1, yys1532) - } // end switch yys1532 - } // end for yyj1532 + z.DecStructFieldNotFound(-1, yys1537) + } // end switch yys1537 + } // end for yyj1537 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18226,16 +18274,16 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1536 int - var yyb1536 bool - var yyhl1536 bool = l >= 0 - yyj1536++ - if yyhl1536 { - yyb1536 = yyj1536 > l + var yyj1541 int + var yyb1541 bool + var yyhl1541 bool = l >= 0 + yyj1541++ + if yyhl1541 { + yyb1541 = yyj1541 > l } else { - yyb1536 = r.CheckBreak() + yyb1541 = r.CheckBreak() } - if yyb1536 { + if yyb1541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18245,13 +18293,13 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. } else { x.Rule = RunAsUserStrategy(r.DecodeString()) } - yyj1536++ - if yyhl1536 { - yyb1536 = yyj1536 > l + yyj1541++ + if yyhl1541 { + yyb1541 = yyj1541 > l } else { - yyb1536 = r.CheckBreak() + yyb1541 = r.CheckBreak() } - if yyb1536 { + if yyb1541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18259,26 +18307,26 @@ func (x *RunAsUserStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1538 := &x.Ranges - yym1539 := z.DecBinary() - _ = yym1539 + yyv1543 := &x.Ranges + yym1544 := z.DecBinary() + _ = yym1544 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1538), d) + h.decSliceIDRange((*[]IDRange)(yyv1543), d) } } for { - yyj1536++ - if yyhl1536 { - yyb1536 = yyj1536 > l + yyj1541++ + if yyhl1541 { + yyb1541 = yyj1541 > l } else { - yyb1536 = r.CheckBreak() + yyb1541 = r.CheckBreak() } - if yyb1536 { + if yyb1541 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1536-1, "") + z.DecStructFieldNotFound(yyj1541-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18290,33 +18338,33 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1540 := z.EncBinary() - _ = yym1540 + yym1545 := z.EncBinary() + _ = yym1545 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1541 := !z.EncBinary() - yy2arr1541 := z.EncBasicHandle().StructToArray - var yyq1541 [2]bool - _, _, _ = yysep1541, yyq1541, yy2arr1541 - const yyr1541 bool = false - var yynn1541 int - if yyr1541 || yy2arr1541 { + yysep1546 := !z.EncBinary() + yy2arr1546 := z.EncBasicHandle().StructToArray + var yyq1546 [2]bool + _, _, _ = yysep1546, yyq1546, yy2arr1546 + const yyr1546 bool = false + var yynn1546 int + if yyr1546 || yy2arr1546 { r.EncodeArrayStart(2) } else { - yynn1541 = 2 - for _, b := range yyq1541 { + yynn1546 = 2 + for _, b := range yyq1546 { if b { - yynn1541++ + yynn1546++ } } - r.EncodeMapStart(yynn1541) - yynn1541 = 0 + r.EncodeMapStart(yynn1546) + yynn1546 = 0 } - if yyr1541 || yy2arr1541 { + if yyr1546 || yy2arr1546 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1543 := z.EncBinary() - _ = yym1543 + yym1548 := z.EncBinary() + _ = yym1548 if false { } else { r.EncodeInt(int64(x.Min)) @@ -18325,17 +18373,17 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("min")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1544 := z.EncBinary() - _ = yym1544 + yym1549 := z.EncBinary() + _ = yym1549 if false { } else { r.EncodeInt(int64(x.Min)) } } - if yyr1541 || yy2arr1541 { + if yyr1546 || yy2arr1546 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1546 := z.EncBinary() - _ = yym1546 + yym1551 := z.EncBinary() + _ = yym1551 if false { } else { r.EncodeInt(int64(x.Max)) @@ -18344,14 +18392,14 @@ func (x *IDRange) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("max")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1547 := z.EncBinary() - _ = yym1547 + yym1552 := z.EncBinary() + _ = yym1552 if false { } else { r.EncodeInt(int64(x.Max)) } } - if yyr1541 || yy2arr1541 { + if yyr1546 || yy2arr1546 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18364,25 +18412,25 @@ func (x *IDRange) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1548 := z.DecBinary() - _ = yym1548 + yym1553 := z.DecBinary() + _ = yym1553 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1549 := r.ContainerType() - if yyct1549 == codecSelferValueTypeMap1234 { - yyl1549 := r.ReadMapStart() - if yyl1549 == 0 { + yyct1554 := r.ContainerType() + if yyct1554 == codecSelferValueTypeMap1234 { + yyl1554 := r.ReadMapStart() + if yyl1554 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1549, d) + x.codecDecodeSelfFromMap(yyl1554, d) } - } else if yyct1549 == codecSelferValueTypeArray1234 { - yyl1549 := r.ReadArrayStart() - if yyl1549 == 0 { + } else if yyct1554 == codecSelferValueTypeArray1234 { + yyl1554 := r.ReadArrayStart() + if yyl1554 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1549, d) + x.codecDecodeSelfFromArray(yyl1554, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18394,12 +18442,12 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1550Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1550Slc - var yyhl1550 bool = l >= 0 - for yyj1550 := 0; ; yyj1550++ { - if yyhl1550 { - if yyj1550 >= l { + var yys1555Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1555Slc + var yyhl1555 bool = l >= 0 + for yyj1555 := 0; ; yyj1555++ { + if yyhl1555 { + if yyj1555 >= l { break } } else { @@ -18408,10 +18456,10 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1550Slc = r.DecodeBytes(yys1550Slc, true, true) - yys1550 := string(yys1550Slc) + yys1555Slc = r.DecodeBytes(yys1555Slc, true, true) + yys1555 := string(yys1555Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1550 { + switch yys1555 { case "min": if r.TryDecodeAsNil() { x.Min = 0 @@ -18425,9 +18473,9 @@ func (x *IDRange) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { x.Max = int64(r.DecodeInt(64)) } default: - z.DecStructFieldNotFound(-1, yys1550) - } // end switch yys1550 - } // end for yyj1550 + z.DecStructFieldNotFound(-1, yys1555) + } // end switch yys1555 + } // end for yyj1555 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18435,16 +18483,16 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1553 int - var yyb1553 bool - var yyhl1553 bool = l >= 0 - yyj1553++ - if yyhl1553 { - yyb1553 = yyj1553 > l + var yyj1558 int + var yyb1558 bool + var yyhl1558 bool = l >= 0 + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1553 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1553 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18454,13 +18502,13 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Min = int64(r.DecodeInt(64)) } - yyj1553++ - if yyhl1553 { - yyb1553 = yyj1553 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1553 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1553 { + if yyb1558 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18471,17 +18519,17 @@ func (x *IDRange) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { x.Max = int64(r.DecodeInt(64)) } for { - yyj1553++ - if yyhl1553 { - yyb1553 = yyj1553 > l + yyj1558++ + if yyhl1558 { + yyb1558 = yyj1558 > l } else { - yyb1553 = r.CheckBreak() + yyb1558 = r.CheckBreak() } - if yyb1553 { + if yyb1558 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1553-1, "") + z.DecStructFieldNotFound(yyj1558-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18490,8 +18538,8 @@ func (x RunAsUserStrategy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1556 := z.EncBinary() - _ = yym1556 + yym1561 := z.EncBinary() + _ = yym1561 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18503,8 +18551,8 @@ func (x *RunAsUserStrategy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1557 := z.DecBinary() - _ = yym1557 + yym1562 := z.DecBinary() + _ = yym1562 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18519,54 +18567,54 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1558 := z.EncBinary() - _ = yym1558 + yym1563 := z.EncBinary() + _ = yym1563 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1559 := !z.EncBinary() - yy2arr1559 := z.EncBasicHandle().StructToArray - var yyq1559 [2]bool - _, _, _ = yysep1559, yyq1559, yy2arr1559 - const yyr1559 bool = false - yyq1559[0] = x.Rule != "" - yyq1559[1] = len(x.Ranges) != 0 - var yynn1559 int - if yyr1559 || yy2arr1559 { + yysep1564 := !z.EncBinary() + yy2arr1564 := z.EncBasicHandle().StructToArray + var yyq1564 [2]bool + _, _, _ = yysep1564, yyq1564, yy2arr1564 + const yyr1564 bool = false + yyq1564[0] = x.Rule != "" + yyq1564[1] = len(x.Ranges) != 0 + var yynn1564 int + if yyr1564 || yy2arr1564 { r.EncodeArrayStart(2) } else { - yynn1559 = 0 - for _, b := range yyq1559 { + yynn1564 = 0 + for _, b := range yyq1564 { if b { - yynn1559++ + yynn1564++ } } - r.EncodeMapStart(yynn1559) - yynn1559 = 0 + r.EncodeMapStart(yynn1564) + yynn1564 = 0 } - if yyr1559 || yy2arr1559 { + if yyr1564 || yy2arr1564 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1559[0] { + if yyq1564[0] { x.Rule.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1559[0] { + if yyq1564[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } } - if yyr1559 || yy2arr1559 { + if yyr1564 || yy2arr1564 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1559[1] { + if yyq1564[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1562 := z.EncBinary() - _ = yym1562 + yym1567 := z.EncBinary() + _ = yym1567 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18576,15 +18624,15 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1559[1] { + if yyq1564[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1563 := z.EncBinary() - _ = yym1563 + yym1568 := z.EncBinary() + _ = yym1568 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18592,7 +18640,7 @@ func (x *FSGroupStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1559 || yy2arr1559 { + if yyr1564 || yy2arr1564 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18605,25 +18653,25 @@ func (x *FSGroupStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1564 := z.DecBinary() - _ = yym1564 + yym1569 := z.DecBinary() + _ = yym1569 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1565 := r.ContainerType() - if yyct1565 == codecSelferValueTypeMap1234 { - yyl1565 := r.ReadMapStart() - if yyl1565 == 0 { + yyct1570 := r.ContainerType() + if yyct1570 == codecSelferValueTypeMap1234 { + yyl1570 := r.ReadMapStart() + if yyl1570 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1565, d) + x.codecDecodeSelfFromMap(yyl1570, d) } - } else if yyct1565 == codecSelferValueTypeArray1234 { - yyl1565 := r.ReadArrayStart() - if yyl1565 == 0 { + } else if yyct1570 == codecSelferValueTypeArray1234 { + yyl1570 := r.ReadArrayStart() + if yyl1570 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1565, d) + x.codecDecodeSelfFromArray(yyl1570, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18635,12 +18683,12 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1566Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1566Slc - var yyhl1566 bool = l >= 0 - for yyj1566 := 0; ; yyj1566++ { - if yyhl1566 { - if yyj1566 >= l { + var yys1571Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1571Slc + var yyhl1571 bool = l >= 0 + for yyj1571 := 0; ; yyj1571++ { + if yyhl1571 { + if yyj1571 >= l { break } } else { @@ -18649,10 +18697,10 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1566Slc = r.DecodeBytes(yys1566Slc, true, true) - yys1566 := string(yys1566Slc) + yys1571Slc = r.DecodeBytes(yys1571Slc, true, true) + yys1571 := string(yys1571Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1566 { + switch yys1571 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -18663,18 +18711,18 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Deco if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1568 := &x.Ranges - yym1569 := z.DecBinary() - _ = yym1569 + yyv1573 := &x.Ranges + yym1574 := z.DecBinary() + _ = yym1574 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1568), d) + h.decSliceIDRange((*[]IDRange)(yyv1573), d) } } default: - z.DecStructFieldNotFound(-1, yys1566) - } // end switch yys1566 - } // end for yyj1566 + z.DecStructFieldNotFound(-1, yys1571) + } // end switch yys1571 + } // end for yyj1571 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18682,16 +18730,16 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1570 int - var yyb1570 bool - var yyhl1570 bool = l >= 0 - yyj1570++ - if yyhl1570 { - yyb1570 = yyj1570 > l + var yyj1575 int + var yyb1575 bool + var yyhl1575 bool = l >= 0 + yyj1575++ + if yyhl1575 { + yyb1575 = yyj1575 > l } else { - yyb1570 = r.CheckBreak() + yyb1575 = r.CheckBreak() } - if yyb1570 { + if yyb1575 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18701,13 +18749,13 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De } else { x.Rule = FSGroupStrategyType(r.DecodeString()) } - yyj1570++ - if yyhl1570 { - yyb1570 = yyj1570 > l + yyj1575++ + if yyhl1575 { + yyb1575 = yyj1575 > l } else { - yyb1570 = r.CheckBreak() + yyb1575 = r.CheckBreak() } - if yyb1570 { + if yyb1575 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18715,26 +18763,26 @@ func (x *FSGroupStrategyOptions) codecDecodeSelfFromArray(l int, d *codec1978.De if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1572 := &x.Ranges - yym1573 := z.DecBinary() - _ = yym1573 + yyv1577 := &x.Ranges + yym1578 := z.DecBinary() + _ = yym1578 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1572), d) + h.decSliceIDRange((*[]IDRange)(yyv1577), d) } } for { - yyj1570++ - if yyhl1570 { - yyb1570 = yyj1570 > l + yyj1575++ + if yyhl1575 { + yyb1575 = yyj1575 > l } else { - yyb1570 = r.CheckBreak() + yyb1575 = r.CheckBreak() } - if yyb1570 { + if yyb1575 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1570-1, "") + z.DecStructFieldNotFound(yyj1575-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18743,8 +18791,8 @@ func (x FSGroupStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1574 := z.EncBinary() - _ = yym1574 + yym1579 := z.EncBinary() + _ = yym1579 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -18756,8 +18804,8 @@ func (x *FSGroupStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1575 := z.DecBinary() - _ = yym1575 + yym1580 := z.DecBinary() + _ = yym1580 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -18772,54 +18820,54 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder if x == nil { r.EncodeNil() } else { - yym1576 := z.EncBinary() - _ = yym1576 + yym1581 := z.EncBinary() + _ = yym1581 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1577 := !z.EncBinary() - yy2arr1577 := z.EncBasicHandle().StructToArray - var yyq1577 [2]bool - _, _, _ = yysep1577, yyq1577, yy2arr1577 - const yyr1577 bool = false - yyq1577[0] = x.Rule != "" - yyq1577[1] = len(x.Ranges) != 0 - var yynn1577 int - if yyr1577 || yy2arr1577 { + yysep1582 := !z.EncBinary() + yy2arr1582 := z.EncBasicHandle().StructToArray + var yyq1582 [2]bool + _, _, _ = yysep1582, yyq1582, yy2arr1582 + const yyr1582 bool = false + yyq1582[0] = x.Rule != "" + yyq1582[1] = len(x.Ranges) != 0 + var yynn1582 int + if yyr1582 || yy2arr1582 { r.EncodeArrayStart(2) } else { - yynn1577 = 0 - for _, b := range yyq1577 { + yynn1582 = 0 + for _, b := range yyq1582 { if b { - yynn1577++ + yynn1582++ } } - r.EncodeMapStart(yynn1577) - yynn1577 = 0 + r.EncodeMapStart(yynn1582) + yynn1582 = 0 } - if yyr1577 || yy2arr1577 { + if yyr1582 || yy2arr1582 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1577[0] { + if yyq1582[0] { x.Rule.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1577[0] { + if yyq1582[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rule")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Rule.CodecEncodeSelf(e) } } - if yyr1577 || yy2arr1577 { + if yyr1582 || yy2arr1582 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1577[1] { + if yyq1582[1] { if x.Ranges == nil { r.EncodeNil() } else { - yym1580 := z.EncBinary() - _ = yym1580 + yym1585 := z.EncBinary() + _ = yym1585 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18829,15 +18877,15 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder r.EncodeNil() } } else { - if yyq1577[1] { + if yyq1582[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ranges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ranges == nil { r.EncodeNil() } else { - yym1581 := z.EncBinary() - _ = yym1581 + yym1586 := z.EncBinary() + _ = yym1586 if false { } else { h.encSliceIDRange(([]IDRange)(x.Ranges), e) @@ -18845,7 +18893,7 @@ func (x *SupplementalGroupsStrategyOptions) CodecEncodeSelf(e *codec1978.Encoder } } } - if yyr1577 || yy2arr1577 { + if yyr1582 || yy2arr1582 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -18858,25 +18906,25 @@ func (x *SupplementalGroupsStrategyOptions) CodecDecodeSelf(d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1582 := z.DecBinary() - _ = yym1582 + yym1587 := z.DecBinary() + _ = yym1587 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1583 := r.ContainerType() - if yyct1583 == codecSelferValueTypeMap1234 { - yyl1583 := r.ReadMapStart() - if yyl1583 == 0 { + yyct1588 := r.ContainerType() + if yyct1588 == codecSelferValueTypeMap1234 { + yyl1588 := r.ReadMapStart() + if yyl1588 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1583, d) + x.codecDecodeSelfFromMap(yyl1588, d) } - } else if yyct1583 == codecSelferValueTypeArray1234 { - yyl1583 := r.ReadArrayStart() - if yyl1583 == 0 { + } else if yyct1588 == codecSelferValueTypeArray1234 { + yyl1588 := r.ReadArrayStart() + if yyl1588 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1583, d) + x.codecDecodeSelfFromArray(yyl1588, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -18888,12 +18936,12 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1584Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1584Slc - var yyhl1584 bool = l >= 0 - for yyj1584 := 0; ; yyj1584++ { - if yyhl1584 { - if yyj1584 >= l { + var yys1589Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1589Slc + var yyhl1589 bool = l >= 0 + for yyj1589 := 0; ; yyj1589++ { + if yyhl1589 { + if yyj1589 >= l { break } } else { @@ -18902,10 +18950,10 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1584Slc = r.DecodeBytes(yys1584Slc, true, true) - yys1584 := string(yys1584Slc) + yys1589Slc = r.DecodeBytes(yys1589Slc, true, true) + yys1589 := string(yys1589Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1584 { + switch yys1589 { case "rule": if r.TryDecodeAsNil() { x.Rule = "" @@ -18916,18 +18964,18 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromMap(l int, d *cod if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1586 := &x.Ranges - yym1587 := z.DecBinary() - _ = yym1587 + yyv1591 := &x.Ranges + yym1592 := z.DecBinary() + _ = yym1592 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1586), d) + h.decSliceIDRange((*[]IDRange)(yyv1591), d) } } default: - z.DecStructFieldNotFound(-1, yys1584) - } // end switch yys1584 - } // end for yyj1584 + z.DecStructFieldNotFound(-1, yys1589) + } // end switch yys1589 + } // end for yyj1589 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -18935,16 +18983,16 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1588 int - var yyb1588 bool - var yyhl1588 bool = l >= 0 - yyj1588++ - if yyhl1588 { - yyb1588 = yyj1588 > l + var yyj1593 int + var yyb1593 bool + var yyhl1593 bool = l >= 0 + yyj1593++ + if yyhl1593 { + yyb1593 = yyj1593 > l } else { - yyb1588 = r.CheckBreak() + yyb1593 = r.CheckBreak() } - if yyb1588 { + if yyb1593 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18954,13 +19002,13 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c } else { x.Rule = SupplementalGroupsStrategyType(r.DecodeString()) } - yyj1588++ - if yyhl1588 { - yyb1588 = yyj1588 > l + yyj1593++ + if yyhl1593 { + yyb1593 = yyj1593 > l } else { - yyb1588 = r.CheckBreak() + yyb1593 = r.CheckBreak() } - if yyb1588 { + if yyb1593 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -18968,26 +19016,26 @@ func (x *SupplementalGroupsStrategyOptions) codecDecodeSelfFromArray(l int, d *c if r.TryDecodeAsNil() { x.Ranges = nil } else { - yyv1590 := &x.Ranges - yym1591 := z.DecBinary() - _ = yym1591 + yyv1595 := &x.Ranges + yym1596 := z.DecBinary() + _ = yym1596 if false { } else { - h.decSliceIDRange((*[]IDRange)(yyv1590), d) + h.decSliceIDRange((*[]IDRange)(yyv1595), d) } } for { - yyj1588++ - if yyhl1588 { - yyb1588 = yyj1588 > l + yyj1593++ + if yyhl1593 { + yyb1593 = yyj1593 > l } else { - yyb1588 = r.CheckBreak() + yyb1593 = r.CheckBreak() } - if yyb1588 { + if yyb1593 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1588-1, "") + z.DecStructFieldNotFound(yyj1593-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -18996,8 +19044,8 @@ func (x SupplementalGroupsStrategyType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r - yym1592 := z.EncBinary() - _ = yym1592 + yym1597 := z.EncBinary() + _ = yym1597 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { @@ -19009,8 +19057,8 @@ func (x *SupplementalGroupsStrategyType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1593 := z.DecBinary() - _ = yym1593 + yym1598 := z.DecBinary() + _ = yym1598 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { @@ -19025,37 +19073,37 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1594 := z.EncBinary() - _ = yym1594 + yym1599 := z.EncBinary() + _ = yym1599 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1595 := !z.EncBinary() - yy2arr1595 := z.EncBasicHandle().StructToArray - var yyq1595 [4]bool - _, _, _ = yysep1595, yyq1595, yy2arr1595 - const yyr1595 bool = false - yyq1595[0] = x.Kind != "" - yyq1595[1] = x.APIVersion != "" - yyq1595[2] = true - var yynn1595 int - if yyr1595 || yy2arr1595 { + yysep1600 := !z.EncBinary() + yy2arr1600 := z.EncBasicHandle().StructToArray + var yyq1600 [4]bool + _, _, _ = yysep1600, yyq1600, yy2arr1600 + const yyr1600 bool = false + yyq1600[0] = x.Kind != "" + yyq1600[1] = x.APIVersion != "" + yyq1600[2] = true + var yynn1600 int + if yyr1600 || yy2arr1600 { r.EncodeArrayStart(4) } else { - yynn1595 = 1 - for _, b := range yyq1595 { + yynn1600 = 1 + for _, b := range yyq1600 { if b { - yynn1595++ + yynn1600++ } } - r.EncodeMapStart(yynn1595) - yynn1595 = 0 + r.EncodeMapStart(yynn1600) + yynn1600 = 0 } - if yyr1595 || yy2arr1595 { + if yyr1600 || yy2arr1600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1595[0] { - yym1597 := z.EncBinary() - _ = yym1597 + if yyq1600[0] { + yym1602 := z.EncBinary() + _ = yym1602 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -19064,23 +19112,23 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1595[0] { + if yyq1600[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1598 := z.EncBinary() - _ = yym1598 + yym1603 := z.EncBinary() + _ = yym1603 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1595 || yy2arr1595 { + if yyr1600 || yy2arr1600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1595[1] { - yym1600 := z.EncBinary() - _ = yym1600 + if yyq1600[1] { + yym1605 := z.EncBinary() + _ = yym1605 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -19089,54 +19137,54 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1595[1] { + if yyq1600[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1601 := z.EncBinary() - _ = yym1601 + yym1606 := z.EncBinary() + _ = yym1606 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1595 || yy2arr1595 { + if yyr1600 || yy2arr1600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1595[2] { - yy1603 := &x.ListMeta - yym1604 := z.EncBinary() - _ = yym1604 + if yyq1600[2] { + yy1608 := &x.ListMeta + yym1609 := z.EncBinary() + _ = yym1609 if false { - } else if z.HasExtensions() && z.EncExt(yy1603) { + } else if z.HasExtensions() && z.EncExt(yy1608) { } else { - z.EncFallback(yy1603) + z.EncFallback(yy1608) } } else { r.EncodeNil() } } else { - if yyq1595[2] { + if yyq1600[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1605 := &x.ListMeta - yym1606 := z.EncBinary() - _ = yym1606 + yy1610 := &x.ListMeta + yym1611 := z.EncBinary() + _ = yym1611 if false { - } else if z.HasExtensions() && z.EncExt(yy1605) { + } else if z.HasExtensions() && z.EncExt(yy1610) { } else { - z.EncFallback(yy1605) + z.EncFallback(yy1610) } } } - if yyr1595 || yy2arr1595 { + if yyr1600 || yy2arr1600 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1608 := z.EncBinary() - _ = yym1608 + yym1613 := z.EncBinary() + _ = yym1613 if false { } else { h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) @@ -19149,15 +19197,15 @@ func (x *PodSecurityPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1609 := z.EncBinary() - _ = yym1609 + yym1614 := z.EncBinary() + _ = yym1614 if false { } else { h.encSlicePodSecurityPolicy(([]PodSecurityPolicy)(x.Items), e) } } } - if yyr1595 || yy2arr1595 { + if yyr1600 || yy2arr1600 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19170,25 +19218,25 @@ func (x *PodSecurityPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1610 := z.DecBinary() - _ = yym1610 + yym1615 := z.DecBinary() + _ = yym1615 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1611 := r.ContainerType() - if yyct1611 == codecSelferValueTypeMap1234 { - yyl1611 := r.ReadMapStart() - if yyl1611 == 0 { + yyct1616 := r.ContainerType() + if yyct1616 == codecSelferValueTypeMap1234 { + yyl1616 := r.ReadMapStart() + if yyl1616 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1611, d) + x.codecDecodeSelfFromMap(yyl1616, d) } - } else if yyct1611 == codecSelferValueTypeArray1234 { - yyl1611 := r.ReadArrayStart() - if yyl1611 == 0 { + } else if yyct1616 == codecSelferValueTypeArray1234 { + yyl1616 := r.ReadArrayStart() + if yyl1616 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1611, d) + x.codecDecodeSelfFromArray(yyl1616, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19200,12 +19248,12 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1612Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1612Slc - var yyhl1612 bool = l >= 0 - for yyj1612 := 0; ; yyj1612++ { - if yyhl1612 { - if yyj1612 >= l { + var yys1617Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1617Slc + var yyhl1617 bool = l >= 0 + for yyj1617 := 0; ; yyj1617++ { + if yyhl1617 { + if yyj1617 >= l { break } } else { @@ -19214,10 +19262,10 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1612Slc = r.DecodeBytes(yys1612Slc, true, true) - yys1612 := string(yys1612Slc) + yys1617Slc = r.DecodeBytes(yys1617Slc, true, true) + yys1617 := string(yys1617Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1612 { + switch yys1617 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -19234,31 +19282,31 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decod if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1615 := &x.ListMeta - yym1616 := z.DecBinary() - _ = yym1616 + yyv1620 := &x.ListMeta + yym1621 := z.DecBinary() + _ = yym1621 if false { - } else if z.HasExtensions() && z.DecExt(yyv1615) { + } else if z.HasExtensions() && z.DecExt(yyv1620) { } else { - z.DecFallback(yyv1615, false) + z.DecFallback(yyv1620, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1617 := &x.Items - yym1618 := z.DecBinary() - _ = yym1618 + yyv1622 := &x.Items + yym1623 := z.DecBinary() + _ = yym1623 if false { } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1617), d) + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1622), d) } } default: - z.DecStructFieldNotFound(-1, yys1612) - } // end switch yys1612 - } // end for yyj1612 + z.DecStructFieldNotFound(-1, yys1617) + } // end switch yys1617 + } // end for yyj1617 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19266,16 +19314,16 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1619 int - var yyb1619 bool - var yyhl1619 bool = l >= 0 - yyj1619++ - if yyhl1619 { - yyb1619 = yyj1619 > l + var yyj1624 int + var yyb1624 bool + var yyhl1624 bool = l >= 0 + yyj1624++ + if yyhl1624 { + yyb1624 = yyj1624 > l } else { - yyb1619 = r.CheckBreak() + yyb1624 = r.CheckBreak() } - if yyb1619 { + if yyb1624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19285,13 +19333,13 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.Kind = string(r.DecodeString()) } - yyj1619++ - if yyhl1619 { - yyb1619 = yyj1619 > l + yyj1624++ + if yyhl1624 { + yyb1624 = yyj1624 > l } else { - yyb1619 = r.CheckBreak() + yyb1624 = r.CheckBreak() } - if yyb1619 { + if yyb1624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19301,13 +19349,13 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec } else { x.APIVersion = string(r.DecodeString()) } - yyj1619++ - if yyhl1619 { - yyb1619 = yyj1619 > l + yyj1624++ + if yyhl1624 { + yyb1624 = yyj1624 > l } else { - yyb1619 = r.CheckBreak() + yyb1624 = r.CheckBreak() } - if yyb1619 { + if yyb1624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19315,22 +19363,22 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1622 := &x.ListMeta - yym1623 := z.DecBinary() - _ = yym1623 + yyv1627 := &x.ListMeta + yym1628 := z.DecBinary() + _ = yym1628 if false { - } else if z.HasExtensions() && z.DecExt(yyv1622) { + } else if z.HasExtensions() && z.DecExt(yyv1627) { } else { - z.DecFallback(yyv1622, false) + z.DecFallback(yyv1627, false) } } - yyj1619++ - if yyhl1619 { - yyb1619 = yyj1619 > l + yyj1624++ + if yyhl1624 { + yyb1624 = yyj1624 > l } else { - yyb1619 = r.CheckBreak() + yyb1624 = r.CheckBreak() } - if yyb1619 { + if yyb1624 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19338,26 +19386,26 @@ func (x *PodSecurityPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Dec if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1624 := &x.Items - yym1625 := z.DecBinary() - _ = yym1625 + yyv1629 := &x.Items + yym1630 := z.DecBinary() + _ = yym1630 if false { } else { - h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1624), d) + h.decSlicePodSecurityPolicy((*[]PodSecurityPolicy)(yyv1629), d) } } for { - yyj1619++ - if yyhl1619 { - yyb1619 = yyj1619 > l + yyj1624++ + if yyhl1624 { + yyb1624 = yyj1624 > l } else { - yyb1619 = r.CheckBreak() + yyb1624 = r.CheckBreak() } - if yyb1619 { + if yyb1624 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1619-1, "") + z.DecStructFieldNotFound(yyj1624-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19369,38 +19417,38 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1626 := z.EncBinary() - _ = yym1626 + yym1631 := z.EncBinary() + _ = yym1631 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1627 := !z.EncBinary() - yy2arr1627 := z.EncBasicHandle().StructToArray - var yyq1627 [4]bool - _, _, _ = yysep1627, yyq1627, yy2arr1627 - const yyr1627 bool = false - yyq1627[0] = x.Kind != "" - yyq1627[1] = x.APIVersion != "" - yyq1627[2] = true - yyq1627[3] = true - var yynn1627 int - if yyr1627 || yy2arr1627 { + yysep1632 := !z.EncBinary() + yy2arr1632 := z.EncBasicHandle().StructToArray + var yyq1632 [4]bool + _, _, _ = yysep1632, yyq1632, yy2arr1632 + const yyr1632 bool = false + yyq1632[0] = x.Kind != "" + yyq1632[1] = x.APIVersion != "" + yyq1632[2] = true + yyq1632[3] = true + var yynn1632 int + if yyr1632 || yy2arr1632 { r.EncodeArrayStart(4) } else { - yynn1627 = 0 - for _, b := range yyq1627 { + yynn1632 = 0 + for _, b := range yyq1632 { if b { - yynn1627++ + yynn1632++ } } - r.EncodeMapStart(yynn1627) - yynn1627 = 0 + r.EncodeMapStart(yynn1632) + yynn1632 = 0 } - if yyr1627 || yy2arr1627 { + if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1627[0] { - yym1629 := z.EncBinary() - _ = yym1629 + if yyq1632[0] { + yym1634 := z.EncBinary() + _ = yym1634 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -19409,23 +19457,23 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1627[0] { + if yyq1632[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1630 := z.EncBinary() - _ = yym1630 + yym1635 := z.EncBinary() + _ = yym1635 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1627 || yy2arr1627 { + if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1627[1] { - yym1632 := z.EncBinary() - _ = yym1632 + if yyq1632[1] { + yym1637 := z.EncBinary() + _ = yym1637 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -19434,53 +19482,53 @@ func (x *NetworkPolicy) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1627[1] { + if yyq1632[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1633 := z.EncBinary() - _ = yym1633 + yym1638 := z.EncBinary() + _ = yym1638 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1627 || yy2arr1627 { + if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1627[2] { - yy1635 := &x.ObjectMeta - yy1635.CodecEncodeSelf(e) + if yyq1632[2] { + yy1640 := &x.ObjectMeta + yy1640.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1627[2] { + if yyq1632[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1636 := &x.ObjectMeta - yy1636.CodecEncodeSelf(e) + yy1641 := &x.ObjectMeta + yy1641.CodecEncodeSelf(e) } } - if yyr1627 || yy2arr1627 { + if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1627[3] { - yy1638 := &x.Spec - yy1638.CodecEncodeSelf(e) + if yyq1632[3] { + yy1643 := &x.Spec + yy1643.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1627[3] { + if yyq1632[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1639 := &x.Spec - yy1639.CodecEncodeSelf(e) + yy1644 := &x.Spec + yy1644.CodecEncodeSelf(e) } } - if yyr1627 || yy2arr1627 { + if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19493,25 +19541,25 @@ func (x *NetworkPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1640 := z.DecBinary() - _ = yym1640 + yym1645 := z.DecBinary() + _ = yym1645 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1641 := r.ContainerType() - if yyct1641 == codecSelferValueTypeMap1234 { - yyl1641 := r.ReadMapStart() - if yyl1641 == 0 { + yyct1646 := r.ContainerType() + if yyct1646 == codecSelferValueTypeMap1234 { + yyl1646 := r.ReadMapStart() + if yyl1646 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1641, d) + x.codecDecodeSelfFromMap(yyl1646, d) } - } else if yyct1641 == codecSelferValueTypeArray1234 { - yyl1641 := r.ReadArrayStart() - if yyl1641 == 0 { + } else if yyct1646 == codecSelferValueTypeArray1234 { + yyl1646 := r.ReadArrayStart() + if yyl1646 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1641, d) + x.codecDecodeSelfFromArray(yyl1646, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19523,12 +19571,12 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1642Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1642Slc - var yyhl1642 bool = l >= 0 - for yyj1642 := 0; ; yyj1642++ { - if yyhl1642 { - if yyj1642 >= l { + var yys1647Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1647Slc + var yyhl1647 bool = l >= 0 + for yyj1647 := 0; ; yyj1647++ { + if yyhl1647 { + if yyj1647 >= l { break } } else { @@ -19537,10 +19585,10 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1642Slc = r.DecodeBytes(yys1642Slc, true, true) - yys1642 := string(yys1642Slc) + yys1647Slc = r.DecodeBytes(yys1647Slc, true, true) + yys1647 := string(yys1647Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1642 { + switch yys1647 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -19557,20 +19605,20 @@ func (x *NetworkPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1645 := &x.ObjectMeta - yyv1645.CodecDecodeSelf(d) + yyv1650 := &x.ObjectMeta + yyv1650.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NetworkPolicySpec{} } else { - yyv1646 := &x.Spec - yyv1646.CodecDecodeSelf(d) + yyv1651 := &x.Spec + yyv1651.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1642) - } // end switch yys1642 - } // end for yyj1642 + z.DecStructFieldNotFound(-1, yys1647) + } // end switch yys1647 + } // end for yyj1647 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19578,16 +19626,16 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1647 int - var yyb1647 bool - var yyhl1647 bool = l >= 0 - yyj1647++ - if yyhl1647 { - yyb1647 = yyj1647 > l + var yyj1652 int + var yyb1652 bool + var yyhl1652 bool = l >= 0 + yyj1652++ + if yyhl1652 { + yyb1652 = yyj1652 > l } else { - yyb1647 = r.CheckBreak() + yyb1652 = r.CheckBreak() } - if yyb1647 { + if yyb1652 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19597,13 +19645,13 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj1647++ - if yyhl1647 { - yyb1647 = yyj1647 > l + yyj1652++ + if yyhl1652 { + yyb1652 = yyj1652 > l } else { - yyb1647 = r.CheckBreak() + yyb1652 = r.CheckBreak() } - if yyb1647 { + if yyb1652 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19613,13 +19661,13 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj1647++ - if yyhl1647 { - yyb1647 = yyj1647 > l + yyj1652++ + if yyhl1652 { + yyb1652 = yyj1652 > l } else { - yyb1647 = r.CheckBreak() + yyb1652 = r.CheckBreak() } - if yyb1647 { + if yyb1652 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19627,16 +19675,16 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1650 := &x.ObjectMeta - yyv1650.CodecDecodeSelf(d) + yyv1655 := &x.ObjectMeta + yyv1655.CodecDecodeSelf(d) } - yyj1647++ - if yyhl1647 { - yyb1647 = yyj1647 > l + yyj1652++ + if yyhl1652 { + yyb1652 = yyj1652 > l } else { - yyb1647 = r.CheckBreak() + yyb1652 = r.CheckBreak() } - if yyb1647 { + if yyb1652 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19644,21 +19692,21 @@ func (x *NetworkPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Spec = NetworkPolicySpec{} } else { - yyv1651 := &x.Spec - yyv1651.CodecDecodeSelf(d) + yyv1656 := &x.Spec + yyv1656.CodecDecodeSelf(d) } for { - yyj1647++ - if yyhl1647 { - yyb1647 = yyj1647 > l + yyj1652++ + if yyhl1652 { + yyb1652 = yyj1652 > l } else { - yyb1647 = r.CheckBreak() + yyb1652 = r.CheckBreak() } - if yyb1647 { + if yyb1652 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1647-1, "") + z.DecStructFieldNotFound(yyj1652-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19670,49 +19718,49 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1652 := z.EncBinary() - _ = yym1652 + yym1657 := z.EncBinary() + _ = yym1657 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1653 := !z.EncBinary() - yy2arr1653 := z.EncBasicHandle().StructToArray - var yyq1653 [2]bool - _, _, _ = yysep1653, yyq1653, yy2arr1653 - const yyr1653 bool = false - yyq1653[1] = len(x.Ingress) != 0 - var yynn1653 int - if yyr1653 || yy2arr1653 { + yysep1658 := !z.EncBinary() + yy2arr1658 := z.EncBasicHandle().StructToArray + var yyq1658 [2]bool + _, _, _ = yysep1658, yyq1658, yy2arr1658 + const yyr1658 bool = false + yyq1658[1] = len(x.Ingress) != 0 + var yynn1658 int + if yyr1658 || yy2arr1658 { r.EncodeArrayStart(2) } else { - yynn1653 = 1 - for _, b := range yyq1653 { + yynn1658 = 1 + for _, b := range yyq1658 { if b { - yynn1653++ + yynn1658++ } } - r.EncodeMapStart(yynn1653) - yynn1653 = 0 + r.EncodeMapStart(yynn1658) + yynn1658 = 0 } - if yyr1653 || yy2arr1653 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1655 := &x.PodSelector - yy1655.CodecEncodeSelf(e) + yy1660 := &x.PodSelector + yy1660.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1656 := &x.PodSelector - yy1656.CodecEncodeSelf(e) + yy1661 := &x.PodSelector + yy1661.CodecEncodeSelf(e) } - if yyr1653 || yy2arr1653 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1653[1] { + if yyq1658[1] { if x.Ingress == nil { r.EncodeNil() } else { - yym1658 := z.EncBinary() - _ = yym1658 + yym1663 := z.EncBinary() + _ = yym1663 if false { } else { h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) @@ -19722,15 +19770,15 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1653[1] { + if yyq1658[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { - yym1659 := z.EncBinary() - _ = yym1659 + yym1664 := z.EncBinary() + _ = yym1664 if false { } else { h.encSliceNetworkPolicyIngressRule(([]NetworkPolicyIngressRule)(x.Ingress), e) @@ -19738,7 +19786,7 @@ func (x *NetworkPolicySpec) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1653 || yy2arr1653 { + if yyr1658 || yy2arr1658 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19751,25 +19799,25 @@ func (x *NetworkPolicySpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1660 := z.DecBinary() - _ = yym1660 + yym1665 := z.DecBinary() + _ = yym1665 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1661 := r.ContainerType() - if yyct1661 == codecSelferValueTypeMap1234 { - yyl1661 := r.ReadMapStart() - if yyl1661 == 0 { + yyct1666 := r.ContainerType() + if yyct1666 == codecSelferValueTypeMap1234 { + yyl1666 := r.ReadMapStart() + if yyl1666 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1661, d) + x.codecDecodeSelfFromMap(yyl1666, d) } - } else if yyct1661 == codecSelferValueTypeArray1234 { - yyl1661 := r.ReadArrayStart() - if yyl1661 == 0 { + } else if yyct1666 == codecSelferValueTypeArray1234 { + yyl1666 := r.ReadArrayStart() + if yyl1666 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1661, d) + x.codecDecodeSelfFromArray(yyl1666, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -19781,12 +19829,12 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1662Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1662Slc - var yyhl1662 bool = l >= 0 - for yyj1662 := 0; ; yyj1662++ { - if yyhl1662 { - if yyj1662 >= l { + var yys1667Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1667Slc + var yyhl1667 bool = l >= 0 + for yyj1667 := 0; ; yyj1667++ { + if yyhl1667 { + if yyj1667 >= l { break } } else { @@ -19795,33 +19843,33 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1662Slc = r.DecodeBytes(yys1662Slc, true, true) - yys1662 := string(yys1662Slc) + yys1667Slc = r.DecodeBytes(yys1667Slc, true, true) + yys1667 := string(yys1667Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1662 { + switch yys1667 { case "podSelector": if r.TryDecodeAsNil() { x.PodSelector = LabelSelector{} } else { - yyv1663 := &x.PodSelector - yyv1663.CodecDecodeSelf(d) + yyv1668 := &x.PodSelector + yyv1668.CodecDecodeSelf(d) } case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv1664 := &x.Ingress - yym1665 := z.DecBinary() - _ = yym1665 + yyv1669 := &x.Ingress + yym1670 := z.DecBinary() + _ = yym1670 if false { } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1664), d) + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1669), d) } } default: - z.DecStructFieldNotFound(-1, yys1662) - } // end switch yys1662 - } // end for yyj1662 + z.DecStructFieldNotFound(-1, yys1667) + } // end switch yys1667 + } // end for yyj1667 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -19829,16 +19877,16 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1666 int - var yyb1666 bool - var yyhl1666 bool = l >= 0 - yyj1666++ - if yyhl1666 { - yyb1666 = yyj1666 > l + var yyj1671 int + var yyb1671 bool + var yyhl1671 bool = l >= 0 + yyj1671++ + if yyhl1671 { + yyb1671 = yyj1671 > l } else { - yyb1666 = r.CheckBreak() + yyb1671 = r.CheckBreak() } - if yyb1666 { + if yyb1671 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19846,16 +19894,16 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.PodSelector = LabelSelector{} } else { - yyv1667 := &x.PodSelector - yyv1667.CodecDecodeSelf(d) + yyv1672 := &x.PodSelector + yyv1672.CodecDecodeSelf(d) } - yyj1666++ - if yyhl1666 { - yyb1666 = yyj1666 > l + yyj1671++ + if yyhl1671 { + yyb1671 = yyj1671 > l } else { - yyb1666 = r.CheckBreak() + yyb1671 = r.CheckBreak() } - if yyb1666 { + if yyb1671 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -19863,26 +19911,26 @@ func (x *NetworkPolicySpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Ingress = nil } else { - yyv1668 := &x.Ingress - yym1669 := z.DecBinary() - _ = yym1669 + yyv1673 := &x.Ingress + yym1674 := z.DecBinary() + _ = yym1674 if false { } else { - h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1668), d) + h.decSliceNetworkPolicyIngressRule((*[]NetworkPolicyIngressRule)(yyv1673), d) } } for { - yyj1666++ - if yyhl1666 { - yyb1666 = yyj1666 > l + yyj1671++ + if yyhl1671 { + yyb1671 = yyj1671 > l } else { - yyb1666 = r.CheckBreak() + yyb1671 = r.CheckBreak() } - if yyb1666 { + if yyb1671 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1666-1, "") + z.DecStructFieldNotFound(yyj1671-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -19894,39 +19942,39 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1670 := z.EncBinary() - _ = yym1670 + yym1675 := z.EncBinary() + _ = yym1675 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1671 := !z.EncBinary() - yy2arr1671 := z.EncBasicHandle().StructToArray - var yyq1671 [2]bool - _, _, _ = yysep1671, yyq1671, yy2arr1671 - const yyr1671 bool = false - yyq1671[0] = len(x.Ports) != 0 - yyq1671[1] = len(x.From) != 0 - var yynn1671 int - if yyr1671 || yy2arr1671 { + yysep1676 := !z.EncBinary() + yy2arr1676 := z.EncBasicHandle().StructToArray + var yyq1676 [2]bool + _, _, _ = yysep1676, yyq1676, yy2arr1676 + const yyr1676 bool = false + yyq1676[0] = len(x.Ports) != 0 + yyq1676[1] = len(x.From) != 0 + var yynn1676 int + if yyr1676 || yy2arr1676 { r.EncodeArrayStart(2) } else { - yynn1671 = 0 - for _, b := range yyq1671 { + yynn1676 = 0 + for _, b := range yyq1676 { if b { - yynn1671++ + yynn1676++ } } - r.EncodeMapStart(yynn1671) - yynn1671 = 0 + r.EncodeMapStart(yynn1676) + yynn1676 = 0 } - if yyr1671 || yy2arr1671 { + if yyr1676 || yy2arr1676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1671[0] { + if yyq1676[0] { if x.Ports == nil { r.EncodeNil() } else { - yym1673 := z.EncBinary() - _ = yym1673 + yym1678 := z.EncBinary() + _ = yym1678 if false { } else { h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) @@ -19936,15 +19984,15 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1671[0] { + if yyq1676[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { - yym1674 := z.EncBinary() - _ = yym1674 + yym1679 := z.EncBinary() + _ = yym1679 if false { } else { h.encSliceNetworkPolicyPort(([]NetworkPolicyPort)(x.Ports), e) @@ -19952,14 +20000,14 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1671 || yy2arr1671 { + if yyr1676 || yy2arr1676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1671[1] { + if yyq1676[1] { if x.From == nil { r.EncodeNil() } else { - yym1676 := z.EncBinary() - _ = yym1676 + yym1681 := z.EncBinary() + _ = yym1681 if false { } else { h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) @@ -19969,15 +20017,15 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1671[1] { + if yyq1676[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("from")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.From == nil { r.EncodeNil() } else { - yym1677 := z.EncBinary() - _ = yym1677 + yym1682 := z.EncBinary() + _ = yym1682 if false { } else { h.encSliceNetworkPolicyPeer(([]NetworkPolicyPeer)(x.From), e) @@ -19985,7 +20033,7 @@ func (x *NetworkPolicyIngressRule) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1671 || yy2arr1671 { + if yyr1676 || yy2arr1676 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -19998,25 +20046,25 @@ func (x *NetworkPolicyIngressRule) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1678 := z.DecBinary() - _ = yym1678 + yym1683 := z.DecBinary() + _ = yym1683 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1679 := r.ContainerType() - if yyct1679 == codecSelferValueTypeMap1234 { - yyl1679 := r.ReadMapStart() - if yyl1679 == 0 { + yyct1684 := r.ContainerType() + if yyct1684 == codecSelferValueTypeMap1234 { + yyl1684 := r.ReadMapStart() + if yyl1684 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1679, d) + x.codecDecodeSelfFromMap(yyl1684, d) } - } else if yyct1679 == codecSelferValueTypeArray1234 { - yyl1679 := r.ReadArrayStart() - if yyl1679 == 0 { + } else if yyct1684 == codecSelferValueTypeArray1234 { + yyl1684 := r.ReadArrayStart() + if yyl1684 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1679, d) + x.codecDecodeSelfFromArray(yyl1684, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20028,12 +20076,12 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.De var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1680Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1680Slc - var yyhl1680 bool = l >= 0 - for yyj1680 := 0; ; yyj1680++ { - if yyhl1680 { - if yyj1680 >= l { + var yys1685Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1685Slc + var yyhl1685 bool = l >= 0 + for yyj1685 := 0; ; yyj1685++ { + if yyhl1685 { + if yyj1685 >= l { break } } else { @@ -20042,38 +20090,38 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromMap(l int, d *codec1978.De } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1680Slc = r.DecodeBytes(yys1680Slc, true, true) - yys1680 := string(yys1680Slc) + yys1685Slc = r.DecodeBytes(yys1685Slc, true, true) + yys1685 := string(yys1685Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1680 { + switch yys1685 { case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1681 := &x.Ports - yym1682 := z.DecBinary() - _ = yym1682 + yyv1686 := &x.Ports + yym1687 := z.DecBinary() + _ = yym1687 if false { } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1681), d) + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1686), d) } } case "from": if r.TryDecodeAsNil() { x.From = nil } else { - yyv1683 := &x.From - yym1684 := z.DecBinary() - _ = yym1684 + yyv1688 := &x.From + yym1689 := z.DecBinary() + _ = yym1689 if false { } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1683), d) + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1688), d) } } default: - z.DecStructFieldNotFound(-1, yys1680) - } // end switch yys1680 - } // end for yyj1680 + z.DecStructFieldNotFound(-1, yys1685) + } // end switch yys1685 + } // end for yyj1685 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20081,16 +20129,16 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1685 int - var yyb1685 bool - var yyhl1685 bool = l >= 0 - yyj1685++ - if yyhl1685 { - yyb1685 = yyj1685 > l + var yyj1690 int + var yyb1690 bool + var yyhl1690 bool = l >= 0 + yyj1690++ + if yyhl1690 { + yyb1690 = yyj1690 > l } else { - yyb1685 = r.CheckBreak() + yyb1690 = r.CheckBreak() } - if yyb1685 { + if yyb1690 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20098,21 +20146,21 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.Ports = nil } else { - yyv1686 := &x.Ports - yym1687 := z.DecBinary() - _ = yym1687 + yyv1691 := &x.Ports + yym1692 := z.DecBinary() + _ = yym1692 if false { } else { - h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1686), d) + h.decSliceNetworkPolicyPort((*[]NetworkPolicyPort)(yyv1691), d) } } - yyj1685++ - if yyhl1685 { - yyb1685 = yyj1685 > l + yyj1690++ + if yyhl1690 { + yyb1690 = yyj1690 > l } else { - yyb1685 = r.CheckBreak() + yyb1690 = r.CheckBreak() } - if yyb1685 { + if yyb1690 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20120,26 +20168,26 @@ func (x *NetworkPolicyIngressRule) codecDecodeSelfFromArray(l int, d *codec1978. if r.TryDecodeAsNil() { x.From = nil } else { - yyv1688 := &x.From - yym1689 := z.DecBinary() - _ = yym1689 + yyv1693 := &x.From + yym1694 := z.DecBinary() + _ = yym1694 if false { } else { - h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1688), d) + h.decSliceNetworkPolicyPeer((*[]NetworkPolicyPeer)(yyv1693), d) } } for { - yyj1685++ - if yyhl1685 { - yyb1685 = yyj1685 > l + yyj1690++ + if yyhl1690 { + yyb1690 = yyj1690 > l } else { - yyb1685 = r.CheckBreak() + yyb1690 = r.CheckBreak() } - if yyb1685 { + if yyb1690 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1685-1, "") + z.DecStructFieldNotFound(yyj1690-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20151,79 +20199,79 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1690 := z.EncBinary() - _ = yym1690 + yym1695 := z.EncBinary() + _ = yym1695 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1691 := !z.EncBinary() - yy2arr1691 := z.EncBasicHandle().StructToArray - var yyq1691 [2]bool - _, _, _ = yysep1691, yyq1691, yy2arr1691 - const yyr1691 bool = false - yyq1691[0] = x.Protocol != nil - yyq1691[1] = x.Port != nil - var yynn1691 int - if yyr1691 || yy2arr1691 { + yysep1696 := !z.EncBinary() + yy2arr1696 := z.EncBasicHandle().StructToArray + var yyq1696 [2]bool + _, _, _ = yysep1696, yyq1696, yy2arr1696 + const yyr1696 bool = false + yyq1696[0] = x.Protocol != nil + yyq1696[1] = x.Port != nil + var yynn1696 int + if yyr1696 || yy2arr1696 { r.EncodeArrayStart(2) } else { - yynn1691 = 0 - for _, b := range yyq1691 { + yynn1696 = 0 + for _, b := range yyq1696 { if b { - yynn1691++ + yynn1696++ } } - r.EncodeMapStart(yynn1691) - yynn1691 = 0 + r.EncodeMapStart(yynn1696) + yynn1696 = 0 } - if yyr1691 || yy2arr1691 { + if yyr1696 || yy2arr1696 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1691[0] { + if yyq1696[0] { if x.Protocol == nil { r.EncodeNil() } else { - yy1693 := *x.Protocol - yym1694 := z.EncBinary() - _ = yym1694 + yy1698 := *x.Protocol + yym1699 := z.EncBinary() + _ = yym1699 if false { - } else if z.HasExtensions() && z.EncExt(yy1693) { + } else if z.HasExtensions() && z.EncExt(yy1698) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1693)) + r.EncodeString(codecSelferC_UTF81234, string(yy1698)) } } } else { r.EncodeNil() } } else { - if yyq1691[0] { + if yyq1696[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Protocol == nil { r.EncodeNil() } else { - yy1695 := *x.Protocol - yym1696 := z.EncBinary() - _ = yym1696 + yy1700 := *x.Protocol + yym1701 := z.EncBinary() + _ = yym1701 if false { - } else if z.HasExtensions() && z.EncExt(yy1695) { + } else if z.HasExtensions() && z.EncExt(yy1700) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yy1695)) + r.EncodeString(codecSelferC_UTF81234, string(yy1700)) } } } } - if yyr1691 || yy2arr1691 { + if yyr1696 || yy2arr1696 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1691[1] { + if yyq1696[1] { if x.Port == nil { r.EncodeNil() } else { - yym1698 := z.EncBinary() - _ = yym1698 + yym1703 := z.EncBinary() + _ = yym1703 if false { } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym1698 && z.IsJSONHandle() { + } else if !yym1703 && z.IsJSONHandle() { z.EncJSONMarshal(x.Port) } else { z.EncFallback(x.Port) @@ -20233,18 +20281,18 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1691[1] { + if yyq1696[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Port == nil { r.EncodeNil() } else { - yym1699 := z.EncBinary() - _ = yym1699 + yym1704 := z.EncBinary() + _ = yym1704 if false { } else if z.HasExtensions() && z.EncExt(x.Port) { - } else if !yym1699 && z.IsJSONHandle() { + } else if !yym1704 && z.IsJSONHandle() { z.EncJSONMarshal(x.Port) } else { z.EncFallback(x.Port) @@ -20252,7 +20300,7 @@ func (x *NetworkPolicyPort) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1691 || yy2arr1691 { + if yyr1696 || yy2arr1696 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20265,25 +20313,25 @@ func (x *NetworkPolicyPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1700 := z.DecBinary() - _ = yym1700 + yym1705 := z.DecBinary() + _ = yym1705 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1701 := r.ContainerType() - if yyct1701 == codecSelferValueTypeMap1234 { - yyl1701 := r.ReadMapStart() - if yyl1701 == 0 { + yyct1706 := r.ContainerType() + if yyct1706 == codecSelferValueTypeMap1234 { + yyl1706 := r.ReadMapStart() + if yyl1706 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1701, d) + x.codecDecodeSelfFromMap(yyl1706, d) } - } else if yyct1701 == codecSelferValueTypeArray1234 { - yyl1701 := r.ReadArrayStart() - if yyl1701 == 0 { + } else if yyct1706 == codecSelferValueTypeArray1234 { + yyl1706 := r.ReadArrayStart() + if yyl1706 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1701, d) + x.codecDecodeSelfFromArray(yyl1706, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20295,12 +20343,12 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1702Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1702Slc - var yyhl1702 bool = l >= 0 - for yyj1702 := 0; ; yyj1702++ { - if yyhl1702 { - if yyj1702 >= l { + var yys1707Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1707Slc + var yyhl1707 bool = l >= 0 + for yyj1707 := 0; ; yyj1707++ { + if yyhl1707 { + if yyj1707 >= l { break } } else { @@ -20309,10 +20357,10 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1702Slc = r.DecodeBytes(yys1702Slc, true, true) - yys1702 := string(yys1702Slc) + yys1707Slc = r.DecodeBytes(yys1707Slc, true, true) + yys1707 := string(yys1707Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1702 { + switch yys1707 { case "protocol": if r.TryDecodeAsNil() { if x.Protocol != nil { @@ -20333,20 +20381,20 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if x.Port == nil { x.Port = new(pkg5_intstr.IntOrString) } - yym1705 := z.DecBinary() - _ = yym1705 + yym1710 := z.DecBinary() + _ = yym1710 if false { } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym1705 && z.IsJSONHandle() { + } else if !yym1710 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.Port) } else { z.DecFallback(x.Port, false) } } default: - z.DecStructFieldNotFound(-1, yys1702) - } // end switch yys1702 - } // end for yyj1702 + z.DecStructFieldNotFound(-1, yys1707) + } // end switch yys1707 + } // end for yyj1707 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20354,16 +20402,16 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1706 int - var yyb1706 bool - var yyhl1706 bool = l >= 0 - yyj1706++ - if yyhl1706 { - yyb1706 = yyj1706 > l + var yyj1711 int + var yyb1711 bool + var yyhl1711 bool = l >= 0 + yyj1711++ + if yyhl1711 { + yyb1711 = yyj1711 > l } else { - yyb1706 = r.CheckBreak() + yyb1711 = r.CheckBreak() } - if yyb1706 { + if yyb1711 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20378,13 +20426,13 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } x.Protocol.CodecDecodeSelf(d) } - yyj1706++ - if yyhl1706 { - yyb1706 = yyj1706 > l + yyj1711++ + if yyhl1711 { + yyb1711 = yyj1711 > l } else { - yyb1706 = r.CheckBreak() + yyb1711 = r.CheckBreak() } - if yyb1706 { + if yyb1711 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20397,28 +20445,28 @@ func (x *NetworkPolicyPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if x.Port == nil { x.Port = new(pkg5_intstr.IntOrString) } - yym1709 := z.DecBinary() - _ = yym1709 + yym1714 := z.DecBinary() + _ = yym1714 if false { } else if z.HasExtensions() && z.DecExt(x.Port) { - } else if !yym1709 && z.IsJSONHandle() { + } else if !yym1714 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.Port) } else { z.DecFallback(x.Port, false) } } for { - yyj1706++ - if yyhl1706 { - yyb1706 = yyj1706 > l + yyj1711++ + if yyhl1711 { + yyb1711 = yyj1711 > l } else { - yyb1706 = r.CheckBreak() + yyb1711 = r.CheckBreak() } - if yyb1706 { + if yyb1711 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1706-1, "") + z.DecStructFieldNotFound(yyj1711-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20430,34 +20478,34 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1710 := z.EncBinary() - _ = yym1710 + yym1715 := z.EncBinary() + _ = yym1715 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1711 := !z.EncBinary() - yy2arr1711 := z.EncBasicHandle().StructToArray - var yyq1711 [2]bool - _, _, _ = yysep1711, yyq1711, yy2arr1711 - const yyr1711 bool = false - yyq1711[0] = x.PodSelector != nil - yyq1711[1] = x.NamespaceSelector != nil - var yynn1711 int - if yyr1711 || yy2arr1711 { + yysep1716 := !z.EncBinary() + yy2arr1716 := z.EncBasicHandle().StructToArray + var yyq1716 [2]bool + _, _, _ = yysep1716, yyq1716, yy2arr1716 + const yyr1716 bool = false + yyq1716[0] = x.PodSelector != nil + yyq1716[1] = x.NamespaceSelector != nil + var yynn1716 int + if yyr1716 || yy2arr1716 { r.EncodeArrayStart(2) } else { - yynn1711 = 0 - for _, b := range yyq1711 { + yynn1716 = 0 + for _, b := range yyq1716 { if b { - yynn1711++ + yynn1716++ } } - r.EncodeMapStart(yynn1711) - yynn1711 = 0 + r.EncodeMapStart(yynn1716) + yynn1716 = 0 } - if yyr1711 || yy2arr1711 { + if yyr1716 || yy2arr1716 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1711[0] { + if yyq1716[0] { if x.PodSelector == nil { r.EncodeNil() } else { @@ -20467,7 +20515,7 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1711[0] { + if yyq1716[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20478,9 +20526,9 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1711 || yy2arr1711 { + if yyr1716 || yy2arr1716 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1711[1] { + if yyq1716[1] { if x.NamespaceSelector == nil { r.EncodeNil() } else { @@ -20490,7 +20538,7 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1711[1] { + if yyq1716[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespaceSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) @@ -20501,7 +20549,7 @@ func (x *NetworkPolicyPeer) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1711 || yy2arr1711 { + if yyr1716 || yy2arr1716 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20514,25 +20562,25 @@ func (x *NetworkPolicyPeer) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1714 := z.DecBinary() - _ = yym1714 + yym1719 := z.DecBinary() + _ = yym1719 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1715 := r.ContainerType() - if yyct1715 == codecSelferValueTypeMap1234 { - yyl1715 := r.ReadMapStart() - if yyl1715 == 0 { + yyct1720 := r.ContainerType() + if yyct1720 == codecSelferValueTypeMap1234 { + yyl1720 := r.ReadMapStart() + if yyl1720 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1715, d) + x.codecDecodeSelfFromMap(yyl1720, d) } - } else if yyct1715 == codecSelferValueTypeArray1234 { - yyl1715 := r.ReadArrayStart() - if yyl1715 == 0 { + } else if yyct1720 == codecSelferValueTypeArray1234 { + yyl1720 := r.ReadArrayStart() + if yyl1720 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1715, d) + x.codecDecodeSelfFromArray(yyl1720, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20544,12 +20592,12 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1716Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1716Slc - var yyhl1716 bool = l >= 0 - for yyj1716 := 0; ; yyj1716++ { - if yyhl1716 { - if yyj1716 >= l { + var yys1721Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1721Slc + var yyhl1721 bool = l >= 0 + for yyj1721 := 0; ; yyj1721++ { + if yyhl1721 { + if yyj1721 >= l { break } } else { @@ -20558,10 +20606,10 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1716Slc = r.DecodeBytes(yys1716Slc, true, true) - yys1716 := string(yys1716Slc) + yys1721Slc = r.DecodeBytes(yys1721Slc, true, true) + yys1721 := string(yys1721Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1716 { + switch yys1721 { case "podSelector": if r.TryDecodeAsNil() { if x.PodSelector != nil { @@ -20585,9 +20633,9 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) x.NamespaceSelector.CodecDecodeSelf(d) } default: - z.DecStructFieldNotFound(-1, yys1716) - } // end switch yys1716 - } // end for yyj1716 + z.DecStructFieldNotFound(-1, yys1721) + } // end switch yys1721 + } // end for yyj1721 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20595,16 +20643,16 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1719 int - var yyb1719 bool - var yyhl1719 bool = l >= 0 - yyj1719++ - if yyhl1719 { - yyb1719 = yyj1719 > l + var yyj1724 int + var yyb1724 bool + var yyhl1724 bool = l >= 0 + yyj1724++ + if yyhl1724 { + yyb1724 = yyj1724 > l } else { - yyb1719 = r.CheckBreak() + yyb1724 = r.CheckBreak() } - if yyb1719 { + if yyb1724 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20619,13 +20667,13 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } x.PodSelector.CodecDecodeSelf(d) } - yyj1719++ - if yyhl1719 { - yyb1719 = yyj1719 > l + yyj1724++ + if yyhl1724 { + yyb1724 = yyj1724 > l } else { - yyb1719 = r.CheckBreak() + yyb1724 = r.CheckBreak() } - if yyb1719 { + if yyb1724 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20641,17 +20689,17 @@ func (x *NetworkPolicyPeer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder x.NamespaceSelector.CodecDecodeSelf(d) } for { - yyj1719++ - if yyhl1719 { - yyb1719 = yyj1719 > l + yyj1724++ + if yyhl1724 { + yyb1724 = yyj1724 > l } else { - yyb1719 = r.CheckBreak() + yyb1724 = r.CheckBreak() } - if yyb1719 { + if yyb1724 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1719-1, "") + z.DecStructFieldNotFound(yyj1724-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -20663,37 +20711,37 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1722 := z.EncBinary() - _ = yym1722 + yym1727 := z.EncBinary() + _ = yym1727 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1723 := !z.EncBinary() - yy2arr1723 := z.EncBasicHandle().StructToArray - var yyq1723 [4]bool - _, _, _ = yysep1723, yyq1723, yy2arr1723 - const yyr1723 bool = false - yyq1723[0] = x.Kind != "" - yyq1723[1] = x.APIVersion != "" - yyq1723[2] = true - var yynn1723 int - if yyr1723 || yy2arr1723 { + yysep1728 := !z.EncBinary() + yy2arr1728 := z.EncBasicHandle().StructToArray + var yyq1728 [4]bool + _, _, _ = yysep1728, yyq1728, yy2arr1728 + const yyr1728 bool = false + yyq1728[0] = x.Kind != "" + yyq1728[1] = x.APIVersion != "" + yyq1728[2] = true + var yynn1728 int + if yyr1728 || yy2arr1728 { r.EncodeArrayStart(4) } else { - yynn1723 = 1 - for _, b := range yyq1723 { + yynn1728 = 1 + for _, b := range yyq1728 { if b { - yynn1723++ + yynn1728++ } } - r.EncodeMapStart(yynn1723) - yynn1723 = 0 + r.EncodeMapStart(yynn1728) + yynn1728 = 0 } - if yyr1723 || yy2arr1723 { + if yyr1728 || yy2arr1728 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1723[0] { - yym1725 := z.EncBinary() - _ = yym1725 + if yyq1728[0] { + yym1730 := z.EncBinary() + _ = yym1730 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -20702,23 +20750,23 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1723[0] { + if yyq1728[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1726 := z.EncBinary() - _ = yym1726 + yym1731 := z.EncBinary() + _ = yym1731 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1723 || yy2arr1723 { + if yyr1728 || yy2arr1728 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1723[1] { - yym1728 := z.EncBinary() - _ = yym1728 + if yyq1728[1] { + yym1733 := z.EncBinary() + _ = yym1733 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -20727,54 +20775,54 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1723[1] { + if yyq1728[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1729 := z.EncBinary() - _ = yym1729 + yym1734 := z.EncBinary() + _ = yym1734 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1723 || yy2arr1723 { + if yyr1728 || yy2arr1728 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1723[2] { - yy1731 := &x.ListMeta - yym1732 := z.EncBinary() - _ = yym1732 + if yyq1728[2] { + yy1736 := &x.ListMeta + yym1737 := z.EncBinary() + _ = yym1737 if false { - } else if z.HasExtensions() && z.EncExt(yy1731) { + } else if z.HasExtensions() && z.EncExt(yy1736) { } else { - z.EncFallback(yy1731) + z.EncFallback(yy1736) } } else { r.EncodeNil() } } else { - if yyq1723[2] { + if yyq1728[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1733 := &x.ListMeta - yym1734 := z.EncBinary() - _ = yym1734 + yy1738 := &x.ListMeta + yym1739 := z.EncBinary() + _ = yym1739 if false { - } else if z.HasExtensions() && z.EncExt(yy1733) { + } else if z.HasExtensions() && z.EncExt(yy1738) { } else { - z.EncFallback(yy1733) + z.EncFallback(yy1738) } } } - if yyr1723 || yy2arr1723 { + if yyr1728 || yy2arr1728 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1736 := z.EncBinary() - _ = yym1736 + yym1741 := z.EncBinary() + _ = yym1741 if false { } else { h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) @@ -20787,15 +20835,15 @@ func (x *NetworkPolicyList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1737 := z.EncBinary() - _ = yym1737 + yym1742 := z.EncBinary() + _ = yym1742 if false { } else { h.encSliceNetworkPolicy(([]NetworkPolicy)(x.Items), e) } } } - if yyr1723 || yy2arr1723 { + if yyr1728 || yy2arr1728 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -20808,25 +20856,25 @@ func (x *NetworkPolicyList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1738 := z.DecBinary() - _ = yym1738 + yym1743 := z.DecBinary() + _ = yym1743 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1739 := r.ContainerType() - if yyct1739 == codecSelferValueTypeMap1234 { - yyl1739 := r.ReadMapStart() - if yyl1739 == 0 { + yyct1744 := r.ContainerType() + if yyct1744 == codecSelferValueTypeMap1234 { + yyl1744 := r.ReadMapStart() + if yyl1744 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1739, d) + x.codecDecodeSelfFromMap(yyl1744, d) } - } else if yyct1739 == codecSelferValueTypeArray1234 { - yyl1739 := r.ReadArrayStart() - if yyl1739 == 0 { + } else if yyct1744 == codecSelferValueTypeArray1234 { + yyl1744 := r.ReadArrayStart() + if yyl1744 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1739, d) + x.codecDecodeSelfFromArray(yyl1744, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -20838,12 +20886,12 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1740Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1740Slc - var yyhl1740 bool = l >= 0 - for yyj1740 := 0; ; yyj1740++ { - if yyhl1740 { - if yyj1740 >= l { + var yys1745Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1745Slc + var yyhl1745 bool = l >= 0 + for yyj1745 := 0; ; yyj1745++ { + if yyhl1745 { + if yyj1745 >= l { break } } else { @@ -20852,10 +20900,10 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1740Slc = r.DecodeBytes(yys1740Slc, true, true) - yys1740 := string(yys1740Slc) + yys1745Slc = r.DecodeBytes(yys1745Slc, true, true) + yys1745 := string(yys1745Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1740 { + switch yys1745 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -20872,31 +20920,31 @@ func (x *NetworkPolicyList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1743 := &x.ListMeta - yym1744 := z.DecBinary() - _ = yym1744 + yyv1748 := &x.ListMeta + yym1749 := z.DecBinary() + _ = yym1749 if false { - } else if z.HasExtensions() && z.DecExt(yyv1743) { + } else if z.HasExtensions() && z.DecExt(yyv1748) { } else { - z.DecFallback(yyv1743, false) + z.DecFallback(yyv1748, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1745 := &x.Items - yym1746 := z.DecBinary() - _ = yym1746 + yyv1750 := &x.Items + yym1751 := z.DecBinary() + _ = yym1751 if false { } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1745), d) + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1750), d) } } default: - z.DecStructFieldNotFound(-1, yys1740) - } // end switch yys1740 - } // end for yyj1740 + z.DecStructFieldNotFound(-1, yys1745) + } // end switch yys1745 + } // end for yyj1745 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -20904,16 +20952,16 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1747 int - var yyb1747 bool - var yyhl1747 bool = l >= 0 - yyj1747++ - if yyhl1747 { - yyb1747 = yyj1747 > l + var yyj1752 int + var yyb1752 bool + var yyhl1752 bool = l >= 0 + yyj1752++ + if yyhl1752 { + yyb1752 = yyj1752 > l } else { - yyb1747 = r.CheckBreak() + yyb1752 = r.CheckBreak() } - if yyb1747 { + if yyb1752 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20923,13 +20971,13 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.Kind = string(r.DecodeString()) } - yyj1747++ - if yyhl1747 { - yyb1747 = yyj1747 > l + yyj1752++ + if yyhl1752 { + yyb1752 = yyj1752 > l } else { - yyb1747 = r.CheckBreak() + yyb1752 = r.CheckBreak() } - if yyb1747 { + if yyb1752 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20939,13 +20987,13 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder } else { x.APIVersion = string(r.DecodeString()) } - yyj1747++ - if yyhl1747 { - yyb1747 = yyj1747 > l + yyj1752++ + if yyhl1752 { + yyb1752 = yyj1752 > l } else { - yyb1747 = r.CheckBreak() + yyb1752 = r.CheckBreak() } - if yyb1747 { + if yyb1752 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20953,22 +21001,22 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1750 := &x.ListMeta - yym1751 := z.DecBinary() - _ = yym1751 + yyv1755 := &x.ListMeta + yym1756 := z.DecBinary() + _ = yym1756 if false { - } else if z.HasExtensions() && z.DecExt(yyv1750) { + } else if z.HasExtensions() && z.DecExt(yyv1755) { } else { - z.DecFallback(yyv1750, false) + z.DecFallback(yyv1755, false) } } - yyj1747++ - if yyhl1747 { - yyb1747 = yyj1747 > l + yyj1752++ + if yyhl1752 { + yyb1752 = yyj1752 > l } else { - yyb1747 = r.CheckBreak() + yyb1752 = r.CheckBreak() } - if yyb1747 { + if yyb1752 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -20976,26 +21024,26 @@ func (x *NetworkPolicyList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1752 := &x.Items - yym1753 := z.DecBinary() - _ = yym1753 + yyv1757 := &x.Items + yym1758 := z.DecBinary() + _ = yym1758 if false { } else { - h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1752), d) + h.decSliceNetworkPolicy((*[]NetworkPolicy)(yyv1757), d) } } for { - yyj1747++ - if yyhl1747 { - yyb1747 = yyj1747 > l + yyj1752++ + if yyhl1752 { + yyb1752 = yyj1752 > l } else { - yyb1747 = r.CheckBreak() + yyb1752 = r.CheckBreak() } - if yyb1747 { + if yyb1752 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1747-1, "") + z.DecStructFieldNotFound(yyj1752-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21007,38 +21055,38 @@ func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1754 := z.EncBinary() - _ = yym1754 + yym1759 := z.EncBinary() + _ = yym1759 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1755 := !z.EncBinary() - yy2arr1755 := z.EncBasicHandle().StructToArray - var yyq1755 [5]bool - _, _, _ = yysep1755, yyq1755, yy2arr1755 - const yyr1755 bool = false - yyq1755[0] = x.Kind != "" - yyq1755[1] = x.APIVersion != "" - yyq1755[2] = true - yyq1755[4] = len(x.Parameters) != 0 - var yynn1755 int - if yyr1755 || yy2arr1755 { + yysep1760 := !z.EncBinary() + yy2arr1760 := z.EncBasicHandle().StructToArray + var yyq1760 [5]bool + _, _, _ = yysep1760, yyq1760, yy2arr1760 + const yyr1760 bool = false + yyq1760[0] = x.Kind != "" + yyq1760[1] = x.APIVersion != "" + yyq1760[2] = true + yyq1760[4] = len(x.Parameters) != 0 + var yynn1760 int + if yyr1760 || yy2arr1760 { r.EncodeArrayStart(5) } else { - yynn1755 = 1 - for _, b := range yyq1755 { + yynn1760 = 1 + for _, b := range yyq1760 { if b { - yynn1755++ + yynn1760++ } } - r.EncodeMapStart(yynn1755) - yynn1755 = 0 + r.EncodeMapStart(yynn1760) + yynn1760 = 0 } - if yyr1755 || yy2arr1755 { + if yyr1760 || yy2arr1760 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1755[0] { - yym1757 := z.EncBinary() - _ = yym1757 + if yyq1760[0] { + yym1762 := z.EncBinary() + _ = yym1762 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -21047,23 +21095,23 @@ func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1755[0] { + if yyq1760[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1758 := z.EncBinary() - _ = yym1758 + yym1763 := z.EncBinary() + _ = yym1763 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1755 || yy2arr1755 { + if yyr1760 || yy2arr1760 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1755[1] { - yym1760 := z.EncBinary() - _ = yym1760 + if yyq1760[1] { + yym1765 := z.EncBinary() + _ = yym1765 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -21072,39 +21120,39 @@ func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1755[1] { + if yyq1760[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1761 := z.EncBinary() - _ = yym1761 + yym1766 := z.EncBinary() + _ = yym1766 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1755 || yy2arr1755 { + if yyr1760 || yy2arr1760 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1755[2] { - yy1763 := &x.ObjectMeta - yy1763.CodecEncodeSelf(e) + if yyq1760[2] { + yy1768 := &x.ObjectMeta + yy1768.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { - if yyq1755[2] { + if yyq1760[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1764 := &x.ObjectMeta - yy1764.CodecEncodeSelf(e) + yy1769 := &x.ObjectMeta + yy1769.CodecEncodeSelf(e) } } - if yyr1755 || yy2arr1755 { + if yyr1760 || yy2arr1760 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1766 := z.EncBinary() - _ = yym1766 + yym1771 := z.EncBinary() + _ = yym1771 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Provisioner)) @@ -21113,21 +21161,21 @@ func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("provisioner")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1767 := z.EncBinary() - _ = yym1767 + yym1772 := z.EncBinary() + _ = yym1772 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Provisioner)) } } - if yyr1755 || yy2arr1755 { + if yyr1760 || yy2arr1760 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1755[4] { + if yyq1760[4] { if x.Parameters == nil { r.EncodeNil() } else { - yym1769 := z.EncBinary() - _ = yym1769 + yym1774 := z.EncBinary() + _ = yym1774 if false { } else { z.F.EncMapStringStringV(x.Parameters, false, e) @@ -21137,15 +21185,15 @@ func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeNil() } } else { - if yyq1755[4] { + if yyq1760[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("parameters")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Parameters == nil { r.EncodeNil() } else { - yym1770 := z.EncBinary() - _ = yym1770 + yym1775 := z.EncBinary() + _ = yym1775 if false { } else { z.F.EncMapStringStringV(x.Parameters, false, e) @@ -21153,7 +21201,7 @@ func (x *StorageClass) CodecEncodeSelf(e *codec1978.Encoder) { } } } - if yyr1755 || yy2arr1755 { + if yyr1760 || yy2arr1760 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -21166,25 +21214,25 @@ func (x *StorageClass) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1771 := z.DecBinary() - _ = yym1771 + yym1776 := z.DecBinary() + _ = yym1776 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1772 := r.ContainerType() - if yyct1772 == codecSelferValueTypeMap1234 { - yyl1772 := r.ReadMapStart() - if yyl1772 == 0 { + yyct1777 := r.ContainerType() + if yyct1777 == codecSelferValueTypeMap1234 { + yyl1777 := r.ReadMapStart() + if yyl1777 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1772, d) + x.codecDecodeSelfFromMap(yyl1777, d) } - } else if yyct1772 == codecSelferValueTypeArray1234 { - yyl1772 := r.ReadArrayStart() - if yyl1772 == 0 { + } else if yyct1777 == codecSelferValueTypeArray1234 { + yyl1777 := r.ReadArrayStart() + if yyl1777 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1772, d) + x.codecDecodeSelfFromArray(yyl1777, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -21196,12 +21244,12 @@ func (x *StorageClass) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1773Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1773Slc - var yyhl1773 bool = l >= 0 - for yyj1773 := 0; ; yyj1773++ { - if yyhl1773 { - if yyj1773 >= l { + var yys1778Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1778Slc + var yyhl1778 bool = l >= 0 + for yyj1778 := 0; ; yyj1778++ { + if yyhl1778 { + if yyj1778 >= l { break } } else { @@ -21210,10 +21258,10 @@ func (x *StorageClass) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1773Slc = r.DecodeBytes(yys1773Slc, true, true) - yys1773 := string(yys1773Slc) + yys1778Slc = r.DecodeBytes(yys1778Slc, true, true) + yys1778 := string(yys1778Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1773 { + switch yys1778 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -21230,8 +21278,8 @@ func (x *StorageClass) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1776 := &x.ObjectMeta - yyv1776.CodecDecodeSelf(d) + yyv1781 := &x.ObjectMeta + yyv1781.CodecDecodeSelf(d) } case "provisioner": if r.TryDecodeAsNil() { @@ -21243,18 +21291,18 @@ func (x *StorageClass) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Parameters = nil } else { - yyv1778 := &x.Parameters - yym1779 := z.DecBinary() - _ = yym1779 + yyv1783 := &x.Parameters + yym1784 := z.DecBinary() + _ = yym1784 if false { } else { - z.F.DecMapStringStringX(yyv1778, false, d) + z.F.DecMapStringStringX(yyv1783, false, d) } } default: - z.DecStructFieldNotFound(-1, yys1773) - } // end switch yys1773 - } // end for yyj1773 + z.DecStructFieldNotFound(-1, yys1778) + } // end switch yys1778 + } // end for yyj1778 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -21262,16 +21310,16 @@ func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1780 int - var yyb1780 bool - var yyhl1780 bool = l >= 0 - yyj1780++ - if yyhl1780 { - yyb1780 = yyj1780 > l + var yyj1785 int + var yyb1785 bool + var yyhl1785 bool = l >= 0 + yyj1785++ + if yyhl1785 { + yyb1785 = yyj1785 > l } else { - yyb1780 = r.CheckBreak() + yyb1785 = r.CheckBreak() } - if yyb1780 { + if yyb1785 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21281,13 +21329,13 @@ func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Kind = string(r.DecodeString()) } - yyj1780++ - if yyhl1780 { - yyb1780 = yyj1780 > l + yyj1785++ + if yyhl1785 { + yyb1785 = yyj1785 > l } else { - yyb1780 = r.CheckBreak() + yyb1785 = r.CheckBreak() } - if yyb1780 { + if yyb1785 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21297,13 +21345,13 @@ func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.APIVersion = string(r.DecodeString()) } - yyj1780++ - if yyhl1780 { - yyb1780 = yyj1780 > l + yyj1785++ + if yyhl1785 { + yyb1785 = yyj1785 > l } else { - yyb1780 = r.CheckBreak() + yyb1785 = r.CheckBreak() } - if yyb1780 { + if yyb1785 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21311,16 +21359,16 @@ func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ObjectMeta = pkg2_v1.ObjectMeta{} } else { - yyv1783 := &x.ObjectMeta - yyv1783.CodecDecodeSelf(d) + yyv1788 := &x.ObjectMeta + yyv1788.CodecDecodeSelf(d) } - yyj1780++ - if yyhl1780 { - yyb1780 = yyj1780 > l + yyj1785++ + if yyhl1785 { + yyb1785 = yyj1785 > l } else { - yyb1780 = r.CheckBreak() + yyb1785 = r.CheckBreak() } - if yyb1780 { + if yyb1785 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21330,13 +21378,13 @@ func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { } else { x.Provisioner = string(r.DecodeString()) } - yyj1780++ - if yyhl1780 { - yyb1780 = yyj1780 > l + yyj1785++ + if yyhl1785 { + yyb1785 = yyj1785 > l } else { - yyb1780 = r.CheckBreak() + yyb1785 = r.CheckBreak() } - if yyb1780 { + if yyb1785 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21344,26 +21392,26 @@ func (x *StorageClass) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.Parameters = nil } else { - yyv1785 := &x.Parameters - yym1786 := z.DecBinary() - _ = yym1786 + yyv1790 := &x.Parameters + yym1791 := z.DecBinary() + _ = yym1791 if false { } else { - z.F.DecMapStringStringX(yyv1785, false, d) + z.F.DecMapStringStringX(yyv1790, false, d) } } for { - yyj1780++ - if yyhl1780 { - yyb1780 = yyj1780 > l + yyj1785++ + if yyhl1785 { + yyb1785 = yyj1785 > l } else { - yyb1780 = r.CheckBreak() + yyb1785 = r.CheckBreak() } - if yyb1780 { + if yyb1785 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1780-1, "") + z.DecStructFieldNotFound(yyj1785-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21375,37 +21423,37 @@ func (x *StorageClassList) CodecEncodeSelf(e *codec1978.Encoder) { if x == nil { r.EncodeNil() } else { - yym1787 := z.EncBinary() - _ = yym1787 + yym1792 := z.EncBinary() + _ = yym1792 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { - yysep1788 := !z.EncBinary() - yy2arr1788 := z.EncBasicHandle().StructToArray - var yyq1788 [4]bool - _, _, _ = yysep1788, yyq1788, yy2arr1788 - const yyr1788 bool = false - yyq1788[0] = x.Kind != "" - yyq1788[1] = x.APIVersion != "" - yyq1788[2] = true - var yynn1788 int - if yyr1788 || yy2arr1788 { + yysep1793 := !z.EncBinary() + yy2arr1793 := z.EncBasicHandle().StructToArray + var yyq1793 [4]bool + _, _, _ = yysep1793, yyq1793, yy2arr1793 + const yyr1793 bool = false + yyq1793[0] = x.Kind != "" + yyq1793[1] = x.APIVersion != "" + yyq1793[2] = true + var yynn1793 int + if yyr1793 || yy2arr1793 { r.EncodeArrayStart(4) } else { - yynn1788 = 1 - for _, b := range yyq1788 { + yynn1793 = 1 + for _, b := range yyq1793 { if b { - yynn1788++ + yynn1793++ } } - r.EncodeMapStart(yynn1788) - yynn1788 = 0 + r.EncodeMapStart(yynn1793) + yynn1793 = 0 } - if yyr1788 || yy2arr1788 { + if yyr1793 || yy2arr1793 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1788[0] { - yym1790 := z.EncBinary() - _ = yym1790 + if yyq1793[0] { + yym1795 := z.EncBinary() + _ = yym1795 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) @@ -21414,23 +21462,23 @@ func (x *StorageClassList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1788[0] { + if yyq1793[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1791 := z.EncBinary() - _ = yym1791 + yym1796 := z.EncBinary() + _ = yym1796 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } - if yyr1788 || yy2arr1788 { + if yyr1793 || yy2arr1793 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1788[1] { - yym1793 := z.EncBinary() - _ = yym1793 + if yyq1793[1] { + yym1798 := z.EncBinary() + _ = yym1798 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) @@ -21439,54 +21487,54 @@ func (x *StorageClassList) CodecEncodeSelf(e *codec1978.Encoder) { r.EncodeString(codecSelferC_UTF81234, "") } } else { - if yyq1788[1] { + if yyq1793[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yym1794 := z.EncBinary() - _ = yym1794 + yym1799 := z.EncBinary() + _ = yym1799 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } - if yyr1788 || yy2arr1788 { + if yyr1793 || yy2arr1793 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - if yyq1788[2] { - yy1796 := &x.ListMeta - yym1797 := z.EncBinary() - _ = yym1797 + if yyq1793[2] { + yy1801 := &x.ListMeta + yym1802 := z.EncBinary() + _ = yym1802 if false { - } else if z.HasExtensions() && z.EncExt(yy1796) { + } else if z.HasExtensions() && z.EncExt(yy1801) { } else { - z.EncFallback(yy1796) + z.EncFallback(yy1801) } } else { r.EncodeNil() } } else { - if yyq1788[2] { + if yyq1793[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) - yy1798 := &x.ListMeta - yym1799 := z.EncBinary() - _ = yym1799 + yy1803 := &x.ListMeta + yym1804 := z.EncBinary() + _ = yym1804 if false { - } else if z.HasExtensions() && z.EncExt(yy1798) { + } else if z.HasExtensions() && z.EncExt(yy1803) { } else { - z.EncFallback(yy1798) + z.EncFallback(yy1803) } } } - if yyr1788 || yy2arr1788 { + if yyr1793 || yy2arr1793 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { - yym1801 := z.EncBinary() - _ = yym1801 + yym1806 := z.EncBinary() + _ = yym1806 if false { } else { h.encSliceStorageClass(([]StorageClass)(x.Items), e) @@ -21499,15 +21547,15 @@ func (x *StorageClassList) CodecEncodeSelf(e *codec1978.Encoder) { if x.Items == nil { r.EncodeNil() } else { - yym1802 := z.EncBinary() - _ = yym1802 + yym1807 := z.EncBinary() + _ = yym1807 if false { } else { h.encSliceStorageClass(([]StorageClass)(x.Items), e) } } } - if yyr1788 || yy2arr1788 { + if yyr1793 || yy2arr1793 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) @@ -21520,25 +21568,25 @@ func (x *StorageClassList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yym1803 := z.DecBinary() - _ = yym1803 + yym1808 := z.DecBinary() + _ = yym1808 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { - yyct1804 := r.ContainerType() - if yyct1804 == codecSelferValueTypeMap1234 { - yyl1804 := r.ReadMapStart() - if yyl1804 == 0 { + yyct1809 := r.ContainerType() + if yyct1809 == codecSelferValueTypeMap1234 { + yyl1809 := r.ReadMapStart() + if yyl1809 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { - x.codecDecodeSelfFromMap(yyl1804, d) + x.codecDecodeSelfFromMap(yyl1809, d) } - } else if yyct1804 == codecSelferValueTypeArray1234 { - yyl1804 := r.ReadArrayStart() - if yyl1804 == 0 { + } else if yyct1809 == codecSelferValueTypeArray1234 { + yyl1809 := r.ReadArrayStart() + if yyl1809 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { - x.codecDecodeSelfFromArray(yyl1804, d) + x.codecDecodeSelfFromArray(yyl1809, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) @@ -21550,12 +21598,12 @@ func (x *StorageClassList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yys1805Slc = z.DecScratchBuffer() // default slice to decode into - _ = yys1805Slc - var yyhl1805 bool = l >= 0 - for yyj1805 := 0; ; yyj1805++ { - if yyhl1805 { - if yyj1805 >= l { + var yys1810Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys1810Slc + var yyhl1810 bool = l >= 0 + for yyj1810 := 0; ; yyj1810++ { + if yyhl1810 { + if yyj1810 >= l { break } } else { @@ -21564,10 +21612,10 @@ func (x *StorageClassList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { } } z.DecSendContainerState(codecSelfer_containerMapKey1234) - yys1805Slc = r.DecodeBytes(yys1805Slc, true, true) - yys1805 := string(yys1805Slc) + yys1810Slc = r.DecodeBytes(yys1810Slc, true, true) + yys1810 := string(yys1810Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) - switch yys1805 { + switch yys1810 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" @@ -21584,31 +21632,31 @@ func (x *StorageClassList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1808 := &x.ListMeta - yym1809 := z.DecBinary() - _ = yym1809 + yyv1813 := &x.ListMeta + yym1814 := z.DecBinary() + _ = yym1814 if false { - } else if z.HasExtensions() && z.DecExt(yyv1808) { + } else if z.HasExtensions() && z.DecExt(yyv1813) { } else { - z.DecFallback(yyv1808, false) + z.DecFallback(yyv1813, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1810 := &x.Items - yym1811 := z.DecBinary() - _ = yym1811 + yyv1815 := &x.Items + yym1816 := z.DecBinary() + _ = yym1816 if false { } else { - h.decSliceStorageClass((*[]StorageClass)(yyv1810), d) + h.decSliceStorageClass((*[]StorageClass)(yyv1815), d) } } default: - z.DecStructFieldNotFound(-1, yys1805) - } // end switch yys1805 - } // end for yyj1805 + z.DecStructFieldNotFound(-1, yys1810) + } // end switch yys1810 + } // end for yyj1810 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } @@ -21616,16 +21664,16 @@ func (x *StorageClassList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - var yyj1812 int - var yyb1812 bool - var yyhl1812 bool = l >= 0 - yyj1812++ - if yyhl1812 { - yyb1812 = yyj1812 > l + var yyj1817 int + var yyb1817 bool + var yyhl1817 bool = l >= 0 + yyj1817++ + if yyhl1817 { + yyb1817 = yyj1817 > l } else { - yyb1812 = r.CheckBreak() + yyb1817 = r.CheckBreak() } - if yyb1812 { + if yyb1817 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21635,13 +21683,13 @@ func (x *StorageClassList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.Kind = string(r.DecodeString()) } - yyj1812++ - if yyhl1812 { - yyb1812 = yyj1812 > l + yyj1817++ + if yyhl1817 { + yyb1817 = yyj1817 > l } else { - yyb1812 = r.CheckBreak() + yyb1817 = r.CheckBreak() } - if yyb1812 { + if yyb1817 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21651,13 +21699,13 @@ func (x *StorageClassList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) } else { x.APIVersion = string(r.DecodeString()) } - yyj1812++ - if yyhl1812 { - yyb1812 = yyj1812 > l + yyj1817++ + if yyhl1817 { + yyb1817 = yyj1817 > l } else { - yyb1812 = r.CheckBreak() + yyb1817 = r.CheckBreak() } - if yyb1812 { + if yyb1817 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21665,22 +21713,22 @@ func (x *StorageClassList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.ListMeta = pkg1_unversioned.ListMeta{} } else { - yyv1815 := &x.ListMeta - yym1816 := z.DecBinary() - _ = yym1816 + yyv1820 := &x.ListMeta + yym1821 := z.DecBinary() + _ = yym1821 if false { - } else if z.HasExtensions() && z.DecExt(yyv1815) { + } else if z.HasExtensions() && z.DecExt(yyv1820) { } else { - z.DecFallback(yyv1815, false) + z.DecFallback(yyv1820, false) } } - yyj1812++ - if yyhl1812 { - yyb1812 = yyj1812 > l + yyj1817++ + if yyhl1817 { + yyb1817 = yyj1817 > l } else { - yyb1812 = r.CheckBreak() + yyb1817 = r.CheckBreak() } - if yyb1812 { + if yyb1817 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } @@ -21688,26 +21736,26 @@ func (x *StorageClassList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) if r.TryDecodeAsNil() { x.Items = nil } else { - yyv1817 := &x.Items - yym1818 := z.DecBinary() - _ = yym1818 + yyv1822 := &x.Items + yym1823 := z.DecBinary() + _ = yym1823 if false { } else { - h.decSliceStorageClass((*[]StorageClass)(yyv1817), d) + h.decSliceStorageClass((*[]StorageClass)(yyv1822), d) } } for { - yyj1812++ - if yyhl1812 { - yyb1812 = yyj1812 > l + yyj1817++ + if yyhl1817 { + yyb1817 = yyj1817 > l } else { - yyb1812 = r.CheckBreak() + yyb1817 = r.CheckBreak() } - if yyb1812 { + if yyb1817 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) - z.DecStructFieldNotFound(yyj1812-1, "") + z.DecStructFieldNotFound(yyj1817-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21717,10 +21765,10 @@ func (x codecSelfer1234) encSliceCustomMetricTarget(v []CustomMetricTarget, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1819 := range v { + for _, yyv1824 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1820 := &yyv1819 - yy1820.CodecEncodeSelf(e) + yy1825 := &yyv1824 + yy1825.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21730,83 +21778,83 @@ func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1821 := *v - yyh1821, yyl1821 := z.DecSliceHelperStart() - var yyc1821 bool - if yyl1821 == 0 { - if yyv1821 == nil { - yyv1821 = []CustomMetricTarget{} - yyc1821 = true - } else if len(yyv1821) != 0 { - yyv1821 = yyv1821[:0] - yyc1821 = true + yyv1826 := *v + yyh1826, yyl1826 := z.DecSliceHelperStart() + var yyc1826 bool + if yyl1826 == 0 { + if yyv1826 == nil { + yyv1826 = []CustomMetricTarget{} + yyc1826 = true + } else if len(yyv1826) != 0 { + yyv1826 = yyv1826[:0] + yyc1826 = true } - } else if yyl1821 > 0 { - var yyrr1821, yyrl1821 int - var yyrt1821 bool - if yyl1821 > cap(yyv1821) { + } else if yyl1826 > 0 { + var yyrr1826, yyrl1826 int + var yyrt1826 bool + if yyl1826 > cap(yyv1826) { - yyrg1821 := len(yyv1821) > 0 - yyv21821 := yyv1821 - yyrl1821, yyrt1821 = z.DecInferLen(yyl1821, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1821 { - if yyrl1821 <= cap(yyv1821) { - yyv1821 = yyv1821[:yyrl1821] + yyrg1826 := len(yyv1826) > 0 + yyv21826 := yyv1826 + yyrl1826, yyrt1826 = z.DecInferLen(yyl1826, z.DecBasicHandle().MaxInitLen, 72) + if yyrt1826 { + if yyrl1826 <= cap(yyv1826) { + yyv1826 = yyv1826[:yyrl1826] } else { - yyv1821 = make([]CustomMetricTarget, yyrl1821) + yyv1826 = make([]CustomMetricTarget, yyrl1826) } } else { - yyv1821 = make([]CustomMetricTarget, yyrl1821) + yyv1826 = make([]CustomMetricTarget, yyrl1826) } - yyc1821 = true - yyrr1821 = len(yyv1821) - if yyrg1821 { - copy(yyv1821, yyv21821) + yyc1826 = true + yyrr1826 = len(yyv1826) + if yyrg1826 { + copy(yyv1826, yyv21826) } - } else if yyl1821 != len(yyv1821) { - yyv1821 = yyv1821[:yyl1821] - yyc1821 = true + } else if yyl1826 != len(yyv1826) { + yyv1826 = yyv1826[:yyl1826] + yyc1826 = true } - yyj1821 := 0 - for ; yyj1821 < yyrr1821; yyj1821++ { - yyh1821.ElemContainerState(yyj1821) + yyj1826 := 0 + for ; yyj1826 < yyrr1826; yyj1826++ { + yyh1826.ElemContainerState(yyj1826) if r.TryDecodeAsNil() { - yyv1821[yyj1821] = CustomMetricTarget{} + yyv1826[yyj1826] = CustomMetricTarget{} } else { - yyv1822 := &yyv1821[yyj1821] - yyv1822.CodecDecodeSelf(d) + yyv1827 := &yyv1826[yyj1826] + yyv1827.CodecDecodeSelf(d) } } - if yyrt1821 { - for ; yyj1821 < yyl1821; yyj1821++ { - yyv1821 = append(yyv1821, CustomMetricTarget{}) - yyh1821.ElemContainerState(yyj1821) + if yyrt1826 { + for ; yyj1826 < yyl1826; yyj1826++ { + yyv1826 = append(yyv1826, CustomMetricTarget{}) + yyh1826.ElemContainerState(yyj1826) if r.TryDecodeAsNil() { - yyv1821[yyj1821] = CustomMetricTarget{} + yyv1826[yyj1826] = CustomMetricTarget{} } else { - yyv1823 := &yyv1821[yyj1821] - yyv1823.CodecDecodeSelf(d) + yyv1828 := &yyv1826[yyj1826] + yyv1828.CodecDecodeSelf(d) } } } } else { - yyj1821 := 0 - for ; !r.CheckBreak(); yyj1821++ { + yyj1826 := 0 + for ; !r.CheckBreak(); yyj1826++ { - if yyj1821 >= len(yyv1821) { - yyv1821 = append(yyv1821, CustomMetricTarget{}) // var yyz1821 CustomMetricTarget - yyc1821 = true + if yyj1826 >= len(yyv1826) { + yyv1826 = append(yyv1826, CustomMetricTarget{}) // var yyz1826 CustomMetricTarget + yyc1826 = true } - yyh1821.ElemContainerState(yyj1821) - if yyj1821 < len(yyv1821) { + yyh1826.ElemContainerState(yyj1826) + if yyj1826 < len(yyv1826) { if r.TryDecodeAsNil() { - yyv1821[yyj1821] = CustomMetricTarget{} + yyv1826[yyj1826] = CustomMetricTarget{} } else { - yyv1824 := &yyv1821[yyj1821] - yyv1824.CodecDecodeSelf(d) + yyv1829 := &yyv1826[yyj1826] + yyv1829.CodecDecodeSelf(d) } } else { @@ -21814,17 +21862,17 @@ func (x codecSelfer1234) decSliceCustomMetricTarget(v *[]CustomMetricTarget, d * } } - if yyj1821 < len(yyv1821) { - yyv1821 = yyv1821[:yyj1821] - yyc1821 = true - } else if yyj1821 == 0 && yyv1821 == nil { - yyv1821 = []CustomMetricTarget{} - yyc1821 = true + if yyj1826 < len(yyv1826) { + yyv1826 = yyv1826[:yyj1826] + yyc1826 = true + } else if yyj1826 == 0 && yyv1826 == nil { + yyv1826 = []CustomMetricTarget{} + yyc1826 = true } } - yyh1821.End() - if yyc1821 { - *v = yyv1821 + yyh1826.End() + if yyc1826 { + *v = yyv1826 } } @@ -21833,10 +21881,10 @@ func (x codecSelfer1234) encSliceCustomMetricCurrentStatus(v []CustomMetricCurre z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1825 := range v { + for _, yyv1830 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1826 := &yyv1825 - yy1826.CodecEncodeSelf(e) + yy1831 := &yyv1830 + yy1831.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21846,83 +21894,83 @@ func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurr z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1827 := *v - yyh1827, yyl1827 := z.DecSliceHelperStart() - var yyc1827 bool - if yyl1827 == 0 { - if yyv1827 == nil { - yyv1827 = []CustomMetricCurrentStatus{} - yyc1827 = true - } else if len(yyv1827) != 0 { - yyv1827 = yyv1827[:0] - yyc1827 = true + yyv1832 := *v + yyh1832, yyl1832 := z.DecSliceHelperStart() + var yyc1832 bool + if yyl1832 == 0 { + if yyv1832 == nil { + yyv1832 = []CustomMetricCurrentStatus{} + yyc1832 = true + } else if len(yyv1832) != 0 { + yyv1832 = yyv1832[:0] + yyc1832 = true } - } else if yyl1827 > 0 { - var yyrr1827, yyrl1827 int - var yyrt1827 bool - if yyl1827 > cap(yyv1827) { + } else if yyl1832 > 0 { + var yyrr1832, yyrl1832 int + var yyrt1832 bool + if yyl1832 > cap(yyv1832) { - yyrg1827 := len(yyv1827) > 0 - yyv21827 := yyv1827 - yyrl1827, yyrt1827 = z.DecInferLen(yyl1827, z.DecBasicHandle().MaxInitLen, 72) - if yyrt1827 { - if yyrl1827 <= cap(yyv1827) { - yyv1827 = yyv1827[:yyrl1827] + yyrg1832 := len(yyv1832) > 0 + yyv21832 := yyv1832 + yyrl1832, yyrt1832 = z.DecInferLen(yyl1832, z.DecBasicHandle().MaxInitLen, 72) + if yyrt1832 { + if yyrl1832 <= cap(yyv1832) { + yyv1832 = yyv1832[:yyrl1832] } else { - yyv1827 = make([]CustomMetricCurrentStatus, yyrl1827) + yyv1832 = make([]CustomMetricCurrentStatus, yyrl1832) } } else { - yyv1827 = make([]CustomMetricCurrentStatus, yyrl1827) + yyv1832 = make([]CustomMetricCurrentStatus, yyrl1832) } - yyc1827 = true - yyrr1827 = len(yyv1827) - if yyrg1827 { - copy(yyv1827, yyv21827) + yyc1832 = true + yyrr1832 = len(yyv1832) + if yyrg1832 { + copy(yyv1832, yyv21832) } - } else if yyl1827 != len(yyv1827) { - yyv1827 = yyv1827[:yyl1827] - yyc1827 = true + } else if yyl1832 != len(yyv1832) { + yyv1832 = yyv1832[:yyl1832] + yyc1832 = true } - yyj1827 := 0 - for ; yyj1827 < yyrr1827; yyj1827++ { - yyh1827.ElemContainerState(yyj1827) + yyj1832 := 0 + for ; yyj1832 < yyrr1832; yyj1832++ { + yyh1832.ElemContainerState(yyj1832) if r.TryDecodeAsNil() { - yyv1827[yyj1827] = CustomMetricCurrentStatus{} + yyv1832[yyj1832] = CustomMetricCurrentStatus{} } else { - yyv1828 := &yyv1827[yyj1827] - yyv1828.CodecDecodeSelf(d) + yyv1833 := &yyv1832[yyj1832] + yyv1833.CodecDecodeSelf(d) } } - if yyrt1827 { - for ; yyj1827 < yyl1827; yyj1827++ { - yyv1827 = append(yyv1827, CustomMetricCurrentStatus{}) - yyh1827.ElemContainerState(yyj1827) + if yyrt1832 { + for ; yyj1832 < yyl1832; yyj1832++ { + yyv1832 = append(yyv1832, CustomMetricCurrentStatus{}) + yyh1832.ElemContainerState(yyj1832) if r.TryDecodeAsNil() { - yyv1827[yyj1827] = CustomMetricCurrentStatus{} + yyv1832[yyj1832] = CustomMetricCurrentStatus{} } else { - yyv1829 := &yyv1827[yyj1827] - yyv1829.CodecDecodeSelf(d) + yyv1834 := &yyv1832[yyj1832] + yyv1834.CodecDecodeSelf(d) } } } } else { - yyj1827 := 0 - for ; !r.CheckBreak(); yyj1827++ { + yyj1832 := 0 + for ; !r.CheckBreak(); yyj1832++ { - if yyj1827 >= len(yyv1827) { - yyv1827 = append(yyv1827, CustomMetricCurrentStatus{}) // var yyz1827 CustomMetricCurrentStatus - yyc1827 = true + if yyj1832 >= len(yyv1832) { + yyv1832 = append(yyv1832, CustomMetricCurrentStatus{}) // var yyz1832 CustomMetricCurrentStatus + yyc1832 = true } - yyh1827.ElemContainerState(yyj1827) - if yyj1827 < len(yyv1827) { + yyh1832.ElemContainerState(yyj1832) + if yyj1832 < len(yyv1832) { if r.TryDecodeAsNil() { - yyv1827[yyj1827] = CustomMetricCurrentStatus{} + yyv1832[yyj1832] = CustomMetricCurrentStatus{} } else { - yyv1830 := &yyv1827[yyj1827] - yyv1830.CodecDecodeSelf(d) + yyv1835 := &yyv1832[yyj1832] + yyv1835.CodecDecodeSelf(d) } } else { @@ -21930,17 +21978,17 @@ func (x codecSelfer1234) decSliceCustomMetricCurrentStatus(v *[]CustomMetricCurr } } - if yyj1827 < len(yyv1827) { - yyv1827 = yyv1827[:yyj1827] - yyc1827 = true - } else if yyj1827 == 0 && yyv1827 == nil { - yyv1827 = []CustomMetricCurrentStatus{} - yyc1827 = true + if yyj1832 < len(yyv1832) { + yyv1832 = yyv1832[:yyj1832] + yyc1832 = true + } else if yyj1832 == 0 && yyv1832 == nil { + yyv1832 = []CustomMetricCurrentStatus{} + yyc1832 = true } } - yyh1827.End() - if yyc1827 { - *v = yyv1827 + yyh1832.End() + if yyc1832 { + *v = yyv1832 } } @@ -21949,10 +21997,10 @@ func (x codecSelfer1234) encSliceHorizontalPodAutoscaler(v []HorizontalPodAutosc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1831 := range v { + for _, yyv1836 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1832 := &yyv1831 - yy1832.CodecEncodeSelf(e) + yy1837 := &yyv1836 + yy1837.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -21962,83 +22010,83 @@ func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutos z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1833 := *v - yyh1833, yyl1833 := z.DecSliceHelperStart() - var yyc1833 bool - if yyl1833 == 0 { - if yyv1833 == nil { - yyv1833 = []HorizontalPodAutoscaler{} - yyc1833 = true - } else if len(yyv1833) != 0 { - yyv1833 = yyv1833[:0] - yyc1833 = true + yyv1838 := *v + yyh1838, yyl1838 := z.DecSliceHelperStart() + var yyc1838 bool + if yyl1838 == 0 { + if yyv1838 == nil { + yyv1838 = []HorizontalPodAutoscaler{} + yyc1838 = true + } else if len(yyv1838) != 0 { + yyv1838 = yyv1838[:0] + yyc1838 = true } - } else if yyl1833 > 0 { - var yyrr1833, yyrl1833 int - var yyrt1833 bool - if yyl1833 > cap(yyv1833) { + } else if yyl1838 > 0 { + var yyrr1838, yyrl1838 int + var yyrt1838 bool + if yyl1838 > cap(yyv1838) { - yyrg1833 := len(yyv1833) > 0 - yyv21833 := yyv1833 - yyrl1833, yyrt1833 = z.DecInferLen(yyl1833, z.DecBasicHandle().MaxInitLen, 360) - if yyrt1833 { - if yyrl1833 <= cap(yyv1833) { - yyv1833 = yyv1833[:yyrl1833] + yyrg1838 := len(yyv1838) > 0 + yyv21838 := yyv1838 + yyrl1838, yyrt1838 = z.DecInferLen(yyl1838, z.DecBasicHandle().MaxInitLen, 376) + if yyrt1838 { + if yyrl1838 <= cap(yyv1838) { + yyv1838 = yyv1838[:yyrl1838] } else { - yyv1833 = make([]HorizontalPodAutoscaler, yyrl1833) + yyv1838 = make([]HorizontalPodAutoscaler, yyrl1838) } } else { - yyv1833 = make([]HorizontalPodAutoscaler, yyrl1833) + yyv1838 = make([]HorizontalPodAutoscaler, yyrl1838) } - yyc1833 = true - yyrr1833 = len(yyv1833) - if yyrg1833 { - copy(yyv1833, yyv21833) + yyc1838 = true + yyrr1838 = len(yyv1838) + if yyrg1838 { + copy(yyv1838, yyv21838) } - } else if yyl1833 != len(yyv1833) { - yyv1833 = yyv1833[:yyl1833] - yyc1833 = true + } else if yyl1838 != len(yyv1838) { + yyv1838 = yyv1838[:yyl1838] + yyc1838 = true } - yyj1833 := 0 - for ; yyj1833 < yyrr1833; yyj1833++ { - yyh1833.ElemContainerState(yyj1833) + yyj1838 := 0 + for ; yyj1838 < yyrr1838; yyj1838++ { + yyh1838.ElemContainerState(yyj1838) if r.TryDecodeAsNil() { - yyv1833[yyj1833] = HorizontalPodAutoscaler{} + yyv1838[yyj1838] = HorizontalPodAutoscaler{} } else { - yyv1834 := &yyv1833[yyj1833] - yyv1834.CodecDecodeSelf(d) + yyv1839 := &yyv1838[yyj1838] + yyv1839.CodecDecodeSelf(d) } } - if yyrt1833 { - for ; yyj1833 < yyl1833; yyj1833++ { - yyv1833 = append(yyv1833, HorizontalPodAutoscaler{}) - yyh1833.ElemContainerState(yyj1833) + if yyrt1838 { + for ; yyj1838 < yyl1838; yyj1838++ { + yyv1838 = append(yyv1838, HorizontalPodAutoscaler{}) + yyh1838.ElemContainerState(yyj1838) if r.TryDecodeAsNil() { - yyv1833[yyj1833] = HorizontalPodAutoscaler{} + yyv1838[yyj1838] = HorizontalPodAutoscaler{} } else { - yyv1835 := &yyv1833[yyj1833] - yyv1835.CodecDecodeSelf(d) + yyv1840 := &yyv1838[yyj1838] + yyv1840.CodecDecodeSelf(d) } } } } else { - yyj1833 := 0 - for ; !r.CheckBreak(); yyj1833++ { + yyj1838 := 0 + for ; !r.CheckBreak(); yyj1838++ { - if yyj1833 >= len(yyv1833) { - yyv1833 = append(yyv1833, HorizontalPodAutoscaler{}) // var yyz1833 HorizontalPodAutoscaler - yyc1833 = true + if yyj1838 >= len(yyv1838) { + yyv1838 = append(yyv1838, HorizontalPodAutoscaler{}) // var yyz1838 HorizontalPodAutoscaler + yyc1838 = true } - yyh1833.ElemContainerState(yyj1833) - if yyj1833 < len(yyv1833) { + yyh1838.ElemContainerState(yyj1838) + if yyj1838 < len(yyv1838) { if r.TryDecodeAsNil() { - yyv1833[yyj1833] = HorizontalPodAutoscaler{} + yyv1838[yyj1838] = HorizontalPodAutoscaler{} } else { - yyv1836 := &yyv1833[yyj1833] - yyv1836.CodecDecodeSelf(d) + yyv1841 := &yyv1838[yyj1838] + yyv1841.CodecDecodeSelf(d) } } else { @@ -22046,17 +22094,17 @@ func (x codecSelfer1234) decSliceHorizontalPodAutoscaler(v *[]HorizontalPodAutos } } - if yyj1833 < len(yyv1833) { - yyv1833 = yyv1833[:yyj1833] - yyc1833 = true - } else if yyj1833 == 0 && yyv1833 == nil { - yyv1833 = []HorizontalPodAutoscaler{} - yyc1833 = true + if yyj1838 < len(yyv1838) { + yyv1838 = yyv1838[:yyj1838] + yyc1838 = true + } else if yyj1838 == 0 && yyv1838 == nil { + yyv1838 = []HorizontalPodAutoscaler{} + yyc1838 = true } } - yyh1833.End() - if yyc1833 { - *v = yyv1833 + yyh1838.End() + if yyc1838 { + *v = yyv1838 } } @@ -22065,10 +22113,10 @@ func (x codecSelfer1234) encSliceAPIVersion(v []APIVersion, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1837 := range v { + for _, yyv1842 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1838 := &yyv1837 - yy1838.CodecEncodeSelf(e) + yy1843 := &yyv1842 + yy1843.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22078,83 +22126,83 @@ func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1839 := *v - yyh1839, yyl1839 := z.DecSliceHelperStart() - var yyc1839 bool - if yyl1839 == 0 { - if yyv1839 == nil { - yyv1839 = []APIVersion{} - yyc1839 = true - } else if len(yyv1839) != 0 { - yyv1839 = yyv1839[:0] - yyc1839 = true + yyv1844 := *v + yyh1844, yyl1844 := z.DecSliceHelperStart() + var yyc1844 bool + if yyl1844 == 0 { + if yyv1844 == nil { + yyv1844 = []APIVersion{} + yyc1844 = true + } else if len(yyv1844) != 0 { + yyv1844 = yyv1844[:0] + yyc1844 = true } - } else if yyl1839 > 0 { - var yyrr1839, yyrl1839 int - var yyrt1839 bool - if yyl1839 > cap(yyv1839) { + } else if yyl1844 > 0 { + var yyrr1844, yyrl1844 int + var yyrt1844 bool + if yyl1844 > cap(yyv1844) { - yyrg1839 := len(yyv1839) > 0 - yyv21839 := yyv1839 - yyrl1839, yyrt1839 = z.DecInferLen(yyl1839, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1839 { - if yyrl1839 <= cap(yyv1839) { - yyv1839 = yyv1839[:yyrl1839] + yyrg1844 := len(yyv1844) > 0 + yyv21844 := yyv1844 + yyrl1844, yyrt1844 = z.DecInferLen(yyl1844, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1844 { + if yyrl1844 <= cap(yyv1844) { + yyv1844 = yyv1844[:yyrl1844] } else { - yyv1839 = make([]APIVersion, yyrl1839) + yyv1844 = make([]APIVersion, yyrl1844) } } else { - yyv1839 = make([]APIVersion, yyrl1839) + yyv1844 = make([]APIVersion, yyrl1844) } - yyc1839 = true - yyrr1839 = len(yyv1839) - if yyrg1839 { - copy(yyv1839, yyv21839) + yyc1844 = true + yyrr1844 = len(yyv1844) + if yyrg1844 { + copy(yyv1844, yyv21844) } - } else if yyl1839 != len(yyv1839) { - yyv1839 = yyv1839[:yyl1839] - yyc1839 = true + } else if yyl1844 != len(yyv1844) { + yyv1844 = yyv1844[:yyl1844] + yyc1844 = true } - yyj1839 := 0 - for ; yyj1839 < yyrr1839; yyj1839++ { - yyh1839.ElemContainerState(yyj1839) + yyj1844 := 0 + for ; yyj1844 < yyrr1844; yyj1844++ { + yyh1844.ElemContainerState(yyj1844) if r.TryDecodeAsNil() { - yyv1839[yyj1839] = APIVersion{} + yyv1844[yyj1844] = APIVersion{} } else { - yyv1840 := &yyv1839[yyj1839] - yyv1840.CodecDecodeSelf(d) + yyv1845 := &yyv1844[yyj1844] + yyv1845.CodecDecodeSelf(d) } } - if yyrt1839 { - for ; yyj1839 < yyl1839; yyj1839++ { - yyv1839 = append(yyv1839, APIVersion{}) - yyh1839.ElemContainerState(yyj1839) + if yyrt1844 { + for ; yyj1844 < yyl1844; yyj1844++ { + yyv1844 = append(yyv1844, APIVersion{}) + yyh1844.ElemContainerState(yyj1844) if r.TryDecodeAsNil() { - yyv1839[yyj1839] = APIVersion{} + yyv1844[yyj1844] = APIVersion{} } else { - yyv1841 := &yyv1839[yyj1839] - yyv1841.CodecDecodeSelf(d) + yyv1846 := &yyv1844[yyj1844] + yyv1846.CodecDecodeSelf(d) } } } } else { - yyj1839 := 0 - for ; !r.CheckBreak(); yyj1839++ { + yyj1844 := 0 + for ; !r.CheckBreak(); yyj1844++ { - if yyj1839 >= len(yyv1839) { - yyv1839 = append(yyv1839, APIVersion{}) // var yyz1839 APIVersion - yyc1839 = true + if yyj1844 >= len(yyv1844) { + yyv1844 = append(yyv1844, APIVersion{}) // var yyz1844 APIVersion + yyc1844 = true } - yyh1839.ElemContainerState(yyj1839) - if yyj1839 < len(yyv1839) { + yyh1844.ElemContainerState(yyj1844) + if yyj1844 < len(yyv1844) { if r.TryDecodeAsNil() { - yyv1839[yyj1839] = APIVersion{} + yyv1844[yyj1844] = APIVersion{} } else { - yyv1842 := &yyv1839[yyj1839] - yyv1842.CodecDecodeSelf(d) + yyv1847 := &yyv1844[yyj1844] + yyv1847.CodecDecodeSelf(d) } } else { @@ -22162,17 +22210,17 @@ func (x codecSelfer1234) decSliceAPIVersion(v *[]APIVersion, d *codec1978.Decode } } - if yyj1839 < len(yyv1839) { - yyv1839 = yyv1839[:yyj1839] - yyc1839 = true - } else if yyj1839 == 0 && yyv1839 == nil { - yyv1839 = []APIVersion{} - yyc1839 = true + if yyj1844 < len(yyv1844) { + yyv1844 = yyv1844[:yyj1844] + yyc1844 = true + } else if yyj1844 == 0 && yyv1844 == nil { + yyv1844 = []APIVersion{} + yyc1844 = true } } - yyh1839.End() - if yyc1839 { - *v = yyv1839 + yyh1844.End() + if yyc1844 { + *v = yyv1844 } } @@ -22181,10 +22229,10 @@ func (x codecSelfer1234) encSliceThirdPartyResource(v []ThirdPartyResource, e *c z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1843 := range v { + for _, yyv1848 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1844 := &yyv1843 - yy1844.CodecEncodeSelf(e) + yy1849 := &yyv1848 + yy1849.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22194,83 +22242,83 @@ func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d * z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1845 := *v - yyh1845, yyl1845 := z.DecSliceHelperStart() - var yyc1845 bool - if yyl1845 == 0 { - if yyv1845 == nil { - yyv1845 = []ThirdPartyResource{} - yyc1845 = true - } else if len(yyv1845) != 0 { - yyv1845 = yyv1845[:0] - yyc1845 = true + yyv1850 := *v + yyh1850, yyl1850 := z.DecSliceHelperStart() + var yyc1850 bool + if yyl1850 == 0 { + if yyv1850 == nil { + yyv1850 = []ThirdPartyResource{} + yyc1850 = true + } else if len(yyv1850) != 0 { + yyv1850 = yyv1850[:0] + yyc1850 = true } - } else if yyl1845 > 0 { - var yyrr1845, yyrl1845 int - var yyrt1845 bool - if yyl1845 > cap(yyv1845) { + } else if yyl1850 > 0 { + var yyrr1850, yyrl1850 int + var yyrt1850 bool + if yyl1850 > cap(yyv1850) { - yyrg1845 := len(yyv1845) > 0 - yyv21845 := yyv1845 - yyrl1845, yyrt1845 = z.DecInferLen(yyl1845, z.DecBasicHandle().MaxInitLen, 280) - if yyrt1845 { - if yyrl1845 <= cap(yyv1845) { - yyv1845 = yyv1845[:yyrl1845] + yyrg1850 := len(yyv1850) > 0 + yyv21850 := yyv1850 + yyrl1850, yyrt1850 = z.DecInferLen(yyl1850, z.DecBasicHandle().MaxInitLen, 296) + if yyrt1850 { + if yyrl1850 <= cap(yyv1850) { + yyv1850 = yyv1850[:yyrl1850] } else { - yyv1845 = make([]ThirdPartyResource, yyrl1845) + yyv1850 = make([]ThirdPartyResource, yyrl1850) } } else { - yyv1845 = make([]ThirdPartyResource, yyrl1845) + yyv1850 = make([]ThirdPartyResource, yyrl1850) } - yyc1845 = true - yyrr1845 = len(yyv1845) - if yyrg1845 { - copy(yyv1845, yyv21845) + yyc1850 = true + yyrr1850 = len(yyv1850) + if yyrg1850 { + copy(yyv1850, yyv21850) } - } else if yyl1845 != len(yyv1845) { - yyv1845 = yyv1845[:yyl1845] - yyc1845 = true + } else if yyl1850 != len(yyv1850) { + yyv1850 = yyv1850[:yyl1850] + yyc1850 = true } - yyj1845 := 0 - for ; yyj1845 < yyrr1845; yyj1845++ { - yyh1845.ElemContainerState(yyj1845) + yyj1850 := 0 + for ; yyj1850 < yyrr1850; yyj1850++ { + yyh1850.ElemContainerState(yyj1850) if r.TryDecodeAsNil() { - yyv1845[yyj1845] = ThirdPartyResource{} + yyv1850[yyj1850] = ThirdPartyResource{} } else { - yyv1846 := &yyv1845[yyj1845] - yyv1846.CodecDecodeSelf(d) + yyv1851 := &yyv1850[yyj1850] + yyv1851.CodecDecodeSelf(d) } } - if yyrt1845 { - for ; yyj1845 < yyl1845; yyj1845++ { - yyv1845 = append(yyv1845, ThirdPartyResource{}) - yyh1845.ElemContainerState(yyj1845) + if yyrt1850 { + for ; yyj1850 < yyl1850; yyj1850++ { + yyv1850 = append(yyv1850, ThirdPartyResource{}) + yyh1850.ElemContainerState(yyj1850) if r.TryDecodeAsNil() { - yyv1845[yyj1845] = ThirdPartyResource{} + yyv1850[yyj1850] = ThirdPartyResource{} } else { - yyv1847 := &yyv1845[yyj1845] - yyv1847.CodecDecodeSelf(d) + yyv1852 := &yyv1850[yyj1850] + yyv1852.CodecDecodeSelf(d) } } } } else { - yyj1845 := 0 - for ; !r.CheckBreak(); yyj1845++ { + yyj1850 := 0 + for ; !r.CheckBreak(); yyj1850++ { - if yyj1845 >= len(yyv1845) { - yyv1845 = append(yyv1845, ThirdPartyResource{}) // var yyz1845 ThirdPartyResource - yyc1845 = true + if yyj1850 >= len(yyv1850) { + yyv1850 = append(yyv1850, ThirdPartyResource{}) // var yyz1850 ThirdPartyResource + yyc1850 = true } - yyh1845.ElemContainerState(yyj1845) - if yyj1845 < len(yyv1845) { + yyh1850.ElemContainerState(yyj1850) + if yyj1850 < len(yyv1850) { if r.TryDecodeAsNil() { - yyv1845[yyj1845] = ThirdPartyResource{} + yyv1850[yyj1850] = ThirdPartyResource{} } else { - yyv1848 := &yyv1845[yyj1845] - yyv1848.CodecDecodeSelf(d) + yyv1853 := &yyv1850[yyj1850] + yyv1853.CodecDecodeSelf(d) } } else { @@ -22278,17 +22326,17 @@ func (x codecSelfer1234) decSliceThirdPartyResource(v *[]ThirdPartyResource, d * } } - if yyj1845 < len(yyv1845) { - yyv1845 = yyv1845[:yyj1845] - yyc1845 = true - } else if yyj1845 == 0 && yyv1845 == nil { - yyv1845 = []ThirdPartyResource{} - yyc1845 = true + if yyj1850 < len(yyv1850) { + yyv1850 = yyv1850[:yyj1850] + yyc1850 = true + } else if yyj1850 == 0 && yyv1850 == nil { + yyv1850 = []ThirdPartyResource{} + yyc1850 = true } } - yyh1845.End() - if yyc1845 { - *v = yyv1845 + yyh1850.End() + if yyc1850 { + *v = yyv1850 } } @@ -22297,10 +22345,10 @@ func (x codecSelfer1234) encSliceDeployment(v []Deployment, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1849 := range v { + for _, yyv1854 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1850 := &yyv1849 - yy1850.CodecEncodeSelf(e) + yy1855 := &yyv1854 + yy1855.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22310,83 +22358,83 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1851 := *v - yyh1851, yyl1851 := z.DecSliceHelperStart() - var yyc1851 bool - if yyl1851 == 0 { - if yyv1851 == nil { - yyv1851 = []Deployment{} - yyc1851 = true - } else if len(yyv1851) != 0 { - yyv1851 = yyv1851[:0] - yyc1851 = true + yyv1856 := *v + yyh1856, yyl1856 := z.DecSliceHelperStart() + var yyc1856 bool + if yyl1856 == 0 { + if yyv1856 == nil { + yyv1856 = []Deployment{} + yyc1856 = true + } else if len(yyv1856) != 0 { + yyv1856 = yyv1856[:0] + yyc1856 = true } - } else if yyl1851 > 0 { - var yyrr1851, yyrl1851 int - var yyrt1851 bool - if yyl1851 > cap(yyv1851) { + } else if yyl1856 > 0 { + var yyrr1856, yyrl1856 int + var yyrt1856 bool + if yyl1856 > cap(yyv1856) { - yyrg1851 := len(yyv1851) > 0 - yyv21851 := yyv1851 - yyrl1851, yyrt1851 = z.DecInferLen(yyl1851, z.DecBasicHandle().MaxInitLen, 792) - if yyrt1851 { - if yyrl1851 <= cap(yyv1851) { - yyv1851 = yyv1851[:yyrl1851] + yyrg1856 := len(yyv1856) > 0 + yyv21856 := yyv1856 + yyrl1856, yyrt1856 = z.DecInferLen(yyl1856, z.DecBasicHandle().MaxInitLen, 824) + if yyrt1856 { + if yyrl1856 <= cap(yyv1856) { + yyv1856 = yyv1856[:yyrl1856] } else { - yyv1851 = make([]Deployment, yyrl1851) + yyv1856 = make([]Deployment, yyrl1856) } } else { - yyv1851 = make([]Deployment, yyrl1851) + yyv1856 = make([]Deployment, yyrl1856) } - yyc1851 = true - yyrr1851 = len(yyv1851) - if yyrg1851 { - copy(yyv1851, yyv21851) + yyc1856 = true + yyrr1856 = len(yyv1856) + if yyrg1856 { + copy(yyv1856, yyv21856) } - } else if yyl1851 != len(yyv1851) { - yyv1851 = yyv1851[:yyl1851] - yyc1851 = true + } else if yyl1856 != len(yyv1856) { + yyv1856 = yyv1856[:yyl1856] + yyc1856 = true } - yyj1851 := 0 - for ; yyj1851 < yyrr1851; yyj1851++ { - yyh1851.ElemContainerState(yyj1851) + yyj1856 := 0 + for ; yyj1856 < yyrr1856; yyj1856++ { + yyh1856.ElemContainerState(yyj1856) if r.TryDecodeAsNil() { - yyv1851[yyj1851] = Deployment{} + yyv1856[yyj1856] = Deployment{} } else { - yyv1852 := &yyv1851[yyj1851] - yyv1852.CodecDecodeSelf(d) + yyv1857 := &yyv1856[yyj1856] + yyv1857.CodecDecodeSelf(d) } } - if yyrt1851 { - for ; yyj1851 < yyl1851; yyj1851++ { - yyv1851 = append(yyv1851, Deployment{}) - yyh1851.ElemContainerState(yyj1851) + if yyrt1856 { + for ; yyj1856 < yyl1856; yyj1856++ { + yyv1856 = append(yyv1856, Deployment{}) + yyh1856.ElemContainerState(yyj1856) if r.TryDecodeAsNil() { - yyv1851[yyj1851] = Deployment{} + yyv1856[yyj1856] = Deployment{} } else { - yyv1853 := &yyv1851[yyj1851] - yyv1853.CodecDecodeSelf(d) + yyv1858 := &yyv1856[yyj1856] + yyv1858.CodecDecodeSelf(d) } } } } else { - yyj1851 := 0 - for ; !r.CheckBreak(); yyj1851++ { + yyj1856 := 0 + for ; !r.CheckBreak(); yyj1856++ { - if yyj1851 >= len(yyv1851) { - yyv1851 = append(yyv1851, Deployment{}) // var yyz1851 Deployment - yyc1851 = true + if yyj1856 >= len(yyv1856) { + yyv1856 = append(yyv1856, Deployment{}) // var yyz1856 Deployment + yyc1856 = true } - yyh1851.ElemContainerState(yyj1851) - if yyj1851 < len(yyv1851) { + yyh1856.ElemContainerState(yyj1856) + if yyj1856 < len(yyv1856) { if r.TryDecodeAsNil() { - yyv1851[yyj1851] = Deployment{} + yyv1856[yyj1856] = Deployment{} } else { - yyv1854 := &yyv1851[yyj1851] - yyv1854.CodecDecodeSelf(d) + yyv1859 := &yyv1856[yyj1856] + yyv1859.CodecDecodeSelf(d) } } else { @@ -22394,17 +22442,17 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode } } - if yyj1851 < len(yyv1851) { - yyv1851 = yyv1851[:yyj1851] - yyc1851 = true - } else if yyj1851 == 0 && yyv1851 == nil { - yyv1851 = []Deployment{} - yyc1851 = true + if yyj1856 < len(yyv1856) { + yyv1856 = yyv1856[:yyj1856] + yyc1856 = true + } else if yyj1856 == 0 && yyv1856 == nil { + yyv1856 = []Deployment{} + yyc1856 = true } } - yyh1851.End() - if yyc1851 { - *v = yyv1851 + yyh1856.End() + if yyc1856 { + *v = yyv1856 } } @@ -22413,10 +22461,10 @@ func (x codecSelfer1234) encSliceDaemonSet(v []DaemonSet, e *codec1978.Encoder) z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1855 := range v { + for _, yyv1860 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1856 := &yyv1855 - yy1856.CodecEncodeSelf(e) + yy1861 := &yyv1860 + yy1861.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22426,83 +22474,83 @@ func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1857 := *v - yyh1857, yyl1857 := z.DecSliceHelperStart() - var yyc1857 bool - if yyl1857 == 0 { - if yyv1857 == nil { - yyv1857 = []DaemonSet{} - yyc1857 = true - } else if len(yyv1857) != 0 { - yyv1857 = yyv1857[:0] - yyc1857 = true + yyv1862 := *v + yyh1862, yyl1862 := z.DecSliceHelperStart() + var yyc1862 bool + if yyl1862 == 0 { + if yyv1862 == nil { + yyv1862 = []DaemonSet{} + yyc1862 = true + } else if len(yyv1862) != 0 { + yyv1862 = yyv1862[:0] + yyc1862 = true } - } else if yyl1857 > 0 { - var yyrr1857, yyrl1857 int - var yyrt1857 bool - if yyl1857 > cap(yyv1857) { + } else if yyl1862 > 0 { + var yyrr1862, yyrl1862 int + var yyrt1862 bool + if yyl1862 > cap(yyv1862) { - yyrg1857 := len(yyv1857) > 0 - yyv21857 := yyv1857 - yyrl1857, yyrt1857 = z.DecInferLen(yyl1857, z.DecBasicHandle().MaxInitLen, 720) - if yyrt1857 { - if yyrl1857 <= cap(yyv1857) { - yyv1857 = yyv1857[:yyrl1857] + yyrg1862 := len(yyv1862) > 0 + yyv21862 := yyv1862 + yyrl1862, yyrt1862 = z.DecInferLen(yyl1862, z.DecBasicHandle().MaxInitLen, 752) + if yyrt1862 { + if yyrl1862 <= cap(yyv1862) { + yyv1862 = yyv1862[:yyrl1862] } else { - yyv1857 = make([]DaemonSet, yyrl1857) + yyv1862 = make([]DaemonSet, yyrl1862) } } else { - yyv1857 = make([]DaemonSet, yyrl1857) + yyv1862 = make([]DaemonSet, yyrl1862) } - yyc1857 = true - yyrr1857 = len(yyv1857) - if yyrg1857 { - copy(yyv1857, yyv21857) + yyc1862 = true + yyrr1862 = len(yyv1862) + if yyrg1862 { + copy(yyv1862, yyv21862) } - } else if yyl1857 != len(yyv1857) { - yyv1857 = yyv1857[:yyl1857] - yyc1857 = true + } else if yyl1862 != len(yyv1862) { + yyv1862 = yyv1862[:yyl1862] + yyc1862 = true } - yyj1857 := 0 - for ; yyj1857 < yyrr1857; yyj1857++ { - yyh1857.ElemContainerState(yyj1857) + yyj1862 := 0 + for ; yyj1862 < yyrr1862; yyj1862++ { + yyh1862.ElemContainerState(yyj1862) if r.TryDecodeAsNil() { - yyv1857[yyj1857] = DaemonSet{} + yyv1862[yyj1862] = DaemonSet{} } else { - yyv1858 := &yyv1857[yyj1857] - yyv1858.CodecDecodeSelf(d) + yyv1863 := &yyv1862[yyj1862] + yyv1863.CodecDecodeSelf(d) } } - if yyrt1857 { - for ; yyj1857 < yyl1857; yyj1857++ { - yyv1857 = append(yyv1857, DaemonSet{}) - yyh1857.ElemContainerState(yyj1857) + if yyrt1862 { + for ; yyj1862 < yyl1862; yyj1862++ { + yyv1862 = append(yyv1862, DaemonSet{}) + yyh1862.ElemContainerState(yyj1862) if r.TryDecodeAsNil() { - yyv1857[yyj1857] = DaemonSet{} + yyv1862[yyj1862] = DaemonSet{} } else { - yyv1859 := &yyv1857[yyj1857] - yyv1859.CodecDecodeSelf(d) + yyv1864 := &yyv1862[yyj1862] + yyv1864.CodecDecodeSelf(d) } } } } else { - yyj1857 := 0 - for ; !r.CheckBreak(); yyj1857++ { + yyj1862 := 0 + for ; !r.CheckBreak(); yyj1862++ { - if yyj1857 >= len(yyv1857) { - yyv1857 = append(yyv1857, DaemonSet{}) // var yyz1857 DaemonSet - yyc1857 = true + if yyj1862 >= len(yyv1862) { + yyv1862 = append(yyv1862, DaemonSet{}) // var yyz1862 DaemonSet + yyc1862 = true } - yyh1857.ElemContainerState(yyj1857) - if yyj1857 < len(yyv1857) { + yyh1862.ElemContainerState(yyj1862) + if yyj1862 < len(yyv1862) { if r.TryDecodeAsNil() { - yyv1857[yyj1857] = DaemonSet{} + yyv1862[yyj1862] = DaemonSet{} } else { - yyv1860 := &yyv1857[yyj1857] - yyv1860.CodecDecodeSelf(d) + yyv1865 := &yyv1862[yyj1862] + yyv1865.CodecDecodeSelf(d) } } else { @@ -22510,17 +22558,17 @@ func (x codecSelfer1234) decSliceDaemonSet(v *[]DaemonSet, d *codec1978.Decoder) } } - if yyj1857 < len(yyv1857) { - yyv1857 = yyv1857[:yyj1857] - yyc1857 = true - } else if yyj1857 == 0 && yyv1857 == nil { - yyv1857 = []DaemonSet{} - yyc1857 = true + if yyj1862 < len(yyv1862) { + yyv1862 = yyv1862[:yyj1862] + yyc1862 = true + } else if yyj1862 == 0 && yyv1862 == nil { + yyv1862 = []DaemonSet{} + yyc1862 = true } } - yyh1857.End() - if yyc1857 { - *v = yyv1857 + yyh1862.End() + if yyc1862 { + *v = yyv1862 } } @@ -22529,10 +22577,10 @@ func (x codecSelfer1234) encSliceThirdPartyResourceData(v []ThirdPartyResourceDa z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1861 := range v { + for _, yyv1866 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1862 := &yyv1861 - yy1862.CodecEncodeSelf(e) + yy1867 := &yyv1866 + yy1867.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22542,83 +22590,83 @@ func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceD z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1863 := *v - yyh1863, yyl1863 := z.DecSliceHelperStart() - var yyc1863 bool - if yyl1863 == 0 { - if yyv1863 == nil { - yyv1863 = []ThirdPartyResourceData{} - yyc1863 = true - } else if len(yyv1863) != 0 { - yyv1863 = yyv1863[:0] - yyc1863 = true + yyv1868 := *v + yyh1868, yyl1868 := z.DecSliceHelperStart() + var yyc1868 bool + if yyl1868 == 0 { + if yyv1868 == nil { + yyv1868 = []ThirdPartyResourceData{} + yyc1868 = true + } else if len(yyv1868) != 0 { + yyv1868 = yyv1868[:0] + yyc1868 = true } - } else if yyl1863 > 0 { - var yyrr1863, yyrl1863 int - var yyrt1863 bool - if yyl1863 > cap(yyv1863) { + } else if yyl1868 > 0 { + var yyrr1868, yyrl1868 int + var yyrt1868 bool + if yyl1868 > cap(yyv1868) { - yyrg1863 := len(yyv1863) > 0 - yyv21863 := yyv1863 - yyrl1863, yyrt1863 = z.DecInferLen(yyl1863, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1863 { - if yyrl1863 <= cap(yyv1863) { - yyv1863 = yyv1863[:yyrl1863] + yyrg1868 := len(yyv1868) > 0 + yyv21868 := yyv1868 + yyrl1868, yyrt1868 = z.DecInferLen(yyl1868, z.DecBasicHandle().MaxInitLen, 280) + if yyrt1868 { + if yyrl1868 <= cap(yyv1868) { + yyv1868 = yyv1868[:yyrl1868] } else { - yyv1863 = make([]ThirdPartyResourceData, yyrl1863) + yyv1868 = make([]ThirdPartyResourceData, yyrl1868) } } else { - yyv1863 = make([]ThirdPartyResourceData, yyrl1863) + yyv1868 = make([]ThirdPartyResourceData, yyrl1868) } - yyc1863 = true - yyrr1863 = len(yyv1863) - if yyrg1863 { - copy(yyv1863, yyv21863) + yyc1868 = true + yyrr1868 = len(yyv1868) + if yyrg1868 { + copy(yyv1868, yyv21868) } - } else if yyl1863 != len(yyv1863) { - yyv1863 = yyv1863[:yyl1863] - yyc1863 = true + } else if yyl1868 != len(yyv1868) { + yyv1868 = yyv1868[:yyl1868] + yyc1868 = true } - yyj1863 := 0 - for ; yyj1863 < yyrr1863; yyj1863++ { - yyh1863.ElemContainerState(yyj1863) + yyj1868 := 0 + for ; yyj1868 < yyrr1868; yyj1868++ { + yyh1868.ElemContainerState(yyj1868) if r.TryDecodeAsNil() { - yyv1863[yyj1863] = ThirdPartyResourceData{} + yyv1868[yyj1868] = ThirdPartyResourceData{} } else { - yyv1864 := &yyv1863[yyj1863] - yyv1864.CodecDecodeSelf(d) + yyv1869 := &yyv1868[yyj1868] + yyv1869.CodecDecodeSelf(d) } } - if yyrt1863 { - for ; yyj1863 < yyl1863; yyj1863++ { - yyv1863 = append(yyv1863, ThirdPartyResourceData{}) - yyh1863.ElemContainerState(yyj1863) + if yyrt1868 { + for ; yyj1868 < yyl1868; yyj1868++ { + yyv1868 = append(yyv1868, ThirdPartyResourceData{}) + yyh1868.ElemContainerState(yyj1868) if r.TryDecodeAsNil() { - yyv1863[yyj1863] = ThirdPartyResourceData{} + yyv1868[yyj1868] = ThirdPartyResourceData{} } else { - yyv1865 := &yyv1863[yyj1863] - yyv1865.CodecDecodeSelf(d) + yyv1870 := &yyv1868[yyj1868] + yyv1870.CodecDecodeSelf(d) } } } } else { - yyj1863 := 0 - for ; !r.CheckBreak(); yyj1863++ { + yyj1868 := 0 + for ; !r.CheckBreak(); yyj1868++ { - if yyj1863 >= len(yyv1863) { - yyv1863 = append(yyv1863, ThirdPartyResourceData{}) // var yyz1863 ThirdPartyResourceData - yyc1863 = true + if yyj1868 >= len(yyv1868) { + yyv1868 = append(yyv1868, ThirdPartyResourceData{}) // var yyz1868 ThirdPartyResourceData + yyc1868 = true } - yyh1863.ElemContainerState(yyj1863) - if yyj1863 < len(yyv1863) { + yyh1868.ElemContainerState(yyj1868) + if yyj1868 < len(yyv1868) { if r.TryDecodeAsNil() { - yyv1863[yyj1863] = ThirdPartyResourceData{} + yyv1868[yyj1868] = ThirdPartyResourceData{} } else { - yyv1866 := &yyv1863[yyj1863] - yyv1866.CodecDecodeSelf(d) + yyv1871 := &yyv1868[yyj1868] + yyv1871.CodecDecodeSelf(d) } } else { @@ -22626,17 +22674,17 @@ func (x codecSelfer1234) decSliceThirdPartyResourceData(v *[]ThirdPartyResourceD } } - if yyj1863 < len(yyv1863) { - yyv1863 = yyv1863[:yyj1863] - yyc1863 = true - } else if yyj1863 == 0 && yyv1863 == nil { - yyv1863 = []ThirdPartyResourceData{} - yyc1863 = true + if yyj1868 < len(yyv1868) { + yyv1868 = yyv1868[:yyj1868] + yyc1868 = true + } else if yyj1868 == 0 && yyv1868 == nil { + yyv1868 = []ThirdPartyResourceData{} + yyc1868 = true } } - yyh1863.End() - if yyc1863 { - *v = yyv1863 + yyh1868.End() + if yyc1868 { + *v = yyv1868 } } @@ -22645,10 +22693,10 @@ func (x codecSelfer1234) encSliceJob(v []Job, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1867 := range v { + for _, yyv1872 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1868 := &yyv1867 - yy1868.CodecEncodeSelf(e) + yy1873 := &yyv1872 + yy1873.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22658,83 +22706,83 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1869 := *v - yyh1869, yyl1869 := z.DecSliceHelperStart() - var yyc1869 bool - if yyl1869 == 0 { - if yyv1869 == nil { - yyv1869 = []Job{} - yyc1869 = true - } else if len(yyv1869) != 0 { - yyv1869 = yyv1869[:0] - yyc1869 = true + yyv1874 := *v + yyh1874, yyl1874 := z.DecSliceHelperStart() + var yyc1874 bool + if yyl1874 == 0 { + if yyv1874 == nil { + yyv1874 = []Job{} + yyc1874 = true + } else if len(yyv1874) != 0 { + yyv1874 = yyv1874[:0] + yyc1874 = true } - } else if yyl1869 > 0 { - var yyrr1869, yyrl1869 int - var yyrt1869 bool - if yyl1869 > cap(yyv1869) { + } else if yyl1874 > 0 { + var yyrr1874, yyrl1874 int + var yyrt1874 bool + if yyl1874 > cap(yyv1874) { - yyrg1869 := len(yyv1869) > 0 - yyv21869 := yyv1869 - yyrl1869, yyrt1869 = z.DecInferLen(yyl1869, z.DecBasicHandle().MaxInitLen, 792) - if yyrt1869 { - if yyrl1869 <= cap(yyv1869) { - yyv1869 = yyv1869[:yyrl1869] + yyrg1874 := len(yyv1874) > 0 + yyv21874 := yyv1874 + yyrl1874, yyrt1874 = z.DecInferLen(yyl1874, z.DecBasicHandle().MaxInitLen, 824) + if yyrt1874 { + if yyrl1874 <= cap(yyv1874) { + yyv1874 = yyv1874[:yyrl1874] } else { - yyv1869 = make([]Job, yyrl1869) + yyv1874 = make([]Job, yyrl1874) } } else { - yyv1869 = make([]Job, yyrl1869) + yyv1874 = make([]Job, yyrl1874) } - yyc1869 = true - yyrr1869 = len(yyv1869) - if yyrg1869 { - copy(yyv1869, yyv21869) + yyc1874 = true + yyrr1874 = len(yyv1874) + if yyrg1874 { + copy(yyv1874, yyv21874) } - } else if yyl1869 != len(yyv1869) { - yyv1869 = yyv1869[:yyl1869] - yyc1869 = true + } else if yyl1874 != len(yyv1874) { + yyv1874 = yyv1874[:yyl1874] + yyc1874 = true } - yyj1869 := 0 - for ; yyj1869 < yyrr1869; yyj1869++ { - yyh1869.ElemContainerState(yyj1869) + yyj1874 := 0 + for ; yyj1874 < yyrr1874; yyj1874++ { + yyh1874.ElemContainerState(yyj1874) if r.TryDecodeAsNil() { - yyv1869[yyj1869] = Job{} + yyv1874[yyj1874] = Job{} } else { - yyv1870 := &yyv1869[yyj1869] - yyv1870.CodecDecodeSelf(d) + yyv1875 := &yyv1874[yyj1874] + yyv1875.CodecDecodeSelf(d) } } - if yyrt1869 { - for ; yyj1869 < yyl1869; yyj1869++ { - yyv1869 = append(yyv1869, Job{}) - yyh1869.ElemContainerState(yyj1869) + if yyrt1874 { + for ; yyj1874 < yyl1874; yyj1874++ { + yyv1874 = append(yyv1874, Job{}) + yyh1874.ElemContainerState(yyj1874) if r.TryDecodeAsNil() { - yyv1869[yyj1869] = Job{} + yyv1874[yyj1874] = Job{} } else { - yyv1871 := &yyv1869[yyj1869] - yyv1871.CodecDecodeSelf(d) + yyv1876 := &yyv1874[yyj1874] + yyv1876.CodecDecodeSelf(d) } } } } else { - yyj1869 := 0 - for ; !r.CheckBreak(); yyj1869++ { + yyj1874 := 0 + for ; !r.CheckBreak(); yyj1874++ { - if yyj1869 >= len(yyv1869) { - yyv1869 = append(yyv1869, Job{}) // var yyz1869 Job - yyc1869 = true + if yyj1874 >= len(yyv1874) { + yyv1874 = append(yyv1874, Job{}) // var yyz1874 Job + yyc1874 = true } - yyh1869.ElemContainerState(yyj1869) - if yyj1869 < len(yyv1869) { + yyh1874.ElemContainerState(yyj1874) + if yyj1874 < len(yyv1874) { if r.TryDecodeAsNil() { - yyv1869[yyj1869] = Job{} + yyv1874[yyj1874] = Job{} } else { - yyv1872 := &yyv1869[yyj1869] - yyv1872.CodecDecodeSelf(d) + yyv1877 := &yyv1874[yyj1874] + yyv1877.CodecDecodeSelf(d) } } else { @@ -22742,17 +22790,17 @@ func (x codecSelfer1234) decSliceJob(v *[]Job, d *codec1978.Decoder) { } } - if yyj1869 < len(yyv1869) { - yyv1869 = yyv1869[:yyj1869] - yyc1869 = true - } else if yyj1869 == 0 && yyv1869 == nil { - yyv1869 = []Job{} - yyc1869 = true + if yyj1874 < len(yyv1874) { + yyv1874 = yyv1874[:yyj1874] + yyc1874 = true + } else if yyj1874 == 0 && yyv1874 == nil { + yyv1874 = []Job{} + yyc1874 = true } } - yyh1869.End() - if yyc1869 { - *v = yyv1869 + yyh1874.End() + if yyc1874 { + *v = yyv1874 } } @@ -22761,10 +22809,10 @@ func (x codecSelfer1234) encSliceJobCondition(v []JobCondition, e *codec1978.Enc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1873 := range v { + for _, yyv1878 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1874 := &yyv1873 - yy1874.CodecEncodeSelf(e) + yy1879 := &yyv1878 + yy1879.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22774,83 +22822,83 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1875 := *v - yyh1875, yyl1875 := z.DecSliceHelperStart() - var yyc1875 bool - if yyl1875 == 0 { - if yyv1875 == nil { - yyv1875 = []JobCondition{} - yyc1875 = true - } else if len(yyv1875) != 0 { - yyv1875 = yyv1875[:0] - yyc1875 = true + yyv1880 := *v + yyh1880, yyl1880 := z.DecSliceHelperStart() + var yyc1880 bool + if yyl1880 == 0 { + if yyv1880 == nil { + yyv1880 = []JobCondition{} + yyc1880 = true + } else if len(yyv1880) != 0 { + yyv1880 = yyv1880[:0] + yyc1880 = true } - } else if yyl1875 > 0 { - var yyrr1875, yyrl1875 int - var yyrt1875 bool - if yyl1875 > cap(yyv1875) { + } else if yyl1880 > 0 { + var yyrr1880, yyrl1880 int + var yyrt1880 bool + if yyl1880 > cap(yyv1880) { - yyrg1875 := len(yyv1875) > 0 - yyv21875 := yyv1875 - yyrl1875, yyrt1875 = z.DecInferLen(yyl1875, z.DecBasicHandle().MaxInitLen, 112) - if yyrt1875 { - if yyrl1875 <= cap(yyv1875) { - yyv1875 = yyv1875[:yyrl1875] + yyrg1880 := len(yyv1880) > 0 + yyv21880 := yyv1880 + yyrl1880, yyrt1880 = z.DecInferLen(yyl1880, z.DecBasicHandle().MaxInitLen, 112) + if yyrt1880 { + if yyrl1880 <= cap(yyv1880) { + yyv1880 = yyv1880[:yyrl1880] } else { - yyv1875 = make([]JobCondition, yyrl1875) + yyv1880 = make([]JobCondition, yyrl1880) } } else { - yyv1875 = make([]JobCondition, yyrl1875) + yyv1880 = make([]JobCondition, yyrl1880) } - yyc1875 = true - yyrr1875 = len(yyv1875) - if yyrg1875 { - copy(yyv1875, yyv21875) + yyc1880 = true + yyrr1880 = len(yyv1880) + if yyrg1880 { + copy(yyv1880, yyv21880) } - } else if yyl1875 != len(yyv1875) { - yyv1875 = yyv1875[:yyl1875] - yyc1875 = true + } else if yyl1880 != len(yyv1880) { + yyv1880 = yyv1880[:yyl1880] + yyc1880 = true } - yyj1875 := 0 - for ; yyj1875 < yyrr1875; yyj1875++ { - yyh1875.ElemContainerState(yyj1875) + yyj1880 := 0 + for ; yyj1880 < yyrr1880; yyj1880++ { + yyh1880.ElemContainerState(yyj1880) if r.TryDecodeAsNil() { - yyv1875[yyj1875] = JobCondition{} + yyv1880[yyj1880] = JobCondition{} } else { - yyv1876 := &yyv1875[yyj1875] - yyv1876.CodecDecodeSelf(d) + yyv1881 := &yyv1880[yyj1880] + yyv1881.CodecDecodeSelf(d) } } - if yyrt1875 { - for ; yyj1875 < yyl1875; yyj1875++ { - yyv1875 = append(yyv1875, JobCondition{}) - yyh1875.ElemContainerState(yyj1875) + if yyrt1880 { + for ; yyj1880 < yyl1880; yyj1880++ { + yyv1880 = append(yyv1880, JobCondition{}) + yyh1880.ElemContainerState(yyj1880) if r.TryDecodeAsNil() { - yyv1875[yyj1875] = JobCondition{} + yyv1880[yyj1880] = JobCondition{} } else { - yyv1877 := &yyv1875[yyj1875] - yyv1877.CodecDecodeSelf(d) + yyv1882 := &yyv1880[yyj1880] + yyv1882.CodecDecodeSelf(d) } } } } else { - yyj1875 := 0 - for ; !r.CheckBreak(); yyj1875++ { + yyj1880 := 0 + for ; !r.CheckBreak(); yyj1880++ { - if yyj1875 >= len(yyv1875) { - yyv1875 = append(yyv1875, JobCondition{}) // var yyz1875 JobCondition - yyc1875 = true + if yyj1880 >= len(yyv1880) { + yyv1880 = append(yyv1880, JobCondition{}) // var yyz1880 JobCondition + yyc1880 = true } - yyh1875.ElemContainerState(yyj1875) - if yyj1875 < len(yyv1875) { + yyh1880.ElemContainerState(yyj1880) + if yyj1880 < len(yyv1880) { if r.TryDecodeAsNil() { - yyv1875[yyj1875] = JobCondition{} + yyv1880[yyj1880] = JobCondition{} } else { - yyv1878 := &yyv1875[yyj1875] - yyv1878.CodecDecodeSelf(d) + yyv1883 := &yyv1880[yyj1880] + yyv1883.CodecDecodeSelf(d) } } else { @@ -22858,17 +22906,17 @@ func (x codecSelfer1234) decSliceJobCondition(v *[]JobCondition, d *codec1978.De } } - if yyj1875 < len(yyv1875) { - yyv1875 = yyv1875[:yyj1875] - yyc1875 = true - } else if yyj1875 == 0 && yyv1875 == nil { - yyv1875 = []JobCondition{} - yyc1875 = true + if yyj1880 < len(yyv1880) { + yyv1880 = yyv1880[:yyj1880] + yyc1880 = true + } else if yyj1880 == 0 && yyv1880 == nil { + yyv1880 = []JobCondition{} + yyc1880 = true } } - yyh1875.End() - if yyc1875 { - *v = yyv1875 + yyh1880.End() + if yyc1880 { + *v = yyv1880 } } @@ -22877,10 +22925,10 @@ func (x codecSelfer1234) encSliceIngress(v []Ingress, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1879 := range v { + for _, yyv1884 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1880 := &yyv1879 - yy1880.CodecEncodeSelf(e) + yy1885 := &yyv1884 + yy1885.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -22890,83 +22938,83 @@ func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1881 := *v - yyh1881, yyl1881 := z.DecSliceHelperStart() - var yyc1881 bool - if yyl1881 == 0 { - if yyv1881 == nil { - yyv1881 = []Ingress{} - yyc1881 = true - } else if len(yyv1881) != 0 { - yyv1881 = yyv1881[:0] - yyc1881 = true + yyv1886 := *v + yyh1886, yyl1886 := z.DecSliceHelperStart() + var yyc1886 bool + if yyl1886 == 0 { + if yyv1886 == nil { + yyv1886 = []Ingress{} + yyc1886 = true + } else if len(yyv1886) != 0 { + yyv1886 = yyv1886[:0] + yyc1886 = true } - } else if yyl1881 > 0 { - var yyrr1881, yyrl1881 int - var yyrt1881 bool - if yyl1881 > cap(yyv1881) { + } else if yyl1886 > 0 { + var yyrr1886, yyrl1886 int + var yyrt1886 bool + if yyl1886 > cap(yyv1886) { - yyrg1881 := len(yyv1881) > 0 - yyv21881 := yyv1881 - yyrl1881, yyrt1881 = z.DecInferLen(yyl1881, z.DecBasicHandle().MaxInitLen, 320) - if yyrt1881 { - if yyrl1881 <= cap(yyv1881) { - yyv1881 = yyv1881[:yyrl1881] + yyrg1886 := len(yyv1886) > 0 + yyv21886 := yyv1886 + yyrl1886, yyrt1886 = z.DecInferLen(yyl1886, z.DecBasicHandle().MaxInitLen, 336) + if yyrt1886 { + if yyrl1886 <= cap(yyv1886) { + yyv1886 = yyv1886[:yyrl1886] } else { - yyv1881 = make([]Ingress, yyrl1881) + yyv1886 = make([]Ingress, yyrl1886) } } else { - yyv1881 = make([]Ingress, yyrl1881) + yyv1886 = make([]Ingress, yyrl1886) } - yyc1881 = true - yyrr1881 = len(yyv1881) - if yyrg1881 { - copy(yyv1881, yyv21881) + yyc1886 = true + yyrr1886 = len(yyv1886) + if yyrg1886 { + copy(yyv1886, yyv21886) } - } else if yyl1881 != len(yyv1881) { - yyv1881 = yyv1881[:yyl1881] - yyc1881 = true + } else if yyl1886 != len(yyv1886) { + yyv1886 = yyv1886[:yyl1886] + yyc1886 = true } - yyj1881 := 0 - for ; yyj1881 < yyrr1881; yyj1881++ { - yyh1881.ElemContainerState(yyj1881) + yyj1886 := 0 + for ; yyj1886 < yyrr1886; yyj1886++ { + yyh1886.ElemContainerState(yyj1886) if r.TryDecodeAsNil() { - yyv1881[yyj1881] = Ingress{} + yyv1886[yyj1886] = Ingress{} } else { - yyv1882 := &yyv1881[yyj1881] - yyv1882.CodecDecodeSelf(d) + yyv1887 := &yyv1886[yyj1886] + yyv1887.CodecDecodeSelf(d) } } - if yyrt1881 { - for ; yyj1881 < yyl1881; yyj1881++ { - yyv1881 = append(yyv1881, Ingress{}) - yyh1881.ElemContainerState(yyj1881) + if yyrt1886 { + for ; yyj1886 < yyl1886; yyj1886++ { + yyv1886 = append(yyv1886, Ingress{}) + yyh1886.ElemContainerState(yyj1886) if r.TryDecodeAsNil() { - yyv1881[yyj1881] = Ingress{} + yyv1886[yyj1886] = Ingress{} } else { - yyv1883 := &yyv1881[yyj1881] - yyv1883.CodecDecodeSelf(d) + yyv1888 := &yyv1886[yyj1886] + yyv1888.CodecDecodeSelf(d) } } } } else { - yyj1881 := 0 - for ; !r.CheckBreak(); yyj1881++ { + yyj1886 := 0 + for ; !r.CheckBreak(); yyj1886++ { - if yyj1881 >= len(yyv1881) { - yyv1881 = append(yyv1881, Ingress{}) // var yyz1881 Ingress - yyc1881 = true + if yyj1886 >= len(yyv1886) { + yyv1886 = append(yyv1886, Ingress{}) // var yyz1886 Ingress + yyc1886 = true } - yyh1881.ElemContainerState(yyj1881) - if yyj1881 < len(yyv1881) { + yyh1886.ElemContainerState(yyj1886) + if yyj1886 < len(yyv1886) { if r.TryDecodeAsNil() { - yyv1881[yyj1881] = Ingress{} + yyv1886[yyj1886] = Ingress{} } else { - yyv1884 := &yyv1881[yyj1881] - yyv1884.CodecDecodeSelf(d) + yyv1889 := &yyv1886[yyj1886] + yyv1889.CodecDecodeSelf(d) } } else { @@ -22974,17 +23022,17 @@ func (x codecSelfer1234) decSliceIngress(v *[]Ingress, d *codec1978.Decoder) { } } - if yyj1881 < len(yyv1881) { - yyv1881 = yyv1881[:yyj1881] - yyc1881 = true - } else if yyj1881 == 0 && yyv1881 == nil { - yyv1881 = []Ingress{} - yyc1881 = true + if yyj1886 < len(yyv1886) { + yyv1886 = yyv1886[:yyj1886] + yyc1886 = true + } else if yyj1886 == 0 && yyv1886 == nil { + yyv1886 = []Ingress{} + yyc1886 = true } } - yyh1881.End() - if yyc1881 { - *v = yyv1881 + yyh1886.End() + if yyc1886 { + *v = yyv1886 } } @@ -22993,10 +23041,10 @@ func (x codecSelfer1234) encSliceIngressTLS(v []IngressTLS, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1885 := range v { + for _, yyv1890 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1886 := &yyv1885 - yy1886.CodecEncodeSelf(e) + yy1891 := &yyv1890 + yy1891.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23006,83 +23054,83 @@ func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1887 := *v - yyh1887, yyl1887 := z.DecSliceHelperStart() - var yyc1887 bool - if yyl1887 == 0 { - if yyv1887 == nil { - yyv1887 = []IngressTLS{} - yyc1887 = true - } else if len(yyv1887) != 0 { - yyv1887 = yyv1887[:0] - yyc1887 = true + yyv1892 := *v + yyh1892, yyl1892 := z.DecSliceHelperStart() + var yyc1892 bool + if yyl1892 == 0 { + if yyv1892 == nil { + yyv1892 = []IngressTLS{} + yyc1892 = true + } else if len(yyv1892) != 0 { + yyv1892 = yyv1892[:0] + yyc1892 = true } - } else if yyl1887 > 0 { - var yyrr1887, yyrl1887 int - var yyrt1887 bool - if yyl1887 > cap(yyv1887) { + } else if yyl1892 > 0 { + var yyrr1892, yyrl1892 int + var yyrt1892 bool + if yyl1892 > cap(yyv1892) { - yyrg1887 := len(yyv1887) > 0 - yyv21887 := yyv1887 - yyrl1887, yyrt1887 = z.DecInferLen(yyl1887, z.DecBasicHandle().MaxInitLen, 40) - if yyrt1887 { - if yyrl1887 <= cap(yyv1887) { - yyv1887 = yyv1887[:yyrl1887] + yyrg1892 := len(yyv1892) > 0 + yyv21892 := yyv1892 + yyrl1892, yyrt1892 = z.DecInferLen(yyl1892, z.DecBasicHandle().MaxInitLen, 40) + if yyrt1892 { + if yyrl1892 <= cap(yyv1892) { + yyv1892 = yyv1892[:yyrl1892] } else { - yyv1887 = make([]IngressTLS, yyrl1887) + yyv1892 = make([]IngressTLS, yyrl1892) } } else { - yyv1887 = make([]IngressTLS, yyrl1887) + yyv1892 = make([]IngressTLS, yyrl1892) } - yyc1887 = true - yyrr1887 = len(yyv1887) - if yyrg1887 { - copy(yyv1887, yyv21887) + yyc1892 = true + yyrr1892 = len(yyv1892) + if yyrg1892 { + copy(yyv1892, yyv21892) } - } else if yyl1887 != len(yyv1887) { - yyv1887 = yyv1887[:yyl1887] - yyc1887 = true + } else if yyl1892 != len(yyv1892) { + yyv1892 = yyv1892[:yyl1892] + yyc1892 = true } - yyj1887 := 0 - for ; yyj1887 < yyrr1887; yyj1887++ { - yyh1887.ElemContainerState(yyj1887) + yyj1892 := 0 + for ; yyj1892 < yyrr1892; yyj1892++ { + yyh1892.ElemContainerState(yyj1892) if r.TryDecodeAsNil() { - yyv1887[yyj1887] = IngressTLS{} + yyv1892[yyj1892] = IngressTLS{} } else { - yyv1888 := &yyv1887[yyj1887] - yyv1888.CodecDecodeSelf(d) + yyv1893 := &yyv1892[yyj1892] + yyv1893.CodecDecodeSelf(d) } } - if yyrt1887 { - for ; yyj1887 < yyl1887; yyj1887++ { - yyv1887 = append(yyv1887, IngressTLS{}) - yyh1887.ElemContainerState(yyj1887) + if yyrt1892 { + for ; yyj1892 < yyl1892; yyj1892++ { + yyv1892 = append(yyv1892, IngressTLS{}) + yyh1892.ElemContainerState(yyj1892) if r.TryDecodeAsNil() { - yyv1887[yyj1887] = IngressTLS{} + yyv1892[yyj1892] = IngressTLS{} } else { - yyv1889 := &yyv1887[yyj1887] - yyv1889.CodecDecodeSelf(d) + yyv1894 := &yyv1892[yyj1892] + yyv1894.CodecDecodeSelf(d) } } } } else { - yyj1887 := 0 - for ; !r.CheckBreak(); yyj1887++ { + yyj1892 := 0 + for ; !r.CheckBreak(); yyj1892++ { - if yyj1887 >= len(yyv1887) { - yyv1887 = append(yyv1887, IngressTLS{}) // var yyz1887 IngressTLS - yyc1887 = true + if yyj1892 >= len(yyv1892) { + yyv1892 = append(yyv1892, IngressTLS{}) // var yyz1892 IngressTLS + yyc1892 = true } - yyh1887.ElemContainerState(yyj1887) - if yyj1887 < len(yyv1887) { + yyh1892.ElemContainerState(yyj1892) + if yyj1892 < len(yyv1892) { if r.TryDecodeAsNil() { - yyv1887[yyj1887] = IngressTLS{} + yyv1892[yyj1892] = IngressTLS{} } else { - yyv1890 := &yyv1887[yyj1887] - yyv1890.CodecDecodeSelf(d) + yyv1895 := &yyv1892[yyj1892] + yyv1895.CodecDecodeSelf(d) } } else { @@ -23090,17 +23138,17 @@ func (x codecSelfer1234) decSliceIngressTLS(v *[]IngressTLS, d *codec1978.Decode } } - if yyj1887 < len(yyv1887) { - yyv1887 = yyv1887[:yyj1887] - yyc1887 = true - } else if yyj1887 == 0 && yyv1887 == nil { - yyv1887 = []IngressTLS{} - yyc1887 = true + if yyj1892 < len(yyv1892) { + yyv1892 = yyv1892[:yyj1892] + yyc1892 = true + } else if yyj1892 == 0 && yyv1892 == nil { + yyv1892 = []IngressTLS{} + yyc1892 = true } } - yyh1887.End() - if yyc1887 { - *v = yyv1887 + yyh1892.End() + if yyc1892 { + *v = yyv1892 } } @@ -23109,10 +23157,10 @@ func (x codecSelfer1234) encSliceIngressRule(v []IngressRule, e *codec1978.Encod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1891 := range v { + for _, yyv1896 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1892 := &yyv1891 - yy1892.CodecEncodeSelf(e) + yy1897 := &yyv1896 + yy1897.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23122,83 +23170,83 @@ func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Deco z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1893 := *v - yyh1893, yyl1893 := z.DecSliceHelperStart() - var yyc1893 bool - if yyl1893 == 0 { - if yyv1893 == nil { - yyv1893 = []IngressRule{} - yyc1893 = true - } else if len(yyv1893) != 0 { - yyv1893 = yyv1893[:0] - yyc1893 = true + yyv1898 := *v + yyh1898, yyl1898 := z.DecSliceHelperStart() + var yyc1898 bool + if yyl1898 == 0 { + if yyv1898 == nil { + yyv1898 = []IngressRule{} + yyc1898 = true + } else if len(yyv1898) != 0 { + yyv1898 = yyv1898[:0] + yyc1898 = true } - } else if yyl1893 > 0 { - var yyrr1893, yyrl1893 int - var yyrt1893 bool - if yyl1893 > cap(yyv1893) { + } else if yyl1898 > 0 { + var yyrr1898, yyrl1898 int + var yyrt1898 bool + if yyl1898 > cap(yyv1898) { - yyrg1893 := len(yyv1893) > 0 - yyv21893 := yyv1893 - yyrl1893, yyrt1893 = z.DecInferLen(yyl1893, z.DecBasicHandle().MaxInitLen, 24) - if yyrt1893 { - if yyrl1893 <= cap(yyv1893) { - yyv1893 = yyv1893[:yyrl1893] + yyrg1898 := len(yyv1898) > 0 + yyv21898 := yyv1898 + yyrl1898, yyrt1898 = z.DecInferLen(yyl1898, z.DecBasicHandle().MaxInitLen, 24) + if yyrt1898 { + if yyrl1898 <= cap(yyv1898) { + yyv1898 = yyv1898[:yyrl1898] } else { - yyv1893 = make([]IngressRule, yyrl1893) + yyv1898 = make([]IngressRule, yyrl1898) } } else { - yyv1893 = make([]IngressRule, yyrl1893) + yyv1898 = make([]IngressRule, yyrl1898) } - yyc1893 = true - yyrr1893 = len(yyv1893) - if yyrg1893 { - copy(yyv1893, yyv21893) + yyc1898 = true + yyrr1898 = len(yyv1898) + if yyrg1898 { + copy(yyv1898, yyv21898) } - } else if yyl1893 != len(yyv1893) { - yyv1893 = yyv1893[:yyl1893] - yyc1893 = true + } else if yyl1898 != len(yyv1898) { + yyv1898 = yyv1898[:yyl1898] + yyc1898 = true } - yyj1893 := 0 - for ; yyj1893 < yyrr1893; yyj1893++ { - yyh1893.ElemContainerState(yyj1893) + yyj1898 := 0 + for ; yyj1898 < yyrr1898; yyj1898++ { + yyh1898.ElemContainerState(yyj1898) if r.TryDecodeAsNil() { - yyv1893[yyj1893] = IngressRule{} + yyv1898[yyj1898] = IngressRule{} } else { - yyv1894 := &yyv1893[yyj1893] - yyv1894.CodecDecodeSelf(d) + yyv1899 := &yyv1898[yyj1898] + yyv1899.CodecDecodeSelf(d) } } - if yyrt1893 { - for ; yyj1893 < yyl1893; yyj1893++ { - yyv1893 = append(yyv1893, IngressRule{}) - yyh1893.ElemContainerState(yyj1893) + if yyrt1898 { + for ; yyj1898 < yyl1898; yyj1898++ { + yyv1898 = append(yyv1898, IngressRule{}) + yyh1898.ElemContainerState(yyj1898) if r.TryDecodeAsNil() { - yyv1893[yyj1893] = IngressRule{} + yyv1898[yyj1898] = IngressRule{} } else { - yyv1895 := &yyv1893[yyj1893] - yyv1895.CodecDecodeSelf(d) + yyv1900 := &yyv1898[yyj1898] + yyv1900.CodecDecodeSelf(d) } } } } else { - yyj1893 := 0 - for ; !r.CheckBreak(); yyj1893++ { + yyj1898 := 0 + for ; !r.CheckBreak(); yyj1898++ { - if yyj1893 >= len(yyv1893) { - yyv1893 = append(yyv1893, IngressRule{}) // var yyz1893 IngressRule - yyc1893 = true + if yyj1898 >= len(yyv1898) { + yyv1898 = append(yyv1898, IngressRule{}) // var yyz1898 IngressRule + yyc1898 = true } - yyh1893.ElemContainerState(yyj1893) - if yyj1893 < len(yyv1893) { + yyh1898.ElemContainerState(yyj1898) + if yyj1898 < len(yyv1898) { if r.TryDecodeAsNil() { - yyv1893[yyj1893] = IngressRule{} + yyv1898[yyj1898] = IngressRule{} } else { - yyv1896 := &yyv1893[yyj1893] - yyv1896.CodecDecodeSelf(d) + yyv1901 := &yyv1898[yyj1898] + yyv1901.CodecDecodeSelf(d) } } else { @@ -23206,17 +23254,17 @@ func (x codecSelfer1234) decSliceIngressRule(v *[]IngressRule, d *codec1978.Deco } } - if yyj1893 < len(yyv1893) { - yyv1893 = yyv1893[:yyj1893] - yyc1893 = true - } else if yyj1893 == 0 && yyv1893 == nil { - yyv1893 = []IngressRule{} - yyc1893 = true + if yyj1898 < len(yyv1898) { + yyv1898 = yyv1898[:yyj1898] + yyc1898 = true + } else if yyj1898 == 0 && yyv1898 == nil { + yyv1898 = []IngressRule{} + yyc1898 = true } } - yyh1893.End() - if yyc1893 { - *v = yyv1893 + yyh1898.End() + if yyc1898 { + *v = yyv1898 } } @@ -23225,10 +23273,10 @@ func (x codecSelfer1234) encSliceHTTPIngressPath(v []HTTPIngressPath, e *codec19 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1897 := range v { + for _, yyv1902 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1898 := &yyv1897 - yy1898.CodecEncodeSelf(e) + yy1903 := &yyv1902 + yy1903.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23238,83 +23286,83 @@ func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1899 := *v - yyh1899, yyl1899 := z.DecSliceHelperStart() - var yyc1899 bool - if yyl1899 == 0 { - if yyv1899 == nil { - yyv1899 = []HTTPIngressPath{} - yyc1899 = true - } else if len(yyv1899) != 0 { - yyv1899 = yyv1899[:0] - yyc1899 = true + yyv1904 := *v + yyh1904, yyl1904 := z.DecSliceHelperStart() + var yyc1904 bool + if yyl1904 == 0 { + if yyv1904 == nil { + yyv1904 = []HTTPIngressPath{} + yyc1904 = true + } else if len(yyv1904) != 0 { + yyv1904 = yyv1904[:0] + yyc1904 = true } - } else if yyl1899 > 0 { - var yyrr1899, yyrl1899 int - var yyrt1899 bool - if yyl1899 > cap(yyv1899) { + } else if yyl1904 > 0 { + var yyrr1904, yyrl1904 int + var yyrt1904 bool + if yyl1904 > cap(yyv1904) { - yyrg1899 := len(yyv1899) > 0 - yyv21899 := yyv1899 - yyrl1899, yyrt1899 = z.DecInferLen(yyl1899, z.DecBasicHandle().MaxInitLen, 64) - if yyrt1899 { - if yyrl1899 <= cap(yyv1899) { - yyv1899 = yyv1899[:yyrl1899] + yyrg1904 := len(yyv1904) > 0 + yyv21904 := yyv1904 + yyrl1904, yyrt1904 = z.DecInferLen(yyl1904, z.DecBasicHandle().MaxInitLen, 64) + if yyrt1904 { + if yyrl1904 <= cap(yyv1904) { + yyv1904 = yyv1904[:yyrl1904] } else { - yyv1899 = make([]HTTPIngressPath, yyrl1899) + yyv1904 = make([]HTTPIngressPath, yyrl1904) } } else { - yyv1899 = make([]HTTPIngressPath, yyrl1899) + yyv1904 = make([]HTTPIngressPath, yyrl1904) } - yyc1899 = true - yyrr1899 = len(yyv1899) - if yyrg1899 { - copy(yyv1899, yyv21899) + yyc1904 = true + yyrr1904 = len(yyv1904) + if yyrg1904 { + copy(yyv1904, yyv21904) } - } else if yyl1899 != len(yyv1899) { - yyv1899 = yyv1899[:yyl1899] - yyc1899 = true + } else if yyl1904 != len(yyv1904) { + yyv1904 = yyv1904[:yyl1904] + yyc1904 = true } - yyj1899 := 0 - for ; yyj1899 < yyrr1899; yyj1899++ { - yyh1899.ElemContainerState(yyj1899) + yyj1904 := 0 + for ; yyj1904 < yyrr1904; yyj1904++ { + yyh1904.ElemContainerState(yyj1904) if r.TryDecodeAsNil() { - yyv1899[yyj1899] = HTTPIngressPath{} + yyv1904[yyj1904] = HTTPIngressPath{} } else { - yyv1900 := &yyv1899[yyj1899] - yyv1900.CodecDecodeSelf(d) + yyv1905 := &yyv1904[yyj1904] + yyv1905.CodecDecodeSelf(d) } } - if yyrt1899 { - for ; yyj1899 < yyl1899; yyj1899++ { - yyv1899 = append(yyv1899, HTTPIngressPath{}) - yyh1899.ElemContainerState(yyj1899) + if yyrt1904 { + for ; yyj1904 < yyl1904; yyj1904++ { + yyv1904 = append(yyv1904, HTTPIngressPath{}) + yyh1904.ElemContainerState(yyj1904) if r.TryDecodeAsNil() { - yyv1899[yyj1899] = HTTPIngressPath{} + yyv1904[yyj1904] = HTTPIngressPath{} } else { - yyv1901 := &yyv1899[yyj1899] - yyv1901.CodecDecodeSelf(d) + yyv1906 := &yyv1904[yyj1904] + yyv1906.CodecDecodeSelf(d) } } } } else { - yyj1899 := 0 - for ; !r.CheckBreak(); yyj1899++ { + yyj1904 := 0 + for ; !r.CheckBreak(); yyj1904++ { - if yyj1899 >= len(yyv1899) { - yyv1899 = append(yyv1899, HTTPIngressPath{}) // var yyz1899 HTTPIngressPath - yyc1899 = true + if yyj1904 >= len(yyv1904) { + yyv1904 = append(yyv1904, HTTPIngressPath{}) // var yyz1904 HTTPIngressPath + yyc1904 = true } - yyh1899.ElemContainerState(yyj1899) - if yyj1899 < len(yyv1899) { + yyh1904.ElemContainerState(yyj1904) + if yyj1904 < len(yyv1904) { if r.TryDecodeAsNil() { - yyv1899[yyj1899] = HTTPIngressPath{} + yyv1904[yyj1904] = HTTPIngressPath{} } else { - yyv1902 := &yyv1899[yyj1899] - yyv1902.CodecDecodeSelf(d) + yyv1907 := &yyv1904[yyj1904] + yyv1907.CodecDecodeSelf(d) } } else { @@ -23322,17 +23370,17 @@ func (x codecSelfer1234) decSliceHTTPIngressPath(v *[]HTTPIngressPath, d *codec1 } } - if yyj1899 < len(yyv1899) { - yyv1899 = yyv1899[:yyj1899] - yyc1899 = true - } else if yyj1899 == 0 && yyv1899 == nil { - yyv1899 = []HTTPIngressPath{} - yyc1899 = true + if yyj1904 < len(yyv1904) { + yyv1904 = yyv1904[:yyj1904] + yyc1904 = true + } else if yyj1904 == 0 && yyv1904 == nil { + yyv1904 = []HTTPIngressPath{} + yyc1904 = true } } - yyh1899.End() - if yyc1899 { - *v = yyv1899 + yyh1904.End() + if yyc1904 { + *v = yyv1904 } } @@ -23341,10 +23389,10 @@ func (x codecSelfer1234) encSliceLabelSelectorRequirement(v []LabelSelectorRequi z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1903 := range v { + for _, yyv1908 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1904 := &yyv1903 - yy1904.CodecEncodeSelf(e) + yy1909 := &yyv1908 + yy1909.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23354,83 +23402,83 @@ func (x codecSelfer1234) decSliceLabelSelectorRequirement(v *[]LabelSelectorRequ z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1905 := *v - yyh1905, yyl1905 := z.DecSliceHelperStart() - var yyc1905 bool - if yyl1905 == 0 { - if yyv1905 == nil { - yyv1905 = []LabelSelectorRequirement{} - yyc1905 = true - } else if len(yyv1905) != 0 { - yyv1905 = yyv1905[:0] - yyc1905 = true + yyv1910 := *v + yyh1910, yyl1910 := z.DecSliceHelperStart() + var yyc1910 bool + if yyl1910 == 0 { + if yyv1910 == nil { + yyv1910 = []LabelSelectorRequirement{} + yyc1910 = true + } else if len(yyv1910) != 0 { + yyv1910 = yyv1910[:0] + yyc1910 = true } - } else if yyl1905 > 0 { - var yyrr1905, yyrl1905 int - var yyrt1905 bool - if yyl1905 > cap(yyv1905) { + } else if yyl1910 > 0 { + var yyrr1910, yyrl1910 int + var yyrt1910 bool + if yyl1910 > cap(yyv1910) { - yyrg1905 := len(yyv1905) > 0 - yyv21905 := yyv1905 - yyrl1905, yyrt1905 = z.DecInferLen(yyl1905, z.DecBasicHandle().MaxInitLen, 56) - if yyrt1905 { - if yyrl1905 <= cap(yyv1905) { - yyv1905 = yyv1905[:yyrl1905] + yyrg1910 := len(yyv1910) > 0 + yyv21910 := yyv1910 + yyrl1910, yyrt1910 = z.DecInferLen(yyl1910, z.DecBasicHandle().MaxInitLen, 56) + if yyrt1910 { + if yyrl1910 <= cap(yyv1910) { + yyv1910 = yyv1910[:yyrl1910] } else { - yyv1905 = make([]LabelSelectorRequirement, yyrl1905) + yyv1910 = make([]LabelSelectorRequirement, yyrl1910) } } else { - yyv1905 = make([]LabelSelectorRequirement, yyrl1905) + yyv1910 = make([]LabelSelectorRequirement, yyrl1910) } - yyc1905 = true - yyrr1905 = len(yyv1905) - if yyrg1905 { - copy(yyv1905, yyv21905) + yyc1910 = true + yyrr1910 = len(yyv1910) + if yyrg1910 { + copy(yyv1910, yyv21910) } - } else if yyl1905 != len(yyv1905) { - yyv1905 = yyv1905[:yyl1905] - yyc1905 = true + } else if yyl1910 != len(yyv1910) { + yyv1910 = yyv1910[:yyl1910] + yyc1910 = true } - yyj1905 := 0 - for ; yyj1905 < yyrr1905; yyj1905++ { - yyh1905.ElemContainerState(yyj1905) + yyj1910 := 0 + for ; yyj1910 < yyrr1910; yyj1910++ { + yyh1910.ElemContainerState(yyj1910) if r.TryDecodeAsNil() { - yyv1905[yyj1905] = LabelSelectorRequirement{} + yyv1910[yyj1910] = LabelSelectorRequirement{} } else { - yyv1906 := &yyv1905[yyj1905] - yyv1906.CodecDecodeSelf(d) + yyv1911 := &yyv1910[yyj1910] + yyv1911.CodecDecodeSelf(d) } } - if yyrt1905 { - for ; yyj1905 < yyl1905; yyj1905++ { - yyv1905 = append(yyv1905, LabelSelectorRequirement{}) - yyh1905.ElemContainerState(yyj1905) + if yyrt1910 { + for ; yyj1910 < yyl1910; yyj1910++ { + yyv1910 = append(yyv1910, LabelSelectorRequirement{}) + yyh1910.ElemContainerState(yyj1910) if r.TryDecodeAsNil() { - yyv1905[yyj1905] = LabelSelectorRequirement{} + yyv1910[yyj1910] = LabelSelectorRequirement{} } else { - yyv1907 := &yyv1905[yyj1905] - yyv1907.CodecDecodeSelf(d) + yyv1912 := &yyv1910[yyj1910] + yyv1912.CodecDecodeSelf(d) } } } } else { - yyj1905 := 0 - for ; !r.CheckBreak(); yyj1905++ { + yyj1910 := 0 + for ; !r.CheckBreak(); yyj1910++ { - if yyj1905 >= len(yyv1905) { - yyv1905 = append(yyv1905, LabelSelectorRequirement{}) // var yyz1905 LabelSelectorRequirement - yyc1905 = true + if yyj1910 >= len(yyv1910) { + yyv1910 = append(yyv1910, LabelSelectorRequirement{}) // var yyz1910 LabelSelectorRequirement + yyc1910 = true } - yyh1905.ElemContainerState(yyj1905) - if yyj1905 < len(yyv1905) { + yyh1910.ElemContainerState(yyj1910) + if yyj1910 < len(yyv1910) { if r.TryDecodeAsNil() { - yyv1905[yyj1905] = LabelSelectorRequirement{} + yyv1910[yyj1910] = LabelSelectorRequirement{} } else { - yyv1908 := &yyv1905[yyj1905] - yyv1908.CodecDecodeSelf(d) + yyv1913 := &yyv1910[yyj1910] + yyv1913.CodecDecodeSelf(d) } } else { @@ -23438,17 +23486,17 @@ func (x codecSelfer1234) decSliceLabelSelectorRequirement(v *[]LabelSelectorRequ } } - if yyj1905 < len(yyv1905) { - yyv1905 = yyv1905[:yyj1905] - yyc1905 = true - } else if yyj1905 == 0 && yyv1905 == nil { - yyv1905 = []LabelSelectorRequirement{} - yyc1905 = true + if yyj1910 < len(yyv1910) { + yyv1910 = yyv1910[:yyj1910] + yyc1910 = true + } else if yyj1910 == 0 && yyv1910 == nil { + yyv1910 = []LabelSelectorRequirement{} + yyc1910 = true } } - yyh1905.End() - if yyc1905 { - *v = yyv1905 + yyh1910.End() + if yyc1910 { + *v = yyv1910 } } @@ -23457,10 +23505,10 @@ func (x codecSelfer1234) encSliceReplicaSet(v []ReplicaSet, e *codec1978.Encoder z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1909 := range v { + for _, yyv1914 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1910 := &yyv1909 - yy1910.CodecEncodeSelf(e) + yy1915 := &yyv1914 + yy1915.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23470,83 +23518,83 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1911 := *v - yyh1911, yyl1911 := z.DecSliceHelperStart() - var yyc1911 bool - if yyl1911 == 0 { - if yyv1911 == nil { - yyv1911 = []ReplicaSet{} - yyc1911 = true - } else if len(yyv1911) != 0 { - yyv1911 = yyv1911[:0] - yyc1911 = true + yyv1916 := *v + yyh1916, yyl1916 := z.DecSliceHelperStart() + var yyc1916 bool + if yyl1916 == 0 { + if yyv1916 == nil { + yyv1916 = []ReplicaSet{} + yyc1916 = true + } else if len(yyv1916) != 0 { + yyv1916 = yyv1916[:0] + yyc1916 = true } - } else if yyl1911 > 0 { - var yyrr1911, yyrl1911 int - var yyrt1911 bool - if yyl1911 > cap(yyv1911) { + } else if yyl1916 > 0 { + var yyrr1916, yyrl1916 int + var yyrt1916 bool + if yyl1916 > cap(yyv1916) { - yyrg1911 := len(yyv1911) > 0 - yyv21911 := yyv1911 - yyrl1911, yyrt1911 = z.DecInferLen(yyl1911, z.DecBasicHandle().MaxInitLen, 728) - if yyrt1911 { - if yyrl1911 <= cap(yyv1911) { - yyv1911 = yyv1911[:yyrl1911] + yyrg1916 := len(yyv1916) > 0 + yyv21916 := yyv1916 + yyrl1916, yyrt1916 = z.DecInferLen(yyl1916, z.DecBasicHandle().MaxInitLen, 768) + if yyrt1916 { + if yyrl1916 <= cap(yyv1916) { + yyv1916 = yyv1916[:yyrl1916] } else { - yyv1911 = make([]ReplicaSet, yyrl1911) + yyv1916 = make([]ReplicaSet, yyrl1916) } } else { - yyv1911 = make([]ReplicaSet, yyrl1911) + yyv1916 = make([]ReplicaSet, yyrl1916) } - yyc1911 = true - yyrr1911 = len(yyv1911) - if yyrg1911 { - copy(yyv1911, yyv21911) + yyc1916 = true + yyrr1916 = len(yyv1916) + if yyrg1916 { + copy(yyv1916, yyv21916) } - } else if yyl1911 != len(yyv1911) { - yyv1911 = yyv1911[:yyl1911] - yyc1911 = true + } else if yyl1916 != len(yyv1916) { + yyv1916 = yyv1916[:yyl1916] + yyc1916 = true } - yyj1911 := 0 - for ; yyj1911 < yyrr1911; yyj1911++ { - yyh1911.ElemContainerState(yyj1911) + yyj1916 := 0 + for ; yyj1916 < yyrr1916; yyj1916++ { + yyh1916.ElemContainerState(yyj1916) if r.TryDecodeAsNil() { - yyv1911[yyj1911] = ReplicaSet{} + yyv1916[yyj1916] = ReplicaSet{} } else { - yyv1912 := &yyv1911[yyj1911] - yyv1912.CodecDecodeSelf(d) + yyv1917 := &yyv1916[yyj1916] + yyv1917.CodecDecodeSelf(d) } } - if yyrt1911 { - for ; yyj1911 < yyl1911; yyj1911++ { - yyv1911 = append(yyv1911, ReplicaSet{}) - yyh1911.ElemContainerState(yyj1911) + if yyrt1916 { + for ; yyj1916 < yyl1916; yyj1916++ { + yyv1916 = append(yyv1916, ReplicaSet{}) + yyh1916.ElemContainerState(yyj1916) if r.TryDecodeAsNil() { - yyv1911[yyj1911] = ReplicaSet{} + yyv1916[yyj1916] = ReplicaSet{} } else { - yyv1913 := &yyv1911[yyj1911] - yyv1913.CodecDecodeSelf(d) + yyv1918 := &yyv1916[yyj1916] + yyv1918.CodecDecodeSelf(d) } } } } else { - yyj1911 := 0 - for ; !r.CheckBreak(); yyj1911++ { + yyj1916 := 0 + for ; !r.CheckBreak(); yyj1916++ { - if yyj1911 >= len(yyv1911) { - yyv1911 = append(yyv1911, ReplicaSet{}) // var yyz1911 ReplicaSet - yyc1911 = true + if yyj1916 >= len(yyv1916) { + yyv1916 = append(yyv1916, ReplicaSet{}) // var yyz1916 ReplicaSet + yyc1916 = true } - yyh1911.ElemContainerState(yyj1911) - if yyj1911 < len(yyv1911) { + yyh1916.ElemContainerState(yyj1916) + if yyj1916 < len(yyv1916) { if r.TryDecodeAsNil() { - yyv1911[yyj1911] = ReplicaSet{} + yyv1916[yyj1916] = ReplicaSet{} } else { - yyv1914 := &yyv1911[yyj1911] - yyv1914.CodecDecodeSelf(d) + yyv1919 := &yyv1916[yyj1916] + yyv1919.CodecDecodeSelf(d) } } else { @@ -23554,17 +23602,17 @@ func (x codecSelfer1234) decSliceReplicaSet(v *[]ReplicaSet, d *codec1978.Decode } } - if yyj1911 < len(yyv1911) { - yyv1911 = yyv1911[:yyj1911] - yyc1911 = true - } else if yyj1911 == 0 && yyv1911 == nil { - yyv1911 = []ReplicaSet{} - yyc1911 = true + if yyj1916 < len(yyv1916) { + yyv1916 = yyv1916[:yyj1916] + yyc1916 = true + } else if yyj1916 == 0 && yyv1916 == nil { + yyv1916 = []ReplicaSet{} + yyc1916 = true } } - yyh1911.End() - if yyc1911 { - *v = yyv1911 + yyh1916.End() + if yyc1916 { + *v = yyv1916 } } @@ -23573,14 +23621,14 @@ func (x codecSelfer1234) encSlicev1_Capability(v []pkg2_v1.Capability, e *codec1 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1915 := range v { + for _, yyv1920 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yym1916 := z.EncBinary() - _ = yym1916 + yym1921 := z.EncBinary() + _ = yym1921 if false { - } else if z.HasExtensions() && z.EncExt(yyv1915) { + } else if z.HasExtensions() && z.EncExt(yyv1920) { } else { - r.EncodeString(codecSelferC_UTF81234, string(yyv1915)) + r.EncodeString(codecSelferC_UTF81234, string(yyv1920)) } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) @@ -23591,119 +23639,12 @@ func (x codecSelfer1234) decSlicev1_Capability(v *[]pkg2_v1.Capability, d *codec z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1917 := *v - yyh1917, yyl1917 := z.DecSliceHelperStart() - var yyc1917 bool - if yyl1917 == 0 { - if yyv1917 == nil { - yyv1917 = []pkg2_v1.Capability{} - yyc1917 = true - } else if len(yyv1917) != 0 { - yyv1917 = yyv1917[:0] - yyc1917 = true - } - } else if yyl1917 > 0 { - var yyrr1917, yyrl1917 int - var yyrt1917 bool - if yyl1917 > cap(yyv1917) { - - yyrl1917, yyrt1917 = z.DecInferLen(yyl1917, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1917 { - if yyrl1917 <= cap(yyv1917) { - yyv1917 = yyv1917[:yyrl1917] - } else { - yyv1917 = make([]pkg2_v1.Capability, yyrl1917) - } - } else { - yyv1917 = make([]pkg2_v1.Capability, yyrl1917) - } - yyc1917 = true - yyrr1917 = len(yyv1917) - } else if yyl1917 != len(yyv1917) { - yyv1917 = yyv1917[:yyl1917] - yyc1917 = true - } - yyj1917 := 0 - for ; yyj1917 < yyrr1917; yyj1917++ { - yyh1917.ElemContainerState(yyj1917) - if r.TryDecodeAsNil() { - yyv1917[yyj1917] = "" - } else { - yyv1917[yyj1917] = pkg2_v1.Capability(r.DecodeString()) - } - - } - if yyrt1917 { - for ; yyj1917 < yyl1917; yyj1917++ { - yyv1917 = append(yyv1917, "") - yyh1917.ElemContainerState(yyj1917) - if r.TryDecodeAsNil() { - yyv1917[yyj1917] = "" - } else { - yyv1917[yyj1917] = pkg2_v1.Capability(r.DecodeString()) - } - - } - } - - } else { - yyj1917 := 0 - for ; !r.CheckBreak(); yyj1917++ { - - if yyj1917 >= len(yyv1917) { - yyv1917 = append(yyv1917, "") // var yyz1917 pkg2_v1.Capability - yyc1917 = true - } - yyh1917.ElemContainerState(yyj1917) - if yyj1917 < len(yyv1917) { - if r.TryDecodeAsNil() { - yyv1917[yyj1917] = "" - } else { - yyv1917[yyj1917] = pkg2_v1.Capability(r.DecodeString()) - } - - } else { - z.DecSwallow() - } - - } - if yyj1917 < len(yyv1917) { - yyv1917 = yyv1917[:yyj1917] - yyc1917 = true - } else if yyj1917 == 0 && yyv1917 == nil { - yyv1917 = []pkg2_v1.Capability{} - yyc1917 = true - } - } - yyh1917.End() - if yyc1917 { - *v = yyv1917 - } -} - -func (x codecSelfer1234) encSliceFSType(v []FSType, e *codec1978.Encoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperEncoder(e) - _, _, _ = h, z, r - r.EncodeArrayStart(len(v)) - for _, yyv1921 := range v { - z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yyv1921.CodecEncodeSelf(e) - } - z.EncSendContainerState(codecSelfer_containerArrayEnd1234) -} - -func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { - var h codecSelfer1234 - z, r := codec1978.GenHelperDecoder(d) - _, _, _ = h, z, r - yyv1922 := *v yyh1922, yyl1922 := z.DecSliceHelperStart() var yyc1922 bool if yyl1922 == 0 { if yyv1922 == nil { - yyv1922 = []FSType{} + yyv1922 = []pkg2_v1.Capability{} yyc1922 = true } else if len(yyv1922) != 0 { yyv1922 = yyv1922[:0] @@ -23719,10 +23660,10 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { if yyrl1922 <= cap(yyv1922) { yyv1922 = yyv1922[:yyrl1922] } else { - yyv1922 = make([]FSType, yyrl1922) + yyv1922 = make([]pkg2_v1.Capability, yyrl1922) } } else { - yyv1922 = make([]FSType, yyrl1922) + yyv1922 = make([]pkg2_v1.Capability, yyrl1922) } yyc1922 = true yyrr1922 = len(yyv1922) @@ -23736,7 +23677,7 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { if r.TryDecodeAsNil() { yyv1922[yyj1922] = "" } else { - yyv1922[yyj1922] = FSType(r.DecodeString()) + yyv1922[yyj1922] = pkg2_v1.Capability(r.DecodeString()) } } @@ -23747,7 +23688,7 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { if r.TryDecodeAsNil() { yyv1922[yyj1922] = "" } else { - yyv1922[yyj1922] = FSType(r.DecodeString()) + yyv1922[yyj1922] = pkg2_v1.Capability(r.DecodeString()) } } @@ -23758,7 +23699,7 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { for ; !r.CheckBreak(); yyj1922++ { if yyj1922 >= len(yyv1922) { - yyv1922 = append(yyv1922, "") // var yyz1922 FSType + yyv1922 = append(yyv1922, "") // var yyz1922 pkg2_v1.Capability yyc1922 = true } yyh1922.ElemContainerState(yyj1922) @@ -23766,7 +23707,7 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { if r.TryDecodeAsNil() { yyv1922[yyj1922] = "" } else { - yyv1922[yyj1922] = FSType(r.DecodeString()) + yyv1922[yyj1922] = pkg2_v1.Capability(r.DecodeString()) } } else { @@ -23778,7 +23719,7 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { yyv1922 = yyv1922[:yyj1922] yyc1922 = true } else if yyj1922 == 0 && yyv1922 == nil { - yyv1922 = []FSType{} + yyv1922 = []pkg2_v1.Capability{} yyc1922 = true } } @@ -23788,15 +23729,122 @@ func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { } } -func (x codecSelfer1234) encSliceHostPortRange(v []HostPortRange, e *codec1978.Encoder) { +func (x codecSelfer1234) encSliceFSType(v []FSType, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv1926 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1927 := &yyv1926 - yy1927.CodecEncodeSelf(e) + yyv1926.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceFSType(v *[]FSType, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv1927 := *v + yyh1927, yyl1927 := z.DecSliceHelperStart() + var yyc1927 bool + if yyl1927 == 0 { + if yyv1927 == nil { + yyv1927 = []FSType{} + yyc1927 = true + } else if len(yyv1927) != 0 { + yyv1927 = yyv1927[:0] + yyc1927 = true + } + } else if yyl1927 > 0 { + var yyrr1927, yyrl1927 int + var yyrt1927 bool + if yyl1927 > cap(yyv1927) { + + yyrl1927, yyrt1927 = z.DecInferLen(yyl1927, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1927 { + if yyrl1927 <= cap(yyv1927) { + yyv1927 = yyv1927[:yyrl1927] + } else { + yyv1927 = make([]FSType, yyrl1927) + } + } else { + yyv1927 = make([]FSType, yyrl1927) + } + yyc1927 = true + yyrr1927 = len(yyv1927) + } else if yyl1927 != len(yyv1927) { + yyv1927 = yyv1927[:yyl1927] + yyc1927 = true + } + yyj1927 := 0 + for ; yyj1927 < yyrr1927; yyj1927++ { + yyh1927.ElemContainerState(yyj1927) + if r.TryDecodeAsNil() { + yyv1927[yyj1927] = "" + } else { + yyv1927[yyj1927] = FSType(r.DecodeString()) + } + + } + if yyrt1927 { + for ; yyj1927 < yyl1927; yyj1927++ { + yyv1927 = append(yyv1927, "") + yyh1927.ElemContainerState(yyj1927) + if r.TryDecodeAsNil() { + yyv1927[yyj1927] = "" + } else { + yyv1927[yyj1927] = FSType(r.DecodeString()) + } + + } + } + + } else { + yyj1927 := 0 + for ; !r.CheckBreak(); yyj1927++ { + + if yyj1927 >= len(yyv1927) { + yyv1927 = append(yyv1927, "") // var yyz1927 FSType + yyc1927 = true + } + yyh1927.ElemContainerState(yyj1927) + if yyj1927 < len(yyv1927) { + if r.TryDecodeAsNil() { + yyv1927[yyj1927] = "" + } else { + yyv1927[yyj1927] = FSType(r.DecodeString()) + } + + } else { + z.DecSwallow() + } + + } + if yyj1927 < len(yyv1927) { + yyv1927 = yyv1927[:yyj1927] + yyc1927 = true + } else if yyj1927 == 0 && yyv1927 == nil { + yyv1927 = []FSType{} + yyc1927 = true + } + } + yyh1927.End() + if yyc1927 { + *v = yyv1927 + } +} + +func (x codecSelfer1234) encSliceHostPortRange(v []HostPortRange, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv1931 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy1932 := &yyv1931 + yy1932.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23806,83 +23854,83 @@ func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1928 := *v - yyh1928, yyl1928 := z.DecSliceHelperStart() - var yyc1928 bool - if yyl1928 == 0 { - if yyv1928 == nil { - yyv1928 = []HostPortRange{} - yyc1928 = true - } else if len(yyv1928) != 0 { - yyv1928 = yyv1928[:0] - yyc1928 = true + yyv1933 := *v + yyh1933, yyl1933 := z.DecSliceHelperStart() + var yyc1933 bool + if yyl1933 == 0 { + if yyv1933 == nil { + yyv1933 = []HostPortRange{} + yyc1933 = true + } else if len(yyv1933) != 0 { + yyv1933 = yyv1933[:0] + yyc1933 = true } - } else if yyl1928 > 0 { - var yyrr1928, yyrl1928 int - var yyrt1928 bool - if yyl1928 > cap(yyv1928) { + } else if yyl1933 > 0 { + var yyrr1933, yyrl1933 int + var yyrt1933 bool + if yyl1933 > cap(yyv1933) { - yyrg1928 := len(yyv1928) > 0 - yyv21928 := yyv1928 - yyrl1928, yyrt1928 = z.DecInferLen(yyl1928, z.DecBasicHandle().MaxInitLen, 8) - if yyrt1928 { - if yyrl1928 <= cap(yyv1928) { - yyv1928 = yyv1928[:yyrl1928] + yyrg1933 := len(yyv1933) > 0 + yyv21933 := yyv1933 + yyrl1933, yyrt1933 = z.DecInferLen(yyl1933, z.DecBasicHandle().MaxInitLen, 8) + if yyrt1933 { + if yyrl1933 <= cap(yyv1933) { + yyv1933 = yyv1933[:yyrl1933] } else { - yyv1928 = make([]HostPortRange, yyrl1928) + yyv1933 = make([]HostPortRange, yyrl1933) } } else { - yyv1928 = make([]HostPortRange, yyrl1928) + yyv1933 = make([]HostPortRange, yyrl1933) } - yyc1928 = true - yyrr1928 = len(yyv1928) - if yyrg1928 { - copy(yyv1928, yyv21928) + yyc1933 = true + yyrr1933 = len(yyv1933) + if yyrg1933 { + copy(yyv1933, yyv21933) } - } else if yyl1928 != len(yyv1928) { - yyv1928 = yyv1928[:yyl1928] - yyc1928 = true + } else if yyl1933 != len(yyv1933) { + yyv1933 = yyv1933[:yyl1933] + yyc1933 = true } - yyj1928 := 0 - for ; yyj1928 < yyrr1928; yyj1928++ { - yyh1928.ElemContainerState(yyj1928) + yyj1933 := 0 + for ; yyj1933 < yyrr1933; yyj1933++ { + yyh1933.ElemContainerState(yyj1933) if r.TryDecodeAsNil() { - yyv1928[yyj1928] = HostPortRange{} + yyv1933[yyj1933] = HostPortRange{} } else { - yyv1929 := &yyv1928[yyj1928] - yyv1929.CodecDecodeSelf(d) + yyv1934 := &yyv1933[yyj1933] + yyv1934.CodecDecodeSelf(d) } } - if yyrt1928 { - for ; yyj1928 < yyl1928; yyj1928++ { - yyv1928 = append(yyv1928, HostPortRange{}) - yyh1928.ElemContainerState(yyj1928) + if yyrt1933 { + for ; yyj1933 < yyl1933; yyj1933++ { + yyv1933 = append(yyv1933, HostPortRange{}) + yyh1933.ElemContainerState(yyj1933) if r.TryDecodeAsNil() { - yyv1928[yyj1928] = HostPortRange{} + yyv1933[yyj1933] = HostPortRange{} } else { - yyv1930 := &yyv1928[yyj1928] - yyv1930.CodecDecodeSelf(d) + yyv1935 := &yyv1933[yyj1933] + yyv1935.CodecDecodeSelf(d) } } } } else { - yyj1928 := 0 - for ; !r.CheckBreak(); yyj1928++ { + yyj1933 := 0 + for ; !r.CheckBreak(); yyj1933++ { - if yyj1928 >= len(yyv1928) { - yyv1928 = append(yyv1928, HostPortRange{}) // var yyz1928 HostPortRange - yyc1928 = true + if yyj1933 >= len(yyv1933) { + yyv1933 = append(yyv1933, HostPortRange{}) // var yyz1933 HostPortRange + yyc1933 = true } - yyh1928.ElemContainerState(yyj1928) - if yyj1928 < len(yyv1928) { + yyh1933.ElemContainerState(yyj1933) + if yyj1933 < len(yyv1933) { if r.TryDecodeAsNil() { - yyv1928[yyj1928] = HostPortRange{} + yyv1933[yyj1933] = HostPortRange{} } else { - yyv1931 := &yyv1928[yyj1928] - yyv1931.CodecDecodeSelf(d) + yyv1936 := &yyv1933[yyj1933] + yyv1936.CodecDecodeSelf(d) } } else { @@ -23890,17 +23938,17 @@ func (x codecSelfer1234) decSliceHostPortRange(v *[]HostPortRange, d *codec1978. } } - if yyj1928 < len(yyv1928) { - yyv1928 = yyv1928[:yyj1928] - yyc1928 = true - } else if yyj1928 == 0 && yyv1928 == nil { - yyv1928 = []HostPortRange{} - yyc1928 = true + if yyj1933 < len(yyv1933) { + yyv1933 = yyv1933[:yyj1933] + yyc1933 = true + } else if yyj1933 == 0 && yyv1933 == nil { + yyv1933 = []HostPortRange{} + yyc1933 = true } } - yyh1928.End() - if yyc1928 { - *v = yyv1928 + yyh1933.End() + if yyc1933 { + *v = yyv1933 } } @@ -23909,10 +23957,10 @@ func (x codecSelfer1234) encSliceIDRange(v []IDRange, e *codec1978.Encoder) { z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1932 := range v { + for _, yyv1937 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1933 := &yyv1932 - yy1933.CodecEncodeSelf(e) + yy1938 := &yyv1937 + yy1938.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -23922,83 +23970,83 @@ func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1934 := *v - yyh1934, yyl1934 := z.DecSliceHelperStart() - var yyc1934 bool - if yyl1934 == 0 { - if yyv1934 == nil { - yyv1934 = []IDRange{} - yyc1934 = true - } else if len(yyv1934) != 0 { - yyv1934 = yyv1934[:0] - yyc1934 = true + yyv1939 := *v + yyh1939, yyl1939 := z.DecSliceHelperStart() + var yyc1939 bool + if yyl1939 == 0 { + if yyv1939 == nil { + yyv1939 = []IDRange{} + yyc1939 = true + } else if len(yyv1939) != 0 { + yyv1939 = yyv1939[:0] + yyc1939 = true } - } else if yyl1934 > 0 { - var yyrr1934, yyrl1934 int - var yyrt1934 bool - if yyl1934 > cap(yyv1934) { + } else if yyl1939 > 0 { + var yyrr1939, yyrl1939 int + var yyrt1939 bool + if yyl1939 > cap(yyv1939) { - yyrg1934 := len(yyv1934) > 0 - yyv21934 := yyv1934 - yyrl1934, yyrt1934 = z.DecInferLen(yyl1934, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1934 { - if yyrl1934 <= cap(yyv1934) { - yyv1934 = yyv1934[:yyrl1934] + yyrg1939 := len(yyv1939) > 0 + yyv21939 := yyv1939 + yyrl1939, yyrt1939 = z.DecInferLen(yyl1939, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1939 { + if yyrl1939 <= cap(yyv1939) { + yyv1939 = yyv1939[:yyrl1939] } else { - yyv1934 = make([]IDRange, yyrl1934) + yyv1939 = make([]IDRange, yyrl1939) } } else { - yyv1934 = make([]IDRange, yyrl1934) + yyv1939 = make([]IDRange, yyrl1939) } - yyc1934 = true - yyrr1934 = len(yyv1934) - if yyrg1934 { - copy(yyv1934, yyv21934) + yyc1939 = true + yyrr1939 = len(yyv1939) + if yyrg1939 { + copy(yyv1939, yyv21939) } - } else if yyl1934 != len(yyv1934) { - yyv1934 = yyv1934[:yyl1934] - yyc1934 = true + } else if yyl1939 != len(yyv1939) { + yyv1939 = yyv1939[:yyl1939] + yyc1939 = true } - yyj1934 := 0 - for ; yyj1934 < yyrr1934; yyj1934++ { - yyh1934.ElemContainerState(yyj1934) + yyj1939 := 0 + for ; yyj1939 < yyrr1939; yyj1939++ { + yyh1939.ElemContainerState(yyj1939) if r.TryDecodeAsNil() { - yyv1934[yyj1934] = IDRange{} + yyv1939[yyj1939] = IDRange{} } else { - yyv1935 := &yyv1934[yyj1934] - yyv1935.CodecDecodeSelf(d) + yyv1940 := &yyv1939[yyj1939] + yyv1940.CodecDecodeSelf(d) } } - if yyrt1934 { - for ; yyj1934 < yyl1934; yyj1934++ { - yyv1934 = append(yyv1934, IDRange{}) - yyh1934.ElemContainerState(yyj1934) + if yyrt1939 { + for ; yyj1939 < yyl1939; yyj1939++ { + yyv1939 = append(yyv1939, IDRange{}) + yyh1939.ElemContainerState(yyj1939) if r.TryDecodeAsNil() { - yyv1934[yyj1934] = IDRange{} + yyv1939[yyj1939] = IDRange{} } else { - yyv1936 := &yyv1934[yyj1934] - yyv1936.CodecDecodeSelf(d) + yyv1941 := &yyv1939[yyj1939] + yyv1941.CodecDecodeSelf(d) } } } } else { - yyj1934 := 0 - for ; !r.CheckBreak(); yyj1934++ { + yyj1939 := 0 + for ; !r.CheckBreak(); yyj1939++ { - if yyj1934 >= len(yyv1934) { - yyv1934 = append(yyv1934, IDRange{}) // var yyz1934 IDRange - yyc1934 = true + if yyj1939 >= len(yyv1939) { + yyv1939 = append(yyv1939, IDRange{}) // var yyz1939 IDRange + yyc1939 = true } - yyh1934.ElemContainerState(yyj1934) - if yyj1934 < len(yyv1934) { + yyh1939.ElemContainerState(yyj1939) + if yyj1939 < len(yyv1939) { if r.TryDecodeAsNil() { - yyv1934[yyj1934] = IDRange{} + yyv1939[yyj1939] = IDRange{} } else { - yyv1937 := &yyv1934[yyj1934] - yyv1937.CodecDecodeSelf(d) + yyv1942 := &yyv1939[yyj1939] + yyv1942.CodecDecodeSelf(d) } } else { @@ -24006,17 +24054,17 @@ func (x codecSelfer1234) decSliceIDRange(v *[]IDRange, d *codec1978.Decoder) { } } - if yyj1934 < len(yyv1934) { - yyv1934 = yyv1934[:yyj1934] - yyc1934 = true - } else if yyj1934 == 0 && yyv1934 == nil { - yyv1934 = []IDRange{} - yyc1934 = true + if yyj1939 < len(yyv1939) { + yyv1939 = yyv1939[:yyj1939] + yyc1939 = true + } else if yyj1939 == 0 && yyv1939 == nil { + yyv1939 = []IDRange{} + yyc1939 = true } } - yyh1934.End() - if yyc1934 { - *v = yyv1934 + yyh1939.End() + if yyc1939 { + *v = yyv1939 } } @@ -24025,10 +24073,10 @@ func (x codecSelfer1234) encSlicePodSecurityPolicy(v []PodSecurityPolicy, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1938 := range v { + for _, yyv1943 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1939 := &yyv1938 - yy1939.CodecEncodeSelf(e) + yy1944 := &yyv1943 + yy1944.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24038,83 +24086,83 @@ func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1940 := *v - yyh1940, yyl1940 := z.DecSliceHelperStart() - var yyc1940 bool - if yyl1940 == 0 { - if yyv1940 == nil { - yyv1940 = []PodSecurityPolicy{} - yyc1940 = true - } else if len(yyv1940) != 0 { - yyv1940 = yyv1940[:0] - yyc1940 = true + yyv1945 := *v + yyh1945, yyl1945 := z.DecSliceHelperStart() + var yyc1945 bool + if yyl1945 == 0 { + if yyv1945 == nil { + yyv1945 = []PodSecurityPolicy{} + yyc1945 = true + } else if len(yyv1945) != 0 { + yyv1945 = yyv1945[:0] + yyc1945 = true } - } else if yyl1940 > 0 { - var yyrr1940, yyrl1940 int - var yyrt1940 bool - if yyl1940 > cap(yyv1940) { + } else if yyl1945 > 0 { + var yyrr1945, yyrl1945 int + var yyrt1945 bool + if yyl1945 > cap(yyv1945) { - yyrg1940 := len(yyv1940) > 0 - yyv21940 := yyv1940 - yyrl1940, yyrt1940 = z.DecInferLen(yyl1940, z.DecBasicHandle().MaxInitLen, 536) - if yyrt1940 { - if yyrl1940 <= cap(yyv1940) { - yyv1940 = yyv1940[:yyrl1940] + yyrg1945 := len(yyv1945) > 0 + yyv21945 := yyv1945 + yyrl1945, yyrt1945 = z.DecInferLen(yyl1945, z.DecBasicHandle().MaxInitLen, 552) + if yyrt1945 { + if yyrl1945 <= cap(yyv1945) { + yyv1945 = yyv1945[:yyrl1945] } else { - yyv1940 = make([]PodSecurityPolicy, yyrl1940) + yyv1945 = make([]PodSecurityPolicy, yyrl1945) } } else { - yyv1940 = make([]PodSecurityPolicy, yyrl1940) + yyv1945 = make([]PodSecurityPolicy, yyrl1945) } - yyc1940 = true - yyrr1940 = len(yyv1940) - if yyrg1940 { - copy(yyv1940, yyv21940) + yyc1945 = true + yyrr1945 = len(yyv1945) + if yyrg1945 { + copy(yyv1945, yyv21945) } - } else if yyl1940 != len(yyv1940) { - yyv1940 = yyv1940[:yyl1940] - yyc1940 = true + } else if yyl1945 != len(yyv1945) { + yyv1945 = yyv1945[:yyl1945] + yyc1945 = true } - yyj1940 := 0 - for ; yyj1940 < yyrr1940; yyj1940++ { - yyh1940.ElemContainerState(yyj1940) + yyj1945 := 0 + for ; yyj1945 < yyrr1945; yyj1945++ { + yyh1945.ElemContainerState(yyj1945) if r.TryDecodeAsNil() { - yyv1940[yyj1940] = PodSecurityPolicy{} + yyv1945[yyj1945] = PodSecurityPolicy{} } else { - yyv1941 := &yyv1940[yyj1940] - yyv1941.CodecDecodeSelf(d) + yyv1946 := &yyv1945[yyj1945] + yyv1946.CodecDecodeSelf(d) } } - if yyrt1940 { - for ; yyj1940 < yyl1940; yyj1940++ { - yyv1940 = append(yyv1940, PodSecurityPolicy{}) - yyh1940.ElemContainerState(yyj1940) + if yyrt1945 { + for ; yyj1945 < yyl1945; yyj1945++ { + yyv1945 = append(yyv1945, PodSecurityPolicy{}) + yyh1945.ElemContainerState(yyj1945) if r.TryDecodeAsNil() { - yyv1940[yyj1940] = PodSecurityPolicy{} + yyv1945[yyj1945] = PodSecurityPolicy{} } else { - yyv1942 := &yyv1940[yyj1940] - yyv1942.CodecDecodeSelf(d) + yyv1947 := &yyv1945[yyj1945] + yyv1947.CodecDecodeSelf(d) } } } } else { - yyj1940 := 0 - for ; !r.CheckBreak(); yyj1940++ { + yyj1945 := 0 + for ; !r.CheckBreak(); yyj1945++ { - if yyj1940 >= len(yyv1940) { - yyv1940 = append(yyv1940, PodSecurityPolicy{}) // var yyz1940 PodSecurityPolicy - yyc1940 = true + if yyj1945 >= len(yyv1945) { + yyv1945 = append(yyv1945, PodSecurityPolicy{}) // var yyz1945 PodSecurityPolicy + yyc1945 = true } - yyh1940.ElemContainerState(yyj1940) - if yyj1940 < len(yyv1940) { + yyh1945.ElemContainerState(yyj1945) + if yyj1945 < len(yyv1945) { if r.TryDecodeAsNil() { - yyv1940[yyj1940] = PodSecurityPolicy{} + yyv1945[yyj1945] = PodSecurityPolicy{} } else { - yyv1943 := &yyv1940[yyj1940] - yyv1943.CodecDecodeSelf(d) + yyv1948 := &yyv1945[yyj1945] + yyv1948.CodecDecodeSelf(d) } } else { @@ -24122,17 +24170,17 @@ func (x codecSelfer1234) decSlicePodSecurityPolicy(v *[]PodSecurityPolicy, d *co } } - if yyj1940 < len(yyv1940) { - yyv1940 = yyv1940[:yyj1940] - yyc1940 = true - } else if yyj1940 == 0 && yyv1940 == nil { - yyv1940 = []PodSecurityPolicy{} - yyc1940 = true + if yyj1945 < len(yyv1945) { + yyv1945 = yyv1945[:yyj1945] + yyc1945 = true + } else if yyj1945 == 0 && yyv1945 == nil { + yyv1945 = []PodSecurityPolicy{} + yyc1945 = true } } - yyh1940.End() - if yyc1940 { - *v = yyv1940 + yyh1945.End() + if yyc1945 { + *v = yyv1945 } } @@ -24141,10 +24189,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyIngressRule(v []NetworkPolicyIngre z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1944 := range v { + for _, yyv1949 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1945 := &yyv1944 - yy1945.CodecEncodeSelf(e) + yy1950 := &yyv1949 + yy1950.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24154,83 +24202,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngr z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1946 := *v - yyh1946, yyl1946 := z.DecSliceHelperStart() - var yyc1946 bool - if yyl1946 == 0 { - if yyv1946 == nil { - yyv1946 = []NetworkPolicyIngressRule{} - yyc1946 = true - } else if len(yyv1946) != 0 { - yyv1946 = yyv1946[:0] - yyc1946 = true + yyv1951 := *v + yyh1951, yyl1951 := z.DecSliceHelperStart() + var yyc1951 bool + if yyl1951 == 0 { + if yyv1951 == nil { + yyv1951 = []NetworkPolicyIngressRule{} + yyc1951 = true + } else if len(yyv1951) != 0 { + yyv1951 = yyv1951[:0] + yyc1951 = true } - } else if yyl1946 > 0 { - var yyrr1946, yyrl1946 int - var yyrt1946 bool - if yyl1946 > cap(yyv1946) { + } else if yyl1951 > 0 { + var yyrr1951, yyrl1951 int + var yyrt1951 bool + if yyl1951 > cap(yyv1951) { - yyrg1946 := len(yyv1946) > 0 - yyv21946 := yyv1946 - yyrl1946, yyrt1946 = z.DecInferLen(yyl1946, z.DecBasicHandle().MaxInitLen, 48) - if yyrt1946 { - if yyrl1946 <= cap(yyv1946) { - yyv1946 = yyv1946[:yyrl1946] + yyrg1951 := len(yyv1951) > 0 + yyv21951 := yyv1951 + yyrl1951, yyrt1951 = z.DecInferLen(yyl1951, z.DecBasicHandle().MaxInitLen, 48) + if yyrt1951 { + if yyrl1951 <= cap(yyv1951) { + yyv1951 = yyv1951[:yyrl1951] } else { - yyv1946 = make([]NetworkPolicyIngressRule, yyrl1946) + yyv1951 = make([]NetworkPolicyIngressRule, yyrl1951) } } else { - yyv1946 = make([]NetworkPolicyIngressRule, yyrl1946) + yyv1951 = make([]NetworkPolicyIngressRule, yyrl1951) } - yyc1946 = true - yyrr1946 = len(yyv1946) - if yyrg1946 { - copy(yyv1946, yyv21946) + yyc1951 = true + yyrr1951 = len(yyv1951) + if yyrg1951 { + copy(yyv1951, yyv21951) } - } else if yyl1946 != len(yyv1946) { - yyv1946 = yyv1946[:yyl1946] - yyc1946 = true + } else if yyl1951 != len(yyv1951) { + yyv1951 = yyv1951[:yyl1951] + yyc1951 = true } - yyj1946 := 0 - for ; yyj1946 < yyrr1946; yyj1946++ { - yyh1946.ElemContainerState(yyj1946) + yyj1951 := 0 + for ; yyj1951 < yyrr1951; yyj1951++ { + yyh1951.ElemContainerState(yyj1951) if r.TryDecodeAsNil() { - yyv1946[yyj1946] = NetworkPolicyIngressRule{} + yyv1951[yyj1951] = NetworkPolicyIngressRule{} } else { - yyv1947 := &yyv1946[yyj1946] - yyv1947.CodecDecodeSelf(d) + yyv1952 := &yyv1951[yyj1951] + yyv1952.CodecDecodeSelf(d) } } - if yyrt1946 { - for ; yyj1946 < yyl1946; yyj1946++ { - yyv1946 = append(yyv1946, NetworkPolicyIngressRule{}) - yyh1946.ElemContainerState(yyj1946) + if yyrt1951 { + for ; yyj1951 < yyl1951; yyj1951++ { + yyv1951 = append(yyv1951, NetworkPolicyIngressRule{}) + yyh1951.ElemContainerState(yyj1951) if r.TryDecodeAsNil() { - yyv1946[yyj1946] = NetworkPolicyIngressRule{} + yyv1951[yyj1951] = NetworkPolicyIngressRule{} } else { - yyv1948 := &yyv1946[yyj1946] - yyv1948.CodecDecodeSelf(d) + yyv1953 := &yyv1951[yyj1951] + yyv1953.CodecDecodeSelf(d) } } } } else { - yyj1946 := 0 - for ; !r.CheckBreak(); yyj1946++ { + yyj1951 := 0 + for ; !r.CheckBreak(); yyj1951++ { - if yyj1946 >= len(yyv1946) { - yyv1946 = append(yyv1946, NetworkPolicyIngressRule{}) // var yyz1946 NetworkPolicyIngressRule - yyc1946 = true + if yyj1951 >= len(yyv1951) { + yyv1951 = append(yyv1951, NetworkPolicyIngressRule{}) // var yyz1951 NetworkPolicyIngressRule + yyc1951 = true } - yyh1946.ElemContainerState(yyj1946) - if yyj1946 < len(yyv1946) { + yyh1951.ElemContainerState(yyj1951) + if yyj1951 < len(yyv1951) { if r.TryDecodeAsNil() { - yyv1946[yyj1946] = NetworkPolicyIngressRule{} + yyv1951[yyj1951] = NetworkPolicyIngressRule{} } else { - yyv1949 := &yyv1946[yyj1946] - yyv1949.CodecDecodeSelf(d) + yyv1954 := &yyv1951[yyj1951] + yyv1954.CodecDecodeSelf(d) } } else { @@ -24238,17 +24286,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyIngressRule(v *[]NetworkPolicyIngr } } - if yyj1946 < len(yyv1946) { - yyv1946 = yyv1946[:yyj1946] - yyc1946 = true - } else if yyj1946 == 0 && yyv1946 == nil { - yyv1946 = []NetworkPolicyIngressRule{} - yyc1946 = true + if yyj1951 < len(yyv1951) { + yyv1951 = yyv1951[:yyj1951] + yyc1951 = true + } else if yyj1951 == 0 && yyv1951 == nil { + yyv1951 = []NetworkPolicyIngressRule{} + yyc1951 = true } } - yyh1946.End() - if yyc1946 { - *v = yyv1946 + yyh1951.End() + if yyc1951 { + *v = yyv1951 } } @@ -24257,10 +24305,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyPort(v []NetworkPolicyPort, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1950 := range v { + for _, yyv1955 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1951 := &yyv1950 - yy1951.CodecEncodeSelf(e) + yy1956 := &yyv1955 + yy1956.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24270,83 +24318,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1952 := *v - yyh1952, yyl1952 := z.DecSliceHelperStart() - var yyc1952 bool - if yyl1952 == 0 { - if yyv1952 == nil { - yyv1952 = []NetworkPolicyPort{} - yyc1952 = true - } else if len(yyv1952) != 0 { - yyv1952 = yyv1952[:0] - yyc1952 = true + yyv1957 := *v + yyh1957, yyl1957 := z.DecSliceHelperStart() + var yyc1957 bool + if yyl1957 == 0 { + if yyv1957 == nil { + yyv1957 = []NetworkPolicyPort{} + yyc1957 = true + } else if len(yyv1957) != 0 { + yyv1957 = yyv1957[:0] + yyc1957 = true } - } else if yyl1952 > 0 { - var yyrr1952, yyrl1952 int - var yyrt1952 bool - if yyl1952 > cap(yyv1952) { + } else if yyl1957 > 0 { + var yyrr1957, yyrl1957 int + var yyrt1957 bool + if yyl1957 > cap(yyv1957) { - yyrg1952 := len(yyv1952) > 0 - yyv21952 := yyv1952 - yyrl1952, yyrt1952 = z.DecInferLen(yyl1952, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1952 { - if yyrl1952 <= cap(yyv1952) { - yyv1952 = yyv1952[:yyrl1952] + yyrg1957 := len(yyv1957) > 0 + yyv21957 := yyv1957 + yyrl1957, yyrt1957 = z.DecInferLen(yyl1957, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1957 { + if yyrl1957 <= cap(yyv1957) { + yyv1957 = yyv1957[:yyrl1957] } else { - yyv1952 = make([]NetworkPolicyPort, yyrl1952) + yyv1957 = make([]NetworkPolicyPort, yyrl1957) } } else { - yyv1952 = make([]NetworkPolicyPort, yyrl1952) + yyv1957 = make([]NetworkPolicyPort, yyrl1957) } - yyc1952 = true - yyrr1952 = len(yyv1952) - if yyrg1952 { - copy(yyv1952, yyv21952) + yyc1957 = true + yyrr1957 = len(yyv1957) + if yyrg1957 { + copy(yyv1957, yyv21957) } - } else if yyl1952 != len(yyv1952) { - yyv1952 = yyv1952[:yyl1952] - yyc1952 = true + } else if yyl1957 != len(yyv1957) { + yyv1957 = yyv1957[:yyl1957] + yyc1957 = true } - yyj1952 := 0 - for ; yyj1952 < yyrr1952; yyj1952++ { - yyh1952.ElemContainerState(yyj1952) + yyj1957 := 0 + for ; yyj1957 < yyrr1957; yyj1957++ { + yyh1957.ElemContainerState(yyj1957) if r.TryDecodeAsNil() { - yyv1952[yyj1952] = NetworkPolicyPort{} + yyv1957[yyj1957] = NetworkPolicyPort{} } else { - yyv1953 := &yyv1952[yyj1952] - yyv1953.CodecDecodeSelf(d) + yyv1958 := &yyv1957[yyj1957] + yyv1958.CodecDecodeSelf(d) } } - if yyrt1952 { - for ; yyj1952 < yyl1952; yyj1952++ { - yyv1952 = append(yyv1952, NetworkPolicyPort{}) - yyh1952.ElemContainerState(yyj1952) + if yyrt1957 { + for ; yyj1957 < yyl1957; yyj1957++ { + yyv1957 = append(yyv1957, NetworkPolicyPort{}) + yyh1957.ElemContainerState(yyj1957) if r.TryDecodeAsNil() { - yyv1952[yyj1952] = NetworkPolicyPort{} + yyv1957[yyj1957] = NetworkPolicyPort{} } else { - yyv1954 := &yyv1952[yyj1952] - yyv1954.CodecDecodeSelf(d) + yyv1959 := &yyv1957[yyj1957] + yyv1959.CodecDecodeSelf(d) } } } } else { - yyj1952 := 0 - for ; !r.CheckBreak(); yyj1952++ { + yyj1957 := 0 + for ; !r.CheckBreak(); yyj1957++ { - if yyj1952 >= len(yyv1952) { - yyv1952 = append(yyv1952, NetworkPolicyPort{}) // var yyz1952 NetworkPolicyPort - yyc1952 = true + if yyj1957 >= len(yyv1957) { + yyv1957 = append(yyv1957, NetworkPolicyPort{}) // var yyz1957 NetworkPolicyPort + yyc1957 = true } - yyh1952.ElemContainerState(yyj1952) - if yyj1952 < len(yyv1952) { + yyh1957.ElemContainerState(yyj1957) + if yyj1957 < len(yyv1957) { if r.TryDecodeAsNil() { - yyv1952[yyj1952] = NetworkPolicyPort{} + yyv1957[yyj1957] = NetworkPolicyPort{} } else { - yyv1955 := &yyv1952[yyj1952] - yyv1955.CodecDecodeSelf(d) + yyv1960 := &yyv1957[yyj1957] + yyv1960.CodecDecodeSelf(d) } } else { @@ -24354,17 +24402,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyPort(v *[]NetworkPolicyPort, d *co } } - if yyj1952 < len(yyv1952) { - yyv1952 = yyv1952[:yyj1952] - yyc1952 = true - } else if yyj1952 == 0 && yyv1952 == nil { - yyv1952 = []NetworkPolicyPort{} - yyc1952 = true + if yyj1957 < len(yyv1957) { + yyv1957 = yyv1957[:yyj1957] + yyc1957 = true + } else if yyj1957 == 0 && yyv1957 == nil { + yyv1957 = []NetworkPolicyPort{} + yyc1957 = true } } - yyh1952.End() - if yyc1952 { - *v = yyv1952 + yyh1957.End() + if yyc1957 { + *v = yyv1957 } } @@ -24373,10 +24421,10 @@ func (x codecSelfer1234) encSliceNetworkPolicyPeer(v []NetworkPolicyPeer, e *cod z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1956 := range v { + for _, yyv1961 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1957 := &yyv1956 - yy1957.CodecEncodeSelf(e) + yy1962 := &yyv1961 + yy1962.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24386,83 +24434,83 @@ func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *co z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1958 := *v - yyh1958, yyl1958 := z.DecSliceHelperStart() - var yyc1958 bool - if yyl1958 == 0 { - if yyv1958 == nil { - yyv1958 = []NetworkPolicyPeer{} - yyc1958 = true - } else if len(yyv1958) != 0 { - yyv1958 = yyv1958[:0] - yyc1958 = true + yyv1963 := *v + yyh1963, yyl1963 := z.DecSliceHelperStart() + var yyc1963 bool + if yyl1963 == 0 { + if yyv1963 == nil { + yyv1963 = []NetworkPolicyPeer{} + yyc1963 = true + } else if len(yyv1963) != 0 { + yyv1963 = yyv1963[:0] + yyc1963 = true } - } else if yyl1958 > 0 { - var yyrr1958, yyrl1958 int - var yyrt1958 bool - if yyl1958 > cap(yyv1958) { + } else if yyl1963 > 0 { + var yyrr1963, yyrl1963 int + var yyrt1963 bool + if yyl1963 > cap(yyv1963) { - yyrg1958 := len(yyv1958) > 0 - yyv21958 := yyv1958 - yyrl1958, yyrt1958 = z.DecInferLen(yyl1958, z.DecBasicHandle().MaxInitLen, 16) - if yyrt1958 { - if yyrl1958 <= cap(yyv1958) { - yyv1958 = yyv1958[:yyrl1958] + yyrg1963 := len(yyv1963) > 0 + yyv21963 := yyv1963 + yyrl1963, yyrt1963 = z.DecInferLen(yyl1963, z.DecBasicHandle().MaxInitLen, 16) + if yyrt1963 { + if yyrl1963 <= cap(yyv1963) { + yyv1963 = yyv1963[:yyrl1963] } else { - yyv1958 = make([]NetworkPolicyPeer, yyrl1958) + yyv1963 = make([]NetworkPolicyPeer, yyrl1963) } } else { - yyv1958 = make([]NetworkPolicyPeer, yyrl1958) + yyv1963 = make([]NetworkPolicyPeer, yyrl1963) } - yyc1958 = true - yyrr1958 = len(yyv1958) - if yyrg1958 { - copy(yyv1958, yyv21958) + yyc1963 = true + yyrr1963 = len(yyv1963) + if yyrg1963 { + copy(yyv1963, yyv21963) } - } else if yyl1958 != len(yyv1958) { - yyv1958 = yyv1958[:yyl1958] - yyc1958 = true + } else if yyl1963 != len(yyv1963) { + yyv1963 = yyv1963[:yyl1963] + yyc1963 = true } - yyj1958 := 0 - for ; yyj1958 < yyrr1958; yyj1958++ { - yyh1958.ElemContainerState(yyj1958) + yyj1963 := 0 + for ; yyj1963 < yyrr1963; yyj1963++ { + yyh1963.ElemContainerState(yyj1963) if r.TryDecodeAsNil() { - yyv1958[yyj1958] = NetworkPolicyPeer{} + yyv1963[yyj1963] = NetworkPolicyPeer{} } else { - yyv1959 := &yyv1958[yyj1958] - yyv1959.CodecDecodeSelf(d) + yyv1964 := &yyv1963[yyj1963] + yyv1964.CodecDecodeSelf(d) } } - if yyrt1958 { - for ; yyj1958 < yyl1958; yyj1958++ { - yyv1958 = append(yyv1958, NetworkPolicyPeer{}) - yyh1958.ElemContainerState(yyj1958) + if yyrt1963 { + for ; yyj1963 < yyl1963; yyj1963++ { + yyv1963 = append(yyv1963, NetworkPolicyPeer{}) + yyh1963.ElemContainerState(yyj1963) if r.TryDecodeAsNil() { - yyv1958[yyj1958] = NetworkPolicyPeer{} + yyv1963[yyj1963] = NetworkPolicyPeer{} } else { - yyv1960 := &yyv1958[yyj1958] - yyv1960.CodecDecodeSelf(d) + yyv1965 := &yyv1963[yyj1963] + yyv1965.CodecDecodeSelf(d) } } } } else { - yyj1958 := 0 - for ; !r.CheckBreak(); yyj1958++ { + yyj1963 := 0 + for ; !r.CheckBreak(); yyj1963++ { - if yyj1958 >= len(yyv1958) { - yyv1958 = append(yyv1958, NetworkPolicyPeer{}) // var yyz1958 NetworkPolicyPeer - yyc1958 = true + if yyj1963 >= len(yyv1963) { + yyv1963 = append(yyv1963, NetworkPolicyPeer{}) // var yyz1963 NetworkPolicyPeer + yyc1963 = true } - yyh1958.ElemContainerState(yyj1958) - if yyj1958 < len(yyv1958) { + yyh1963.ElemContainerState(yyj1963) + if yyj1963 < len(yyv1963) { if r.TryDecodeAsNil() { - yyv1958[yyj1958] = NetworkPolicyPeer{} + yyv1963[yyj1963] = NetworkPolicyPeer{} } else { - yyv1961 := &yyv1958[yyj1958] - yyv1961.CodecDecodeSelf(d) + yyv1966 := &yyv1963[yyj1963] + yyv1966.CodecDecodeSelf(d) } } else { @@ -24470,17 +24518,17 @@ func (x codecSelfer1234) decSliceNetworkPolicyPeer(v *[]NetworkPolicyPeer, d *co } } - if yyj1958 < len(yyv1958) { - yyv1958 = yyv1958[:yyj1958] - yyc1958 = true - } else if yyj1958 == 0 && yyv1958 == nil { - yyv1958 = []NetworkPolicyPeer{} - yyc1958 = true + if yyj1963 < len(yyv1963) { + yyv1963 = yyv1963[:yyj1963] + yyc1963 = true + } else if yyj1963 == 0 && yyv1963 == nil { + yyv1963 = []NetworkPolicyPeer{} + yyc1963 = true } } - yyh1958.End() - if yyc1958 { - *v = yyv1958 + yyh1963.End() + if yyc1963 { + *v = yyv1963 } } @@ -24489,10 +24537,10 @@ func (x codecSelfer1234) encSliceNetworkPolicy(v []NetworkPolicy, e *codec1978.E z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1962 := range v { + for _, yyv1967 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1963 := &yyv1962 - yy1963.CodecEncodeSelf(e) + yy1968 := &yyv1967 + yy1968.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24502,83 +24550,83 @@ func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978. z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1964 := *v - yyh1964, yyl1964 := z.DecSliceHelperStart() - var yyc1964 bool - if yyl1964 == 0 { - if yyv1964 == nil { - yyv1964 = []NetworkPolicy{} - yyc1964 = true - } else if len(yyv1964) != 0 { - yyv1964 = yyv1964[:0] - yyc1964 = true + yyv1969 := *v + yyh1969, yyl1969 := z.DecSliceHelperStart() + var yyc1969 bool + if yyl1969 == 0 { + if yyv1969 == nil { + yyv1969 = []NetworkPolicy{} + yyc1969 = true + } else if len(yyv1969) != 0 { + yyv1969 = yyv1969[:0] + yyc1969 = true } - } else if yyl1964 > 0 { - var yyrr1964, yyrl1964 int - var yyrt1964 bool - if yyl1964 > cap(yyv1964) { + } else if yyl1969 > 0 { + var yyrr1969, yyrl1969 int + var yyrt1969 bool + if yyl1969 > cap(yyv1969) { - yyrg1964 := len(yyv1964) > 0 - yyv21964 := yyv1964 - yyrl1964, yyrt1964 = z.DecInferLen(yyl1964, z.DecBasicHandle().MaxInitLen, 296) - if yyrt1964 { - if yyrl1964 <= cap(yyv1964) { - yyv1964 = yyv1964[:yyrl1964] + yyrg1969 := len(yyv1969) > 0 + yyv21969 := yyv1969 + yyrl1969, yyrt1969 = z.DecInferLen(yyl1969, z.DecBasicHandle().MaxInitLen, 312) + if yyrt1969 { + if yyrl1969 <= cap(yyv1969) { + yyv1969 = yyv1969[:yyrl1969] } else { - yyv1964 = make([]NetworkPolicy, yyrl1964) + yyv1969 = make([]NetworkPolicy, yyrl1969) } } else { - yyv1964 = make([]NetworkPolicy, yyrl1964) + yyv1969 = make([]NetworkPolicy, yyrl1969) } - yyc1964 = true - yyrr1964 = len(yyv1964) - if yyrg1964 { - copy(yyv1964, yyv21964) + yyc1969 = true + yyrr1969 = len(yyv1969) + if yyrg1969 { + copy(yyv1969, yyv21969) } - } else if yyl1964 != len(yyv1964) { - yyv1964 = yyv1964[:yyl1964] - yyc1964 = true + } else if yyl1969 != len(yyv1969) { + yyv1969 = yyv1969[:yyl1969] + yyc1969 = true } - yyj1964 := 0 - for ; yyj1964 < yyrr1964; yyj1964++ { - yyh1964.ElemContainerState(yyj1964) + yyj1969 := 0 + for ; yyj1969 < yyrr1969; yyj1969++ { + yyh1969.ElemContainerState(yyj1969) if r.TryDecodeAsNil() { - yyv1964[yyj1964] = NetworkPolicy{} + yyv1969[yyj1969] = NetworkPolicy{} } else { - yyv1965 := &yyv1964[yyj1964] - yyv1965.CodecDecodeSelf(d) + yyv1970 := &yyv1969[yyj1969] + yyv1970.CodecDecodeSelf(d) } } - if yyrt1964 { - for ; yyj1964 < yyl1964; yyj1964++ { - yyv1964 = append(yyv1964, NetworkPolicy{}) - yyh1964.ElemContainerState(yyj1964) + if yyrt1969 { + for ; yyj1969 < yyl1969; yyj1969++ { + yyv1969 = append(yyv1969, NetworkPolicy{}) + yyh1969.ElemContainerState(yyj1969) if r.TryDecodeAsNil() { - yyv1964[yyj1964] = NetworkPolicy{} + yyv1969[yyj1969] = NetworkPolicy{} } else { - yyv1966 := &yyv1964[yyj1964] - yyv1966.CodecDecodeSelf(d) + yyv1971 := &yyv1969[yyj1969] + yyv1971.CodecDecodeSelf(d) } } } } else { - yyj1964 := 0 - for ; !r.CheckBreak(); yyj1964++ { + yyj1969 := 0 + for ; !r.CheckBreak(); yyj1969++ { - if yyj1964 >= len(yyv1964) { - yyv1964 = append(yyv1964, NetworkPolicy{}) // var yyz1964 NetworkPolicy - yyc1964 = true + if yyj1969 >= len(yyv1969) { + yyv1969 = append(yyv1969, NetworkPolicy{}) // var yyz1969 NetworkPolicy + yyc1969 = true } - yyh1964.ElemContainerState(yyj1964) - if yyj1964 < len(yyv1964) { + yyh1969.ElemContainerState(yyj1969) + if yyj1969 < len(yyv1969) { if r.TryDecodeAsNil() { - yyv1964[yyj1964] = NetworkPolicy{} + yyv1969[yyj1969] = NetworkPolicy{} } else { - yyv1967 := &yyv1964[yyj1964] - yyv1967.CodecDecodeSelf(d) + yyv1972 := &yyv1969[yyj1969] + yyv1972.CodecDecodeSelf(d) } } else { @@ -24586,17 +24634,17 @@ func (x codecSelfer1234) decSliceNetworkPolicy(v *[]NetworkPolicy, d *codec1978. } } - if yyj1964 < len(yyv1964) { - yyv1964 = yyv1964[:yyj1964] - yyc1964 = true - } else if yyj1964 == 0 && yyv1964 == nil { - yyv1964 = []NetworkPolicy{} - yyc1964 = true + if yyj1969 < len(yyv1969) { + yyv1969 = yyv1969[:yyj1969] + yyc1969 = true + } else if yyj1969 == 0 && yyv1969 == nil { + yyv1969 = []NetworkPolicy{} + yyc1969 = true } } - yyh1964.End() - if yyc1964 { - *v = yyv1964 + yyh1969.End() + if yyc1969 { + *v = yyv1969 } } @@ -24605,10 +24653,10 @@ func (x codecSelfer1234) encSliceStorageClass(v []StorageClass, e *codec1978.Enc z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv1968 := range v { + for _, yyv1973 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy1969 := &yyv1968 - yy1969.CodecEncodeSelf(e) + yy1974 := &yyv1973 + yy1974.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -24618,83 +24666,83 @@ func (x codecSelfer1234) decSliceStorageClass(v *[]StorageClass, d *codec1978.De z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv1970 := *v - yyh1970, yyl1970 := z.DecSliceHelperStart() - var yyc1970 bool - if yyl1970 == 0 { - if yyv1970 == nil { - yyv1970 = []StorageClass{} - yyc1970 = true - } else if len(yyv1970) != 0 { - yyv1970 = yyv1970[:0] - yyc1970 = true + yyv1975 := *v + yyh1975, yyl1975 := z.DecSliceHelperStart() + var yyc1975 bool + if yyl1975 == 0 { + if yyv1975 == nil { + yyv1975 = []StorageClass{} + yyc1975 = true + } else if len(yyv1975) != 0 { + yyv1975 = yyv1975[:0] + yyc1975 = true } - } else if yyl1970 > 0 { - var yyrr1970, yyrl1970 int - var yyrt1970 bool - if yyl1970 > cap(yyv1970) { + } else if yyl1975 > 0 { + var yyrr1975, yyrl1975 int + var yyrt1975 bool + if yyl1975 > cap(yyv1975) { - yyrg1970 := len(yyv1970) > 0 - yyv21970 := yyv1970 - yyrl1970, yyrt1970 = z.DecInferLen(yyl1970, z.DecBasicHandle().MaxInitLen, 264) - if yyrt1970 { - if yyrl1970 <= cap(yyv1970) { - yyv1970 = yyv1970[:yyrl1970] + yyrg1975 := len(yyv1975) > 0 + yyv21975 := yyv1975 + yyrl1975, yyrt1975 = z.DecInferLen(yyl1975, z.DecBasicHandle().MaxInitLen, 280) + if yyrt1975 { + if yyrl1975 <= cap(yyv1975) { + yyv1975 = yyv1975[:yyrl1975] } else { - yyv1970 = make([]StorageClass, yyrl1970) + yyv1975 = make([]StorageClass, yyrl1975) } } else { - yyv1970 = make([]StorageClass, yyrl1970) + yyv1975 = make([]StorageClass, yyrl1975) } - yyc1970 = true - yyrr1970 = len(yyv1970) - if yyrg1970 { - copy(yyv1970, yyv21970) + yyc1975 = true + yyrr1975 = len(yyv1975) + if yyrg1975 { + copy(yyv1975, yyv21975) } - } else if yyl1970 != len(yyv1970) { - yyv1970 = yyv1970[:yyl1970] - yyc1970 = true + } else if yyl1975 != len(yyv1975) { + yyv1975 = yyv1975[:yyl1975] + yyc1975 = true } - yyj1970 := 0 - for ; yyj1970 < yyrr1970; yyj1970++ { - yyh1970.ElemContainerState(yyj1970) + yyj1975 := 0 + for ; yyj1975 < yyrr1975; yyj1975++ { + yyh1975.ElemContainerState(yyj1975) if r.TryDecodeAsNil() { - yyv1970[yyj1970] = StorageClass{} + yyv1975[yyj1975] = StorageClass{} } else { - yyv1971 := &yyv1970[yyj1970] - yyv1971.CodecDecodeSelf(d) + yyv1976 := &yyv1975[yyj1975] + yyv1976.CodecDecodeSelf(d) } } - if yyrt1970 { - for ; yyj1970 < yyl1970; yyj1970++ { - yyv1970 = append(yyv1970, StorageClass{}) - yyh1970.ElemContainerState(yyj1970) + if yyrt1975 { + for ; yyj1975 < yyl1975; yyj1975++ { + yyv1975 = append(yyv1975, StorageClass{}) + yyh1975.ElemContainerState(yyj1975) if r.TryDecodeAsNil() { - yyv1970[yyj1970] = StorageClass{} + yyv1975[yyj1975] = StorageClass{} } else { - yyv1972 := &yyv1970[yyj1970] - yyv1972.CodecDecodeSelf(d) + yyv1977 := &yyv1975[yyj1975] + yyv1977.CodecDecodeSelf(d) } } } } else { - yyj1970 := 0 - for ; !r.CheckBreak(); yyj1970++ { + yyj1975 := 0 + for ; !r.CheckBreak(); yyj1975++ { - if yyj1970 >= len(yyv1970) { - yyv1970 = append(yyv1970, StorageClass{}) // var yyz1970 StorageClass - yyc1970 = true + if yyj1975 >= len(yyv1975) { + yyv1975 = append(yyv1975, StorageClass{}) // var yyz1975 StorageClass + yyc1975 = true } - yyh1970.ElemContainerState(yyj1970) - if yyj1970 < len(yyv1970) { + yyh1975.ElemContainerState(yyj1975) + if yyj1975 < len(yyv1975) { if r.TryDecodeAsNil() { - yyv1970[yyj1970] = StorageClass{} + yyv1975[yyj1975] = StorageClass{} } else { - yyv1973 := &yyv1970[yyj1970] - yyv1973.CodecDecodeSelf(d) + yyv1978 := &yyv1975[yyj1975] + yyv1978.CodecDecodeSelf(d) } } else { @@ -24702,16 +24750,16 @@ func (x codecSelfer1234) decSliceStorageClass(v *[]StorageClass, d *codec1978.De } } - if yyj1970 < len(yyv1970) { - yyv1970 = yyv1970[:yyj1970] - yyc1970 = true - } else if yyj1970 == 0 && yyv1970 == nil { - yyv1970 = []StorageClass{} - yyc1970 = true + if yyj1975 < len(yyv1975) { + yyv1975 = yyv1975[:yyj1975] + yyc1975 = true + } else if yyj1975 == 0 && yyv1975 == nil { + yyv1975 = []StorageClass{} + yyc1975 = true } } - yyh1970.End() - if yyc1970 { - *v = yyv1970 + yyh1975.End() + if yyc1975 { + *v = yyv1975 } } diff --git a/1.4/pkg/apis/extensions/v1beta1/types.go b/1.4/pkg/apis/extensions/v1beta1/types.go index 8f3a1a6a..151703f5 100644 --- a/1.4/pkg/apis/extensions/v1beta1/types.go +++ b/1.4/pkg/apis/extensions/v1beta1/types.go @@ -142,8 +142,6 @@ type HorizontalPodAutoscalerStatus struct { CurrentCPUUtilizationPercentage *int32 `json:"currentCPUUtilizationPercentage,omitempty" protobuf:"varint,5,opt,name=currentCPUUtilizationPercentage"` } -// +genclient=true - // configuration of a horizontal pod autoscaler. type HorizontalPodAutoscaler struct { unversioned.TypeMeta `json:",inline"` @@ -757,7 +755,7 @@ type HTTPIngressRuleValue struct { // HTTPIngressPath associates a path regex with a backend. Incoming urls matching // the path are forwarded to the backend. type HTTPIngressPath struct { - // Path is a extended POSIX regex as defined by IEEE Std 1003.1, + // Path is an extended POSIX regex as defined by IEEE Std 1003.1, // (i.e this follows the egrep/unix syntax, not the perl syntax) // matched against the path of an incoming request. Currently it can // contain characters disallowed from the conventional "path" @@ -910,6 +908,9 @@ type ReplicaSetStatus struct { // The number of pods that have labels matching the labels of the pod template of the replicaset. FullyLabeledReplicas int32 `json:"fullyLabeledReplicas,omitempty" protobuf:"varint,2,opt,name=fullyLabeledReplicas"` + // The number of ready replicas for this replica set. + ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,4,opt,name=readyReplicas"` + // ObservedGeneration reflects the generation of the most recently observed ReplicaSet. ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` } @@ -994,6 +995,8 @@ var ( DownwardAPI FSType = "downwardAPI" FC FSType = "fc" ConfigMap FSType = "configMap" + Quobyte FSType = "quobyte" + AzureDisk FSType = "azureDisk" All FSType = "*" ) diff --git a/1.4/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go b/1.4/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go index ea99629c..f3918db6 100644 --- a/1.4/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go +++ b/1.4/pkg/apis/extensions/v1beta1/types_swagger_doc_generated.go @@ -198,7 +198,7 @@ func (FSGroupStrategyOptions) SwaggerDoc() map[string]string { var map_HTTPIngressPath = map[string]string{ "": "HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.", - "path": "Path is a extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.", + "path": "Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.", "backend": "Backend defines the referenced service endpoint to which the traffic will be forwarded to.", } @@ -590,6 +590,7 @@ var map_ReplicaSetStatus = map[string]string{ "": "ReplicaSetStatus represents the current status of a ReplicaSet.", "replicas": "Replicas is the most recently oberved number of replicas. More info: http://releases.k8s.io/HEAD/docs/user-guide/replication-controller.md#what-is-a-replication-controller", "fullyLabeledReplicas": "The number of pods that have labels matching the labels of the pod template of the replicaset.", + "readyReplicas": "The number of ready replicas for this replica set.", "observedGeneration": "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.", } diff --git a/1.4/pkg/apis/extensions/v1beta1/zz_generated.conversion.go b/1.4/pkg/apis/extensions/v1beta1/zz_generated.conversion.go index 66db4861..23cd760e 100644 --- a/1.4/pkg/apis/extensions/v1beta1/zz_generated.conversion.go +++ b/1.4/pkg/apis/extensions/v1beta1/zz_generated.conversion.go @@ -2225,6 +2225,7 @@ func autoConvert_extensions_ReplicaSetSpec_To_v1beta1_ReplicaSetSpec(in *extensi func autoConvert_v1beta1_ReplicaSetStatus_To_extensions_ReplicaSetStatus(in *ReplicaSetStatus, out *extensions.ReplicaSetStatus, s conversion.Scope) error { out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ReadyReplicas = in.ReadyReplicas out.ObservedGeneration = in.ObservedGeneration return nil } @@ -2236,6 +2237,7 @@ func Convert_v1beta1_ReplicaSetStatus_To_extensions_ReplicaSetStatus(in *Replica func autoConvert_extensions_ReplicaSetStatus_To_v1beta1_ReplicaSetStatus(in *extensions.ReplicaSetStatus, out *ReplicaSetStatus, s conversion.Scope) error { out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ReadyReplicas = in.ReadyReplicas out.ObservedGeneration = in.ObservedGeneration return nil } diff --git a/1.4/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go b/1.4/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go index 8f7f2263..ecad11e7 100644 --- a/1.4/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go +++ b/1.4/pkg/apis/extensions/v1beta1/zz_generated.deepcopy.go @@ -1215,6 +1215,7 @@ func DeepCopy_v1beta1_ReplicaSetStatus(in interface{}, out interface{}, c *conve out := out.(*ReplicaSetStatus) out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ReadyReplicas = in.ReadyReplicas out.ObservedGeneration = in.ObservedGeneration return nil } diff --git a/1.4/pkg/apis/extensions/zz_generated.deepcopy.go b/1.4/pkg/apis/extensions/zz_generated.deepcopy.go index d7d19f8e..01a597c9 100644 --- a/1.4/pkg/apis/extensions/zz_generated.deepcopy.go +++ b/1.4/pkg/apis/extensions/zz_generated.deepcopy.go @@ -870,6 +870,7 @@ func DeepCopy_extensions_ReplicaSetStatus(in interface{}, out interface{}, c *co out := out.(*ReplicaSetStatus) out.Replicas = in.Replicas out.FullyLabeledReplicas = in.FullyLabeledReplicas + out.ReadyReplicas = in.ReadyReplicas out.ObservedGeneration = in.ObservedGeneration return nil } diff --git a/1.4/pkg/apis/imagepolicy/doc.go b/1.4/pkg/apis/imagepolicy/doc.go new file mode 100644 index 00000000..cc53ad80 --- /dev/null +++ b/1.4/pkg/apis/imagepolicy/doc.go @@ -0,0 +1,20 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// +k8s:deepcopy-gen=package,register +// +groupName=imagepolicy.k8s.io + +package imagepolicy diff --git a/1.4/pkg/apis/imagepolicy/install/install.go b/1.4/pkg/apis/imagepolicy/install/install.go new file mode 100644 index 00000000..094fb88b --- /dev/null +++ b/1.4/pkg/apis/imagepolicy/install/install.go @@ -0,0 +1,123 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Package install installs the experimental API group, making it available as +// an option to all of the API encoding/decoding machinery. +package install + +import ( + "fmt" + + "github.com/golang/glog" + + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/api/meta" + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/apimachinery" + "k8s.io/client-go/1.4/pkg/apimachinery/registered" + "k8s.io/client-go/1.4/pkg/apis/imagepolicy" + "k8s.io/client-go/1.4/pkg/apis/imagepolicy/v1alpha1" + "k8s.io/client-go/1.4/pkg/runtime" + "k8s.io/client-go/1.4/pkg/util/sets" +) + +const importPrefix = "k8s.io/client-go/1.4/pkg/apis/imagepolicy" + +var accessor = meta.NewAccessor() + +// availableVersions lists all known external versions for this group from most preferred to least preferred +var availableVersions = []unversioned.GroupVersion{v1alpha1.SchemeGroupVersion} + +func init() { + registered.RegisterVersions(availableVersions) + externalVersions := []unversioned.GroupVersion{} + for _, v := range availableVersions { + if registered.IsAllowedVersion(v) { + externalVersions = append(externalVersions, v) + } + } + if len(externalVersions) == 0 { + glog.V(4).Infof("No version is registered for group %v", imagepolicy.GroupName) + return + } + + if err := registered.EnableVersions(externalVersions...); err != nil { + glog.V(4).Infof("%v", err) + return + } + if err := enableVersions(externalVersions); err != nil { + glog.V(4).Infof("%v", err) + return + } +} + +// TODO: enableVersions should be centralized rather than spread in each API +// group. +// We can combine registered.RegisterVersions, registered.EnableVersions and +// registered.RegisterGroup once we have moved enableVersions there. +func enableVersions(externalVersions []unversioned.GroupVersion) error { + addVersionsToScheme(externalVersions...) + preferredExternalVersion := externalVersions[0] + + groupMeta := apimachinery.GroupMeta{ + GroupVersion: preferredExternalVersion, + GroupVersions: externalVersions, + RESTMapper: newRESTMapper(externalVersions), + SelfLinker: runtime.SelfLinker(accessor), + InterfacesFor: interfacesFor, + } + + if err := registered.RegisterGroup(groupMeta); err != nil { + return err + } + api.RegisterRESTMapper(groupMeta.RESTMapper) + return nil +} + +func addVersionsToScheme(externalVersions ...unversioned.GroupVersion) { + // add the internal version to Scheme + imagepolicy.AddToScheme(api.Scheme) + // add the enabled external versions to Scheme + for _, v := range externalVersions { + if !registered.IsEnabledVersion(v) { + glog.Errorf("Version %s is not enabled, so it will not be added to the Scheme.", v) + continue + } + switch v { + case v1alpha1.SchemeGroupVersion: + v1alpha1.AddToScheme(api.Scheme) + } + } +} + +func newRESTMapper(externalVersions []unversioned.GroupVersion) meta.RESTMapper { + rootScoped := sets.NewString("ImageReview") + ignoredKinds := sets.NewString() + return api.NewDefaultRESTMapper(externalVersions, interfacesFor, importPrefix, ignoredKinds, rootScoped) +} + +func interfacesFor(version unversioned.GroupVersion) (*meta.VersionInterfaces, error) { + switch version { + case v1alpha1.SchemeGroupVersion: + return &meta.VersionInterfaces{ + ObjectConvertor: api.Scheme, + MetadataAccessor: accessor, + }, nil + default: + g, _ := registered.Group(imagepolicy.GroupName) + return nil, fmt.Errorf("unsupported storage version: %s (valid: %v)", version, g.GroupVersions) + } +} diff --git a/1.4/pkg/apis/imagepolicy/register.go b/1.4/pkg/apis/imagepolicy/register.go new file mode 100644 index 00000000..710f2f79 --- /dev/null +++ b/1.4/pkg/apis/imagepolicy/register.go @@ -0,0 +1,56 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package imagepolicy + +import ( + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/runtime" +) + +// GroupName is the group name use in this package +const GroupName = "imagepolicy.k8s.io" + +// SchemeGroupVersion is group version used to register these objects +var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} + +// Kind takes an unqualified kind and returns a Group qualified GroupKind +func Kind(kind string) unversioned.GroupKind { + return SchemeGroupVersion.WithKind(kind).GroupKind() +} + +// Resource takes an unqualified resource and returns a Group qualified GroupResource +func Resource(resource string) unversioned.GroupResource { + return SchemeGroupVersion.WithResource(resource).GroupResource() +} + +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) + +func addKnownTypes(scheme *runtime.Scheme) error { + scheme.AddKnownTypes(SchemeGroupVersion, + &api.ListOptions{}, + &api.DeleteOptions{}, + &api.ExportOptions{}, + + &ImageReview{}, + ) + // versioned.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil +} diff --git a/1.4/pkg/apis/imagepolicy/types.generated.go b/1.4/pkg/apis/imagepolicy/types.generated.go new file mode 100644 index 00000000..92b97f62 --- /dev/null +++ b/1.4/pkg/apis/imagepolicy/types.generated.go @@ -0,0 +1,2194 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// ************************************************************ +// DO NOT EDIT. +// THIS FILE IS AUTO-GENERATED BY codecgen. +// ************************************************************ + +package imagepolicy + +import ( + "errors" + "fmt" + codec1978 "github.com/ugorji/go/codec" + pkg2_api "k8s.io/client-go/1.4/pkg/api" + pkg1_unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" + pkg3_types "k8s.io/client-go/1.4/pkg/types" + "reflect" + "runtime" + time "time" +) + +const ( + // ----- content types ---- + codecSelferC_UTF81234 = 1 + codecSelferC_RAW1234 = 0 + // ----- value types used ---- + codecSelferValueTypeArray1234 = 10 + codecSelferValueTypeMap1234 = 9 + // ----- containerStateValues ---- + codecSelfer_containerMapKey1234 = 2 + codecSelfer_containerMapValue1234 = 3 + codecSelfer_containerMapEnd1234 = 4 + codecSelfer_containerArrayElem1234 = 6 + codecSelfer_containerArrayEnd1234 = 7 +) + +var ( + codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) + codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) +) + +type codecSelfer1234 struct{} + +func init() { + if codec1978.GenVersion != 5 { + _, file, _, _ := runtime.Caller(0) + err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", + 5, codec1978.GenVersion, file) + panic(err) + } + if false { // reference the types, but skip this branch at build/run time + var v0 pkg2_api.ObjectMeta + var v1 pkg1_unversioned.TypeMeta + var v2 pkg3_types.UID + var v3 time.Time + _, _, _, _ = v0, v1, v2, v3 + } +} + +func (x *ImageReview) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1 := z.EncBinary() + _ = yym1 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + var yyq2 [19]bool + _, _, _ = yysep2, yyq2, yy2arr2 + const yyr2 bool = false + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" + yyq2[2] = x.Name != "" + yyq2[3] = x.GenerateName != "" + yyq2[4] = x.Namespace != "" + yyq2[5] = x.SelfLink != "" + yyq2[6] = x.UID != "" + yyq2[7] = x.ResourceVersion != "" + yyq2[8] = x.Generation != 0 + yyq2[9] = true + yyq2[10] = x.ObjectMeta.DeletionTimestamp != nil && x.DeletionTimestamp != nil + yyq2[11] = x.ObjectMeta.DeletionGracePeriodSeconds != nil && x.DeletionGracePeriodSeconds != nil + yyq2[12] = len(x.Labels) != 0 + yyq2[13] = len(x.Annotations) != 0 + yyq2[14] = len(x.OwnerReferences) != 0 + yyq2[15] = len(x.Finalizers) != 0 + yyq2[16] = x.ClusterName != "" + var yynn2 int + if yyr2 || yy2arr2 { + r.EncodeArrayStart(19) + } else { + yynn2 = 2 + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.EncodeMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[0] { + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[1] { + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[2] { + yym10 := z.EncBinary() + _ = yym10 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("name")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym11 := z.EncBinary() + _ = yym11 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Name)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[3] { + yym13 := z.EncBinary() + _ = yym13 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("generateName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym14 := z.EncBinary() + _ = yym14 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[4] { + yym16 := z.EncBinary() + _ = yym16 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("namespace")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym17 := z.EncBinary() + _ = yym17 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[5] { + yym19 := z.EncBinary() + _ = yym19 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[5] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("selfLink")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym20 := z.EncBinary() + _ = yym20 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[6] { + yym22 := z.EncBinary() + _ = yym22 + if false { + } else if z.HasExtensions() && z.EncExt(x.UID) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[6] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("uid")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym23 := z.EncBinary() + _ = yym23 + if false { + } else if z.HasExtensions() && z.EncExt(x.UID) { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.UID)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[7] { + yym25 := z.EncBinary() + _ = yym25 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[7] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym26 := z.EncBinary() + _ = yym26 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[8] { + yym28 := z.EncBinary() + _ = yym28 + if false { + } else { + r.EncodeInt(int64(x.Generation)) + } + } else { + r.EncodeInt(0) + } + } else { + if yyq2[8] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("generation")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym29 := z.EncBinary() + _ = yym29 + if false { + } else { + r.EncodeInt(int64(x.Generation)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[9] { + yy31 := &x.CreationTimestamp + yym32 := z.EncBinary() + _ = yym32 + if false { + } else if z.HasExtensions() && z.EncExt(yy31) { + } else if yym32 { + z.EncBinaryMarshal(yy31) + } else if !yym32 && z.IsJSONHandle() { + z.EncJSONMarshal(yy31) + } else { + z.EncFallback(yy31) + } + } else { + r.EncodeNil() + } + } else { + if yyq2[9] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy33 := &x.CreationTimestamp + yym34 := z.EncBinary() + _ = yym34 + if false { + } else if z.HasExtensions() && z.EncExt(yy33) { + } else if yym34 { + z.EncBinaryMarshal(yy33) + } else if !yym34 && z.IsJSONHandle() { + z.EncJSONMarshal(yy33) + } else { + z.EncFallback(yy33) + } + } + } + var yyn35 bool + if x.ObjectMeta.DeletionTimestamp == nil { + yyn35 = true + goto LABEL35 + } + LABEL35: + if yyr2 || yy2arr2 { + if yyn35 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[10] { + if x.DeletionTimestamp == nil { + r.EncodeNil() + } else { + yym36 := z.EncBinary() + _ = yym36 + if false { + } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { + } else if yym36 { + z.EncBinaryMarshal(x.DeletionTimestamp) + } else if !yym36 && z.IsJSONHandle() { + z.EncJSONMarshal(x.DeletionTimestamp) + } else { + z.EncFallback(x.DeletionTimestamp) + } + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[10] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn35 { + r.EncodeNil() + } else { + if x.DeletionTimestamp == nil { + r.EncodeNil() + } else { + yym37 := z.EncBinary() + _ = yym37 + if false { + } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { + } else if yym37 { + z.EncBinaryMarshal(x.DeletionTimestamp) + } else if !yym37 && z.IsJSONHandle() { + z.EncJSONMarshal(x.DeletionTimestamp) + } else { + z.EncFallback(x.DeletionTimestamp) + } + } + } + } + } + var yyn38 bool + if x.ObjectMeta.DeletionGracePeriodSeconds == nil { + yyn38 = true + goto LABEL38 + } + LABEL38: + if yyr2 || yy2arr2 { + if yyn38 { + r.EncodeNil() + } else { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[11] { + if x.DeletionGracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy39 := *x.DeletionGracePeriodSeconds + yym40 := z.EncBinary() + _ = yym40 + if false { + } else { + r.EncodeInt(int64(yy39)) + } + } + } else { + r.EncodeNil() + } + } + } else { + if yyq2[11] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if yyn38 { + r.EncodeNil() + } else { + if x.DeletionGracePeriodSeconds == nil { + r.EncodeNil() + } else { + yy41 := *x.DeletionGracePeriodSeconds + yym42 := z.EncBinary() + _ = yym42 + if false { + } else { + r.EncodeInt(int64(yy41)) + } + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[12] { + if x.Labels == nil { + r.EncodeNil() + } else { + yym44 := z.EncBinary() + _ = yym44 + if false { + } else { + z.F.EncMapStringStringV(x.Labels, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[12] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("labels")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Labels == nil { + r.EncodeNil() + } else { + yym45 := z.EncBinary() + _ = yym45 + if false { + } else { + z.F.EncMapStringStringV(x.Labels, false, e) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[13] { + if x.Annotations == nil { + r.EncodeNil() + } else { + yym47 := z.EncBinary() + _ = yym47 + if false { + } else { + z.F.EncMapStringStringV(x.Annotations, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[13] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("annotations")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Annotations == nil { + r.EncodeNil() + } else { + yym48 := z.EncBinary() + _ = yym48 + if false { + } else { + z.F.EncMapStringStringV(x.Annotations, false, e) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[14] { + if x.OwnerReferences == nil { + r.EncodeNil() + } else { + yym50 := z.EncBinary() + _ = yym50 + if false { + } else { + h.encSliceapi_OwnerReference(([]pkg2_api.OwnerReference)(x.OwnerReferences), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[14] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.OwnerReferences == nil { + r.EncodeNil() + } else { + yym51 := z.EncBinary() + _ = yym51 + if false { + } else { + h.encSliceapi_OwnerReference(([]pkg2_api.OwnerReference)(x.OwnerReferences), e) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[15] { + if x.Finalizers == nil { + r.EncodeNil() + } else { + yym53 := z.EncBinary() + _ = yym53 + if false { + } else { + z.F.EncSliceStringV(x.Finalizers, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq2[15] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("finalizers")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Finalizers == nil { + r.EncodeNil() + } else { + yym54 := z.EncBinary() + _ = yym54 + if false { + } else { + z.F.EncSliceStringV(x.Finalizers, false, e) + } + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[16] { + yym56 := z.EncBinary() + _ = yym56 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[16] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("clusterName")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym57 := z.EncBinary() + _ = yym57 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy59 := &x.Spec + yy59.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy60 := &x.Spec + yy60.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy62 := &x.Status + yy62.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy63 := &x.Status + yy63.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ImageReview) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym64 := z.DecBinary() + _ = yym64 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct65 := r.ContainerType() + if yyct65 == codecSelferValueTypeMap1234 { + yyl65 := r.ReadMapStart() + if yyl65 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl65, d) + } + } else if yyct65 == codecSelferValueTypeArray1234 { + yyl65 := r.ReadArrayStart() + if yyl65 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl65, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ImageReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys66Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys66Slc + var yyhl66 bool = l >= 0 + for yyj66 := 0; ; yyj66++ { + if yyhl66 { + if yyj66 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys66Slc = r.DecodeBytes(yys66Slc, true, true) + yys66 := string(yys66Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys66 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "name": + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + case "generateName": + if r.TryDecodeAsNil() { + x.GenerateName = "" + } else { + x.GenerateName = string(r.DecodeString()) + } + case "namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = string(r.DecodeString()) + } + case "selfLink": + if r.TryDecodeAsNil() { + x.SelfLink = "" + } else { + x.SelfLink = string(r.DecodeString()) + } + case "uid": + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = pkg3_types.UID(r.DecodeString()) + } + case "resourceVersion": + if r.TryDecodeAsNil() { + x.ResourceVersion = "" + } else { + x.ResourceVersion = string(r.DecodeString()) + } + case "generation": + if r.TryDecodeAsNil() { + x.Generation = 0 + } else { + x.Generation = int64(r.DecodeInt(64)) + } + case "creationTimestamp": + if r.TryDecodeAsNil() { + x.CreationTimestamp = pkg1_unversioned.Time{} + } else { + yyv76 := &x.CreationTimestamp + yym77 := z.DecBinary() + _ = yym77 + if false { + } else if z.HasExtensions() && z.DecExt(yyv76) { + } else if yym77 { + z.DecBinaryUnmarshal(yyv76) + } else if !yym77 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv76) + } else { + z.DecFallback(yyv76, false) + } + } + case "deletionTimestamp": + if x.ObjectMeta.DeletionTimestamp == nil { + x.ObjectMeta.DeletionTimestamp = new(pkg1_unversioned.Time) + } + if r.TryDecodeAsNil() { + if x.DeletionTimestamp != nil { + x.DeletionTimestamp = nil + } + } else { + if x.DeletionTimestamp == nil { + x.DeletionTimestamp = new(pkg1_unversioned.Time) + } + yym79 := z.DecBinary() + _ = yym79 + if false { + } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { + } else if yym79 { + z.DecBinaryUnmarshal(x.DeletionTimestamp) + } else if !yym79 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.DeletionTimestamp) + } else { + z.DecFallback(x.DeletionTimestamp, false) + } + } + case "deletionGracePeriodSeconds": + if x.ObjectMeta.DeletionGracePeriodSeconds == nil { + x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) + } + if r.TryDecodeAsNil() { + if x.DeletionGracePeriodSeconds != nil { + x.DeletionGracePeriodSeconds = nil + } + } else { + if x.DeletionGracePeriodSeconds == nil { + x.DeletionGracePeriodSeconds = new(int64) + } + yym81 := z.DecBinary() + _ = yym81 + if false { + } else { + *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + case "labels": + if r.TryDecodeAsNil() { + x.Labels = nil + } else { + yyv82 := &x.Labels + yym83 := z.DecBinary() + _ = yym83 + if false { + } else { + z.F.DecMapStringStringX(yyv82, false, d) + } + } + case "annotations": + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + yyv84 := &x.Annotations + yym85 := z.DecBinary() + _ = yym85 + if false { + } else { + z.F.DecMapStringStringX(yyv84, false, d) + } + } + case "ownerReferences": + if r.TryDecodeAsNil() { + x.OwnerReferences = nil + } else { + yyv86 := &x.OwnerReferences + yym87 := z.DecBinary() + _ = yym87 + if false { + } else { + h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv86), d) + } + } + case "finalizers": + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv88 := &x.Finalizers + yym89 := z.DecBinary() + _ = yym89 + if false { + } else { + z.F.DecSliceStringX(yyv88, false, d) + } + } + case "clusterName": + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } + case "Spec": + if r.TryDecodeAsNil() { + x.Spec = ImageReviewSpec{} + } else { + yyv91 := &x.Spec + yyv91.CodecDecodeSelf(d) + } + case "Status": + if r.TryDecodeAsNil() { + x.Status = ImageReviewStatus{} + } else { + yyv92 := &x.Status + yyv92.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys66) + } // end switch yys66 + } // end for yyj66 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ImageReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj93 int + var yyb93 bool + var yyhl93 bool = l >= 0 + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Name = "" + } else { + x.Name = string(r.DecodeString()) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.GenerateName = "" + } else { + x.GenerateName = string(r.DecodeString()) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = string(r.DecodeString()) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.SelfLink = "" + } else { + x.SelfLink = string(r.DecodeString()) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.UID = "" + } else { + x.UID = pkg3_types.UID(r.DecodeString()) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ResourceVersion = "" + } else { + x.ResourceVersion = string(r.DecodeString()) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Generation = 0 + } else { + x.Generation = int64(r.DecodeInt(64)) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.CreationTimestamp = pkg1_unversioned.Time{} + } else { + yyv103 := &x.CreationTimestamp + yym104 := z.DecBinary() + _ = yym104 + if false { + } else if z.HasExtensions() && z.DecExt(yyv103) { + } else if yym104 { + z.DecBinaryUnmarshal(yyv103) + } else if !yym104 && z.IsJSONHandle() { + z.DecJSONUnmarshal(yyv103) + } else { + z.DecFallback(yyv103, false) + } + } + if x.ObjectMeta.DeletionTimestamp == nil { + x.ObjectMeta.DeletionTimestamp = new(pkg1_unversioned.Time) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DeletionTimestamp != nil { + x.DeletionTimestamp = nil + } + } else { + if x.DeletionTimestamp == nil { + x.DeletionTimestamp = new(pkg1_unversioned.Time) + } + yym106 := z.DecBinary() + _ = yym106 + if false { + } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { + } else if yym106 { + z.DecBinaryUnmarshal(x.DeletionTimestamp) + } else if !yym106 && z.IsJSONHandle() { + z.DecJSONUnmarshal(x.DeletionTimestamp) + } else { + z.DecFallback(x.DeletionTimestamp, false) + } + } + if x.ObjectMeta.DeletionGracePeriodSeconds == nil { + x.ObjectMeta.DeletionGracePeriodSeconds = new(int64) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DeletionGracePeriodSeconds != nil { + x.DeletionGracePeriodSeconds = nil + } + } else { + if x.DeletionGracePeriodSeconds == nil { + x.DeletionGracePeriodSeconds = new(int64) + } + yym108 := z.DecBinary() + _ = yym108 + if false { + } else { + *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) + } + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Labels = nil + } else { + yyv109 := &x.Labels + yym110 := z.DecBinary() + _ = yym110 + if false { + } else { + z.F.DecMapStringStringX(yyv109, false, d) + } + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + yyv111 := &x.Annotations + yym112 := z.DecBinary() + _ = yym112 + if false { + } else { + z.F.DecMapStringStringX(yyv111, false, d) + } + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.OwnerReferences = nil + } else { + yyv113 := &x.OwnerReferences + yym114 := z.DecBinary() + _ = yym114 + if false { + } else { + h.decSliceapi_OwnerReference((*[]pkg2_api.OwnerReference)(yyv113), d) + } + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Finalizers = nil + } else { + yyv115 := &x.Finalizers + yym116 := z.DecBinary() + _ = yym116 + if false { + } else { + z.F.DecSliceStringX(yyv115, false, d) + } + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ClusterName = "" + } else { + x.ClusterName = string(r.DecodeString()) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = ImageReviewSpec{} + } else { + yyv118 := &x.Spec + yyv118.CodecDecodeSelf(d) + } + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = ImageReviewStatus{} + } else { + yyv119 := &x.Status + yyv119.CodecDecodeSelf(d) + } + for { + yyj93++ + if yyhl93 { + yyb93 = yyj93 > l + } else { + yyb93 = r.CheckBreak() + } + if yyb93 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj93-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ImageReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym120 := z.EncBinary() + _ = yym120 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep121 := !z.EncBinary() + yy2arr121 := z.EncBasicHandle().StructToArray + var yyq121 [3]bool + _, _, _ = yysep121, yyq121, yy2arr121 + const yyr121 bool = false + var yynn121 int + if yyr121 || yy2arr121 { + r.EncodeArrayStart(3) + } else { + yynn121 = 3 + for _, b := range yyq121 { + if b { + yynn121++ + } + } + r.EncodeMapStart(yynn121) + yynn121 = 0 + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Containers == nil { + r.EncodeNil() + } else { + yym123 := z.EncBinary() + _ = yym123 + if false { + } else { + h.encSliceImageReviewContainerSpec(([]ImageReviewContainerSpec)(x.Containers), e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Containers")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Containers == nil { + r.EncodeNil() + } else { + yym124 := z.EncBinary() + _ = yym124 + if false { + } else { + h.encSliceImageReviewContainerSpec(([]ImageReviewContainerSpec)(x.Containers), e) + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if x.Annotations == nil { + r.EncodeNil() + } else { + yym126 := z.EncBinary() + _ = yym126 + if false { + } else { + z.F.EncMapStringStringV(x.Annotations, false, e) + } + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Annotations")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Annotations == nil { + r.EncodeNil() + } else { + yym127 := z.EncBinary() + _ = yym127 + if false { + } else { + z.F.EncMapStringStringV(x.Annotations, false, e) + } + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym129 := z.EncBinary() + _ = yym129 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Namespace")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym130 := z.EncBinary() + _ = yym130 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } + if yyr121 || yy2arr121 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ImageReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym131 := z.DecBinary() + _ = yym131 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct132 := r.ContainerType() + if yyct132 == codecSelferValueTypeMap1234 { + yyl132 := r.ReadMapStart() + if yyl132 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl132, d) + } + } else if yyct132 == codecSelferValueTypeArray1234 { + yyl132 := r.ReadArrayStart() + if yyl132 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl132, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ImageReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys133Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys133Slc + var yyhl133 bool = l >= 0 + for yyj133 := 0; ; yyj133++ { + if yyhl133 { + if yyj133 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys133Slc = r.DecodeBytes(yys133Slc, true, true) + yys133 := string(yys133Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys133 { + case "Containers": + if r.TryDecodeAsNil() { + x.Containers = nil + } else { + yyv134 := &x.Containers + yym135 := z.DecBinary() + _ = yym135 + if false { + } else { + h.decSliceImageReviewContainerSpec((*[]ImageReviewContainerSpec)(yyv134), d) + } + } + case "Annotations": + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + yyv136 := &x.Annotations + yym137 := z.DecBinary() + _ = yym137 + if false { + } else { + z.F.DecMapStringStringX(yyv136, false, d) + } + } + case "Namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys133) + } // end switch yys133 + } // end for yyj133 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ImageReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj139 int + var yyb139 bool + var yyhl139 bool = l >= 0 + yyj139++ + if yyhl139 { + yyb139 = yyj139 > l + } else { + yyb139 = r.CheckBreak() + } + if yyb139 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Containers = nil + } else { + yyv140 := &x.Containers + yym141 := z.DecBinary() + _ = yym141 + if false { + } else { + h.decSliceImageReviewContainerSpec((*[]ImageReviewContainerSpec)(yyv140), d) + } + } + yyj139++ + if yyhl139 { + yyb139 = yyj139 > l + } else { + yyb139 = r.CheckBreak() + } + if yyb139 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + yyv142 := &x.Annotations + yym143 := z.DecBinary() + _ = yym143 + if false { + } else { + z.F.DecMapStringStringX(yyv142, false, d) + } + } + yyj139++ + if yyhl139 { + yyb139 = yyj139 > l + } else { + yyb139 = r.CheckBreak() + } + if yyb139 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = string(r.DecodeString()) + } + for { + yyj139++ + if yyhl139 { + yyb139 = yyj139 > l + } else { + yyb139 = r.CheckBreak() + } + if yyb139 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj139-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ImageReviewContainerSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym145 := z.EncBinary() + _ = yym145 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep146 := !z.EncBinary() + yy2arr146 := z.EncBasicHandle().StructToArray + var yyq146 [1]bool + _, _, _ = yysep146, yyq146, yy2arr146 + const yyr146 bool = false + var yynn146 int + if yyr146 || yy2arr146 { + r.EncodeArrayStart(1) + } else { + yynn146 = 1 + for _, b := range yyq146 { + if b { + yynn146++ + } + } + r.EncodeMapStart(yynn146) + yynn146 = 0 + } + if yyr146 || yy2arr146 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym148 := z.EncBinary() + _ = yym148 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Image)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Image")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym149 := z.EncBinary() + _ = yym149 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Image)) + } + } + if yyr146 || yy2arr146 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ImageReviewContainerSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym150 := z.DecBinary() + _ = yym150 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct151 := r.ContainerType() + if yyct151 == codecSelferValueTypeMap1234 { + yyl151 := r.ReadMapStart() + if yyl151 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl151, d) + } + } else if yyct151 == codecSelferValueTypeArray1234 { + yyl151 := r.ReadArrayStart() + if yyl151 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl151, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ImageReviewContainerSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys152Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys152Slc + var yyhl152 bool = l >= 0 + for yyj152 := 0; ; yyj152++ { + if yyhl152 { + if yyj152 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys152Slc = r.DecodeBytes(yys152Slc, true, true) + yys152 := string(yys152Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys152 { + case "Image": + if r.TryDecodeAsNil() { + x.Image = "" + } else { + x.Image = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys152) + } // end switch yys152 + } // end for yyj152 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ImageReviewContainerSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj154 int + var yyb154 bool + var yyhl154 bool = l >= 0 + yyj154++ + if yyhl154 { + yyb154 = yyj154 > l + } else { + yyb154 = r.CheckBreak() + } + if yyb154 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Image = "" + } else { + x.Image = string(r.DecodeString()) + } + for { + yyj154++ + if yyhl154 { + yyb154 = yyj154 > l + } else { + yyb154 = r.CheckBreak() + } + if yyb154 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj154-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ImageReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym156 := z.EncBinary() + _ = yym156 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep157 := !z.EncBinary() + yy2arr157 := z.EncBasicHandle().StructToArray + var yyq157 [2]bool + _, _, _ = yysep157, yyq157, yy2arr157 + const yyr157 bool = false + var yynn157 int + if yyr157 || yy2arr157 { + r.EncodeArrayStart(2) + } else { + yynn157 = 2 + for _, b := range yyq157 { + if b { + yynn157++ + } + } + r.EncodeMapStart(yynn157) + yynn157 = 0 + } + if yyr157 || yy2arr157 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym159 := z.EncBinary() + _ = yym159 + if false { + } else { + r.EncodeBool(bool(x.Allowed)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Allowed")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym160 := z.EncBinary() + _ = yym160 + if false { + } else { + r.EncodeBool(bool(x.Allowed)) + } + } + if yyr157 || yy2arr157 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym162 := z.EncBinary() + _ = yym162 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("Reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym163 := z.EncBinary() + _ = yym163 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + if yyr157 || yy2arr157 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ImageReviewStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym164 := z.DecBinary() + _ = yym164 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct165 := r.ContainerType() + if yyct165 == codecSelferValueTypeMap1234 { + yyl165 := r.ReadMapStart() + if yyl165 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl165, d) + } + } else if yyct165 == codecSelferValueTypeArray1234 { + yyl165 := r.ReadArrayStart() + if yyl165 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl165, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ImageReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys166Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys166Slc + var yyhl166 bool = l >= 0 + for yyj166 := 0; ; yyj166++ { + if yyhl166 { + if yyj166 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys166Slc = r.DecodeBytes(yys166Slc, true, true) + yys166 := string(yys166Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys166 { + case "Allowed": + if r.TryDecodeAsNil() { + x.Allowed = false + } else { + x.Allowed = bool(r.DecodeBool()) + } + case "Reason": + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys166) + } // end switch yys166 + } // end for yyj166 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ImageReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj169 int + var yyb169 bool + var yyhl169 bool = l >= 0 + yyj169++ + if yyhl169 { + yyb169 = yyj169 > l + } else { + yyb169 = r.CheckBreak() + } + if yyb169 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Allowed = false + } else { + x.Allowed = bool(r.DecodeBool()) + } + yyj169++ + if yyhl169 { + yyb169 = yyj169 > l + } else { + yyb169 = r.CheckBreak() + } + if yyb169 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + for { + yyj169++ + if yyhl169 { + yyb169 = yyj169 > l + } else { + yyb169 = r.CheckBreak() + } + if yyb169 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj169-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) encSliceapi_OwnerReference(v []pkg2_api.OwnerReference, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv172 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy173 := &yyv172 + yy173.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceapi_OwnerReference(v *[]pkg2_api.OwnerReference, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv174 := *v + yyh174, yyl174 := z.DecSliceHelperStart() + var yyc174 bool + if yyl174 == 0 { + if yyv174 == nil { + yyv174 = []pkg2_api.OwnerReference{} + yyc174 = true + } else if len(yyv174) != 0 { + yyv174 = yyv174[:0] + yyc174 = true + } + } else if yyl174 > 0 { + var yyrr174, yyrl174 int + var yyrt174 bool + if yyl174 > cap(yyv174) { + + yyrg174 := len(yyv174) > 0 + yyv2174 := yyv174 + yyrl174, yyrt174 = z.DecInferLen(yyl174, z.DecBasicHandle().MaxInitLen, 72) + if yyrt174 { + if yyrl174 <= cap(yyv174) { + yyv174 = yyv174[:yyrl174] + } else { + yyv174 = make([]pkg2_api.OwnerReference, yyrl174) + } + } else { + yyv174 = make([]pkg2_api.OwnerReference, yyrl174) + } + yyc174 = true + yyrr174 = len(yyv174) + if yyrg174 { + copy(yyv174, yyv2174) + } + } else if yyl174 != len(yyv174) { + yyv174 = yyv174[:yyl174] + yyc174 = true + } + yyj174 := 0 + for ; yyj174 < yyrr174; yyj174++ { + yyh174.ElemContainerState(yyj174) + if r.TryDecodeAsNil() { + yyv174[yyj174] = pkg2_api.OwnerReference{} + } else { + yyv175 := &yyv174[yyj174] + yyv175.CodecDecodeSelf(d) + } + + } + if yyrt174 { + for ; yyj174 < yyl174; yyj174++ { + yyv174 = append(yyv174, pkg2_api.OwnerReference{}) + yyh174.ElemContainerState(yyj174) + if r.TryDecodeAsNil() { + yyv174[yyj174] = pkg2_api.OwnerReference{} + } else { + yyv176 := &yyv174[yyj174] + yyv176.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj174 := 0 + for ; !r.CheckBreak(); yyj174++ { + + if yyj174 >= len(yyv174) { + yyv174 = append(yyv174, pkg2_api.OwnerReference{}) // var yyz174 pkg2_api.OwnerReference + yyc174 = true + } + yyh174.ElemContainerState(yyj174) + if yyj174 < len(yyv174) { + if r.TryDecodeAsNil() { + yyv174[yyj174] = pkg2_api.OwnerReference{} + } else { + yyv177 := &yyv174[yyj174] + yyv177.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj174 < len(yyv174) { + yyv174 = yyv174[:yyj174] + yyc174 = true + } else if yyj174 == 0 && yyv174 == nil { + yyv174 = []pkg2_api.OwnerReference{} + yyc174 = true + } + } + yyh174.End() + if yyc174 { + *v = yyv174 + } +} + +func (x codecSelfer1234) encSliceImageReviewContainerSpec(v []ImageReviewContainerSpec, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv178 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy179 := &yyv178 + yy179.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceImageReviewContainerSpec(v *[]ImageReviewContainerSpec, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv180 := *v + yyh180, yyl180 := z.DecSliceHelperStart() + var yyc180 bool + if yyl180 == 0 { + if yyv180 == nil { + yyv180 = []ImageReviewContainerSpec{} + yyc180 = true + } else if len(yyv180) != 0 { + yyv180 = yyv180[:0] + yyc180 = true + } + } else if yyl180 > 0 { + var yyrr180, yyrl180 int + var yyrt180 bool + if yyl180 > cap(yyv180) { + + yyrg180 := len(yyv180) > 0 + yyv2180 := yyv180 + yyrl180, yyrt180 = z.DecInferLen(yyl180, z.DecBasicHandle().MaxInitLen, 16) + if yyrt180 { + if yyrl180 <= cap(yyv180) { + yyv180 = yyv180[:yyrl180] + } else { + yyv180 = make([]ImageReviewContainerSpec, yyrl180) + } + } else { + yyv180 = make([]ImageReviewContainerSpec, yyrl180) + } + yyc180 = true + yyrr180 = len(yyv180) + if yyrg180 { + copy(yyv180, yyv2180) + } + } else if yyl180 != len(yyv180) { + yyv180 = yyv180[:yyl180] + yyc180 = true + } + yyj180 := 0 + for ; yyj180 < yyrr180; yyj180++ { + yyh180.ElemContainerState(yyj180) + if r.TryDecodeAsNil() { + yyv180[yyj180] = ImageReviewContainerSpec{} + } else { + yyv181 := &yyv180[yyj180] + yyv181.CodecDecodeSelf(d) + } + + } + if yyrt180 { + for ; yyj180 < yyl180; yyj180++ { + yyv180 = append(yyv180, ImageReviewContainerSpec{}) + yyh180.ElemContainerState(yyj180) + if r.TryDecodeAsNil() { + yyv180[yyj180] = ImageReviewContainerSpec{} + } else { + yyv182 := &yyv180[yyj180] + yyv182.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj180 := 0 + for ; !r.CheckBreak(); yyj180++ { + + if yyj180 >= len(yyv180) { + yyv180 = append(yyv180, ImageReviewContainerSpec{}) // var yyz180 ImageReviewContainerSpec + yyc180 = true + } + yyh180.ElemContainerState(yyj180) + if yyj180 < len(yyv180) { + if r.TryDecodeAsNil() { + yyv180[yyj180] = ImageReviewContainerSpec{} + } else { + yyv183 := &yyv180[yyj180] + yyv183.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj180 < len(yyv180) { + yyv180 = yyv180[:yyj180] + yyc180 = true + } else if yyj180 == 0 && yyv180 == nil { + yyv180 = []ImageReviewContainerSpec{} + yyc180 = true + } + } + yyh180.End() + if yyc180 { + *v = yyv180 + } +} diff --git a/1.4/pkg/apis/imagepolicy/types.go b/1.4/pkg/apis/imagepolicy/types.go new file mode 100644 index 00000000..7ce1da86 --- /dev/null +++ b/1.4/pkg/apis/imagepolicy/types.go @@ -0,0 +1,67 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package imagepolicy + +import ( + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/api/unversioned" +) + +// +genclient=true +// +nonNamespaced=true +// +noMethods=true + +// ImageReview checks if the set of images in a pod are allowed. +type ImageReview struct { + unversioned.TypeMeta + api.ObjectMeta + + // Spec holds information about the pod being evaluated + Spec ImageReviewSpec + + // Status is filled in by the backend and indicates whether the pod should be allowed. + Status ImageReviewStatus +} + +// ImageReviewSpec is a description of the pod creation request. +type ImageReviewSpec struct { + // Containers is a list of a subset of the information in each container of the Pod being created. + Containers []ImageReviewContainerSpec + // Annotations is a list of key-value pairs extracted from the Pod's annotations. + // It only includes keys which match the pattern `*.image-policy.k8s.io/*`. + // It is up to each webhook backend to determine how to interpret these annotations, if at all. + Annotations map[string]string + // Namespace is the namespace the pod is being created in. + Namespace string +} + +// ImageReviewContainerSpec is a description of a container within the pod creation request. +type ImageReviewContainerSpec struct { + // This can be in the form image:tag or image@SHA:012345679abcdef. + Image string + // In future, we may add command line overrides, exec health check command lines, and so on. +} + +// ImageReviewStatus is the result of the token authentication request. +type ImageReviewStatus struct { + // Allowed indicates that all images were allowed to be run. + Allowed bool + // Reason should be empty unless Allowed is false in which case it + // may contain a short description of what is wrong. Kubernetes + // may truncate excessively long errors when displaying to the user. + Reason string +} diff --git a/1.4/pkg/apis/imagepolicy/v1alpha1/doc.go b/1.4/pkg/apis/imagepolicy/v1alpha1/doc.go new file mode 100644 index 00000000..e52d15c7 --- /dev/null +++ b/1.4/pkg/apis/imagepolicy/v1alpha1/doc.go @@ -0,0 +1,21 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// +groupName=imagepolicy.k8s.io +// +k8s:deepcopy-gen=package,register +// +k8s:conversion-gen=k8s.io/kubernetes/pkg/apis/imagepolicy + +package v1alpha1 diff --git a/1.4/pkg/apis/imagepolicy/v1alpha1/generated.pb.go b/1.4/pkg/apis/imagepolicy/v1alpha1/generated.pb.go new file mode 100644 index 00000000..7918490c --- /dev/null +++ b/1.4/pkg/apis/imagepolicy/v1alpha1/generated.pb.go @@ -0,0 +1,1059 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by protoc-gen-gogo. +// source: k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/generated.proto +// DO NOT EDIT! + +/* + Package v1alpha1 is a generated protocol buffer package. + + It is generated from these files: + k8s.io/kubernetes/pkg/apis/imagepolicy/v1alpha1/generated.proto + + It has these top-level messages: + ImageReview + ImageReviewContainerSpec + ImageReviewSpec + ImageReviewStatus +*/ +package v1alpha1 + +import proto "github.com/gogo/protobuf/proto" +import fmt "fmt" +import math "math" + +import strings "strings" +import reflect "reflect" +import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys" + +import io "io" + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +const _ = proto.GoGoProtoPackageIsVersion1 + +func (m *ImageReview) Reset() { *m = ImageReview{} } +func (*ImageReview) ProtoMessage() {} +func (*ImageReview) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + +func (m *ImageReviewContainerSpec) Reset() { *m = ImageReviewContainerSpec{} } +func (*ImageReviewContainerSpec) ProtoMessage() {} +func (*ImageReviewContainerSpec) Descriptor() ([]byte, []int) { + return fileDescriptorGenerated, []int{1} +} + +func (m *ImageReviewSpec) Reset() { *m = ImageReviewSpec{} } +func (*ImageReviewSpec) ProtoMessage() {} +func (*ImageReviewSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } + +func (m *ImageReviewStatus) Reset() { *m = ImageReviewStatus{} } +func (*ImageReviewStatus) ProtoMessage() {} +func (*ImageReviewStatus) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } + +func init() { + proto.RegisterType((*ImageReview)(nil), "k8s.io.client-go.1.4.pkg.apis.imagepolicy.v1alpha1.ImageReview") + proto.RegisterType((*ImageReviewContainerSpec)(nil), "k8s.io.client-go.1.4.pkg.apis.imagepolicy.v1alpha1.ImageReviewContainerSpec") + proto.RegisterType((*ImageReviewSpec)(nil), "k8s.io.client-go.1.4.pkg.apis.imagepolicy.v1alpha1.ImageReviewSpec") + proto.RegisterType((*ImageReviewStatus)(nil), "k8s.io.client-go.1.4.pkg.apis.imagepolicy.v1alpha1.ImageReviewStatus") +} +func (m *ImageReview) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ImageReview) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) + n1, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n2, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n2 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n3, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n3 + return i, nil +} + +func (m *ImageReviewContainerSpec) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ImageReviewContainerSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Image))) + i += copy(data[i:], m.Image) + return i, nil +} + +func (m *ImageReviewSpec) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ImageReviewSpec) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Containers) > 0 { + for _, msg := range m.Containers { + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(msg.Size())) + n, err := msg.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n + } + } + if len(m.Annotations) > 0 { + for k := range m.Annotations { + data[i] = 0x12 + i++ + v := m.Annotations[k] + mapSize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + i = encodeVarintGenerated(data, i, uint64(mapSize)) + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(len(k))) + i += copy(data[i:], k) + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(v))) + i += copy(data[i:], v) + } + } + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Namespace))) + i += copy(data[i:], m.Namespace) + return i, nil +} + +func (m *ImageReviewStatus) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *ImageReviewStatus) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0x8 + i++ + if m.Allowed { + data[i] = 1 + } else { + data[i] = 0 + } + i++ + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(len(m.Reason))) + i += copy(data[i:], m.Reason) + return i, nil +} + +func encodeFixed64Generated(data []byte, offset int, v uint64) int { + data[offset] = uint8(v) + data[offset+1] = uint8(v >> 8) + data[offset+2] = uint8(v >> 16) + data[offset+3] = uint8(v >> 24) + data[offset+4] = uint8(v >> 32) + data[offset+5] = uint8(v >> 40) + data[offset+6] = uint8(v >> 48) + data[offset+7] = uint8(v >> 56) + return offset + 8 +} +func encodeFixed32Generated(data []byte, offset int, v uint32) int { + data[offset] = uint8(v) + data[offset+1] = uint8(v >> 8) + data[offset+2] = uint8(v >> 16) + data[offset+3] = uint8(v >> 24) + return offset + 4 +} +func encodeVarintGenerated(data []byte, offset int, v uint64) int { + for v >= 1<<7 { + data[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + data[offset] = uint8(v) + return offset + 1 +} +func (m *ImageReview) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Spec.Size() + n += 1 + l + sovGenerated(uint64(l)) + l = m.Status.Size() + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ImageReviewContainerSpec) Size() (n int) { + var l int + _ = l + l = len(m.Image) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ImageReviewSpec) Size() (n int) { + var l int + _ = l + if len(m.Containers) > 0 { + for _, e := range m.Containers { + l = e.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + } + if len(m.Annotations) > 0 { + for k, v := range m.Annotations { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovGenerated(uint64(len(k))) + 1 + len(v) + sovGenerated(uint64(len(v))) + n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) + } + } + l = len(m.Namespace) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func (m *ImageReviewStatus) Size() (n int) { + var l int + _ = l + n += 2 + l = len(m.Reason) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + +func sovGenerated(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozGenerated(x uint64) (n int) { + return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (this *ImageReview) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ImageReview{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `Spec:` + strings.Replace(strings.Replace(this.Spec.String(), "ImageReviewSpec", "ImageReviewSpec", 1), `&`, ``, 1) + `,`, + `Status:` + strings.Replace(strings.Replace(this.Status.String(), "ImageReviewStatus", "ImageReviewStatus", 1), `&`, ``, 1) + `,`, + `}`, + }, "") + return s +} +func (this *ImageReviewContainerSpec) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ImageReviewContainerSpec{`, + `Image:` + fmt.Sprintf("%v", this.Image) + `,`, + `}`, + }, "") + return s +} +func (this *ImageReviewSpec) String() string { + if this == nil { + return "nil" + } + keysForAnnotations := make([]string, 0, len(this.Annotations)) + for k := range this.Annotations { + keysForAnnotations = append(keysForAnnotations, k) + } + github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations) + mapStringForAnnotations := "map[string]string{" + for _, k := range keysForAnnotations { + mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k]) + } + mapStringForAnnotations += "}" + s := strings.Join([]string{`&ImageReviewSpec{`, + `Containers:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Containers), "ImageReviewContainerSpec", "ImageReviewContainerSpec", 1), `&`, ``, 1) + `,`, + `Annotations:` + mapStringForAnnotations + `,`, + `Namespace:` + fmt.Sprintf("%v", this.Namespace) + `,`, + `}`, + }, "") + return s +} +func (this *ImageReviewStatus) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&ImageReviewStatus{`, + `Allowed:` + fmt.Sprintf("%v", this.Allowed) + `,`, + `Reason:` + fmt.Sprintf("%v", this.Reason) + `,`, + `}`, + }, "") + return s +} +func valueToStringGenerated(v interface{}) string { + rv := reflect.ValueOf(v) + if rv.IsNil() { + return "nil" + } + pv := reflect.Indirect(rv).Interface() + return fmt.Sprintf("*%v", pv) +} +func (m *ImageReview) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ImageReview: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ImageReview: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Spec.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ImageReviewContainerSpec) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ImageReviewContainerSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ImageReviewContainerSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Image", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Image = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ImageReviewSpec) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ImageReviewSpec: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ImageReviewSpec: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Containers", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Containers = append(m.Containers, ImageReviewContainerSpec{}) + if err := m.Containers[len(m.Containers)-1].Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + var keykey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + keykey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLenmapkey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey := string(data[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + var valuekey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + valuekey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + var stringLenmapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLenmapvalue |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapvalue := int(stringLenmapvalue) + if intStringLenmapvalue < 0 { + return ErrInvalidLengthGenerated + } + postStringIndexmapvalue := iNdEx + intStringLenmapvalue + if postStringIndexmapvalue > l { + return io.ErrUnexpectedEOF + } + mapvalue := string(data[iNdEx:postStringIndexmapvalue]) + iNdEx = postStringIndexmapvalue + if m.Annotations == nil { + m.Annotations = make(map[string]string) + } + m.Annotations[mapkey] = mapvalue + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Namespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Namespace = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ImageReviewStatus) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ImageReviewStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ImageReviewStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Allowed", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.Allowed = bool(v != 0) + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Reason = string(data[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipGenerated(data []byte) (n int, err error) { + l := len(data) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if data[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthGenerated + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowGenerated + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipGenerated(data[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") +) + +var fileDescriptorGenerated = []byte{ + // 569 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x92, 0xbf, 0x6e, 0x13, 0x4f, + 0x10, 0xc7, 0xfd, 0x27, 0x76, 0xec, 0xf5, 0xef, 0x47, 0x92, 0x85, 0xc2, 0x72, 0xe1, 0x20, 0x23, + 0xa1, 0x80, 0xc8, 0xae, 0x1c, 0x09, 0x29, 0xa2, 0x20, 0xe4, 0x10, 0x45, 0x0a, 0x40, 0x2c, 0x0d, + 0xa2, 0x5b, 0x9f, 0x27, 0x97, 0x8b, 0xcf, 0xbb, 0xa7, 0xdb, 0x3d, 0x47, 0x2e, 0x90, 0x28, 0x29, + 0x28, 0x78, 0x1b, 0x5e, 0xc1, 0x65, 0x4a, 0xaa, 0x08, 0xc2, 0x8b, 0xb0, 0xb7, 0x77, 0xce, 0x1d, + 0x76, 0x5c, 0x20, 0x17, 0x23, 0xed, 0xec, 0xec, 0x7c, 0xe6, 0x3b, 0x33, 0x8b, 0x8e, 0x46, 0x87, + 0x8a, 0xf8, 0x92, 0x8e, 0xe2, 0x01, 0x44, 0x02, 0x34, 0x28, 0x1a, 0x8e, 0x3c, 0xca, 0x43, 0x5f, + 0x51, 0x7f, 0xcc, 0x3d, 0x08, 0x65, 0xe0, 0xbb, 0x53, 0x3a, 0xe9, 0xf3, 0x20, 0x3c, 0xe3, 0x7d, + 0xea, 0x81, 0x80, 0x88, 0x6b, 0x18, 0x92, 0x30, 0x92, 0x5a, 0x62, 0x9a, 0x02, 0x48, 0x0e, 0x20, + 0x06, 0x40, 0x12, 0x00, 0x29, 0x00, 0xc8, 0x1c, 0xd0, 0xd9, 0xf7, 0x7c, 0x7d, 0x16, 0x0f, 0x88, + 0x2b, 0xc7, 0xd4, 0x93, 0x9e, 0xa4, 0x96, 0x33, 0x88, 0x4f, 0xad, 0x67, 0x1d, 0x7b, 0x4a, 0xf9, + 0x9d, 0x83, 0x95, 0x02, 0x69, 0x04, 0x4a, 0xc6, 0x91, 0x0b, 0x8b, 0x9a, 0x3a, 0x4f, 0x57, 0xe7, + 0xc4, 0x62, 0x02, 0x91, 0xf2, 0xa5, 0x80, 0xe1, 0x52, 0xda, 0x93, 0xd5, 0x69, 0x93, 0xa5, 0xc6, + 0x3b, 0xfb, 0xb7, 0xbf, 0x8e, 0x62, 0xa1, 0xfd, 0xf1, 0xb2, 0xa6, 0xfe, 0xed, 0xcf, 0x63, 0xed, + 0x07, 0xd4, 0x17, 0x5a, 0xe9, 0x68, 0x31, 0xa5, 0xf7, 0xbd, 0x82, 0x5a, 0x27, 0xc9, 0x08, 0x19, + 0x4c, 0x7c, 0xb8, 0xc0, 0x1f, 0x50, 0x63, 0x0c, 0x9a, 0x0f, 0xb9, 0xe6, 0xed, 0xf2, 0xfd, 0xf2, + 0x5e, 0xeb, 0x60, 0x8f, 0xac, 0x9c, 0xbe, 0x19, 0x38, 0x79, 0x3b, 0x38, 0x07, 0x57, 0xbf, 0x36, + 0x39, 0x0e, 0x9e, 0x5d, 0xed, 0x96, 0xae, 0xaf, 0x76, 0x51, 0x7e, 0xc7, 0x6e, 0x68, 0x78, 0x80, + 0x36, 0x54, 0x08, 0x6e, 0xbb, 0x62, 0xa9, 0x2f, 0xc8, 0x3f, 0xee, 0x94, 0x14, 0x54, 0xbe, 0x37, + 0x1c, 0xe7, 0xbf, 0xac, 0xda, 0x46, 0xe2, 0x31, 0xcb, 0xc6, 0xe7, 0xa8, 0xae, 0x34, 0xd7, 0xb1, + 0x6a, 0x57, 0x6d, 0x15, 0x67, 0xad, 0x2a, 0x96, 0xe4, 0xdc, 0xc9, 0xea, 0xd4, 0x53, 0x9f, 0x65, + 0x15, 0x7a, 0x47, 0xa8, 0x5d, 0x78, 0xfc, 0x52, 0x0a, 0xcd, 0x7d, 0x33, 0xdb, 0x44, 0x0d, 0x7e, + 0x80, 0x6a, 0x96, 0x6e, 0x47, 0xd8, 0x74, 0xfe, 0xcf, 0x10, 0xb5, 0x34, 0x21, 0x8d, 0xf5, 0xbe, + 0x56, 0xd1, 0xd6, 0x42, 0x53, 0xf8, 0x13, 0x42, 0xee, 0x9c, 0xa4, 0x4c, 0x76, 0xd5, 0x34, 0x71, + 0xb2, 0x4e, 0x13, 0x7f, 0xe9, 0xca, 0x37, 0x74, 0x73, 0xad, 0x58, 0xa1, 0x20, 0xfe, 0x52, 0x46, + 0x2d, 0x2e, 0x84, 0x34, 0x1d, 0x9a, 0xef, 0xab, 0xcc, 0xae, 0x12, 0x01, 0xef, 0xd6, 0xdd, 0x15, + 0x39, 0xce, 0x99, 0xaf, 0x84, 0x8e, 0xa6, 0xce, 0xdd, 0x4c, 0x48, 0xab, 0x10, 0x61, 0xc5, 0xd2, + 0x98, 0xa2, 0xa6, 0xe0, 0x63, 0x50, 0x21, 0x77, 0xc1, 0x6e, 0xb3, 0xe9, 0xec, 0x64, 0x49, 0xcd, + 0x37, 0xf3, 0x00, 0xcb, 0xdf, 0x74, 0x9e, 0xa3, 0xed, 0xc5, 0x32, 0x78, 0x1b, 0x55, 0x47, 0x30, + 0x4d, 0xb7, 0xc0, 0x92, 0x23, 0xbe, 0x87, 0x6a, 0x13, 0x1e, 0xc4, 0x60, 0xbf, 0x61, 0x93, 0xa5, + 0xce, 0xb3, 0xca, 0x61, 0xb9, 0x77, 0x8a, 0x76, 0x96, 0x96, 0x8f, 0x1f, 0xa1, 0x4d, 0x1e, 0x04, + 0xf2, 0x02, 0x86, 0x16, 0xd2, 0x70, 0xb6, 0x32, 0x0d, 0x9b, 0xc7, 0xe9, 0x35, 0x9b, 0xc7, 0xf1, + 0x43, 0x54, 0x8f, 0x80, 0x2b, 0x29, 0x52, 0x74, 0xfe, 0x6f, 0x98, 0xbd, 0x65, 0x59, 0xd4, 0x79, + 0x3c, 0xfb, 0xd5, 0x2d, 0x5d, 0x1a, 0xfb, 0x61, 0xec, 0xf3, 0x75, 0xb7, 0x3c, 0x33, 0x76, 0x69, + 0xec, 0xa7, 0xb1, 0x6f, 0xbf, 0xbb, 0xa5, 0x8f, 0x8d, 0xf9, 0x1c, 0xff, 0x04, 0x00, 0x00, 0xff, + 0xff, 0x5b, 0xde, 0x19, 0x74, 0x3a, 0x05, 0x00, 0x00, +} diff --git a/1.4/pkg/apis/imagepolicy/v1alpha1/generated.proto b/1.4/pkg/apis/imagepolicy/v1alpha1/generated.proto new file mode 100644 index 00000000..a0797d57 --- /dev/null +++ b/1.4/pkg/apis/imagepolicy/v1alpha1/generated.proto @@ -0,0 +1,74 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + + +// This file was autogenerated by go-to-protobuf. Do not edit it manually! + +syntax = 'proto2'; + +package k8s.io.kubernetes.pkg.apis.imagepolicy.v1alpha1; + +import "k8s.io/kubernetes/pkg/api/resource/generated.proto"; +import "k8s.io/kubernetes/pkg/api/unversioned/generated.proto"; +import "k8s.io/kubernetes/pkg/api/v1/generated.proto"; +import "k8s.io/kubernetes/pkg/runtime/generated.proto"; +import "k8s.io/kubernetes/pkg/util/intstr/generated.proto"; + +// Package-wide variables from generator "generated". +option go_package = "v1alpha1"; + +// ImageReview checks if the set of images in a pod are allowed. +message ImageReview { + optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; + + // Spec holds information about the pod being evaluated + optional ImageReviewSpec spec = 2; + + // Status is filled in by the backend and indicates whether the pod should be allowed. + optional ImageReviewStatus status = 3; +} + +// ImageReviewContainerSpec is a description of a container within the pod creation request. +message ImageReviewContainerSpec { + // This can be in the form image:tag or image@SHA:012345679abcdef. + optional string image = 1; +} + +// ImageReviewSpec is a description of the pod creation request. +message ImageReviewSpec { + // Containers is a list of a subset of the information in each container of the Pod being created. + repeated ImageReviewContainerSpec containers = 1; + + // Annotations is a list of key-value pairs extracted from the Pod's annotations. + // It only includes keys which match the pattern `*.image-policy.k8s.io/*`. + // It is up to each webhook backend to determine how to interpret these annotations, if at all. + map annotations = 2; + + // Namespace is the namespace the pod is being created in. + optional string namespace = 3; +} + +// ImageReviewStatus is the result of the token authentication request. +message ImageReviewStatus { + // Allowed indicates that all images were allowed to be run. + optional bool allowed = 1; + + // Reason should be empty unless Allowed is false in which case it + // may contain a short description of what is wrong. Kubernetes + // may truncate excessively long errors when displaying to the user. + optional string reason = 2; +} + diff --git a/1.4/pkg/apis/imagepolicy/v1alpha1/register.go b/1.4/pkg/apis/imagepolicy/v1alpha1/register.go new file mode 100644 index 00000000..2e9bdc1b --- /dev/null +++ b/1.4/pkg/apis/imagepolicy/v1alpha1/register.go @@ -0,0 +1,46 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/api/v1" + "k8s.io/client-go/1.4/pkg/runtime" +) + +// GroupName is the group name for this API. +const GroupName = "imagepolicy.k8s.io" + +// SchemeGroupVersion is group version used to register these objects +var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: "v1alpha1"} + +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) + +// Adds the list of known types to api.Scheme. +func addKnownTypes(scheme *runtime.Scheme) error { + scheme.AddKnownTypes(SchemeGroupVersion, + &v1.ListOptions{}, + &v1.DeleteOptions{}, + &v1.ExportOptions{}, + + &ImageReview{}, + ) + return nil +} diff --git a/1.4/pkg/apis/imagepolicy/v1alpha1/types.generated.go b/1.4/pkg/apis/imagepolicy/v1alpha1/types.generated.go new file mode 100644 index 00000000..93c72482 --- /dev/null +++ b/1.4/pkg/apis/imagepolicy/v1alpha1/types.generated.go @@ -0,0 +1,1208 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// ************************************************************ +// DO NOT EDIT. +// THIS FILE IS AUTO-GENERATED BY codecgen. +// ************************************************************ + +package v1alpha1 + +import ( + "errors" + "fmt" + codec1978 "github.com/ugorji/go/codec" + pkg1_unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" + pkg2_v1 "k8s.io/client-go/1.4/pkg/api/v1" + pkg3_types "k8s.io/client-go/1.4/pkg/types" + "reflect" + "runtime" + time "time" +) + +const ( + // ----- content types ---- + codecSelferC_UTF81234 = 1 + codecSelferC_RAW1234 = 0 + // ----- value types used ---- + codecSelferValueTypeArray1234 = 10 + codecSelferValueTypeMap1234 = 9 + // ----- containerStateValues ---- + codecSelfer_containerMapKey1234 = 2 + codecSelfer_containerMapValue1234 = 3 + codecSelfer_containerMapEnd1234 = 4 + codecSelfer_containerArrayElem1234 = 6 + codecSelfer_containerArrayEnd1234 = 7 +) + +var ( + codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) + codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) +) + +type codecSelfer1234 struct{} + +func init() { + if codec1978.GenVersion != 5 { + _, file, _, _ := runtime.Caller(0) + err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", + 5, codec1978.GenVersion, file) + panic(err) + } + if false { // reference the types, but skip this branch at build/run time + var v0 pkg1_unversioned.TypeMeta + var v1 pkg2_v1.ObjectMeta + var v2 pkg3_types.UID + var v3 time.Time + _, _, _, _ = v0, v1, v2, v3 + } +} + +func (x *ImageReview) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym1 := z.EncBinary() + _ = yym1 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep2 := !z.EncBinary() + yy2arr2 := z.EncBasicHandle().StructToArray + var yyq2 [5]bool + _, _, _ = yysep2, yyq2, yy2arr2 + const yyr2 bool = false + yyq2[0] = x.Kind != "" + yyq2[1] = x.APIVersion != "" + yyq2[2] = true + yyq2[4] = true + var yynn2 int + if yyr2 || yy2arr2 { + r.EncodeArrayStart(5) + } else { + yynn2 = 1 + for _, b := range yyq2 { + if b { + yynn2++ + } + } + r.EncodeMapStart(yynn2) + yynn2 = 0 + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[0] { + yym4 := z.EncBinary() + _ = yym4 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym5 := z.EncBinary() + _ = yym5 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[1] { + yym7 := z.EncBinary() + _ = yym7 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq2[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym8 := z.EncBinary() + _ = yym8 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[2] { + yy10 := &x.ObjectMeta + yy10.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy11 := &x.ObjectMeta + yy11.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy13 := &x.Spec + yy13.CodecEncodeSelf(e) + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("spec")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy14 := &x.Spec + yy14.CodecEncodeSelf(e) + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq2[4] { + yy16 := &x.Status + yy16.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq2[4] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("status")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy17 := &x.Status + yy17.CodecEncodeSelf(e) + } + } + if yyr2 || yy2arr2 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ImageReview) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym18 := z.DecBinary() + _ = yym18 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct19 := r.ContainerType() + if yyct19 == codecSelferValueTypeMap1234 { + yyl19 := r.ReadMapStart() + if yyl19 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl19, d) + } + } else if yyct19 == codecSelferValueTypeArray1234 { + yyl19 := r.ReadArrayStart() + if yyl19 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl19, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ImageReview) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys20Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys20Slc + var yyhl20 bool = l >= 0 + for yyj20 := 0; ; yyj20++ { + if yyhl20 { + if yyj20 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys20Slc = r.DecodeBytes(yys20Slc, true, true) + yys20 := string(yys20Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys20 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_v1.ObjectMeta{} + } else { + yyv23 := &x.ObjectMeta + yyv23.CodecDecodeSelf(d) + } + case "spec": + if r.TryDecodeAsNil() { + x.Spec = ImageReviewSpec{} + } else { + yyv24 := &x.Spec + yyv24.CodecDecodeSelf(d) + } + case "status": + if r.TryDecodeAsNil() { + x.Status = ImageReviewStatus{} + } else { + yyv25 := &x.Status + yyv25.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys20) + } // end switch yys20 + } // end for yyj20 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ImageReview) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj26 int + var yyb26 bool + var yyhl26 bool = l >= 0 + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg2_v1.ObjectMeta{} + } else { + yyv29 := &x.ObjectMeta + yyv29.CodecDecodeSelf(d) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Spec = ImageReviewSpec{} + } else { + yyv30 := &x.Spec + yyv30.CodecDecodeSelf(d) + } + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Status = ImageReviewStatus{} + } else { + yyv31 := &x.Status + yyv31.CodecDecodeSelf(d) + } + for { + yyj26++ + if yyhl26 { + yyb26 = yyj26 > l + } else { + yyb26 = r.CheckBreak() + } + if yyb26 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj26-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ImageReviewSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym32 := z.EncBinary() + _ = yym32 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep33 := !z.EncBinary() + yy2arr33 := z.EncBasicHandle().StructToArray + var yyq33 [3]bool + _, _, _ = yysep33, yyq33, yy2arr33 + const yyr33 bool = false + yyq33[0] = len(x.Containers) != 0 + yyq33[1] = len(x.Annotations) != 0 + yyq33[2] = x.Namespace != "" + var yynn33 int + if yyr33 || yy2arr33 { + r.EncodeArrayStart(3) + } else { + yynn33 = 0 + for _, b := range yyq33 { + if b { + yynn33++ + } + } + r.EncodeMapStart(yynn33) + yynn33 = 0 + } + if yyr33 || yy2arr33 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq33[0] { + if x.Containers == nil { + r.EncodeNil() + } else { + yym35 := z.EncBinary() + _ = yym35 + if false { + } else { + h.encSliceImageReviewContainerSpec(([]ImageReviewContainerSpec)(x.Containers), e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq33[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("containers")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Containers == nil { + r.EncodeNil() + } else { + yym36 := z.EncBinary() + _ = yym36 + if false { + } else { + h.encSliceImageReviewContainerSpec(([]ImageReviewContainerSpec)(x.Containers), e) + } + } + } + } + if yyr33 || yy2arr33 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq33[1] { + if x.Annotations == nil { + r.EncodeNil() + } else { + yym38 := z.EncBinary() + _ = yym38 + if false { + } else { + z.F.EncMapStringStringV(x.Annotations, false, e) + } + } + } else { + r.EncodeNil() + } + } else { + if yyq33[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("annotations")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.Annotations == nil { + r.EncodeNil() + } else { + yym39 := z.EncBinary() + _ = yym39 + if false { + } else { + z.F.EncMapStringStringV(x.Annotations, false, e) + } + } + } + } + if yyr33 || yy2arr33 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq33[2] { + yym41 := z.EncBinary() + _ = yym41 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq33[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("namespace")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym42 := z.EncBinary() + _ = yym42 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) + } + } + } + if yyr33 || yy2arr33 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ImageReviewSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym43 := z.DecBinary() + _ = yym43 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct44 := r.ContainerType() + if yyct44 == codecSelferValueTypeMap1234 { + yyl44 := r.ReadMapStart() + if yyl44 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl44, d) + } + } else if yyct44 == codecSelferValueTypeArray1234 { + yyl44 := r.ReadArrayStart() + if yyl44 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl44, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ImageReviewSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys45Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys45Slc + var yyhl45 bool = l >= 0 + for yyj45 := 0; ; yyj45++ { + if yyhl45 { + if yyj45 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys45Slc = r.DecodeBytes(yys45Slc, true, true) + yys45 := string(yys45Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys45 { + case "containers": + if r.TryDecodeAsNil() { + x.Containers = nil + } else { + yyv46 := &x.Containers + yym47 := z.DecBinary() + _ = yym47 + if false { + } else { + h.decSliceImageReviewContainerSpec((*[]ImageReviewContainerSpec)(yyv46), d) + } + } + case "annotations": + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + yyv48 := &x.Annotations + yym49 := z.DecBinary() + _ = yym49 + if false { + } else { + z.F.DecMapStringStringX(yyv48, false, d) + } + } + case "namespace": + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys45) + } // end switch yys45 + } // end for yyj45 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ImageReviewSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj51 int + var yyb51 bool + var yyhl51 bool = l >= 0 + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Containers = nil + } else { + yyv52 := &x.Containers + yym53 := z.DecBinary() + _ = yym53 + if false { + } else { + h.decSliceImageReviewContainerSpec((*[]ImageReviewContainerSpec)(yyv52), d) + } + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Annotations = nil + } else { + yyv54 := &x.Annotations + yym55 := z.DecBinary() + _ = yym55 + if false { + } else { + z.F.DecMapStringStringX(yyv54, false, d) + } + } + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Namespace = "" + } else { + x.Namespace = string(r.DecodeString()) + } + for { + yyj51++ + if yyhl51 { + yyb51 = yyj51 > l + } else { + yyb51 = r.CheckBreak() + } + if yyb51 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj51-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ImageReviewContainerSpec) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym57 := z.EncBinary() + _ = yym57 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep58 := !z.EncBinary() + yy2arr58 := z.EncBasicHandle().StructToArray + var yyq58 [1]bool + _, _, _ = yysep58, yyq58, yy2arr58 + const yyr58 bool = false + yyq58[0] = x.Image != "" + var yynn58 int + if yyr58 || yy2arr58 { + r.EncodeArrayStart(1) + } else { + yynn58 = 0 + for _, b := range yyq58 { + if b { + yynn58++ + } + } + r.EncodeMapStart(yynn58) + yynn58 = 0 + } + if yyr58 || yy2arr58 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq58[0] { + yym60 := z.EncBinary() + _ = yym60 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Image)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq58[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("image")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym61 := z.EncBinary() + _ = yym61 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Image)) + } + } + } + if yyr58 || yy2arr58 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ImageReviewContainerSpec) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym62 := z.DecBinary() + _ = yym62 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct63 := r.ContainerType() + if yyct63 == codecSelferValueTypeMap1234 { + yyl63 := r.ReadMapStart() + if yyl63 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl63, d) + } + } else if yyct63 == codecSelferValueTypeArray1234 { + yyl63 := r.ReadArrayStart() + if yyl63 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl63, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ImageReviewContainerSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys64Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys64Slc + var yyhl64 bool = l >= 0 + for yyj64 := 0; ; yyj64++ { + if yyhl64 { + if yyj64 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys64Slc = r.DecodeBytes(yys64Slc, true, true) + yys64 := string(yys64Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys64 { + case "image": + if r.TryDecodeAsNil() { + x.Image = "" + } else { + x.Image = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys64) + } // end switch yys64 + } // end for yyj64 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ImageReviewContainerSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj66 int + var yyb66 bool + var yyhl66 bool = l >= 0 + yyj66++ + if yyhl66 { + yyb66 = yyj66 > l + } else { + yyb66 = r.CheckBreak() + } + if yyb66 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Image = "" + } else { + x.Image = string(r.DecodeString()) + } + for { + yyj66++ + if yyhl66 { + yyb66 = yyj66 > l + } else { + yyb66 = r.CheckBreak() + } + if yyb66 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj66-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x *ImageReviewStatus) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym68 := z.EncBinary() + _ = yym68 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep69 := !z.EncBinary() + yy2arr69 := z.EncBasicHandle().StructToArray + var yyq69 [2]bool + _, _, _ = yysep69, yyq69, yy2arr69 + const yyr69 bool = false + yyq69[1] = x.Reason != "" + var yynn69 int + if yyr69 || yy2arr69 { + r.EncodeArrayStart(2) + } else { + yynn69 = 1 + for _, b := range yyq69 { + if b { + yynn69++ + } + } + r.EncodeMapStart(yynn69) + yynn69 = 0 + } + if yyr69 || yy2arr69 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yym71 := z.EncBinary() + _ = yym71 + if false { + } else { + r.EncodeBool(bool(x.Allowed)) + } + } else { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("allowed")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym72 := z.EncBinary() + _ = yym72 + if false { + } else { + r.EncodeBool(bool(x.Allowed)) + } + } + if yyr69 || yy2arr69 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq69[1] { + yym74 := z.EncBinary() + _ = yym74 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq69[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("reason")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym75 := z.EncBinary() + _ = yym75 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) + } + } + } + if yyr69 || yy2arr69 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *ImageReviewStatus) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym76 := z.DecBinary() + _ = yym76 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct77 := r.ContainerType() + if yyct77 == codecSelferValueTypeMap1234 { + yyl77 := r.ReadMapStart() + if yyl77 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl77, d) + } + } else if yyct77 == codecSelferValueTypeArray1234 { + yyl77 := r.ReadArrayStart() + if yyl77 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl77, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *ImageReviewStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys78Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys78Slc + var yyhl78 bool = l >= 0 + for yyj78 := 0; ; yyj78++ { + if yyhl78 { + if yyj78 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys78Slc = r.DecodeBytes(yys78Slc, true, true) + yys78 := string(yys78Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys78 { + case "allowed": + if r.TryDecodeAsNil() { + x.Allowed = false + } else { + x.Allowed = bool(r.DecodeBool()) + } + case "reason": + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + default: + z.DecStructFieldNotFound(-1, yys78) + } // end switch yys78 + } // end for yyj78 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *ImageReviewStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj81 int + var yyb81 bool + var yyhl81 bool = l >= 0 + yyj81++ + if yyhl81 { + yyb81 = yyj81 > l + } else { + yyb81 = r.CheckBreak() + } + if yyb81 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Allowed = false + } else { + x.Allowed = bool(r.DecodeBool()) + } + yyj81++ + if yyhl81 { + yyb81 = yyj81 > l + } else { + yyb81 = r.CheckBreak() + } + if yyb81 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Reason = "" + } else { + x.Reason = string(r.DecodeString()) + } + for { + yyj81++ + if yyhl81 { + yyb81 = yyj81 > l + } else { + yyb81 = r.CheckBreak() + } + if yyb81 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj81-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) encSliceImageReviewContainerSpec(v []ImageReviewContainerSpec, e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + r.EncodeArrayStart(len(v)) + for _, yyv84 := range v { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + yy85 := &yyv84 + yy85.CodecEncodeSelf(e) + } + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) +} + +func (x codecSelfer1234) decSliceImageReviewContainerSpec(v *[]ImageReviewContainerSpec, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + + yyv86 := *v + yyh86, yyl86 := z.DecSliceHelperStart() + var yyc86 bool + if yyl86 == 0 { + if yyv86 == nil { + yyv86 = []ImageReviewContainerSpec{} + yyc86 = true + } else if len(yyv86) != 0 { + yyv86 = yyv86[:0] + yyc86 = true + } + } else if yyl86 > 0 { + var yyrr86, yyrl86 int + var yyrt86 bool + if yyl86 > cap(yyv86) { + + yyrg86 := len(yyv86) > 0 + yyv286 := yyv86 + yyrl86, yyrt86 = z.DecInferLen(yyl86, z.DecBasicHandle().MaxInitLen, 16) + if yyrt86 { + if yyrl86 <= cap(yyv86) { + yyv86 = yyv86[:yyrl86] + } else { + yyv86 = make([]ImageReviewContainerSpec, yyrl86) + } + } else { + yyv86 = make([]ImageReviewContainerSpec, yyrl86) + } + yyc86 = true + yyrr86 = len(yyv86) + if yyrg86 { + copy(yyv86, yyv286) + } + } else if yyl86 != len(yyv86) { + yyv86 = yyv86[:yyl86] + yyc86 = true + } + yyj86 := 0 + for ; yyj86 < yyrr86; yyj86++ { + yyh86.ElemContainerState(yyj86) + if r.TryDecodeAsNil() { + yyv86[yyj86] = ImageReviewContainerSpec{} + } else { + yyv87 := &yyv86[yyj86] + yyv87.CodecDecodeSelf(d) + } + + } + if yyrt86 { + for ; yyj86 < yyl86; yyj86++ { + yyv86 = append(yyv86, ImageReviewContainerSpec{}) + yyh86.ElemContainerState(yyj86) + if r.TryDecodeAsNil() { + yyv86[yyj86] = ImageReviewContainerSpec{} + } else { + yyv88 := &yyv86[yyj86] + yyv88.CodecDecodeSelf(d) + } + + } + } + + } else { + yyj86 := 0 + for ; !r.CheckBreak(); yyj86++ { + + if yyj86 >= len(yyv86) { + yyv86 = append(yyv86, ImageReviewContainerSpec{}) // var yyz86 ImageReviewContainerSpec + yyc86 = true + } + yyh86.ElemContainerState(yyj86) + if yyj86 < len(yyv86) { + if r.TryDecodeAsNil() { + yyv86[yyj86] = ImageReviewContainerSpec{} + } else { + yyv89 := &yyv86[yyj86] + yyv89.CodecDecodeSelf(d) + } + + } else { + z.DecSwallow() + } + + } + if yyj86 < len(yyv86) { + yyv86 = yyv86[:yyj86] + yyc86 = true + } else if yyj86 == 0 && yyv86 == nil { + yyv86 = []ImageReviewContainerSpec{} + yyc86 = true + } + } + yyh86.End() + if yyc86 { + *v = yyv86 + } +} diff --git a/1.4/pkg/apis/imagepolicy/v1alpha1/types.go b/1.4/pkg/apis/imagepolicy/v1alpha1/types.go new file mode 100644 index 00000000..c60bdd89 --- /dev/null +++ b/1.4/pkg/apis/imagepolicy/v1alpha1/types.go @@ -0,0 +1,67 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + "k8s.io/client-go/1.4/pkg/api/unversioned" + "k8s.io/client-go/1.4/pkg/api/v1" +) + +// +genclient=true +// +nonNamespaced=true +// +noMethods=true + +// ImageReview checks if the set of images in a pod are allowed. +type ImageReview struct { + unversioned.TypeMeta `json:",inline"` + v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // Spec holds information about the pod being evaluated + Spec ImageReviewSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"` + + // Status is filled in by the backend and indicates whether the pod should be allowed. + Status ImageReviewStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` +} + +// ImageReviewSpec is a description of the pod creation request. +type ImageReviewSpec struct { + // Containers is a list of a subset of the information in each container of the Pod being created. + Containers []ImageReviewContainerSpec `json:"containers,omitempty" protobuf:"bytes,1,rep,name=containers"` + // Annotations is a list of key-value pairs extracted from the Pod's annotations. + // It only includes keys which match the pattern `*.image-policy.k8s.io/*`. + // It is up to each webhook backend to determine how to interpret these annotations, if at all. + Annotations map[string]string `json:"annotations,omitempty" protobuf:"bytes,2,rep,name=annotations"` + // Namespace is the namespace the pod is being created in. + Namespace string `json:"namespace,omitempty" protobuf:"bytes,3,opt,name=namespace"` +} + +// ImageReviewContainerSpec is a description of a container within the pod creation request. +type ImageReviewContainerSpec struct { + // This can be in the form image:tag or image@SHA:012345679abcdef. + Image string `json:"image,omitempty" protobuf:"bytes,1,opt,name=image"` + // In future, we may add command line overrides, exec health check command lines, and so on. +} + +// ImageReviewStatus is the result of the token authentication request. +type ImageReviewStatus struct { + // Allowed indicates that all images were allowed to be run. + Allowed bool `json:"allowed" protobuf:"varint,1,opt,name=allowed"` + // Reason should be empty unless Allowed is false in which case it + // may contain a short description of what is wrong. Kubernetes + // may truncate excessively long errors when displaying to the user. + Reason string `json:"reason,omitempty" protobuf:"bytes,2,opt,name=reason"` +} diff --git a/1.4/pkg/apis/imagepolicy/v1alpha1/zz_generated.conversion.go b/1.4/pkg/apis/imagepolicy/v1alpha1/zz_generated.conversion.go new file mode 100644 index 00000000..629e844a --- /dev/null +++ b/1.4/pkg/apis/imagepolicy/v1alpha1/zz_generated.conversion.go @@ -0,0 +1,169 @@ +// +build !ignore_autogenerated + +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by conversion-gen. Do not edit it manually! + +package v1alpha1 + +import ( + api "k8s.io/client-go/1.4/pkg/api" + imagepolicy "k8s.io/client-go/1.4/pkg/apis/imagepolicy" + conversion "k8s.io/client-go/1.4/pkg/conversion" + runtime "k8s.io/client-go/1.4/pkg/runtime" +) + +func init() { + SchemeBuilder.Register(RegisterConversions) +} + +// RegisterConversions adds conversion functions to the given scheme. +// Public to allow building arbitrary schemes. +func RegisterConversions(scheme *runtime.Scheme) error { + return scheme.AddGeneratedConversionFuncs( + Convert_v1alpha1_ImageReview_To_imagepolicy_ImageReview, + Convert_imagepolicy_ImageReview_To_v1alpha1_ImageReview, + Convert_v1alpha1_ImageReviewContainerSpec_To_imagepolicy_ImageReviewContainerSpec, + Convert_imagepolicy_ImageReviewContainerSpec_To_v1alpha1_ImageReviewContainerSpec, + Convert_v1alpha1_ImageReviewSpec_To_imagepolicy_ImageReviewSpec, + Convert_imagepolicy_ImageReviewSpec_To_v1alpha1_ImageReviewSpec, + Convert_v1alpha1_ImageReviewStatus_To_imagepolicy_ImageReviewStatus, + Convert_imagepolicy_ImageReviewStatus_To_v1alpha1_ImageReviewStatus, + ) +} + +func autoConvert_v1alpha1_ImageReview_To_imagepolicy_ImageReview(in *ImageReview, out *imagepolicy.ImageReview, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_v1alpha1_ImageReviewSpec_To_imagepolicy_ImageReviewSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_v1alpha1_ImageReviewStatus_To_imagepolicy_ImageReviewStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_v1alpha1_ImageReview_To_imagepolicy_ImageReview(in *ImageReview, out *imagepolicy.ImageReview, s conversion.Scope) error { + return autoConvert_v1alpha1_ImageReview_To_imagepolicy_ImageReview(in, out, s) +} + +func autoConvert_imagepolicy_ImageReview_To_v1alpha1_ImageReview(in *imagepolicy.ImageReview, out *ImageReview, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if err := Convert_imagepolicy_ImageReviewSpec_To_v1alpha1_ImageReviewSpec(&in.Spec, &out.Spec, s); err != nil { + return err + } + if err := Convert_imagepolicy_ImageReviewStatus_To_v1alpha1_ImageReviewStatus(&in.Status, &out.Status, s); err != nil { + return err + } + return nil +} + +func Convert_imagepolicy_ImageReview_To_v1alpha1_ImageReview(in *imagepolicy.ImageReview, out *ImageReview, s conversion.Scope) error { + return autoConvert_imagepolicy_ImageReview_To_v1alpha1_ImageReview(in, out, s) +} + +func autoConvert_v1alpha1_ImageReviewContainerSpec_To_imagepolicy_ImageReviewContainerSpec(in *ImageReviewContainerSpec, out *imagepolicy.ImageReviewContainerSpec, s conversion.Scope) error { + out.Image = in.Image + return nil +} + +func Convert_v1alpha1_ImageReviewContainerSpec_To_imagepolicy_ImageReviewContainerSpec(in *ImageReviewContainerSpec, out *imagepolicy.ImageReviewContainerSpec, s conversion.Scope) error { + return autoConvert_v1alpha1_ImageReviewContainerSpec_To_imagepolicy_ImageReviewContainerSpec(in, out, s) +} + +func autoConvert_imagepolicy_ImageReviewContainerSpec_To_v1alpha1_ImageReviewContainerSpec(in *imagepolicy.ImageReviewContainerSpec, out *ImageReviewContainerSpec, s conversion.Scope) error { + out.Image = in.Image + return nil +} + +func Convert_imagepolicy_ImageReviewContainerSpec_To_v1alpha1_ImageReviewContainerSpec(in *imagepolicy.ImageReviewContainerSpec, out *ImageReviewContainerSpec, s conversion.Scope) error { + return autoConvert_imagepolicy_ImageReviewContainerSpec_To_v1alpha1_ImageReviewContainerSpec(in, out, s) +} + +func autoConvert_v1alpha1_ImageReviewSpec_To_imagepolicy_ImageReviewSpec(in *ImageReviewSpec, out *imagepolicy.ImageReviewSpec, s conversion.Scope) error { + if in.Containers != nil { + in, out := &in.Containers, &out.Containers + *out = make([]imagepolicy.ImageReviewContainerSpec, len(*in)) + for i := range *in { + if err := Convert_v1alpha1_ImageReviewContainerSpec_To_imagepolicy_ImageReviewContainerSpec(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Containers = nil + } + out.Annotations = in.Annotations + out.Namespace = in.Namespace + return nil +} + +func Convert_v1alpha1_ImageReviewSpec_To_imagepolicy_ImageReviewSpec(in *ImageReviewSpec, out *imagepolicy.ImageReviewSpec, s conversion.Scope) error { + return autoConvert_v1alpha1_ImageReviewSpec_To_imagepolicy_ImageReviewSpec(in, out, s) +} + +func autoConvert_imagepolicy_ImageReviewSpec_To_v1alpha1_ImageReviewSpec(in *imagepolicy.ImageReviewSpec, out *ImageReviewSpec, s conversion.Scope) error { + if in.Containers != nil { + in, out := &in.Containers, &out.Containers + *out = make([]ImageReviewContainerSpec, len(*in)) + for i := range *in { + if err := Convert_imagepolicy_ImageReviewContainerSpec_To_v1alpha1_ImageReviewContainerSpec(&(*in)[i], &(*out)[i], s); err != nil { + return err + } + } + } else { + out.Containers = nil + } + out.Annotations = in.Annotations + out.Namespace = in.Namespace + return nil +} + +func Convert_imagepolicy_ImageReviewSpec_To_v1alpha1_ImageReviewSpec(in *imagepolicy.ImageReviewSpec, out *ImageReviewSpec, s conversion.Scope) error { + return autoConvert_imagepolicy_ImageReviewSpec_To_v1alpha1_ImageReviewSpec(in, out, s) +} + +func autoConvert_v1alpha1_ImageReviewStatus_To_imagepolicy_ImageReviewStatus(in *ImageReviewStatus, out *imagepolicy.ImageReviewStatus, s conversion.Scope) error { + out.Allowed = in.Allowed + out.Reason = in.Reason + return nil +} + +func Convert_v1alpha1_ImageReviewStatus_To_imagepolicy_ImageReviewStatus(in *ImageReviewStatus, out *imagepolicy.ImageReviewStatus, s conversion.Scope) error { + return autoConvert_v1alpha1_ImageReviewStatus_To_imagepolicy_ImageReviewStatus(in, out, s) +} + +func autoConvert_imagepolicy_ImageReviewStatus_To_v1alpha1_ImageReviewStatus(in *imagepolicy.ImageReviewStatus, out *ImageReviewStatus, s conversion.Scope) error { + out.Allowed = in.Allowed + out.Reason = in.Reason + return nil +} + +func Convert_imagepolicy_ImageReviewStatus_To_v1alpha1_ImageReviewStatus(in *imagepolicy.ImageReviewStatus, out *ImageReviewStatus, s conversion.Scope) error { + return autoConvert_imagepolicy_ImageReviewStatus_To_v1alpha1_ImageReviewStatus(in, out, s) +} diff --git a/1.4/pkg/apis/imagepolicy/v1alpha1/zz_generated.deepcopy.go b/1.4/pkg/apis/imagepolicy/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 00000000..588b76d0 --- /dev/null +++ b/1.4/pkg/apis/imagepolicy/v1alpha1/zz_generated.deepcopy.go @@ -0,0 +1,105 @@ +// +build !ignore_autogenerated + +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by deepcopy-gen. Do not edit it manually! + +package v1alpha1 + +import ( + v1 "k8s.io/client-go/1.4/pkg/api/v1" + conversion "k8s.io/client-go/1.4/pkg/conversion" + runtime "k8s.io/client-go/1.4/pkg/runtime" + reflect "reflect" +) + +func init() { + SchemeBuilder.Register(RegisterDeepCopies) +} + +// RegisterDeepCopies adds deep-copy functions to the given scheme. Public +// to allow building arbitrary schemes. +func RegisterDeepCopies(scheme *runtime.Scheme) error { + return scheme.AddGeneratedDeepCopyFuncs( + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_ImageReview, InType: reflect.TypeOf(&ImageReview{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_ImageReviewContainerSpec, InType: reflect.TypeOf(&ImageReviewContainerSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_ImageReviewSpec, InType: reflect.TypeOf(&ImageReviewSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_ImageReviewStatus, InType: reflect.TypeOf(&ImageReviewStatus{})}, + ) +} + +func DeepCopy_v1alpha1_ImageReview(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ImageReview) + out := out.(*ImageReview) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_v1alpha1_ImageReviewSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_v1alpha1_ImageReviewContainerSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ImageReviewContainerSpec) + out := out.(*ImageReviewContainerSpec) + out.Image = in.Image + return nil + } +} + +func DeepCopy_v1alpha1_ImageReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ImageReviewSpec) + out := out.(*ImageReviewSpec) + if in.Containers != nil { + in, out := &in.Containers, &out.Containers + *out = make([]ImageReviewContainerSpec, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Containers = nil + } + if in.Annotations != nil { + in, out := &in.Annotations, &out.Annotations + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Annotations = nil + } + out.Namespace = in.Namespace + return nil + } +} + +func DeepCopy_v1alpha1_ImageReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ImageReviewStatus) + out := out.(*ImageReviewStatus) + out.Allowed = in.Allowed + out.Reason = in.Reason + return nil + } +} diff --git a/1.4/pkg/apis/imagepolicy/zz_generated.deepcopy.go b/1.4/pkg/apis/imagepolicy/zz_generated.deepcopy.go new file mode 100644 index 00000000..ffb66c5c --- /dev/null +++ b/1.4/pkg/apis/imagepolicy/zz_generated.deepcopy.go @@ -0,0 +1,105 @@ +// +build !ignore_autogenerated + +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// This file was autogenerated by deepcopy-gen. Do not edit it manually! + +package imagepolicy + +import ( + api "k8s.io/client-go/1.4/pkg/api" + conversion "k8s.io/client-go/1.4/pkg/conversion" + runtime "k8s.io/client-go/1.4/pkg/runtime" + reflect "reflect" +) + +func init() { + SchemeBuilder.Register(RegisterDeepCopies) +} + +// RegisterDeepCopies adds deep-copy functions to the given scheme. Public +// to allow building arbitrary schemes. +func RegisterDeepCopies(scheme *runtime.Scheme) error { + return scheme.AddGeneratedDeepCopyFuncs( + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_imagepolicy_ImageReview, InType: reflect.TypeOf(&ImageReview{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_imagepolicy_ImageReviewContainerSpec, InType: reflect.TypeOf(&ImageReviewContainerSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_imagepolicy_ImageReviewSpec, InType: reflect.TypeOf(&ImageReviewSpec{})}, + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_imagepolicy_ImageReviewStatus, InType: reflect.TypeOf(&ImageReviewStatus{})}, + ) +} + +func DeepCopy_imagepolicy_ImageReview(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ImageReview) + out := out.(*ImageReview) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if err := DeepCopy_imagepolicy_ImageReviewSpec(&in.Spec, &out.Spec, c); err != nil { + return err + } + out.Status = in.Status + return nil + } +} + +func DeepCopy_imagepolicy_ImageReviewContainerSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ImageReviewContainerSpec) + out := out.(*ImageReviewContainerSpec) + out.Image = in.Image + return nil + } +} + +func DeepCopy_imagepolicy_ImageReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ImageReviewSpec) + out := out.(*ImageReviewSpec) + if in.Containers != nil { + in, out := &in.Containers, &out.Containers + *out = make([]ImageReviewContainerSpec, len(*in)) + for i := range *in { + (*out)[i] = (*in)[i] + } + } else { + out.Containers = nil + } + if in.Annotations != nil { + in, out := &in.Annotations, &out.Annotations + *out = make(map[string]string) + for key, val := range *in { + (*out)[key] = val + } + } else { + out.Annotations = nil + } + out.Namespace = in.Namespace + return nil + } +} + +func DeepCopy_imagepolicy_ImageReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*ImageReviewStatus) + out := out.(*ImageReviewStatus) + out.Allowed = in.Allowed + out.Reason = in.Reason + return nil + } +} diff --git a/1.4/pkg/apis/policy/register.go b/1.4/pkg/apis/policy/register.go index d78b47ae..95182093 100644 --- a/1.4/pkg/apis/policy/register.go +++ b/1.4/pkg/apis/policy/register.go @@ -17,6 +17,7 @@ limitations under the License. package policy import ( + "k8s.io/client-go/1.4/pkg/api" "k8s.io/client-go/1.4/pkg/api/unversioned" "k8s.io/client-go/1.4/pkg/runtime" ) @@ -27,12 +28,12 @@ const GroupName = "policy" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} -// Kind takes an unqualified kind and returns back a Group qualified GroupKind +// Kind takes an unqualified kind and returns a Group qualified GroupKind func Kind(kind string) unversioned.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() } -// Resource takes an unqualified resource and returns back a Group qualified GroupResource +// Resource takes an unqualified resource and returns a Group qualified GroupResource func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } @@ -48,6 +49,8 @@ func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &PodDisruptionBudget{}, &PodDisruptionBudgetList{}, + &api.ListOptions{}, + &Eviction{}, ) return nil } diff --git a/1.4/pkg/apis/policy/types.generated.go b/1.4/pkg/apis/policy/types.generated.go index 8b108a62..0c3c8afb 100644 --- a/1.4/pkg/apis/policy/types.generated.go +++ b/1.4/pkg/apis/policy/types.generated.go @@ -1320,15 +1320,330 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } +func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym112 := z.EncBinary() + _ = yym112 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep113 := !z.EncBinary() + yy2arr113 := z.EncBasicHandle().StructToArray + var yyq113 [4]bool + _, _, _ = yysep113, yyq113, yy2arr113 + const yyr113 bool = false + yyq113[0] = x.Kind != "" + yyq113[1] = x.APIVersion != "" + yyq113[2] = true + yyq113[3] = x.DeleteOptions != nil + var yynn113 int + if yyr113 || yy2arr113 { + r.EncodeArrayStart(4) + } else { + yynn113 = 0 + for _, b := range yyq113 { + if b { + yynn113++ + } + } + r.EncodeMapStart(yynn113) + yynn113 = 0 + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[0] { + yym115 := z.EncBinary() + _ = yym115 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq113[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym116 := z.EncBinary() + _ = yym116 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[1] { + yym118 := z.EncBinary() + _ = yym118 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq113[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym119 := z.EncBinary() + _ = yym119 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[2] { + yy121 := &x.ObjectMeta + yy121.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq113[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy122 := &x.ObjectMeta + yy122.CodecEncodeSelf(e) + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[3] { + if x.DeleteOptions == nil { + r.EncodeNil() + } else { + x.DeleteOptions.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq113[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deleteOptions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DeleteOptions == nil { + r.EncodeNil() + } else { + x.DeleteOptions.CodecEncodeSelf(e) + } + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Eviction) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym124 := z.DecBinary() + _ = yym124 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct125 := r.ContainerType() + if yyct125 == codecSelferValueTypeMap1234 { + yyl125 := r.ReadMapStart() + if yyl125 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl125, d) + } + } else if yyct125 == codecSelferValueTypeArray1234 { + yyl125 := r.ReadArrayStart() + if yyl125 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl125, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys126Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys126Slc + var yyhl126 bool = l >= 0 + for yyj126 := 0; ; yyj126++ { + if yyhl126 { + if yyj126 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys126Slc = r.DecodeBytes(yys126Slc, true, true) + yys126 := string(yys126Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys126 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg3_api.ObjectMeta{} + } else { + yyv129 := &x.ObjectMeta + yyv129.CodecDecodeSelf(d) + } + case "deleteOptions": + if r.TryDecodeAsNil() { + if x.DeleteOptions != nil { + x.DeleteOptions = nil + } + } else { + if x.DeleteOptions == nil { + x.DeleteOptions = new(pkg3_api.DeleteOptions) + } + x.DeleteOptions.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys126) + } // end switch yys126 + } // end for yyj126 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj131 int + var yyb131 bool + var yyhl131 bool = l >= 0 + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg3_api.ObjectMeta{} + } else { + yyv134 := &x.ObjectMeta + yyv134.CodecDecodeSelf(d) + } + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DeleteOptions != nil { + x.DeleteOptions = nil + } + } else { + if x.DeleteOptions == nil { + x.DeleteOptions = new(pkg3_api.DeleteOptions) + } + x.DeleteOptions.CodecDecodeSelf(d) + } + for { + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj131-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + func (x codecSelfer1234) encSlicePodDisruptionBudget(v []PodDisruptionBudget, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv112 := range v { + for _, yyv136 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy113 := &yyv112 - yy113.CodecEncodeSelf(e) + yy137 := &yyv136 + yy137.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1338,83 +1653,83 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv114 := *v - yyh114, yyl114 := z.DecSliceHelperStart() - var yyc114 bool - if yyl114 == 0 { - if yyv114 == nil { - yyv114 = []PodDisruptionBudget{} - yyc114 = true - } else if len(yyv114) != 0 { - yyv114 = yyv114[:0] - yyc114 = true + yyv138 := *v + yyh138, yyl138 := z.DecSliceHelperStart() + var yyc138 bool + if yyl138 == 0 { + if yyv138 == nil { + yyv138 = []PodDisruptionBudget{} + yyc138 = true + } else if len(yyv138) != 0 { + yyv138 = yyv138[:0] + yyc138 = true } - } else if yyl114 > 0 { - var yyrr114, yyrl114 int - var yyrt114 bool - if yyl114 > cap(yyv114) { + } else if yyl138 > 0 { + var yyrr138, yyrl138 int + var yyrt138 bool + if yyl138 > cap(yyv138) { - yyrg114 := len(yyv114) > 0 - yyv2114 := yyv114 - yyrl114, yyrt114 = z.DecInferLen(yyl114, z.DecBasicHandle().MaxInitLen, 296) - if yyrt114 { - if yyrl114 <= cap(yyv114) { - yyv114 = yyv114[:yyrl114] + yyrg138 := len(yyv138) > 0 + yyv2138 := yyv138 + yyrl138, yyrt138 = z.DecInferLen(yyl138, z.DecBasicHandle().MaxInitLen, 312) + if yyrt138 { + if yyrl138 <= cap(yyv138) { + yyv138 = yyv138[:yyrl138] } else { - yyv114 = make([]PodDisruptionBudget, yyrl114) + yyv138 = make([]PodDisruptionBudget, yyrl138) } } else { - yyv114 = make([]PodDisruptionBudget, yyrl114) + yyv138 = make([]PodDisruptionBudget, yyrl138) } - yyc114 = true - yyrr114 = len(yyv114) - if yyrg114 { - copy(yyv114, yyv2114) + yyc138 = true + yyrr138 = len(yyv138) + if yyrg138 { + copy(yyv138, yyv2138) } - } else if yyl114 != len(yyv114) { - yyv114 = yyv114[:yyl114] - yyc114 = true + } else if yyl138 != len(yyv138) { + yyv138 = yyv138[:yyl138] + yyc138 = true } - yyj114 := 0 - for ; yyj114 < yyrr114; yyj114++ { - yyh114.ElemContainerState(yyj114) + yyj138 := 0 + for ; yyj138 < yyrr138; yyj138++ { + yyh138.ElemContainerState(yyj138) if r.TryDecodeAsNil() { - yyv114[yyj114] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv115 := &yyv114[yyj114] - yyv115.CodecDecodeSelf(d) + yyv139 := &yyv138[yyj138] + yyv139.CodecDecodeSelf(d) } } - if yyrt114 { - for ; yyj114 < yyl114; yyj114++ { - yyv114 = append(yyv114, PodDisruptionBudget{}) - yyh114.ElemContainerState(yyj114) + if yyrt138 { + for ; yyj138 < yyl138; yyj138++ { + yyv138 = append(yyv138, PodDisruptionBudget{}) + yyh138.ElemContainerState(yyj138) if r.TryDecodeAsNil() { - yyv114[yyj114] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv116 := &yyv114[yyj114] - yyv116.CodecDecodeSelf(d) + yyv140 := &yyv138[yyj138] + yyv140.CodecDecodeSelf(d) } } } } else { - yyj114 := 0 - for ; !r.CheckBreak(); yyj114++ { + yyj138 := 0 + for ; !r.CheckBreak(); yyj138++ { - if yyj114 >= len(yyv114) { - yyv114 = append(yyv114, PodDisruptionBudget{}) // var yyz114 PodDisruptionBudget - yyc114 = true + if yyj138 >= len(yyv138) { + yyv138 = append(yyv138, PodDisruptionBudget{}) // var yyz138 PodDisruptionBudget + yyc138 = true } - yyh114.ElemContainerState(yyj114) - if yyj114 < len(yyv114) { + yyh138.ElemContainerState(yyj138) + if yyj138 < len(yyv138) { if r.TryDecodeAsNil() { - yyv114[yyj114] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv117 := &yyv114[yyj114] - yyv117.CodecDecodeSelf(d) + yyv141 := &yyv138[yyj138] + yyv141.CodecDecodeSelf(d) } } else { @@ -1422,16 +1737,16 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d } } - if yyj114 < len(yyv114) { - yyv114 = yyv114[:yyj114] - yyc114 = true - } else if yyj114 == 0 && yyv114 == nil { - yyv114 = []PodDisruptionBudget{} - yyc114 = true + if yyj138 < len(yyv138) { + yyv138 = yyv138[:yyj138] + yyc138 = true + } else if yyj138 == 0 && yyv138 == nil { + yyv138 = []PodDisruptionBudget{} + yyc138 = true } } - yyh114.End() - if yyc114 { - *v = yyv114 + yyh138.End() + if yyc138 { + *v = yyv138 } } diff --git a/1.4/pkg/apis/policy/types.go b/1.4/pkg/apis/policy/types.go index 2da4e22e..8e4b4960 100644 --- a/1.4/pkg/apis/policy/types.go +++ b/1.4/pkg/apis/policy/types.go @@ -69,3 +69,16 @@ type PodDisruptionBudgetList struct { unversioned.ListMeta `json:"metadata,omitempty"` Items []PodDisruptionBudget `json:"items"` } + +// Eviction evicts a pod from its node subject to certain policies and safety constraints. +// This is a subresource of Pod. A request to cause such an eviction is +// created by POSTing to .../pods/foo/evictions. +type Eviction struct { + unversioned.TypeMeta `json:",inline"` + + // ObjectMeta describes the pod that is being evicted. + api.ObjectMeta `json:"metadata,omitempty"` + + // DeleteOptions may be provided + DeleteOptions *api.DeleteOptions `json:"deleteOptions,omitempty"` +} diff --git a/1.4/pkg/apis/policy/v1alpha1/generated.pb.go b/1.4/pkg/apis/policy/v1alpha1/generated.pb.go index 36893b22..0d3909c4 100644 --- a/1.4/pkg/apis/policy/v1alpha1/generated.pb.go +++ b/1.4/pkg/apis/policy/v1alpha1/generated.pb.go @@ -25,6 +25,7 @@ limitations under the License. k8s.io/kubernetes/pkg/apis/policy/v1alpha1/generated.proto It has these top-level messages: + Eviction PodDisruptionBudget PodDisruptionBudgetList PodDisruptionBudgetSpec @@ -37,6 +38,7 @@ import fmt "fmt" import math "math" import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/client-go/1.4/pkg/api/unversioned" +import k8s_io_kubernetes_pkg_api_v1 "k8s.io/client-go/1.4/pkg/api/v1" import strings "strings" import reflect "reflect" @@ -52,30 +54,71 @@ var _ = math.Inf // is compatible with the proto package it is being compiled against. const _ = proto.GoGoProtoPackageIsVersion1 +func (m *Eviction) Reset() { *m = Eviction{} } +func (*Eviction) ProtoMessage() {} +func (*Eviction) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } + func (m *PodDisruptionBudget) Reset() { *m = PodDisruptionBudget{} } func (*PodDisruptionBudget) ProtoMessage() {} -func (*PodDisruptionBudget) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{0} } +func (*PodDisruptionBudget) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } func (m *PodDisruptionBudgetList) Reset() { *m = PodDisruptionBudgetList{} } func (*PodDisruptionBudgetList) ProtoMessage() {} -func (*PodDisruptionBudgetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{1} } +func (*PodDisruptionBudgetList) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } func (m *PodDisruptionBudgetSpec) Reset() { *m = PodDisruptionBudgetSpec{} } func (*PodDisruptionBudgetSpec) ProtoMessage() {} -func (*PodDisruptionBudgetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{2} } +func (*PodDisruptionBudgetSpec) Descriptor() ([]byte, []int) { return fileDescriptorGenerated, []int{3} } func (m *PodDisruptionBudgetStatus) Reset() { *m = PodDisruptionBudgetStatus{} } func (*PodDisruptionBudgetStatus) ProtoMessage() {} func (*PodDisruptionBudgetStatus) Descriptor() ([]byte, []int) { - return fileDescriptorGenerated, []int{3} + return fileDescriptorGenerated, []int{4} } func init() { + proto.RegisterType((*Eviction)(nil), "k8s.io.client-go.1.4.pkg.apis.policy.v1alpha1.Eviction") proto.RegisterType((*PodDisruptionBudget)(nil), "k8s.io.client-go.1.4.pkg.apis.policy.v1alpha1.PodDisruptionBudget") proto.RegisterType((*PodDisruptionBudgetList)(nil), "k8s.io.client-go.1.4.pkg.apis.policy.v1alpha1.PodDisruptionBudgetList") proto.RegisterType((*PodDisruptionBudgetSpec)(nil), "k8s.io.client-go.1.4.pkg.apis.policy.v1alpha1.PodDisruptionBudgetSpec") proto.RegisterType((*PodDisruptionBudgetStatus)(nil), "k8s.io.client-go.1.4.pkg.apis.policy.v1alpha1.PodDisruptionBudgetStatus") } +func (m *Eviction) Marshal() (data []byte, err error) { + size := m.Size() + data = make([]byte, size) + n, err := m.MarshalTo(data) + if err != nil { + return nil, err + } + return data[:n], nil +} + +func (m *Eviction) MarshalTo(data []byte) (int, error) { + var i int + _ = i + var l int + _ = l + data[i] = 0xa + i++ + i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) + n1, err := m.ObjectMeta.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n1 + if m.DeleteOptions != nil { + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.DeleteOptions.Size())) + n2, err := m.DeleteOptions.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n2 + } + return i, nil +} + func (m *PodDisruptionBudget) Marshal() (data []byte, err error) { size := m.Size() data = make([]byte, size) @@ -94,27 +137,27 @@ func (m *PodDisruptionBudget) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size())) - n1, err := m.ObjectMeta.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n1 - data[i] = 0x12 - i++ - i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) - n2, err := m.Spec.MarshalTo(data[i:]) - if err != nil { - return 0, err - } - i += n2 - data[i] = 0x1a - i++ - i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) - n3, err := m.Status.MarshalTo(data[i:]) + n3, err := m.ObjectMeta.MarshalTo(data[i:]) if err != nil { return 0, err } i += n3 + data[i] = 0x12 + i++ + i = encodeVarintGenerated(data, i, uint64(m.Spec.Size())) + n4, err := m.Spec.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n4 + data[i] = 0x1a + i++ + i = encodeVarintGenerated(data, i, uint64(m.Status.Size())) + n5, err := m.Status.MarshalTo(data[i:]) + if err != nil { + return 0, err + } + i += n5 return i, nil } @@ -136,11 +179,11 @@ func (m *PodDisruptionBudgetList) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.ListMeta.Size())) - n4, err := m.ListMeta.MarshalTo(data[i:]) + n6, err := m.ListMeta.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n4 + i += n6 if len(m.Items) > 0 { for _, msg := range m.Items { data[i] = 0x12 @@ -174,20 +217,20 @@ func (m *PodDisruptionBudgetSpec) MarshalTo(data []byte) (int, error) { data[i] = 0xa i++ i = encodeVarintGenerated(data, i, uint64(m.MinAvailable.Size())) - n5, err := m.MinAvailable.MarshalTo(data[i:]) + n7, err := m.MinAvailable.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n5 + i += n7 if m.Selector != nil { data[i] = 0x12 i++ i = encodeVarintGenerated(data, i, uint64(m.Selector.Size())) - n6, err := m.Selector.MarshalTo(data[i:]) + n8, err := m.Selector.MarshalTo(data[i:]) if err != nil { return 0, err } - i += n6 + i += n8 } return i, nil } @@ -254,6 +297,18 @@ func encodeVarintGenerated(data []byte, offset int, v uint64) int { data[offset] = uint8(v) return offset + 1 } +func (m *Eviction) Size() (n int) { + var l int + _ = l + l = m.ObjectMeta.Size() + n += 1 + l + sovGenerated(uint64(l)) + if m.DeleteOptions != nil { + l = m.DeleteOptions.Size() + n += 1 + l + sovGenerated(uint64(l)) + } + return n +} + func (m *PodDisruptionBudget) Size() (n int) { var l int _ = l @@ -315,6 +370,17 @@ func sovGenerated(x uint64) (n int) { func sozGenerated(x uint64) (n int) { return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } +func (this *Eviction) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&Eviction{`, + `ObjectMeta:` + strings.Replace(strings.Replace(this.ObjectMeta.String(), "ObjectMeta", "k8s_io_kubernetes_pkg_api_v1.ObjectMeta", 1), `&`, ``, 1) + `,`, + `DeleteOptions:` + strings.Replace(fmt.Sprintf("%v", this.DeleteOptions), "DeleteOptions", "k8s_io_kubernetes_pkg_api_v1.DeleteOptions", 1) + `,`, + `}`, + }, "") + return s +} func (this *PodDisruptionBudget) String() string { if this == nil { return "nil" @@ -370,6 +436,119 @@ func valueToStringGenerated(v interface{}) string { pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("*%v", pv) } +func (m *Eviction) Unmarshal(data []byte) error { + l := len(data) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: Eviction: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Eviction: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ObjectMeta", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if err := m.ObjectMeta.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DeleteOptions", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := data[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DeleteOptions == nil { + m.DeleteOptions = &k8s_io_kubernetes_pkg_api_v1.DeleteOptions{} + } + if err := m.DeleteOptions.Unmarshal(data[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(data[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *PodDisruptionBudget) Unmarshal(data []byte) error { l := len(data) iNdEx := 0 @@ -967,43 +1146,46 @@ var ( ) var fileDescriptorGenerated = []byte{ - // 607 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x94, 0xdf, 0x6a, 0x13, 0x4f, - 0x14, 0xc7, 0x9b, 0xfe, 0x23, 0xcc, 0x2f, 0xbf, 0xa2, 0x6b, 0xd1, 0x18, 0xa4, 0x95, 0x5c, 0x95, - 0x62, 0x67, 0x69, 0x51, 0x28, 0x5e, 0x28, 0xdd, 0xb6, 0x60, 0xc5, 0x52, 0xd9, 0xdc, 0x88, 0xa0, - 0x30, 0xbb, 0x7b, 0xdc, 0x8c, 0xd9, 0xdd, 0x59, 0x66, 0x66, 0xa3, 0xbd, 0xf3, 0x11, 0x7c, 0x05, - 0x1f, 0x46, 0xc8, 0x65, 0x2f, 0xbd, 0x0a, 0xda, 0xbe, 0x88, 0xb3, 0xb3, 0x93, 0x34, 0x9b, 0x64, - 0xa5, 0xd0, 0x8b, 0x03, 0x39, 0x3b, 0xe7, 0xf3, 0x3d, 0x7f, 0x09, 0x7a, 0xde, 0xdb, 0x17, 0x98, - 0x32, 0xbb, 0x97, 0x79, 0xc0, 0x13, 0x90, 0x20, 0xec, 0xb4, 0x17, 0xda, 0x24, 0xa5, 0xea, 0x07, - 0x8b, 0xa8, 0x7f, 0x6e, 0xf7, 0x77, 0x49, 0x94, 0x76, 0xc9, 0xae, 0x1d, 0x42, 0x02, 0x9c, 0x48, - 0x08, 0x70, 0xca, 0x99, 0x64, 0xd6, 0x76, 0xc1, 0xe2, 0x6b, 0x16, 0x2b, 0x16, 0xe7, 0x2c, 0x2e, - 0x58, 0x3c, 0x62, 0x5b, 0x3b, 0x21, 0x95, 0xdd, 0xcc, 0xc3, 0x3e, 0x8b, 0xed, 0x90, 0x85, 0xcc, - 0xd6, 0x12, 0x5e, 0xf6, 0x49, 0x7b, 0xda, 0xd1, 0xbf, 0x0a, 0xe9, 0xd6, 0x5e, 0x65, 0x59, 0x36, - 0x07, 0xc1, 0x32, 0xee, 0xc3, 0x74, 0x39, 0xad, 0x67, 0xd5, 0x4c, 0x96, 0xf4, 0x81, 0x0b, 0xca, - 0x12, 0x08, 0x66, 0xb0, 0x27, 0xd5, 0x58, 0x7f, 0xa6, 0xe7, 0xd6, 0xce, 0xfc, 0x68, 0x9e, 0x25, - 0x92, 0xc6, 0xb3, 0x35, 0xed, 0xce, 0x0f, 0xcf, 0x24, 0x8d, 0x6c, 0x9a, 0x48, 0x21, 0xf9, 0x34, - 0xd2, 0xfe, 0xb9, 0x88, 0xee, 0xbd, 0x65, 0xc1, 0x11, 0x15, 0x3c, 0x4b, 0xa5, 0xaa, 0xd9, 0xc9, - 0x82, 0x10, 0xa4, 0xf5, 0x0e, 0xd5, 0x63, 0x90, 0x24, 0x20, 0x92, 0x34, 0x6b, 0x8f, 0x6b, 0x5b, - 0xff, 0xed, 0x6d, 0xe1, 0xca, 0x05, 0xa8, 0xc1, 0xe3, 0x33, 0xef, 0x33, 0xf8, 0xf2, 0x54, 0x31, - 0x8e, 0x35, 0x18, 0x6e, 0x2e, 0x5c, 0x0e, 0x37, 0xd1, 0xf5, 0x37, 0x77, 0xac, 0x66, 0x01, 0x5a, - 0x16, 0x29, 0xf8, 0xcd, 0x45, 0xad, 0x7a, 0x88, 0x6f, 0xbe, 0x56, 0x3c, 0xa7, 0xd0, 0x8e, 0x92, - 0x72, 0x1a, 0x26, 0xe1, 0x72, 0xee, 0xb9, 0x5a, 0xde, 0x8a, 0xd1, 0xaa, 0x90, 0x44, 0x66, 0xa2, - 0xb9, 0xa4, 0x13, 0x1d, 0xdf, 0x36, 0x91, 0x16, 0x73, 0xd6, 0x4c, 0xaa, 0xd5, 0xc2, 0x77, 0x4d, - 0x92, 0xf6, 0xb0, 0x86, 0x1e, 0xcc, 0xa1, 0xde, 0x50, 0x21, 0xad, 0x0f, 0x33, 0xb3, 0xb4, 0xff, - 0x31, 0xcb, 0x89, 0xeb, 0xc1, 0x39, 0xae, 0x47, 0x7a, 0xc7, 0xa4, 0xad, 0x8f, 0xbe, 0x4c, 0x0c, - 0x34, 0x40, 0x2b, 0x54, 0x42, 0x2c, 0xd4, 0x44, 0x97, 0x94, 0xf6, 0xcb, 0x5b, 0x36, 0xea, 0xfc, - 0x6f, 0x72, 0xad, 0x9c, 0xe4, 0xaa, 0x6e, 0x21, 0xde, 0xbe, 0x9a, 0xdf, 0x60, 0x3e, 0x71, 0xab, - 0x8b, 0x1a, 0x31, 0x4d, 0x0e, 0xfa, 0x84, 0x46, 0xc4, 0x8b, 0xc0, 0x34, 0x89, 0x2b, 0x0a, 0xc9, - 0xcf, 0x11, 0x17, 0xe7, 0x88, 0x4f, 0x12, 0x79, 0xc6, 0x3b, 0x92, 0xd3, 0x24, 0x74, 0xd6, 0x4d, - 0xde, 0xc6, 0xe9, 0x84, 0x96, 0x5b, 0x52, 0xb6, 0x3e, 0xa2, 0xba, 0x80, 0x48, 0x1d, 0x15, 0xe3, - 0xe6, 0x80, 0x9e, 0xde, 0x74, 0x94, 0xc4, 0x83, 0xa8, 0x63, 0x58, 0xa7, 0x91, 0xcf, 0x72, 0xe4, - 0xb9, 0x63, 0xcd, 0xf6, 0x8f, 0x45, 0xf4, 0xb0, 0x72, 0xf9, 0xd6, 0x6b, 0x74, 0x37, 0x18, 0xbf, - 0x1c, 0x44, 0x11, 0xfb, 0x02, 0x81, 0x6e, 0xb6, 0xee, 0x3c, 0x32, 0xc5, 0xaf, 0x97, 0x68, 0x13, - 0xe3, 0xce, 0x62, 0xd6, 0x0b, 0xb4, 0xe6, 0x67, 0x9c, 0x43, 0x22, 0x5f, 0x01, 0x89, 0x64, 0xf7, - 0x5c, 0xf7, 0xb3, 0xe2, 0xdc, 0x37, 0x42, 0x6b, 0x87, 0xa5, 0x57, 0x77, 0x2a, 0x3a, 0xe7, 0x03, - 0x10, 0x94, 0x43, 0x30, 0xe2, 0x97, 0xca, 0xfc, 0x51, 0xe9, 0xd5, 0x9d, 0x8a, 0xb6, 0xf6, 0x51, - 0x03, 0xbe, 0xaa, 0xe5, 0xa9, 0xbf, 0x02, 0x55, 0xb2, 0x68, 0x2e, 0x6b, 0x7a, 0xbc, 0x83, 0xe3, - 0x89, 0x37, 0xb7, 0x14, 0xe9, 0x6c, 0x0f, 0xfe, 0x6c, 0x2c, 0x5c, 0x28, 0xfb, 0xa5, 0xec, 0xdb, - 0xe5, 0x46, 0x6d, 0xa0, 0xec, 0x42, 0xd9, 0x6f, 0x65, 0xdf, 0xaf, 0x36, 0x16, 0xde, 0xd7, 0x47, - 0xf7, 0xf5, 0x37, 0x00, 0x00, 0xff, 0xff, 0x3d, 0xae, 0xf9, 0xfa, 0xf1, 0x05, 0x00, 0x00, + // 648 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x94, 0xdf, 0x6a, 0xd4, 0x4e, + 0x14, 0xc7, 0xbb, 0xfd, 0xc7, 0x32, 0xbf, 0x6d, 0xf9, 0x35, 0x16, 0x5d, 0x17, 0x69, 0x65, 0xaf, + 0x4a, 0xb5, 0x13, 0x5a, 0x14, 0x8a, 0x17, 0x4a, 0xd3, 0x16, 0xac, 0x58, 0x2a, 0xe9, 0x8d, 0x08, + 0x0a, 0x93, 0xe4, 0x98, 0x1d, 0x9b, 0x64, 0xc2, 0xcc, 0x64, 0xb5, 0x77, 0x3e, 0x82, 0xaf, 0xe0, + 0xc3, 0x08, 0xc5, 0xab, 0x5e, 0x7a, 0xb5, 0x68, 0xfb, 0x22, 0x4e, 0x26, 0xb3, 0xdb, 0xcd, 0xee, + 0xa6, 0x14, 0x8a, 0x17, 0x03, 0x39, 0x33, 0xe7, 0xf3, 0x3d, 0x7f, 0xe6, 0x4c, 0xd0, 0xb3, 0x93, + 0x6d, 0x81, 0x29, 0xb3, 0x4f, 0x32, 0x0f, 0x78, 0x02, 0x12, 0x84, 0x9d, 0x9e, 0x84, 0x36, 0x49, + 0xa9, 0xfa, 0x60, 0x11, 0xf5, 0x4f, 0xed, 0xee, 0x26, 0x89, 0xd2, 0x0e, 0xd9, 0xb4, 0x43, 0x48, + 0x80, 0x13, 0x09, 0x01, 0x4e, 0x39, 0x93, 0xcc, 0x5a, 0x2f, 0x58, 0x7c, 0xc5, 0x62, 0xc5, 0xe2, + 0x9c, 0xc5, 0x05, 0x8b, 0xfb, 0x6c, 0x6b, 0x23, 0xa4, 0xb2, 0x93, 0x79, 0xd8, 0x67, 0xb1, 0x1d, + 0xb2, 0x90, 0xd9, 0x5a, 0xc2, 0xcb, 0x3e, 0x6a, 0x4b, 0x1b, 0xfa, 0xab, 0x90, 0x6e, 0x6d, 0x55, + 0xa6, 0x65, 0x73, 0x10, 0x2c, 0xe3, 0x3e, 0x8c, 0xa6, 0xd3, 0x7a, 0x5a, 0xcd, 0x64, 0x49, 0x17, + 0xb8, 0xa0, 0x2c, 0x81, 0x60, 0x0c, 0x7b, 0x5c, 0x8d, 0x75, 0xc7, 0x6a, 0x6e, 0x6d, 0x4c, 0xf6, + 0xe6, 0x59, 0x22, 0x69, 0x3c, 0x9e, 0xd3, 0xe6, 0x64, 0xf7, 0x4c, 0xd2, 0xc8, 0xa6, 0x89, 0x14, + 0x92, 0x8f, 0x22, 0xed, 0x9f, 0x35, 0x54, 0xdf, 0xef, 0x52, 0x5f, 0xaa, 0x74, 0xad, 0xb7, 0xa8, + 0x1e, 0x83, 0x24, 0x01, 0x91, 0xa4, 0x59, 0x7b, 0x58, 0x5b, 0xfb, 0x6f, 0x6b, 0x0d, 0x57, 0x76, + 0x5d, 0x75, 0x1b, 0x1f, 0x79, 0x9f, 0xc0, 0x97, 0x87, 0x8a, 0x71, 0xac, 0xb3, 0xde, 0xea, 0xd4, + 0x45, 0x6f, 0x15, 0x5d, 0xed, 0xb9, 0x03, 0x35, 0x2b, 0x40, 0x0b, 0x01, 0x44, 0x0a, 0x3f, 0x4a, + 0xf3, 0x48, 0xa2, 0x39, 0xad, 0xe5, 0x1f, 0x5d, 0x2f, 0xbf, 0x37, 0x8c, 0x38, 0x4b, 0x4a, 0x7d, + 0xa1, 0xb4, 0xe5, 0x96, 0x45, 0xdb, 0x3f, 0xa6, 0xd1, 0x9d, 0x37, 0x2c, 0xd8, 0xa3, 0x82, 0x67, + 0x7a, 0xcb, 0xc9, 0x82, 0x10, 0xe4, 0x3f, 0xac, 0x0b, 0xd0, 0xac, 0x48, 0xc1, 0x37, 0xe5, 0xec, + 0xe2, 0x9b, 0xcf, 0x28, 0x9e, 0x90, 0xe8, 0xb1, 0x92, 0x72, 0x1a, 0x26, 0xe0, 0x6c, 0x6e, 0xb9, + 0x5a, 0xde, 0x8a, 0xd1, 0xbc, 0x90, 0x44, 0x66, 0xa2, 0x39, 0xa3, 0x03, 0xed, 0xdf, 0x36, 0x90, + 0x16, 0x73, 0x16, 0x4d, 0xa8, 0xf9, 0xc2, 0x76, 0x4d, 0x90, 0x76, 0xaf, 0x86, 0xee, 0x4d, 0xa0, + 0x5e, 0x53, 0x21, 0xad, 0xf7, 0x63, 0xbd, 0xb4, 0xaf, 0xe9, 0xe5, 0xd0, 0x53, 0xc0, 0x39, 0xae, + 0x5b, 0xfa, 0xbf, 0x09, 0x5b, 0xef, 0xef, 0x94, 0x06, 0x65, 0x8e, 0x4a, 0x88, 0xf3, 0x01, 0x99, + 0x51, 0xda, 0x2f, 0x6e, 0x59, 0xa8, 0xb3, 0x60, 0x62, 0xcd, 0x1d, 0xe4, 0xaa, 0x6e, 0x21, 0xde, + 0xbe, 0x9c, 0x5c, 0x60, 0xde, 0x71, 0xab, 0x83, 0x1a, 0x31, 0x4d, 0x76, 0xba, 0x84, 0x46, 0xc4, + 0x8b, 0xc0, 0x14, 0x89, 0x2b, 0x12, 0xc9, 0xdf, 0x16, 0x2e, 0xde, 0x16, 0x3e, 0x48, 0xe4, 0x11, + 0x3f, 0x96, 0x9c, 0x26, 0xa1, 0xb3, 0x6c, 0xe2, 0x36, 0x0e, 0x87, 0xb4, 0xdc, 0x92, 0xb2, 0xf5, + 0x01, 0xd5, 0x85, 0x9a, 0x5f, 0x5f, 0x32, 0x6e, 0x06, 0xe8, 0xc9, 0x4d, 0x5b, 0x49, 0x3c, 0x88, + 0x8e, 0x0d, 0xeb, 0x34, 0xf2, 0x5e, 0xf6, 0x2d, 0x77, 0xa0, 0xd9, 0xfe, 0x3e, 0x8d, 0xee, 0x57, + 0x5e, 0xbe, 0xf5, 0x0a, 0x2d, 0x05, 0x83, 0x93, 0x9d, 0x28, 0x62, 0x9f, 0x21, 0xd0, 0xc5, 0xd6, + 0x9d, 0x07, 0x26, 0xf9, 0xe5, 0x12, 0x6d, 0x7c, 0xdc, 0x71, 0xcc, 0x7a, 0x8e, 0x16, 0xfd, 0x8c, + 0x73, 0x48, 0xe4, 0x4b, 0x20, 0x91, 0xec, 0x9c, 0xea, 0x7a, 0xe6, 0x9c, 0xbb, 0x46, 0x68, 0x71, + 0xb7, 0x74, 0xea, 0x8e, 0x78, 0xe7, 0x7c, 0x00, 0x82, 0x72, 0x08, 0xfa, 0xfc, 0x4c, 0x99, 0xdf, + 0x2b, 0x9d, 0xba, 0x23, 0xde, 0xd6, 0x36, 0x6a, 0xc0, 0x17, 0x75, 0x79, 0xea, 0xbf, 0xa6, 0x52, + 0x16, 0xcd, 0x59, 0x4d, 0x0f, 0xee, 0x60, 0x7f, 0xe8, 0xcc, 0x2d, 0x79, 0x3a, 0xeb, 0x67, 0x7f, + 0x56, 0xa6, 0xce, 0xd5, 0xfa, 0xa5, 0xd6, 0xd7, 0x8b, 0x95, 0xda, 0x99, 0x5a, 0xe7, 0x6a, 0xfd, + 0x56, 0xeb, 0xdb, 0xe5, 0xca, 0xd4, 0xbb, 0x7a, 0x7f, 0xbe, 0xfe, 0x06, 0x00, 0x00, 0xff, 0xff, + 0x7d, 0xdd, 0x26, 0x2d, 0xbe, 0x06, 0x00, 0x00, } diff --git a/1.4/pkg/apis/policy/v1alpha1/generated.proto b/1.4/pkg/apis/policy/v1alpha1/generated.proto index d04a0af8..2bc3b524 100644 --- a/1.4/pkg/apis/policy/v1alpha1/generated.proto +++ b/1.4/pkg/apis/policy/v1alpha1/generated.proto @@ -30,6 +30,17 @@ import "k8s.io/kubernetes/pkg/util/intstr/generated.proto"; // Package-wide variables from generator "generated". option go_package = "v1alpha1"; +// Eviction evicts a pod from its node subject to certain policies and safety constraints. +// This is a subresource of Pod. A request to cause such an eviction is +// created by POSTing to .../pods/foo/evictions. +message Eviction { + // ObjectMeta describes the pod that is being evicted. + optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; + + // DeleteOptions may be provided + optional k8s.io.kubernetes.pkg.api.v1.DeleteOptions deleteOptions = 2; +} + // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods message PodDisruptionBudget { optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1; diff --git a/1.4/pkg/apis/policy/v1alpha1/register.go b/1.4/pkg/apis/policy/v1alpha1/register.go index 41ce68a1..53e3fca0 100644 --- a/1.4/pkg/apis/policy/v1alpha1/register.go +++ b/1.4/pkg/apis/policy/v1alpha1/register.go @@ -39,6 +39,7 @@ func addKnownTypes(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &PodDisruptionBudget{}, &PodDisruptionBudgetList{}, + &Eviction{}, &v1.ListOptions{}, &v1.DeleteOptions{}, ) diff --git a/1.4/pkg/apis/policy/v1alpha1/types.generated.go b/1.4/pkg/apis/policy/v1alpha1/types.generated.go index 378f83c7..a0d93bb2 100644 --- a/1.4/pkg/apis/policy/v1alpha1/types.generated.go +++ b/1.4/pkg/apis/policy/v1alpha1/types.generated.go @@ -1320,15 +1320,330 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } +func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperEncoder(e) + _, _, _ = h, z, r + if x == nil { + r.EncodeNil() + } else { + yym112 := z.EncBinary() + _ = yym112 + if false { + } else if z.HasExtensions() && z.EncExt(x) { + } else { + yysep113 := !z.EncBinary() + yy2arr113 := z.EncBasicHandle().StructToArray + var yyq113 [4]bool + _, _, _ = yysep113, yyq113, yy2arr113 + const yyr113 bool = false + yyq113[0] = x.Kind != "" + yyq113[1] = x.APIVersion != "" + yyq113[2] = true + yyq113[3] = x.DeleteOptions != nil + var yynn113 int + if yyr113 || yy2arr113 { + r.EncodeArrayStart(4) + } else { + yynn113 = 0 + for _, b := range yyq113 { + if b { + yynn113++ + } + } + r.EncodeMapStart(yynn113) + yynn113 = 0 + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[0] { + yym115 := z.EncBinary() + _ = yym115 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq113[0] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("kind")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym116 := z.EncBinary() + _ = yym116 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) + } + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[1] { + yym118 := z.EncBinary() + _ = yym118 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } else { + r.EncodeString(codecSelferC_UTF81234, "") + } + } else { + if yyq113[1] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yym119 := z.EncBinary() + _ = yym119 + if false { + } else { + r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) + } + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[2] { + yy121 := &x.ObjectMeta + yy121.CodecEncodeSelf(e) + } else { + r.EncodeNil() + } + } else { + if yyq113[2] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("metadata")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + yy122 := &x.ObjectMeta + yy122.CodecEncodeSelf(e) + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayElem1234) + if yyq113[3] { + if x.DeleteOptions == nil { + r.EncodeNil() + } else { + x.DeleteOptions.CodecEncodeSelf(e) + } + } else { + r.EncodeNil() + } + } else { + if yyq113[3] { + z.EncSendContainerState(codecSelfer_containerMapKey1234) + r.EncodeString(codecSelferC_UTF81234, string("deleteOptions")) + z.EncSendContainerState(codecSelfer_containerMapValue1234) + if x.DeleteOptions == nil { + r.EncodeNil() + } else { + x.DeleteOptions.CodecEncodeSelf(e) + } + } + } + if yyr113 || yy2arr113 { + z.EncSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + z.EncSendContainerState(codecSelfer_containerMapEnd1234) + } + } + } +} + +func (x *Eviction) CodecDecodeSelf(d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + yym124 := z.DecBinary() + _ = yym124 + if false { + } else if z.HasExtensions() && z.DecExt(x) { + } else { + yyct125 := r.ContainerType() + if yyct125 == codecSelferValueTypeMap1234 { + yyl125 := r.ReadMapStart() + if yyl125 == 0 { + z.DecSendContainerState(codecSelfer_containerMapEnd1234) + } else { + x.codecDecodeSelfFromMap(yyl125, d) + } + } else if yyct125 == codecSelferValueTypeArray1234 { + yyl125 := r.ReadArrayStart() + if yyl125 == 0 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + } else { + x.codecDecodeSelfFromArray(yyl125, d) + } + } else { + panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) + } + } +} + +func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yys126Slc = z.DecScratchBuffer() // default slice to decode into + _ = yys126Slc + var yyhl126 bool = l >= 0 + for yyj126 := 0; ; yyj126++ { + if yyhl126 { + if yyj126 >= l { + break + } + } else { + if r.CheckBreak() { + break + } + } + z.DecSendContainerState(codecSelfer_containerMapKey1234) + yys126Slc = r.DecodeBytes(yys126Slc, true, true) + yys126 := string(yys126Slc) + z.DecSendContainerState(codecSelfer_containerMapValue1234) + switch yys126 { + case "kind": + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + case "apiVersion": + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + case "metadata": + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg3_v1.ObjectMeta{} + } else { + yyv129 := &x.ObjectMeta + yyv129.CodecDecodeSelf(d) + } + case "deleteOptions": + if r.TryDecodeAsNil() { + if x.DeleteOptions != nil { + x.DeleteOptions = nil + } + } else { + if x.DeleteOptions == nil { + x.DeleteOptions = new(pkg3_v1.DeleteOptions) + } + x.DeleteOptions.CodecDecodeSelf(d) + } + default: + z.DecStructFieldNotFound(-1, yys126) + } // end switch yys126 + } // end for yyj126 + z.DecSendContainerState(codecSelfer_containerMapEnd1234) +} + +func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { + var h codecSelfer1234 + z, r := codec1978.GenHelperDecoder(d) + _, _, _ = h, z, r + var yyj131 int + var yyb131 bool + var yyhl131 bool = l >= 0 + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.Kind = "" + } else { + x.Kind = string(r.DecodeString()) + } + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.APIVersion = "" + } else { + x.APIVersion = string(r.DecodeString()) + } + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + x.ObjectMeta = pkg3_v1.ObjectMeta{} + } else { + yyv134 := &x.ObjectMeta + yyv134.CodecDecodeSelf(d) + } + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) + return + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + if r.TryDecodeAsNil() { + if x.DeleteOptions != nil { + x.DeleteOptions = nil + } + } else { + if x.DeleteOptions == nil { + x.DeleteOptions = new(pkg3_v1.DeleteOptions) + } + x.DeleteOptions.CodecDecodeSelf(d) + } + for { + yyj131++ + if yyhl131 { + yyb131 = yyj131 > l + } else { + yyb131 = r.CheckBreak() + } + if yyb131 { + break + } + z.DecSendContainerState(codecSelfer_containerArrayElem1234) + z.DecStructFieldNotFound(yyj131-1, "") + } + z.DecSendContainerState(codecSelfer_containerArrayEnd1234) +} + func (x codecSelfer1234) encSlicePodDisruptionBudget(v []PodDisruptionBudget, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) - for _, yyv112 := range v { + for _, yyv136 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) - yy113 := &yyv112 - yy113.CodecEncodeSelf(e) + yy137 := &yyv136 + yy137.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } @@ -1338,83 +1653,83 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r - yyv114 := *v - yyh114, yyl114 := z.DecSliceHelperStart() - var yyc114 bool - if yyl114 == 0 { - if yyv114 == nil { - yyv114 = []PodDisruptionBudget{} - yyc114 = true - } else if len(yyv114) != 0 { - yyv114 = yyv114[:0] - yyc114 = true + yyv138 := *v + yyh138, yyl138 := z.DecSliceHelperStart() + var yyc138 bool + if yyl138 == 0 { + if yyv138 == nil { + yyv138 = []PodDisruptionBudget{} + yyc138 = true + } else if len(yyv138) != 0 { + yyv138 = yyv138[:0] + yyc138 = true } - } else if yyl114 > 0 { - var yyrr114, yyrl114 int - var yyrt114 bool - if yyl114 > cap(yyv114) { + } else if yyl138 > 0 { + var yyrr138, yyrl138 int + var yyrt138 bool + if yyl138 > cap(yyv138) { - yyrg114 := len(yyv114) > 0 - yyv2114 := yyv114 - yyrl114, yyrt114 = z.DecInferLen(yyl114, z.DecBasicHandle().MaxInitLen, 296) - if yyrt114 { - if yyrl114 <= cap(yyv114) { - yyv114 = yyv114[:yyrl114] + yyrg138 := len(yyv138) > 0 + yyv2138 := yyv138 + yyrl138, yyrt138 = z.DecInferLen(yyl138, z.DecBasicHandle().MaxInitLen, 312) + if yyrt138 { + if yyrl138 <= cap(yyv138) { + yyv138 = yyv138[:yyrl138] } else { - yyv114 = make([]PodDisruptionBudget, yyrl114) + yyv138 = make([]PodDisruptionBudget, yyrl138) } } else { - yyv114 = make([]PodDisruptionBudget, yyrl114) + yyv138 = make([]PodDisruptionBudget, yyrl138) } - yyc114 = true - yyrr114 = len(yyv114) - if yyrg114 { - copy(yyv114, yyv2114) + yyc138 = true + yyrr138 = len(yyv138) + if yyrg138 { + copy(yyv138, yyv2138) } - } else if yyl114 != len(yyv114) { - yyv114 = yyv114[:yyl114] - yyc114 = true + } else if yyl138 != len(yyv138) { + yyv138 = yyv138[:yyl138] + yyc138 = true } - yyj114 := 0 - for ; yyj114 < yyrr114; yyj114++ { - yyh114.ElemContainerState(yyj114) + yyj138 := 0 + for ; yyj138 < yyrr138; yyj138++ { + yyh138.ElemContainerState(yyj138) if r.TryDecodeAsNil() { - yyv114[yyj114] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv115 := &yyv114[yyj114] - yyv115.CodecDecodeSelf(d) + yyv139 := &yyv138[yyj138] + yyv139.CodecDecodeSelf(d) } } - if yyrt114 { - for ; yyj114 < yyl114; yyj114++ { - yyv114 = append(yyv114, PodDisruptionBudget{}) - yyh114.ElemContainerState(yyj114) + if yyrt138 { + for ; yyj138 < yyl138; yyj138++ { + yyv138 = append(yyv138, PodDisruptionBudget{}) + yyh138.ElemContainerState(yyj138) if r.TryDecodeAsNil() { - yyv114[yyj114] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv116 := &yyv114[yyj114] - yyv116.CodecDecodeSelf(d) + yyv140 := &yyv138[yyj138] + yyv140.CodecDecodeSelf(d) } } } } else { - yyj114 := 0 - for ; !r.CheckBreak(); yyj114++ { + yyj138 := 0 + for ; !r.CheckBreak(); yyj138++ { - if yyj114 >= len(yyv114) { - yyv114 = append(yyv114, PodDisruptionBudget{}) // var yyz114 PodDisruptionBudget - yyc114 = true + if yyj138 >= len(yyv138) { + yyv138 = append(yyv138, PodDisruptionBudget{}) // var yyz138 PodDisruptionBudget + yyc138 = true } - yyh114.ElemContainerState(yyj114) - if yyj114 < len(yyv114) { + yyh138.ElemContainerState(yyj138) + if yyj138 < len(yyv138) { if r.TryDecodeAsNil() { - yyv114[yyj114] = PodDisruptionBudget{} + yyv138[yyj138] = PodDisruptionBudget{} } else { - yyv117 := &yyv114[yyj114] - yyv117.CodecDecodeSelf(d) + yyv141 := &yyv138[yyj138] + yyv141.CodecDecodeSelf(d) } } else { @@ -1422,16 +1737,16 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d } } - if yyj114 < len(yyv114) { - yyv114 = yyv114[:yyj114] - yyc114 = true - } else if yyj114 == 0 && yyv114 == nil { - yyv114 = []PodDisruptionBudget{} - yyc114 = true + if yyj138 < len(yyv138) { + yyv138 = yyv138[:yyj138] + yyc138 = true + } else if yyj138 == 0 && yyv138 == nil { + yyv138 = []PodDisruptionBudget{} + yyc138 = true } } - yyh114.End() - if yyc114 { - *v = yyv114 + yyh138.End() + if yyc138 { + *v = yyv138 } } diff --git a/1.4/pkg/apis/policy/v1alpha1/types.go b/1.4/pkg/apis/policy/v1alpha1/types.go index 2a8ec566..1da3ebbc 100644 --- a/1.4/pkg/apis/policy/v1alpha1/types.go +++ b/1.4/pkg/apis/policy/v1alpha1/types.go @@ -18,7 +18,6 @@ package v1alpha1 import ( "k8s.io/client-go/1.4/pkg/api/unversioned" - "k8s.io/client-go/1.4/pkg/api/v1" "k8s.io/client-go/1.4/pkg/util/intstr" ) @@ -51,7 +50,6 @@ type PodDisruptionBudgetStatus struct { } // +genclient=true -// +noMethods=true // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods type PodDisruptionBudget struct { @@ -70,3 +68,16 @@ type PodDisruptionBudgetList struct { unversioned.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Items []PodDisruptionBudget `json:"items" protobuf:"bytes,2,rep,name=items"` } + +// Eviction evicts a pod from its node subject to certain policies and safety constraints. +// This is a subresource of Pod. A request to cause such an eviction is +// created by POSTing to .../pods/foo/evictions. +type Eviction struct { + unversioned.TypeMeta `json:",inline"` + + // ObjectMeta describes the pod that is being evicted. + v1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` + + // DeleteOptions may be provided + DeleteOptions *v1.DeleteOptions `json:"deleteOptions,omitempty" protobuf:"bytes,2,opt,name=deleteOptions"` +} diff --git a/1.4/pkg/apis/policy/v1alpha1/types_swagger_doc_generated.go b/1.4/pkg/apis/policy/v1alpha1/types_swagger_doc_generated.go index b12ce0fd..4711780e 100644 --- a/1.4/pkg/apis/policy/v1alpha1/types_swagger_doc_generated.go +++ b/1.4/pkg/apis/policy/v1alpha1/types_swagger_doc_generated.go @@ -27,6 +27,16 @@ package v1alpha1 // Those methods can be generated by using hack/update-generated-swagger-docs.sh // AUTO-GENERATED FUNCTIONS START HERE +var map_Eviction = map[string]string{ + "": "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods/foo/evictions.", + "metadata": "ObjectMeta describes the pod that is being evicted.", + "deleteOptions": "DeleteOptions may be provided", +} + +func (Eviction) SwaggerDoc() map[string]string { + return map_Eviction +} + var map_PodDisruptionBudget = map[string]string{ "": "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods", "spec": "Specification of the desired behavior of the PodDisruptionBudget.", diff --git a/1.4/pkg/apis/policy/v1alpha1/zz_generated.conversion.go b/1.4/pkg/apis/policy/v1alpha1/zz_generated.conversion.go index 860ed255..b9ac0f3f 100644 --- a/1.4/pkg/apis/policy/v1alpha1/zz_generated.conversion.go +++ b/1.4/pkg/apis/policy/v1alpha1/zz_generated.conversion.go @@ -22,6 +22,7 @@ package v1alpha1 import ( api "k8s.io/client-go/1.4/pkg/api" + v1 "k8s.io/client-go/1.4/pkg/api/v1" policy "k8s.io/client-go/1.4/pkg/apis/policy" conversion "k8s.io/client-go/1.4/pkg/conversion" runtime "k8s.io/client-go/1.4/pkg/runtime" @@ -35,6 +36,8 @@ func init() { // Public to allow building arbitrary schemes. func RegisterConversions(scheme *runtime.Scheme) error { return scheme.AddGeneratedConversionFuncs( + Convert_v1alpha1_Eviction_To_policy_Eviction, + Convert_policy_Eviction_To_v1alpha1_Eviction, Convert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget, Convert_policy_PodDisruptionBudget_To_v1alpha1_PodDisruptionBudget, Convert_v1alpha1_PodDisruptionBudgetList_To_policy_PodDisruptionBudgetList, @@ -46,6 +49,56 @@ func RegisterConversions(scheme *runtime.Scheme) error { ) } +func autoConvert_v1alpha1_Eviction_To_policy_Eviction(in *Eviction, out *policy.Eviction, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if in.DeleteOptions != nil { + in, out := &in.DeleteOptions, &out.DeleteOptions + *out = new(api.DeleteOptions) + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(*in, *out, 0); err != nil { + return err + } + } else { + out.DeleteOptions = nil + } + return nil +} + +func Convert_v1alpha1_Eviction_To_policy_Eviction(in *Eviction, out *policy.Eviction, s conversion.Scope) error { + return autoConvert_v1alpha1_Eviction_To_policy_Eviction(in, out, s) +} + +func autoConvert_policy_Eviction_To_v1alpha1_Eviction(in *policy.Eviction, out *Eviction, s conversion.Scope) error { + if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { + return err + } + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil { + return err + } + if in.DeleteOptions != nil { + in, out := &in.DeleteOptions, &out.DeleteOptions + *out = new(v1.DeleteOptions) + // TODO: Inefficient conversion - can we improve it? + if err := s.Convert(*in, *out, 0); err != nil { + return err + } + } else { + out.DeleteOptions = nil + } + return nil +} + +func Convert_policy_Eviction_To_v1alpha1_Eviction(in *policy.Eviction, out *Eviction, s conversion.Scope) error { + return autoConvert_policy_Eviction_To_v1alpha1_Eviction(in, out, s) +} + func autoConvert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget(in *PodDisruptionBudget, out *policy.PodDisruptionBudget, s conversion.Scope) error { if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil { return err diff --git a/1.4/pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go b/1.4/pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go index 867ccbb1..08fd2164 100644 --- a/1.4/pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go +++ b/1.4/pkg/apis/policy/v1alpha1/zz_generated.deepcopy.go @@ -36,6 +36,7 @@ func init() { // to allow building arbitrary schemes. func RegisterDeepCopies(scheme *runtime.Scheme) error { return scheme.AddGeneratedDeepCopyFuncs( + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_Eviction, InType: reflect.TypeOf(&Eviction{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PodDisruptionBudget, InType: reflect.TypeOf(&PodDisruptionBudget{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PodDisruptionBudgetList, InType: reflect.TypeOf(&PodDisruptionBudgetList{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_PodDisruptionBudgetSpec, InType: reflect.TypeOf(&PodDisruptionBudgetSpec{})}, @@ -43,6 +44,27 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { ) } +func DeepCopy_v1alpha1_Eviction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Eviction) + out := out.(*Eviction) + out.TypeMeta = in.TypeMeta + if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.DeleteOptions != nil { + in, out := &in.DeleteOptions, &out.DeleteOptions + *out = new(v1.DeleteOptions) + if err := v1.DeepCopy_v1_DeleteOptions(*in, *out, c); err != nil { + return err + } + } else { + out.DeleteOptions = nil + } + return nil + } +} + func DeepCopy_v1alpha1_PodDisruptionBudget(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*PodDisruptionBudget) diff --git a/1.4/pkg/apis/policy/zz_generated.deepcopy.go b/1.4/pkg/apis/policy/zz_generated.deepcopy.go index 57f03eab..7dada91d 100644 --- a/1.4/pkg/apis/policy/zz_generated.deepcopy.go +++ b/1.4/pkg/apis/policy/zz_generated.deepcopy.go @@ -36,6 +36,7 @@ func init() { // to allow building arbitrary schemes. func RegisterDeepCopies(scheme *runtime.Scheme) error { return scheme.AddGeneratedDeepCopyFuncs( + conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_Eviction, InType: reflect.TypeOf(&Eviction{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudget, InType: reflect.TypeOf(&PodDisruptionBudget{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudgetList, InType: reflect.TypeOf(&PodDisruptionBudgetList{})}, conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudgetSpec, InType: reflect.TypeOf(&PodDisruptionBudgetSpec{})}, @@ -43,6 +44,27 @@ func RegisterDeepCopies(scheme *runtime.Scheme) error { ) } +func DeepCopy_policy_Eviction(in interface{}, out interface{}, c *conversion.Cloner) error { + { + in := in.(*Eviction) + out := out.(*Eviction) + out.TypeMeta = in.TypeMeta + if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil { + return err + } + if in.DeleteOptions != nil { + in, out := &in.DeleteOptions, &out.DeleteOptions + *out = new(api.DeleteOptions) + if err := api.DeepCopy_api_DeleteOptions(*in, *out, c); err != nil { + return err + } + } else { + out.DeleteOptions = nil + } + return nil + } +} + func DeepCopy_policy_PodDisruptionBudget(in interface{}, out interface{}, c *conversion.Cloner) error { { in := in.(*PodDisruptionBudget) diff --git a/1.4/pkg/apis/rbac/register.go b/1.4/pkg/apis/rbac/register.go index 2ddb31ae..1d6e6b18 100644 --- a/1.4/pkg/apis/rbac/register.go +++ b/1.4/pkg/apis/rbac/register.go @@ -28,12 +28,12 @@ const GroupName = "rbac.authorization.k8s.io" // SchemeGroupVersion is group version used to register these objects var SchemeGroupVersion = unversioned.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal} -// Kind takes an unqualified kind and returns back a Group qualified GroupKind +// Kind takes an unqualified kind and returns a Group qualified GroupKind func Kind(kind string) unversioned.GroupKind { return SchemeGroupVersion.WithKind(kind).GroupKind() } -// Resource takes an unqualified resource and returns back a Group qualified GroupResource +// Resource takes an unqualified resource and returns a Group qualified GroupResource func Resource(resource string) unversioned.GroupResource { return SchemeGroupVersion.WithResource(resource).GroupResource() } diff --git a/1.4/pkg/apis/rbac/types.go b/1.4/pkg/apis/rbac/types.go index fdab6047..4a760d99 100644 --- a/1.4/pkg/apis/rbac/types.go +++ b/1.4/pkg/apis/rbac/types.go @@ -71,7 +71,7 @@ type Subject struct { // If the Authorizer does not recognized the kind value, the Authorizer should report an error. Kind string // APIVersion holds the API group and version of the referenced object. For non-object references such as "Group" and "User" this is - // expected to be API version of this API group. For example "rbac/v1alpha1". + // expected to be API version of this API group. For example, "rbac/v1alpha1". APIVersion string // Name of the object being referenced. Name string diff --git a/1.4/pkg/apis/rbac/v1alpha1/types.generated.go b/1.4/pkg/apis/rbac/v1alpha1/types.generated.go index f518d617..41fc24ef 100644 --- a/1.4/pkg/apis/rbac/v1alpha1/types.generated.go +++ b/1.4/pkg/apis/rbac/v1alpha1/types.generated.go @@ -3894,7 +3894,7 @@ func (x codecSelfer1234) decSliceRoleBinding(v *[]RoleBinding, d *codec1978.Deco yyrg341 := len(yyv341) > 0 yyv2341 := yyv341 - yyrl341, yyrt341 = z.DecInferLen(yyl341, z.DecBasicHandle().MaxInitLen, 376) + yyrl341, yyrt341 = z.DecInferLen(yyl341, z.DecBasicHandle().MaxInitLen, 392) if yyrt341 { if yyrl341 <= cap(yyv341) { yyv341 = yyv341[:yyrl341] @@ -4010,7 +4010,7 @@ func (x codecSelfer1234) decSliceRole(v *[]Role, d *codec1978.Decoder) { yyrg347 := len(yyv347) > 0 yyv2347 := yyv347 - yyrl347, yyrt347 = z.DecInferLen(yyl347, z.DecBasicHandle().MaxInitLen, 264) + yyrl347, yyrt347 = z.DecInferLen(yyl347, z.DecBasicHandle().MaxInitLen, 280) if yyrt347 { if yyrl347 <= cap(yyv347) { yyv347 = yyv347[:yyrl347] @@ -4126,7 +4126,7 @@ func (x codecSelfer1234) decSliceClusterRoleBinding(v *[]ClusterRoleBinding, d * yyrg353 := len(yyv353) > 0 yyv2353 := yyv353 - yyrl353, yyrt353 = z.DecInferLen(yyl353, z.DecBasicHandle().MaxInitLen, 376) + yyrl353, yyrt353 = z.DecInferLen(yyl353, z.DecBasicHandle().MaxInitLen, 392) if yyrt353 { if yyrl353 <= cap(yyv353) { yyv353 = yyv353[:yyrl353] @@ -4242,7 +4242,7 @@ func (x codecSelfer1234) decSliceClusterRole(v *[]ClusterRole, d *codec1978.Deco yyrg359 := len(yyv359) > 0 yyv2359 := yyv359 - yyrl359, yyrt359 = z.DecInferLen(yyl359, z.DecBasicHandle().MaxInitLen, 264) + yyrl359, yyrt359 = z.DecInferLen(yyl359, z.DecBasicHandle().MaxInitLen, 280) if yyrt359 { if yyrl359 <= cap(yyv359) { yyv359 = yyv359[:yyrl359] diff --git a/1.4/pkg/auth/user/user.go b/1.4/pkg/auth/user/user.go index 99261965..7e7cc16f 100644 --- a/1.4/pkg/auth/user/user.go +++ b/1.4/pkg/auth/user/user.go @@ -36,6 +36,8 @@ type Info interface { // This is a map[string][]string because it needs to be serializeable into // a SubjectAccessReviewSpec.authorization.k8s.io for proper authorization // delegation flows + // In order to faithfully round-trip through an impersonation flow, these keys + // MUST be lowercase. GetExtra() map[string][]string } diff --git a/1.4/pkg/conversion/converter.go b/1.4/pkg/conversion/converter.go index 7a18d636..8941b18a 100644 --- a/1.4/pkg/conversion/converter.go +++ b/1.4/pkg/conversion/converter.go @@ -213,6 +213,8 @@ type Meta struct { // KeyNameMapping is an optional function which may map the listed key (field name) // into a source and destination value. KeyNameMapping FieldMappingFunc + // Context is an optional field that callers may use to pass info to conversion functions. + Context interface{} } // scope contains information about an ongoing conversion. diff --git a/1.4/pkg/federation/apis/federation/types.generated.go b/1.4/pkg/federation/apis/federation/types.generated.go index 498e3fdf..01d61869 100644 --- a/1.4/pkg/federation/apis/federation/types.generated.go +++ b/1.4/pkg/federation/apis/federation/types.generated.go @@ -2778,7 +2778,7 @@ func (x codecSelfer1234) decSliceCluster(v *[]Cluster, d *codec1978.Decoder) { yyrg222 := len(yyv222) > 0 yyv2222 := yyv222 - yyrl222, yyrt222 = z.DecInferLen(yyl222, z.DecBasicHandle().MaxInitLen, 336) + yyrl222, yyrt222 = z.DecInferLen(yyl222, z.DecBasicHandle().MaxInitLen, 352) if yyrt222 { if yyrl222 <= cap(yyv222) { yyv222 = yyv222[:yyrl222] diff --git a/1.4/pkg/federation/apis/federation/v1beta1/types.generated.go b/1.4/pkg/federation/apis/federation/v1beta1/types.generated.go index 0168a3e3..4352c3c3 100644 --- a/1.4/pkg/federation/apis/federation/v1beta1/types.generated.go +++ b/1.4/pkg/federation/apis/federation/v1beta1/types.generated.go @@ -2253,7 +2253,7 @@ func (x codecSelfer1234) decSliceCluster(v *[]Cluster, d *codec1978.Decoder) { yyrg179 := len(yyv179) > 0 yyv2179 := yyv179 - yyrl179, yyrt179 = z.DecInferLen(yyl179, z.DecBasicHandle().MaxInitLen, 336) + yyrl179, yyrt179 = z.DecInferLen(yyl179, z.DecBasicHandle().MaxInitLen, 352) if yyrt179 { if yyrl179 <= cap(yyv179) { yyv179 = yyv179[:yyrl179] diff --git a/1.4/pkg/fields/requirements.go b/1.4/pkg/fields/requirements.go new file mode 100644 index 00000000..cb123e29 --- /dev/null +++ b/1.4/pkg/fields/requirements.go @@ -0,0 +1,30 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package fields + +import "k8s.io/client-go/1.4/pkg/selection" + +// Requirements is AND of all requirements. +type Requirements []Requirement + +// Requirement contains a field, a value, and an operator that relates the field and value. +// This is currently for reading internal selection information of field selector. +type Requirement struct { + Operator selection.Operator + Field string + Value string +} diff --git a/1.4/pkg/fields/selector.go b/1.4/pkg/fields/selector.go index eef44d35..5d38358d 100644 --- a/1.4/pkg/fields/selector.go +++ b/1.4/pkg/fields/selector.go @@ -20,6 +20,8 @@ import ( "fmt" "sort" "strings" + + "k8s.io/client-go/1.4/pkg/selection" ) // Selector represents a field selector. @@ -39,6 +41,10 @@ type Selector interface { // applied to the entire selector, or an error if fn returns an error. Transform(fn TransformFunc) (Selector, error) + // Requirements converts this interface to Requirements to expose + // more detailed selection information. + Requirements() Requirements + // String returns a human readable string that represents this selector. String() string } @@ -75,6 +81,14 @@ func (t *hasTerm) Transform(fn TransformFunc) (Selector, error) { return &hasTerm{field, value}, nil } +func (t *hasTerm) Requirements() Requirements { + return []Requirement{{ + Field: t.field, + Operator: selection.Equals, + Value: t.value, + }} +} + func (t *hasTerm) String() string { return fmt.Sprintf("%v=%v", t.field, t.value) } @@ -103,6 +117,14 @@ func (t *notHasTerm) Transform(fn TransformFunc) (Selector, error) { return ¬HasTerm{field, value}, nil } +func (t *notHasTerm) Requirements() Requirements { + return []Requirement{{ + Field: t.field, + Operator: selection.NotEquals, + Value: t.value, + }} +} + func (t *notHasTerm) String() string { return fmt.Sprintf("%v!=%v", t.field, t.value) } @@ -157,6 +179,15 @@ func (t andTerm) Transform(fn TransformFunc) (Selector, error) { return andTerm(next), nil } +func (t andTerm) Requirements() Requirements { + reqs := make([]Requirement, 0, len(t)) + for _, s := range []Selector(t) { + rs := s.Requirements() + reqs = append(reqs, rs...) + } + return reqs +} + func (t andTerm) String() string { var terms []string for _, q := range t { diff --git a/1.4/pkg/labels/labels.go b/1.4/pkg/labels/labels.go index 637a45fd..822b137a 100644 --- a/1.4/pkg/labels/labels.go +++ b/1.4/pkg/labels/labels.go @@ -61,6 +61,15 @@ func (ls Set) AsSelector() Selector { return SelectorFromSet(ls) } +// AsSelectorPreValidated converts labels into a selector, but +// assumes that labels are already validated and thus don't +// preform any validation. +// According to our measurements this is significantly faster +// in codepaths that matter at high sccale. +func (ls Set) AsSelectorPreValidated() Selector { + return SelectorFromValidatedSet(ls) +} + // FormatLables convert label map into plain string func FormatLabels(labelMap map[string]string) string { l := Set(labelMap).String() diff --git a/1.4/pkg/labels/selector.go b/1.4/pkg/labels/selector.go index 2cc05e1c..cee751a5 100644 --- a/1.4/pkg/labels/selector.go +++ b/1.4/pkg/labels/selector.go @@ -24,10 +24,14 @@ import ( "strings" "github.com/golang/glog" + "k8s.io/client-go/1.4/pkg/selection" "k8s.io/client-go/1.4/pkg/util/sets" "k8s.io/client-go/1.4/pkg/util/validation" ) +// Requirements is AND of all requirements. +type Requirements []Requirement + // Selector represents a label selector. type Selector interface { // Matches returns true if this selector matches the given set of labels. @@ -41,6 +45,12 @@ type Selector interface { // Add adds requirements to the Selector Add(r ...Requirement) Selector + + // Requirements converts this interface into Requirements to expose + // more detailed selection information. + // If there are querying parameters, it will return converted requirements and selectable=true. + // If this selector doesn't want to select anything, it will return selectable=false. + Requirements() (requirements Requirements, selectable bool) } // Everything returns a selector that matches all labels. @@ -50,32 +60,17 @@ func Everything() Selector { type nothingSelector struct{} -func (n nothingSelector) Matches(_ Labels) bool { return false } -func (n nothingSelector) Empty() bool { return false } -func (n nothingSelector) String() string { return "" } -func (n nothingSelector) Add(_ ...Requirement) Selector { return n } +func (n nothingSelector) Matches(_ Labels) bool { return false } +func (n nothingSelector) Empty() bool { return false } +func (n nothingSelector) String() string { return "" } +func (n nothingSelector) Add(_ ...Requirement) Selector { return n } +func (n nothingSelector) Requirements() (Requirements, bool) { return nil, false } // Nothing returns a selector that matches no labels func Nothing() Selector { return nothingSelector{} } -// Operator represents a key's relationship -// to a set of values in a Requirement. -type Operator string - -const ( - DoesNotExistOperator Operator = "!" - EqualsOperator Operator = "=" - DoubleEqualsOperator Operator = "==" - InOperator Operator = "in" - NotEqualsOperator Operator = "!=" - NotInOperator Operator = "notin" - ExistsOperator Operator = "exists" - GreaterThanOperator Operator = "gt" - LessThanOperator Operator = "lt" -) - func NewSelector() Selector { return internalSelector(nil) } @@ -91,14 +86,13 @@ func (a ByKey) Swap(i, j int) { a[i], a[j] = a[j], a[i] } func (a ByKey) Less(i, j int) bool { return a[i].key < a[j].key } -// Requirement is a selector that contains values, a key -// and an operator that relates the key and values. The zero -// value of Requirement is invalid. +// Requirement contains values, a key, and an operator that relates the key and values. +// The zero value of Requirement is invalid. // Requirement implements both set based match and exact match -// Requirement is initialized via NewRequirement constructor for creating a valid Requirement. +// Requirement should be initialized via NewRequirement constructor for creating a valid Requirement. type Requirement struct { key string - operator Operator + operator selection.Operator strValues sets.String } @@ -113,24 +107,24 @@ type Requirement struct { // of characters. See validateLabelKey for more details. // // The empty string is a valid value in the input values set. -func NewRequirement(key string, op Operator, vals sets.String) (*Requirement, error) { +func NewRequirement(key string, op selection.Operator, vals sets.String) (*Requirement, error) { if err := validateLabelKey(key); err != nil { return nil, err } switch op { - case InOperator, NotInOperator: + case selection.In, selection.NotIn: if len(vals) == 0 { return nil, fmt.Errorf("for 'in', 'notin' operators, values set can't be empty") } - case EqualsOperator, DoubleEqualsOperator, NotEqualsOperator: + case selection.Equals, selection.DoubleEquals, selection.NotEquals: if len(vals) != 1 { return nil, fmt.Errorf("exact-match compatibility requires one single value") } - case ExistsOperator, DoesNotExistOperator: + case selection.Exists, selection.DoesNotExist: if len(vals) != 0 { return nil, fmt.Errorf("values set must be empty for exists and does not exist") } - case GreaterThanOperator, LessThanOperator: + case selection.GreaterThan, selection.LessThan: if len(vals) != 1 { return nil, fmt.Errorf("for 'Gt', 'Lt' operators, exactly one value is required") } @@ -164,21 +158,21 @@ func NewRequirement(key string, op Operator, vals sets.String) (*Requirement, er // the Requirement's key and the corresponding value satisfies mathematical inequality. func (r *Requirement) Matches(ls Labels) bool { switch r.operator { - case InOperator, EqualsOperator, DoubleEqualsOperator: + case selection.In, selection.Equals, selection.DoubleEquals: if !ls.Has(r.key) { return false } return r.strValues.Has(ls.Get(r.key)) - case NotInOperator, NotEqualsOperator: + case selection.NotIn, selection.NotEquals: if !ls.Has(r.key) { return true } return !r.strValues.Has(ls.Get(r.key)) - case ExistsOperator: + case selection.Exists: return ls.Has(r.key) - case DoesNotExistOperator: + case selection.DoesNotExist: return !ls.Has(r.key) - case GreaterThanOperator, LessThanOperator: + case selection.GreaterThan, selection.LessThan: if !ls.Has(r.key) { return false } @@ -202,7 +196,7 @@ func (r *Requirement) Matches(ls Labels) bool { return false } } - return (r.operator == GreaterThanOperator && lsValue > rValue) || (r.operator == LessThanOperator && lsValue < rValue) + return (r.operator == selection.GreaterThan && lsValue > rValue) || (r.operator == selection.LessThan && lsValue < rValue) default: return false } @@ -211,7 +205,7 @@ func (r *Requirement) Matches(ls Labels) bool { func (r *Requirement) Key() string { return r.key } -func (r *Requirement) Operator() Operator { +func (r *Requirement) Operator() selection.Operator { return r.operator } func (r *Requirement) Values() sets.String { @@ -235,32 +229,32 @@ func (lsel internalSelector) Empty() bool { // returned. See NewRequirement for creating a valid Requirement. func (r *Requirement) String() string { var buffer bytes.Buffer - if r.operator == DoesNotExistOperator { + if r.operator == selection.DoesNotExist { buffer.WriteString("!") } buffer.WriteString(r.key) switch r.operator { - case EqualsOperator: + case selection.Equals: buffer.WriteString("=") - case DoubleEqualsOperator: + case selection.DoubleEquals: buffer.WriteString("==") - case NotEqualsOperator: + case selection.NotEquals: buffer.WriteString("!=") - case InOperator: + case selection.In: buffer.WriteString(" in ") - case NotInOperator: + case selection.NotIn: buffer.WriteString(" notin ") - case GreaterThanOperator: + case selection.GreaterThan: buffer.WriteString(">") - case LessThanOperator: + case selection.LessThan: buffer.WriteString("<") - case ExistsOperator, DoesNotExistOperator: + case selection.Exists, selection.DoesNotExist: return buffer.String() } switch r.operator { - case InOperator, NotInOperator: + case selection.In, selection.NotIn: buffer.WriteString("(") } if len(r.strValues) == 1 { @@ -270,7 +264,7 @@ func (r *Requirement) String() string { } switch r.operator { - case InOperator, NotInOperator: + case selection.In, selection.NotIn: buffer.WriteString(")") } return buffer.String() @@ -301,6 +295,8 @@ func (lsel internalSelector) Matches(l Labels) bool { return true } +func (lsel internalSelector) Requirements() (Requirements, bool) { return Requirements(lsel), true } + // String returns a comma-separated string of all // the internalSelector Requirements' human-readable strings. func (lsel internalSelector) String() string { @@ -564,7 +560,7 @@ func (p *Parser) parseRequirement() (*Requirement, error) { if err != nil { return nil, err } - if operator == ExistsOperator || operator == DoesNotExistOperator { // operator found lookahead set checked + if operator == selection.Exists || operator == selection.DoesNotExist { // operator found lookahead set checked return NewRequirement(key, operator, nil) } operator, err = p.parseOperator() @@ -573,9 +569,9 @@ func (p *Parser) parseRequirement() (*Requirement, error) { } var values sets.String switch operator { - case InOperator, NotInOperator: + case selection.In, selection.NotIn: values, err = p.parseValues() - case EqualsOperator, DoubleEqualsOperator, NotEqualsOperator, GreaterThanOperator, LessThanOperator: + case selection.Equals, selection.DoubleEquals, selection.NotEquals, selection.GreaterThan, selection.LessThan: values, err = p.parseExactValue() } if err != nil { @@ -588,11 +584,11 @@ func (p *Parser) parseRequirement() (*Requirement, error) { // parseKeyAndInferOperator parse literals. // in case of no operator '!, in, notin, ==, =, !=' are found // the 'exists' operator is inferred -func (p *Parser) parseKeyAndInferOperator() (string, Operator, error) { - var operator Operator +func (p *Parser) parseKeyAndInferOperator() (string, selection.Operator, error) { + var operator selection.Operator tok, literal := p.consume(Values) if tok == DoesNotExistToken { - operator = DoesNotExistOperator + operator = selection.DoesNotExist tok, literal = p.consume(Values) } if tok != IdentifierToken { @@ -603,8 +599,8 @@ func (p *Parser) parseKeyAndInferOperator() (string, Operator, error) { return "", "", err } if t, _ := p.lookahead(Values); t == EndOfStringToken || t == CommaToken { - if operator != DoesNotExistOperator { - operator = ExistsOperator + if operator != selection.DoesNotExist { + operator = selection.Exists } } return literal, operator, nil @@ -612,24 +608,24 @@ func (p *Parser) parseKeyAndInferOperator() (string, Operator, error) { // parseOperator return operator and eventually matchType // matchType can be exact -func (p *Parser) parseOperator() (op Operator, err error) { +func (p *Parser) parseOperator() (op selection.Operator, err error) { tok, lit := p.consume(KeyAndOperator) switch tok { // DoesNotExistToken shouldn't be here because it's a unary operator, not a binary operator case InToken: - op = InOperator + op = selection.In case EqualsToken: - op = EqualsOperator + op = selection.Equals case DoubleEqualsToken: - op = DoubleEqualsOperator + op = selection.DoubleEquals case GreaterThanToken: - op = GreaterThanOperator + op = selection.GreaterThan case LessThanToken: - op = LessThanOperator + op = selection.LessThan case NotInToken: - op = NotInOperator + op = selection.NotIn case NotEqualsToken: - op = NotEqualsOperator + op = selection.NotEquals default: return "", fmt.Errorf("found '%s', expected: '=', '!=', '==', 'in', notin'", lit) } @@ -788,7 +784,7 @@ func SelectorFromSet(ls Set) Selector { } var requirements internalSelector for label, value := range ls { - if r, err := NewRequirement(label, EqualsOperator, sets.NewString(value)); err != nil { + if r, err := NewRequirement(label, selection.Equals, sets.NewString(value)); err != nil { //TODO: double check errors when input comes from serialization? return internalSelector{} } else { @@ -800,6 +796,22 @@ func SelectorFromSet(ls Set) Selector { return internalSelector(requirements) } +// SelectorFromValidatedSet returns a Selector which will match exactly the given Set. +// A nil and empty Sets are considered equivalent to Everything(). +// It assumes that Set is already validated and doesn't do any validation. +func SelectorFromValidatedSet(ls Set) Selector { + if ls == nil { + return internalSelector{} + } + var requirements internalSelector + for label, value := range ls { + requirements = append(requirements, Requirement{key: label, operator: selection.Equals, strValues: sets.NewString(value)}) + } + // sort to have deterministic string representation + sort.Sort(ByKey(requirements)) + return internalSelector(requirements) +} + // ParseToRequirements takes a string representing a selector and returns a list of // requirements. This function is suitable for those callers that perform additional // processing on selector requirements. diff --git a/1.4/pkg/runtime/codec.go b/1.4/pkg/runtime/codec.go index 9f8ecef4..8577eb61 100644 --- a/1.4/pkg/runtime/codec.go +++ b/1.4/pkg/runtime/codec.go @@ -145,16 +145,16 @@ func (c *parameterCodec) DecodeParameters(parameters url.Values, from unversione } targetGVK := targetGVKs[0] if targetGVK.GroupVersion() == from { - return c.convertor.Convert(¶meters, into) + return c.convertor.Convert(¶meters, into, nil) } input, err := c.creator.New(from.WithKind(targetGVK.Kind)) if err != nil { return err } - if err := c.convertor.Convert(¶meters, input); err != nil { + if err := c.convertor.Convert(¶meters, input, nil); err != nil { return err } - return c.convertor.Convert(input, into) + return c.convertor.Convert(input, into, nil) } // EncodeParameters converts the provided object into the to version, then converts that object to url.Values. @@ -198,3 +198,83 @@ func (s base64Serializer) Decode(data []byte, defaults *unversioned.GroupVersion } return s.Serializer.Decode(out[:n], defaults, into) } + +var ( + // InternalGroupVersioner will always prefer the internal version for a given group version kind. + InternalGroupVersioner GroupVersioner = internalGroupVersioner{} + // DisabledGroupVersioner will reject all kinds passed to it. + DisabledGroupVersioner GroupVersioner = disabledGroupVersioner{} +) + +type internalGroupVersioner struct{} + +// KindForGroupVersionKinds returns an internal Kind if one is found, or converts the first provided kind to the internal version. +func (internalGroupVersioner) KindForGroupVersionKinds(kinds []unversioned.GroupVersionKind) (unversioned.GroupVersionKind, bool) { + for _, kind := range kinds { + if kind.Version == APIVersionInternal { + return kind, true + } + } + for _, kind := range kinds { + return unversioned.GroupVersionKind{Group: kind.Group, Version: APIVersionInternal, Kind: kind.Kind}, true + } + return unversioned.GroupVersionKind{}, false +} + +type disabledGroupVersioner struct{} + +// KindForGroupVersionKinds returns false for any input. +func (disabledGroupVersioner) KindForGroupVersionKinds(kinds []unversioned.GroupVersionKind) (unversioned.GroupVersionKind, bool) { + return unversioned.GroupVersionKind{}, false +} + +// GroupVersioners implements GroupVersioner and resolves to the first exact match for any kind. +type GroupVersioners []GroupVersioner + +// KindForGroupVersionKinds returns the first match of any of the group versioners, or false if no match occured. +func (gvs GroupVersioners) KindForGroupVersionKinds(kinds []unversioned.GroupVersionKind) (unversioned.GroupVersionKind, bool) { + for _, gv := range gvs { + target, ok := gv.KindForGroupVersionKinds(kinds) + if !ok { + continue + } + return target, true + } + return unversioned.GroupVersionKind{}, false +} + +// Assert that unversioned.GroupVersion and GroupVersions implement GroupVersioner +var _ GroupVersioner = unversioned.GroupVersion{} +var _ GroupVersioner = unversioned.GroupVersions{} +var _ GroupVersioner = multiGroupVersioner{} + +type multiGroupVersioner struct { + target unversioned.GroupVersion + acceptedGroupKinds []unversioned.GroupKind +} + +// NewMultiGroupVersioner returns the provided group version for any kind that matches one of the provided group kinds. +// Kind may be empty in the provided group kind, in which case any kind will match. +func NewMultiGroupVersioner(gv unversioned.GroupVersion, groupKinds ...unversioned.GroupKind) GroupVersioner { + if len(groupKinds) == 0 || (len(groupKinds) == 1 && groupKinds[0].Group == gv.Group) { + return gv + } + return multiGroupVersioner{target: gv, acceptedGroupKinds: groupKinds} +} + +// KindForGroupVersionKinds returns the target group version if any kind matches any of the original group kinds. It will +// use the originating kind where possible. +func (v multiGroupVersioner) KindForGroupVersionKinds(kinds []unversioned.GroupVersionKind) (unversioned.GroupVersionKind, bool) { + for _, src := range kinds { + for _, kind := range v.acceptedGroupKinds { + if kind.Group != src.Group { + continue + } + if len(kind.Kind) > 0 && kind.Kind != src.Kind { + continue + } + return v.target.WithKind(src.Kind), true + } + } + return unversioned.GroupVersionKind{}, false +} diff --git a/1.4/pkg/runtime/helper.go b/1.4/pkg/runtime/helper.go index c2cc163a..2e7d8a2e 100644 --- a/1.4/pkg/runtime/helper.go +++ b/1.4/pkg/runtime/helper.go @@ -35,7 +35,7 @@ var _ ObjectConvertor = unsafeObjectConvertor{} // ConvertToVersion converts in to the provided outVersion without copying the input first, which // is only safe if the output object is not mutated or reused. -func (c unsafeObjectConvertor) ConvertToVersion(in Object, outVersion unversioned.GroupVersion) (Object, error) { +func (c unsafeObjectConvertor) ConvertToVersion(in Object, outVersion GroupVersioner) (Object, error) { return c.Scheme.UnsafeConvertToVersion(in, outVersion) } diff --git a/1.4/pkg/runtime/interfaces.go b/1.4/pkg/runtime/interfaces.go index 2a09d2f7..63b30559 100644 --- a/1.4/pkg/runtime/interfaces.go +++ b/1.4/pkg/runtime/interfaces.go @@ -30,12 +30,23 @@ const ( APIVersionInternal = "__internal" ) +// GroupVersioner refines a set of possible conversion targets into a single option. +type GroupVersioner interface { + // KindForGroupVersionKinds returns a desired target group version kind for the given input, or returns ok false if no + // target is known. In general, if the return target is not in the input list, the caller is expected to invoke + // Scheme.New(target) and then perform a conversion between the current Go type and the destination Go type. + // Sophisticated implementations may use additional information about the input kinds to pick a destination kind. + KindForGroupVersionKinds(kinds []unversioned.GroupVersionKind) (target unversioned.GroupVersionKind, ok bool) +} + +// Encoders write objects to a serialized form type Encoder interface { // Encode writes an object to a stream. Implementations may return errors if the versions are // incompatible, or if no conversion is defined. Encode(obj Object, w io.Writer) error } +// Decoders attempt to load an object from data. type Decoder interface { // Decode attempts to deserialize the provided data using either the innate typing of the scheme or the // default kind, group, and version provided. It returns a decoded object as well as the kind, group, and @@ -117,12 +128,10 @@ type NegotiatedSerializer interface { // EncoderForVersion returns an encoder that ensures objects being written to the provided // serializer are in the provided group version. - // TODO: take multiple group versions - EncoderForVersion(serializer Encoder, gv unversioned.GroupVersion) Encoder + EncoderForVersion(serializer Encoder, gv GroupVersioner) Encoder // DecoderForVersion returns a decoder that ensures objects being read by the provided // serializer are in the provided group version by default. - // TODO: take multiple group versions - DecoderToVersion(serializer Decoder, gv unversioned.GroupVersion) Decoder + DecoderToVersion(serializer Decoder, gv GroupVersioner) Decoder } // StorageSerializer is an interface used for obtaining encoders, decoders, and serializers @@ -139,29 +148,41 @@ type StorageSerializer interface { // EncoderForVersion returns an encoder that ensures objects being written to the provided // serializer are in the provided group version. - // TODO: take multiple group versions - EncoderForVersion(serializer Encoder, gv unversioned.GroupVersion) Encoder + EncoderForVersion(serializer Encoder, gv GroupVersioner) Encoder // DecoderForVersion returns a decoder that ensures objects being read by the provided // serializer are in the provided group version by default. - // TODO: take multiple group versions - DecoderToVersion(serializer Decoder, gv unversioned.GroupVersion) Decoder + DecoderToVersion(serializer Decoder, gv GroupVersioner) Decoder +} + +// NestedObjectEncoder is an optional interface that objects may implement to be given +// an opportunity to encode any nested Objects / RawExtensions during serialization. +type NestedObjectEncoder interface { + EncodeNestedObjects(e Encoder) error +} + +// NestedObjectDecoder is an optional interface that objects may implement to be given +// an opportunity to decode any nested Objects / RawExtensions during serialization. +type NestedObjectDecoder interface { + DecodeNestedObjects(d Decoder) error } /////////////////////////////////////////////////////////////////////////////// // Non-codec interfaces type ObjectVersioner interface { - ConvertToVersion(in Object, outVersion unversioned.GroupVersion) (out Object, err error) + ConvertToVersion(in Object, gv GroupVersioner) (out Object, err error) } // ObjectConvertor converts an object to a different version. type ObjectConvertor interface { // Convert attempts to convert one object into another, or returns an error. This method does - // not guarantee the in object is not mutated. - Convert(in, out interface{}) error + // not guarantee the in object is not mutated. The context argument will be passed to + // all nested conversions. + Convert(in, out, context interface{}) error // ConvertToVersion takes the provided object and converts it the provided version. This - // method does not guarantee that the in object is not mutated. - ConvertToVersion(in Object, outVersion unversioned.GroupVersion) (out Object, err error) + // method does not guarantee that the in object is not mutated. This method is similar to + // Convert() but handles specific details of choosing the correct output version. + ConvertToVersion(in Object, gv GroupVersioner) (out Object, err error) ConvertFieldLabel(version, kind, label, value string) (string, string, error) } diff --git a/1.4/pkg/runtime/scheme.go b/1.4/pkg/runtime/scheme.go index 31f1f301..ab690468 100644 --- a/1.4/pkg/runtime/scheme.go +++ b/1.4/pkg/runtime/scheme.go @@ -237,7 +237,7 @@ func (s *Scheme) ObjectKinds(obj Object) ([]unversioned.GroupVersionKind, bool, gvks, ok := s.typeToGVK[t] if !ok { - return nil, false, ¬RegisteredErr{t: t} + return nil, false, NewNotRegisteredErr(unversioned.GroupVersionKind{}, t) } _, unversionedType := s.unversionedTypes[t] @@ -275,7 +275,7 @@ func (s *Scheme) New(kind unversioned.GroupVersionKind) (Object, error) { if t, exists := s.unversionedKinds[kind.Kind]; exists { return reflect.New(t).Interface().(Object), nil } - return nil, ¬RegisteredErr{gvk: kind} + return nil, NewNotRegisteredErr(kind, nil) } // AddGenericConversionFunc adds a function that accepts the ConversionFunc call pattern @@ -438,23 +438,13 @@ func (s *Scheme) DeepCopy(src interface{}) (interface{}, error) { // Convert will attempt to convert in into out. Both must be pointers. For easy // testing of conversion functions. Returns an error if the conversion isn't // possible. You can call this with types that haven't been registered (for example, -// a to test conversion of types that are nested within registered types), but in -// that case, the conversion.Scope object passed to your conversion functions won't -// have SrcVersion or DestVersion fields set correctly in Meta(). -func (s *Scheme) Convert(in, out interface{}) error { - inVersion := unversioned.GroupVersion{Group: "unknown", Version: "unknown"} - outVersion := unversioned.GroupVersion{Group: "unknown", Version: "unknown"} - if inObj, ok := in.(Object); ok { - if gvks, _, err := s.ObjectKinds(inObj); err == nil { - inVersion = gvks[0].GroupVersion() - } - } - if outObj, ok := out.(Object); ok { - if gvks, _, err := s.ObjectKinds(outObj); err == nil { - outVersion = gvks[0].GroupVersion() - } - } - flags, meta := s.generateConvertMeta(inVersion, outVersion, in) +// a to test conversion of types that are nested within registered types). The +// context interface is passed to the convertor. +// TODO: identify whether context should be hidden, or behind a formal context/scope +// interface +func (s *Scheme) Convert(in, out interface{}, context interface{}) error { + flags, meta := s.generateConvertMeta(in) + meta.Context = context if flags == 0 { flags = conversion.AllowDifferentFieldTypeNames } @@ -478,73 +468,20 @@ func (s *Scheme) ConvertFieldLabel(version, kind, label, value string) (string, // version within this scheme. Will return an error if the provided version does not // contain the inKind (or a mapping by name defined with AddKnownTypeWithName). Will also // return an error if the conversion does not result in a valid Object being -// returned. The serializer handles loading/serializing nested objects. -func (s *Scheme) ConvertToVersion(in Object, outVersion unversioned.GroupVersion) (Object, error) { - switch in.(type) { - case *Unknown, *Unstructured, *UnstructuredList: - old := in.GetObjectKind().GroupVersionKind() - defer in.GetObjectKind().SetGroupVersionKind(old) - setTargetVersion(in, s, outVersion) - return in, nil - } - t := reflect.TypeOf(in) - if t.Kind() != reflect.Ptr { - return nil, fmt.Errorf("only pointer types may be converted: %v", t) - } - - t = t.Elem() - if t.Kind() != reflect.Struct { - return nil, fmt.Errorf("only pointers to struct types may be converted: %v", t) - } - - var kind unversioned.GroupVersionKind - if unversionedKind, ok := s.unversionedTypes[t]; ok { - kind = unversionedKind - } else { - kinds, ok := s.typeToGVK[t] - if !ok || len(kinds) == 0 { - return nil, fmt.Errorf("%v is not a registered type and cannot be converted into version %q", t, outVersion) - } - kind = kinds[0] - } - - outKind := outVersion.WithKind(kind.Kind) - - inKinds, _, err := s.ObjectKinds(in) - if err != nil { - return nil, err - } - - out, err := s.New(outKind) - if err != nil { - return nil, err - } - - flags, meta := s.generateConvertMeta(inKinds[0].GroupVersion(), outVersion, in) - if err := s.converter.Convert(in, out, flags, meta); err != nil { - return nil, err - } - - setTargetVersion(out, s, outVersion) - return out, nil +// returned. Passes target down to the conversion methods as the Context on the scope. +func (s *Scheme) ConvertToVersion(in Object, target GroupVersioner) (Object, error) { + return s.convertToVersion(true, in, target) } -// UnsafeConvertToVersion will convert in to the provided outVersion if such a conversion is possible, +// UnsafeConvertToVersion will convert in to the provided target if such a conversion is possible, // but does not guarantee the output object does not share fields with the input object. It attempts to be as // efficient as possible when doing conversion. -func (s *Scheme) UnsafeConvertToVersion(in Object, outVersion unversioned.GroupVersion) (Object, error) { - switch t := in.(type) { - case *Unknown: - t.APIVersion = outVersion.String() - return t, nil - case *Unstructured: - t.SetAPIVersion(outVersion.String()) - return t, nil - case *UnstructuredList: - t.SetAPIVersion(outVersion.String()) - return t, nil - } +func (s *Scheme) UnsafeConvertToVersion(in Object, target GroupVersioner) (Object, error) { + return s.convertToVersion(false, in, target) +} +// convertToVersion handles conversion with an optional copy. +func (s *Scheme) convertToVersion(copy bool, in Object, target GroupVersioner) (Object, error) { // determine the incoming kinds with as few allocations as possible. t := reflect.TypeOf(in) if t.Kind() != reflect.Ptr { @@ -556,64 +493,69 @@ func (s *Scheme) UnsafeConvertToVersion(in Object, outVersion unversioned.GroupV } kinds, ok := s.typeToGVK[t] if !ok || len(kinds) == 0 { - return nil, fmt.Errorf("%v is not a registered type and cannot be converted into version %q", t, outVersion) + return nil, NewNotRegisteredErr(unversioned.GroupVersionKind{}, t) } - // if the Go type is also registered to the destination kind, no conversion is necessary - for i := range kinds { - if kinds[i].Version == outVersion.Version && kinds[i].Group == outVersion.Group { - setTargetKind(in, kinds[i]) - return in, nil + gvk, ok := target.KindForGroupVersionKinds(kinds) + if !ok { + // TODO: should this be a typed error? + return nil, fmt.Errorf("%v is not suitable for converting to %q", t, target) + } + + // target wants to use the existing type, set kind and return (no conversion necessary) + for _, kind := range kinds { + if gvk == kind { + return copyAndSetTargetKind(copy, s, in, gvk) } } // type is unversioned, no conversion necessary - // it should be possible to avoid this allocation if unversionedKind, ok := s.unversionedTypes[t]; ok { - kind := unversionedKind - outKind := outVersion.WithKind(kind.Kind) - setTargetKind(in, outKind) - return in, nil + if gvk, ok := target.KindForGroupVersionKinds([]unversioned.GroupVersionKind{unversionedKind}); ok { + return copyAndSetTargetKind(copy, s, in, gvk) + } + return copyAndSetTargetKind(copy, s, in, unversionedKind) } - // allocate a new object as the target using the target kind - // TODO: this should look in the target group version and find the first kind that matches, rather than the - // first kind registered in typeToGVK - kind := kinds[0] - kind.Version = outVersion.Version - kind.Group = outVersion.Group - out, err := s.New(kind) + out, err := s.New(gvk) if err != nil { return nil, err } - // TODO: try to avoid the allocations here - in fast paths we are not likely to need these flags or meta - flags, meta := s.converter.DefaultMeta(t) + if copy { + copied, err := s.Copy(in) + if err != nil { + return nil, err + } + in = copied + } + + flags, meta := s.generateConvertMeta(in) + meta.Context = target if err := s.converter.Convert(in, out, flags, meta); err != nil { return nil, err } - setTargetKind(out, kind) + setTargetKind(out, gvk) return out, nil } // generateConvertMeta constructs the meta value we pass to Convert. -func (s *Scheme) generateConvertMeta(srcGroupVersion, destGroupVersion unversioned.GroupVersion, in interface{}) (conversion.FieldMatchingFlags, *conversion.Meta) { +func (s *Scheme) generateConvertMeta(in interface{}) (conversion.FieldMatchingFlags, *conversion.Meta) { return s.converter.DefaultMeta(reflect.TypeOf(in)) } -// setTargetVersion is deprecated and should be replaced by use of setTargetKind -func setTargetVersion(obj Object, raw *Scheme, gv unversioned.GroupVersion) { - if gv.Version == APIVersionInternal { - // internal is a special case - obj.GetObjectKind().SetGroupVersionKind(unversioned.GroupVersionKind{}) - return - } - if gvks, _, _ := raw.ObjectKinds(obj); len(gvks) > 0 { - obj.GetObjectKind().SetGroupVersionKind(unversioned.GroupVersionKind{Group: gv.Group, Version: gv.Version, Kind: gvks[0].Kind}) - } else { - obj.GetObjectKind().SetGroupVersionKind(unversioned.GroupVersionKind{Group: gv.Group, Version: gv.Version}) +// copyAndSetTargetKind performs a conditional copy before returning the object, or an error if copy was not successful. +func copyAndSetTargetKind(copy bool, copier ObjectCopier, obj Object, kind unversioned.GroupVersionKind) (Object, error) { + if copy { + copied, err := copier.Copy(obj) + if err != nil { + return nil, err + } + obj = copied } + setTargetKind(obj, kind) + return obj, nil } // setTargetKind sets the kind on an object, taking into account whether the target kind is the internal version. diff --git a/1.4/pkg/runtime/serializer/codec_factory.go b/1.4/pkg/runtime/serializer/codec_factory.go index 6c4a3cf9..d369f515 100644 --- a/1.4/pkg/runtime/serializer/codec_factory.go +++ b/1.4/pkg/runtime/serializer/codec_factory.go @@ -17,8 +17,6 @@ limitations under the License. package serializer import ( - "io" - "k8s.io/client-go/1.4/pkg/api/unversioned" "k8s.io/client-go/1.4/pkg/runtime" "k8s.io/client-go/1.4/pkg/runtime/serializer/json" @@ -188,13 +186,17 @@ func (f CodecFactory) SupportedStreamingMediaTypes() []string { return f.streamingAccepts } -// LegacyCodec encodes output to a given API version, and decodes output into the internal form from -// any recognized source. The returned codec will always encode output to JSON. +// LegacyCodec encodes output to a given API versions, and decodes output into the internal form from +// any recognized source. The returned codec will always encode output to JSON. If a type is not +// found in the list of versions an error will be returned. // // This method is deprecated - clients and servers should negotiate a serializer by mime-type and // invoke CodecForVersions. Callers that need only to read data should use UniversalDecoder(). +// +// TODO: make this call exist only in pkg/api, and initialize it with the set of default versions. +// All other callers will be forced to request a Codec directly. func (f CodecFactory) LegacyCodec(version ...unversioned.GroupVersion) runtime.Codec { - return versioning.NewCodecForScheme(f.scheme, f.legacySerializer, f.universal, version, nil) + return versioning.NewCodecForScheme(f.scheme, f.legacySerializer, f.universal, unversioned.GroupVersions(version), runtime.InternalGroupVersioner) } // UniversalDeserializer can convert any stored data recognized by this factory into a Go object that satisfies @@ -211,25 +213,39 @@ func (f CodecFactory) UniversalDeserializer() runtime.Decoder { // defaulting. // // TODO: the decoder will eventually be removed in favor of dealing with objects in their versioned form +// TODO: only accept a group versioner func (f CodecFactory) UniversalDecoder(versions ...unversioned.GroupVersion) runtime.Decoder { - return f.CodecForVersions(nil, f.universal, nil, versions) + var versioner runtime.GroupVersioner + if len(versions) == 0 { + versioner = runtime.InternalGroupVersioner + } else { + versioner = unversioned.GroupVersions(versions) + } + return f.CodecForVersions(nil, f.universal, nil, versioner) } // CodecForVersions creates a codec with the provided serializer. If an object is decoded and its group is not in the list, // it will default to runtime.APIVersionInternal. If encode is not specified for an object's group, the object is not // converted. If encode or decode are nil, no conversion is performed. -func (f CodecFactory) CodecForVersions(encoder runtime.Encoder, decoder runtime.Decoder, encode []unversioned.GroupVersion, decode []unversioned.GroupVersion) runtime.Codec { +func (f CodecFactory) CodecForVersions(encoder runtime.Encoder, decoder runtime.Decoder, encode runtime.GroupVersioner, decode runtime.GroupVersioner) runtime.Codec { + // TODO: these are for backcompat, remove them in the future + if encode == nil { + encode = runtime.DisabledGroupVersioner + } + if decode == nil { + decode = runtime.InternalGroupVersioner + } return versioning.NewCodecForScheme(f.scheme, encoder, decoder, encode, decode) } // DecoderToVersion returns a decoder that targets the provided group version. -func (f CodecFactory) DecoderToVersion(decoder runtime.Decoder, gv unversioned.GroupVersion) runtime.Decoder { - return f.CodecForVersions(nil, decoder, nil, []unversioned.GroupVersion{gv}) +func (f CodecFactory) DecoderToVersion(decoder runtime.Decoder, gv runtime.GroupVersioner) runtime.Decoder { + return f.CodecForVersions(nil, decoder, nil, gv) } // EncoderForVersion returns an encoder that targets the provided group version. -func (f CodecFactory) EncoderForVersion(encoder runtime.Encoder, gv unversioned.GroupVersion) runtime.Encoder { - return f.CodecForVersions(encoder, nil, []unversioned.GroupVersion{gv}, nil) +func (f CodecFactory) EncoderForVersion(encoder runtime.Encoder, gv runtime.GroupVersioner) runtime.Encoder { + return f.CodecForVersions(encoder, nil, gv, nil) } // SerializerForMediaType returns a serializer that matches the provided RFC2046 mediaType, or false if no such @@ -317,48 +333,16 @@ type DirectCodecFactory struct { } // EncoderForVersion returns an encoder that does not do conversion. gv is ignored. -func (f DirectCodecFactory) EncoderForVersion(serializer runtime.Encoder, gv unversioned.GroupVersion) runtime.Encoder { - return DirectCodec{ - runtime.NewCodec(serializer, nil), - f.CodecFactory.scheme, +func (f DirectCodecFactory) EncoderForVersion(serializer runtime.Encoder, _ runtime.GroupVersioner) runtime.Encoder { + return versioning.DirectEncoder{ + Encoder: serializer, + ObjectTyper: f.CodecFactory.scheme, } } // DecoderToVersion returns an decoder that does not do conversion. gv is ignored. -func (f DirectCodecFactory) DecoderToVersion(serializer runtime.Decoder, gv unversioned.GroupVersion) runtime.Decoder { - return DirectCodec{ - runtime.NewCodec(nil, serializer), - nil, +func (f DirectCodecFactory) DecoderToVersion(serializer runtime.Decoder, _ runtime.GroupVersioner) runtime.Decoder { + return versioning.DirectDecoder{ + Decoder: serializer, } } - -// DirectCodec is a codec that does not do conversion. It sets the gvk during serialization, and removes the gvk during deserialization. -type DirectCodec struct { - runtime.Serializer - runtime.ObjectTyper -} - -// EncodeToStream does not do conversion. It sets the gvk during serialization. overrides are ignored. -func (c DirectCodec) Encode(obj runtime.Object, stream io.Writer) error { - gvks, _, err := c.ObjectTyper.ObjectKinds(obj) - if err != nil { - return err - } - kind := obj.GetObjectKind() - oldGVK := kind.GroupVersionKind() - kind.SetGroupVersionKind(gvks[0]) - err = c.Serializer.Encode(obj, stream) - kind.SetGroupVersionKind(oldGVK) - return err -} - -// Decode does not do conversion. It removes the gvk during deserialization. -func (c DirectCodec) Decode(data []byte, defaults *unversioned.GroupVersionKind, into runtime.Object) (runtime.Object, *unversioned.GroupVersionKind, error) { - obj, gvk, err := c.Serializer.Decode(data, defaults, into) - if obj != nil { - kind := obj.GetObjectKind() - // clearing the gvk is just a convention of a codec - kind.SetGroupVersionKind(unversioned.GroupVersionKind{}) - } - return obj, gvk, err -} diff --git a/1.4/pkg/runtime/serializer/negotiated_codec.go b/1.4/pkg/runtime/serializer/negotiated_codec.go index f4187127..69da948d 100644 --- a/1.4/pkg/runtime/serializer/negotiated_codec.go +++ b/1.4/pkg/runtime/serializer/negotiated_codec.go @@ -17,7 +17,6 @@ limitations under the License. package serializer import ( - "k8s.io/client-go/1.4/pkg/api/unversioned" "k8s.io/client-go/1.4/pkg/runtime" ) @@ -48,10 +47,10 @@ func (n *negotiatedSerializerWrapper) StreamingSerializerForMediaType(mediaType return n.streamInfo, true } -func (n *negotiatedSerializerWrapper) EncoderForVersion(e runtime.Encoder, _ unversioned.GroupVersion) runtime.Encoder { +func (n *negotiatedSerializerWrapper) EncoderForVersion(e runtime.Encoder, _ runtime.GroupVersioner) runtime.Encoder { return e } -func (n *negotiatedSerializerWrapper) DecoderToVersion(d runtime.Decoder, _gv unversioned.GroupVersion) runtime.Decoder { +func (n *negotiatedSerializerWrapper) DecoderToVersion(d runtime.Decoder, _gv runtime.GroupVersioner) runtime.Decoder { return d } diff --git a/1.4/pkg/runtime/serializer/versioning/versioning.go b/1.4/pkg/runtime/serializer/versioning/versioning.go index d6295daf..ed4ff56c 100644 --- a/1.4/pkg/runtime/serializer/versioning/versioning.go +++ b/1.4/pkg/runtime/serializer/versioning/versioning.go @@ -17,59 +17,20 @@ limitations under the License. package versioning import ( - "fmt" "io" "k8s.io/client-go/1.4/pkg/api/unversioned" "k8s.io/client-go/1.4/pkg/runtime" ) -// EnableCrossGroupDecoding modifies the given decoder in place, if it is a codec -// from this package. It allows objects from one group to be auto-decoded into -// another group. 'destGroup' must already exist in the codec. -// TODO: this is an encapsulation violation and should be refactored -func EnableCrossGroupDecoding(d runtime.Decoder, sourceGroup, destGroup string) error { - internal, ok := d.(*codec) - if !ok { - return fmt.Errorf("unsupported decoder type") - } - - dest, ok := internal.decodeVersion[destGroup] - if !ok { - return fmt.Errorf("group %q is not a possible destination group in the given codec", destGroup) - } - internal.decodeVersion[sourceGroup] = dest - - return nil -} - -// EnableCrossGroupEncoding modifies the given encoder in place, if it is a codec -// from this package. It allows objects from one group to be auto-decoded into -// another group. 'destGroup' must already exist in the codec. -// TODO: this is an encapsulation violation and should be refactored -func EnableCrossGroupEncoding(e runtime.Encoder, sourceGroup, destGroup string) error { - internal, ok := e.(*codec) - if !ok { - return fmt.Errorf("unsupported encoder type") - } - - dest, ok := internal.encodeVersion[destGroup] - if !ok { - return fmt.Errorf("group %q is not a possible destination group in the given codec", destGroup) - } - internal.encodeVersion[sourceGroup] = dest - - return nil -} - // NewCodecForScheme is a convenience method for callers that are using a scheme. func NewCodecForScheme( // TODO: I should be a scheme interface? scheme *runtime.Scheme, encoder runtime.Encoder, decoder runtime.Decoder, - encodeVersion []unversioned.GroupVersion, - decodeVersion []unversioned.GroupVersion, + encodeVersion runtime.GroupVersioner, + decodeVersion runtime.GroupVersioner, ) runtime.Codec { return NewCodec(encoder, decoder, runtime.UnsafeObjectConvertor(scheme), scheme, scheme, scheme, encodeVersion, decodeVersion) } @@ -84,8 +45,8 @@ func NewCodec( creater runtime.ObjectCreater, copier runtime.ObjectCopier, typer runtime.ObjectTyper, - encodeVersion []unversioned.GroupVersion, - decodeVersion []unversioned.GroupVersion, + encodeVersion runtime.GroupVersioner, + decodeVersion runtime.GroupVersioner, ) runtime.Codec { internal := &codec{ encoder: encoder, @@ -94,33 +55,10 @@ func NewCodec( creater: creater, copier: copier, typer: typer, - } - if encodeVersion != nil { - internal.encodeVersion = make(map[string]unversioned.GroupVersion) - for _, v := range encodeVersion { - // first one for a group wins. This is consistent with best to worst order throughout the codebase - if _, ok := internal.encodeVersion[v.Group]; ok { - continue - } - internal.encodeVersion[v.Group] = v - } - if len(internal.encodeVersion) == 1 { - for _, v := range internal.encodeVersion { - internal.preferredEncodeVersion = []unversioned.GroupVersion{v} - } - } - } - if decodeVersion != nil { - internal.decodeVersion = make(map[string]unversioned.GroupVersion) - for _, v := range decodeVersion { - // first one for a group wins. This is consistent with best to worst order throughout the codebase - if _, ok := internal.decodeVersion[v.Group]; ok { - continue - } - internal.decodeVersion[v.Group] = v - } - } + encodeVersion: encodeVersion, + decodeVersion: decodeVersion, + } return internal } @@ -132,10 +70,8 @@ type codec struct { copier runtime.ObjectCopier typer runtime.ObjectTyper - encodeVersion map[string]unversioned.GroupVersion - decodeVersion map[string]unversioned.GroupVersion - - preferredEncodeVersion []unversioned.GroupVersion + encodeVersion runtime.GroupVersioner + decodeVersion runtime.GroupVersioner } // Decode attempts a decode of the object, then tries to convert it to the internal version. If into is provided and the decoding is @@ -152,6 +88,12 @@ func (c *codec) Decode(data []byte, defaultGVK *unversioned.GroupVersionKind, in return nil, gvk, err } + if d, ok := obj.(runtime.NestedObjectDecoder); ok { + if err := d.DecodeNestedObjects(DirectDecoder{c.decoder}); err != nil { + return nil, gvk, err + } + } + // if we specify a target, use generic conversion. if into != nil { if into == obj { @@ -160,7 +102,7 @@ func (c *codec) Decode(data []byte, defaultGVK *unversioned.GroupVersionKind, in } return into, gvk, nil } - if err := c.convertor.Convert(obj, into); err != nil { + if err := c.convertor.Convert(obj, into, c.decodeVersion); err != nil { return nil, gvk, err } if isVersioned { @@ -170,37 +112,7 @@ func (c *codec) Decode(data []byte, defaultGVK *unversioned.GroupVersionKind, in return into, gvk, nil } - // invoke a version conversion - group := gvk.Group - if defaultGVK != nil { - group = defaultGVK.Group - } - var targetGV unversioned.GroupVersion - if c.decodeVersion == nil { - // convert to internal by default - targetGV.Group = group - targetGV.Version = runtime.APIVersionInternal - } else { - gv, ok := c.decodeVersion[group] - if !ok { - // unknown objects are left in their original version - if isVersioned { - versioned.Objects = []runtime.Object{obj} - return versioned, gvk, nil - } - return obj, gvk, nil - } - targetGV = gv - } - - if gvk.GroupVersion() == targetGV { - if isVersioned { - versioned.Objects = []runtime.Object{obj} - return versioned, gvk, nil - } - return obj, gvk, nil - } - + // Convert if needed. if isVersioned { // create a copy, because ConvertToVersion does not guarantee non-mutation of objects copied, err := c.copier.Copy(obj) @@ -209,14 +121,14 @@ func (c *codec) Decode(data []byte, defaultGVK *unversioned.GroupVersionKind, in } versioned.Objects = []runtime.Object{copied} } - - // Convert if needed. - out, err := c.convertor.ConvertToVersion(obj, targetGV) + out, err := c.convertor.ConvertToVersion(obj, c.decodeVersion) if err != nil { return nil, gvk, err } if isVersioned { - versioned.Objects = append(versioned.Objects, out) + if versioned.Last() != out { + versioned.Objects = append(versioned.Objects, out) + } return versioned, gvk, nil } return out, gvk, nil @@ -225,51 +137,86 @@ func (c *codec) Decode(data []byte, defaultGVK *unversioned.GroupVersionKind, in // Encode ensures the provided object is output in the appropriate group and version, invoking // conversion if necessary. Unversioned objects (according to the ObjectTyper) are output as is. func (c *codec) Encode(obj runtime.Object, w io.Writer) error { - if _, ok := obj.(*runtime.Unknown); ok { + switch obj.(type) { + case *runtime.Unknown, *runtime.Unstructured, *runtime.UnstructuredList: return c.encoder.Encode(obj, w) } + gvks, isUnversioned, err := c.typer.ObjectKinds(obj) if err != nil { return err } - gvk := gvks[0] if c.encodeVersion == nil || isUnversioned { + if e, ok := obj.(runtime.NestedObjectEncoder); ok { + if err := e.EncodeNestedObjects(DirectEncoder{Encoder: c.encoder, ObjectTyper: c.typer}); err != nil { + return err + } + } objectKind := obj.GetObjectKind() old := objectKind.GroupVersionKind() - objectKind.SetGroupVersionKind(gvk) + objectKind.SetGroupVersionKind(gvks[0]) err = c.encoder.Encode(obj, w) objectKind.SetGroupVersionKind(old) return err } - targetGV, ok := c.encodeVersion[gvk.Group] - - // attempt a conversion to the sole encode version - if !ok && c.preferredEncodeVersion != nil { - ok = true - targetGV = c.preferredEncodeVersion[0] - } - - // if no fallback is available, error - if !ok { - return fmt.Errorf("the codec does not recognize group %q for kind %q and cannot encode it", gvk.Group, gvk.Kind) - } - // Perform a conversion if necessary objectKind := obj.GetObjectKind() old := objectKind.GroupVersionKind() - out, err := c.convertor.ConvertToVersion(obj, targetGV) + out, err := c.convertor.ConvertToVersion(obj, c.encodeVersion) if err != nil { - if ok { + return err + } + + if e, ok := out.(runtime.NestedObjectEncoder); ok { + if err := e.EncodeNestedObjects(DirectEncoder{Encoder: c.encoder, ObjectTyper: c.typer}); err != nil { return err } - } else { - obj = out } + // Conversion is responsible for setting the proper group, version, and kind onto the outgoing object - err = c.encoder.Encode(obj, w) + err = c.encoder.Encode(out, w) // restore the old GVK, in case conversion returned the same object objectKind.SetGroupVersionKind(old) return err } + +// DirectEncoder serializes an object and ensures the GVK is set. +type DirectEncoder struct { + runtime.Encoder + runtime.ObjectTyper +} + +// Encode does not do conversion. It sets the gvk during serialization. +func (e DirectEncoder) Encode(obj runtime.Object, stream io.Writer) error { + gvks, _, err := e.ObjectTyper.ObjectKinds(obj) + if err != nil { + if runtime.IsNotRegisteredError(err) { + return e.Encoder.Encode(obj, stream) + } + return err + } + kind := obj.GetObjectKind() + oldGVK := kind.GroupVersionKind() + kind.SetGroupVersionKind(gvks[0]) + err = e.Encoder.Encode(obj, stream) + kind.SetGroupVersionKind(oldGVK) + return err +} + +// DirectDecoder clears the group version kind of a deserialized object. +type DirectDecoder struct { + runtime.Decoder +} + +// Decode does not do conversion. It removes the gvk during deserialization. +func (d DirectDecoder) Decode(data []byte, defaults *unversioned.GroupVersionKind, into runtime.Object) (runtime.Object, *unversioned.GroupVersionKind, error) { + obj, gvk, err := d.Decoder.Decode(data, defaults, into) + if obj != nil { + kind := obj.GetObjectKind() + // clearing the gvk is just a convention of a codec + kind.SetGroupVersionKind(unversioned.GroupVersionKind{}) + } + return obj, gvk, err +} diff --git a/1.4/pkg/runtime/types.go b/1.4/pkg/runtime/types.go index 0b63056a..2916b18b 100644 --- a/1.4/pkg/runtime/types.go +++ b/1.4/pkg/runtime/types.go @@ -17,6 +17,7 @@ limitations under the License. package runtime import ( + "bytes" "fmt" "github.com/golang/glog" @@ -138,6 +139,21 @@ type Unstructured struct { Object map[string]interface{} } +// MarshalJSON ensures that the unstructured object produces proper +// JSON when passed to Go's standard JSON library. +func (u *Unstructured) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + err := UnstructuredJSONScheme.Encode(u, &buf) + return buf.Bytes(), err +} + +// UnmarshalJSON ensures that the unstructured object properly decodes +// JSON when passed to Go's standard JSON library. +func (u *Unstructured) UnmarshalJSON(b []byte) error { + _, _, err := UnstructuredJSONScheme.Decode(b, nil, u) + return err +} + func getNestedField(obj map[string]interface{}, fields ...string) interface{} { var val interface{} = obj for _, field := range fields { @@ -440,6 +456,14 @@ func (u *Unstructured) SetFinalizers(finalizers []string) { u.setNestedSlice(finalizers, "metadata", "finalizers") } +func (u *Unstructured) GetClusterName() string { + return getNestedString(u.Object, "metadata", "clusterName") +} + +func (u *Unstructured) SetClusterName(clusterName string) { + u.setNestedField(clusterName, "metadata", "clusterName") +} + // UnstructuredList allows lists that do not have Golang structs // registered to be manipulated generically. This can be used to deal // with the API lists from a plug-in. @@ -450,6 +474,21 @@ type UnstructuredList struct { Items []*Unstructured `json:"items"` } +// MarshalJSON ensures that the unstructured list object produces proper +// JSON when passed to Go's standard JSON library. +func (u *UnstructuredList) MarshalJSON() ([]byte, error) { + var buf bytes.Buffer + err := UnstructuredJSONScheme.Encode(u, &buf) + return buf.Bytes(), err +} + +// UnmarshalJSON ensures that the unstructured list object properly +// decodes JSON when passed to Go's standard JSON library. +func (u *UnstructuredList) UnmarshalJSON(b []byte) error { + _, _, err := UnstructuredJSONScheme.Decode(b, nil, u) + return err +} + func (u *UnstructuredList) setNestedField(value interface{}, fields ...string) { if u.Object == nil { u.Object = make(map[string]interface{}) diff --git a/1.4/pkg/runtime/unstructured.go b/1.4/pkg/runtime/unstructured.go index 9c9018a6..47b4eb05 100644 --- a/1.4/pkg/runtime/unstructured.go +++ b/1.4/pkg/runtime/unstructured.go @@ -103,10 +103,9 @@ func (s unstructuredJSONScheme) decodeInto(data []byte, obj Object) error { case *UnstructuredList: return s.decodeToList(data, x) case *VersionedObjects: - u := new(Unstructured) - err := s.decodeToUnstructured(data, u) + o, err := s.decode(data) if err == nil { - x.Objects = []Object{u} + x.Objects = []Object{o} } return err default: @@ -169,7 +168,7 @@ func (s unstructuredJSONScheme) decodeToList(data []byte, list *UnstructuredList // sane implementation for APIs that require an object converter. type UnstructuredObjectConverter struct{} -func (UnstructuredObjectConverter) Convert(in, out interface{}) error { +func (UnstructuredObjectConverter) Convert(in, out, context interface{}) error { unstructIn, ok := in.(*Unstructured) if !ok { return fmt.Errorf("input type %T in not valid for unstructured conversion", in) @@ -188,9 +187,14 @@ func (UnstructuredObjectConverter) Convert(in, out interface{}) error { return nil } -func (UnstructuredObjectConverter) ConvertToVersion(in Object, outVersion unversioned.GroupVersion) (Object, error) { - if gvk := in.GetObjectKind().GroupVersionKind(); gvk.GroupVersion() != outVersion { - return nil, errors.New("unstructured converter cannot convert versions") +func (UnstructuredObjectConverter) ConvertToVersion(in Object, target GroupVersioner) (Object, error) { + if kind := in.GetObjectKind().GroupVersionKind(); !kind.Empty() { + gvk, ok := target.KindForGroupVersionKinds([]unversioned.GroupVersionKind{kind}) + if !ok { + // TODO: should this be a typed error? + return nil, fmt.Errorf("%v is unstructured and is not suitable for converting to %q", kind, target) + } + in.GetObjectKind().SetGroupVersionKind(gvk) } return in, nil } diff --git a/1.4/pkg/security/apparmor/helpers.go b/1.4/pkg/security/apparmor/helpers.go new file mode 100644 index 00000000..8cf5c93b --- /dev/null +++ b/1.4/pkg/security/apparmor/helpers.go @@ -0,0 +1,62 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package apparmor + +import ( + "strings" + + "k8s.io/client-go/1.4/pkg/api" +) + +// TODO: Move these values into the API package. +const ( + // The prefix to an annotation key specifying a container profile. + ContainerAnnotationKeyPrefix = "container.apparmor.security.beta.kubernetes.io/" + // The annotation key specifying the default AppArmor profile. + DefaultProfileAnnotationKey = "apparmor.security.beta.kubernetes.io/defaultProfileName" + // The annotation key specifying the allowed AppArmor profiles. + AllowedProfilesAnnotationKey = "apparmor.security.beta.kubernetes.io/allowedProfileNames" + + // The profile specifying the runtime default. + ProfileRuntimeDefault = "runtime/default" + // The prefix for specifying profiles loaded on the node. + ProfileNamePrefix = "localhost/" +) + +// Checks whether app armor is required for pod to be run. +func isRequired(pod *api.Pod) bool { + for key := range pod.Annotations { + if strings.HasPrefix(key, ContainerAnnotationKeyPrefix) { + return true + } + } + return false +} + +// Returns the name of the profile to use with the container. +func GetProfileName(pod *api.Pod, containerName string) string { + return pod.Annotations[ContainerAnnotationKeyPrefix+containerName] +} + +// Sets the name of the profile to use with the container. +func SetProfileName(pod *api.Pod, containerName, profileName string) error { + if pod.Annotations == nil { + pod.Annotations = map[string]string{} + } + pod.Annotations[ContainerAnnotationKeyPrefix+containerName] = profileName + return nil +} diff --git a/1.4/pkg/security/apparmor/validate.go b/1.4/pkg/security/apparmor/validate.go new file mode 100644 index 00000000..38dbbf80 --- /dev/null +++ b/1.4/pkg/security/apparmor/validate.go @@ -0,0 +1,222 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package apparmor + +import ( + "bufio" + "errors" + "fmt" + "io/ioutil" + "os" + "path" + "strings" + + "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/util" + utilconfig "k8s.io/client-go/1.4/pkg/util/config" +) + +// Whether AppArmor should be disabled by default. +// Set to true if the wrong build tags are set (see validate_disabled.go). +var isDisabledBuild bool + +// Interface for validating that a pod with with an AppArmor profile can be run by a Node. +type Validator interface { + Validate(pod *api.Pod) error +} + +func NewValidator(runtime string) Validator { + if err := validateHost(runtime); err != nil { + return &validator{validateHostErr: err} + } + appArmorFS, err := getAppArmorFS() + if err != nil { + return &validator{ + validateHostErr: fmt.Errorf("error finding AppArmor FS: %v", err), + } + } + return &validator{ + appArmorFS: appArmorFS, + } +} + +type validator struct { + validateHostErr error + appArmorFS string +} + +func (v *validator) Validate(pod *api.Pod) error { + if !isRequired(pod) { + return nil + } + + if v.validateHostErr != nil { + return v.validateHostErr + } + + loadedProfiles, err := v.getLoadedProfiles() + if err != nil { + return fmt.Errorf("could not read loaded profiles: %v", err) + } + + for _, container := range pod.Spec.InitContainers { + if err := validateProfile(GetProfileName(pod, container.Name), loadedProfiles); err != nil { + return err + } + } + for _, container := range pod.Spec.Containers { + if err := validateProfile(GetProfileName(pod, container.Name), loadedProfiles); err != nil { + return err + } + } + + return nil +} + +// Verify that the host and runtime is capable of enforcing AppArmor profiles. +func validateHost(runtime string) error { + // Check feature-gates + if !utilconfig.DefaultFeatureGate.AppArmor() { + return errors.New("AppArmor disabled by feature-gate") + } + + // Check build support. + if isDisabledBuild { + return errors.New("Binary not compiled for linux") + } + + // Check kernel support. + if !IsAppArmorEnabled() { + return errors.New("AppArmor is not enabled on the host") + } + + // Check runtime support. Currently only Docker is supported. + if runtime != "docker" { + return fmt.Errorf("AppArmor is only enabled for 'docker' runtime. Found: %q.", runtime) + } + + return nil +} + +// Verify that the profile is valid and loaded. +func validateProfile(profile string, loadedProfiles map[string]bool) error { + if err := ValidateProfileFormat(profile); err != nil { + return err + } + + if strings.HasPrefix(profile, ProfileNamePrefix) { + profileName := strings.TrimPrefix(profile, ProfileNamePrefix) + if !loadedProfiles[profileName] { + return fmt.Errorf("profile %q is not loaded", profileName) + } + } + + return nil +} + +func ValidateProfileFormat(profile string) error { + if profile == "" || profile == ProfileRuntimeDefault { + return nil + } + if !strings.HasPrefix(profile, ProfileNamePrefix) { + return fmt.Errorf("invalid AppArmor profile name: %q", profile) + } + return nil +} + +func (v *validator) getLoadedProfiles() (map[string]bool, error) { + profilesPath := path.Join(v.appArmorFS, "profiles") + profilesFile, err := os.Open(profilesPath) + if err != nil { + return nil, fmt.Errorf("failed to open %s: %v", profilesPath, err) + } + defer profilesFile.Close() + + profiles := map[string]bool{} + scanner := bufio.NewScanner(profilesFile) + for scanner.Scan() { + profileName := parseProfileName(scanner.Text()) + if profileName == "" { + // Unknown line format; skip it. + continue + } + profiles[profileName] = true + } + return profiles, nil +} + +// The profiles file is formatted with one profile per line, matching a form: +// namespace://profile-name (mode) +// profile-name (mode) +// Where mode is {enforce, complain, kill}. The "namespace://" is only included for namespaced +// profiles. For the purposes of Kubernetes, we consider the namespace part of the profile name. +func parseProfileName(profileLine string) string { + modeIndex := strings.IndexRune(profileLine, '(') + if modeIndex < 0 { + return "" + } + return strings.TrimSpace(profileLine[:modeIndex]) +} + +func getAppArmorFS() (string, error) { + mountsFile, err := os.Open("/proc/mounts") + if err != nil { + return "", fmt.Errorf("could not open /proc/mounts: %v", err) + } + defer mountsFile.Close() + + scanner := bufio.NewScanner(mountsFile) + for scanner.Scan() { + fields := strings.Fields(scanner.Text()) + if len(fields) < 3 { + // Unknown line format; skip it. + continue + } + if fields[2] == "securityfs" { + appArmorFS := path.Join(fields[1], "apparmor") + if ok, err := util.FileExists(appArmorFS); !ok { + msg := fmt.Sprintf("path %s does not exist", appArmorFS) + if err != nil { + return "", fmt.Errorf("%s: %v", msg, err) + } else { + return "", errors.New(msg) + } + } else { + return appArmorFS, nil + } + } + } + if err := scanner.Err(); err != nil { + return "", fmt.Errorf("error scanning mounts: %v", err) + } + + return "", errors.New("securityfs not found") +} + +// IsAppArmorEnabled returns true if apparmor is enabled for the host. +// This function is forked from +// https://github.com/opencontainers/runc/blob/1a81e9ab1f138c091fe5c86d0883f87716088527/libcontainer/apparmor/apparmor.go +// to avoid the libapparmor dependency. +func IsAppArmorEnabled() bool { + if _, err := os.Stat("/sys/kernel/security/apparmor"); err == nil && os.Getenv("container") == "" { + if _, err = os.Stat("/sbin/apparmor_parser"); err == nil { + buf, err := ioutil.ReadFile("/sys/module/apparmor/parameters/enabled") + return err == nil && len(buf) > 1 && buf[0] == 'Y' + } + } + return false +} diff --git a/1.4/pkg/security/apparmor/validate_disabled.go b/1.4/pkg/security/apparmor/validate_disabled.go new file mode 100644 index 00000000..875054a9 --- /dev/null +++ b/1.4/pkg/security/apparmor/validate_disabled.go @@ -0,0 +1,24 @@ +// +build !linux + +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package apparmor + +func init() { + // If Kubernetes was not built for linux, apparmor is always disabled. + isDisabledBuild = true +} diff --git a/1.4/pkg/selection/operator.go b/1.4/pkg/selection/operator.go new file mode 100644 index 00000000..298f798c --- /dev/null +++ b/1.4/pkg/selection/operator.go @@ -0,0 +1,33 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package selection + +// Operator represents a key/field's relationship to value(s). +// See labels.Requirement and fields.Requirement for more details. +type Operator string + +const ( + DoesNotExist Operator = "!" + Equals Operator = "=" + DoubleEquals Operator = "==" + In Operator = "in" + NotEquals Operator = "!=" + NotIn Operator = "notin" + Exists Operator = "exists" + GreaterThan Operator = "gt" + LessThan Operator = "lt" +) diff --git a/1.4/pkg/types/namespacedname.go b/1.4/pkg/types/namespacedname.go index 70a9ac3e..1e2130da 100644 --- a/1.4/pkg/types/namespacedname.go +++ b/1.4/pkg/types/namespacedname.go @@ -16,6 +16,11 @@ limitations under the License. package types +import ( + "fmt" + "strings" +) + // NamespacedName comprises a resource name, with a mandatory namespace, // rendered as "/". Being a type captures intent and // helps make sure that UIDs, namespaced names and non-namespaced names @@ -29,7 +34,27 @@ type NamespacedName struct { Name string } +const ( + Separator = '/' +) + // String returns the general purpose string representation func (n NamespacedName) String() string { - return n.Namespace + "/" + n.Name + return fmt.Sprintf("%s%c%s", n.Namespace, Separator, n.Name) +} + +// NewNamespacedNameFromString parses the provided string and returns a NamespacedName. +// The expected format is as per String() above. +// If the input string is invalid, the returned NamespacedName has all empty string field values. +// This allows a single-value return from this function, while still allowing error checks in the caller. +// Note that an input string which does not include exactly one Separator is not a valid input (as it could never +// have neem returned by String() ) +func NewNamespacedNameFromString(s string) NamespacedName { + nn := NamespacedName{} + result := strings.Split(s, string(Separator)) + if len(result) == 2 { + nn.Namespace = result[0] + nn.Name = result[1] + } + return nn } diff --git a/1.4/pkg/util/config/feature_gate.go b/1.4/pkg/util/config/feature_gate.go new file mode 100644 index 00000000..3daf48ce --- /dev/null +++ b/1.4/pkg/util/config/feature_gate.go @@ -0,0 +1,222 @@ +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package config + +import ( + "fmt" + "sort" + "strconv" + "strings" + + "github.com/golang/glog" + "github.com/spf13/pflag" +) + +const ( + flagName = "feature-gates" + + // All known feature keys + // To add a new feature, define a key for it below and add + // a featureSpec entry to knownFeatures. + + // allAlphaGate is a global toggle for alpha features. Per-feature key + // values override the default set by allAlphaGate. Examples: + // AllAlpha=false,NewFeature=true will result in newFeature=true + // AllAlpha=true,NewFeature=false will result in newFeature=false + allAlphaGate = "AllAlpha" + externalTrafficLocalOnly = "AllowExtTrafficLocalEndpoints" + appArmor = "AppArmor" + dynamicKubeletConfig = "DynamicKubeletConfig" + dynamicVolumeProvisioning = "DynamicVolumeProvisioning" +) + +var ( + // Default values for recorded features. Every new feature gate should be + // represented here. + knownFeatures = map[string]featureSpec{ + allAlphaGate: {false, alpha}, + externalTrafficLocalOnly: {false, alpha}, + appArmor: {true, alpha}, + dynamicKubeletConfig: {false, alpha}, + dynamicVolumeProvisioning: {true, alpha}, + } + + // Special handling for a few gates. + specialFeatures = map[string]func(f *featureGate, val bool){ + allAlphaGate: setUnsetAlphaGates, + } + + // DefaultFeatureGate is a shared global FeatureGate. + DefaultFeatureGate = &featureGate{ + known: knownFeatures, + special: specialFeatures, + } +) + +type featureSpec struct { + enabled bool + prerelease prerelease +} + +type prerelease string + +const ( + // Values for prerelease. + alpha = prerelease("ALPHA") + beta = prerelease("BETA") + ga = prerelease("") +) + +// FeatureGate parses and stores flag gates for known features from +// a string like feature1=true,feature2=false,... +type FeatureGate interface { + AddFlag(fs *pflag.FlagSet) + + // Every feature gate should add method here following this template: + // + // // owner: @username + // // alpha: v1.4 + // MyFeature() bool + + // owner: @timstclair + // alpha: v1.4 + AppArmor() bool + + // owner: @girishkalele + // alpha: v1.4 + ExternalTrafficLocalOnly() bool + + // owner: @saad-ali + // alpha: v1.3 + DynamicVolumeProvisioning() bool + + // owner: mtaufen + // alpha: v1.4 + DynamicKubeletConfig() bool +} + +// featureGate implements FeatureGate as well as pflag.Value for flag parsing. +type featureGate struct { + known map[string]featureSpec + special map[string]func(*featureGate, bool) + enabled map[string]bool +} + +func setUnsetAlphaGates(f *featureGate, val bool) { + for k, v := range f.known { + if v.prerelease == alpha { + if _, found := f.enabled[k]; !found { + f.enabled[k] = val + } + } + } +} + +// Set, String, and Type implement pflag.Value + +// Set Parses a string of the form // "key1=value1,key2=value2,..." into a +// map[string]bool of known keys or returns an error. +func (f *featureGate) Set(value string) error { + f.enabled = make(map[string]bool) + for _, s := range strings.Split(value, ",") { + if len(s) == 0 { + continue + } + arr := strings.SplitN(s, "=", 2) + k := strings.TrimSpace(arr[0]) + _, ok := f.known[k] + if !ok { + return fmt.Errorf("unrecognized key: %s", k) + } + if len(arr) != 2 { + return fmt.Errorf("missing bool value for %s", k) + } + v := strings.TrimSpace(arr[1]) + boolValue, err := strconv.ParseBool(v) + if err != nil { + return fmt.Errorf("invalid value of %s: %s, err: %v", k, v, err) + } + f.enabled[k] = boolValue + + // Handle "special" features like "all alpha gates" + if fn, found := f.special[k]; found { + fn(f, boolValue) + } + } + + glog.Infof("feature gates: %v", f.enabled) + return nil +} + +func (f *featureGate) String() string { + pairs := []string{} + for k, v := range f.enabled { + pairs = append(pairs, fmt.Sprintf("%s=%t", k, v)) + } + sort.Strings(pairs) + return strings.Join(pairs, ",") +} + +func (f *featureGate) Type() string { + return "mapStringBool" +} + +// ExternalTrafficLocalOnly returns value for AllowExtTrafficLocalEndpoints +func (f *featureGate) ExternalTrafficLocalOnly() bool { + return f.lookup(externalTrafficLocalOnly) +} + +// AppArmor returns the value for the AppArmor feature gate. +func (f *featureGate) AppArmor() bool { + return f.lookup(appArmor) +} + +// DynamicKubeletConfig returns value for dynamicKubeletConfig +func (f *featureGate) DynamicKubeletConfig() bool { + return f.lookup(dynamicKubeletConfig) +} + +// DynamicVolumeProvisioning returns value for dynamicVolumeProvisioning +func (f *featureGate) DynamicVolumeProvisioning() bool { + return f.lookup(dynamicVolumeProvisioning) +} + +func (f *featureGate) lookup(key string) bool { + defaultValue := f.known[key].enabled + if f.enabled != nil { + if v, ok := f.enabled[key]; ok { + return v + } + } + return defaultValue + +} + +// AddFlag adds a flag for setting global feature gates to the specified FlagSet. +func (f *featureGate) AddFlag(fs *pflag.FlagSet) { + var known []string + for k, v := range f.known { + pre := "" + if v.prerelease != ga { + pre = fmt.Sprintf("%s - ", v.prerelease) + } + known = append(known, fmt.Sprintf("%s=true|false (%sdefault=%t)", k, pre, v.enabled)) + } + fs.Var(f, flagName, ""+ + "A set of key=value pairs that describe feature gates for alpha/experimental features. "+ + "Options are:\n"+strings.Join(known, "\n")) +} diff --git a/1.4/pkg/util/crypto/crypto.go b/1.4/pkg/util/crypto/crypto.go index b573c8a5..7e926450 100644 --- a/1.4/pkg/util/crypto/crypto.go +++ b/1.4/pkg/util/crypto/crypto.go @@ -33,14 +33,14 @@ import ( "time" ) -// ShouldGenSelfSignedCerts returns false if the certificate or key files already exists, -// otherwise returns true. -func ShouldGenSelfSignedCerts(certPath, keyPath string) bool { +// FoundCertOrKey returns true if the certificate or key files already exists, +// otherwise returns false. +func FoundCertOrKey(certPath, keyPath string) bool { if canReadFile(certPath) || canReadFile(keyPath) { - return false + return true } - return true + return false } // If the file represented by path exists and @@ -109,24 +109,46 @@ func GenerateSelfSignedCert(host, certPath, keyPath string, alternateIPs []net.I } // Write cert - if err := os.MkdirAll(filepath.Dir(certPath), os.FileMode(0755)); err != nil { - return err - } - if err := ioutil.WriteFile(certPath, certBuffer.Bytes(), os.FileMode(0644)); err != nil { + if err := WriteCertToPath(certPath, certBuffer.Bytes()); err != nil { return err } // Write key - if err := os.MkdirAll(filepath.Dir(keyPath), os.FileMode(0755)); err != nil { - return err - } - if err := ioutil.WriteFile(keyPath, keyBuffer.Bytes(), os.FileMode(0600)); err != nil { + if err := WriteKeyToPath(keyPath, keyBuffer.Bytes()); err != nil { return err } return nil } +// WriteCertToPath writes the pem-encoded certificate data to certPath. +// The certificate file will be created with file mode 0644. +// If the certificate file already exists, it will be overwritten. +// The parent directory of the certPath will be created as needed with file mode 0755. +func WriteCertToPath(certPath string, data []byte) error { + if err := os.MkdirAll(filepath.Dir(certPath), os.FileMode(0755)); err != nil { + return err + } + if err := ioutil.WriteFile(certPath, data, os.FileMode(0644)); err != nil { + return err + } + return nil +} + +// WriteKeyToPath writes the pem-encoded key data to keyPath. +// The key file will be created with file mode 0600. +// If the key file already exists, it will be overwritten. +// The parent directory of the keyPath will be created as needed with file mode 0755. +func WriteKeyToPath(keyPath string, data []byte) error { + if err := os.MkdirAll(filepath.Dir(keyPath), os.FileMode(0755)); err != nil { + return err + } + if err := ioutil.WriteFile(keyPath, data, os.FileMode(0600)); err != nil { + return err + } + return nil +} + // CertPoolFromFile returns an x509.CertPool containing the certificates in the given PEM-encoded file. // Returns an error if the file could not be read, a certificate could not be parsed, or if the file does not contain any certificates func CertPoolFromFile(filename string) (*x509.CertPool, error) { diff --git a/1.4/pkg/util/sets/byte.go b/1.4/pkg/util/sets/byte.go index 45f5d4f6..3d6d0dfe 100644 --- a/1.4/pkg/util/sets/byte.go +++ b/1.4/pkg/util/sets/byte.go @@ -174,6 +174,15 @@ func (s Byte) List() []byte { return []byte(res) } +// UnsortedList returns the slice with contents in random order. +func (s Byte) UnsortedList() []byte { + res := make([]byte, 0, len(s)) + for key := range s { + res = append(res, key) + } + return res +} + // Returns a single element from the set. func (s Byte) PopAny() (byte, bool) { for key := range s { diff --git a/1.4/pkg/util/sets/int.go b/1.4/pkg/util/sets/int.go index 4b8c331b..6d32f84c 100644 --- a/1.4/pkg/util/sets/int.go +++ b/1.4/pkg/util/sets/int.go @@ -174,6 +174,15 @@ func (s Int) List() []int { return []int(res) } +// UnsortedList returns the slice with contents in random order. +func (s Int) UnsortedList() []int { + res := make([]int, 0, len(s)) + for key := range s { + res = append(res, key) + } + return res +} + // Returns a single element from the set. func (s Int) PopAny() (int, bool) { for key := range s { diff --git a/1.4/pkg/util/sets/int64.go b/1.4/pkg/util/sets/int64.go index b6a97e70..1de18319 100644 --- a/1.4/pkg/util/sets/int64.go +++ b/1.4/pkg/util/sets/int64.go @@ -174,6 +174,15 @@ func (s Int64) List() []int64 { return []int64(res) } +// UnsortedList returns the slice with contents in random order. +func (s Int64) UnsortedList() []int64 { + res := make([]int64, 0, len(s)) + for key := range s { + res = append(res, key) + } + return res +} + // Returns a single element from the set. func (s Int64) PopAny() (int64, bool) { for key := range s { diff --git a/1.4/pkg/util/sets/string.go b/1.4/pkg/util/sets/string.go index 2094b320..da66eaf8 100644 --- a/1.4/pkg/util/sets/string.go +++ b/1.4/pkg/util/sets/string.go @@ -174,6 +174,15 @@ func (s String) List() []string { return []string(res) } +// UnsortedList returns the slice with contents in random order. +func (s String) UnsortedList() []string { + res := make([]string, 0, len(s)) + for key := range s { + res = append(res, key) + } + return res +} + // Returns a single element from the set. func (s String) PopAny() (string, bool) { for key := range s { diff --git a/1.4/pkg/util/yaml/decoder.go b/1.4/pkg/util/yaml/decoder.go index 6a9f05a5..c65c2d6b 100644 --- a/1.4/pkg/util/yaml/decoder.go +++ b/1.4/pkg/util/yaml/decoder.go @@ -45,7 +45,7 @@ func ToJSON(data []byte) ([]byte, error) { // separating individual documents. It first converts the YAML // body to JSON, then unmarshals the JSON. type YAMLToJSONDecoder struct { - scanner *bufio.Scanner + reader Reader } // NewYAMLToJSONDecoder decodes YAML documents from the provided @@ -53,10 +53,9 @@ type YAMLToJSONDecoder struct { // the YAML spec) into its own chunk, converting it to JSON via // yaml.YAMLToJSON, and then passing it to json.Decoder. func NewYAMLToJSONDecoder(r io.Reader) *YAMLToJSONDecoder { - scanner := bufio.NewScanner(r) - scanner.Split(splitYAMLDocument) + reader := bufio.NewReader(r) return &YAMLToJSONDecoder{ - scanner: scanner, + reader: NewYAMLReader(reader), } } @@ -64,17 +63,18 @@ func NewYAMLToJSONDecoder(r io.Reader) *YAMLToJSONDecoder { // an error. The decoding rules match json.Unmarshal, not // yaml.Unmarshal. func (d *YAMLToJSONDecoder) Decode(into interface{}) error { - if d.scanner.Scan() { - data, err := yaml.YAMLToJSON(d.scanner.Bytes()) + bytes, err := d.reader.Read() + if err != nil && err != io.EOF { + return err + } + + if len(bytes) != 0 { + data, err := yaml.YAMLToJSON(bytes) if err != nil { return err } return json.Unmarshal(data, into) } - err := d.scanner.Err() - if err == nil { - err = io.EOF - } return err } @@ -137,6 +137,7 @@ func (d *YAMLDecoder) Close() error { } const yamlSeparator = "\n---" +const separator = "---\n" // splitYAMLDocument is a bufio.SplitFunc for splitting YAML streams into individual documents. func splitYAMLDocument(data []byte, atEOF bool) (advance int, token []byte, err error) { @@ -222,6 +223,64 @@ func (d *YAMLOrJSONDecoder) Decode(into interface{}) error { return err } +type Reader interface { + Read() ([]byte, error) +} + +type YAMLReader struct { + reader Reader +} + +func NewYAMLReader(r *bufio.Reader) *YAMLReader { + return &YAMLReader{ + reader: &LineReader{reader: r}, + } +} + +// Read returns a full YAML document. +func (r *YAMLReader) Read() ([]byte, error) { + var buffer bytes.Buffer + for { + line, err := r.reader.Read() + if err != nil && err != io.EOF { + return nil, err + } + + if string(line) == separator || err == io.EOF { + if buffer.Len() != 0 { + return buffer.Bytes(), nil + } + if err == io.EOF { + return nil, err + } + } else { + buffer.Write(line) + } + } +} + +type LineReader struct { + reader *bufio.Reader +} + +// Read returns a single line (with '\n' ended) from the underlying reader. +// An error is returned iff there is an error with the underlying reader. +func (r *LineReader) Read() ([]byte, error) { + var ( + isPrefix bool = true + err error = nil + line []byte + buffer bytes.Buffer + ) + + for isPrefix && err == nil { + line, isPrefix, err = r.reader.ReadLine() + buffer.Write(line) + } + buffer.WriteByte('\n') + return buffer.Bytes(), err +} + // GuessJSONStream scans the provided reader up to size, looking // for an open brace indicating this is JSON. It will return the // bufio.Reader it creates for the consumer. diff --git a/1.4/pkg/version/version.go b/1.4/pkg/version/version.go index fb4654c4..0da3aadd 100644 --- a/1.4/pkg/version/version.go +++ b/1.4/pkg/version/version.go @@ -19,8 +19,6 @@ package version import ( "fmt" "runtime" - - "github.com/prometheus/client_golang/prometheus" ) // Info contains versioning information. @@ -60,17 +58,3 @@ func Get() Info { func (info Info) String() string { return info.GitVersion } - -func init() { - buildInfo := prometheus.NewGaugeVec( - prometheus.GaugeOpts{ - Name: "kubernetes_build_info_copy", - Help: "A metric with a constant '1' value labeled by major, minor, git version, git commit, git tree state, build date, Go version, and compiler from which Kubernetes was built, and platform on which it is running.", - }, - []string{"major", "minor", "gitVersion", "gitCommit", "gitTreeState", "buildDate", "goVersion", "compiler", "platform"}, - ) - info := Get() - buildInfo.WithLabelValues(info.Major, info.Minor, info.GitVersion, info.GitCommit, info.GitTreeState, info.BuildDate, info.GoVersion, info.Compiler, info.Platform).Set(1) - - prometheus.MustRegister(buildInfo) -} diff --git a/1.4/rest/request.go b/1.4/rest/request.go index b4a748e1..55af1ac0 100644 --- a/1.4/rest/request.go +++ b/1.4/rest/request.go @@ -58,10 +58,6 @@ var ( longThrottleLatency = 50 * time.Millisecond ) -func init() { - metrics.Register() -} - // HTTPClient is an interface for testing a request object. type HTTPClient interface { Do(req *http.Request) (*http.Response, error) @@ -339,16 +335,16 @@ func (r resourceTypeToFieldMapping) filterField(resourceType, field, value strin type versionToResourceToFieldMapping map[unversioned.GroupVersion]resourceTypeToFieldMapping +// filterField transforms the given field/value selector for the given groupVersion and resource func (v versionToResourceToFieldMapping) filterField(groupVersion *unversioned.GroupVersion, resourceType, field, value string) (newField, newValue string, err error) { rMapping, ok := v[*groupVersion] if !ok { - glog.Warningf("Field selector: %v - %v - %v - %v: need to check if this is versioned correctly.", groupVersion, resourceType, field, value) + // no groupVersion overrides registered, default to identity mapping return field, value, nil } newField, newValue, err = rMapping.filterField(resourceType, field, value) if err != nil { - // This is only a warning until we find and fix all of the client's usages. - glog.Warningf("Field selector: %v - %v - %v - %v: need to check if this is versioned correctly.", groupVersion, resourceType, field, value) + // no groupVersionResource overrides registered, default to identity mapping return field, value, nil } return newField, newValue, nil @@ -609,7 +605,7 @@ func (r *Request) URL() *url.URL { // underyling object. This means some useful request info (like the types of field // selectors in use) will be lost. // TODO: preserve field selector keys -func (r Request) finalURLTemplate() string { +func (r Request) finalURLTemplate() url.URL { if len(r.resourceName) != 0 { r.resourceName = "{name}" } @@ -622,7 +618,8 @@ func (r Request) finalURLTemplate() string { newParams[k] = v } r.params = newParams - return r.URL().String() + url := r.URL() + return *url } func (r *Request) tryThrottle() { @@ -697,10 +694,10 @@ func updateURLMetrics(req *Request, resp *http.Response, err error) { // If we have an error (i.e. apiserver down) we report that as a metric label. if err != nil { - metrics.RequestResult.WithLabelValues(err.Error(), req.verb, url).Inc() + metrics.RequestResult.Increment(err.Error(), req.verb, url) } else { //Metrics for failure codes - metrics.RequestResult.WithLabelValues(strconv.Itoa(resp.StatusCode), req.verb, url).Inc() + metrics.RequestResult.Increment(strconv.Itoa(resp.StatusCode), req.verb, url) } } @@ -775,7 +772,7 @@ func (r *Request) request(fn func(*http.Request, *http.Response)) error { //Metrics for total request latency start := time.Now() defer func() { - metrics.RequestLatency.WithLabelValues(r.verb, r.finalURLTemplate()).Observe(metrics.SinceInMicroseconds(start)) + metrics.RequestLatency.Observe(r.verb, r.finalURLTemplate(), time.Since(start)) }() if r.err != nil { @@ -821,9 +818,16 @@ func (r *Request) request(fn func(*http.Request, *http.Response)) error { } done := func() bool { - // ensure the response body is closed before we reconnect, so that we reuse the same - // TCP connection - defer resp.Body.Close() + // Ensure the response body is fully read and closed + // before we reconnect, so that we reuse the same TCP + // connection. + defer func() { + const maxBodySlurpSize = 2 << 10 + if resp.ContentLength <= maxBodySlurpSize { + io.Copy(ioutil.Discard, &io.LimitedReader{R: resp.Body, N: maxBodySlurpSize}) + } + resp.Body.Close() + }() retries++ if seconds, wait := checkWait(resp); wait && retries < maxRetries { @@ -877,6 +881,9 @@ func (r *Request) DoRaw() ([]byte, error) { var result Result err := r.request(func(req *http.Request, resp *http.Response) { result.body, result.err = ioutil.ReadAll(resp.Body) + if resp.StatusCode < http.StatusOK || resp.StatusCode > http.StatusPartialContent { + result.err = r.transformUnstructuredResponseError(resp, req, result.body) + } }) if err != nil { return nil, err diff --git a/1.4/rest/request_test.go b/1.4/rest/request_test.go index 85b78de3..2dbd00ba 100755 --- a/1.4/rest/request_test.go +++ b/1.4/rest/request_test.go @@ -331,7 +331,8 @@ func TestURLTemplate(t *testing.T) { if full.String() != "http://localhost/pre1/namespaces/ns/r1/nm?p0=v0" { t.Errorf("unexpected initial URL: %s", full) } - actual := r.finalURLTemplate() + actualURL := r.finalURLTemplate() + actual := actualURL.String() expected := "http://localhost/pre1/namespaces/%7Bnamespace%7D/r1/%7Bname%7D?p0=%7Bvalue%7D" if actual != expected { t.Errorf("unexpected URL template: %s %s", actual, expected) diff --git a/1.4/tools/cache/delta_fifo.go b/1.4/tools/cache/delta_fifo.go index 419e81b2..9c6abd2c 100644 --- a/1.4/tools/cache/delta_fifo.go +++ b/1.4/tools/cache/delta_fifo.go @@ -496,21 +496,34 @@ func (f *DeltaFIFO) Replace(list []interface{}, resourceVersion string) error { // Resync will send a sync event for each item func (f *DeltaFIFO) Resync() error { - f.lock.RLock() - defer f.lock.RUnlock() - for _, k := range f.knownObjects.ListKeys() { - obj, exists, err := f.knownObjects.GetByKey(k) - if err != nil { - glog.Errorf("Unexpected error %v during lookup of key %v, unable to queue object for sync", err, k) - continue - } else if !exists { - glog.Infof("Key %v does not exist in known objects store, unable to queue object for sync", k) - continue + var keys []string + func() { + f.lock.RLock() + defer f.lock.RUnlock() + keys = f.knownObjects.ListKeys() + }() + for _, k := range keys { + if err := f.syncKey(k); err != nil { + return err } + } + return nil +} - if err := f.queueActionLocked(Sync, obj); err != nil { - return fmt.Errorf("couldn't queue object: %v", err) - } +func (f *DeltaFIFO) syncKey(key string) error { + f.lock.Lock() + defer f.lock.Unlock() + obj, exists, err := f.knownObjects.GetByKey(key) + if err != nil { + glog.Errorf("Unexpected error %v during lookup of key %v, unable to queue object for sync", err, key) + return nil + } else if !exists { + glog.Infof("Key %v does not exist in known objects store, unable to queue object for sync", key) + return nil + } + + if err := f.queueActionLocked(Sync, obj); err != nil { + return fmt.Errorf("couldn't queue object: %v", err) } return nil } diff --git a/1.4/tools/cache/listers.go b/1.4/tools/cache/listers.go index 24279a55..2bef5266 100644 --- a/1.4/tools/cache/listers.go +++ b/1.4/tools/cache/listers.go @@ -21,11 +21,13 @@ import ( "github.com/golang/glog" "k8s.io/client-go/1.4/pkg/api" + "k8s.io/client-go/1.4/pkg/api/errors" "k8s.io/client-go/1.4/pkg/api/unversioned" "k8s.io/client-go/1.4/pkg/apis/apps" "k8s.io/client-go/1.4/pkg/apis/batch" "k8s.io/client-go/1.4/pkg/apis/certificates" "k8s.io/client-go/1.4/pkg/apis/extensions" + "k8s.io/client-go/1.4/pkg/apis/policy" "k8s.io/client-go/1.4/pkg/labels" ) @@ -48,13 +50,9 @@ type StoreToPodLister struct { // Please note that selector is filtering among the pods that have gotten into // the store; there may have been some filtering that already happened before // that. -// -// TODO: converge on the interface in pkg/client. +// We explicitly don't return api.PodList, to avoid expensive allocations, which +// in most cases are unnecessary. func (s *StoreToPodLister) List(selector labels.Selector) (pods []*api.Pod, err error) { - // TODO: it'd be great to just call - // s.Pods(api.NamespaceAll).List(selector), however then we'd have to - // remake the list.Items as a []*api.Pod. So leave this separate for - // now. for _, m := range s.Indexer.List() { pod := m.(*api.Pod) if selector.Matches(labels.Set(pod.Labels)) { @@ -77,14 +75,14 @@ type storePodsNamespacer struct { // Please note that selector is filtering among the pods that have gotten into // the store; there may have been some filtering that already happened before // that. -func (s storePodsNamespacer) List(selector labels.Selector) (api.PodList, error) { - pods := api.PodList{} - +// We explicitly don't return api.PodList, to avoid expensive allocations, which +// in most cases are unnecessary. +func (s storePodsNamespacer) List(selector labels.Selector) (pods []*api.Pod, err error) { if s.namespace == api.NamespaceAll { for _, m := range s.indexer.List() { pod := m.(*api.Pod) if selector.Matches(labels.Set(pod.Labels)) { - pods.Items = append(pods.Items, *pod) + pods = append(pods, pod) } } return pods, nil @@ -98,7 +96,7 @@ func (s storePodsNamespacer) List(selector labels.Selector) (api.PodList, error) for _, m := range s.indexer.List() { pod := m.(*api.Pod) if s.namespace == pod.Namespace && selector.Matches(labels.Set(pod.Labels)) { - pods.Items = append(pods.Items, *pod) + pods = append(pods, pod) } } return pods, nil @@ -106,12 +104,23 @@ func (s storePodsNamespacer) List(selector labels.Selector) (api.PodList, error) for _, m := range items { pod := m.(*api.Pod) if selector.Matches(labels.Set(pod.Labels)) { - pods.Items = append(pods.Items, *pod) + pods = append(pods, pod) } } return pods, nil } +func (s storePodsNamespacer) Get(name string) (*api.Pod, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(api.Resource("pod"), name) + } + return obj.(*api.Pod), nil +} + // Exists returns true if a pod matching the namespace/name of the given pod exists in the store. func (s *StoreToPodLister) Exists(pod *api.Pod) (bool, error) { _, exists, err := s.Indexer.Get(pod) @@ -231,6 +240,17 @@ func (s storeReplicationControllersNamespacer) List(selector labels.Selector) ([ return controllers, nil } +func (s storeReplicationControllersNamespacer) Get(name string) (*api.ReplicationController, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(api.Resource("replicationcontroller"), name) + } + return obj.(*api.ReplicationController), nil +} + // GetPodControllers returns a list of replication controllers managing a pod. Returns an error only if no matching controllers are found. func (s *StoreToReplicationControllerLister) GetPodControllers(pod *api.Pod) (controllers []api.ReplicationController, err error) { var selector labels.Selector @@ -249,11 +269,10 @@ func (s *StoreToReplicationControllerLister) GetPodControllers(pod *api.Pod) (co for _, m := range items { rc = *m.(*api.ReplicationController) - labelSet := labels.Set(rc.Spec.Selector) - selector = labels.Set(rc.Spec.Selector).AsSelector() + selector = labels.Set(rc.Spec.Selector).AsSelectorPreValidated() // If an rc with a nil or empty selector creeps in, it should match nothing, not everything. - if labelSet.AsSelector().Empty() || !selector.Matches(labels.Set(pod.Labels)) { + if selector.Empty() || !selector.Matches(labels.Set(pod.Labels)) { continue } controllers = append(controllers, rc) @@ -266,12 +285,12 @@ func (s *StoreToReplicationControllerLister) GetPodControllers(pod *api.Pod) (co // StoreToDeploymentLister gives a store List and Exists methods. The store must contain only Deployments. type StoreToDeploymentLister struct { - Store + Indexer } // Exists checks if the given deployment exists in the store. func (s *StoreToDeploymentLister) Exists(deployment *extensions.Deployment) (bool, error) { - _, exists, err := s.Store.Get(deployment) + _, exists, err := s.Indexer.Get(deployment) if err != nil { return false, err } @@ -281,7 +300,7 @@ func (s *StoreToDeploymentLister) Exists(deployment *extensions.Deployment) (boo // StoreToDeploymentLister lists all deployments in the store. // TODO: converge on the interface in pkg/client func (s *StoreToDeploymentLister) List() (deployments []extensions.Deployment, err error) { - for _, c := range s.Store.List() { + for _, c := range s.Indexer.List() { deployments = append(deployments, *(c.(*extensions.Deployment))) } return deployments, nil @@ -289,20 +308,17 @@ func (s *StoreToDeploymentLister) List() (deployments []extensions.Deployment, e // GetDeploymentsForReplicaSet returns a list of deployments managing a replica set. Returns an error only if no matching deployments are found. func (s *StoreToDeploymentLister) GetDeploymentsForReplicaSet(rs *extensions.ReplicaSet) (deployments []extensions.Deployment, err error) { - var d extensions.Deployment - if len(rs.Labels) == 0 { err = fmt.Errorf("no deployments found for ReplicaSet %v because it has no labels", rs.Name) return } // TODO: MODIFY THIS METHOD so that it checks for the podTemplateSpecHash label - for _, m := range s.Store.List() { - d = *m.(*extensions.Deployment) - if d.Namespace != rs.Namespace { - continue - } - + dList, err := s.Deployments(rs.Namespace).List(labels.Everything()) + if err != nil { + return + } + for _, d := range dList { selector, err := unversioned.LabelSelectorAsSelector(d.Spec.Selector) if err != nil { return nil, fmt.Errorf("invalid label selector: %v", err) @@ -319,6 +335,81 @@ func (s *StoreToDeploymentLister) GetDeploymentsForReplicaSet(rs *extensions.Rep return } +type storeToDeploymentNamespacer struct { + indexer Indexer + namespace string +} + +// storeToDeploymentNamespacer lists deployments under its namespace in the store. +func (s storeToDeploymentNamespacer) List(selector labels.Selector) (deployments []extensions.Deployment, err error) { + if s.namespace == api.NamespaceAll { + for _, m := range s.indexer.List() { + d := *(m.(*extensions.Deployment)) + if selector.Matches(labels.Set(d.Labels)) { + deployments = append(deployments, d) + } + } + return + } + + key := &extensions.Deployment{ObjectMeta: api.ObjectMeta{Namespace: s.namespace}} + items, err := s.indexer.Index(NamespaceIndex, key) + if err != nil { + // Ignore error; do slow search without index. + glog.Warningf("can not retrieve list of objects using index : %v", err) + for _, m := range s.indexer.List() { + d := *(m.(*extensions.Deployment)) + if s.namespace == d.Namespace && selector.Matches(labels.Set(d.Labels)) { + deployments = append(deployments, d) + } + } + return deployments, nil + } + for _, m := range items { + d := *(m.(*extensions.Deployment)) + if selector.Matches(labels.Set(d.Labels)) { + deployments = append(deployments, d) + } + } + return +} + +func (s *StoreToDeploymentLister) Deployments(namespace string) storeToDeploymentNamespacer { + return storeToDeploymentNamespacer{s.Indexer, namespace} +} + +// GetDeploymentsForPods returns a list of deployments managing a pod. Returns an error only if no matching deployments are found. +func (s *StoreToDeploymentLister) GetDeploymentsForPod(pod *api.Pod) (deployments []extensions.Deployment, err error) { + if len(pod.Labels) == 0 { + err = fmt.Errorf("no deployments found for Pod %v because it has no labels", pod.Name) + return + } + + if len(pod.Labels[extensions.DefaultDeploymentUniqueLabelKey]) == 0 { + return + } + + dList, err := s.Deployments(pod.Namespace).List(labels.Everything()) + if err != nil { + return + } + for _, d := range dList { + selector, err := unversioned.LabelSelectorAsSelector(d.Spec.Selector) + if err != nil { + return nil, fmt.Errorf("invalid label selector: %v", err) + } + // If a deployment with a nil or empty selector creeps in, it should match nothing, not everything. + if selector.Empty() || !selector.Matches(labels.Set(pod.Labels)) { + continue + } + deployments = append(deployments, d) + } + if len(deployments) == 0 { + err = fmt.Errorf("could not find deployments set for Pod %s in namespace %s with labels: %v", pod.Name, pod.Namespace, pod.Labels) + } + return +} + // StoreToReplicaSetLister gives a store List and Exists methods. The store must contain only ReplicaSets. type StoreToReplicaSetLister struct { Store @@ -359,6 +450,17 @@ func (s storeReplicaSetsNamespacer) List(selector labels.Selector) (rss []extens return } +func (s storeReplicaSetsNamespacer) Get(name string) (*extensions.ReplicaSet, error) { + obj, exists, err := s.store.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(extensions.Resource("replicaset"), name) + } + return obj.(*extensions.ReplicaSet), nil +} + func (s *StoreToReplicaSetLister) ReplicaSets(namespace string) storeReplicaSetsNamespacer { return storeReplicaSetsNamespacer{s.Store, namespace} } @@ -482,7 +584,7 @@ func (s *StoreToServiceLister) GetPodServices(pod *api.Pod) (services []api.Serv // services with nil selectors match nothing, not everything. continue } - selector = labels.Set(service.Spec.Selector).AsSelector() + selector = labels.Set(service.Spec.Selector).AsSelectorPreValidated() if selector.Matches(labels.Set(pod.Labels)) { services = append(services, service) } @@ -710,3 +812,44 @@ func (i *IndexerToNamespaceLister) List(selector labels.Selector) (namespaces [] return namespaces, nil } + +type StoreToPodDisruptionBudgetLister struct { + Store +} + +// GetPodPodDisruptionBudgets returns a list of PodDisruptionBudgets matching a pod. Returns an error only if no matching PodDisruptionBudgets are found. +func (s *StoreToPodDisruptionBudgetLister) GetPodPodDisruptionBudgets(pod *api.Pod) (pdbList []policy.PodDisruptionBudget, err error) { + var selector labels.Selector + + if len(pod.Labels) == 0 { + err = fmt.Errorf("no PodDisruptionBudgets found for pod %v because it has no labels", pod.Name) + return + } + + for _, m := range s.Store.List() { + pdb, ok := m.(*policy.PodDisruptionBudget) + if !ok { + glog.Errorf("Unexpected: %v is not a PodDisruptionBudget", m) + continue + } + if pdb.Namespace != pod.Namespace { + continue + } + selector, err = unversioned.LabelSelectorAsSelector(pdb.Spec.Selector) + if err != nil { + glog.Warningf("invalid selector: %v", err) + // TODO(mml): add an event to the PDB + continue + } + + // If a PDB with a nil or empty selector creeps in, it should match nothing, not everything. + if selector.Empty() || !selector.Matches(labels.Set(pod.Labels)) { + continue + } + pdbList = append(pdbList, *pdb) + } + if len(pdbList) == 0 { + err = fmt.Errorf("could not find PodDisruptionBudget for pod %s in namespace %s with labels: %v", pod.Name, pod.Namespace, pod.Labels) + } + return +} diff --git a/1.4/tools/cache/listers_test.go b/1.4/tools/cache/listers_test.go index 691340eb..eeedb4fc 100644 --- a/1.4/tools/cache/listers_test.go +++ b/1.4/tools/cache/listers_test.go @@ -143,7 +143,7 @@ func TestStoreToReplicationControllerLister(t *testing.T) { }, }, list: func(lister StoreToReplicationControllerLister) ([]api.ReplicationController, error) { - return lister.ReplicationControllers(api.NamespaceAll).List(labels.Set{}.AsSelector()) + return lister.ReplicationControllers(api.NamespaceAll).List(labels.Set{}.AsSelectorPreValidated()) }, outRCNames: sets.NewString("hmm", "foo"), }, @@ -158,7 +158,7 @@ func TestStoreToReplicationControllerLister(t *testing.T) { }, }, list: func(lister StoreToReplicationControllerLister) ([]api.ReplicationController, error) { - return lister.ReplicationControllers("hmm").List(labels.Set{}.AsSelector()) + return lister.ReplicationControllers("hmm").List(labels.Set{}.AsSelectorPreValidated()) }, outRCNames: sets.NewString("hmm"), }, @@ -715,17 +715,17 @@ func TestStoreToPodLister(t *testing.T) { spl := StoreToPodLister{store} // Verify that we can always look up by Namespace. - defaultPods, err := spl.Pods(api.NamespaceDefault).List(labels.Set{}.AsSelector()) + defaultPods, err := spl.Pods(api.NamespaceDefault).List(labels.Set{}.AsSelectorPreValidated()) if err != nil { t.Errorf("Unexpected error: %v", err) - } else if e, a := 1, len(defaultPods.Items); e != a { + } else if e, a := 1, len(defaultPods); e != a { t.Errorf("Expected %v, got %v", e, a) - } else if e, a := "quux", defaultPods.Items[0].Name; e != a { + } else if e, a := "quux", defaultPods[0].Name; e != a { t.Errorf("Expected %v, got %v", e, a) } for _, id := range ids { - got, err := spl.List(labels.Set{"name": id}.AsSelector()) + got, err := spl.List(labels.Set{"name": id}.AsSelectorPreValidated()) if err != nil { t.Errorf("Unexpected error: %v", err) continue diff --git a/1.4/tools/cache/thread_safe_store.go b/1.4/tools/cache/thread_safe_store.go index e6cb3f0d..f77e6564 100644 --- a/1.4/tools/cache/thread_safe_store.go +++ b/1.4/tools/cache/thread_safe_store.go @@ -151,7 +151,7 @@ func (c *threadSafeMap) Index(indexName string, obj interface{}) ([]interface{}, returnKeySet := sets.String{} for _, indexKey := range indexKeys { set := index[indexKey] - for _, key := range set.List() { + for _, key := range set.UnsortedList() { returnKeySet.Insert(key) } } diff --git a/1.4/tools/clientcmd/api/latest/latest.go b/1.4/tools/clientcmd/api/latest/latest.go index 8b76e1f8..3ba3517b 100644 --- a/1.4/tools/clientcmd/api/latest/latest.go +++ b/1.4/tools/clientcmd/api/latest/latest.go @@ -60,7 +60,7 @@ func init() { Scheme, yamlSerializer, yamlSerializer, - []unversioned.GroupVersion{{Version: Version}}, - []unversioned.GroupVersion{{Version: runtime.APIVersionInternal}}, + unversioned.GroupVersion{Version: Version}, + runtime.InternalGroupVersioner, ) } diff --git a/1.4/tools/clientcmd/api/types.go b/1.4/tools/clientcmd/api/types.go index b09de0bf..c8c5dce9 100644 --- a/1.4/tools/clientcmd/api/types.go +++ b/1.4/tools/clientcmd/api/types.go @@ -88,6 +88,8 @@ type AuthInfo struct { ClientKeyData []byte `json:"client-key-data,omitempty"` // Token is the bearer token for authentication to the kubernetes cluster. Token string `json:"token,omitempty"` + // TokenFile is a pointer to a file that contains a bearer token (as described above). If both Token and TokenFile are present, Token takes precedence. + TokenFile string `json:"tokenFile,omitempty"` // Impersonate is the username to act-as. Impersonate string `json:"act-as,omitempty"` // Username is the username for basic authentication to the kubernetes cluster. diff --git a/1.4/tools/clientcmd/api/v1/types.go b/1.4/tools/clientcmd/api/v1/types.go index 1c47093a..4deafae0 100644 --- a/1.4/tools/clientcmd/api/v1/types.go +++ b/1.4/tools/clientcmd/api/v1/types.go @@ -82,6 +82,8 @@ type AuthInfo struct { ClientKeyData []byte `json:"client-key-data,omitempty"` // Token is the bearer token for authentication to the kubernetes cluster. Token string `json:"token,omitempty"` + // TokenFile is a pointer to a file that contains a bearer token (as described above). If both Token and TokenFile are present, Token takes precedence. + TokenFile string `json:"tokenFile,omitempty"` // Impersonate is the username to imperonate. The name matches the flag. Impersonate string `json:"as,omitempty"` // Username is the username for basic authentication to the kubernetes cluster. diff --git a/1.4/tools/clientcmd/client_config.go b/1.4/tools/clientcmd/client_config.go index f59ab426..e92d38e5 100644 --- a/1.4/tools/clientcmd/client_config.go +++ b/1.4/tools/clientcmd/client_config.go @@ -167,6 +167,12 @@ func getUserIdentificationPartialConfig(configAuthInfo clientcmdapi.AuthInfo, fa // blindly overwrite existing values based on precedence if len(configAuthInfo.Token) > 0 { mergedConfig.BearerToken = configAuthInfo.Token + } else if len(configAuthInfo.TokenFile) > 0 { + tokenBytes, err := ioutil.ReadFile(configAuthInfo.TokenFile) + if err != nil { + return nil, err + } + mergedConfig.BearerToken = string(tokenBytes) } if len(configAuthInfo.Impersonate) > 0 { mergedConfig.Impersonate = configAuthInfo.Impersonate diff --git a/1.4/tools/clientcmd/client_config_test.go b/1.4/tools/clientcmd/client_config_test.go index 393d2589..6c85d133 100644 --- a/1.4/tools/clientcmd/client_config_test.go +++ b/1.4/tools/clientcmd/client_config_test.go @@ -17,6 +17,8 @@ limitations under the License. package clientcmd import ( + "io/ioutil" + "os" "reflect" "testing" @@ -186,6 +188,80 @@ func TestBasicAuthData(t *testing.T) { matchStringArg(password, clientConfig.Password, t) } +func TestBasicTokenFile(t *testing.T) { + token := "exampletoken" + f, err := ioutil.TempFile("", "tokenfile") + if err != nil { + t.Errorf("Unexpected error: %v", err) + return + } + defer os.Remove(f.Name()) + if err := ioutil.WriteFile(f.Name(), []byte(token), 0644); err != nil { + t.Errorf("Unexpected error: %v", err) + return + } + + config := clientcmdapi.NewConfig() + config.Clusters["clean"] = &clientcmdapi.Cluster{ + Server: "https://localhost:8443", + } + config.AuthInfos["clean"] = &clientcmdapi.AuthInfo{ + TokenFile: f.Name(), + } + config.Contexts["clean"] = &clientcmdapi.Context{ + Cluster: "clean", + AuthInfo: "clean", + } + config.CurrentContext = "clean" + + clientBuilder := NewNonInteractiveClientConfig(*config, "clean", &ConfigOverrides{}, nil) + + clientConfig, err := clientBuilder.ClientConfig() + if err != nil { + t.Fatalf("Unexpected error: %v", err) + } + + matchStringArg(token, clientConfig.BearerToken, t) +} + +func TestPrecedenceTokenFile(t *testing.T) { + token := "exampletoken" + f, err := ioutil.TempFile("", "tokenfile") + if err != nil { + t.Errorf("Unexpected error: %v", err) + return + } + defer os.Remove(f.Name()) + if err := ioutil.WriteFile(f.Name(), []byte(token), 0644); err != nil { + t.Errorf("Unexpected error: %v", err) + return + } + + config := clientcmdapi.NewConfig() + config.Clusters["clean"] = &clientcmdapi.Cluster{ + Server: "https://localhost:8443", + } + expectedToken := "expected" + config.AuthInfos["clean"] = &clientcmdapi.AuthInfo{ + Token: expectedToken, + TokenFile: f.Name(), + } + config.Contexts["clean"] = &clientcmdapi.Context{ + Cluster: "clean", + AuthInfo: "clean", + } + config.CurrentContext = "clean" + + clientBuilder := NewNonInteractiveClientConfig(*config, "clean", &ConfigOverrides{}, nil) + + clientConfig, err := clientBuilder.ClientConfig() + if err != nil { + t.Fatalf("Unexpected error: %v", err) + } + + matchStringArg(expectedToken, clientConfig.BearerToken, t) +} + func TestCreateClean(t *testing.T) { config := createValidTestConfig() clientBuilder := NewNonInteractiveClientConfig(*config, "clean", &ConfigOverrides{}, nil) diff --git a/1.4/tools/clientcmd/loader.go b/1.4/tools/clientcmd/loader.go index 440a95cd..b5d460f5 100644 --- a/1.4/tools/clientcmd/loader.go +++ b/1.4/tools/clientcmd/loader.go @@ -85,7 +85,7 @@ func (g *ClientConfigGetter) GetLoadingPrecedence() []string { return nil } func (g *ClientConfigGetter) GetStartingConfig() (*clientcmdapi.Config, error) { - return nil, nil + return g.kubeconfigGetter() } func (g *ClientConfigGetter) GetDefaultFilename() string { return "" @@ -215,7 +215,6 @@ func (rules *ClientConfigLoadingRules) Load() (*clientcmdapi.Config, error) { errlist = append(errlist, err) } } - return config, utilerrors.NewAggregate(errlist) } @@ -530,7 +529,7 @@ func GetClusterFileReferences(cluster *clientcmdapi.Cluster) []*string { } func GetAuthInfoFileReferences(authInfo *clientcmdapi.AuthInfo) []*string { - return []*string{&authInfo.ClientCertificate, &authInfo.ClientKey} + return []*string{&authInfo.ClientCertificate, &authInfo.ClientKey, &authInfo.TokenFile} } // ResolvePaths updates the given refs to be absolute paths, relative to the given base directory diff --git a/1.4/tools/clientcmd/overrides.go b/1.4/tools/clientcmd/overrides.go index 5bbe434d..6cbf5886 100644 --- a/1.4/tools/clientcmd/overrides.go +++ b/1.4/tools/clientcmd/overrides.go @@ -158,7 +158,7 @@ func RecommendedContextOverrideFlags(prefix string) ContextOverrideFlags { return ContextOverrideFlags{ ClusterName: FlagInfo{prefix + FlagClusterName, "", "", "The name of the kubeconfig cluster to use"}, AuthInfoName: FlagInfo{prefix + FlagAuthInfoName, "", "", "The name of the kubeconfig user to use"}, - Namespace: FlagInfo{prefix + FlagNamespace, "", "", "If present, the namespace scope for this CLI request"}, + Namespace: FlagInfo{prefix + FlagNamespace, "n", "", "If present, the namespace scope for this CLI request"}, } } diff --git a/1.4/tools/metrics/metrics.go b/1.4/tools/metrics/metrics.go index 3f649643..a01306c6 100644 --- a/1.4/tools/metrics/metrics.go +++ b/1.4/tools/metrics/metrics.go @@ -14,54 +14,48 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Package metrics provides utilities for registering client metrics to Prometheus. +// Package metrics provides abstractions for registering which metrics +// to record. package metrics import ( + "net/url" "sync" "time" - - "github.com/prometheus/client_golang/prometheus" -) - -const restClientSubsystem = "rest_client" - -var ( - // RequestLatency is a Prometheus Summary metric type partitioned by - // "verb" and "url" labels. It is used for the rest client latency metrics. - RequestLatency = prometheus.NewSummaryVec( - prometheus.SummaryOpts{ - Subsystem: restClientSubsystem, - Name: "request_latency_microseconds_copy", - Help: "Request latency in microseconds. Broken down by verb and URL", - MaxAge: time.Hour, - }, - []string{"verb", "url"}, - ) - - RequestResult = prometheus.NewCounterVec( - prometheus.CounterOpts{ - Subsystem: restClientSubsystem, - Name: "request_status_codes_copy", - Help: "Number of http requests, partitioned by metadata", - }, - []string{"code", "method", "host"}, - ) ) var registerMetrics sync.Once -// Register registers all metrics to Prometheus with -// respect to the RequestLatency. -func Register() { - // Register the metrics. +// LatencyMetric observes client latency partitioned by verb and url. +type LatencyMetric interface { + Observe(verb string, u url.URL, latency time.Duration) +} + +// ResultMetric counts response codes partitioned by method and host. +type ResultMetric interface { + Increment(code string, method string, host string) +} + +var ( + // RequestLatency is the latency metric that rest clients will update. + RequestLatency LatencyMetric = noopLatency{} + // RequestResult is the result metric that rest clients will update. + RequestResult ResultMetric = noopResult{} +) + +// Register registers metrics for the rest client to use. This can +// only be called once. +func Register(lm LatencyMetric, rm ResultMetric) { registerMetrics.Do(func() { - prometheus.MustRegister(RequestLatency) - prometheus.MustRegister(RequestResult) + RequestLatency = lm + RequestResult = rm }) } -// Calculates the time since the specified start in microseconds. -func SinceInMicroseconds(start time.Time) float64 { - return float64(time.Since(start).Nanoseconds() / time.Microsecond.Nanoseconds()) -} +type noopLatency struct{} + +func (noopLatency) Observe(string, url.URL, time.Duration) {} + +type noopResult struct{} + +func (noopResult) Increment(string, string, string) {} diff --git a/1.4/vendor/bitbucket.org/ww/goautoneg/Makefile b/1.4/vendor/bitbucket.org/ww/goautoneg/Makefile deleted file mode 100644 index e33ee173..00000000 --- a/1.4/vendor/bitbucket.org/ww/goautoneg/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -include $(GOROOT)/src/Make.inc - -TARG=bitbucket.org/ww/goautoneg -GOFILES=autoneg.go - -include $(GOROOT)/src/Make.pkg - -format: - gofmt -w *.go - -docs: - gomake clean - godoc ${TARG} > README.txt diff --git a/1.4/vendor/bitbucket.org/ww/goautoneg/README.txt b/1.4/vendor/bitbucket.org/ww/goautoneg/README.txt deleted file mode 100644 index 7723656d..00000000 --- a/1.4/vendor/bitbucket.org/ww/goautoneg/README.txt +++ /dev/null @@ -1,67 +0,0 @@ -PACKAGE - -package goautoneg -import "bitbucket.org/ww/goautoneg" - -HTTP Content-Type Autonegotiation. - -The functions in this package implement the behaviour specified in -http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html - -Copyright (c) 2011, Open Knowledge Foundation Ltd. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - Neither the name of the Open Knowledge Foundation Ltd. nor the - names of its contributors may be used to endorse or promote - products derived from this software without specific prior written - permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -FUNCTIONS - -func Negotiate(header string, alternatives []string) (content_type string) -Negotiate the most appropriate content_type given the accept header -and a list of alternatives. - -func ParseAccept(header string) (accept []Accept) -Parse an Accept Header string returning a sorted list -of clauses - - -TYPES - -type Accept struct { - Type, SubType string - Q float32 - Params map[string]string -} -Structure to represent a clause in an HTTP Accept Header - - -SUBDIRECTORIES - - .hg diff --git a/1.4/vendor/bitbucket.org/ww/goautoneg/autoneg.go b/1.4/vendor/bitbucket.org/ww/goautoneg/autoneg.go deleted file mode 100644 index 648b38cb..00000000 --- a/1.4/vendor/bitbucket.org/ww/goautoneg/autoneg.go +++ /dev/null @@ -1,162 +0,0 @@ -/* -HTTP Content-Type Autonegotiation. - -The functions in this package implement the behaviour specified in -http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html - -Copyright (c) 2011, Open Knowledge Foundation Ltd. -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - - Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - - Neither the name of the Open Knowledge Foundation Ltd. nor the - names of its contributors may be used to endorse or promote - products derived from this software without specific prior written - permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -*/ -package goautoneg - -import ( - "sort" - "strconv" - "strings" -) - -// Structure to represent a clause in an HTTP Accept Header -type Accept struct { - Type, SubType string - Q float64 - Params map[string]string -} - -// For internal use, so that we can use the sort interface -type accept_slice []Accept - -func (accept accept_slice) Len() int { - slice := []Accept(accept) - return len(slice) -} - -func (accept accept_slice) Less(i, j int) bool { - slice := []Accept(accept) - ai, aj := slice[i], slice[j] - if ai.Q > aj.Q { - return true - } - if ai.Type != "*" && aj.Type == "*" { - return true - } - if ai.SubType != "*" && aj.SubType == "*" { - return true - } - return false -} - -func (accept accept_slice) Swap(i, j int) { - slice := []Accept(accept) - slice[i], slice[j] = slice[j], slice[i] -} - -// Parse an Accept Header string returning a sorted list -// of clauses -func ParseAccept(header string) (accept []Accept) { - parts := strings.Split(header, ",") - accept = make([]Accept, 0, len(parts)) - for _, part := range parts { - part := strings.Trim(part, " ") - - a := Accept{} - a.Params = make(map[string]string) - a.Q = 1.0 - - mrp := strings.Split(part, ";") - - media_range := mrp[0] - sp := strings.Split(media_range, "/") - a.Type = strings.Trim(sp[0], " ") - - switch { - case len(sp) == 1 && a.Type == "*": - a.SubType = "*" - case len(sp) == 2: - a.SubType = strings.Trim(sp[1], " ") - default: - continue - } - - if len(mrp) == 1 { - accept = append(accept, a) - continue - } - - for _, param := range mrp[1:] { - sp := strings.SplitN(param, "=", 2) - if len(sp) != 2 { - continue - } - token := strings.Trim(sp[0], " ") - if token == "q" { - a.Q, _ = strconv.ParseFloat(sp[1], 32) - } else { - a.Params[token] = strings.Trim(sp[1], " ") - } - } - - accept = append(accept, a) - } - - slice := accept_slice(accept) - sort.Sort(slice) - - return -} - -// Negotiate the most appropriate content_type given the accept header -// and a list of alternatives. -func Negotiate(header string, alternatives []string) (content_type string) { - asp := make([][]string, 0, len(alternatives)) - for _, ctype := range alternatives { - asp = append(asp, strings.SplitN(ctype, "/", 2)) - } - for _, clause := range ParseAccept(header) { - for i, ctsp := range asp { - if clause.Type == ctsp[0] && clause.SubType == ctsp[1] { - content_type = alternatives[i] - return - } - if clause.Type == ctsp[0] && clause.SubType == "*" { - content_type = alternatives[i] - return - } - if clause.Type == "*" && clause.SubType == "*" { - content_type = alternatives[i] - return - } - } - } - return -} diff --git a/1.4/vendor/github.com/beorn7/perks/LICENSE b/1.4/vendor/github.com/beorn7/perks/LICENSE deleted file mode 100644 index 339177be..00000000 --- a/1.4/vendor/github.com/beorn7/perks/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (C) 2013 Blake Mizerany - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/1.4/vendor/github.com/beorn7/perks/quantile/exampledata.txt b/1.4/vendor/github.com/beorn7/perks/quantile/exampledata.txt deleted file mode 100644 index 1602287d..00000000 --- a/1.4/vendor/github.com/beorn7/perks/quantile/exampledata.txt +++ /dev/null @@ -1,2388 +0,0 @@ -8 -5 -26 -12 -5 -235 -13 -6 -28 -30 -3 -3 -3 -3 -5 -2 -33 -7 -2 -4 -7 -12 -14 -5 -8 -3 -10 -4 -5 -3 -6 -6 -209 -20 -3 -10 -14 -3 -4 -6 -8 -5 -11 -7 -3 -2 -3 -3 -212 -5 -222 -4 -10 -10 -5 -6 -3 -8 -3 -10 -254 -220 -2 -3 -5 -24 -5 -4 -222 -7 -3 -3 -223 -8 -15 -12 -14 -14 -3 -2 -2 -3 -13 -3 -11 -4 -4 -6 -5 -7 -13 -5 -3 -5 -2 -5 -3 -5 -2 -7 -15 -17 -14 -3 -6 -6 -3 -17 -5 -4 -7 -6 -4 -4 -8 -6 -8 -3 -9 -3 -6 -3 -4 -5 -3 -3 -660 -4 -6 -10 -3 -6 -3 -2 -5 -13 -2 -4 -4 -10 -4 -8 -4 -3 -7 -9 -9 -3 -10 -37 -3 -13 -4 -12 -3 -6 -10 -8 -5 -21 -2 -3 -8 -3 -2 -3 -3 -4 -12 -2 -4 -8 -8 -4 -3 -2 -20 -1 -6 -32 -2 -11 -6 -18 -3 -8 -11 -3 -212 -3 -4 -2 -6 -7 -12 -11 -3 -2 -16 -10 -6 -4 -6 -3 -2 -7 -3 -2 -2 -2 -2 -5 -6 -4 -3 -10 -3 -4 -6 -5 -3 -4 -4 -5 -6 -4 -3 -4 -4 -5 -7 -5 -5 -3 -2 -7 -2 -4 -12 -4 -5 -6 -2 -4 -4 -8 -4 -15 -13 -7 -16 -5 -3 -23 -5 -5 -7 -3 -2 -9 -8 -7 -5 -8 -11 -4 -10 -76 -4 -47 -4 -3 -2 -7 -4 -2 -3 -37 -10 -4 -2 -20 -5 -4 -4 -10 -10 -4 -3 -7 -23 -240 -7 -13 -5 -5 -3 -3 -2 -5 -4 -2 -8 -7 -19 -2 -23 -8 -7 -2 -5 -3 -8 -3 -8 -13 -5 -5 -5 -2 -3 -23 -4 -9 -8 -4 -3 -3 -5 -220 -2 -3 -4 -6 -14 -3 -53 -6 -2 -5 -18 -6 -3 -219 -6 -5 -2 -5 -3 -6 -5 -15 -4 -3 -17 -3 -2 -4 -7 -2 -3 -3 -4 -4 -3 -2 -664 -6 -3 -23 -5 -5 -16 -5 -8 -2 -4 -2 -24 -12 -3 -2 -3 -5 -8 -3 -5 -4 -3 -14 -3 -5 -8 -2 -3 -7 -9 -4 -2 -3 -6 -8 -4 -3 -4 -6 -5 -3 -3 -6 -3 -19 -4 -4 -6 -3 -6 -3 -5 -22 -5 -4 -4 -3 -8 -11 -4 -9 -7 -6 -13 -4 -4 -4 -6 -17 -9 -3 -3 -3 -4 -3 -221 -5 -11 -3 -4 -2 -12 -6 -3 -5 -7 -5 -7 -4 -9 -7 -14 -37 -19 -217 -16 -3 -5 -2 -2 -7 -19 -7 -6 -7 -4 -24 -5 -11 -4 -7 -7 -9 -13 -3 -4 -3 -6 -28 -4 -4 -5 -5 -2 -5 -6 -4 -4 -6 -10 -5 -4 -3 -2 -3 -3 -6 -5 -5 -4 -3 -2 -3 -7 -4 -6 -18 -16 -8 -16 -4 -5 -8 -6 -9 -13 -1545 -6 -215 -6 -5 -6 -3 -45 -31 -5 -2 -2 -4 -3 -3 -2 -5 -4 -3 -5 -7 -7 -4 -5 -8 -5 -4 -749 -2 -31 -9 -11 -2 -11 -5 -4 -4 -7 -9 -11 -4 -5 -4 -7 -3 -4 -6 -2 -15 -3 -4 -3 -4 -3 -5 -2 -13 -5 -5 -3 -3 -23 -4 -4 -5 -7 -4 -13 -2 -4 -3 -4 -2 -6 -2 -7 -3 -5 -5 -3 -29 -5 -4 -4 -3 -10 -2 -3 -79 -16 -6 -6 -7 -7 -3 -5 -5 -7 -4 -3 -7 -9 -5 -6 -5 -9 -6 -3 -6 -4 -17 -2 -10 -9 -3 -6 -2 -3 -21 -22 -5 -11 -4 -2 -17 -2 -224 -2 -14 -3 -4 -4 -2 -4 -4 -4 -4 -5 -3 -4 -4 -10 -2 -6 -3 -3 -5 -7 -2 -7 -5 -6 -3 -218 -2 -2 -5 -2 -6 -3 -5 -222 -14 -6 -33 -3 -2 -5 -3 -3 -3 -9 -5 -3 -3 -2 -7 -4 -3 -4 -3 -5 -6 -5 -26 -4 -13 -9 -7 -3 -221 -3 -3 -4 -4 -4 -4 -2 -18 -5 -3 -7 -9 -6 -8 -3 -10 -3 -11 -9 -5 -4 -17 -5 -5 -6 -6 -3 -2 -4 -12 -17 -6 -7 -218 -4 -2 -4 -10 -3 -5 -15 -3 -9 -4 -3 -3 -6 -29 -3 -3 -4 -5 -5 -3 -8 -5 -6 -6 -7 -5 -3 -5 -3 -29 -2 -31 -5 -15 -24 -16 -5 -207 -4 -3 -3 -2 -15 -4 -4 -13 -5 -5 -4 -6 -10 -2 -7 -8 -4 -6 -20 -5 -3 -4 -3 -12 -12 -5 -17 -7 -3 -3 -3 -6 -10 -3 -5 -25 -80 -4 -9 -3 -2 -11 -3 -3 -2 -3 -8 -7 -5 -5 -19 -5 -3 -3 -12 -11 -2 -6 -5 -5 -5 -3 -3 -3 -4 -209 -14 -3 -2 -5 -19 -4 -4 -3 -4 -14 -5 -6 -4 -13 -9 -7 -4 -7 -10 -2 -9 -5 -7 -2 -8 -4 -6 -5 -5 -222 -8 -7 -12 -5 -216 -3 -4 -4 -6 -3 -14 -8 -7 -13 -4 -3 -3 -3 -3 -17 -5 -4 -3 -33 -6 -6 -33 -7 -5 -3 -8 -7 -5 -2 -9 -4 -2 -233 -24 -7 -4 -8 -10 -3 -4 -15 -2 -16 -3 -3 -13 -12 -7 -5 -4 -207 -4 -2 -4 -27 -15 -2 -5 -2 -25 -6 -5 -5 -6 -13 -6 -18 -6 -4 -12 -225 -10 -7 -5 -2 -2 -11 -4 -14 -21 -8 -10 -3 -5 -4 -232 -2 -5 -5 -3 -7 -17 -11 -6 -6 -23 -4 -6 -3 -5 -4 -2 -17 -3 -6 -5 -8 -3 -2 -2 -14 -9 -4 -4 -2 -5 -5 -3 -7 -6 -12 -6 -10 -3 -6 -2 -2 -19 -5 -4 -4 -9 -2 -4 -13 -3 -5 -6 -3 -6 -5 -4 -9 -6 -3 -5 -7 -3 -6 -6 -4 -3 -10 -6 -3 -221 -3 -5 -3 -6 -4 -8 -5 -3 -6 -4 -4 -2 -54 -5 -6 -11 -3 -3 -4 -4 -4 -3 -7 -3 -11 -11 -7 -10 -6 -13 -223 -213 -15 -231 -7 -3 -7 -228 -2 -3 -4 -4 -5 -6 -7 -4 -13 -3 -4 -5 -3 -6 -4 -6 -7 -2 -4 -3 -4 -3 -3 -6 -3 -7 -3 -5 -18 -5 -6 -8 -10 -3 -3 -3 -2 -4 -2 -4 -4 -5 -6 -6 -4 -10 -13 -3 -12 -5 -12 -16 -8 -4 -19 -11 -2 -4 -5 -6 -8 -5 -6 -4 -18 -10 -4 -2 -216 -6 -6 -6 -2 -4 -12 -8 -3 -11 -5 -6 -14 -5 -3 -13 -4 -5 -4 -5 -3 -28 -6 -3 -7 -219 -3 -9 -7 -3 -10 -6 -3 -4 -19 -5 -7 -11 -6 -15 -19 -4 -13 -11 -3 -7 -5 -10 -2 -8 -11 -2 -6 -4 -6 -24 -6 -3 -3 -3 -3 -6 -18 -4 -11 -4 -2 -5 -10 -8 -3 -9 -5 -3 -4 -5 -6 -2 -5 -7 -4 -4 -14 -6 -4 -4 -5 -5 -7 -2 -4 -3 -7 -3 -3 -6 -4 -5 -4 -4 -4 -3 -3 -3 -3 -8 -14 -2 -3 -5 -3 -2 -4 -5 -3 -7 -3 -3 -18 -3 -4 -4 -5 -7 -3 -3 -3 -13 -5 -4 -8 -211 -5 -5 -3 -5 -2 -5 -4 -2 -655 -6 -3 -5 -11 -2 -5 -3 -12 -9 -15 -11 -5 -12 -217 -2 -6 -17 -3 -3 -207 -5 -5 -4 -5 -9 -3 -2 -8 -5 -4 -3 -2 -5 -12 -4 -14 -5 -4 -2 -13 -5 -8 -4 -225 -4 -3 -4 -5 -4 -3 -3 -6 -23 -9 -2 -6 -7 -233 -4 -4 -6 -18 -3 -4 -6 -3 -4 -4 -2 -3 -7 -4 -13 -227 -4 -3 -5 -4 -2 -12 -9 -17 -3 -7 -14 -6 -4 -5 -21 -4 -8 -9 -2 -9 -25 -16 -3 -6 -4 -7 -8 -5 -2 -3 -5 -4 -3 -3 -5 -3 -3 -3 -2 -3 -19 -2 -4 -3 -4 -2 -3 -4 -4 -2 -4 -3 -3 -3 -2 -6 -3 -17 -5 -6 -4 -3 -13 -5 -3 -3 -3 -4 -9 -4 -2 -14 -12 -4 -5 -24 -4 -3 -37 -12 -11 -21 -3 -4 -3 -13 -4 -2 -3 -15 -4 -11 -4 -4 -3 -8 -3 -4 -4 -12 -8 -5 -3 -3 -4 -2 -220 -3 -5 -223 -3 -3 -3 -10 -3 -15 -4 -241 -9 -7 -3 -6 -6 -23 -4 -13 -7 -3 -4 -7 -4 -9 -3 -3 -4 -10 -5 -5 -1 -5 -24 -2 -4 -5 -5 -6 -14 -3 -8 -2 -3 -5 -13 -13 -3 -5 -2 -3 -15 -3 -4 -2 -10 -4 -4 -4 -5 -5 -3 -5 -3 -4 -7 -4 -27 -3 -6 -4 -15 -3 -5 -6 -6 -5 -4 -8 -3 -9 -2 -6 -3 -4 -3 -7 -4 -18 -3 -11 -3 -3 -8 -9 -7 -24 -3 -219 -7 -10 -4 -5 -9 -12 -2 -5 -4 -4 -4 -3 -3 -19 -5 -8 -16 -8 -6 -22 -3 -23 -3 -242 -9 -4 -3 -3 -5 -7 -3 -3 -5 -8 -3 -7 -5 -14 -8 -10 -3 -4 -3 -7 -4 -6 -7 -4 -10 -4 -3 -11 -3 -7 -10 -3 -13 -6 -8 -12 -10 -5 -7 -9 -3 -4 -7 -7 -10 -8 -30 -9 -19 -4 -3 -19 -15 -4 -13 -3 -215 -223 -4 -7 -4 -8 -17 -16 -3 -7 -6 -5 -5 -4 -12 -3 -7 -4 -4 -13 -4 -5 -2 -5 -6 -5 -6 -6 -7 -10 -18 -23 -9 -3 -3 -6 -5 -2 -4 -2 -7 -3 -3 -2 -5 -5 -14 -10 -224 -6 -3 -4 -3 -7 -5 -9 -3 -6 -4 -2 -5 -11 -4 -3 -3 -2 -8 -4 -7 -4 -10 -7 -3 -3 -18 -18 -17 -3 -3 -3 -4 -5 -3 -3 -4 -12 -7 -3 -11 -13 -5 -4 -7 -13 -5 -4 -11 -3 -12 -3 -6 -4 -4 -21 -4 -6 -9 -5 -3 -10 -8 -4 -6 -4 -4 -6 -5 -4 -8 -6 -4 -6 -4 -4 -5 -9 -6 -3 -4 -2 -9 -3 -18 -2 -4 -3 -13 -3 -6 -6 -8 -7 -9 -3 -2 -16 -3 -4 -6 -3 -2 -33 -22 -14 -4 -9 -12 -4 -5 -6 -3 -23 -9 -4 -3 -5 -5 -3 -4 -5 -3 -5 -3 -10 -4 -5 -5 -8 -4 -4 -6 -8 -5 -4 -3 -4 -6 -3 -3 -3 -5 -9 -12 -6 -5 -9 -3 -5 -3 -2 -2 -2 -18 -3 -2 -21 -2 -5 -4 -6 -4 -5 -10 -3 -9 -3 -2 -10 -7 -3 -6 -6 -4 -4 -8 -12 -7 -3 -7 -3 -3 -9 -3 -4 -5 -4 -4 -5 -5 -10 -15 -4 -4 -14 -6 -227 -3 -14 -5 -216 -22 -5 -4 -2 -2 -6 -3 -4 -2 -9 -9 -4 -3 -28 -13 -11 -4 -5 -3 -3 -2 -3 -3 -5 -3 -4 -3 -5 -23 -26 -3 -4 -5 -6 -4 -6 -3 -5 -5 -3 -4 -3 -2 -2 -2 -7 -14 -3 -6 -7 -17 -2 -2 -15 -14 -16 -4 -6 -7 -13 -6 -4 -5 -6 -16 -3 -3 -28 -3 -6 -15 -3 -9 -2 -4 -6 -3 -3 -22 -4 -12 -6 -7 -2 -5 -4 -10 -3 -16 -6 -9 -2 -5 -12 -7 -5 -5 -5 -5 -2 -11 -9 -17 -4 -3 -11 -7 -3 -5 -15 -4 -3 -4 -211 -8 -7 -5 -4 -7 -6 -7 -6 -3 -6 -5 -6 -5 -3 -4 -4 -26 -4 -6 -10 -4 -4 -3 -2 -3 -3 -4 -5 -9 -3 -9 -4 -4 -5 -5 -8 -2 -4 -2 -3 -8 -4 -11 -19 -5 -8 -6 -3 -5 -6 -12 -3 -2 -4 -16 -12 -3 -4 -4 -8 -6 -5 -6 -6 -219 -8 -222 -6 -16 -3 -13 -19 -5 -4 -3 -11 -6 -10 -4 -7 -7 -12 -5 -3 -3 -5 -6 -10 -3 -8 -2 -5 -4 -7 -2 -4 -4 -2 -12 -9 -6 -4 -2 -40 -2 -4 -10 -4 -223 -4 -2 -20 -6 -7 -24 -5 -4 -5 -2 -20 -16 -6 -5 -13 -2 -3 -3 -19 -3 -2 -4 -5 -6 -7 -11 -12 -5 -6 -7 -7 -3 -5 -3 -5 -3 -14 -3 -4 -4 -2 -11 -1 -7 -3 -9 -6 -11 -12 -5 -8 -6 -221 -4 -2 -12 -4 -3 -15 -4 -5 -226 -7 -218 -7 -5 -4 -5 -18 -4 -5 -9 -4 -4 -2 -9 -18 -18 -9 -5 -6 -6 -3 -3 -7 -3 -5 -4 -4 -4 -12 -3 -6 -31 -5 -4 -7 -3 -6 -5 -6 -5 -11 -2 -2 -11 -11 -6 -7 -5 -8 -7 -10 -5 -23 -7 -4 -3 -5 -34 -2 -5 -23 -7 -3 -6 -8 -4 -4 -4 -2 -5 -3 -8 -5 -4 -8 -25 -2 -3 -17 -8 -3 -4 -8 -7 -3 -15 -6 -5 -7 -21 -9 -5 -6 -6 -5 -3 -2 -3 -10 -3 -6 -3 -14 -7 -4 -4 -8 -7 -8 -2 -6 -12 -4 -213 -6 -5 -21 -8 -2 -5 -23 -3 -11 -2 -3 -6 -25 -2 -3 -6 -7 -6 -6 -4 -4 -6 -3 -17 -9 -7 -6 -4 -3 -10 -7 -2 -3 -3 -3 -11 -8 -3 -7 -6 -4 -14 -36 -3 -4 -3 -3 -22 -13 -21 -4 -2 -7 -4 -4 -17 -15 -3 -7 -11 -2 -4 -7 -6 -209 -6 -3 -2 -2 -24 -4 -9 -4 -3 -3 -3 -29 -2 -2 -4 -3 -3 -5 -4 -6 -3 -3 -2 -4 diff --git a/1.4/vendor/github.com/beorn7/perks/quantile/stream.go b/1.4/vendor/github.com/beorn7/perks/quantile/stream.go deleted file mode 100644 index 587b1fc5..00000000 --- a/1.4/vendor/github.com/beorn7/perks/quantile/stream.go +++ /dev/null @@ -1,292 +0,0 @@ -// Package quantile computes approximate quantiles over an unbounded data -// stream within low memory and CPU bounds. -// -// A small amount of accuracy is traded to achieve the above properties. -// -// Multiple streams can be merged before calling Query to generate a single set -// of results. This is meaningful when the streams represent the same type of -// data. See Merge and Samples. -// -// For more detailed information about the algorithm used, see: -// -// Effective Computation of Biased Quantiles over Data Streams -// -// http://www.cs.rutgers.edu/~muthu/bquant.pdf -package quantile - -import ( - "math" - "sort" -) - -// Sample holds an observed value and meta information for compression. JSON -// tags have been added for convenience. -type Sample struct { - Value float64 `json:",string"` - Width float64 `json:",string"` - Delta float64 `json:",string"` -} - -// Samples represents a slice of samples. It implements sort.Interface. -type Samples []Sample - -func (a Samples) Len() int { return len(a) } -func (a Samples) Less(i, j int) bool { return a[i].Value < a[j].Value } -func (a Samples) Swap(i, j int) { a[i], a[j] = a[j], a[i] } - -type invariant func(s *stream, r float64) float64 - -// NewLowBiased returns an initialized Stream for low-biased quantiles -// (e.g. 0.01, 0.1, 0.5) where the needed quantiles are not known a priori, but -// error guarantees can still be given even for the lower ranks of the data -// distribution. -// -// The provided epsilon is a relative error, i.e. the true quantile of a value -// returned by a query is guaranteed to be within (1±Epsilon)*Quantile. -// -// See http://www.cs.rutgers.edu/~muthu/bquant.pdf for time, space, and error -// properties. -func NewLowBiased(epsilon float64) *Stream { - ƒ := func(s *stream, r float64) float64 { - return 2 * epsilon * r - } - return newStream(ƒ) -} - -// NewHighBiased returns an initialized Stream for high-biased quantiles -// (e.g. 0.01, 0.1, 0.5) where the needed quantiles are not known a priori, but -// error guarantees can still be given even for the higher ranks of the data -// distribution. -// -// The provided epsilon is a relative error, i.e. the true quantile of a value -// returned by a query is guaranteed to be within 1-(1±Epsilon)*(1-Quantile). -// -// See http://www.cs.rutgers.edu/~muthu/bquant.pdf for time, space, and error -// properties. -func NewHighBiased(epsilon float64) *Stream { - ƒ := func(s *stream, r float64) float64 { - return 2 * epsilon * (s.n - r) - } - return newStream(ƒ) -} - -// NewTargeted returns an initialized Stream concerned with a particular set of -// quantile values that are supplied a priori. Knowing these a priori reduces -// space and computation time. The targets map maps the desired quantiles to -// their absolute errors, i.e. the true quantile of a value returned by a query -// is guaranteed to be within (Quantile±Epsilon). -// -// See http://www.cs.rutgers.edu/~muthu/bquant.pdf for time, space, and error properties. -func NewTargeted(targets map[float64]float64) *Stream { - ƒ := func(s *stream, r float64) float64 { - var m = math.MaxFloat64 - var f float64 - for quantile, epsilon := range targets { - if quantile*s.n <= r { - f = (2 * epsilon * r) / quantile - } else { - f = (2 * epsilon * (s.n - r)) / (1 - quantile) - } - if f < m { - m = f - } - } - return m - } - return newStream(ƒ) -} - -// Stream computes quantiles for a stream of float64s. It is not thread-safe by -// design. Take care when using across multiple goroutines. -type Stream struct { - *stream - b Samples - sorted bool -} - -func newStream(ƒ invariant) *Stream { - x := &stream{ƒ: ƒ} - return &Stream{x, make(Samples, 0, 500), true} -} - -// Insert inserts v into the stream. -func (s *Stream) Insert(v float64) { - s.insert(Sample{Value: v, Width: 1}) -} - -func (s *Stream) insert(sample Sample) { - s.b = append(s.b, sample) - s.sorted = false - if len(s.b) == cap(s.b) { - s.flush() - } -} - -// Query returns the computed qth percentiles value. If s was created with -// NewTargeted, and q is not in the set of quantiles provided a priori, Query -// will return an unspecified result. -func (s *Stream) Query(q float64) float64 { - if !s.flushed() { - // Fast path when there hasn't been enough data for a flush; - // this also yields better accuracy for small sets of data. - l := len(s.b) - if l == 0 { - return 0 - } - i := int(float64(l) * q) - if i > 0 { - i -= 1 - } - s.maybeSort() - return s.b[i].Value - } - s.flush() - return s.stream.query(q) -} - -// Merge merges samples into the underlying streams samples. This is handy when -// merging multiple streams from separate threads, database shards, etc. -// -// ATTENTION: This method is broken and does not yield correct results. The -// underlying algorithm is not capable of merging streams correctly. -func (s *Stream) Merge(samples Samples) { - sort.Sort(samples) - s.stream.merge(samples) -} - -// Reset reinitializes and clears the list reusing the samples buffer memory. -func (s *Stream) Reset() { - s.stream.reset() - s.b = s.b[:0] -} - -// Samples returns stream samples held by s. -func (s *Stream) Samples() Samples { - if !s.flushed() { - return s.b - } - s.flush() - return s.stream.samples() -} - -// Count returns the total number of samples observed in the stream -// since initialization. -func (s *Stream) Count() int { - return len(s.b) + s.stream.count() -} - -func (s *Stream) flush() { - s.maybeSort() - s.stream.merge(s.b) - s.b = s.b[:0] -} - -func (s *Stream) maybeSort() { - if !s.sorted { - s.sorted = true - sort.Sort(s.b) - } -} - -func (s *Stream) flushed() bool { - return len(s.stream.l) > 0 -} - -type stream struct { - n float64 - l []Sample - ƒ invariant -} - -func (s *stream) reset() { - s.l = s.l[:0] - s.n = 0 -} - -func (s *stream) insert(v float64) { - s.merge(Samples{{v, 1, 0}}) -} - -func (s *stream) merge(samples Samples) { - // TODO(beorn7): This tries to merge not only individual samples, but - // whole summaries. The paper doesn't mention merging summaries at - // all. Unittests show that the merging is inaccurate. Find out how to - // do merges properly. - var r float64 - i := 0 - for _, sample := range samples { - for ; i < len(s.l); i++ { - c := s.l[i] - if c.Value > sample.Value { - // Insert at position i. - s.l = append(s.l, Sample{}) - copy(s.l[i+1:], s.l[i:]) - s.l[i] = Sample{ - sample.Value, - sample.Width, - math.Max(sample.Delta, math.Floor(s.ƒ(s, r))-1), - // TODO(beorn7): How to calculate delta correctly? - } - i++ - goto inserted - } - r += c.Width - } - s.l = append(s.l, Sample{sample.Value, sample.Width, 0}) - i++ - inserted: - s.n += sample.Width - r += sample.Width - } - s.compress() -} - -func (s *stream) count() int { - return int(s.n) -} - -func (s *stream) query(q float64) float64 { - t := math.Ceil(q * s.n) - t += math.Ceil(s.ƒ(s, t) / 2) - p := s.l[0] - var r float64 - for _, c := range s.l[1:] { - r += p.Width - if r+c.Width+c.Delta > t { - return p.Value - } - p = c - } - return p.Value -} - -func (s *stream) compress() { - if len(s.l) < 2 { - return - } - x := s.l[len(s.l)-1] - xi := len(s.l) - 1 - r := s.n - 1 - x.Width - - for i := len(s.l) - 2; i >= 0; i-- { - c := s.l[i] - if c.Width+x.Width+x.Delta <= s.ƒ(s, r) { - x.Width += c.Width - s.l[xi] = x - // Remove element at i. - copy(s.l[i:], s.l[i+1:]) - s.l = s.l[:len(s.l)-1] - xi -= 1 - } else { - x = c - xi = i - } - r -= c.Width - } -} - -func (s *stream) samples() Samples { - samples := make(Samples, len(s.l)) - copy(samples, s.l) - return samples -} diff --git a/1.4/vendor/github.com/emicklei/go-restful/bench_test.sh b/1.4/vendor/github.com/emicklei/go-restful/bench_test.sh new file mode 100644 index 00000000..47ffbe4a --- /dev/null +++ b/1.4/vendor/github.com/emicklei/go-restful/bench_test.sh @@ -0,0 +1,10 @@ +#go test -run=none -file bench_test.go -test.bench . -cpuprofile=bench_test.out + +go test -c +./go-restful.test -test.run=none -test.cpuprofile=tmp.prof -test.bench=BenchmarkMany +./go-restful.test -test.run=none -test.cpuprofile=curly.prof -test.bench=BenchmarkManyCurly + +#go tool pprof go-restful.test tmp.prof +go tool pprof go-restful.test curly.prof + + diff --git a/1.4/vendor/github.com/emicklei/go-restful/container.go b/1.4/vendor/github.com/emicklei/go-restful/container.go index 62ded27c..4e53cccb 100644 --- a/1.4/vendor/github.com/emicklei/go-restful/container.go +++ b/1.4/vendor/github.com/emicklei/go-restful/container.go @@ -283,12 +283,12 @@ func fixedPrefixPath(pathspec string) string { } // ServeHTTP implements net/http.Handler therefore a Container can be a Handler in a http.Server -func (c Container) ServeHTTP(httpwriter http.ResponseWriter, httpRequest *http.Request) { +func (c *Container) ServeHTTP(httpwriter http.ResponseWriter, httpRequest *http.Request) { c.ServeMux.ServeHTTP(httpwriter, httpRequest) } // Handle registers the handler for the given pattern. If a handler already exists for pattern, Handle panics. -func (c Container) Handle(pattern string, handler http.Handler) { +func (c *Container) Handle(pattern string, handler http.Handler) { c.ServeMux.Handle(pattern, handler) } @@ -318,7 +318,7 @@ func (c *Container) Filter(filter FilterFunction) { } // RegisteredWebServices returns the collections of added WebServices -func (c Container) RegisteredWebServices() []*WebService { +func (c *Container) RegisteredWebServices() []*WebService { c.webServicesLock.RLock() defer c.webServicesLock.RUnlock() result := make([]*WebService, len(c.webServices)) @@ -329,7 +329,7 @@ func (c Container) RegisteredWebServices() []*WebService { } // computeAllowedMethods returns a list of HTTP methods that are valid for a Request -func (c Container) computeAllowedMethods(req *Request) []string { +func (c *Container) computeAllowedMethods(req *Request) []string { // Go through all RegisteredWebServices() and all its Routes to collect the options methods := []string{} requestPath := req.Request.URL.Path diff --git a/1.4/vendor/github.com/emicklei/go-restful/coverage.sh b/1.4/vendor/github.com/emicklei/go-restful/coverage.sh new file mode 100644 index 00000000..e27dbf1a --- /dev/null +++ b/1.4/vendor/github.com/emicklei/go-restful/coverage.sh @@ -0,0 +1,2 @@ +go test -coverprofile=coverage.out +go tool cover -html=coverage.out \ No newline at end of file diff --git a/1.4/vendor/github.com/emicklei/go-restful/install.sh b/1.4/vendor/github.com/emicklei/go-restful/install.sh new file mode 100644 index 00000000..36cbf25f --- /dev/null +++ b/1.4/vendor/github.com/emicklei/go-restful/install.sh @@ -0,0 +1,10 @@ +go test -test.v ...restful && \ +go test -test.v ...swagger && \ +go vet ...restful && \ +go fmt ...swagger && \ +go install ...swagger && \ +go fmt ...restful && \ +go install ...restful +cd examples + ls *.go | xargs -I {} go build -o /tmp/ignore {} + cd .. \ No newline at end of file diff --git a/1.4/vendor/github.com/emicklei/go-restful/swagger/model_builder.go b/1.4/vendor/github.com/emicklei/go-restful/swagger/model_builder.go index 085b6ab9..3d674cc3 100644 --- a/1.4/vendor/github.com/emicklei/go-restful/swagger/model_builder.go +++ b/1.4/vendor/github.com/emicklei/go-restful/swagger/model_builder.go @@ -51,6 +51,14 @@ func (b modelBuilder) addModel(st reflect.Type, nameOverride string) *Model { if b.isPrimitiveType(modelName) { return nil } + // golang encoding/json packages says array and slice values encode as + // JSON arrays, except that []byte encodes as a base64-encoded string. + // If we see a []byte here, treat it at as a primitive type (string) + // and deal with it in buildArrayTypeProperty. + if (st.Kind() == reflect.Slice || st.Kind() == reflect.Array) && + st.Elem().Kind() == reflect.Uint8 { + return nil + } // see if we already have visited this model if _, ok := b.Models.At(modelName); ok { return nil @@ -276,6 +284,11 @@ func (b modelBuilder) buildArrayTypeProperty(field reflect.StructField, jsonName return jsonName, prop } fieldType := field.Type + if fieldType.Elem().Kind() == reflect.Uint8 { + stringt := "string" + prop.Type = &stringt + return jsonName, prop + } var pType = "array" prop.Type = &pType isPrimitive := b.isPrimitiveType(fieldType.Elem().Name()) diff --git a/1.4/vendor/github.com/emicklei/go-restful/swagger/swagger.go b/1.4/vendor/github.com/emicklei/go-restful/swagger/swagger.go index 967b6711..9c40833e 100644 --- a/1.4/vendor/github.com/emicklei/go-restful/swagger/swagger.go +++ b/1.4/vendor/github.com/emicklei/go-restful/swagger/swagger.go @@ -118,6 +118,7 @@ type ApiDeclaration struct { ApiVersion string `json:"apiVersion"` BasePath string `json:"basePath"` ResourcePath string `json:"resourcePath"` // must start with / + Info Info `json:"info"` Apis []Api `json:"apis,omitempty"` Models ModelList `json:"models,omitempty"` Produces []string `json:"produces,omitempty"` diff --git a/1.4/vendor/github.com/emicklei/go-restful/web_service.go b/1.4/vendor/github.com/emicklei/go-restful/web_service.go index 24fc5328..2a51004f 100644 --- a/1.4/vendor/github.com/emicklei/go-restful/web_service.go +++ b/1.4/vendor/github.com/emicklei/go-restful/web_service.go @@ -1,7 +1,7 @@ package restful import ( - "fmt" + "errors" "os" "sync" @@ -51,7 +51,7 @@ func (w *WebService) ApiVersion(apiVersion string) *WebService { } // Version returns the API version for documentation purposes. -func (w WebService) Version() string { return w.apiVersion } +func (w *WebService) Version() string { return w.apiVersion } // Path specifies the root URL template path of the WebService. // All Routes will be relative to this path. @@ -155,7 +155,7 @@ func (w *WebService) Route(builder *RouteBuilder) *WebService { // RemoveRoute removes the specified route, looks for something that matches 'path' and 'method' func (w *WebService) RemoveRoute(path, method string) error { if !w.dynamicRoutes { - return fmt.Errorf("dynamic routes are not enabled.") + return errors.New("dynamic routes are not enabled.") } w.routesLock.Lock() defer w.routesLock.Unlock() @@ -192,7 +192,7 @@ func (w *WebService) Consumes(accepts ...string) *WebService { } // Routes returns the Routes associated with this WebService -func (w WebService) Routes() []Route { +func (w *WebService) Routes() []Route { if !w.dynamicRoutes { return w.routes } @@ -207,12 +207,12 @@ func (w WebService) Routes() []Route { } // RootPath returns the RootPath associated with this WebService. Default "/" -func (w WebService) RootPath() string { +func (w *WebService) RootPath() string { return w.rootPath } // PathParameters return the path parameter names for (shared amoung its Routes) -func (w WebService) PathParameters() []*Parameter { +func (w *WebService) PathParameters() []*Parameter { return w.pathParameters } @@ -229,7 +229,7 @@ func (w *WebService) Doc(plainText string) *WebService { } // Documentation returns it. -func (w WebService) Documentation() string { +func (w *WebService) Documentation() string { return w.documentation } diff --git a/1.4/vendor/github.com/ghodss/yaml/.travis.yml b/1.4/vendor/github.com/ghodss/yaml/.travis.yml new file mode 100644 index 00000000..0e9d6edc --- /dev/null +++ b/1.4/vendor/github.com/ghodss/yaml/.travis.yml @@ -0,0 +1,7 @@ +language: go +go: + - 1.3 + - 1.4 +script: + - go test + - go build diff --git a/1.4/vendor/github.com/golang/protobuf/LICENSE b/1.4/vendor/github.com/golang/protobuf/LICENSE deleted file mode 100644 index 1b1b1921..00000000 --- a/1.4/vendor/github.com/golang/protobuf/LICENSE +++ /dev/null @@ -1,31 +0,0 @@ -Go support for Protocol Buffers - Google's data interchange format - -Copyright 2010 The Go Authors. All rights reserved. -https://github.com/golang/protobuf - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - diff --git a/1.4/vendor/github.com/golang/protobuf/proto/Makefile b/1.4/vendor/github.com/golang/protobuf/proto/Makefile deleted file mode 100644 index e2e0651a..00000000 --- a/1.4/vendor/github.com/golang/protobuf/proto/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -# Go support for Protocol Buffers - Google's data interchange format -# -# Copyright 2010 The Go Authors. All rights reserved. -# https://github.com/golang/protobuf -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are -# met: -# -# * Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# * Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following disclaimer -# in the documentation and/or other materials provided with the -# distribution. -# * Neither the name of Google Inc. nor the names of its -# contributors may be used to endorse or promote products derived from -# this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -install: - go install - -test: install generate-test-pbs - go test - - -generate-test-pbs: - make install - make -C testdata - protoc --go_out=Mtestdata/test.proto=github.com/golang/protobuf/proto/testdata,Mgoogle/protobuf/any.proto=github.com/golang/protobuf/ptypes/any:. proto3_proto/proto3.proto - make diff --git a/1.4/vendor/github.com/golang/protobuf/proto/clone.go b/1.4/vendor/github.com/golang/protobuf/proto/clone.go deleted file mode 100644 index e392575b..00000000 --- a/1.4/vendor/github.com/golang/protobuf/proto/clone.go +++ /dev/null @@ -1,229 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2011 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Protocol buffer deep copy and merge. -// TODO: RawMessage. - -package proto - -import ( - "log" - "reflect" - "strings" -) - -// Clone returns a deep copy of a protocol buffer. -func Clone(pb Message) Message { - in := reflect.ValueOf(pb) - if in.IsNil() { - return pb - } - - out := reflect.New(in.Type().Elem()) - // out is empty so a merge is a deep copy. - mergeStruct(out.Elem(), in.Elem()) - return out.Interface().(Message) -} - -// Merge merges src into dst. -// Required and optional fields that are set in src will be set to that value in dst. -// Elements of repeated fields will be appended. -// Merge panics if src and dst are not the same type, or if dst is nil. -func Merge(dst, src Message) { - in := reflect.ValueOf(src) - out := reflect.ValueOf(dst) - if out.IsNil() { - panic("proto: nil destination") - } - if in.Type() != out.Type() { - // Explicit test prior to mergeStruct so that mistyped nils will fail - panic("proto: type mismatch") - } - if in.IsNil() { - // Merging nil into non-nil is a quiet no-op - return - } - mergeStruct(out.Elem(), in.Elem()) -} - -func mergeStruct(out, in reflect.Value) { - sprop := GetProperties(in.Type()) - for i := 0; i < in.NumField(); i++ { - f := in.Type().Field(i) - if strings.HasPrefix(f.Name, "XXX_") { - continue - } - mergeAny(out.Field(i), in.Field(i), false, sprop.Prop[i]) - } - - if emIn, ok := extendable(in.Addr().Interface()); ok { - emOut, _ := extendable(out.Addr().Interface()) - mIn, muIn := emIn.extensionsRead() - if mIn != nil { - mOut := emOut.extensionsWrite() - muIn.Lock() - mergeExtension(mOut, mIn) - muIn.Unlock() - } - } - - uf := in.FieldByName("XXX_unrecognized") - if !uf.IsValid() { - return - } - uin := uf.Bytes() - if len(uin) > 0 { - out.FieldByName("XXX_unrecognized").SetBytes(append([]byte(nil), uin...)) - } -} - -// mergeAny performs a merge between two values of the same type. -// viaPtr indicates whether the values were indirected through a pointer (implying proto2). -// prop is set if this is a struct field (it may be nil). -func mergeAny(out, in reflect.Value, viaPtr bool, prop *Properties) { - if in.Type() == protoMessageType { - if !in.IsNil() { - if out.IsNil() { - out.Set(reflect.ValueOf(Clone(in.Interface().(Message)))) - } else { - Merge(out.Interface().(Message), in.Interface().(Message)) - } - } - return - } - switch in.Kind() { - case reflect.Bool, reflect.Float32, reflect.Float64, reflect.Int32, reflect.Int64, - reflect.String, reflect.Uint32, reflect.Uint64: - if !viaPtr && isProto3Zero(in) { - return - } - out.Set(in) - case reflect.Interface: - // Probably a oneof field; copy non-nil values. - if in.IsNil() { - return - } - // Allocate destination if it is not set, or set to a different type. - // Otherwise we will merge as normal. - if out.IsNil() || out.Elem().Type() != in.Elem().Type() { - out.Set(reflect.New(in.Elem().Elem().Type())) // interface -> *T -> T -> new(T) - } - mergeAny(out.Elem(), in.Elem(), false, nil) - case reflect.Map: - if in.Len() == 0 { - return - } - if out.IsNil() { - out.Set(reflect.MakeMap(in.Type())) - } - // For maps with value types of *T or []byte we need to deep copy each value. - elemKind := in.Type().Elem().Kind() - for _, key := range in.MapKeys() { - var val reflect.Value - switch elemKind { - case reflect.Ptr: - val = reflect.New(in.Type().Elem().Elem()) - mergeAny(val, in.MapIndex(key), false, nil) - case reflect.Slice: - val = in.MapIndex(key) - val = reflect.ValueOf(append([]byte{}, val.Bytes()...)) - default: - val = in.MapIndex(key) - } - out.SetMapIndex(key, val) - } - case reflect.Ptr: - if in.IsNil() { - return - } - if out.IsNil() { - out.Set(reflect.New(in.Elem().Type())) - } - mergeAny(out.Elem(), in.Elem(), true, nil) - case reflect.Slice: - if in.IsNil() { - return - } - if in.Type().Elem().Kind() == reflect.Uint8 { - // []byte is a scalar bytes field, not a repeated field. - - // Edge case: if this is in a proto3 message, a zero length - // bytes field is considered the zero value, and should not - // be merged. - if prop != nil && prop.proto3 && in.Len() == 0 { - return - } - - // Make a deep copy. - // Append to []byte{} instead of []byte(nil) so that we never end up - // with a nil result. - out.SetBytes(append([]byte{}, in.Bytes()...)) - return - } - n := in.Len() - if out.IsNil() { - out.Set(reflect.MakeSlice(in.Type(), 0, n)) - } - switch in.Type().Elem().Kind() { - case reflect.Bool, reflect.Float32, reflect.Float64, reflect.Int32, reflect.Int64, - reflect.String, reflect.Uint32, reflect.Uint64: - out.Set(reflect.AppendSlice(out, in)) - default: - for i := 0; i < n; i++ { - x := reflect.Indirect(reflect.New(in.Type().Elem())) - mergeAny(x, in.Index(i), false, nil) - out.Set(reflect.Append(out, x)) - } - } - case reflect.Struct: - mergeStruct(out, in) - default: - // unknown type, so not a protocol buffer - log.Printf("proto: don't know how to copy %v", in) - } -} - -func mergeExtension(out, in map[int32]Extension) { - for extNum, eIn := range in { - eOut := Extension{desc: eIn.desc} - if eIn.value != nil { - v := reflect.New(reflect.TypeOf(eIn.value)).Elem() - mergeAny(v, reflect.ValueOf(eIn.value), false, nil) - eOut.value = v.Interface() - } - if eIn.enc != nil { - eOut.enc = make([]byte, len(eIn.enc)) - copy(eOut.enc, eIn.enc) - } - - out[extNum] = eOut - } -} diff --git a/1.4/vendor/github.com/golang/protobuf/proto/decode.go b/1.4/vendor/github.com/golang/protobuf/proto/decode.go deleted file mode 100644 index 07288a25..00000000 --- a/1.4/vendor/github.com/golang/protobuf/proto/decode.go +++ /dev/null @@ -1,869 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Routines for decoding protocol buffer data to construct in-memory representations. - */ - -import ( - "errors" - "fmt" - "io" - "os" - "reflect" -) - -// errOverflow is returned when an integer is too large to be represented. -var errOverflow = errors.New("proto: integer overflow") - -// ErrInternalBadWireType is returned by generated code when an incorrect -// wire type is encountered. It does not get returned to user code. -var ErrInternalBadWireType = errors.New("proto: internal error: bad wiretype for oneof") - -// The fundamental decoders that interpret bytes on the wire. -// Those that take integer types all return uint64 and are -// therefore of type valueDecoder. - -// DecodeVarint reads a varint-encoded integer from the slice. -// It returns the integer and the number of bytes consumed, or -// zero if there is not enough. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -func DecodeVarint(buf []byte) (x uint64, n int) { - // x, n already 0 - for shift := uint(0); shift < 64; shift += 7 { - if n >= len(buf) { - return 0, 0 - } - b := uint64(buf[n]) - n++ - x |= (b & 0x7F) << shift - if (b & 0x80) == 0 { - return x, n - } - } - - // The number is too large to represent in a 64-bit value. - return 0, 0 -} - -// DecodeVarint reads a varint-encoded integer from the Buffer. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -func (p *Buffer) DecodeVarint() (x uint64, err error) { - // x, err already 0 - - i := p.index - l := len(p.buf) - - for shift := uint(0); shift < 64; shift += 7 { - if i >= l { - err = io.ErrUnexpectedEOF - return - } - b := p.buf[i] - i++ - x |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - p.index = i - return - } - } - - // The number is too large to represent in a 64-bit value. - err = errOverflow - return -} - -// DecodeFixed64 reads a 64-bit integer from the Buffer. -// This is the format for the -// fixed64, sfixed64, and double protocol buffer types. -func (p *Buffer) DecodeFixed64() (x uint64, err error) { - // x, err already 0 - i := p.index + 8 - if i < 0 || i > len(p.buf) { - err = io.ErrUnexpectedEOF - return - } - p.index = i - - x = uint64(p.buf[i-8]) - x |= uint64(p.buf[i-7]) << 8 - x |= uint64(p.buf[i-6]) << 16 - x |= uint64(p.buf[i-5]) << 24 - x |= uint64(p.buf[i-4]) << 32 - x |= uint64(p.buf[i-3]) << 40 - x |= uint64(p.buf[i-2]) << 48 - x |= uint64(p.buf[i-1]) << 56 - return -} - -// DecodeFixed32 reads a 32-bit integer from the Buffer. -// This is the format for the -// fixed32, sfixed32, and float protocol buffer types. -func (p *Buffer) DecodeFixed32() (x uint64, err error) { - // x, err already 0 - i := p.index + 4 - if i < 0 || i > len(p.buf) { - err = io.ErrUnexpectedEOF - return - } - p.index = i - - x = uint64(p.buf[i-4]) - x |= uint64(p.buf[i-3]) << 8 - x |= uint64(p.buf[i-2]) << 16 - x |= uint64(p.buf[i-1]) << 24 - return -} - -// DecodeZigzag64 reads a zigzag-encoded 64-bit integer -// from the Buffer. -// This is the format used for the sint64 protocol buffer type. -func (p *Buffer) DecodeZigzag64() (x uint64, err error) { - x, err = p.DecodeVarint() - if err != nil { - return - } - x = (x >> 1) ^ uint64((int64(x&1)<<63)>>63) - return -} - -// DecodeZigzag32 reads a zigzag-encoded 32-bit integer -// from the Buffer. -// This is the format used for the sint32 protocol buffer type. -func (p *Buffer) DecodeZigzag32() (x uint64, err error) { - x, err = p.DecodeVarint() - if err != nil { - return - } - x = uint64((uint32(x) >> 1) ^ uint32((int32(x&1)<<31)>>31)) - return -} - -// These are not ValueDecoders: they produce an array of bytes or a string. -// bytes, embedded messages - -// DecodeRawBytes reads a count-delimited byte buffer from the Buffer. -// This is the format used for the bytes protocol buffer -// type and for embedded messages. -func (p *Buffer) DecodeRawBytes(alloc bool) (buf []byte, err error) { - n, err := p.DecodeVarint() - if err != nil { - return nil, err - } - - nb := int(n) - if nb < 0 { - return nil, fmt.Errorf("proto: bad byte length %d", nb) - } - end := p.index + nb - if end < p.index || end > len(p.buf) { - return nil, io.ErrUnexpectedEOF - } - - if !alloc { - // todo: check if can get more uses of alloc=false - buf = p.buf[p.index:end] - p.index += nb - return - } - - buf = make([]byte, nb) - copy(buf, p.buf[p.index:]) - p.index += nb - return -} - -// DecodeStringBytes reads an encoded string from the Buffer. -// This is the format used for the proto2 string type. -func (p *Buffer) DecodeStringBytes() (s string, err error) { - buf, err := p.DecodeRawBytes(false) - if err != nil { - return - } - return string(buf), nil -} - -// Skip the next item in the buffer. Its wire type is decoded and presented as an argument. -// If the protocol buffer has extensions, and the field matches, add it as an extension. -// Otherwise, if the XXX_unrecognized field exists, append the skipped data there. -func (o *Buffer) skipAndSave(t reflect.Type, tag, wire int, base structPointer, unrecField field) error { - oi := o.index - - err := o.skip(t, tag, wire) - if err != nil { - return err - } - - if !unrecField.IsValid() { - return nil - } - - ptr := structPointer_Bytes(base, unrecField) - - // Add the skipped field to struct field - obuf := o.buf - - o.buf = *ptr - o.EncodeVarint(uint64(tag<<3 | wire)) - *ptr = append(o.buf, obuf[oi:o.index]...) - - o.buf = obuf - - return nil -} - -// Skip the next item in the buffer. Its wire type is decoded and presented as an argument. -func (o *Buffer) skip(t reflect.Type, tag, wire int) error { - - var u uint64 - var err error - - switch wire { - case WireVarint: - _, err = o.DecodeVarint() - case WireFixed64: - _, err = o.DecodeFixed64() - case WireBytes: - _, err = o.DecodeRawBytes(false) - case WireFixed32: - _, err = o.DecodeFixed32() - case WireStartGroup: - for { - u, err = o.DecodeVarint() - if err != nil { - break - } - fwire := int(u & 0x7) - if fwire == WireEndGroup { - break - } - ftag := int(u >> 3) - err = o.skip(t, ftag, fwire) - if err != nil { - break - } - } - default: - err = fmt.Errorf("proto: can't skip unknown wire type %d for %s", wire, t) - } - return err -} - -// Unmarshaler is the interface representing objects that can -// unmarshal themselves. The method should reset the receiver before -// decoding starts. The argument points to data that may be -// overwritten, so implementations should not keep references to the -// buffer. -type Unmarshaler interface { - Unmarshal([]byte) error -} - -// Unmarshal parses the protocol buffer representation in buf and places the -// decoded result in pb. If the struct underlying pb does not match -// the data in buf, the results can be unpredictable. -// -// Unmarshal resets pb before starting to unmarshal, so any -// existing data in pb is always removed. Use UnmarshalMerge -// to preserve and append to existing data. -func Unmarshal(buf []byte, pb Message) error { - pb.Reset() - return UnmarshalMerge(buf, pb) -} - -// UnmarshalMerge parses the protocol buffer representation in buf and -// writes the decoded result to pb. If the struct underlying pb does not match -// the data in buf, the results can be unpredictable. -// -// UnmarshalMerge merges into existing data in pb. -// Most code should use Unmarshal instead. -func UnmarshalMerge(buf []byte, pb Message) error { - // If the object can unmarshal itself, let it. - if u, ok := pb.(Unmarshaler); ok { - return u.Unmarshal(buf) - } - return NewBuffer(buf).Unmarshal(pb) -} - -// DecodeMessage reads a count-delimited message from the Buffer. -func (p *Buffer) DecodeMessage(pb Message) error { - enc, err := p.DecodeRawBytes(false) - if err != nil { - return err - } - return NewBuffer(enc).Unmarshal(pb) -} - -// DecodeGroup reads a tag-delimited group from the Buffer. -func (p *Buffer) DecodeGroup(pb Message) error { - typ, base, err := getbase(pb) - if err != nil { - return err - } - return p.unmarshalType(typ.Elem(), GetProperties(typ.Elem()), true, base) -} - -// Unmarshal parses the protocol buffer representation in the -// Buffer and places the decoded result in pb. If the struct -// underlying pb does not match the data in the buffer, the results can be -// unpredictable. -func (p *Buffer) Unmarshal(pb Message) error { - // If the object can unmarshal itself, let it. - if u, ok := pb.(Unmarshaler); ok { - err := u.Unmarshal(p.buf[p.index:]) - p.index = len(p.buf) - return err - } - - typ, base, err := getbase(pb) - if err != nil { - return err - } - - err = p.unmarshalType(typ.Elem(), GetProperties(typ.Elem()), false, base) - - if collectStats { - stats.Decode++ - } - - return err -} - -// unmarshalType does the work of unmarshaling a structure. -func (o *Buffer) unmarshalType(st reflect.Type, prop *StructProperties, is_group bool, base structPointer) error { - var state errorState - required, reqFields := prop.reqCount, uint64(0) - - var err error - for err == nil && o.index < len(o.buf) { - oi := o.index - var u uint64 - u, err = o.DecodeVarint() - if err != nil { - break - } - wire := int(u & 0x7) - if wire == WireEndGroup { - if is_group { - return nil // input is satisfied - } - return fmt.Errorf("proto: %s: wiretype end group for non-group", st) - } - tag := int(u >> 3) - if tag <= 0 { - return fmt.Errorf("proto: %s: illegal tag %d (wire type %d)", st, tag, wire) - } - fieldnum, ok := prop.decoderTags.get(tag) - if !ok { - // Maybe it's an extension? - if prop.extendable { - if e, _ := extendable(structPointer_Interface(base, st)); isExtensionField(e, int32(tag)) { - if err = o.skip(st, tag, wire); err == nil { - extmap := e.extensionsWrite() - ext := extmap[int32(tag)] // may be missing - ext.enc = append(ext.enc, o.buf[oi:o.index]...) - extmap[int32(tag)] = ext - } - continue - } - } - // Maybe it's a oneof? - if prop.oneofUnmarshaler != nil { - m := structPointer_Interface(base, st).(Message) - // First return value indicates whether tag is a oneof field. - ok, err = prop.oneofUnmarshaler(m, tag, wire, o) - if err == ErrInternalBadWireType { - // Map the error to something more descriptive. - // Do the formatting here to save generated code space. - err = fmt.Errorf("bad wiretype for oneof field in %T", m) - } - if ok { - continue - } - } - err = o.skipAndSave(st, tag, wire, base, prop.unrecField) - continue - } - p := prop.Prop[fieldnum] - - if p.dec == nil { - fmt.Fprintf(os.Stderr, "proto: no protobuf decoder for %s.%s\n", st, st.Field(fieldnum).Name) - continue - } - dec := p.dec - if wire != WireStartGroup && wire != p.WireType { - if wire == WireBytes && p.packedDec != nil { - // a packable field - dec = p.packedDec - } else { - err = fmt.Errorf("proto: bad wiretype for field %s.%s: got wiretype %d, want %d", st, st.Field(fieldnum).Name, wire, p.WireType) - continue - } - } - decErr := dec(o, p, base) - if decErr != nil && !state.shouldContinue(decErr, p) { - err = decErr - } - if err == nil && p.Required { - // Successfully decoded a required field. - if tag <= 64 { - // use bitmap for fields 1-64 to catch field reuse. - var mask uint64 = 1 << uint64(tag-1) - if reqFields&mask == 0 { - // new required field - reqFields |= mask - required-- - } - } else { - // This is imprecise. It can be fooled by a required field - // with a tag > 64 that is encoded twice; that's very rare. - // A fully correct implementation would require allocating - // a data structure, which we would like to avoid. - required-- - } - } - } - if err == nil { - if is_group { - return io.ErrUnexpectedEOF - } - if state.err != nil { - return state.err - } - if required > 0 { - // Not enough information to determine the exact field. If we use extra - // CPU, we could determine the field only if the missing required field - // has a tag <= 64 and we check reqFields. - return &RequiredNotSetError{"{Unknown}"} - } - } - return err -} - -// Individual type decoders -// For each, -// u is the decoded value, -// v is a pointer to the field (pointer) in the struct - -// Sizes of the pools to allocate inside the Buffer. -// The goal is modest amortization and allocation -// on at least 16-byte boundaries. -const ( - boolPoolSize = 16 - uint32PoolSize = 8 - uint64PoolSize = 4 -) - -// Decode a bool. -func (o *Buffer) dec_bool(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - if len(o.bools) == 0 { - o.bools = make([]bool, boolPoolSize) - } - o.bools[0] = u != 0 - *structPointer_Bool(base, p.field) = &o.bools[0] - o.bools = o.bools[1:] - return nil -} - -func (o *Buffer) dec_proto3_bool(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - *structPointer_BoolVal(base, p.field) = u != 0 - return nil -} - -// Decode an int32. -func (o *Buffer) dec_int32(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - word32_Set(structPointer_Word32(base, p.field), o, uint32(u)) - return nil -} - -func (o *Buffer) dec_proto3_int32(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - word32Val_Set(structPointer_Word32Val(base, p.field), uint32(u)) - return nil -} - -// Decode an int64. -func (o *Buffer) dec_int64(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - word64_Set(structPointer_Word64(base, p.field), o, u) - return nil -} - -func (o *Buffer) dec_proto3_int64(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - word64Val_Set(structPointer_Word64Val(base, p.field), o, u) - return nil -} - -// Decode a string. -func (o *Buffer) dec_string(p *Properties, base structPointer) error { - s, err := o.DecodeStringBytes() - if err != nil { - return err - } - *structPointer_String(base, p.field) = &s - return nil -} - -func (o *Buffer) dec_proto3_string(p *Properties, base structPointer) error { - s, err := o.DecodeStringBytes() - if err != nil { - return err - } - *structPointer_StringVal(base, p.field) = s - return nil -} - -// Decode a slice of bytes ([]byte). -func (o *Buffer) dec_slice_byte(p *Properties, base structPointer) error { - b, err := o.DecodeRawBytes(true) - if err != nil { - return err - } - *structPointer_Bytes(base, p.field) = b - return nil -} - -// Decode a slice of bools ([]bool). -func (o *Buffer) dec_slice_bool(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - v := structPointer_BoolSlice(base, p.field) - *v = append(*v, u != 0) - return nil -} - -// Decode a slice of bools ([]bool) in packed format. -func (o *Buffer) dec_slice_packed_bool(p *Properties, base structPointer) error { - v := structPointer_BoolSlice(base, p.field) - - nn, err := o.DecodeVarint() - if err != nil { - return err - } - nb := int(nn) // number of bytes of encoded bools - fin := o.index + nb - if fin < o.index { - return errOverflow - } - - y := *v - for o.index < fin { - u, err := p.valDec(o) - if err != nil { - return err - } - y = append(y, u != 0) - } - - *v = y - return nil -} - -// Decode a slice of int32s ([]int32). -func (o *Buffer) dec_slice_int32(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - structPointer_Word32Slice(base, p.field).Append(uint32(u)) - return nil -} - -// Decode a slice of int32s ([]int32) in packed format. -func (o *Buffer) dec_slice_packed_int32(p *Properties, base structPointer) error { - v := structPointer_Word32Slice(base, p.field) - - nn, err := o.DecodeVarint() - if err != nil { - return err - } - nb := int(nn) // number of bytes of encoded int32s - - fin := o.index + nb - if fin < o.index { - return errOverflow - } - for o.index < fin { - u, err := p.valDec(o) - if err != nil { - return err - } - v.Append(uint32(u)) - } - return nil -} - -// Decode a slice of int64s ([]int64). -func (o *Buffer) dec_slice_int64(p *Properties, base structPointer) error { - u, err := p.valDec(o) - if err != nil { - return err - } - - structPointer_Word64Slice(base, p.field).Append(u) - return nil -} - -// Decode a slice of int64s ([]int64) in packed format. -func (o *Buffer) dec_slice_packed_int64(p *Properties, base structPointer) error { - v := structPointer_Word64Slice(base, p.field) - - nn, err := o.DecodeVarint() - if err != nil { - return err - } - nb := int(nn) // number of bytes of encoded int64s - - fin := o.index + nb - if fin < o.index { - return errOverflow - } - for o.index < fin { - u, err := p.valDec(o) - if err != nil { - return err - } - v.Append(u) - } - return nil -} - -// Decode a slice of strings ([]string). -func (o *Buffer) dec_slice_string(p *Properties, base structPointer) error { - s, err := o.DecodeStringBytes() - if err != nil { - return err - } - v := structPointer_StringSlice(base, p.field) - *v = append(*v, s) - return nil -} - -// Decode a slice of slice of bytes ([][]byte). -func (o *Buffer) dec_slice_slice_byte(p *Properties, base structPointer) error { - b, err := o.DecodeRawBytes(true) - if err != nil { - return err - } - v := structPointer_BytesSlice(base, p.field) - *v = append(*v, b) - return nil -} - -// Decode a map field. -func (o *Buffer) dec_new_map(p *Properties, base structPointer) error { - raw, err := o.DecodeRawBytes(false) - if err != nil { - return err - } - oi := o.index // index at the end of this map entry - o.index -= len(raw) // move buffer back to start of map entry - - mptr := structPointer_NewAt(base, p.field, p.mtype) // *map[K]V - if mptr.Elem().IsNil() { - mptr.Elem().Set(reflect.MakeMap(mptr.Type().Elem())) - } - v := mptr.Elem() // map[K]V - - // Prepare addressable doubly-indirect placeholders for the key and value types. - // See enc_new_map for why. - keyptr := reflect.New(reflect.PtrTo(p.mtype.Key())).Elem() // addressable *K - keybase := toStructPointer(keyptr.Addr()) // **K - - var valbase structPointer - var valptr reflect.Value - switch p.mtype.Elem().Kind() { - case reflect.Slice: - // []byte - var dummy []byte - valptr = reflect.ValueOf(&dummy) // *[]byte - valbase = toStructPointer(valptr) // *[]byte - case reflect.Ptr: - // message; valptr is **Msg; need to allocate the intermediate pointer - valptr = reflect.New(reflect.PtrTo(p.mtype.Elem())).Elem() // addressable *V - valptr.Set(reflect.New(valptr.Type().Elem())) - valbase = toStructPointer(valptr) - default: - // everything else - valptr = reflect.New(reflect.PtrTo(p.mtype.Elem())).Elem() // addressable *V - valbase = toStructPointer(valptr.Addr()) // **V - } - - // Decode. - // This parses a restricted wire format, namely the encoding of a message - // with two fields. See enc_new_map for the format. - for o.index < oi { - // tagcode for key and value properties are always a single byte - // because they have tags 1 and 2. - tagcode := o.buf[o.index] - o.index++ - switch tagcode { - case p.mkeyprop.tagcode[0]: - if err := p.mkeyprop.dec(o, p.mkeyprop, keybase); err != nil { - return err - } - case p.mvalprop.tagcode[0]: - if err := p.mvalprop.dec(o, p.mvalprop, valbase); err != nil { - return err - } - default: - // TODO: Should we silently skip this instead? - return fmt.Errorf("proto: bad map data tag %d", raw[0]) - } - } - keyelem, valelem := keyptr.Elem(), valptr.Elem() - if !keyelem.IsValid() { - keyelem = reflect.Zero(p.mtype.Key()) - } - if !valelem.IsValid() { - valelem = reflect.Zero(p.mtype.Elem()) - } - - v.SetMapIndex(keyelem, valelem) - return nil -} - -// Decode a group. -func (o *Buffer) dec_struct_group(p *Properties, base structPointer) error { - bas := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(bas) { - // allocate new nested message - bas = toStructPointer(reflect.New(p.stype)) - structPointer_SetStructPointer(base, p.field, bas) - } - return o.unmarshalType(p.stype, p.sprop, true, bas) -} - -// Decode an embedded message. -func (o *Buffer) dec_struct_message(p *Properties, base structPointer) (err error) { - raw, e := o.DecodeRawBytes(false) - if e != nil { - return e - } - - bas := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(bas) { - // allocate new nested message - bas = toStructPointer(reflect.New(p.stype)) - structPointer_SetStructPointer(base, p.field, bas) - } - - // If the object can unmarshal itself, let it. - if p.isUnmarshaler { - iv := structPointer_Interface(bas, p.stype) - return iv.(Unmarshaler).Unmarshal(raw) - } - - obuf := o.buf - oi := o.index - o.buf = raw - o.index = 0 - - err = o.unmarshalType(p.stype, p.sprop, false, bas) - o.buf = obuf - o.index = oi - - return err -} - -// Decode a slice of embedded messages. -func (o *Buffer) dec_slice_struct_message(p *Properties, base structPointer) error { - return o.dec_slice_struct(p, false, base) -} - -// Decode a slice of embedded groups. -func (o *Buffer) dec_slice_struct_group(p *Properties, base structPointer) error { - return o.dec_slice_struct(p, true, base) -} - -// Decode a slice of structs ([]*struct). -func (o *Buffer) dec_slice_struct(p *Properties, is_group bool, base structPointer) error { - v := reflect.New(p.stype) - bas := toStructPointer(v) - structPointer_StructPointerSlice(base, p.field).Append(bas) - - if is_group { - err := o.unmarshalType(p.stype, p.sprop, is_group, bas) - return err - } - - raw, err := o.DecodeRawBytes(false) - if err != nil { - return err - } - - // If the object can unmarshal itself, let it. - if p.isUnmarshaler { - iv := v.Interface() - return iv.(Unmarshaler).Unmarshal(raw) - } - - obuf := o.buf - oi := o.index - o.buf = raw - o.index = 0 - - err = o.unmarshalType(p.stype, p.sprop, is_group, bas) - - o.buf = obuf - o.index = oi - - return err -} diff --git a/1.4/vendor/github.com/golang/protobuf/proto/encode.go b/1.4/vendor/github.com/golang/protobuf/proto/encode.go deleted file mode 100644 index 8c1b8fd1..00000000 --- a/1.4/vendor/github.com/golang/protobuf/proto/encode.go +++ /dev/null @@ -1,1363 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Routines for encoding data into the wire format for protocol buffers. - */ - -import ( - "errors" - "fmt" - "reflect" - "sort" -) - -// RequiredNotSetError is the error returned if Marshal is called with -// a protocol buffer struct whose required fields have not -// all been initialized. It is also the error returned if Unmarshal is -// called with an encoded protocol buffer that does not include all the -// required fields. -// -// When printed, RequiredNotSetError reports the first unset required field in a -// message. If the field cannot be precisely determined, it is reported as -// "{Unknown}". -type RequiredNotSetError struct { - field string -} - -func (e *RequiredNotSetError) Error() string { - return fmt.Sprintf("proto: required field %q not set", e.field) -} - -var ( - // errRepeatedHasNil is the error returned if Marshal is called with - // a struct with a repeated field containing a nil element. - errRepeatedHasNil = errors.New("proto: repeated field has nil element") - - // errOneofHasNil is the error returned if Marshal is called with - // a struct with a oneof field containing a nil element. - errOneofHasNil = errors.New("proto: oneof field has nil value") - - // ErrNil is the error returned if Marshal is called with nil. - ErrNil = errors.New("proto: Marshal called with nil") - - // ErrTooLarge is the error returned if Marshal is called with a - // message that encodes to >2GB. - ErrTooLarge = errors.New("proto: message encodes to over 2 GB") -) - -// The fundamental encoders that put bytes on the wire. -// Those that take integer types all accept uint64 and are -// therefore of type valueEncoder. - -const maxVarintBytes = 10 // maximum length of a varint - -// maxMarshalSize is the largest allowed size of an encoded protobuf, -// since C++ and Java use signed int32s for the size. -const maxMarshalSize = 1<<31 - 1 - -// EncodeVarint returns the varint encoding of x. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -// Not used by the package itself, but helpful to clients -// wishing to use the same encoding. -func EncodeVarint(x uint64) []byte { - var buf [maxVarintBytes]byte - var n int - for n = 0; x > 127; n++ { - buf[n] = 0x80 | uint8(x&0x7F) - x >>= 7 - } - buf[n] = uint8(x) - n++ - return buf[0:n] -} - -// EncodeVarint writes a varint-encoded integer to the Buffer. -// This is the format for the -// int32, int64, uint32, uint64, bool, and enum -// protocol buffer types. -func (p *Buffer) EncodeVarint(x uint64) error { - for x >= 1<<7 { - p.buf = append(p.buf, uint8(x&0x7f|0x80)) - x >>= 7 - } - p.buf = append(p.buf, uint8(x)) - return nil -} - -// SizeVarint returns the varint encoding size of an integer. -func SizeVarint(x uint64) int { - return sizeVarint(x) -} - -func sizeVarint(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} - -// EncodeFixed64 writes a 64-bit integer to the Buffer. -// This is the format for the -// fixed64, sfixed64, and double protocol buffer types. -func (p *Buffer) EncodeFixed64(x uint64) error { - p.buf = append(p.buf, - uint8(x), - uint8(x>>8), - uint8(x>>16), - uint8(x>>24), - uint8(x>>32), - uint8(x>>40), - uint8(x>>48), - uint8(x>>56)) - return nil -} - -func sizeFixed64(x uint64) int { - return 8 -} - -// EncodeFixed32 writes a 32-bit integer to the Buffer. -// This is the format for the -// fixed32, sfixed32, and float protocol buffer types. -func (p *Buffer) EncodeFixed32(x uint64) error { - p.buf = append(p.buf, - uint8(x), - uint8(x>>8), - uint8(x>>16), - uint8(x>>24)) - return nil -} - -func sizeFixed32(x uint64) int { - return 4 -} - -// EncodeZigzag64 writes a zigzag-encoded 64-bit integer -// to the Buffer. -// This is the format used for the sint64 protocol buffer type. -func (p *Buffer) EncodeZigzag64(x uint64) error { - // use signed number to get arithmetic right shift. - return p.EncodeVarint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} - -func sizeZigzag64(x uint64) int { - return sizeVarint(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} - -// EncodeZigzag32 writes a zigzag-encoded 32-bit integer -// to the Buffer. -// This is the format used for the sint32 protocol buffer type. -func (p *Buffer) EncodeZigzag32(x uint64) error { - // use signed number to get arithmetic right shift. - return p.EncodeVarint(uint64((uint32(x) << 1) ^ uint32((int32(x) >> 31)))) -} - -func sizeZigzag32(x uint64) int { - return sizeVarint(uint64((uint32(x) << 1) ^ uint32((int32(x) >> 31)))) -} - -// EncodeRawBytes writes a count-delimited byte buffer to the Buffer. -// This is the format used for the bytes protocol buffer -// type and for embedded messages. -func (p *Buffer) EncodeRawBytes(b []byte) error { - p.EncodeVarint(uint64(len(b))) - p.buf = append(p.buf, b...) - return nil -} - -func sizeRawBytes(b []byte) int { - return sizeVarint(uint64(len(b))) + - len(b) -} - -// EncodeStringBytes writes an encoded string to the Buffer. -// This is the format used for the proto2 string type. -func (p *Buffer) EncodeStringBytes(s string) error { - p.EncodeVarint(uint64(len(s))) - p.buf = append(p.buf, s...) - return nil -} - -func sizeStringBytes(s string) int { - return sizeVarint(uint64(len(s))) + - len(s) -} - -// Marshaler is the interface representing objects that can marshal themselves. -type Marshaler interface { - Marshal() ([]byte, error) -} - -// Marshal takes the protocol buffer -// and encodes it into the wire format, returning the data. -func Marshal(pb Message) ([]byte, error) { - // Can the object marshal itself? - if m, ok := pb.(Marshaler); ok { - return m.Marshal() - } - p := NewBuffer(nil) - err := p.Marshal(pb) - var state errorState - if err != nil && !state.shouldContinue(err, nil) { - return nil, err - } - if p.buf == nil && err == nil { - // Return a non-nil slice on success. - return []byte{}, nil - } - return p.buf, err -} - -// EncodeMessage writes the protocol buffer to the Buffer, -// prefixed by a varint-encoded length. -func (p *Buffer) EncodeMessage(pb Message) error { - t, base, err := getbase(pb) - if structPointer_IsNil(base) { - return ErrNil - } - if err == nil { - var state errorState - err = p.enc_len_struct(GetProperties(t.Elem()), base, &state) - } - return err -} - -// Marshal takes the protocol buffer -// and encodes it into the wire format, writing the result to the -// Buffer. -func (p *Buffer) Marshal(pb Message) error { - // Can the object marshal itself? - if m, ok := pb.(Marshaler); ok { - data, err := m.Marshal() - if err != nil { - return err - } - p.buf = append(p.buf, data...) - return nil - } - - t, base, err := getbase(pb) - if structPointer_IsNil(base) { - return ErrNil - } - if err == nil { - err = p.enc_struct(GetProperties(t.Elem()), base) - } - - if collectStats { - stats.Encode++ - } - - if len(p.buf) > maxMarshalSize { - return ErrTooLarge - } - return err -} - -// Size returns the encoded size of a protocol buffer. -func Size(pb Message) (n int) { - // Can the object marshal itself? If so, Size is slow. - // TODO: add Size to Marshaler, or add a Sizer interface. - if m, ok := pb.(Marshaler); ok { - b, _ := m.Marshal() - return len(b) - } - - t, base, err := getbase(pb) - if structPointer_IsNil(base) { - return 0 - } - if err == nil { - n = size_struct(GetProperties(t.Elem()), base) - } - - if collectStats { - stats.Size++ - } - - return -} - -// Individual type encoders. - -// Encode a bool. -func (o *Buffer) enc_bool(p *Properties, base structPointer) error { - v := *structPointer_Bool(base, p.field) - if v == nil { - return ErrNil - } - x := 0 - if *v { - x = 1 - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func (o *Buffer) enc_proto3_bool(p *Properties, base structPointer) error { - v := *structPointer_BoolVal(base, p.field) - if !v { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, 1) - return nil -} - -func size_bool(p *Properties, base structPointer) int { - v := *structPointer_Bool(base, p.field) - if v == nil { - return 0 - } - return len(p.tagcode) + 1 // each bool takes exactly one byte -} - -func size_proto3_bool(p *Properties, base structPointer) int { - v := *structPointer_BoolVal(base, p.field) - if !v && !p.oneof { - return 0 - } - return len(p.tagcode) + 1 // each bool takes exactly one byte -} - -// Encode an int32. -func (o *Buffer) enc_int32(p *Properties, base structPointer) error { - v := structPointer_Word32(base, p.field) - if word32_IsNil(v) { - return ErrNil - } - x := int32(word32_Get(v)) // permit sign extension to use full 64-bit range - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func (o *Buffer) enc_proto3_int32(p *Properties, base structPointer) error { - v := structPointer_Word32Val(base, p.field) - x := int32(word32Val_Get(v)) // permit sign extension to use full 64-bit range - if x == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func size_int32(p *Properties, base structPointer) (n int) { - v := structPointer_Word32(base, p.field) - if word32_IsNil(v) { - return 0 - } - x := int32(word32_Get(v)) // permit sign extension to use full 64-bit range - n += len(p.tagcode) - n += p.valSize(uint64(x)) - return -} - -func size_proto3_int32(p *Properties, base structPointer) (n int) { - v := structPointer_Word32Val(base, p.field) - x := int32(word32Val_Get(v)) // permit sign extension to use full 64-bit range - if x == 0 && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += p.valSize(uint64(x)) - return -} - -// Encode a uint32. -// Exactly the same as int32, except for no sign extension. -func (o *Buffer) enc_uint32(p *Properties, base structPointer) error { - v := structPointer_Word32(base, p.field) - if word32_IsNil(v) { - return ErrNil - } - x := word32_Get(v) - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func (o *Buffer) enc_proto3_uint32(p *Properties, base structPointer) error { - v := structPointer_Word32Val(base, p.field) - x := word32Val_Get(v) - if x == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, uint64(x)) - return nil -} - -func size_uint32(p *Properties, base structPointer) (n int) { - v := structPointer_Word32(base, p.field) - if word32_IsNil(v) { - return 0 - } - x := word32_Get(v) - n += len(p.tagcode) - n += p.valSize(uint64(x)) - return -} - -func size_proto3_uint32(p *Properties, base structPointer) (n int) { - v := structPointer_Word32Val(base, p.field) - x := word32Val_Get(v) - if x == 0 && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += p.valSize(uint64(x)) - return -} - -// Encode an int64. -func (o *Buffer) enc_int64(p *Properties, base structPointer) error { - v := structPointer_Word64(base, p.field) - if word64_IsNil(v) { - return ErrNil - } - x := word64_Get(v) - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, x) - return nil -} - -func (o *Buffer) enc_proto3_int64(p *Properties, base structPointer) error { - v := structPointer_Word64Val(base, p.field) - x := word64Val_Get(v) - if x == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, x) - return nil -} - -func size_int64(p *Properties, base structPointer) (n int) { - v := structPointer_Word64(base, p.field) - if word64_IsNil(v) { - return 0 - } - x := word64_Get(v) - n += len(p.tagcode) - n += p.valSize(x) - return -} - -func size_proto3_int64(p *Properties, base structPointer) (n int) { - v := structPointer_Word64Val(base, p.field) - x := word64Val_Get(v) - if x == 0 && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += p.valSize(x) - return -} - -// Encode a string. -func (o *Buffer) enc_string(p *Properties, base structPointer) error { - v := *structPointer_String(base, p.field) - if v == nil { - return ErrNil - } - x := *v - o.buf = append(o.buf, p.tagcode...) - o.EncodeStringBytes(x) - return nil -} - -func (o *Buffer) enc_proto3_string(p *Properties, base structPointer) error { - v := *structPointer_StringVal(base, p.field) - if v == "" { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeStringBytes(v) - return nil -} - -func size_string(p *Properties, base structPointer) (n int) { - v := *structPointer_String(base, p.field) - if v == nil { - return 0 - } - x := *v - n += len(p.tagcode) - n += sizeStringBytes(x) - return -} - -func size_proto3_string(p *Properties, base structPointer) (n int) { - v := *structPointer_StringVal(base, p.field) - if v == "" && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += sizeStringBytes(v) - return -} - -// All protocol buffer fields are nillable, but be careful. -func isNil(v reflect.Value) bool { - switch v.Kind() { - case reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice: - return v.IsNil() - } - return false -} - -// Encode a message struct. -func (o *Buffer) enc_struct_message(p *Properties, base structPointer) error { - var state errorState - structp := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(structp) { - return ErrNil - } - - // Can the object marshal itself? - if p.isMarshaler { - m := structPointer_Interface(structp, p.stype).(Marshaler) - data, err := m.Marshal() - if err != nil && !state.shouldContinue(err, nil) { - return err - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(data) - return state.err - } - - o.buf = append(o.buf, p.tagcode...) - return o.enc_len_struct(p.sprop, structp, &state) -} - -func size_struct_message(p *Properties, base structPointer) int { - structp := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(structp) { - return 0 - } - - // Can the object marshal itself? - if p.isMarshaler { - m := structPointer_Interface(structp, p.stype).(Marshaler) - data, _ := m.Marshal() - n0 := len(p.tagcode) - n1 := sizeRawBytes(data) - return n0 + n1 - } - - n0 := len(p.tagcode) - n1 := size_struct(p.sprop, structp) - n2 := sizeVarint(uint64(n1)) // size of encoded length - return n0 + n1 + n2 -} - -// Encode a group struct. -func (o *Buffer) enc_struct_group(p *Properties, base structPointer) error { - var state errorState - b := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(b) { - return ErrNil - } - - o.EncodeVarint(uint64((p.Tag << 3) | WireStartGroup)) - err := o.enc_struct(p.sprop, b) - if err != nil && !state.shouldContinue(err, nil) { - return err - } - o.EncodeVarint(uint64((p.Tag << 3) | WireEndGroup)) - return state.err -} - -func size_struct_group(p *Properties, base structPointer) (n int) { - b := structPointer_GetStructPointer(base, p.field) - if structPointer_IsNil(b) { - return 0 - } - - n += sizeVarint(uint64((p.Tag << 3) | WireStartGroup)) - n += size_struct(p.sprop, b) - n += sizeVarint(uint64((p.Tag << 3) | WireEndGroup)) - return -} - -// Encode a slice of bools ([]bool). -func (o *Buffer) enc_slice_bool(p *Properties, base structPointer) error { - s := *structPointer_BoolSlice(base, p.field) - l := len(s) - if l == 0 { - return ErrNil - } - for _, x := range s { - o.buf = append(o.buf, p.tagcode...) - v := uint64(0) - if x { - v = 1 - } - p.valEnc(o, v) - } - return nil -} - -func size_slice_bool(p *Properties, base structPointer) int { - s := *structPointer_BoolSlice(base, p.field) - l := len(s) - if l == 0 { - return 0 - } - return l * (len(p.tagcode) + 1) // each bool takes exactly one byte -} - -// Encode a slice of bools ([]bool) in packed format. -func (o *Buffer) enc_slice_packed_bool(p *Properties, base structPointer) error { - s := *structPointer_BoolSlice(base, p.field) - l := len(s) - if l == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeVarint(uint64(l)) // each bool takes exactly one byte - for _, x := range s { - v := uint64(0) - if x { - v = 1 - } - p.valEnc(o, v) - } - return nil -} - -func size_slice_packed_bool(p *Properties, base structPointer) (n int) { - s := *structPointer_BoolSlice(base, p.field) - l := len(s) - if l == 0 { - return 0 - } - n += len(p.tagcode) - n += sizeVarint(uint64(l)) - n += l // each bool takes exactly one byte - return -} - -// Encode a slice of bytes ([]byte). -func (o *Buffer) enc_slice_byte(p *Properties, base structPointer) error { - s := *structPointer_Bytes(base, p.field) - if s == nil { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(s) - return nil -} - -func (o *Buffer) enc_proto3_slice_byte(p *Properties, base structPointer) error { - s := *structPointer_Bytes(base, p.field) - if len(s) == 0 { - return ErrNil - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(s) - return nil -} - -func size_slice_byte(p *Properties, base structPointer) (n int) { - s := *structPointer_Bytes(base, p.field) - if s == nil && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += sizeRawBytes(s) - return -} - -func size_proto3_slice_byte(p *Properties, base structPointer) (n int) { - s := *structPointer_Bytes(base, p.field) - if len(s) == 0 && !p.oneof { - return 0 - } - n += len(p.tagcode) - n += sizeRawBytes(s) - return -} - -// Encode a slice of int32s ([]int32). -func (o *Buffer) enc_slice_int32(p *Properties, base structPointer) error { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - x := int32(s.Index(i)) // permit sign extension to use full 64-bit range - p.valEnc(o, uint64(x)) - } - return nil -} - -func size_slice_int32(p *Properties, base structPointer) (n int) { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - for i := 0; i < l; i++ { - n += len(p.tagcode) - x := int32(s.Index(i)) // permit sign extension to use full 64-bit range - n += p.valSize(uint64(x)) - } - return -} - -// Encode a slice of int32s ([]int32) in packed format. -func (o *Buffer) enc_slice_packed_int32(p *Properties, base structPointer) error { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - // TODO: Reuse a Buffer. - buf := NewBuffer(nil) - for i := 0; i < l; i++ { - x := int32(s.Index(i)) // permit sign extension to use full 64-bit range - p.valEnc(buf, uint64(x)) - } - - o.buf = append(o.buf, p.tagcode...) - o.EncodeVarint(uint64(len(buf.buf))) - o.buf = append(o.buf, buf.buf...) - return nil -} - -func size_slice_packed_int32(p *Properties, base structPointer) (n int) { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - var bufSize int - for i := 0; i < l; i++ { - x := int32(s.Index(i)) // permit sign extension to use full 64-bit range - bufSize += p.valSize(uint64(x)) - } - - n += len(p.tagcode) - n += sizeVarint(uint64(bufSize)) - n += bufSize - return -} - -// Encode a slice of uint32s ([]uint32). -// Exactly the same as int32, except for no sign extension. -func (o *Buffer) enc_slice_uint32(p *Properties, base structPointer) error { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - x := s.Index(i) - p.valEnc(o, uint64(x)) - } - return nil -} - -func size_slice_uint32(p *Properties, base structPointer) (n int) { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - for i := 0; i < l; i++ { - n += len(p.tagcode) - x := s.Index(i) - n += p.valSize(uint64(x)) - } - return -} - -// Encode a slice of uint32s ([]uint32) in packed format. -// Exactly the same as int32, except for no sign extension. -func (o *Buffer) enc_slice_packed_uint32(p *Properties, base structPointer) error { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - // TODO: Reuse a Buffer. - buf := NewBuffer(nil) - for i := 0; i < l; i++ { - p.valEnc(buf, uint64(s.Index(i))) - } - - o.buf = append(o.buf, p.tagcode...) - o.EncodeVarint(uint64(len(buf.buf))) - o.buf = append(o.buf, buf.buf...) - return nil -} - -func size_slice_packed_uint32(p *Properties, base structPointer) (n int) { - s := structPointer_Word32Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - var bufSize int - for i := 0; i < l; i++ { - bufSize += p.valSize(uint64(s.Index(i))) - } - - n += len(p.tagcode) - n += sizeVarint(uint64(bufSize)) - n += bufSize - return -} - -// Encode a slice of int64s ([]int64). -func (o *Buffer) enc_slice_int64(p *Properties, base structPointer) error { - s := structPointer_Word64Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - p.valEnc(o, s.Index(i)) - } - return nil -} - -func size_slice_int64(p *Properties, base structPointer) (n int) { - s := structPointer_Word64Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - for i := 0; i < l; i++ { - n += len(p.tagcode) - n += p.valSize(s.Index(i)) - } - return -} - -// Encode a slice of int64s ([]int64) in packed format. -func (o *Buffer) enc_slice_packed_int64(p *Properties, base structPointer) error { - s := structPointer_Word64Slice(base, p.field) - l := s.Len() - if l == 0 { - return ErrNil - } - // TODO: Reuse a Buffer. - buf := NewBuffer(nil) - for i := 0; i < l; i++ { - p.valEnc(buf, s.Index(i)) - } - - o.buf = append(o.buf, p.tagcode...) - o.EncodeVarint(uint64(len(buf.buf))) - o.buf = append(o.buf, buf.buf...) - return nil -} - -func size_slice_packed_int64(p *Properties, base structPointer) (n int) { - s := structPointer_Word64Slice(base, p.field) - l := s.Len() - if l == 0 { - return 0 - } - var bufSize int - for i := 0; i < l; i++ { - bufSize += p.valSize(s.Index(i)) - } - - n += len(p.tagcode) - n += sizeVarint(uint64(bufSize)) - n += bufSize - return -} - -// Encode a slice of slice of bytes ([][]byte). -func (o *Buffer) enc_slice_slice_byte(p *Properties, base structPointer) error { - ss := *structPointer_BytesSlice(base, p.field) - l := len(ss) - if l == 0 { - return ErrNil - } - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(ss[i]) - } - return nil -} - -func size_slice_slice_byte(p *Properties, base structPointer) (n int) { - ss := *structPointer_BytesSlice(base, p.field) - l := len(ss) - if l == 0 { - return 0 - } - n += l * len(p.tagcode) - for i := 0; i < l; i++ { - n += sizeRawBytes(ss[i]) - } - return -} - -// Encode a slice of strings ([]string). -func (o *Buffer) enc_slice_string(p *Properties, base structPointer) error { - ss := *structPointer_StringSlice(base, p.field) - l := len(ss) - for i := 0; i < l; i++ { - o.buf = append(o.buf, p.tagcode...) - o.EncodeStringBytes(ss[i]) - } - return nil -} - -func size_slice_string(p *Properties, base structPointer) (n int) { - ss := *structPointer_StringSlice(base, p.field) - l := len(ss) - n += l * len(p.tagcode) - for i := 0; i < l; i++ { - n += sizeStringBytes(ss[i]) - } - return -} - -// Encode a slice of message structs ([]*struct). -func (o *Buffer) enc_slice_struct_message(p *Properties, base structPointer) error { - var state errorState - s := structPointer_StructPointerSlice(base, p.field) - l := s.Len() - - for i := 0; i < l; i++ { - structp := s.Index(i) - if structPointer_IsNil(structp) { - return errRepeatedHasNil - } - - // Can the object marshal itself? - if p.isMarshaler { - m := structPointer_Interface(structp, p.stype).(Marshaler) - data, err := m.Marshal() - if err != nil && !state.shouldContinue(err, nil) { - return err - } - o.buf = append(o.buf, p.tagcode...) - o.EncodeRawBytes(data) - continue - } - - o.buf = append(o.buf, p.tagcode...) - err := o.enc_len_struct(p.sprop, structp, &state) - if err != nil && !state.shouldContinue(err, nil) { - if err == ErrNil { - return errRepeatedHasNil - } - return err - } - } - return state.err -} - -func size_slice_struct_message(p *Properties, base structPointer) (n int) { - s := structPointer_StructPointerSlice(base, p.field) - l := s.Len() - n += l * len(p.tagcode) - for i := 0; i < l; i++ { - structp := s.Index(i) - if structPointer_IsNil(structp) { - return // return the size up to this point - } - - // Can the object marshal itself? - if p.isMarshaler { - m := structPointer_Interface(structp, p.stype).(Marshaler) - data, _ := m.Marshal() - n += len(p.tagcode) - n += sizeRawBytes(data) - continue - } - - n0 := size_struct(p.sprop, structp) - n1 := sizeVarint(uint64(n0)) // size of encoded length - n += n0 + n1 - } - return -} - -// Encode a slice of group structs ([]*struct). -func (o *Buffer) enc_slice_struct_group(p *Properties, base structPointer) error { - var state errorState - s := structPointer_StructPointerSlice(base, p.field) - l := s.Len() - - for i := 0; i < l; i++ { - b := s.Index(i) - if structPointer_IsNil(b) { - return errRepeatedHasNil - } - - o.EncodeVarint(uint64((p.Tag << 3) | WireStartGroup)) - - err := o.enc_struct(p.sprop, b) - - if err != nil && !state.shouldContinue(err, nil) { - if err == ErrNil { - return errRepeatedHasNil - } - return err - } - - o.EncodeVarint(uint64((p.Tag << 3) | WireEndGroup)) - } - return state.err -} - -func size_slice_struct_group(p *Properties, base structPointer) (n int) { - s := structPointer_StructPointerSlice(base, p.field) - l := s.Len() - - n += l * sizeVarint(uint64((p.Tag<<3)|WireStartGroup)) - n += l * sizeVarint(uint64((p.Tag<<3)|WireEndGroup)) - for i := 0; i < l; i++ { - b := s.Index(i) - if structPointer_IsNil(b) { - return // return size up to this point - } - - n += size_struct(p.sprop, b) - } - return -} - -// Encode an extension map. -func (o *Buffer) enc_map(p *Properties, base structPointer) error { - exts := structPointer_ExtMap(base, p.field) - if err := encodeExtensionsMap(*exts); err != nil { - return err - } - - return o.enc_map_body(*exts) -} - -func (o *Buffer) enc_exts(p *Properties, base structPointer) error { - exts := structPointer_Extensions(base, p.field) - if err := encodeExtensions(exts); err != nil { - return err - } - v, _ := exts.extensionsRead() - - return o.enc_map_body(v) -} - -func (o *Buffer) enc_map_body(v map[int32]Extension) error { - // Fast-path for common cases: zero or one extensions. - if len(v) <= 1 { - for _, e := range v { - o.buf = append(o.buf, e.enc...) - } - return nil - } - - // Sort keys to provide a deterministic encoding. - keys := make([]int, 0, len(v)) - for k := range v { - keys = append(keys, int(k)) - } - sort.Ints(keys) - - for _, k := range keys { - o.buf = append(o.buf, v[int32(k)].enc...) - } - return nil -} - -func size_map(p *Properties, base structPointer) int { - v := structPointer_ExtMap(base, p.field) - return extensionsMapSize(*v) -} - -func size_exts(p *Properties, base structPointer) int { - v := structPointer_Extensions(base, p.field) - return extensionsSize(v) -} - -// Encode a map field. -func (o *Buffer) enc_new_map(p *Properties, base structPointer) error { - var state errorState // XXX: or do we need to plumb this through? - - /* - A map defined as - map map_field = N; - is encoded in the same way as - message MapFieldEntry { - key_type key = 1; - value_type value = 2; - } - repeated MapFieldEntry map_field = N; - */ - - v := structPointer_NewAt(base, p.field, p.mtype).Elem() // map[K]V - if v.Len() == 0 { - return nil - } - - keycopy, valcopy, keybase, valbase := mapEncodeScratch(p.mtype) - - enc := func() error { - if err := p.mkeyprop.enc(o, p.mkeyprop, keybase); err != nil { - return err - } - if err := p.mvalprop.enc(o, p.mvalprop, valbase); err != nil && err != ErrNil { - return err - } - return nil - } - - // Don't sort map keys. It is not required by the spec, and C++ doesn't do it. - for _, key := range v.MapKeys() { - val := v.MapIndex(key) - - keycopy.Set(key) - valcopy.Set(val) - - o.buf = append(o.buf, p.tagcode...) - if err := o.enc_len_thing(enc, &state); err != nil { - return err - } - } - return nil -} - -func size_new_map(p *Properties, base structPointer) int { - v := structPointer_NewAt(base, p.field, p.mtype).Elem() // map[K]V - - keycopy, valcopy, keybase, valbase := mapEncodeScratch(p.mtype) - - n := 0 - for _, key := range v.MapKeys() { - val := v.MapIndex(key) - keycopy.Set(key) - valcopy.Set(val) - - // Tag codes for key and val are the responsibility of the sub-sizer. - keysize := p.mkeyprop.size(p.mkeyprop, keybase) - valsize := p.mvalprop.size(p.mvalprop, valbase) - entry := keysize + valsize - // Add on tag code and length of map entry itself. - n += len(p.tagcode) + sizeVarint(uint64(entry)) + entry - } - return n -} - -// mapEncodeScratch returns a new reflect.Value matching the map's value type, -// and a structPointer suitable for passing to an encoder or sizer. -func mapEncodeScratch(mapType reflect.Type) (keycopy, valcopy reflect.Value, keybase, valbase structPointer) { - // Prepare addressable doubly-indirect placeholders for the key and value types. - // This is needed because the element-type encoders expect **T, but the map iteration produces T. - - keycopy = reflect.New(mapType.Key()).Elem() // addressable K - keyptr := reflect.New(reflect.PtrTo(keycopy.Type())).Elem() // addressable *K - keyptr.Set(keycopy.Addr()) // - keybase = toStructPointer(keyptr.Addr()) // **K - - // Value types are more varied and require special handling. - switch mapType.Elem().Kind() { - case reflect.Slice: - // []byte - var dummy []byte - valcopy = reflect.ValueOf(&dummy).Elem() // addressable []byte - valbase = toStructPointer(valcopy.Addr()) - case reflect.Ptr: - // message; the generated field type is map[K]*Msg (so V is *Msg), - // so we only need one level of indirection. - valcopy = reflect.New(mapType.Elem()).Elem() // addressable V - valbase = toStructPointer(valcopy.Addr()) - default: - // everything else - valcopy = reflect.New(mapType.Elem()).Elem() // addressable V - valptr := reflect.New(reflect.PtrTo(valcopy.Type())).Elem() // addressable *V - valptr.Set(valcopy.Addr()) // - valbase = toStructPointer(valptr.Addr()) // **V - } - return -} - -// Encode a struct. -func (o *Buffer) enc_struct(prop *StructProperties, base structPointer) error { - var state errorState - // Encode fields in tag order so that decoders may use optimizations - // that depend on the ordering. - // https://developers.google.com/protocol-buffers/docs/encoding#order - for _, i := range prop.order { - p := prop.Prop[i] - if p.enc != nil { - err := p.enc(o, p, base) - if err != nil { - if err == ErrNil { - if p.Required && state.err == nil { - state.err = &RequiredNotSetError{p.Name} - } - } else if err == errRepeatedHasNil { - // Give more context to nil values in repeated fields. - return errors.New("repeated field " + p.OrigName + " has nil element") - } else if !state.shouldContinue(err, p) { - return err - } - } - if len(o.buf) > maxMarshalSize { - return ErrTooLarge - } - } - } - - // Do oneof fields. - if prop.oneofMarshaler != nil { - m := structPointer_Interface(base, prop.stype).(Message) - if err := prop.oneofMarshaler(m, o); err == ErrNil { - return errOneofHasNil - } else if err != nil { - return err - } - } - - // Add unrecognized fields at the end. - if prop.unrecField.IsValid() { - v := *structPointer_Bytes(base, prop.unrecField) - if len(o.buf)+len(v) > maxMarshalSize { - return ErrTooLarge - } - if len(v) > 0 { - o.buf = append(o.buf, v...) - } - } - - return state.err -} - -func size_struct(prop *StructProperties, base structPointer) (n int) { - for _, i := range prop.order { - p := prop.Prop[i] - if p.size != nil { - n += p.size(p, base) - } - } - - // Add unrecognized fields at the end. - if prop.unrecField.IsValid() { - v := *structPointer_Bytes(base, prop.unrecField) - n += len(v) - } - - // Factor in any oneof fields. - if prop.oneofSizer != nil { - m := structPointer_Interface(base, prop.stype).(Message) - n += prop.oneofSizer(m) - } - - return -} - -var zeroes [20]byte // longer than any conceivable sizeVarint - -// Encode a struct, preceded by its encoded length (as a varint). -func (o *Buffer) enc_len_struct(prop *StructProperties, base structPointer, state *errorState) error { - return o.enc_len_thing(func() error { return o.enc_struct(prop, base) }, state) -} - -// Encode something, preceded by its encoded length (as a varint). -func (o *Buffer) enc_len_thing(enc func() error, state *errorState) error { - iLen := len(o.buf) - o.buf = append(o.buf, 0, 0, 0, 0) // reserve four bytes for length - iMsg := len(o.buf) - err := enc() - if err != nil && !state.shouldContinue(err, nil) { - return err - } - lMsg := len(o.buf) - iMsg - lLen := sizeVarint(uint64(lMsg)) - switch x := lLen - (iMsg - iLen); { - case x > 0: // actual length is x bytes larger than the space we reserved - // Move msg x bytes right. - o.buf = append(o.buf, zeroes[:x]...) - copy(o.buf[iMsg+x:], o.buf[iMsg:iMsg+lMsg]) - case x < 0: // actual length is x bytes smaller than the space we reserved - // Move msg x bytes left. - copy(o.buf[iMsg+x:], o.buf[iMsg:iMsg+lMsg]) - o.buf = o.buf[:len(o.buf)+x] // x is negative - } - // Encode the length in the reserved space. - o.buf = o.buf[:iLen] - o.EncodeVarint(uint64(lMsg)) - o.buf = o.buf[:len(o.buf)+lMsg] - return state.err -} - -// errorState maintains the first error that occurs and updates that error -// with additional context. -type errorState struct { - err error -} - -// shouldContinue reports whether encoding should continue upon encountering the -// given error. If the error is RequiredNotSetError, shouldContinue returns true -// and, if this is the first appearance of that error, remembers it for future -// reporting. -// -// If prop is not nil, it may update any error with additional context about the -// field with the error. -func (s *errorState) shouldContinue(err error, prop *Properties) bool { - // Ignore unset required fields. - reqNotSet, ok := err.(*RequiredNotSetError) - if !ok { - return false - } - if s.err == nil { - if prop != nil { - err = &RequiredNotSetError{prop.Name + "." + reqNotSet.field} - } - s.err = err - } - return true -} diff --git a/1.4/vendor/github.com/golang/protobuf/proto/equal.go b/1.4/vendor/github.com/golang/protobuf/proto/equal.go deleted file mode 100644 index 8b16f951..00000000 --- a/1.4/vendor/github.com/golang/protobuf/proto/equal.go +++ /dev/null @@ -1,296 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2011 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// Protocol buffer comparison. - -package proto - -import ( - "bytes" - "log" - "reflect" - "strings" -) - -/* -Equal returns true iff protocol buffers a and b are equal. -The arguments must both be pointers to protocol buffer structs. - -Equality is defined in this way: - - Two messages are equal iff they are the same type, - corresponding fields are equal, unknown field sets - are equal, and extensions sets are equal. - - Two set scalar fields are equal iff their values are equal. - If the fields are of a floating-point type, remember that - NaN != x for all x, including NaN. If the message is defined - in a proto3 .proto file, fields are not "set"; specifically, - zero length proto3 "bytes" fields are equal (nil == {}). - - Two repeated fields are equal iff their lengths are the same, - and their corresponding elements are equal (a "bytes" field, - although represented by []byte, is not a repeated field) - - Two unset fields are equal. - - Two unknown field sets are equal if their current - encoded state is equal. - - Two extension sets are equal iff they have corresponding - elements that are pairwise equal. - - Every other combination of things are not equal. - -The return value is undefined if a and b are not protocol buffers. -*/ -func Equal(a, b Message) bool { - if a == nil || b == nil { - return a == b - } - v1, v2 := reflect.ValueOf(a), reflect.ValueOf(b) - if v1.Type() != v2.Type() { - return false - } - if v1.Kind() == reflect.Ptr { - if v1.IsNil() { - return v2.IsNil() - } - if v2.IsNil() { - return false - } - v1, v2 = v1.Elem(), v2.Elem() - } - if v1.Kind() != reflect.Struct { - return false - } - return equalStruct(v1, v2) -} - -// v1 and v2 are known to have the same type. -func equalStruct(v1, v2 reflect.Value) bool { - sprop := GetProperties(v1.Type()) - for i := 0; i < v1.NumField(); i++ { - f := v1.Type().Field(i) - if strings.HasPrefix(f.Name, "XXX_") { - continue - } - f1, f2 := v1.Field(i), v2.Field(i) - if f.Type.Kind() == reflect.Ptr { - if n1, n2 := f1.IsNil(), f2.IsNil(); n1 && n2 { - // both unset - continue - } else if n1 != n2 { - // set/unset mismatch - return false - } - b1, ok := f1.Interface().(raw) - if ok { - b2 := f2.Interface().(raw) - // RawMessage - if !bytes.Equal(b1.Bytes(), b2.Bytes()) { - return false - } - continue - } - f1, f2 = f1.Elem(), f2.Elem() - } - if !equalAny(f1, f2, sprop.Prop[i]) { - return false - } - } - - if em1 := v1.FieldByName("XXX_InternalExtensions"); em1.IsValid() { - em2 := v2.FieldByName("XXX_InternalExtensions") - if !equalExtensions(v1.Type(), em1.Interface().(XXX_InternalExtensions), em2.Interface().(XXX_InternalExtensions)) { - return false - } - } - - if em1 := v1.FieldByName("XXX_extensions"); em1.IsValid() { - em2 := v2.FieldByName("XXX_extensions") - if !equalExtMap(v1.Type(), em1.Interface().(map[int32]Extension), em2.Interface().(map[int32]Extension)) { - return false - } - } - - uf := v1.FieldByName("XXX_unrecognized") - if !uf.IsValid() { - return true - } - - u1 := uf.Bytes() - u2 := v2.FieldByName("XXX_unrecognized").Bytes() - if !bytes.Equal(u1, u2) { - return false - } - - return true -} - -// v1 and v2 are known to have the same type. -// prop may be nil. -func equalAny(v1, v2 reflect.Value, prop *Properties) bool { - if v1.Type() == protoMessageType { - m1, _ := v1.Interface().(Message) - m2, _ := v2.Interface().(Message) - return Equal(m1, m2) - } - switch v1.Kind() { - case reflect.Bool: - return v1.Bool() == v2.Bool() - case reflect.Float32, reflect.Float64: - return v1.Float() == v2.Float() - case reflect.Int32, reflect.Int64: - return v1.Int() == v2.Int() - case reflect.Interface: - // Probably a oneof field; compare the inner values. - n1, n2 := v1.IsNil(), v2.IsNil() - if n1 || n2 { - return n1 == n2 - } - e1, e2 := v1.Elem(), v2.Elem() - if e1.Type() != e2.Type() { - return false - } - return equalAny(e1, e2, nil) - case reflect.Map: - if v1.Len() != v2.Len() { - return false - } - for _, key := range v1.MapKeys() { - val2 := v2.MapIndex(key) - if !val2.IsValid() { - // This key was not found in the second map. - return false - } - if !equalAny(v1.MapIndex(key), val2, nil) { - return false - } - } - return true - case reflect.Ptr: - // Maps may have nil values in them, so check for nil. - if v1.IsNil() && v2.IsNil() { - return true - } - if v1.IsNil() != v2.IsNil() { - return false - } - return equalAny(v1.Elem(), v2.Elem(), prop) - case reflect.Slice: - if v1.Type().Elem().Kind() == reflect.Uint8 { - // short circuit: []byte - - // Edge case: if this is in a proto3 message, a zero length - // bytes field is considered the zero value. - if prop != nil && prop.proto3 && v1.Len() == 0 && v2.Len() == 0 { - return true - } - if v1.IsNil() != v2.IsNil() { - return false - } - return bytes.Equal(v1.Interface().([]byte), v2.Interface().([]byte)) - } - - if v1.Len() != v2.Len() { - return false - } - for i := 0; i < v1.Len(); i++ { - if !equalAny(v1.Index(i), v2.Index(i), prop) { - return false - } - } - return true - case reflect.String: - return v1.Interface().(string) == v2.Interface().(string) - case reflect.Struct: - return equalStruct(v1, v2) - case reflect.Uint32, reflect.Uint64: - return v1.Uint() == v2.Uint() - } - - // unknown type, so not a protocol buffer - log.Printf("proto: don't know how to compare %v", v1) - return false -} - -// base is the struct type that the extensions are based on. -// x1 and x2 are InternalExtensions. -func equalExtensions(base reflect.Type, x1, x2 XXX_InternalExtensions) bool { - em1, _ := x1.extensionsRead() - em2, _ := x2.extensionsRead() - return equalExtMap(base, em1, em2) -} - -func equalExtMap(base reflect.Type, em1, em2 map[int32]Extension) bool { - if len(em1) != len(em2) { - return false - } - - for extNum, e1 := range em1 { - e2, ok := em2[extNum] - if !ok { - return false - } - - m1, m2 := e1.value, e2.value - - if m1 != nil && m2 != nil { - // Both are unencoded. - if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2), nil) { - return false - } - continue - } - - // At least one is encoded. To do a semantically correct comparison - // we need to unmarshal them first. - var desc *ExtensionDesc - if m := extensionMaps[base]; m != nil { - desc = m[extNum] - } - if desc == nil { - log.Printf("proto: don't know how to compare extension %d of %v", extNum, base) - continue - } - var err error - if m1 == nil { - m1, err = decodeExtension(e1.enc, desc) - } - if m2 == nil && err == nil { - m2, err = decodeExtension(e2.enc, desc) - } - if err != nil { - // The encoded form is invalid. - log.Printf("proto: badly encoded extension %d of %v: %v", extNum, base, err) - return false - } - if !equalAny(reflect.ValueOf(m1), reflect.ValueOf(m2), nil) { - return false - } - } - - return true -} diff --git a/1.4/vendor/github.com/golang/protobuf/proto/extensions.go b/1.4/vendor/github.com/golang/protobuf/proto/extensions.go deleted file mode 100644 index 9f484f53..00000000 --- a/1.4/vendor/github.com/golang/protobuf/proto/extensions.go +++ /dev/null @@ -1,555 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Types and routines for supporting protocol buffer extensions. - */ - -import ( - "errors" - "fmt" - "reflect" - "strconv" - "sync" -) - -// ErrMissingExtension is the error returned by GetExtension if the named extension is not in the message. -var ErrMissingExtension = errors.New("proto: missing extension") - -// ExtensionRange represents a range of message extensions for a protocol buffer. -// Used in code generated by the protocol compiler. -type ExtensionRange struct { - Start, End int32 // both inclusive -} - -// extendableProto is an interface implemented by any protocol buffer generated by the current -// proto compiler that may be extended. -type extendableProto interface { - Message - ExtensionRangeArray() []ExtensionRange - extensionsWrite() map[int32]Extension - extensionsRead() (map[int32]Extension, sync.Locker) -} - -// extendableProtoV1 is an interface implemented by a protocol buffer generated by the previous -// version of the proto compiler that may be extended. -type extendableProtoV1 interface { - Message - ExtensionRangeArray() []ExtensionRange - ExtensionMap() map[int32]Extension -} - -// extensionAdapter is a wrapper around extendableProtoV1 that implements extendableProto. -type extensionAdapter struct { - extendableProtoV1 -} - -func (e extensionAdapter) extensionsWrite() map[int32]Extension { - return e.ExtensionMap() -} - -func (e extensionAdapter) extensionsRead() (map[int32]Extension, sync.Locker) { - return e.ExtensionMap(), notLocker{} -} - -// notLocker is a sync.Locker whose Lock and Unlock methods are nops. -type notLocker struct{} - -func (n notLocker) Lock() {} -func (n notLocker) Unlock() {} - -// extendable returns the extendableProto interface for the given generated proto message. -// If the proto message has the old extension format, it returns a wrapper that implements -// the extendableProto interface. -func extendable(p interface{}) (extendableProto, bool) { - if ep, ok := p.(extendableProto); ok { - return ep, ok - } - if ep, ok := p.(extendableProtoV1); ok { - return extensionAdapter{ep}, ok - } - return nil, false -} - -// XXX_InternalExtensions is an internal representation of proto extensions. -// -// Each generated message struct type embeds an anonymous XXX_InternalExtensions field, -// thus gaining the unexported 'extensions' method, which can be called only from the proto package. -// -// The methods of XXX_InternalExtensions are not concurrency safe in general, -// but calls to logically read-only methods such as has and get may be executed concurrently. -type XXX_InternalExtensions struct { - // The struct must be indirect so that if a user inadvertently copies a - // generated message and its embedded XXX_InternalExtensions, they - // avoid the mayhem of a copied mutex. - // - // The mutex serializes all logically read-only operations to p.extensionMap. - // It is up to the client to ensure that write operations to p.extensionMap are - // mutually exclusive with other accesses. - p *struct { - mu sync.Mutex - extensionMap map[int32]Extension - } -} - -// extensionsWrite returns the extension map, creating it on first use. -func (e *XXX_InternalExtensions) extensionsWrite() map[int32]Extension { - if e.p == nil { - e.p = new(struct { - mu sync.Mutex - extensionMap map[int32]Extension - }) - e.p.extensionMap = make(map[int32]Extension) - } - return e.p.extensionMap -} - -// extensionsRead returns the extensions map for read-only use. It may be nil. -// The caller must hold the returned mutex's lock when accessing Elements within the map. -func (e *XXX_InternalExtensions) extensionsRead() (map[int32]Extension, sync.Locker) { - if e.p == nil { - return nil, nil - } - return e.p.extensionMap, &e.p.mu -} - -var extendableProtoType = reflect.TypeOf((*extendableProto)(nil)).Elem() -var extendableProtoV1Type = reflect.TypeOf((*extendableProtoV1)(nil)).Elem() - -// ExtensionDesc represents an extension specification. -// Used in generated code from the protocol compiler. -type ExtensionDesc struct { - ExtendedType Message // nil pointer to the type that is being extended - ExtensionType interface{} // nil pointer to the extension type - Field int32 // field number - Name string // fully-qualified name of extension, for text formatting - Tag string // protobuf tag style -} - -func (ed *ExtensionDesc) repeated() bool { - t := reflect.TypeOf(ed.ExtensionType) - return t.Kind() == reflect.Slice && t.Elem().Kind() != reflect.Uint8 -} - -// Extension represents an extension in a message. -type Extension struct { - // When an extension is stored in a message using SetExtension - // only desc and value are set. When the message is marshaled - // enc will be set to the encoded form of the message. - // - // When a message is unmarshaled and contains extensions, each - // extension will have only enc set. When such an extension is - // accessed using GetExtension (or GetExtensions) desc and value - // will be set. - desc *ExtensionDesc - value interface{} - enc []byte -} - -// SetRawExtension is for testing only. -func SetRawExtension(base Message, id int32, b []byte) { - epb, ok := extendable(base) - if !ok { - return - } - extmap := epb.extensionsWrite() - extmap[id] = Extension{enc: b} -} - -// isExtensionField returns true iff the given field number is in an extension range. -func isExtensionField(pb extendableProto, field int32) bool { - for _, er := range pb.ExtensionRangeArray() { - if er.Start <= field && field <= er.End { - return true - } - } - return false -} - -// checkExtensionTypes checks that the given extension is valid for pb. -func checkExtensionTypes(pb extendableProto, extension *ExtensionDesc) error { - var pbi interface{} = pb - // Check the extended type. - if ea, ok := pbi.(extensionAdapter); ok { - pbi = ea.extendableProtoV1 - } - if a, b := reflect.TypeOf(pbi), reflect.TypeOf(extension.ExtendedType); a != b { - return errors.New("proto: bad extended type; " + b.String() + " does not extend " + a.String()) - } - // Check the range. - if !isExtensionField(pb, extension.Field) { - return errors.New("proto: bad extension number; not in declared ranges") - } - return nil -} - -// extPropKey is sufficient to uniquely identify an extension. -type extPropKey struct { - base reflect.Type - field int32 -} - -var extProp = struct { - sync.RWMutex - m map[extPropKey]*Properties -}{ - m: make(map[extPropKey]*Properties), -} - -func extensionProperties(ed *ExtensionDesc) *Properties { - key := extPropKey{base: reflect.TypeOf(ed.ExtendedType), field: ed.Field} - - extProp.RLock() - if prop, ok := extProp.m[key]; ok { - extProp.RUnlock() - return prop - } - extProp.RUnlock() - - extProp.Lock() - defer extProp.Unlock() - // Check again. - if prop, ok := extProp.m[key]; ok { - return prop - } - - prop := new(Properties) - prop.Init(reflect.TypeOf(ed.ExtensionType), "unknown_name", ed.Tag, nil) - extProp.m[key] = prop - return prop -} - -// encode encodes any unmarshaled (unencoded) extensions in e. -func encodeExtensions(e *XXX_InternalExtensions) error { - m, mu := e.extensionsRead() - if m == nil { - return nil // fast path - } - mu.Lock() - defer mu.Unlock() - return encodeExtensionsMap(m) -} - -// encode encodes any unmarshaled (unencoded) extensions in e. -func encodeExtensionsMap(m map[int32]Extension) error { - for k, e := range m { - if e.value == nil || e.desc == nil { - // Extension is only in its encoded form. - continue - } - - // We don't skip extensions that have an encoded form set, - // because the extension value may have been mutated after - // the last time this function was called. - - et := reflect.TypeOf(e.desc.ExtensionType) - props := extensionProperties(e.desc) - - p := NewBuffer(nil) - // If e.value has type T, the encoder expects a *struct{ X T }. - // Pass a *T with a zero field and hope it all works out. - x := reflect.New(et) - x.Elem().Set(reflect.ValueOf(e.value)) - if err := props.enc(p, props, toStructPointer(x)); err != nil { - return err - } - e.enc = p.buf - m[k] = e - } - return nil -} - -func extensionsSize(e *XXX_InternalExtensions) (n int) { - m, mu := e.extensionsRead() - if m == nil { - return 0 - } - mu.Lock() - defer mu.Unlock() - return extensionsMapSize(m) -} - -func extensionsMapSize(m map[int32]Extension) (n int) { - for _, e := range m { - if e.value == nil || e.desc == nil { - // Extension is only in its encoded form. - n += len(e.enc) - continue - } - - // We don't skip extensions that have an encoded form set, - // because the extension value may have been mutated after - // the last time this function was called. - - et := reflect.TypeOf(e.desc.ExtensionType) - props := extensionProperties(e.desc) - - // If e.value has type T, the encoder expects a *struct{ X T }. - // Pass a *T with a zero field and hope it all works out. - x := reflect.New(et) - x.Elem().Set(reflect.ValueOf(e.value)) - n += props.size(props, toStructPointer(x)) - } - return -} - -// HasExtension returns whether the given extension is present in pb. -func HasExtension(pb Message, extension *ExtensionDesc) bool { - // TODO: Check types, field numbers, etc.? - epb, ok := extendable(pb) - if !ok { - return false - } - extmap, mu := epb.extensionsRead() - if extmap == nil { - return false - } - mu.Lock() - _, ok = extmap[extension.Field] - mu.Unlock() - return ok -} - -// ClearExtension removes the given extension from pb. -func ClearExtension(pb Message, extension *ExtensionDesc) { - epb, ok := extendable(pb) - if !ok { - return - } - // TODO: Check types, field numbers, etc.? - extmap := epb.extensionsWrite() - delete(extmap, extension.Field) -} - -// GetExtension parses and returns the given extension of pb. -// If the extension is not present and has no default value it returns ErrMissingExtension. -func GetExtension(pb Message, extension *ExtensionDesc) (interface{}, error) { - epb, ok := extendable(pb) - if !ok { - return nil, errors.New("proto: not an extendable proto") - } - - if err := checkExtensionTypes(epb, extension); err != nil { - return nil, err - } - - emap, mu := epb.extensionsRead() - if emap == nil { - return defaultExtensionValue(extension) - } - mu.Lock() - defer mu.Unlock() - e, ok := emap[extension.Field] - if !ok { - // defaultExtensionValue returns the default value or - // ErrMissingExtension if there is no default. - return defaultExtensionValue(extension) - } - - if e.value != nil { - // Already decoded. Check the descriptor, though. - if e.desc != extension { - // This shouldn't happen. If it does, it means that - // GetExtension was called twice with two different - // descriptors with the same field number. - return nil, errors.New("proto: descriptor conflict") - } - return e.value, nil - } - - v, err := decodeExtension(e.enc, extension) - if err != nil { - return nil, err - } - - // Remember the decoded version and drop the encoded version. - // That way it is safe to mutate what we return. - e.value = v - e.desc = extension - e.enc = nil - emap[extension.Field] = e - return e.value, nil -} - -// defaultExtensionValue returns the default value for extension. -// If no default for an extension is defined ErrMissingExtension is returned. -func defaultExtensionValue(extension *ExtensionDesc) (interface{}, error) { - t := reflect.TypeOf(extension.ExtensionType) - props := extensionProperties(extension) - - sf, _, err := fieldDefault(t, props) - if err != nil { - return nil, err - } - - if sf == nil || sf.value == nil { - // There is no default value. - return nil, ErrMissingExtension - } - - if t.Kind() != reflect.Ptr { - // We do not need to return a Ptr, we can directly return sf.value. - return sf.value, nil - } - - // We need to return an interface{} that is a pointer to sf.value. - value := reflect.New(t).Elem() - value.Set(reflect.New(value.Type().Elem())) - if sf.kind == reflect.Int32 { - // We may have an int32 or an enum, but the underlying data is int32. - // Since we can't set an int32 into a non int32 reflect.value directly - // set it as a int32. - value.Elem().SetInt(int64(sf.value.(int32))) - } else { - value.Elem().Set(reflect.ValueOf(sf.value)) - } - return value.Interface(), nil -} - -// decodeExtension decodes an extension encoded in b. -func decodeExtension(b []byte, extension *ExtensionDesc) (interface{}, error) { - o := NewBuffer(b) - - t := reflect.TypeOf(extension.ExtensionType) - - props := extensionProperties(extension) - - // t is a pointer to a struct, pointer to basic type or a slice. - // Allocate a "field" to store the pointer/slice itself; the - // pointer/slice will be stored here. We pass - // the address of this field to props.dec. - // This passes a zero field and a *t and lets props.dec - // interpret it as a *struct{ x t }. - value := reflect.New(t).Elem() - - for { - // Discard wire type and field number varint. It isn't needed. - if _, err := o.DecodeVarint(); err != nil { - return nil, err - } - - if err := props.dec(o, props, toStructPointer(value.Addr())); err != nil { - return nil, err - } - - if o.index >= len(o.buf) { - break - } - } - return value.Interface(), nil -} - -// GetExtensions returns a slice of the extensions present in pb that are also listed in es. -// The returned slice has the same length as es; missing extensions will appear as nil elements. -func GetExtensions(pb Message, es []*ExtensionDesc) (extensions []interface{}, err error) { - epb, ok := extendable(pb) - if !ok { - return nil, errors.New("proto: not an extendable proto") - } - extensions = make([]interface{}, len(es)) - for i, e := range es { - extensions[i], err = GetExtension(epb, e) - if err == ErrMissingExtension { - err = nil - } - if err != nil { - return - } - } - return -} - -// SetExtension sets the specified extension of pb to the specified value. -func SetExtension(pb Message, extension *ExtensionDesc, value interface{}) error { - epb, ok := extendable(pb) - if !ok { - return errors.New("proto: not an extendable proto") - } - if err := checkExtensionTypes(epb, extension); err != nil { - return err - } - typ := reflect.TypeOf(extension.ExtensionType) - if typ != reflect.TypeOf(value) { - return errors.New("proto: bad extension value type") - } - // nil extension values need to be caught early, because the - // encoder can't distinguish an ErrNil due to a nil extension - // from an ErrNil due to a missing field. Extensions are - // always optional, so the encoder would just swallow the error - // and drop all the extensions from the encoded message. - if reflect.ValueOf(value).IsNil() { - return fmt.Errorf("proto: SetExtension called with nil value of type %T", value) - } - - extmap := epb.extensionsWrite() - extmap[extension.Field] = Extension{desc: extension, value: value} - return nil -} - -// ClearAllExtensions clears all extensions from pb. -func ClearAllExtensions(pb Message) { - epb, ok := extendable(pb) - if !ok { - return - } - m := epb.extensionsWrite() - for k := range m { - delete(m, k) - } -} - -// A global registry of extensions. -// The generated code will register the generated descriptors by calling RegisterExtension. - -var extensionMaps = make(map[reflect.Type]map[int32]*ExtensionDesc) - -// RegisterExtension is called from the generated code. -func RegisterExtension(desc *ExtensionDesc) { - st := reflect.TypeOf(desc.ExtendedType).Elem() - m := extensionMaps[st] - if m == nil { - m = make(map[int32]*ExtensionDesc) - extensionMaps[st] = m - } - if _, ok := m[desc.Field]; ok { - panic("proto: duplicate extension registered: " + st.String() + " " + strconv.Itoa(int(desc.Field))) - } - m[desc.Field] = desc -} - -// RegisteredExtensions returns a map of the registered extensions of a -// protocol buffer struct, indexed by the extension number. -// The argument pb should be a nil pointer to the struct type. -func RegisteredExtensions(pb Message) map[int32]*ExtensionDesc { - return extensionMaps[reflect.TypeOf(pb).Elem()] -} diff --git a/1.4/vendor/github.com/golang/protobuf/proto/lib.go b/1.4/vendor/github.com/golang/protobuf/proto/lib.go deleted file mode 100644 index 170b8e87..00000000 --- a/1.4/vendor/github.com/golang/protobuf/proto/lib.go +++ /dev/null @@ -1,898 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -/* -Package proto converts data structures to and from the wire format of -protocol buffers. It works in concert with the Go source code generated -for .proto files by the protocol compiler. - -A summary of the properties of the protocol buffer interface -for a protocol buffer variable v: - - - Names are turned from camel_case to CamelCase for export. - - There are no methods on v to set fields; just treat - them as structure fields. - - There are getters that return a field's value if set, - and return the field's default value if unset. - The getters work even if the receiver is a nil message. - - The zero value for a struct is its correct initialization state. - All desired fields must be set before marshaling. - - A Reset() method will restore a protobuf struct to its zero state. - - Non-repeated fields are pointers to the values; nil means unset. - That is, optional or required field int32 f becomes F *int32. - - Repeated fields are slices. - - Helper functions are available to aid the setting of fields. - msg.Foo = proto.String("hello") // set field - - Constants are defined to hold the default values of all fields that - have them. They have the form Default_StructName_FieldName. - Because the getter methods handle defaulted values, - direct use of these constants should be rare. - - Enums are given type names and maps from names to values. - Enum values are prefixed by the enclosing message's name, or by the - enum's type name if it is a top-level enum. Enum types have a String - method, and a Enum method to assist in message construction. - - Nested messages, groups and enums have type names prefixed with the name of - the surrounding message type. - - Extensions are given descriptor names that start with E_, - followed by an underscore-delimited list of the nested messages - that contain it (if any) followed by the CamelCased name of the - extension field itself. HasExtension, ClearExtension, GetExtension - and SetExtension are functions for manipulating extensions. - - Oneof field sets are given a single field in their message, - with distinguished wrapper types for each possible field value. - - Marshal and Unmarshal are functions to encode and decode the wire format. - -When the .proto file specifies `syntax="proto3"`, there are some differences: - - - Non-repeated fields of non-message type are values instead of pointers. - - Getters are only generated for message and oneof fields. - - Enum types do not get an Enum method. - -The simplest way to describe this is to see an example. -Given file test.proto, containing - - package example; - - enum FOO { X = 17; } - - message Test { - required string label = 1; - optional int32 type = 2 [default=77]; - repeated int64 reps = 3; - optional group OptionalGroup = 4 { - required string RequiredField = 5; - } - oneof union { - int32 number = 6; - string name = 7; - } - } - -The resulting file, test.pb.go, is: - - package example - - import proto "github.com/golang/protobuf/proto" - import math "math" - - type FOO int32 - const ( - FOO_X FOO = 17 - ) - var FOO_name = map[int32]string{ - 17: "X", - } - var FOO_value = map[string]int32{ - "X": 17, - } - - func (x FOO) Enum() *FOO { - p := new(FOO) - *p = x - return p - } - func (x FOO) String() string { - return proto.EnumName(FOO_name, int32(x)) - } - func (x *FOO) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(FOO_value, data) - if err != nil { - return err - } - *x = FOO(value) - return nil - } - - type Test struct { - Label *string `protobuf:"bytes,1,req,name=label" json:"label,omitempty"` - Type *int32 `protobuf:"varint,2,opt,name=type,def=77" json:"type,omitempty"` - Reps []int64 `protobuf:"varint,3,rep,name=reps" json:"reps,omitempty"` - Optionalgroup *Test_OptionalGroup `protobuf:"group,4,opt,name=OptionalGroup" json:"optionalgroup,omitempty"` - // Types that are valid to be assigned to Union: - // *Test_Number - // *Test_Name - Union isTest_Union `protobuf_oneof:"union"` - XXX_unrecognized []byte `json:"-"` - } - func (m *Test) Reset() { *m = Test{} } - func (m *Test) String() string { return proto.CompactTextString(m) } - func (*Test) ProtoMessage() {} - - type isTest_Union interface { - isTest_Union() - } - - type Test_Number struct { - Number int32 `protobuf:"varint,6,opt,name=number"` - } - type Test_Name struct { - Name string `protobuf:"bytes,7,opt,name=name"` - } - - func (*Test_Number) isTest_Union() {} - func (*Test_Name) isTest_Union() {} - - func (m *Test) GetUnion() isTest_Union { - if m != nil { - return m.Union - } - return nil - } - const Default_Test_Type int32 = 77 - - func (m *Test) GetLabel() string { - if m != nil && m.Label != nil { - return *m.Label - } - return "" - } - - func (m *Test) GetType() int32 { - if m != nil && m.Type != nil { - return *m.Type - } - return Default_Test_Type - } - - func (m *Test) GetOptionalgroup() *Test_OptionalGroup { - if m != nil { - return m.Optionalgroup - } - return nil - } - - type Test_OptionalGroup struct { - RequiredField *string `protobuf:"bytes,5,req" json:"RequiredField,omitempty"` - } - func (m *Test_OptionalGroup) Reset() { *m = Test_OptionalGroup{} } - func (m *Test_OptionalGroup) String() string { return proto.CompactTextString(m) } - - func (m *Test_OptionalGroup) GetRequiredField() string { - if m != nil && m.RequiredField != nil { - return *m.RequiredField - } - return "" - } - - func (m *Test) GetNumber() int32 { - if x, ok := m.GetUnion().(*Test_Number); ok { - return x.Number - } - return 0 - } - - func (m *Test) GetName() string { - if x, ok := m.GetUnion().(*Test_Name); ok { - return x.Name - } - return "" - } - - func init() { - proto.RegisterEnum("example.FOO", FOO_name, FOO_value) - } - -To create and play with a Test object: - - package main - - import ( - "log" - - "github.com/golang/protobuf/proto" - pb "./example.pb" - ) - - func main() { - test := &pb.Test{ - Label: proto.String("hello"), - Type: proto.Int32(17), - Reps: []int64{1, 2, 3}, - Optionalgroup: &pb.Test_OptionalGroup{ - RequiredField: proto.String("good bye"), - }, - Union: &pb.Test_Name{"fred"}, - } - data, err := proto.Marshal(test) - if err != nil { - log.Fatal("marshaling error: ", err) - } - newTest := &pb.Test{} - err = proto.Unmarshal(data, newTest) - if err != nil { - log.Fatal("unmarshaling error: ", err) - } - // Now test and newTest contain the same data. - if test.GetLabel() != newTest.GetLabel() { - log.Fatalf("data mismatch %q != %q", test.GetLabel(), newTest.GetLabel()) - } - // Use a type switch to determine which oneof was set. - switch u := test.Union.(type) { - case *pb.Test_Number: // u.Number contains the number. - case *pb.Test_Name: // u.Name contains the string. - } - // etc. - } -*/ -package proto - -import ( - "encoding/json" - "fmt" - "log" - "reflect" - "sort" - "strconv" - "sync" -) - -// Message is implemented by generated protocol buffer messages. -type Message interface { - Reset() - String() string - ProtoMessage() -} - -// Stats records allocation details about the protocol buffer encoders -// and decoders. Useful for tuning the library itself. -type Stats struct { - Emalloc uint64 // mallocs in encode - Dmalloc uint64 // mallocs in decode - Encode uint64 // number of encodes - Decode uint64 // number of decodes - Chit uint64 // number of cache hits - Cmiss uint64 // number of cache misses - Size uint64 // number of sizes -} - -// Set to true to enable stats collection. -const collectStats = false - -var stats Stats - -// GetStats returns a copy of the global Stats structure. -func GetStats() Stats { return stats } - -// A Buffer is a buffer manager for marshaling and unmarshaling -// protocol buffers. It may be reused between invocations to -// reduce memory usage. It is not necessary to use a Buffer; -// the global functions Marshal and Unmarshal create a -// temporary Buffer and are fine for most applications. -type Buffer struct { - buf []byte // encode/decode byte stream - index int // write point - - // pools of basic types to amortize allocation. - bools []bool - uint32s []uint32 - uint64s []uint64 - - // extra pools, only used with pointer_reflect.go - int32s []int32 - int64s []int64 - float32s []float32 - float64s []float64 -} - -// NewBuffer allocates a new Buffer and initializes its internal data to -// the contents of the argument slice. -func NewBuffer(e []byte) *Buffer { - return &Buffer{buf: e} -} - -// Reset resets the Buffer, ready for marshaling a new protocol buffer. -func (p *Buffer) Reset() { - p.buf = p.buf[0:0] // for reading/writing - p.index = 0 // for reading -} - -// SetBuf replaces the internal buffer with the slice, -// ready for unmarshaling the contents of the slice. -func (p *Buffer) SetBuf(s []byte) { - p.buf = s - p.index = 0 -} - -// Bytes returns the contents of the Buffer. -func (p *Buffer) Bytes() []byte { return p.buf } - -/* - * Helper routines for simplifying the creation of optional fields of basic type. - */ - -// Bool is a helper routine that allocates a new bool value -// to store v and returns a pointer to it. -func Bool(v bool) *bool { - return &v -} - -// Int32 is a helper routine that allocates a new int32 value -// to store v and returns a pointer to it. -func Int32(v int32) *int32 { - return &v -} - -// Int is a helper routine that allocates a new int32 value -// to store v and returns a pointer to it, but unlike Int32 -// its argument value is an int. -func Int(v int) *int32 { - p := new(int32) - *p = int32(v) - return p -} - -// Int64 is a helper routine that allocates a new int64 value -// to store v and returns a pointer to it. -func Int64(v int64) *int64 { - return &v -} - -// Float32 is a helper routine that allocates a new float32 value -// to store v and returns a pointer to it. -func Float32(v float32) *float32 { - return &v -} - -// Float64 is a helper routine that allocates a new float64 value -// to store v and returns a pointer to it. -func Float64(v float64) *float64 { - return &v -} - -// Uint32 is a helper routine that allocates a new uint32 value -// to store v and returns a pointer to it. -func Uint32(v uint32) *uint32 { - return &v -} - -// Uint64 is a helper routine that allocates a new uint64 value -// to store v and returns a pointer to it. -func Uint64(v uint64) *uint64 { - return &v -} - -// String is a helper routine that allocates a new string value -// to store v and returns a pointer to it. -func String(v string) *string { - return &v -} - -// EnumName is a helper function to simplify printing protocol buffer enums -// by name. Given an enum map and a value, it returns a useful string. -func EnumName(m map[int32]string, v int32) string { - s, ok := m[v] - if ok { - return s - } - return strconv.Itoa(int(v)) -} - -// UnmarshalJSONEnum is a helper function to simplify recovering enum int values -// from their JSON-encoded representation. Given a map from the enum's symbolic -// names to its int values, and a byte buffer containing the JSON-encoded -// value, it returns an int32 that can be cast to the enum type by the caller. -// -// The function can deal with both JSON representations, numeric and symbolic. -func UnmarshalJSONEnum(m map[string]int32, data []byte, enumName string) (int32, error) { - if data[0] == '"' { - // New style: enums are strings. - var repr string - if err := json.Unmarshal(data, &repr); err != nil { - return -1, err - } - val, ok := m[repr] - if !ok { - return 0, fmt.Errorf("unrecognized enum %s value %q", enumName, repr) - } - return val, nil - } - // Old style: enums are ints. - var val int32 - if err := json.Unmarshal(data, &val); err != nil { - return 0, fmt.Errorf("cannot unmarshal %#q into enum %s", data, enumName) - } - return val, nil -} - -// DebugPrint dumps the encoded data in b in a debugging format with a header -// including the string s. Used in testing but made available for general debugging. -func (p *Buffer) DebugPrint(s string, b []byte) { - var u uint64 - - obuf := p.buf - index := p.index - p.buf = b - p.index = 0 - depth := 0 - - fmt.Printf("\n--- %s ---\n", s) - -out: - for { - for i := 0; i < depth; i++ { - fmt.Print(" ") - } - - index := p.index - if index == len(p.buf) { - break - } - - op, err := p.DecodeVarint() - if err != nil { - fmt.Printf("%3d: fetching op err %v\n", index, err) - break out - } - tag := op >> 3 - wire := op & 7 - - switch wire { - default: - fmt.Printf("%3d: t=%3d unknown wire=%d\n", - index, tag, wire) - break out - - case WireBytes: - var r []byte - - r, err = p.DecodeRawBytes(false) - if err != nil { - break out - } - fmt.Printf("%3d: t=%3d bytes [%d]", index, tag, len(r)) - if len(r) <= 6 { - for i := 0; i < len(r); i++ { - fmt.Printf(" %.2x", r[i]) - } - } else { - for i := 0; i < 3; i++ { - fmt.Printf(" %.2x", r[i]) - } - fmt.Printf(" ..") - for i := len(r) - 3; i < len(r); i++ { - fmt.Printf(" %.2x", r[i]) - } - } - fmt.Printf("\n") - - case WireFixed32: - u, err = p.DecodeFixed32() - if err != nil { - fmt.Printf("%3d: t=%3d fix32 err %v\n", index, tag, err) - break out - } - fmt.Printf("%3d: t=%3d fix32 %d\n", index, tag, u) - - case WireFixed64: - u, err = p.DecodeFixed64() - if err != nil { - fmt.Printf("%3d: t=%3d fix64 err %v\n", index, tag, err) - break out - } - fmt.Printf("%3d: t=%3d fix64 %d\n", index, tag, u) - - case WireVarint: - u, err = p.DecodeVarint() - if err != nil { - fmt.Printf("%3d: t=%3d varint err %v\n", index, tag, err) - break out - } - fmt.Printf("%3d: t=%3d varint %d\n", index, tag, u) - - case WireStartGroup: - fmt.Printf("%3d: t=%3d start\n", index, tag) - depth++ - - case WireEndGroup: - depth-- - fmt.Printf("%3d: t=%3d end\n", index, tag) - } - } - - if depth != 0 { - fmt.Printf("%3d: start-end not balanced %d\n", p.index, depth) - } - fmt.Printf("\n") - - p.buf = obuf - p.index = index -} - -// SetDefaults sets unset protocol buffer fields to their default values. -// It only modifies fields that are both unset and have defined defaults. -// It recursively sets default values in any non-nil sub-messages. -func SetDefaults(pb Message) { - setDefaults(reflect.ValueOf(pb), true, false) -} - -// v is a pointer to a struct. -func setDefaults(v reflect.Value, recur, zeros bool) { - v = v.Elem() - - defaultMu.RLock() - dm, ok := defaults[v.Type()] - defaultMu.RUnlock() - if !ok { - dm = buildDefaultMessage(v.Type()) - defaultMu.Lock() - defaults[v.Type()] = dm - defaultMu.Unlock() - } - - for _, sf := range dm.scalars { - f := v.Field(sf.index) - if !f.IsNil() { - // field already set - continue - } - dv := sf.value - if dv == nil && !zeros { - // no explicit default, and don't want to set zeros - continue - } - fptr := f.Addr().Interface() // **T - // TODO: Consider batching the allocations we do here. - switch sf.kind { - case reflect.Bool: - b := new(bool) - if dv != nil { - *b = dv.(bool) - } - *(fptr.(**bool)) = b - case reflect.Float32: - f := new(float32) - if dv != nil { - *f = dv.(float32) - } - *(fptr.(**float32)) = f - case reflect.Float64: - f := new(float64) - if dv != nil { - *f = dv.(float64) - } - *(fptr.(**float64)) = f - case reflect.Int32: - // might be an enum - if ft := f.Type(); ft != int32PtrType { - // enum - f.Set(reflect.New(ft.Elem())) - if dv != nil { - f.Elem().SetInt(int64(dv.(int32))) - } - } else { - // int32 field - i := new(int32) - if dv != nil { - *i = dv.(int32) - } - *(fptr.(**int32)) = i - } - case reflect.Int64: - i := new(int64) - if dv != nil { - *i = dv.(int64) - } - *(fptr.(**int64)) = i - case reflect.String: - s := new(string) - if dv != nil { - *s = dv.(string) - } - *(fptr.(**string)) = s - case reflect.Uint8: - // exceptional case: []byte - var b []byte - if dv != nil { - db := dv.([]byte) - b = make([]byte, len(db)) - copy(b, db) - } else { - b = []byte{} - } - *(fptr.(*[]byte)) = b - case reflect.Uint32: - u := new(uint32) - if dv != nil { - *u = dv.(uint32) - } - *(fptr.(**uint32)) = u - case reflect.Uint64: - u := new(uint64) - if dv != nil { - *u = dv.(uint64) - } - *(fptr.(**uint64)) = u - default: - log.Printf("proto: can't set default for field %v (sf.kind=%v)", f, sf.kind) - } - } - - for _, ni := range dm.nested { - f := v.Field(ni) - // f is *T or []*T or map[T]*T - switch f.Kind() { - case reflect.Ptr: - if f.IsNil() { - continue - } - setDefaults(f, recur, zeros) - - case reflect.Slice: - for i := 0; i < f.Len(); i++ { - e := f.Index(i) - if e.IsNil() { - continue - } - setDefaults(e, recur, zeros) - } - - case reflect.Map: - for _, k := range f.MapKeys() { - e := f.MapIndex(k) - if e.IsNil() { - continue - } - setDefaults(e, recur, zeros) - } - } - } -} - -var ( - // defaults maps a protocol buffer struct type to a slice of the fields, - // with its scalar fields set to their proto-declared non-zero default values. - defaultMu sync.RWMutex - defaults = make(map[reflect.Type]defaultMessage) - - int32PtrType = reflect.TypeOf((*int32)(nil)) -) - -// defaultMessage represents information about the default values of a message. -type defaultMessage struct { - scalars []scalarField - nested []int // struct field index of nested messages -} - -type scalarField struct { - index int // struct field index - kind reflect.Kind // element type (the T in *T or []T) - value interface{} // the proto-declared default value, or nil -} - -// t is a struct type. -func buildDefaultMessage(t reflect.Type) (dm defaultMessage) { - sprop := GetProperties(t) - for _, prop := range sprop.Prop { - fi, ok := sprop.decoderTags.get(prop.Tag) - if !ok { - // XXX_unrecognized - continue - } - ft := t.Field(fi).Type - - sf, nested, err := fieldDefault(ft, prop) - switch { - case err != nil: - log.Print(err) - case nested: - dm.nested = append(dm.nested, fi) - case sf != nil: - sf.index = fi - dm.scalars = append(dm.scalars, *sf) - } - } - - return dm -} - -// fieldDefault returns the scalarField for field type ft. -// sf will be nil if the field can not have a default. -// nestedMessage will be true if this is a nested message. -// Note that sf.index is not set on return. -func fieldDefault(ft reflect.Type, prop *Properties) (sf *scalarField, nestedMessage bool, err error) { - var canHaveDefault bool - switch ft.Kind() { - case reflect.Ptr: - if ft.Elem().Kind() == reflect.Struct { - nestedMessage = true - } else { - canHaveDefault = true // proto2 scalar field - } - - case reflect.Slice: - switch ft.Elem().Kind() { - case reflect.Ptr: - nestedMessage = true // repeated message - case reflect.Uint8: - canHaveDefault = true // bytes field - } - - case reflect.Map: - if ft.Elem().Kind() == reflect.Ptr { - nestedMessage = true // map with message values - } - } - - if !canHaveDefault { - if nestedMessage { - return nil, true, nil - } - return nil, false, nil - } - - // We now know that ft is a pointer or slice. - sf = &scalarField{kind: ft.Elem().Kind()} - - // scalar fields without defaults - if !prop.HasDefault { - return sf, false, nil - } - - // a scalar field: either *T or []byte - switch ft.Elem().Kind() { - case reflect.Bool: - x, err := strconv.ParseBool(prop.Default) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default bool %q: %v", prop.Default, err) - } - sf.value = x - case reflect.Float32: - x, err := strconv.ParseFloat(prop.Default, 32) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default float32 %q: %v", prop.Default, err) - } - sf.value = float32(x) - case reflect.Float64: - x, err := strconv.ParseFloat(prop.Default, 64) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default float64 %q: %v", prop.Default, err) - } - sf.value = x - case reflect.Int32: - x, err := strconv.ParseInt(prop.Default, 10, 32) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default int32 %q: %v", prop.Default, err) - } - sf.value = int32(x) - case reflect.Int64: - x, err := strconv.ParseInt(prop.Default, 10, 64) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default int64 %q: %v", prop.Default, err) - } - sf.value = x - case reflect.String: - sf.value = prop.Default - case reflect.Uint8: - // []byte (not *uint8) - sf.value = []byte(prop.Default) - case reflect.Uint32: - x, err := strconv.ParseUint(prop.Default, 10, 32) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default uint32 %q: %v", prop.Default, err) - } - sf.value = uint32(x) - case reflect.Uint64: - x, err := strconv.ParseUint(prop.Default, 10, 64) - if err != nil { - return nil, false, fmt.Errorf("proto: bad default uint64 %q: %v", prop.Default, err) - } - sf.value = x - default: - return nil, false, fmt.Errorf("proto: unhandled def kind %v", ft.Elem().Kind()) - } - - return sf, false, nil -} - -// Map fields may have key types of non-float scalars, strings and enums. -// The easiest way to sort them in some deterministic order is to use fmt. -// If this turns out to be inefficient we can always consider other options, -// such as doing a Schwartzian transform. - -func mapKeys(vs []reflect.Value) sort.Interface { - s := mapKeySorter{ - vs: vs, - // default Less function: textual comparison - less: func(a, b reflect.Value) bool { - return fmt.Sprint(a.Interface()) < fmt.Sprint(b.Interface()) - }, - } - - // Type specialization per https://developers.google.com/protocol-buffers/docs/proto#maps; - // numeric keys are sorted numerically. - if len(vs) == 0 { - return s - } - switch vs[0].Kind() { - case reflect.Int32, reflect.Int64: - s.less = func(a, b reflect.Value) bool { return a.Int() < b.Int() } - case reflect.Uint32, reflect.Uint64: - s.less = func(a, b reflect.Value) bool { return a.Uint() < b.Uint() } - } - - return s -} - -type mapKeySorter struct { - vs []reflect.Value - less func(a, b reflect.Value) bool -} - -func (s mapKeySorter) Len() int { return len(s.vs) } -func (s mapKeySorter) Swap(i, j int) { s.vs[i], s.vs[j] = s.vs[j], s.vs[i] } -func (s mapKeySorter) Less(i, j int) bool { - return s.less(s.vs[i], s.vs[j]) -} - -// isProto3Zero reports whether v is a zero proto3 value. -func isProto3Zero(v reflect.Value) bool { - switch v.Kind() { - case reflect.Bool: - return !v.Bool() - case reflect.Int32, reflect.Int64: - return v.Int() == 0 - case reflect.Uint32, reflect.Uint64: - return v.Uint() == 0 - case reflect.Float32, reflect.Float64: - return v.Float() == 0 - case reflect.String: - return v.String() == "" - } - return false -} - -// ProtoPackageIsVersion2 is referenced from generated protocol buffer files -// to assert that that code is compatible with this version of the proto package. -const ProtoPackageIsVersion2 = true - -// ProtoPackageIsVersion1 is referenced from generated protocol buffer files -// to assert that that code is compatible with this version of the proto package. -const ProtoPackageIsVersion1 = true diff --git a/1.4/vendor/github.com/golang/protobuf/proto/message_set.go b/1.4/vendor/github.com/golang/protobuf/proto/message_set.go deleted file mode 100644 index fd982dec..00000000 --- a/1.4/vendor/github.com/golang/protobuf/proto/message_set.go +++ /dev/null @@ -1,311 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Support for message sets. - */ - -import ( - "bytes" - "encoding/json" - "errors" - "fmt" - "reflect" - "sort" -) - -// errNoMessageTypeID occurs when a protocol buffer does not have a message type ID. -// A message type ID is required for storing a protocol buffer in a message set. -var errNoMessageTypeID = errors.New("proto does not have a message type ID") - -// The first two types (_MessageSet_Item and messageSet) -// model what the protocol compiler produces for the following protocol message: -// message MessageSet { -// repeated group Item = 1 { -// required int32 type_id = 2; -// required string message = 3; -// }; -// } -// That is the MessageSet wire format. We can't use a proto to generate these -// because that would introduce a circular dependency between it and this package. - -type _MessageSet_Item struct { - TypeId *int32 `protobuf:"varint,2,req,name=type_id"` - Message []byte `protobuf:"bytes,3,req,name=message"` -} - -type messageSet struct { - Item []*_MessageSet_Item `protobuf:"group,1,rep"` - XXX_unrecognized []byte - // TODO: caching? -} - -// Make sure messageSet is a Message. -var _ Message = (*messageSet)(nil) - -// messageTypeIder is an interface satisfied by a protocol buffer type -// that may be stored in a MessageSet. -type messageTypeIder interface { - MessageTypeId() int32 -} - -func (ms *messageSet) find(pb Message) *_MessageSet_Item { - mti, ok := pb.(messageTypeIder) - if !ok { - return nil - } - id := mti.MessageTypeId() - for _, item := range ms.Item { - if *item.TypeId == id { - return item - } - } - return nil -} - -func (ms *messageSet) Has(pb Message) bool { - if ms.find(pb) != nil { - return true - } - return false -} - -func (ms *messageSet) Unmarshal(pb Message) error { - if item := ms.find(pb); item != nil { - return Unmarshal(item.Message, pb) - } - if _, ok := pb.(messageTypeIder); !ok { - return errNoMessageTypeID - } - return nil // TODO: return error instead? -} - -func (ms *messageSet) Marshal(pb Message) error { - msg, err := Marshal(pb) - if err != nil { - return err - } - if item := ms.find(pb); item != nil { - // reuse existing item - item.Message = msg - return nil - } - - mti, ok := pb.(messageTypeIder) - if !ok { - return errNoMessageTypeID - } - - mtid := mti.MessageTypeId() - ms.Item = append(ms.Item, &_MessageSet_Item{ - TypeId: &mtid, - Message: msg, - }) - return nil -} - -func (ms *messageSet) Reset() { *ms = messageSet{} } -func (ms *messageSet) String() string { return CompactTextString(ms) } -func (*messageSet) ProtoMessage() {} - -// Support for the message_set_wire_format message option. - -func skipVarint(buf []byte) []byte { - i := 0 - for ; buf[i]&0x80 != 0; i++ { - } - return buf[i+1:] -} - -// MarshalMessageSet encodes the extension map represented by m in the message set wire format. -// It is called by generated Marshal methods on protocol buffer messages with the message_set_wire_format option. -func MarshalMessageSet(exts interface{}) ([]byte, error) { - var m map[int32]Extension - switch exts := exts.(type) { - case *XXX_InternalExtensions: - if err := encodeExtensions(exts); err != nil { - return nil, err - } - m, _ = exts.extensionsRead() - case map[int32]Extension: - if err := encodeExtensionsMap(exts); err != nil { - return nil, err - } - m = exts - default: - return nil, errors.New("proto: not an extension map") - } - - // Sort extension IDs to provide a deterministic encoding. - // See also enc_map in encode.go. - ids := make([]int, 0, len(m)) - for id := range m { - ids = append(ids, int(id)) - } - sort.Ints(ids) - - ms := &messageSet{Item: make([]*_MessageSet_Item, 0, len(m))} - for _, id := range ids { - e := m[int32(id)] - // Remove the wire type and field number varint, as well as the length varint. - msg := skipVarint(skipVarint(e.enc)) - - ms.Item = append(ms.Item, &_MessageSet_Item{ - TypeId: Int32(int32(id)), - Message: msg, - }) - } - return Marshal(ms) -} - -// UnmarshalMessageSet decodes the extension map encoded in buf in the message set wire format. -// It is called by generated Unmarshal methods on protocol buffer messages with the message_set_wire_format option. -func UnmarshalMessageSet(buf []byte, exts interface{}) error { - var m map[int32]Extension - switch exts := exts.(type) { - case *XXX_InternalExtensions: - m = exts.extensionsWrite() - case map[int32]Extension: - m = exts - default: - return errors.New("proto: not an extension map") - } - - ms := new(messageSet) - if err := Unmarshal(buf, ms); err != nil { - return err - } - for _, item := range ms.Item { - id := *item.TypeId - msg := item.Message - - // Restore wire type and field number varint, plus length varint. - // Be careful to preserve duplicate items. - b := EncodeVarint(uint64(id)<<3 | WireBytes) - if ext, ok := m[id]; ok { - // Existing data; rip off the tag and length varint - // so we join the new data correctly. - // We can assume that ext.enc is set because we are unmarshaling. - o := ext.enc[len(b):] // skip wire type and field number - _, n := DecodeVarint(o) // calculate length of length varint - o = o[n:] // skip length varint - msg = append(o, msg...) // join old data and new data - } - b = append(b, EncodeVarint(uint64(len(msg)))...) - b = append(b, msg...) - - m[id] = Extension{enc: b} - } - return nil -} - -// MarshalMessageSetJSON encodes the extension map represented by m in JSON format. -// It is called by generated MarshalJSON methods on protocol buffer messages with the message_set_wire_format option. -func MarshalMessageSetJSON(exts interface{}) ([]byte, error) { - var m map[int32]Extension - switch exts := exts.(type) { - case *XXX_InternalExtensions: - m, _ = exts.extensionsRead() - case map[int32]Extension: - m = exts - default: - return nil, errors.New("proto: not an extension map") - } - var b bytes.Buffer - b.WriteByte('{') - - // Process the map in key order for deterministic output. - ids := make([]int32, 0, len(m)) - for id := range m { - ids = append(ids, id) - } - sort.Sort(int32Slice(ids)) // int32Slice defined in text.go - - for i, id := range ids { - ext := m[id] - if i > 0 { - b.WriteByte(',') - } - - msd, ok := messageSetMap[id] - if !ok { - // Unknown type; we can't render it, so skip it. - continue - } - fmt.Fprintf(&b, `"[%s]":`, msd.name) - - x := ext.value - if x == nil { - x = reflect.New(msd.t.Elem()).Interface() - if err := Unmarshal(ext.enc, x.(Message)); err != nil { - return nil, err - } - } - d, err := json.Marshal(x) - if err != nil { - return nil, err - } - b.Write(d) - } - b.WriteByte('}') - return b.Bytes(), nil -} - -// UnmarshalMessageSetJSON decodes the extension map encoded in buf in JSON format. -// It is called by generated UnmarshalJSON methods on protocol buffer messages with the message_set_wire_format option. -func UnmarshalMessageSetJSON(buf []byte, exts interface{}) error { - // Common-case fast path. - if len(buf) == 0 || bytes.Equal(buf, []byte("{}")) { - return nil - } - - // This is fairly tricky, and it's not clear that it is needed. - return errors.New("TODO: UnmarshalMessageSetJSON not yet implemented") -} - -// A global registry of types that can be used in a MessageSet. - -var messageSetMap = make(map[int32]messageSetDesc) - -type messageSetDesc struct { - t reflect.Type // pointer to struct - name string -} - -// RegisterMessageSetType is called from the generated code. -func RegisterMessageSetType(m Message, fieldNum int32, name string) { - messageSetMap[fieldNum] = messageSetDesc{ - t: reflect.TypeOf(m), - name: name, - } -} diff --git a/1.4/vendor/github.com/golang/protobuf/proto/pointer_reflect.go b/1.4/vendor/github.com/golang/protobuf/proto/pointer_reflect.go deleted file mode 100644 index fb512e2e..00000000 --- a/1.4/vendor/github.com/golang/protobuf/proto/pointer_reflect.go +++ /dev/null @@ -1,484 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2012 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// +build appengine js - -// This file contains an implementation of proto field accesses using package reflect. -// It is slower than the code in pointer_unsafe.go but it avoids package unsafe and can -// be used on App Engine. - -package proto - -import ( - "math" - "reflect" -) - -// A structPointer is a pointer to a struct. -type structPointer struct { - v reflect.Value -} - -// toStructPointer returns a structPointer equivalent to the given reflect value. -// The reflect value must itself be a pointer to a struct. -func toStructPointer(v reflect.Value) structPointer { - return structPointer{v} -} - -// IsNil reports whether p is nil. -func structPointer_IsNil(p structPointer) bool { - return p.v.IsNil() -} - -// Interface returns the struct pointer as an interface value. -func structPointer_Interface(p structPointer, _ reflect.Type) interface{} { - return p.v.Interface() -} - -// A field identifies a field in a struct, accessible from a structPointer. -// In this implementation, a field is identified by the sequence of field indices -// passed to reflect's FieldByIndex. -type field []int - -// toField returns a field equivalent to the given reflect field. -func toField(f *reflect.StructField) field { - return f.Index -} - -// invalidField is an invalid field identifier. -var invalidField = field(nil) - -// IsValid reports whether the field identifier is valid. -func (f field) IsValid() bool { return f != nil } - -// field returns the given field in the struct as a reflect value. -func structPointer_field(p structPointer, f field) reflect.Value { - // Special case: an extension map entry with a value of type T - // passes a *T to the struct-handling code with a zero field, - // expecting that it will be treated as equivalent to *struct{ X T }, - // which has the same memory layout. We have to handle that case - // specially, because reflect will panic if we call FieldByIndex on a - // non-struct. - if f == nil { - return p.v.Elem() - } - - return p.v.Elem().FieldByIndex(f) -} - -// ifield returns the given field in the struct as an interface value. -func structPointer_ifield(p structPointer, f field) interface{} { - return structPointer_field(p, f).Addr().Interface() -} - -// Bytes returns the address of a []byte field in the struct. -func structPointer_Bytes(p structPointer, f field) *[]byte { - return structPointer_ifield(p, f).(*[]byte) -} - -// BytesSlice returns the address of a [][]byte field in the struct. -func structPointer_BytesSlice(p structPointer, f field) *[][]byte { - return structPointer_ifield(p, f).(*[][]byte) -} - -// Bool returns the address of a *bool field in the struct. -func structPointer_Bool(p structPointer, f field) **bool { - return structPointer_ifield(p, f).(**bool) -} - -// BoolVal returns the address of a bool field in the struct. -func structPointer_BoolVal(p structPointer, f field) *bool { - return structPointer_ifield(p, f).(*bool) -} - -// BoolSlice returns the address of a []bool field in the struct. -func structPointer_BoolSlice(p structPointer, f field) *[]bool { - return structPointer_ifield(p, f).(*[]bool) -} - -// String returns the address of a *string field in the struct. -func structPointer_String(p structPointer, f field) **string { - return structPointer_ifield(p, f).(**string) -} - -// StringVal returns the address of a string field in the struct. -func structPointer_StringVal(p structPointer, f field) *string { - return structPointer_ifield(p, f).(*string) -} - -// StringSlice returns the address of a []string field in the struct. -func structPointer_StringSlice(p structPointer, f field) *[]string { - return structPointer_ifield(p, f).(*[]string) -} - -// Extensions returns the address of an extension map field in the struct. -func structPointer_Extensions(p structPointer, f field) *XXX_InternalExtensions { - return structPointer_ifield(p, f).(*XXX_InternalExtensions) -} - -// ExtMap returns the address of an extension map field in the struct. -func structPointer_ExtMap(p structPointer, f field) *map[int32]Extension { - return structPointer_ifield(p, f).(*map[int32]Extension) -} - -// NewAt returns the reflect.Value for a pointer to a field in the struct. -func structPointer_NewAt(p structPointer, f field, typ reflect.Type) reflect.Value { - return structPointer_field(p, f).Addr() -} - -// SetStructPointer writes a *struct field in the struct. -func structPointer_SetStructPointer(p structPointer, f field, q structPointer) { - structPointer_field(p, f).Set(q.v) -} - -// GetStructPointer reads a *struct field in the struct. -func structPointer_GetStructPointer(p structPointer, f field) structPointer { - return structPointer{structPointer_field(p, f)} -} - -// StructPointerSlice the address of a []*struct field in the struct. -func structPointer_StructPointerSlice(p structPointer, f field) structPointerSlice { - return structPointerSlice{structPointer_field(p, f)} -} - -// A structPointerSlice represents the address of a slice of pointers to structs -// (themselves messages or groups). That is, v.Type() is *[]*struct{...}. -type structPointerSlice struct { - v reflect.Value -} - -func (p structPointerSlice) Len() int { return p.v.Len() } -func (p structPointerSlice) Index(i int) structPointer { return structPointer{p.v.Index(i)} } -func (p structPointerSlice) Append(q structPointer) { - p.v.Set(reflect.Append(p.v, q.v)) -} - -var ( - int32Type = reflect.TypeOf(int32(0)) - uint32Type = reflect.TypeOf(uint32(0)) - float32Type = reflect.TypeOf(float32(0)) - int64Type = reflect.TypeOf(int64(0)) - uint64Type = reflect.TypeOf(uint64(0)) - float64Type = reflect.TypeOf(float64(0)) -) - -// A word32 represents a field of type *int32, *uint32, *float32, or *enum. -// That is, v.Type() is *int32, *uint32, *float32, or *enum and v is assignable. -type word32 struct { - v reflect.Value -} - -// IsNil reports whether p is nil. -func word32_IsNil(p word32) bool { - return p.v.IsNil() -} - -// Set sets p to point at a newly allocated word with bits set to x. -func word32_Set(p word32, o *Buffer, x uint32) { - t := p.v.Type().Elem() - switch t { - case int32Type: - if len(o.int32s) == 0 { - o.int32s = make([]int32, uint32PoolSize) - } - o.int32s[0] = int32(x) - p.v.Set(reflect.ValueOf(&o.int32s[0])) - o.int32s = o.int32s[1:] - return - case uint32Type: - if len(o.uint32s) == 0 { - o.uint32s = make([]uint32, uint32PoolSize) - } - o.uint32s[0] = x - p.v.Set(reflect.ValueOf(&o.uint32s[0])) - o.uint32s = o.uint32s[1:] - return - case float32Type: - if len(o.float32s) == 0 { - o.float32s = make([]float32, uint32PoolSize) - } - o.float32s[0] = math.Float32frombits(x) - p.v.Set(reflect.ValueOf(&o.float32s[0])) - o.float32s = o.float32s[1:] - return - } - - // must be enum - p.v.Set(reflect.New(t)) - p.v.Elem().SetInt(int64(int32(x))) -} - -// Get gets the bits pointed at by p, as a uint32. -func word32_Get(p word32) uint32 { - elem := p.v.Elem() - switch elem.Kind() { - case reflect.Int32: - return uint32(elem.Int()) - case reflect.Uint32: - return uint32(elem.Uint()) - case reflect.Float32: - return math.Float32bits(float32(elem.Float())) - } - panic("unreachable") -} - -// Word32 returns a reference to a *int32, *uint32, *float32, or *enum field in the struct. -func structPointer_Word32(p structPointer, f field) word32 { - return word32{structPointer_field(p, f)} -} - -// A word32Val represents a field of type int32, uint32, float32, or enum. -// That is, v.Type() is int32, uint32, float32, or enum and v is assignable. -type word32Val struct { - v reflect.Value -} - -// Set sets *p to x. -func word32Val_Set(p word32Val, x uint32) { - switch p.v.Type() { - case int32Type: - p.v.SetInt(int64(x)) - return - case uint32Type: - p.v.SetUint(uint64(x)) - return - case float32Type: - p.v.SetFloat(float64(math.Float32frombits(x))) - return - } - - // must be enum - p.v.SetInt(int64(int32(x))) -} - -// Get gets the bits pointed at by p, as a uint32. -func word32Val_Get(p word32Val) uint32 { - elem := p.v - switch elem.Kind() { - case reflect.Int32: - return uint32(elem.Int()) - case reflect.Uint32: - return uint32(elem.Uint()) - case reflect.Float32: - return math.Float32bits(float32(elem.Float())) - } - panic("unreachable") -} - -// Word32Val returns a reference to a int32, uint32, float32, or enum field in the struct. -func structPointer_Word32Val(p structPointer, f field) word32Val { - return word32Val{structPointer_field(p, f)} -} - -// A word32Slice is a slice of 32-bit values. -// That is, v.Type() is []int32, []uint32, []float32, or []enum. -type word32Slice struct { - v reflect.Value -} - -func (p word32Slice) Append(x uint32) { - n, m := p.v.Len(), p.v.Cap() - if n < m { - p.v.SetLen(n + 1) - } else { - t := p.v.Type().Elem() - p.v.Set(reflect.Append(p.v, reflect.Zero(t))) - } - elem := p.v.Index(n) - switch elem.Kind() { - case reflect.Int32: - elem.SetInt(int64(int32(x))) - case reflect.Uint32: - elem.SetUint(uint64(x)) - case reflect.Float32: - elem.SetFloat(float64(math.Float32frombits(x))) - } -} - -func (p word32Slice) Len() int { - return p.v.Len() -} - -func (p word32Slice) Index(i int) uint32 { - elem := p.v.Index(i) - switch elem.Kind() { - case reflect.Int32: - return uint32(elem.Int()) - case reflect.Uint32: - return uint32(elem.Uint()) - case reflect.Float32: - return math.Float32bits(float32(elem.Float())) - } - panic("unreachable") -} - -// Word32Slice returns a reference to a []int32, []uint32, []float32, or []enum field in the struct. -func structPointer_Word32Slice(p structPointer, f field) word32Slice { - return word32Slice{structPointer_field(p, f)} -} - -// word64 is like word32 but for 64-bit values. -type word64 struct { - v reflect.Value -} - -func word64_Set(p word64, o *Buffer, x uint64) { - t := p.v.Type().Elem() - switch t { - case int64Type: - if len(o.int64s) == 0 { - o.int64s = make([]int64, uint64PoolSize) - } - o.int64s[0] = int64(x) - p.v.Set(reflect.ValueOf(&o.int64s[0])) - o.int64s = o.int64s[1:] - return - case uint64Type: - if len(o.uint64s) == 0 { - o.uint64s = make([]uint64, uint64PoolSize) - } - o.uint64s[0] = x - p.v.Set(reflect.ValueOf(&o.uint64s[0])) - o.uint64s = o.uint64s[1:] - return - case float64Type: - if len(o.float64s) == 0 { - o.float64s = make([]float64, uint64PoolSize) - } - o.float64s[0] = math.Float64frombits(x) - p.v.Set(reflect.ValueOf(&o.float64s[0])) - o.float64s = o.float64s[1:] - return - } - panic("unreachable") -} - -func word64_IsNil(p word64) bool { - return p.v.IsNil() -} - -func word64_Get(p word64) uint64 { - elem := p.v.Elem() - switch elem.Kind() { - case reflect.Int64: - return uint64(elem.Int()) - case reflect.Uint64: - return elem.Uint() - case reflect.Float64: - return math.Float64bits(elem.Float()) - } - panic("unreachable") -} - -func structPointer_Word64(p structPointer, f field) word64 { - return word64{structPointer_field(p, f)} -} - -// word64Val is like word32Val but for 64-bit values. -type word64Val struct { - v reflect.Value -} - -func word64Val_Set(p word64Val, o *Buffer, x uint64) { - switch p.v.Type() { - case int64Type: - p.v.SetInt(int64(x)) - return - case uint64Type: - p.v.SetUint(x) - return - case float64Type: - p.v.SetFloat(math.Float64frombits(x)) - return - } - panic("unreachable") -} - -func word64Val_Get(p word64Val) uint64 { - elem := p.v - switch elem.Kind() { - case reflect.Int64: - return uint64(elem.Int()) - case reflect.Uint64: - return elem.Uint() - case reflect.Float64: - return math.Float64bits(elem.Float()) - } - panic("unreachable") -} - -func structPointer_Word64Val(p structPointer, f field) word64Val { - return word64Val{structPointer_field(p, f)} -} - -type word64Slice struct { - v reflect.Value -} - -func (p word64Slice) Append(x uint64) { - n, m := p.v.Len(), p.v.Cap() - if n < m { - p.v.SetLen(n + 1) - } else { - t := p.v.Type().Elem() - p.v.Set(reflect.Append(p.v, reflect.Zero(t))) - } - elem := p.v.Index(n) - switch elem.Kind() { - case reflect.Int64: - elem.SetInt(int64(int64(x))) - case reflect.Uint64: - elem.SetUint(uint64(x)) - case reflect.Float64: - elem.SetFloat(float64(math.Float64frombits(x))) - } -} - -func (p word64Slice) Len() int { - return p.v.Len() -} - -func (p word64Slice) Index(i int) uint64 { - elem := p.v.Index(i) - switch elem.Kind() { - case reflect.Int64: - return uint64(elem.Int()) - case reflect.Uint64: - return uint64(elem.Uint()) - case reflect.Float64: - return math.Float64bits(float64(elem.Float())) - } - panic("unreachable") -} - -func structPointer_Word64Slice(p structPointer, f field) word64Slice { - return word64Slice{structPointer_field(p, f)} -} diff --git a/1.4/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go b/1.4/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go deleted file mode 100644 index 6b5567d4..00000000 --- a/1.4/vendor/github.com/golang/protobuf/proto/pointer_unsafe.go +++ /dev/null @@ -1,270 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2012 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -// +build !appengine,!js - -// This file contains the implementation of the proto field accesses using package unsafe. - -package proto - -import ( - "reflect" - "unsafe" -) - -// NOTE: These type_Foo functions would more idiomatically be methods, -// but Go does not allow methods on pointer types, and we must preserve -// some pointer type for the garbage collector. We use these -// funcs with clunky names as our poor approximation to methods. -// -// An alternative would be -// type structPointer struct { p unsafe.Pointer } -// but that does not registerize as well. - -// A structPointer is a pointer to a struct. -type structPointer unsafe.Pointer - -// toStructPointer returns a structPointer equivalent to the given reflect value. -func toStructPointer(v reflect.Value) structPointer { - return structPointer(unsafe.Pointer(v.Pointer())) -} - -// IsNil reports whether p is nil. -func structPointer_IsNil(p structPointer) bool { - return p == nil -} - -// Interface returns the struct pointer, assumed to have element type t, -// as an interface value. -func structPointer_Interface(p structPointer, t reflect.Type) interface{} { - return reflect.NewAt(t, unsafe.Pointer(p)).Interface() -} - -// A field identifies a field in a struct, accessible from a structPointer. -// In this implementation, a field is identified by its byte offset from the start of the struct. -type field uintptr - -// toField returns a field equivalent to the given reflect field. -func toField(f *reflect.StructField) field { - return field(f.Offset) -} - -// invalidField is an invalid field identifier. -const invalidField = ^field(0) - -// IsValid reports whether the field identifier is valid. -func (f field) IsValid() bool { - return f != ^field(0) -} - -// Bytes returns the address of a []byte field in the struct. -func structPointer_Bytes(p structPointer, f field) *[]byte { - return (*[]byte)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// BytesSlice returns the address of a [][]byte field in the struct. -func structPointer_BytesSlice(p structPointer, f field) *[][]byte { - return (*[][]byte)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// Bool returns the address of a *bool field in the struct. -func structPointer_Bool(p structPointer, f field) **bool { - return (**bool)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// BoolVal returns the address of a bool field in the struct. -func structPointer_BoolVal(p structPointer, f field) *bool { - return (*bool)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// BoolSlice returns the address of a []bool field in the struct. -func structPointer_BoolSlice(p structPointer, f field) *[]bool { - return (*[]bool)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// String returns the address of a *string field in the struct. -func structPointer_String(p structPointer, f field) **string { - return (**string)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// StringVal returns the address of a string field in the struct. -func structPointer_StringVal(p structPointer, f field) *string { - return (*string)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// StringSlice returns the address of a []string field in the struct. -func structPointer_StringSlice(p structPointer, f field) *[]string { - return (*[]string)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// ExtMap returns the address of an extension map field in the struct. -func structPointer_Extensions(p structPointer, f field) *XXX_InternalExtensions { - return (*XXX_InternalExtensions)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -func structPointer_ExtMap(p structPointer, f field) *map[int32]Extension { - return (*map[int32]Extension)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// NewAt returns the reflect.Value for a pointer to a field in the struct. -func structPointer_NewAt(p structPointer, f field, typ reflect.Type) reflect.Value { - return reflect.NewAt(typ, unsafe.Pointer(uintptr(p)+uintptr(f))) -} - -// SetStructPointer writes a *struct field in the struct. -func structPointer_SetStructPointer(p structPointer, f field, q structPointer) { - *(*structPointer)(unsafe.Pointer(uintptr(p) + uintptr(f))) = q -} - -// GetStructPointer reads a *struct field in the struct. -func structPointer_GetStructPointer(p structPointer, f field) structPointer { - return *(*structPointer)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// StructPointerSlice the address of a []*struct field in the struct. -func structPointer_StructPointerSlice(p structPointer, f field) *structPointerSlice { - return (*structPointerSlice)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// A structPointerSlice represents a slice of pointers to structs (themselves submessages or groups). -type structPointerSlice []structPointer - -func (v *structPointerSlice) Len() int { return len(*v) } -func (v *structPointerSlice) Index(i int) structPointer { return (*v)[i] } -func (v *structPointerSlice) Append(p structPointer) { *v = append(*v, p) } - -// A word32 is the address of a "pointer to 32-bit value" field. -type word32 **uint32 - -// IsNil reports whether *v is nil. -func word32_IsNil(p word32) bool { - return *p == nil -} - -// Set sets *v to point at a newly allocated word set to x. -func word32_Set(p word32, o *Buffer, x uint32) { - if len(o.uint32s) == 0 { - o.uint32s = make([]uint32, uint32PoolSize) - } - o.uint32s[0] = x - *p = &o.uint32s[0] - o.uint32s = o.uint32s[1:] -} - -// Get gets the value pointed at by *v. -func word32_Get(p word32) uint32 { - return **p -} - -// Word32 returns the address of a *int32, *uint32, *float32, or *enum field in the struct. -func structPointer_Word32(p structPointer, f field) word32 { - return word32((**uint32)(unsafe.Pointer(uintptr(p) + uintptr(f)))) -} - -// A word32Val is the address of a 32-bit value field. -type word32Val *uint32 - -// Set sets *p to x. -func word32Val_Set(p word32Val, x uint32) { - *p = x -} - -// Get gets the value pointed at by p. -func word32Val_Get(p word32Val) uint32 { - return *p -} - -// Word32Val returns the address of a *int32, *uint32, *float32, or *enum field in the struct. -func structPointer_Word32Val(p structPointer, f field) word32Val { - return word32Val((*uint32)(unsafe.Pointer(uintptr(p) + uintptr(f)))) -} - -// A word32Slice is a slice of 32-bit values. -type word32Slice []uint32 - -func (v *word32Slice) Append(x uint32) { *v = append(*v, x) } -func (v *word32Slice) Len() int { return len(*v) } -func (v *word32Slice) Index(i int) uint32 { return (*v)[i] } - -// Word32Slice returns the address of a []int32, []uint32, []float32, or []enum field in the struct. -func structPointer_Word32Slice(p structPointer, f field) *word32Slice { - return (*word32Slice)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} - -// word64 is like word32 but for 64-bit values. -type word64 **uint64 - -func word64_Set(p word64, o *Buffer, x uint64) { - if len(o.uint64s) == 0 { - o.uint64s = make([]uint64, uint64PoolSize) - } - o.uint64s[0] = x - *p = &o.uint64s[0] - o.uint64s = o.uint64s[1:] -} - -func word64_IsNil(p word64) bool { - return *p == nil -} - -func word64_Get(p word64) uint64 { - return **p -} - -func structPointer_Word64(p structPointer, f field) word64 { - return word64((**uint64)(unsafe.Pointer(uintptr(p) + uintptr(f)))) -} - -// word64Val is like word32Val but for 64-bit values. -type word64Val *uint64 - -func word64Val_Set(p word64Val, o *Buffer, x uint64) { - *p = x -} - -func word64Val_Get(p word64Val) uint64 { - return *p -} - -func structPointer_Word64Val(p structPointer, f field) word64Val { - return word64Val((*uint64)(unsafe.Pointer(uintptr(p) + uintptr(f)))) -} - -// word64Slice is like word32Slice but for 64-bit values. -type word64Slice []uint64 - -func (v *word64Slice) Append(x uint64) { *v = append(*v, x) } -func (v *word64Slice) Len() int { return len(*v) } -func (v *word64Slice) Index(i int) uint64 { return (*v)[i] } - -func structPointer_Word64Slice(p structPointer, f field) *word64Slice { - return (*word64Slice)(unsafe.Pointer(uintptr(p) + uintptr(f))) -} diff --git a/1.4/vendor/github.com/golang/protobuf/proto/properties.go b/1.4/vendor/github.com/golang/protobuf/proto/properties.go deleted file mode 100644 index 69ddda8d..00000000 --- a/1.4/vendor/github.com/golang/protobuf/proto/properties.go +++ /dev/null @@ -1,864 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -/* - * Routines for encoding data into the wire format for protocol buffers. - */ - -import ( - "fmt" - "log" - "os" - "reflect" - "sort" - "strconv" - "strings" - "sync" -) - -const debug bool = false - -// Constants that identify the encoding of a value on the wire. -const ( - WireVarint = 0 - WireFixed64 = 1 - WireBytes = 2 - WireStartGroup = 3 - WireEndGroup = 4 - WireFixed32 = 5 -) - -const startSize = 10 // initial slice/string sizes - -// Encoders are defined in encode.go -// An encoder outputs the full representation of a field, including its -// tag and encoder type. -type encoder func(p *Buffer, prop *Properties, base structPointer) error - -// A valueEncoder encodes a single integer in a particular encoding. -type valueEncoder func(o *Buffer, x uint64) error - -// Sizers are defined in encode.go -// A sizer returns the encoded size of a field, including its tag and encoder -// type. -type sizer func(prop *Properties, base structPointer) int - -// A valueSizer returns the encoded size of a single integer in a particular -// encoding. -type valueSizer func(x uint64) int - -// Decoders are defined in decode.go -// A decoder creates a value from its wire representation. -// Unrecognized subelements are saved in unrec. -type decoder func(p *Buffer, prop *Properties, base structPointer) error - -// A valueDecoder decodes a single integer in a particular encoding. -type valueDecoder func(o *Buffer) (x uint64, err error) - -// A oneofMarshaler does the marshaling for all oneof fields in a message. -type oneofMarshaler func(Message, *Buffer) error - -// A oneofUnmarshaler does the unmarshaling for a oneof field in a message. -type oneofUnmarshaler func(Message, int, int, *Buffer) (bool, error) - -// A oneofSizer does the sizing for all oneof fields in a message. -type oneofSizer func(Message) int - -// tagMap is an optimization over map[int]int for typical protocol buffer -// use-cases. Encoded protocol buffers are often in tag order with small tag -// numbers. -type tagMap struct { - fastTags []int - slowTags map[int]int -} - -// tagMapFastLimit is the upper bound on the tag number that will be stored in -// the tagMap slice rather than its map. -const tagMapFastLimit = 1024 - -func (p *tagMap) get(t int) (int, bool) { - if t > 0 && t < tagMapFastLimit { - if t >= len(p.fastTags) { - return 0, false - } - fi := p.fastTags[t] - return fi, fi >= 0 - } - fi, ok := p.slowTags[t] - return fi, ok -} - -func (p *tagMap) put(t int, fi int) { - if t > 0 && t < tagMapFastLimit { - for len(p.fastTags) < t+1 { - p.fastTags = append(p.fastTags, -1) - } - p.fastTags[t] = fi - return - } - if p.slowTags == nil { - p.slowTags = make(map[int]int) - } - p.slowTags[t] = fi -} - -// StructProperties represents properties for all the fields of a struct. -// decoderTags and decoderOrigNames should only be used by the decoder. -type StructProperties struct { - Prop []*Properties // properties for each field - reqCount int // required count - decoderTags tagMap // map from proto tag to struct field number - decoderOrigNames map[string]int // map from original name to struct field number - order []int // list of struct field numbers in tag order - unrecField field // field id of the XXX_unrecognized []byte field - extendable bool // is this an extendable proto - - oneofMarshaler oneofMarshaler - oneofUnmarshaler oneofUnmarshaler - oneofSizer oneofSizer - stype reflect.Type - - // OneofTypes contains information about the oneof fields in this message. - // It is keyed by the original name of a field. - OneofTypes map[string]*OneofProperties -} - -// OneofProperties represents information about a specific field in a oneof. -type OneofProperties struct { - Type reflect.Type // pointer to generated struct type for this oneof field - Field int // struct field number of the containing oneof in the message - Prop *Properties -} - -// Implement the sorting interface so we can sort the fields in tag order, as recommended by the spec. -// See encode.go, (*Buffer).enc_struct. - -func (sp *StructProperties) Len() int { return len(sp.order) } -func (sp *StructProperties) Less(i, j int) bool { - return sp.Prop[sp.order[i]].Tag < sp.Prop[sp.order[j]].Tag -} -func (sp *StructProperties) Swap(i, j int) { sp.order[i], sp.order[j] = sp.order[j], sp.order[i] } - -// Properties represents the protocol-specific behavior of a single struct field. -type Properties struct { - Name string // name of the field, for error messages - OrigName string // original name before protocol compiler (always set) - JSONName string // name to use for JSON; determined by protoc - Wire string - WireType int - Tag int - Required bool - Optional bool - Repeated bool - Packed bool // relevant for repeated primitives only - Enum string // set for enum types only - proto3 bool // whether this is known to be a proto3 field; set for []byte only - oneof bool // whether this is a oneof field - - Default string // default value - HasDefault bool // whether an explicit default was provided - def_uint64 uint64 - - enc encoder - valEnc valueEncoder // set for bool and numeric types only - field field - tagcode []byte // encoding of EncodeVarint((Tag<<3)|WireType) - tagbuf [8]byte - stype reflect.Type // set for struct types only - sprop *StructProperties // set for struct types only - isMarshaler bool - isUnmarshaler bool - - mtype reflect.Type // set for map types only - mkeyprop *Properties // set for map types only - mvalprop *Properties // set for map types only - - size sizer - valSize valueSizer // set for bool and numeric types only - - dec decoder - valDec valueDecoder // set for bool and numeric types only - - // If this is a packable field, this will be the decoder for the packed version of the field. - packedDec decoder -} - -// String formats the properties in the protobuf struct field tag style. -func (p *Properties) String() string { - s := p.Wire - s = "," - s += strconv.Itoa(p.Tag) - if p.Required { - s += ",req" - } - if p.Optional { - s += ",opt" - } - if p.Repeated { - s += ",rep" - } - if p.Packed { - s += ",packed" - } - s += ",name=" + p.OrigName - if p.JSONName != p.OrigName { - s += ",json=" + p.JSONName - } - if p.proto3 { - s += ",proto3" - } - if p.oneof { - s += ",oneof" - } - if len(p.Enum) > 0 { - s += ",enum=" + p.Enum - } - if p.HasDefault { - s += ",def=" + p.Default - } - return s -} - -// Parse populates p by parsing a string in the protobuf struct field tag style. -func (p *Properties) Parse(s string) { - // "bytes,49,opt,name=foo,def=hello!" - fields := strings.Split(s, ",") // breaks def=, but handled below. - if len(fields) < 2 { - fmt.Fprintf(os.Stderr, "proto: tag has too few fields: %q\n", s) - return - } - - p.Wire = fields[0] - switch p.Wire { - case "varint": - p.WireType = WireVarint - p.valEnc = (*Buffer).EncodeVarint - p.valDec = (*Buffer).DecodeVarint - p.valSize = sizeVarint - case "fixed32": - p.WireType = WireFixed32 - p.valEnc = (*Buffer).EncodeFixed32 - p.valDec = (*Buffer).DecodeFixed32 - p.valSize = sizeFixed32 - case "fixed64": - p.WireType = WireFixed64 - p.valEnc = (*Buffer).EncodeFixed64 - p.valDec = (*Buffer).DecodeFixed64 - p.valSize = sizeFixed64 - case "zigzag32": - p.WireType = WireVarint - p.valEnc = (*Buffer).EncodeZigzag32 - p.valDec = (*Buffer).DecodeZigzag32 - p.valSize = sizeZigzag32 - case "zigzag64": - p.WireType = WireVarint - p.valEnc = (*Buffer).EncodeZigzag64 - p.valDec = (*Buffer).DecodeZigzag64 - p.valSize = sizeZigzag64 - case "bytes", "group": - p.WireType = WireBytes - // no numeric converter for non-numeric types - default: - fmt.Fprintf(os.Stderr, "proto: tag has unknown wire type: %q\n", s) - return - } - - var err error - p.Tag, err = strconv.Atoi(fields[1]) - if err != nil { - return - } - - for i := 2; i < len(fields); i++ { - f := fields[i] - switch { - case f == "req": - p.Required = true - case f == "opt": - p.Optional = true - case f == "rep": - p.Repeated = true - case f == "packed": - p.Packed = true - case strings.HasPrefix(f, "name="): - p.OrigName = f[5:] - case strings.HasPrefix(f, "json="): - p.JSONName = f[5:] - case strings.HasPrefix(f, "enum="): - p.Enum = f[5:] - case f == "proto3": - p.proto3 = true - case f == "oneof": - p.oneof = true - case strings.HasPrefix(f, "def="): - p.HasDefault = true - p.Default = f[4:] // rest of string - if i+1 < len(fields) { - // Commas aren't escaped, and def is always last. - p.Default += "," + strings.Join(fields[i+1:], ",") - break - } - } - } -} - -func logNoSliceEnc(t1, t2 reflect.Type) { - fmt.Fprintf(os.Stderr, "proto: no slice oenc for %T = []%T\n", t1, t2) -} - -var protoMessageType = reflect.TypeOf((*Message)(nil)).Elem() - -// Initialize the fields for encoding and decoding. -func (p *Properties) setEncAndDec(typ reflect.Type, f *reflect.StructField, lockGetProp bool) { - p.enc = nil - p.dec = nil - p.size = nil - - switch t1 := typ; t1.Kind() { - default: - fmt.Fprintf(os.Stderr, "proto: no coders for %v\n", t1) - - // proto3 scalar types - - case reflect.Bool: - p.enc = (*Buffer).enc_proto3_bool - p.dec = (*Buffer).dec_proto3_bool - p.size = size_proto3_bool - case reflect.Int32: - p.enc = (*Buffer).enc_proto3_int32 - p.dec = (*Buffer).dec_proto3_int32 - p.size = size_proto3_int32 - case reflect.Uint32: - p.enc = (*Buffer).enc_proto3_uint32 - p.dec = (*Buffer).dec_proto3_int32 // can reuse - p.size = size_proto3_uint32 - case reflect.Int64, reflect.Uint64: - p.enc = (*Buffer).enc_proto3_int64 - p.dec = (*Buffer).dec_proto3_int64 - p.size = size_proto3_int64 - case reflect.Float32: - p.enc = (*Buffer).enc_proto3_uint32 // can just treat them as bits - p.dec = (*Buffer).dec_proto3_int32 - p.size = size_proto3_uint32 - case reflect.Float64: - p.enc = (*Buffer).enc_proto3_int64 // can just treat them as bits - p.dec = (*Buffer).dec_proto3_int64 - p.size = size_proto3_int64 - case reflect.String: - p.enc = (*Buffer).enc_proto3_string - p.dec = (*Buffer).dec_proto3_string - p.size = size_proto3_string - - case reflect.Ptr: - switch t2 := t1.Elem(); t2.Kind() { - default: - fmt.Fprintf(os.Stderr, "proto: no encoder function for %v -> %v\n", t1, t2) - break - case reflect.Bool: - p.enc = (*Buffer).enc_bool - p.dec = (*Buffer).dec_bool - p.size = size_bool - case reflect.Int32: - p.enc = (*Buffer).enc_int32 - p.dec = (*Buffer).dec_int32 - p.size = size_int32 - case reflect.Uint32: - p.enc = (*Buffer).enc_uint32 - p.dec = (*Buffer).dec_int32 // can reuse - p.size = size_uint32 - case reflect.Int64, reflect.Uint64: - p.enc = (*Buffer).enc_int64 - p.dec = (*Buffer).dec_int64 - p.size = size_int64 - case reflect.Float32: - p.enc = (*Buffer).enc_uint32 // can just treat them as bits - p.dec = (*Buffer).dec_int32 - p.size = size_uint32 - case reflect.Float64: - p.enc = (*Buffer).enc_int64 // can just treat them as bits - p.dec = (*Buffer).dec_int64 - p.size = size_int64 - case reflect.String: - p.enc = (*Buffer).enc_string - p.dec = (*Buffer).dec_string - p.size = size_string - case reflect.Struct: - p.stype = t1.Elem() - p.isMarshaler = isMarshaler(t1) - p.isUnmarshaler = isUnmarshaler(t1) - if p.Wire == "bytes" { - p.enc = (*Buffer).enc_struct_message - p.dec = (*Buffer).dec_struct_message - p.size = size_struct_message - } else { - p.enc = (*Buffer).enc_struct_group - p.dec = (*Buffer).dec_struct_group - p.size = size_struct_group - } - } - - case reflect.Slice: - switch t2 := t1.Elem(); t2.Kind() { - default: - logNoSliceEnc(t1, t2) - break - case reflect.Bool: - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_bool - p.size = size_slice_packed_bool - } else { - p.enc = (*Buffer).enc_slice_bool - p.size = size_slice_bool - } - p.dec = (*Buffer).dec_slice_bool - p.packedDec = (*Buffer).dec_slice_packed_bool - case reflect.Int32: - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_int32 - p.size = size_slice_packed_int32 - } else { - p.enc = (*Buffer).enc_slice_int32 - p.size = size_slice_int32 - } - p.dec = (*Buffer).dec_slice_int32 - p.packedDec = (*Buffer).dec_slice_packed_int32 - case reflect.Uint32: - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_uint32 - p.size = size_slice_packed_uint32 - } else { - p.enc = (*Buffer).enc_slice_uint32 - p.size = size_slice_uint32 - } - p.dec = (*Buffer).dec_slice_int32 - p.packedDec = (*Buffer).dec_slice_packed_int32 - case reflect.Int64, reflect.Uint64: - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_int64 - p.size = size_slice_packed_int64 - } else { - p.enc = (*Buffer).enc_slice_int64 - p.size = size_slice_int64 - } - p.dec = (*Buffer).dec_slice_int64 - p.packedDec = (*Buffer).dec_slice_packed_int64 - case reflect.Uint8: - p.dec = (*Buffer).dec_slice_byte - if p.proto3 { - p.enc = (*Buffer).enc_proto3_slice_byte - p.size = size_proto3_slice_byte - } else { - p.enc = (*Buffer).enc_slice_byte - p.size = size_slice_byte - } - case reflect.Float32, reflect.Float64: - switch t2.Bits() { - case 32: - // can just treat them as bits - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_uint32 - p.size = size_slice_packed_uint32 - } else { - p.enc = (*Buffer).enc_slice_uint32 - p.size = size_slice_uint32 - } - p.dec = (*Buffer).dec_slice_int32 - p.packedDec = (*Buffer).dec_slice_packed_int32 - case 64: - // can just treat them as bits - if p.Packed { - p.enc = (*Buffer).enc_slice_packed_int64 - p.size = size_slice_packed_int64 - } else { - p.enc = (*Buffer).enc_slice_int64 - p.size = size_slice_int64 - } - p.dec = (*Buffer).dec_slice_int64 - p.packedDec = (*Buffer).dec_slice_packed_int64 - default: - logNoSliceEnc(t1, t2) - break - } - case reflect.String: - p.enc = (*Buffer).enc_slice_string - p.dec = (*Buffer).dec_slice_string - p.size = size_slice_string - case reflect.Ptr: - switch t3 := t2.Elem(); t3.Kind() { - default: - fmt.Fprintf(os.Stderr, "proto: no ptr oenc for %T -> %T -> %T\n", t1, t2, t3) - break - case reflect.Struct: - p.stype = t2.Elem() - p.isMarshaler = isMarshaler(t2) - p.isUnmarshaler = isUnmarshaler(t2) - if p.Wire == "bytes" { - p.enc = (*Buffer).enc_slice_struct_message - p.dec = (*Buffer).dec_slice_struct_message - p.size = size_slice_struct_message - } else { - p.enc = (*Buffer).enc_slice_struct_group - p.dec = (*Buffer).dec_slice_struct_group - p.size = size_slice_struct_group - } - } - case reflect.Slice: - switch t2.Elem().Kind() { - default: - fmt.Fprintf(os.Stderr, "proto: no slice elem oenc for %T -> %T -> %T\n", t1, t2, t2.Elem()) - break - case reflect.Uint8: - p.enc = (*Buffer).enc_slice_slice_byte - p.dec = (*Buffer).dec_slice_slice_byte - p.size = size_slice_slice_byte - } - } - - case reflect.Map: - p.enc = (*Buffer).enc_new_map - p.dec = (*Buffer).dec_new_map - p.size = size_new_map - - p.mtype = t1 - p.mkeyprop = &Properties{} - p.mkeyprop.init(reflect.PtrTo(p.mtype.Key()), "Key", f.Tag.Get("protobuf_key"), nil, lockGetProp) - p.mvalprop = &Properties{} - vtype := p.mtype.Elem() - if vtype.Kind() != reflect.Ptr && vtype.Kind() != reflect.Slice { - // The value type is not a message (*T) or bytes ([]byte), - // so we need encoders for the pointer to this type. - vtype = reflect.PtrTo(vtype) - } - p.mvalprop.init(vtype, "Value", f.Tag.Get("protobuf_val"), nil, lockGetProp) - } - - // precalculate tag code - wire := p.WireType - if p.Packed { - wire = WireBytes - } - x := uint32(p.Tag)<<3 | uint32(wire) - i := 0 - for i = 0; x > 127; i++ { - p.tagbuf[i] = 0x80 | uint8(x&0x7F) - x >>= 7 - } - p.tagbuf[i] = uint8(x) - p.tagcode = p.tagbuf[0 : i+1] - - if p.stype != nil { - if lockGetProp { - p.sprop = GetProperties(p.stype) - } else { - p.sprop = getPropertiesLocked(p.stype) - } - } -} - -var ( - marshalerType = reflect.TypeOf((*Marshaler)(nil)).Elem() - unmarshalerType = reflect.TypeOf((*Unmarshaler)(nil)).Elem() -) - -// isMarshaler reports whether type t implements Marshaler. -func isMarshaler(t reflect.Type) bool { - // We're checking for (likely) pointer-receiver methods - // so if t is not a pointer, something is very wrong. - // The calls above only invoke isMarshaler on pointer types. - if t.Kind() != reflect.Ptr { - panic("proto: misuse of isMarshaler") - } - return t.Implements(marshalerType) -} - -// isUnmarshaler reports whether type t implements Unmarshaler. -func isUnmarshaler(t reflect.Type) bool { - // We're checking for (likely) pointer-receiver methods - // so if t is not a pointer, something is very wrong. - // The calls above only invoke isUnmarshaler on pointer types. - if t.Kind() != reflect.Ptr { - panic("proto: misuse of isUnmarshaler") - } - return t.Implements(unmarshalerType) -} - -// Init populates the properties from a protocol buffer struct tag. -func (p *Properties) Init(typ reflect.Type, name, tag string, f *reflect.StructField) { - p.init(typ, name, tag, f, true) -} - -func (p *Properties) init(typ reflect.Type, name, tag string, f *reflect.StructField, lockGetProp bool) { - // "bytes,49,opt,def=hello!" - p.Name = name - p.OrigName = name - if f != nil { - p.field = toField(f) - } - if tag == "" { - return - } - p.Parse(tag) - p.setEncAndDec(typ, f, lockGetProp) -} - -var ( - propertiesMu sync.RWMutex - propertiesMap = make(map[reflect.Type]*StructProperties) -) - -// GetProperties returns the list of properties for the type represented by t. -// t must represent a generated struct type of a protocol message. -func GetProperties(t reflect.Type) *StructProperties { - if t.Kind() != reflect.Struct { - panic("proto: type must have kind struct") - } - - // Most calls to GetProperties in a long-running program will be - // retrieving details for types we have seen before. - propertiesMu.RLock() - sprop, ok := propertiesMap[t] - propertiesMu.RUnlock() - if ok { - if collectStats { - stats.Chit++ - } - return sprop - } - - propertiesMu.Lock() - sprop = getPropertiesLocked(t) - propertiesMu.Unlock() - return sprop -} - -// getPropertiesLocked requires that propertiesMu is held. -func getPropertiesLocked(t reflect.Type) *StructProperties { - if prop, ok := propertiesMap[t]; ok { - if collectStats { - stats.Chit++ - } - return prop - } - if collectStats { - stats.Cmiss++ - } - - prop := new(StructProperties) - // in case of recursive protos, fill this in now. - propertiesMap[t] = prop - - // build properties - prop.extendable = reflect.PtrTo(t).Implements(extendableProtoType) || - reflect.PtrTo(t).Implements(extendableProtoV1Type) - prop.unrecField = invalidField - prop.Prop = make([]*Properties, t.NumField()) - prop.order = make([]int, t.NumField()) - - for i := 0; i < t.NumField(); i++ { - f := t.Field(i) - p := new(Properties) - name := f.Name - p.init(f.Type, name, f.Tag.Get("protobuf"), &f, false) - - if f.Name == "XXX_InternalExtensions" { // special case - p.enc = (*Buffer).enc_exts - p.dec = nil // not needed - p.size = size_exts - } else if f.Name == "XXX_extensions" { // special case - p.enc = (*Buffer).enc_map - p.dec = nil // not needed - p.size = size_map - } else if f.Name == "XXX_unrecognized" { // special case - prop.unrecField = toField(&f) - } - oneof := f.Tag.Get("protobuf_oneof") // special case - if oneof != "" { - // Oneof fields don't use the traditional protobuf tag. - p.OrigName = oneof - } - prop.Prop[i] = p - prop.order[i] = i - if debug { - print(i, " ", f.Name, " ", t.String(), " ") - if p.Tag > 0 { - print(p.String()) - } - print("\n") - } - if p.enc == nil && !strings.HasPrefix(f.Name, "XXX_") && oneof == "" { - fmt.Fprintln(os.Stderr, "proto: no encoder for", f.Name, f.Type.String(), "[GetProperties]") - } - } - - // Re-order prop.order. - sort.Sort(prop) - - type oneofMessage interface { - XXX_OneofFuncs() (func(Message, *Buffer) error, func(Message, int, int, *Buffer) (bool, error), func(Message) int, []interface{}) - } - if om, ok := reflect.Zero(reflect.PtrTo(t)).Interface().(oneofMessage); ok { - var oots []interface{} - prop.oneofMarshaler, prop.oneofUnmarshaler, prop.oneofSizer, oots = om.XXX_OneofFuncs() - prop.stype = t - - // Interpret oneof metadata. - prop.OneofTypes = make(map[string]*OneofProperties) - for _, oot := range oots { - oop := &OneofProperties{ - Type: reflect.ValueOf(oot).Type(), // *T - Prop: new(Properties), - } - sft := oop.Type.Elem().Field(0) - oop.Prop.Name = sft.Name - oop.Prop.Parse(sft.Tag.Get("protobuf")) - // There will be exactly one interface field that - // this new value is assignable to. - for i := 0; i < t.NumField(); i++ { - f := t.Field(i) - if f.Type.Kind() != reflect.Interface { - continue - } - if !oop.Type.AssignableTo(f.Type) { - continue - } - oop.Field = i - break - } - prop.OneofTypes[oop.Prop.OrigName] = oop - } - } - - // build required counts - // build tags - reqCount := 0 - prop.decoderOrigNames = make(map[string]int) - for i, p := range prop.Prop { - if strings.HasPrefix(p.Name, "XXX_") { - // Internal fields should not appear in tags/origNames maps. - // They are handled specially when encoding and decoding. - continue - } - if p.Required { - reqCount++ - } - prop.decoderTags.put(p.Tag, i) - prop.decoderOrigNames[p.OrigName] = i - } - prop.reqCount = reqCount - - return prop -} - -// Return the Properties object for the x[0]'th field of the structure. -func propByIndex(t reflect.Type, x []int) *Properties { - if len(x) != 1 { - fmt.Fprintf(os.Stderr, "proto: field index dimension %d (not 1) for type %s\n", len(x), t) - return nil - } - prop := GetProperties(t) - return prop.Prop[x[0]] -} - -// Get the address and type of a pointer to a struct from an interface. -func getbase(pb Message) (t reflect.Type, b structPointer, err error) { - if pb == nil { - err = ErrNil - return - } - // get the reflect type of the pointer to the struct. - t = reflect.TypeOf(pb) - // get the address of the struct. - value := reflect.ValueOf(pb) - b = toStructPointer(value) - return -} - -// A global registry of enum types. -// The generated code will register the generated maps by calling RegisterEnum. - -var enumValueMaps = make(map[string]map[string]int32) - -// RegisterEnum is called from the generated code to install the enum descriptor -// maps into the global table to aid parsing text format protocol buffers. -func RegisterEnum(typeName string, unusedNameMap map[int32]string, valueMap map[string]int32) { - if _, ok := enumValueMaps[typeName]; ok { - panic("proto: duplicate enum registered: " + typeName) - } - enumValueMaps[typeName] = valueMap -} - -// EnumValueMap returns the mapping from names to integers of the -// enum type enumType, or a nil if not found. -func EnumValueMap(enumType string) map[string]int32 { - return enumValueMaps[enumType] -} - -// A registry of all linked message types. -// The string is a fully-qualified proto name ("pkg.Message"). -var ( - protoTypes = make(map[string]reflect.Type) - revProtoTypes = make(map[reflect.Type]string) -) - -// RegisterType is called from generated code and maps from the fully qualified -// proto name to the type (pointer to struct) of the protocol buffer. -func RegisterType(x Message, name string) { - if _, ok := protoTypes[name]; ok { - // TODO: Some day, make this a panic. - log.Printf("proto: duplicate proto type registered: %s", name) - return - } - t := reflect.TypeOf(x) - protoTypes[name] = t - revProtoTypes[t] = name -} - -// MessageName returns the fully-qualified proto name for the given message type. -func MessageName(x Message) string { return revProtoTypes[reflect.TypeOf(x)] } - -// MessageType returns the message type (pointer to struct) for a named message. -func MessageType(name string) reflect.Type { return protoTypes[name] } - -// A registry of all linked proto files. -var ( - protoFiles = make(map[string][]byte) // file name => fileDescriptor -) - -// RegisterFile is called from generated code and maps from the -// full file name of a .proto file to its compressed FileDescriptorProto. -func RegisterFile(filename string, fileDescriptor []byte) { - protoFiles[filename] = fileDescriptor -} - -// FileDescriptor returns the compressed FileDescriptorProto for a .proto file. -func FileDescriptor(filename string) []byte { return protoFiles[filename] } diff --git a/1.4/vendor/github.com/golang/protobuf/proto/text.go b/1.4/vendor/github.com/golang/protobuf/proto/text.go deleted file mode 100644 index 8214ce32..00000000 --- a/1.4/vendor/github.com/golang/protobuf/proto/text.go +++ /dev/null @@ -1,854 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -// Functions for writing the text protocol buffer format. - -import ( - "bufio" - "bytes" - "encoding" - "errors" - "fmt" - "io" - "log" - "math" - "reflect" - "sort" - "strings" -) - -var ( - newline = []byte("\n") - spaces = []byte(" ") - gtNewline = []byte(">\n") - endBraceNewline = []byte("}\n") - backslashN = []byte{'\\', 'n'} - backslashR = []byte{'\\', 'r'} - backslashT = []byte{'\\', 't'} - backslashDQ = []byte{'\\', '"'} - backslashBS = []byte{'\\', '\\'} - posInf = []byte("inf") - negInf = []byte("-inf") - nan = []byte("nan") -) - -type writer interface { - io.Writer - WriteByte(byte) error -} - -// textWriter is an io.Writer that tracks its indentation level. -type textWriter struct { - ind int - complete bool // if the current position is a complete line - compact bool // whether to write out as a one-liner - w writer -} - -func (w *textWriter) WriteString(s string) (n int, err error) { - if !strings.Contains(s, "\n") { - if !w.compact && w.complete { - w.writeIndent() - } - w.complete = false - return io.WriteString(w.w, s) - } - // WriteString is typically called without newlines, so this - // codepath and its copy are rare. We copy to avoid - // duplicating all of Write's logic here. - return w.Write([]byte(s)) -} - -func (w *textWriter) Write(p []byte) (n int, err error) { - newlines := bytes.Count(p, newline) - if newlines == 0 { - if !w.compact && w.complete { - w.writeIndent() - } - n, err = w.w.Write(p) - w.complete = false - return n, err - } - - frags := bytes.SplitN(p, newline, newlines+1) - if w.compact { - for i, frag := range frags { - if i > 0 { - if err := w.w.WriteByte(' '); err != nil { - return n, err - } - n++ - } - nn, err := w.w.Write(frag) - n += nn - if err != nil { - return n, err - } - } - return n, nil - } - - for i, frag := range frags { - if w.complete { - w.writeIndent() - } - nn, err := w.w.Write(frag) - n += nn - if err != nil { - return n, err - } - if i+1 < len(frags) { - if err := w.w.WriteByte('\n'); err != nil { - return n, err - } - n++ - } - } - w.complete = len(frags[len(frags)-1]) == 0 - return n, nil -} - -func (w *textWriter) WriteByte(c byte) error { - if w.compact && c == '\n' { - c = ' ' - } - if !w.compact && w.complete { - w.writeIndent() - } - err := w.w.WriteByte(c) - w.complete = c == '\n' - return err -} - -func (w *textWriter) indent() { w.ind++ } - -func (w *textWriter) unindent() { - if w.ind == 0 { - log.Printf("proto: textWriter unindented too far") - return - } - w.ind-- -} - -func writeName(w *textWriter, props *Properties) error { - if _, err := w.WriteString(props.OrigName); err != nil { - return err - } - if props.Wire != "group" { - return w.WriteByte(':') - } - return nil -} - -// raw is the interface satisfied by RawMessage. -type raw interface { - Bytes() []byte -} - -func requiresQuotes(u string) bool { - // When type URL contains any characters except [0-9A-Za-z./\-]*, it must be quoted. - for _, ch := range u { - switch { - case ch == '.' || ch == '/' || ch == '_': - continue - case '0' <= ch && ch <= '9': - continue - case 'A' <= ch && ch <= 'Z': - continue - case 'a' <= ch && ch <= 'z': - continue - default: - return true - } - } - return false -} - -// isAny reports whether sv is a google.protobuf.Any message -func isAny(sv reflect.Value) bool { - type wkt interface { - XXX_WellKnownType() string - } - t, ok := sv.Addr().Interface().(wkt) - return ok && t.XXX_WellKnownType() == "Any" -} - -// writeProto3Any writes an expanded google.protobuf.Any message. -// -// It returns (false, nil) if sv value can't be unmarshaled (e.g. because -// required messages are not linked in). -// -// It returns (true, error) when sv was written in expanded format or an error -// was encountered. -func (tm *TextMarshaler) writeProto3Any(w *textWriter, sv reflect.Value) (bool, error) { - turl := sv.FieldByName("TypeUrl") - val := sv.FieldByName("Value") - if !turl.IsValid() || !val.IsValid() { - return true, errors.New("proto: invalid google.protobuf.Any message") - } - - b, ok := val.Interface().([]byte) - if !ok { - return true, errors.New("proto: invalid google.protobuf.Any message") - } - - parts := strings.Split(turl.String(), "/") - mt := MessageType(parts[len(parts)-1]) - if mt == nil { - return false, nil - } - m := reflect.New(mt.Elem()) - if err := Unmarshal(b, m.Interface().(Message)); err != nil { - return false, nil - } - w.Write([]byte("[")) - u := turl.String() - if requiresQuotes(u) { - writeString(w, u) - } else { - w.Write([]byte(u)) - } - if w.compact { - w.Write([]byte("]:<")) - } else { - w.Write([]byte("]: <\n")) - w.ind++ - } - if err := tm.writeStruct(w, m.Elem()); err != nil { - return true, err - } - if w.compact { - w.Write([]byte("> ")) - } else { - w.ind-- - w.Write([]byte(">\n")) - } - return true, nil -} - -func (tm *TextMarshaler) writeStruct(w *textWriter, sv reflect.Value) error { - if tm.ExpandAny && isAny(sv) { - if canExpand, err := tm.writeProto3Any(w, sv); canExpand { - return err - } - } - st := sv.Type() - sprops := GetProperties(st) - for i := 0; i < sv.NumField(); i++ { - fv := sv.Field(i) - props := sprops.Prop[i] - name := st.Field(i).Name - - if strings.HasPrefix(name, "XXX_") { - // There are two XXX_ fields: - // XXX_unrecognized []byte - // XXX_extensions map[int32]proto.Extension - // The first is handled here; - // the second is handled at the bottom of this function. - if name == "XXX_unrecognized" && !fv.IsNil() { - if err := writeUnknownStruct(w, fv.Interface().([]byte)); err != nil { - return err - } - } - continue - } - if fv.Kind() == reflect.Ptr && fv.IsNil() { - // Field not filled in. This could be an optional field or - // a required field that wasn't filled in. Either way, there - // isn't anything we can show for it. - continue - } - if fv.Kind() == reflect.Slice && fv.IsNil() { - // Repeated field that is empty, or a bytes field that is unused. - continue - } - - if props.Repeated && fv.Kind() == reflect.Slice { - // Repeated field. - for j := 0; j < fv.Len(); j++ { - if err := writeName(w, props); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - v := fv.Index(j) - if v.Kind() == reflect.Ptr && v.IsNil() { - // A nil message in a repeated field is not valid, - // but we can handle that more gracefully than panicking. - if _, err := w.Write([]byte("\n")); err != nil { - return err - } - continue - } - if err := tm.writeAny(w, v, props); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - } - continue - } - if fv.Kind() == reflect.Map { - // Map fields are rendered as a repeated struct with key/value fields. - keys := fv.MapKeys() - sort.Sort(mapKeys(keys)) - for _, key := range keys { - val := fv.MapIndex(key) - if err := writeName(w, props); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - // open struct - if err := w.WriteByte('<'); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte('\n'); err != nil { - return err - } - } - w.indent() - // key - if _, err := w.WriteString("key:"); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - if err := tm.writeAny(w, key, props.mkeyprop); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - // nil values aren't legal, but we can avoid panicking because of them. - if val.Kind() != reflect.Ptr || !val.IsNil() { - // value - if _, err := w.WriteString("value:"); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - if err := tm.writeAny(w, val, props.mvalprop); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - } - // close struct - w.unindent() - if err := w.WriteByte('>'); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - } - continue - } - if props.proto3 && fv.Kind() == reflect.Slice && fv.Len() == 0 { - // empty bytes field - continue - } - if fv.Kind() != reflect.Ptr && fv.Kind() != reflect.Slice { - // proto3 non-repeated scalar field; skip if zero value - if isProto3Zero(fv) { - continue - } - } - - if fv.Kind() == reflect.Interface { - // Check if it is a oneof. - if st.Field(i).Tag.Get("protobuf_oneof") != "" { - // fv is nil, or holds a pointer to generated struct. - // That generated struct has exactly one field, - // which has a protobuf struct tag. - if fv.IsNil() { - continue - } - inner := fv.Elem().Elem() // interface -> *T -> T - tag := inner.Type().Field(0).Tag.Get("protobuf") - props = new(Properties) // Overwrite the outer props var, but not its pointee. - props.Parse(tag) - // Write the value in the oneof, not the oneof itself. - fv = inner.Field(0) - - // Special case to cope with malformed messages gracefully: - // If the value in the oneof is a nil pointer, don't panic - // in writeAny. - if fv.Kind() == reflect.Ptr && fv.IsNil() { - // Use errors.New so writeAny won't render quotes. - msg := errors.New("/* nil */") - fv = reflect.ValueOf(&msg).Elem() - } - } - } - - if err := writeName(w, props); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - if b, ok := fv.Interface().(raw); ok { - if err := writeRaw(w, b.Bytes()); err != nil { - return err - } - continue - } - - // Enums have a String method, so writeAny will work fine. - if err := tm.writeAny(w, fv, props); err != nil { - return err - } - - if err := w.WriteByte('\n'); err != nil { - return err - } - } - - // Extensions (the XXX_extensions field). - pv := sv.Addr() - if _, ok := extendable(pv.Interface()); ok { - if err := tm.writeExtensions(w, pv); err != nil { - return err - } - } - - return nil -} - -// writeRaw writes an uninterpreted raw message. -func writeRaw(w *textWriter, b []byte) error { - if err := w.WriteByte('<'); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte('\n'); err != nil { - return err - } - } - w.indent() - if err := writeUnknownStruct(w, b); err != nil { - return err - } - w.unindent() - if err := w.WriteByte('>'); err != nil { - return err - } - return nil -} - -// writeAny writes an arbitrary field. -func (tm *TextMarshaler) writeAny(w *textWriter, v reflect.Value, props *Properties) error { - v = reflect.Indirect(v) - - // Floats have special cases. - if v.Kind() == reflect.Float32 || v.Kind() == reflect.Float64 { - x := v.Float() - var b []byte - switch { - case math.IsInf(x, 1): - b = posInf - case math.IsInf(x, -1): - b = negInf - case math.IsNaN(x): - b = nan - } - if b != nil { - _, err := w.Write(b) - return err - } - // Other values are handled below. - } - - // We don't attempt to serialise every possible value type; only those - // that can occur in protocol buffers. - switch v.Kind() { - case reflect.Slice: - // Should only be a []byte; repeated fields are handled in writeStruct. - if err := writeString(w, string(v.Bytes())); err != nil { - return err - } - case reflect.String: - if err := writeString(w, v.String()); err != nil { - return err - } - case reflect.Struct: - // Required/optional group/message. - var bra, ket byte = '<', '>' - if props != nil && props.Wire == "group" { - bra, ket = '{', '}' - } - if err := w.WriteByte(bra); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte('\n'); err != nil { - return err - } - } - w.indent() - if etm, ok := v.Interface().(encoding.TextMarshaler); ok { - text, err := etm.MarshalText() - if err != nil { - return err - } - if _, err = w.Write(text); err != nil { - return err - } - } else if err := tm.writeStruct(w, v); err != nil { - return err - } - w.unindent() - if err := w.WriteByte(ket); err != nil { - return err - } - default: - _, err := fmt.Fprint(w, v.Interface()) - return err - } - return nil -} - -// equivalent to C's isprint. -func isprint(c byte) bool { - return c >= 0x20 && c < 0x7f -} - -// writeString writes a string in the protocol buffer text format. -// It is similar to strconv.Quote except we don't use Go escape sequences, -// we treat the string as a byte sequence, and we use octal escapes. -// These differences are to maintain interoperability with the other -// languages' implementations of the text format. -func writeString(w *textWriter, s string) error { - // use WriteByte here to get any needed indent - if err := w.WriteByte('"'); err != nil { - return err - } - // Loop over the bytes, not the runes. - for i := 0; i < len(s); i++ { - var err error - // Divergence from C++: we don't escape apostrophes. - // There's no need to escape them, and the C++ parser - // copes with a naked apostrophe. - switch c := s[i]; c { - case '\n': - _, err = w.w.Write(backslashN) - case '\r': - _, err = w.w.Write(backslashR) - case '\t': - _, err = w.w.Write(backslashT) - case '"': - _, err = w.w.Write(backslashDQ) - case '\\': - _, err = w.w.Write(backslashBS) - default: - if isprint(c) { - err = w.w.WriteByte(c) - } else { - _, err = fmt.Fprintf(w.w, "\\%03o", c) - } - } - if err != nil { - return err - } - } - return w.WriteByte('"') -} - -func writeUnknownStruct(w *textWriter, data []byte) (err error) { - if !w.compact { - if _, err := fmt.Fprintf(w, "/* %d unknown bytes */\n", len(data)); err != nil { - return err - } - } - b := NewBuffer(data) - for b.index < len(b.buf) { - x, err := b.DecodeVarint() - if err != nil { - _, err := fmt.Fprintf(w, "/* %v */\n", err) - return err - } - wire, tag := x&7, x>>3 - if wire == WireEndGroup { - w.unindent() - if _, err := w.Write(endBraceNewline); err != nil { - return err - } - continue - } - if _, err := fmt.Fprint(w, tag); err != nil { - return err - } - if wire != WireStartGroup { - if err := w.WriteByte(':'); err != nil { - return err - } - } - if !w.compact || wire == WireStartGroup { - if err := w.WriteByte(' '); err != nil { - return err - } - } - switch wire { - case WireBytes: - buf, e := b.DecodeRawBytes(false) - if e == nil { - _, err = fmt.Fprintf(w, "%q", buf) - } else { - _, err = fmt.Fprintf(w, "/* %v */", e) - } - case WireFixed32: - x, err = b.DecodeFixed32() - err = writeUnknownInt(w, x, err) - case WireFixed64: - x, err = b.DecodeFixed64() - err = writeUnknownInt(w, x, err) - case WireStartGroup: - err = w.WriteByte('{') - w.indent() - case WireVarint: - x, err = b.DecodeVarint() - err = writeUnknownInt(w, x, err) - default: - _, err = fmt.Fprintf(w, "/* unknown wire type %d */", wire) - } - if err != nil { - return err - } - if err = w.WriteByte('\n'); err != nil { - return err - } - } - return nil -} - -func writeUnknownInt(w *textWriter, x uint64, err error) error { - if err == nil { - _, err = fmt.Fprint(w, x) - } else { - _, err = fmt.Fprintf(w, "/* %v */", err) - } - return err -} - -type int32Slice []int32 - -func (s int32Slice) Len() int { return len(s) } -func (s int32Slice) Less(i, j int) bool { return s[i] < s[j] } -func (s int32Slice) Swap(i, j int) { s[i], s[j] = s[j], s[i] } - -// writeExtensions writes all the extensions in pv. -// pv is assumed to be a pointer to a protocol message struct that is extendable. -func (tm *TextMarshaler) writeExtensions(w *textWriter, pv reflect.Value) error { - emap := extensionMaps[pv.Type().Elem()] - ep, _ := extendable(pv.Interface()) - - // Order the extensions by ID. - // This isn't strictly necessary, but it will give us - // canonical output, which will also make testing easier. - m, mu := ep.extensionsRead() - if m == nil { - return nil - } - mu.Lock() - ids := make([]int32, 0, len(m)) - for id := range m { - ids = append(ids, id) - } - sort.Sort(int32Slice(ids)) - mu.Unlock() - - for _, extNum := range ids { - ext := m[extNum] - var desc *ExtensionDesc - if emap != nil { - desc = emap[extNum] - } - if desc == nil { - // Unknown extension. - if err := writeUnknownStruct(w, ext.enc); err != nil { - return err - } - continue - } - - pb, err := GetExtension(ep, desc) - if err != nil { - return fmt.Errorf("failed getting extension: %v", err) - } - - // Repeated extensions will appear as a slice. - if !desc.repeated() { - if err := tm.writeExtension(w, desc.Name, pb); err != nil { - return err - } - } else { - v := reflect.ValueOf(pb) - for i := 0; i < v.Len(); i++ { - if err := tm.writeExtension(w, desc.Name, v.Index(i).Interface()); err != nil { - return err - } - } - } - } - return nil -} - -func (tm *TextMarshaler) writeExtension(w *textWriter, name string, pb interface{}) error { - if _, err := fmt.Fprintf(w, "[%s]:", name); err != nil { - return err - } - if !w.compact { - if err := w.WriteByte(' '); err != nil { - return err - } - } - if err := tm.writeAny(w, reflect.ValueOf(pb), nil); err != nil { - return err - } - if err := w.WriteByte('\n'); err != nil { - return err - } - return nil -} - -func (w *textWriter) writeIndent() { - if !w.complete { - return - } - remain := w.ind * 2 - for remain > 0 { - n := remain - if n > len(spaces) { - n = len(spaces) - } - w.w.Write(spaces[:n]) - remain -= n - } - w.complete = false -} - -// TextMarshaler is a configurable text format marshaler. -type TextMarshaler struct { - Compact bool // use compact text format (one line). - ExpandAny bool // expand google.protobuf.Any messages of known types -} - -// Marshal writes a given protocol buffer in text format. -// The only errors returned are from w. -func (tm *TextMarshaler) Marshal(w io.Writer, pb Message) error { - val := reflect.ValueOf(pb) - if pb == nil || val.IsNil() { - w.Write([]byte("")) - return nil - } - var bw *bufio.Writer - ww, ok := w.(writer) - if !ok { - bw = bufio.NewWriter(w) - ww = bw - } - aw := &textWriter{ - w: ww, - complete: true, - compact: tm.Compact, - } - - if etm, ok := pb.(encoding.TextMarshaler); ok { - text, err := etm.MarshalText() - if err != nil { - return err - } - if _, err = aw.Write(text); err != nil { - return err - } - if bw != nil { - return bw.Flush() - } - return nil - } - // Dereference the received pointer so we don't have outer < and >. - v := reflect.Indirect(val) - if err := tm.writeStruct(aw, v); err != nil { - return err - } - if bw != nil { - return bw.Flush() - } - return nil -} - -// Text is the same as Marshal, but returns the string directly. -func (tm *TextMarshaler) Text(pb Message) string { - var buf bytes.Buffer - tm.Marshal(&buf, pb) - return buf.String() -} - -var ( - defaultTextMarshaler = TextMarshaler{} - compactTextMarshaler = TextMarshaler{Compact: true} -) - -// TODO: consider removing some of the Marshal functions below. - -// MarshalText writes a given protocol buffer in text format. -// The only errors returned are from w. -func MarshalText(w io.Writer, pb Message) error { return defaultTextMarshaler.Marshal(w, pb) } - -// MarshalTextString is the same as MarshalText, but returns the string directly. -func MarshalTextString(pb Message) string { return defaultTextMarshaler.Text(pb) } - -// CompactText writes a given protocol buffer in compact text format (one line). -func CompactText(w io.Writer, pb Message) error { return compactTextMarshaler.Marshal(w, pb) } - -// CompactTextString is the same as CompactText, but returns the string directly. -func CompactTextString(pb Message) string { return compactTextMarshaler.Text(pb) } diff --git a/1.4/vendor/github.com/golang/protobuf/proto/text_parser.go b/1.4/vendor/github.com/golang/protobuf/proto/text_parser.go deleted file mode 100644 index 0b8c59f7..00000000 --- a/1.4/vendor/github.com/golang/protobuf/proto/text_parser.go +++ /dev/null @@ -1,880 +0,0 @@ -// Go support for Protocol Buffers - Google's data interchange format -// -// Copyright 2010 The Go Authors. All rights reserved. -// https://github.com/golang/protobuf -// -// Redistribution and use in source and binary forms, with or without -// modification, are permitted provided that the following conditions are -// met: -// -// * Redistributions of source code must retain the above copyright -// notice, this list of conditions and the following disclaimer. -// * Redistributions in binary form must reproduce the above -// copyright notice, this list of conditions and the following disclaimer -// in the documentation and/or other materials provided with the -// distribution. -// * Neither the name of Google Inc. nor the names of its -// contributors may be used to endorse or promote products derived from -// this software without specific prior written permission. -// -// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -package proto - -// Functions for parsing the Text protocol buffer format. -// TODO: message sets. - -import ( - "encoding" - "errors" - "fmt" - "reflect" - "strconv" - "strings" - "unicode/utf8" -) - -type ParseError struct { - Message string - Line int // 1-based line number - Offset int // 0-based byte offset from start of input -} - -func (p *ParseError) Error() string { - if p.Line == 1 { - // show offset only for first line - return fmt.Sprintf("line 1.%d: %v", p.Offset, p.Message) - } - return fmt.Sprintf("line %d: %v", p.Line, p.Message) -} - -type token struct { - value string - err *ParseError - line int // line number - offset int // byte number from start of input, not start of line - unquoted string // the unquoted version of value, if it was a quoted string -} - -func (t *token) String() string { - if t.err == nil { - return fmt.Sprintf("%q (line=%d, offset=%d)", t.value, t.line, t.offset) - } - return fmt.Sprintf("parse error: %v", t.err) -} - -type textParser struct { - s string // remaining input - done bool // whether the parsing is finished (success or error) - backed bool // whether back() was called - offset, line int - cur token -} - -func newTextParser(s string) *textParser { - p := new(textParser) - p.s = s - p.line = 1 - p.cur.line = 1 - return p -} - -func (p *textParser) errorf(format string, a ...interface{}) *ParseError { - pe := &ParseError{fmt.Sprintf(format, a...), p.cur.line, p.cur.offset} - p.cur.err = pe - p.done = true - return pe -} - -// Numbers and identifiers are matched by [-+._A-Za-z0-9] -func isIdentOrNumberChar(c byte) bool { - switch { - case 'A' <= c && c <= 'Z', 'a' <= c && c <= 'z': - return true - case '0' <= c && c <= '9': - return true - } - switch c { - case '-', '+', '.', '_': - return true - } - return false -} - -func isWhitespace(c byte) bool { - switch c { - case ' ', '\t', '\n', '\r': - return true - } - return false -} - -func isQuote(c byte) bool { - switch c { - case '"', '\'': - return true - } - return false -} - -func (p *textParser) skipWhitespace() { - i := 0 - for i < len(p.s) && (isWhitespace(p.s[i]) || p.s[i] == '#') { - if p.s[i] == '#' { - // comment; skip to end of line or input - for i < len(p.s) && p.s[i] != '\n' { - i++ - } - if i == len(p.s) { - break - } - } - if p.s[i] == '\n' { - p.line++ - } - i++ - } - p.offset += i - p.s = p.s[i:len(p.s)] - if len(p.s) == 0 { - p.done = true - } -} - -func (p *textParser) advance() { - // Skip whitespace - p.skipWhitespace() - if p.done { - return - } - - // Start of non-whitespace - p.cur.err = nil - p.cur.offset, p.cur.line = p.offset, p.line - p.cur.unquoted = "" - switch p.s[0] { - case '<', '>', '{', '}', ':', '[', ']', ';', ',', '/': - // Single symbol - p.cur.value, p.s = p.s[0:1], p.s[1:len(p.s)] - case '"', '\'': - // Quoted string - i := 1 - for i < len(p.s) && p.s[i] != p.s[0] && p.s[i] != '\n' { - if p.s[i] == '\\' && i+1 < len(p.s) { - // skip escaped char - i++ - } - i++ - } - if i >= len(p.s) || p.s[i] != p.s[0] { - p.errorf("unmatched quote") - return - } - unq, err := unquoteC(p.s[1:i], rune(p.s[0])) - if err != nil { - p.errorf("invalid quoted string %s: %v", p.s[0:i+1], err) - return - } - p.cur.value, p.s = p.s[0:i+1], p.s[i+1:len(p.s)] - p.cur.unquoted = unq - default: - i := 0 - for i < len(p.s) && isIdentOrNumberChar(p.s[i]) { - i++ - } - if i == 0 { - p.errorf("unexpected byte %#x", p.s[0]) - return - } - p.cur.value, p.s = p.s[0:i], p.s[i:len(p.s)] - } - p.offset += len(p.cur.value) -} - -var ( - errBadUTF8 = errors.New("proto: bad UTF-8") - errBadHex = errors.New("proto: bad hexadecimal") -) - -func unquoteC(s string, quote rune) (string, error) { - // This is based on C++'s tokenizer.cc. - // Despite its name, this is *not* parsing C syntax. - // For instance, "\0" is an invalid quoted string. - - // Avoid allocation in trivial cases. - simple := true - for _, r := range s { - if r == '\\' || r == quote { - simple = false - break - } - } - if simple { - return s, nil - } - - buf := make([]byte, 0, 3*len(s)/2) - for len(s) > 0 { - r, n := utf8.DecodeRuneInString(s) - if r == utf8.RuneError && n == 1 { - return "", errBadUTF8 - } - s = s[n:] - if r != '\\' { - if r < utf8.RuneSelf { - buf = append(buf, byte(r)) - } else { - buf = append(buf, string(r)...) - } - continue - } - - ch, tail, err := unescape(s) - if err != nil { - return "", err - } - buf = append(buf, ch...) - s = tail - } - return string(buf), nil -} - -func unescape(s string) (ch string, tail string, err error) { - r, n := utf8.DecodeRuneInString(s) - if r == utf8.RuneError && n == 1 { - return "", "", errBadUTF8 - } - s = s[n:] - switch r { - case 'a': - return "\a", s, nil - case 'b': - return "\b", s, nil - case 'f': - return "\f", s, nil - case 'n': - return "\n", s, nil - case 'r': - return "\r", s, nil - case 't': - return "\t", s, nil - case 'v': - return "\v", s, nil - case '?': - return "?", s, nil // trigraph workaround - case '\'', '"', '\\': - return string(r), s, nil - case '0', '1', '2', '3', '4', '5', '6', '7', 'x', 'X': - if len(s) < 2 { - return "", "", fmt.Errorf(`\%c requires 2 following digits`, r) - } - base := 8 - ss := s[:2] - s = s[2:] - if r == 'x' || r == 'X' { - base = 16 - } else { - ss = string(r) + ss - } - i, err := strconv.ParseUint(ss, base, 8) - if err != nil { - return "", "", err - } - return string([]byte{byte(i)}), s, nil - case 'u', 'U': - n := 4 - if r == 'U' { - n = 8 - } - if len(s) < n { - return "", "", fmt.Errorf(`\%c requires %d digits`, r, n) - } - - bs := make([]byte, n/2) - for i := 0; i < n; i += 2 { - a, ok1 := unhex(s[i]) - b, ok2 := unhex(s[i+1]) - if !ok1 || !ok2 { - return "", "", errBadHex - } - bs[i/2] = a<<4 | b - } - s = s[n:] - return string(bs), s, nil - } - return "", "", fmt.Errorf(`unknown escape \%c`, r) -} - -// Adapted from src/pkg/strconv/quote.go. -func unhex(b byte) (v byte, ok bool) { - switch { - case '0' <= b && b <= '9': - return b - '0', true - case 'a' <= b && b <= 'f': - return b - 'a' + 10, true - case 'A' <= b && b <= 'F': - return b - 'A' + 10, true - } - return 0, false -} - -// Back off the parser by one token. Can only be done between calls to next(). -// It makes the next advance() a no-op. -func (p *textParser) back() { p.backed = true } - -// Advances the parser and returns the new current token. -func (p *textParser) next() *token { - if p.backed || p.done { - p.backed = false - return &p.cur - } - p.advance() - if p.done { - p.cur.value = "" - } else if len(p.cur.value) > 0 && isQuote(p.cur.value[0]) { - // Look for multiple quoted strings separated by whitespace, - // and concatenate them. - cat := p.cur - for { - p.skipWhitespace() - if p.done || !isQuote(p.s[0]) { - break - } - p.advance() - if p.cur.err != nil { - return &p.cur - } - cat.value += " " + p.cur.value - cat.unquoted += p.cur.unquoted - } - p.done = false // parser may have seen EOF, but we want to return cat - p.cur = cat - } - return &p.cur -} - -func (p *textParser) consumeToken(s string) error { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value != s { - p.back() - return p.errorf("expected %q, found %q", s, tok.value) - } - return nil -} - -// Return a RequiredNotSetError indicating which required field was not set. -func (p *textParser) missingRequiredFieldError(sv reflect.Value) *RequiredNotSetError { - st := sv.Type() - sprops := GetProperties(st) - for i := 0; i < st.NumField(); i++ { - if !isNil(sv.Field(i)) { - continue - } - - props := sprops.Prop[i] - if props.Required { - return &RequiredNotSetError{fmt.Sprintf("%v.%v", st, props.OrigName)} - } - } - return &RequiredNotSetError{fmt.Sprintf("%v.", st)} // should not happen -} - -// Returns the index in the struct for the named field, as well as the parsed tag properties. -func structFieldByName(sprops *StructProperties, name string) (int, *Properties, bool) { - i, ok := sprops.decoderOrigNames[name] - if ok { - return i, sprops.Prop[i], true - } - return -1, nil, false -} - -// Consume a ':' from the input stream (if the next token is a colon), -// returning an error if a colon is needed but not present. -func (p *textParser) checkForColon(props *Properties, typ reflect.Type) *ParseError { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value != ":" { - // Colon is optional when the field is a group or message. - needColon := true - switch props.Wire { - case "group": - needColon = false - case "bytes": - // A "bytes" field is either a message, a string, or a repeated field; - // those three become *T, *string and []T respectively, so we can check for - // this field being a pointer to a non-string. - if typ.Kind() == reflect.Ptr { - // *T or *string - if typ.Elem().Kind() == reflect.String { - break - } - } else if typ.Kind() == reflect.Slice { - // []T or []*T - if typ.Elem().Kind() != reflect.Ptr { - break - } - } else if typ.Kind() == reflect.String { - // The proto3 exception is for a string field, - // which requires a colon. - break - } - needColon = false - } - if needColon { - return p.errorf("expected ':', found %q", tok.value) - } - p.back() - } - return nil -} - -func (p *textParser) readStruct(sv reflect.Value, terminator string) error { - st := sv.Type() - sprops := GetProperties(st) - reqCount := sprops.reqCount - var reqFieldErr error - fieldSet := make(map[string]bool) - // A struct is a sequence of "name: value", terminated by one of - // '>' or '}', or the end of the input. A name may also be - // "[extension]" or "[type/url]". - // - // The whole struct can also be an expanded Any message, like: - // [type/url] < ... struct contents ... > - for { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value == terminator { - break - } - if tok.value == "[" { - // Looks like an extension or an Any. - // - // TODO: Check whether we need to handle - // namespace rooted names (e.g. ".something.Foo"). - extName, err := p.consumeExtName() - if err != nil { - return err - } - - if s := strings.LastIndex(extName, "/"); s >= 0 { - // If it contains a slash, it's an Any type URL. - messageName := extName[s+1:] - mt := MessageType(messageName) - if mt == nil { - return p.errorf("unrecognized message %q in google.protobuf.Any", messageName) - } - tok = p.next() - if tok.err != nil { - return tok.err - } - // consume an optional colon - if tok.value == ":" { - tok = p.next() - if tok.err != nil { - return tok.err - } - } - var terminator string - switch tok.value { - case "<": - terminator = ">" - case "{": - terminator = "}" - default: - return p.errorf("expected '{' or '<', found %q", tok.value) - } - v := reflect.New(mt.Elem()) - if pe := p.readStruct(v.Elem(), terminator); pe != nil { - return pe - } - b, err := Marshal(v.Interface().(Message)) - if err != nil { - return p.errorf("failed to marshal message of type %q: %v", messageName, err) - } - sv.FieldByName("TypeUrl").SetString(extName) - sv.FieldByName("Value").SetBytes(b) - continue - } - - var desc *ExtensionDesc - // This could be faster, but it's functional. - // TODO: Do something smarter than a linear scan. - for _, d := range RegisteredExtensions(reflect.New(st).Interface().(Message)) { - if d.Name == extName { - desc = d - break - } - } - if desc == nil { - return p.errorf("unrecognized extension %q", extName) - } - - props := &Properties{} - props.Parse(desc.Tag) - - typ := reflect.TypeOf(desc.ExtensionType) - if err := p.checkForColon(props, typ); err != nil { - return err - } - - rep := desc.repeated() - - // Read the extension structure, and set it in - // the value we're constructing. - var ext reflect.Value - if !rep { - ext = reflect.New(typ).Elem() - } else { - ext = reflect.New(typ.Elem()).Elem() - } - if err := p.readAny(ext, props); err != nil { - if _, ok := err.(*RequiredNotSetError); !ok { - return err - } - reqFieldErr = err - } - ep := sv.Addr().Interface().(Message) - if !rep { - SetExtension(ep, desc, ext.Interface()) - } else { - old, err := GetExtension(ep, desc) - var sl reflect.Value - if err == nil { - sl = reflect.ValueOf(old) // existing slice - } else { - sl = reflect.MakeSlice(typ, 0, 1) - } - sl = reflect.Append(sl, ext) - SetExtension(ep, desc, sl.Interface()) - } - if err := p.consumeOptionalSeparator(); err != nil { - return err - } - continue - } - - // This is a normal, non-extension field. - name := tok.value - var dst reflect.Value - fi, props, ok := structFieldByName(sprops, name) - if ok { - dst = sv.Field(fi) - } else if oop, ok := sprops.OneofTypes[name]; ok { - // It is a oneof. - props = oop.Prop - nv := reflect.New(oop.Type.Elem()) - dst = nv.Elem().Field(0) - sv.Field(oop.Field).Set(nv) - } - if !dst.IsValid() { - return p.errorf("unknown field name %q in %v", name, st) - } - - if dst.Kind() == reflect.Map { - // Consume any colon. - if err := p.checkForColon(props, dst.Type()); err != nil { - return err - } - - // Construct the map if it doesn't already exist. - if dst.IsNil() { - dst.Set(reflect.MakeMap(dst.Type())) - } - key := reflect.New(dst.Type().Key()).Elem() - val := reflect.New(dst.Type().Elem()).Elem() - - // The map entry should be this sequence of tokens: - // < key : KEY value : VALUE > - // However, implementations may omit key or value, and technically - // we should support them in any order. See b/28924776 for a time - // this went wrong. - - tok := p.next() - var terminator string - switch tok.value { - case "<": - terminator = ">" - case "{": - terminator = "}" - default: - return p.errorf("expected '{' or '<', found %q", tok.value) - } - for { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value == terminator { - break - } - switch tok.value { - case "key": - if err := p.consumeToken(":"); err != nil { - return err - } - if err := p.readAny(key, props.mkeyprop); err != nil { - return err - } - if err := p.consumeOptionalSeparator(); err != nil { - return err - } - case "value": - if err := p.checkForColon(props.mvalprop, dst.Type().Elem()); err != nil { - return err - } - if err := p.readAny(val, props.mvalprop); err != nil { - return err - } - if err := p.consumeOptionalSeparator(); err != nil { - return err - } - default: - p.back() - return p.errorf(`expected "key", "value", or %q, found %q`, terminator, tok.value) - } - } - - dst.SetMapIndex(key, val) - continue - } - - // Check that it's not already set if it's not a repeated field. - if !props.Repeated && fieldSet[name] { - return p.errorf("non-repeated field %q was repeated", name) - } - - if err := p.checkForColon(props, dst.Type()); err != nil { - return err - } - - // Parse into the field. - fieldSet[name] = true - if err := p.readAny(dst, props); err != nil { - if _, ok := err.(*RequiredNotSetError); !ok { - return err - } - reqFieldErr = err - } - if props.Required { - reqCount-- - } - - if err := p.consumeOptionalSeparator(); err != nil { - return err - } - - } - - if reqCount > 0 { - return p.missingRequiredFieldError(sv) - } - return reqFieldErr -} - -// consumeExtName consumes extension name or expanded Any type URL and the -// following ']'. It returns the name or URL consumed. -func (p *textParser) consumeExtName() (string, error) { - tok := p.next() - if tok.err != nil { - return "", tok.err - } - - // If extension name or type url is quoted, it's a single token. - if len(tok.value) > 2 && isQuote(tok.value[0]) && tok.value[len(tok.value)-1] == tok.value[0] { - name, err := unquoteC(tok.value[1:len(tok.value)-1], rune(tok.value[0])) - if err != nil { - return "", err - } - return name, p.consumeToken("]") - } - - // Consume everything up to "]" - var parts []string - for tok.value != "]" { - parts = append(parts, tok.value) - tok = p.next() - if tok.err != nil { - return "", p.errorf("unrecognized type_url or extension name: %s", tok.err) - } - } - return strings.Join(parts, ""), nil -} - -// consumeOptionalSeparator consumes an optional semicolon or comma. -// It is used in readStruct to provide backward compatibility. -func (p *textParser) consumeOptionalSeparator() error { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value != ";" && tok.value != "," { - p.back() - } - return nil -} - -func (p *textParser) readAny(v reflect.Value, props *Properties) error { - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value == "" { - return p.errorf("unexpected EOF") - } - - switch fv := v; fv.Kind() { - case reflect.Slice: - at := v.Type() - if at.Elem().Kind() == reflect.Uint8 { - // Special case for []byte - if tok.value[0] != '"' && tok.value[0] != '\'' { - // Deliberately written out here, as the error after - // this switch statement would write "invalid []byte: ...", - // which is not as user-friendly. - return p.errorf("invalid string: %v", tok.value) - } - bytes := []byte(tok.unquoted) - fv.Set(reflect.ValueOf(bytes)) - return nil - } - // Repeated field. - if tok.value == "[" { - // Repeated field with list notation, like [1,2,3]. - for { - fv.Set(reflect.Append(fv, reflect.New(at.Elem()).Elem())) - err := p.readAny(fv.Index(fv.Len()-1), props) - if err != nil { - return err - } - tok := p.next() - if tok.err != nil { - return tok.err - } - if tok.value == "]" { - break - } - if tok.value != "," { - return p.errorf("Expected ']' or ',' found %q", tok.value) - } - } - return nil - } - // One value of the repeated field. - p.back() - fv.Set(reflect.Append(fv, reflect.New(at.Elem()).Elem())) - return p.readAny(fv.Index(fv.Len()-1), props) - case reflect.Bool: - // Either "true", "false", 1 or 0. - switch tok.value { - case "true", "1": - fv.SetBool(true) - return nil - case "false", "0": - fv.SetBool(false) - return nil - } - case reflect.Float32, reflect.Float64: - v := tok.value - // Ignore 'f' for compatibility with output generated by C++, but don't - // remove 'f' when the value is "-inf" or "inf". - if strings.HasSuffix(v, "f") && tok.value != "-inf" && tok.value != "inf" { - v = v[:len(v)-1] - } - if f, err := strconv.ParseFloat(v, fv.Type().Bits()); err == nil { - fv.SetFloat(f) - return nil - } - case reflect.Int32: - if x, err := strconv.ParseInt(tok.value, 0, 32); err == nil { - fv.SetInt(x) - return nil - } - - if len(props.Enum) == 0 { - break - } - m, ok := enumValueMaps[props.Enum] - if !ok { - break - } - x, ok := m[tok.value] - if !ok { - break - } - fv.SetInt(int64(x)) - return nil - case reflect.Int64: - if x, err := strconv.ParseInt(tok.value, 0, 64); err == nil { - fv.SetInt(x) - return nil - } - - case reflect.Ptr: - // A basic field (indirected through pointer), or a repeated message/group - p.back() - fv.Set(reflect.New(fv.Type().Elem())) - return p.readAny(fv.Elem(), props) - case reflect.String: - if tok.value[0] == '"' || tok.value[0] == '\'' { - fv.SetString(tok.unquoted) - return nil - } - case reflect.Struct: - var terminator string - switch tok.value { - case "{": - terminator = "}" - case "<": - terminator = ">" - default: - return p.errorf("expected '{' or '<', found %q", tok.value) - } - // TODO: Handle nested messages which implement encoding.TextUnmarshaler. - return p.readStruct(fv, terminator) - case reflect.Uint32: - if x, err := strconv.ParseUint(tok.value, 0, 32); err == nil { - fv.SetUint(uint64(x)) - return nil - } - case reflect.Uint64: - if x, err := strconv.ParseUint(tok.value, 0, 64); err == nil { - fv.SetUint(x) - return nil - } - } - return p.errorf("invalid %v: %v", v.Type(), tok.value) -} - -// UnmarshalText reads a protocol buffer in Text format. UnmarshalText resets pb -// before starting to unmarshal, so any existing data in pb is always removed. -// If a required field is not set and no other error occurs, -// UnmarshalText returns *RequiredNotSetError. -func UnmarshalText(s string, pb Message) error { - if um, ok := pb.(encoding.TextUnmarshaler); ok { - err := um.UnmarshalText([]byte(s)) - return err - } - pb.Reset() - v := reflect.ValueOf(pb) - if pe := newTextParser(s).readStruct(v.Elem(), ""); pe != nil { - return pe - } - return nil -} diff --git a/1.4/vendor/github.com/google/gofuzz/.travis.yml b/1.4/vendor/github.com/google/gofuzz/.travis.yml new file mode 100644 index 00000000..f8684d99 --- /dev/null +++ b/1.4/vendor/github.com/google/gofuzz/.travis.yml @@ -0,0 +1,13 @@ +language: go + +go: + - 1.4 + - 1.3 + - 1.2 + - tip + +install: + - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi + +script: + - go test -cover diff --git a/1.4/vendor/github.com/imdario/mergo/.travis.yml b/1.4/vendor/github.com/imdario/mergo/.travis.yml new file mode 100644 index 00000000..9d91c633 --- /dev/null +++ b/1.4/vendor/github.com/imdario/mergo/.travis.yml @@ -0,0 +1,2 @@ +language: go +install: go get -t diff --git a/1.4/vendor/github.com/matttproud/golang_protobuf_extensions/LICENSE b/1.4/vendor/github.com/matttproud/golang_protobuf_extensions/LICENSE deleted file mode 100644 index 13f15dfc..00000000 --- a/1.4/vendor/github.com/matttproud/golang_protobuf_extensions/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2013 Matt T. Proud - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/1.4/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/decode.go b/1.4/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/decode.go deleted file mode 100644 index 66d9b545..00000000 --- a/1.4/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/decode.go +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2013 Matt T. Proud -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package pbutil - -import ( - "encoding/binary" - "errors" - "io" - - "github.com/golang/protobuf/proto" -) - -var errInvalidVarint = errors.New("invalid varint32 encountered") - -// ReadDelimited decodes a message from the provided length-delimited stream, -// where the length is encoded as 32-bit varint prefix to the message body. -// It returns the total number of bytes read and any applicable error. This is -// roughly equivalent to the companion Java API's -// MessageLite#parseDelimitedFrom. As per the reader contract, this function -// calls r.Read repeatedly as required until exactly one message including its -// prefix is read and decoded (or an error has occurred). The function never -// reads more bytes from the stream than required. The function never returns -// an error if a message has been read and decoded correctly, even if the end -// of the stream has been reached in doing so. In that case, any subsequent -// calls return (0, io.EOF). -func ReadDelimited(r io.Reader, m proto.Message) (n int, err error) { - // Per AbstractParser#parsePartialDelimitedFrom with - // CodedInputStream#readRawVarint32. - headerBuf := make([]byte, binary.MaxVarintLen32) - var bytesRead, varIntBytes int - var messageLength uint64 - for varIntBytes == 0 { // i.e. no varint has been decoded yet. - if bytesRead >= len(headerBuf) { - return bytesRead, errInvalidVarint - } - // We have to read byte by byte here to avoid reading more bytes - // than required. Each read byte is appended to what we have - // read before. - newBytesRead, err := r.Read(headerBuf[bytesRead : bytesRead+1]) - if newBytesRead == 0 { - if err != nil { - return bytesRead, err - } - // A Reader should not return (0, nil), but if it does, - // it should be treated as no-op (according to the - // Reader contract). So let's go on... - continue - } - bytesRead += newBytesRead - // Now present everything read so far to the varint decoder and - // see if a varint can be decoded already. - messageLength, varIntBytes = proto.DecodeVarint(headerBuf[:bytesRead]) - } - - messageBuf := make([]byte, messageLength) - newBytesRead, err := io.ReadFull(r, messageBuf) - bytesRead += newBytesRead - if err != nil { - return bytesRead, err - } - - return bytesRead, proto.Unmarshal(messageBuf, m) -} diff --git a/1.4/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/doc.go b/1.4/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/doc.go deleted file mode 100644 index c318385c..00000000 --- a/1.4/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/doc.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2013 Matt T. Proud -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Package pbutil provides record length-delimited Protocol Buffer streaming. -package pbutil diff --git a/1.4/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/encode.go b/1.4/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/encode.go deleted file mode 100644 index 4b76ea9a..00000000 --- a/1.4/vendor/github.com/matttproud/golang_protobuf_extensions/pbutil/encode.go +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2013 Matt T. Proud -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package pbutil - -import ( - "encoding/binary" - "io" - - "github.com/golang/protobuf/proto" -) - -// WriteDelimited encodes and dumps a message to the provided writer prefixed -// with a 32-bit varint indicating the length of the encoded message, producing -// a length-delimited record stream, which can be used to chain together -// encoded messages of the same type together in a file. It returns the total -// number of bytes written and any applicable error. This is roughly -// equivalent to the companion Java API's MessageLite#writeDelimitedTo. -func WriteDelimited(w io.Writer, m proto.Message) (n int, err error) { - buffer, err := proto.Marshal(m) - if err != nil { - return 0, err - } - - buf := make([]byte, binary.MaxVarintLen32) - encodedLength := binary.PutUvarint(buf, uint64(len(buffer))) - - sync, err := w.Write(buf[:encodedLength]) - if err != nil { - return sync, err - } - - n, err = w.Write(buffer) - return n + sync, err -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/LICENSE b/1.4/vendor/github.com/prometheus/client_golang/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/1.4/vendor/github.com/prometheus/client_golang/NOTICE b/1.4/vendor/github.com/prometheus/client_golang/NOTICE deleted file mode 100644 index 37e4a7d4..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/NOTICE +++ /dev/null @@ -1,28 +0,0 @@ -Prometheus instrumentation library for Go applications -Copyright 2012-2015 The Prometheus Authors - -This product includes software developed at -SoundCloud Ltd. (http://soundcloud.com/). - - -The following components are included in this product: - -goautoneg -http://bitbucket.org/ww/goautoneg -Copyright 2011, Open Knowledge Foundation Ltd. -See README.txt for license details. - -perks - a fork of https://github.com/bmizerany/perks -https://github.com/beorn7/perks -Copyright 2013-2015 Blake Mizerany, Björn Rabenstein -See https://github.com/beorn7/perks/blob/master/README.md for license details. - -Go support for Protocol Buffers - Google's data interchange format -http://github.com/golang/protobuf/ -Copyright 2010 The Go Authors -See source code for license details. - -Support for streaming Protocol Buffer messages for the Go language (golang). -https://github.com/matttproud/golang_protobuf_extensions -Copyright 2013 Matt T. Proud -Licensed under the Apache License, Version 2.0 diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/.gitignore b/1.4/vendor/github.com/prometheus/client_golang/prometheus/.gitignore deleted file mode 100644 index 3460f034..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/.gitignore +++ /dev/null @@ -1 +0,0 @@ -command-line-arguments.test diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/collector.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/collector.go deleted file mode 100644 index c0468800..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/collector.go +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package prometheus - -// Collector is the interface implemented by anything that can be used by -// Prometheus to collect metrics. A Collector has to be registered for -// collection. See Register, MustRegister, RegisterOrGet, and MustRegisterOrGet. -// -// The stock metrics provided by this package (like Gauge, Counter, Summary) are -// also Collectors (which only ever collect one metric, namely itself). An -// implementer of Collector may, however, collect multiple metrics in a -// coordinated fashion and/or create metrics on the fly. Examples for collectors -// already implemented in this library are the metric vectors (i.e. collection -// of multiple instances of the same Metric but with different label values) -// like GaugeVec or SummaryVec, and the ExpvarCollector. -type Collector interface { - // Describe sends the super-set of all possible descriptors of metrics - // collected by this Collector to the provided channel and returns once - // the last descriptor has been sent. The sent descriptors fulfill the - // consistency and uniqueness requirements described in the Desc - // documentation. (It is valid if one and the same Collector sends - // duplicate descriptors. Those duplicates are simply ignored. However, - // two different Collectors must not send duplicate descriptors.) This - // method idempotently sends the same descriptors throughout the - // lifetime of the Collector. If a Collector encounters an error while - // executing this method, it must send an invalid descriptor (created - // with NewInvalidDesc) to signal the error to the registry. - Describe(chan<- *Desc) - // Collect is called by Prometheus when collecting metrics. The - // implementation sends each collected metric via the provided channel - // and returns once the last metric has been sent. The descriptor of - // each sent metric is one of those returned by Describe. Returned - // metrics that share the same descriptor must differ in their variable - // label values. This method may be called concurrently and must - // therefore be implemented in a concurrency safe way. Blocking occurs - // at the expense of total performance of rendering all registered - // metrics. Ideally, Collector implementations support concurrent - // readers. - Collect(chan<- Metric) -} - -// SelfCollector implements Collector for a single Metric so that that the -// Metric collects itself. Add it as an anonymous field to a struct that -// implements Metric, and call Init with the Metric itself as an argument. -type SelfCollector struct { - self Metric -} - -// Init provides the SelfCollector with a reference to the metric it is supposed -// to collect. It is usually called within the factory function to create a -// metric. See example. -func (c *SelfCollector) Init(self Metric) { - c.self = self -} - -// Describe implements Collector. -func (c *SelfCollector) Describe(ch chan<- *Desc) { - ch <- c.self.Desc() -} - -// Collect implements Collector. -func (c *SelfCollector) Collect(ch chan<- Metric) { - ch <- c.self -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/counter.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/counter.go deleted file mode 100644 index a2952d1c..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/counter.go +++ /dev/null @@ -1,175 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package prometheus - -import ( - "errors" - "hash/fnv" -) - -// Counter is a Metric that represents a single numerical value that only ever -// goes up. That implies that it cannot be used to count items whose number can -// also go down, e.g. the number of currently running goroutines. Those -// "counters" are represented by Gauges. -// -// A Counter is typically used to count requests served, tasks completed, errors -// occurred, etc. -// -// To create Counter instances, use NewCounter. -type Counter interface { - Metric - Collector - - // Set is used to set the Counter to an arbitrary value. It is only used - // if you have to transfer a value from an external counter into this - // Prometheus metric. Do not use it for regular handling of a - // Prometheus counter (as it can be used to break the contract of - // monotonically increasing values). - Set(float64) - // Inc increments the counter by 1. - Inc() - // Add adds the given value to the counter. It panics if the value is < - // 0. - Add(float64) -} - -// CounterOpts is an alias for Opts. See there for doc comments. -type CounterOpts Opts - -// NewCounter creates a new Counter based on the provided CounterOpts. -func NewCounter(opts CounterOpts) Counter { - desc := NewDesc( - BuildFQName(opts.Namespace, opts.Subsystem, opts.Name), - opts.Help, - nil, - opts.ConstLabels, - ) - result := &counter{value: value{desc: desc, valType: CounterValue, labelPairs: desc.constLabelPairs}} - result.Init(result) // Init self-collection. - return result -} - -type counter struct { - value -} - -func (c *counter) Add(v float64) { - if v < 0 { - panic(errors.New("counter cannot decrease in value")) - } - c.value.Add(v) -} - -// CounterVec is a Collector that bundles a set of Counters that all share the -// same Desc, but have different values for their variable labels. This is used -// if you want to count the same thing partitioned by various dimensions -// (e.g. number of HTTP requests, partitioned by response code and -// method). Create instances with NewCounterVec. -// -// CounterVec embeds MetricVec. See there for a full list of methods with -// detailed documentation. -type CounterVec struct { - MetricVec -} - -// NewCounterVec creates a new CounterVec based on the provided CounterOpts and -// partitioned by the given label names. At least one label name must be -// provided. -func NewCounterVec(opts CounterOpts, labelNames []string) *CounterVec { - desc := NewDesc( - BuildFQName(opts.Namespace, opts.Subsystem, opts.Name), - opts.Help, - labelNames, - opts.ConstLabels, - ) - return &CounterVec{ - MetricVec: MetricVec{ - children: map[uint64]Metric{}, - desc: desc, - hash: fnv.New64a(), - newMetric: func(lvs ...string) Metric { - result := &counter{value: value{ - desc: desc, - valType: CounterValue, - labelPairs: makeLabelPairs(desc, lvs), - }} - result.Init(result) // Init self-collection. - return result - }, - }, - } -} - -// GetMetricWithLabelValues replaces the method of the same name in -// MetricVec. The difference is that this method returns a Counter and not a -// Metric so that no type conversion is required. -func (m *CounterVec) GetMetricWithLabelValues(lvs ...string) (Counter, error) { - metric, err := m.MetricVec.GetMetricWithLabelValues(lvs...) - if metric != nil { - return metric.(Counter), err - } - return nil, err -} - -// GetMetricWith replaces the method of the same name in MetricVec. The -// difference is that this method returns a Counter and not a Metric so that no -// type conversion is required. -func (m *CounterVec) GetMetricWith(labels Labels) (Counter, error) { - metric, err := m.MetricVec.GetMetricWith(labels) - if metric != nil { - return metric.(Counter), err - } - return nil, err -} - -// WithLabelValues works as GetMetricWithLabelValues, but panics where -// GetMetricWithLabelValues would have returned an error. By not returning an -// error, WithLabelValues allows shortcuts like -// myVec.WithLabelValues("404", "GET").Add(42) -func (m *CounterVec) WithLabelValues(lvs ...string) Counter { - return m.MetricVec.WithLabelValues(lvs...).(Counter) -} - -// With works as GetMetricWith, but panics where GetMetricWithLabels would have -// returned an error. By not returning an error, With allows shortcuts like -// myVec.With(Labels{"code": "404", "method": "GET"}).Add(42) -func (m *CounterVec) With(labels Labels) Counter { - return m.MetricVec.With(labels).(Counter) -} - -// CounterFunc is a Counter whose value is determined at collect time by calling a -// provided function. -// -// To create CounterFunc instances, use NewCounterFunc. -type CounterFunc interface { - Metric - Collector -} - -// NewCounterFunc creates a new CounterFunc based on the provided -// CounterOpts. The value reported is determined by calling the given function -// from within the Write method. Take into account that metric collection may -// happen concurrently. If that results in concurrent calls to Write, like in -// the case where a CounterFunc is directly registered with Prometheus, the -// provided function must be concurrency-safe. The function should also honor -// the contract for a Counter (values only go up, not down), but compliance will -// not be checked. -func NewCounterFunc(opts CounterOpts, function func() float64) CounterFunc { - return newValueFunc(NewDesc( - BuildFQName(opts.Namespace, opts.Subsystem, opts.Name), - opts.Help, - nil, - opts.ConstLabels, - ), CounterValue, function) -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/desc.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/desc.go deleted file mode 100644 index fcde784d..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/desc.go +++ /dev/null @@ -1,201 +0,0 @@ -package prometheus - -import ( - "bytes" - "errors" - "fmt" - "hash/fnv" - "regexp" - "sort" - "strings" - - "github.com/golang/protobuf/proto" - - dto "github.com/prometheus/client_model/go" -) - -var ( - metricNameRE = regexp.MustCompile(`^[a-zA-Z_][a-zA-Z0-9_:]*$`) - labelNameRE = regexp.MustCompile("^[a-zA-Z_][a-zA-Z0-9_]*$") -) - -// reservedLabelPrefix is a prefix which is not legal in user-supplied -// label names. -const reservedLabelPrefix = "__" - -// Labels represents a collection of label name -> value mappings. This type is -// commonly used with the With(Labels) and GetMetricWith(Labels) methods of -// metric vector Collectors, e.g.: -// myVec.With(Labels{"code": "404", "method": "GET"}).Add(42) -// -// The other use-case is the specification of constant label pairs in Opts or to -// create a Desc. -type Labels map[string]string - -// Desc is the descriptor used by every Prometheus Metric. It is essentially -// the immutable meta-data of a Metric. The normal Metric implementations -// included in this package manage their Desc under the hood. Users only have to -// deal with Desc if they use advanced features like the ExpvarCollector or -// custom Collectors and Metrics. -// -// Descriptors registered with the same registry have to fulfill certain -// consistency and uniqueness criteria if they share the same fully-qualified -// name: They must have the same help string and the same label names (aka label -// dimensions) in each, constLabels and variableLabels, but they must differ in -// the values of the constLabels. -// -// Descriptors that share the same fully-qualified names and the same label -// values of their constLabels are considered equal. -// -// Use NewDesc to create new Desc instances. -type Desc struct { - // fqName has been built from Namespace, Subsystem, and Name. - fqName string - // help provides some helpful information about this metric. - help string - // constLabelPairs contains precalculated DTO label pairs based on - // the constant labels. - constLabelPairs []*dto.LabelPair - // VariableLabels contains names of labels for which the metric - // maintains variable values. - variableLabels []string - // id is a hash of the values of the ConstLabels and fqName. This - // must be unique among all registered descriptors and can therefore be - // used as an identifier of the descriptor. - id uint64 - // dimHash is a hash of the label names (preset and variable) and the - // Help string. Each Desc with the same fqName must have the same - // dimHash. - dimHash uint64 - // err is an error that occured during construction. It is reported on - // registration time. - err error -} - -// NewDesc allocates and initializes a new Desc. Errors are recorded in the Desc -// and will be reported on registration time. variableLabels and constLabels can -// be nil if no such labels should be set. fqName and help must not be empty. -// -// variableLabels only contain the label names. Their label values are variable -// and therefore not part of the Desc. (They are managed within the Metric.) -// -// For constLabels, the label values are constant. Therefore, they are fully -// specified in the Desc. See the Opts documentation for the implications of -// constant labels. -func NewDesc(fqName, help string, variableLabels []string, constLabels Labels) *Desc { - d := &Desc{ - fqName: fqName, - help: help, - variableLabels: variableLabels, - } - if help == "" { - d.err = errors.New("empty help string") - return d - } - if !metricNameRE.MatchString(fqName) { - d.err = fmt.Errorf("%q is not a valid metric name", fqName) - return d - } - // labelValues contains the label values of const labels (in order of - // their sorted label names) plus the fqName (at position 0). - labelValues := make([]string, 1, len(constLabels)+1) - labelValues[0] = fqName - labelNames := make([]string, 0, len(constLabels)+len(variableLabels)) - labelNameSet := map[string]struct{}{} - // First add only the const label names and sort them... - for labelName := range constLabels { - if !checkLabelName(labelName) { - d.err = fmt.Errorf("%q is not a valid label name", labelName) - return d - } - labelNames = append(labelNames, labelName) - labelNameSet[labelName] = struct{}{} - } - sort.Strings(labelNames) - // ... so that we can now add const label values in the order of their names. - for _, labelName := range labelNames { - labelValues = append(labelValues, constLabels[labelName]) - } - // Now add the variable label names, but prefix them with something that - // cannot be in a regular label name. That prevents matching the label - // dimension with a different mix between preset and variable labels. - for _, labelName := range variableLabels { - if !checkLabelName(labelName) { - d.err = fmt.Errorf("%q is not a valid label name", labelName) - return d - } - labelNames = append(labelNames, "$"+labelName) - labelNameSet[labelName] = struct{}{} - } - if len(labelNames) != len(labelNameSet) { - d.err = errors.New("duplicate label names") - return d - } - h := fnv.New64a() - var b bytes.Buffer // To copy string contents into, avoiding []byte allocations. - for _, val := range labelValues { - b.Reset() - b.WriteString(val) - b.WriteByte(separatorByte) - h.Write(b.Bytes()) - } - d.id = h.Sum64() - // Sort labelNames so that order doesn't matter for the hash. - sort.Strings(labelNames) - // Now hash together (in this order) the help string and the sorted - // label names. - h.Reset() - b.Reset() - b.WriteString(help) - b.WriteByte(separatorByte) - h.Write(b.Bytes()) - for _, labelName := range labelNames { - b.Reset() - b.WriteString(labelName) - b.WriteByte(separatorByte) - h.Write(b.Bytes()) - } - d.dimHash = h.Sum64() - - d.constLabelPairs = make([]*dto.LabelPair, 0, len(constLabels)) - for n, v := range constLabels { - d.constLabelPairs = append(d.constLabelPairs, &dto.LabelPair{ - Name: proto.String(n), - Value: proto.String(v), - }) - } - sort.Sort(LabelPairSorter(d.constLabelPairs)) - return d -} - -// NewInvalidDesc returns an invalid descriptor, i.e. a descriptor with the -// provided error set. If a collector returning such a descriptor is registered, -// registration will fail with the provided error. NewInvalidDesc can be used by -// a Collector to signal inability to describe itself. -func NewInvalidDesc(err error) *Desc { - return &Desc{ - err: err, - } -} - -func (d *Desc) String() string { - lpStrings := make([]string, 0, len(d.constLabelPairs)) - for _, lp := range d.constLabelPairs { - lpStrings = append( - lpStrings, - fmt.Sprintf("%s=%q", lp.GetName(), lp.GetValue()), - ) - } - return fmt.Sprintf( - "Desc{fqName: %q, help: %q, constLabels: {%s}, variableLabels: %v}", - d.fqName, - d.help, - strings.Join(lpStrings, ","), - d.variableLabels, - ) -} - -func checkLabelName(l string) bool { - return labelNameRE.MatchString(l) && - !strings.HasPrefix(l, reservedLabelPrefix) -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/doc.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/doc.go deleted file mode 100644 index 425fe879..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/doc.go +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Package prometheus provides embeddable metric primitives for servers and -// standardized exposition of telemetry through a web services interface. -// -// All exported functions and methods are safe to be used concurrently unless -// specified otherwise. -// -// To expose metrics registered with the Prometheus registry, an HTTP server -// needs to know about the Prometheus handler. The usual endpoint is "/metrics". -// -// http.Handle("/metrics", prometheus.Handler()) -// -// As a starting point a very basic usage example: -// -// package main -// -// import ( -// "net/http" -// -// "github.com/prometheus/client_golang/prometheus" -// ) -// -// var ( -// cpuTemp = prometheus.NewGauge(prometheus.GaugeOpts{ -// Name: "cpu_temperature_celsius", -// Help: "Current temperature of the CPU.", -// }) -// hdFailures = prometheus.NewCounter(prometheus.CounterOpts{ -// Name: "hd_errors_total", -// Help: "Number of hard-disk errors.", -// }) -// ) -// -// func init() { -// prometheus.MustRegister(cpuTemp) -// prometheus.MustRegister(hdFailures) -// } -// -// func main() { -// cpuTemp.Set(65.3) -// hdFailures.Inc() -// -// http.Handle("/metrics", prometheus.Handler()) -// http.ListenAndServe(":8080", nil) -// } -// -// -// This is a complete program that exports two metrics, a Gauge and a Counter. -// It also exports some stats about the HTTP usage of the /metrics -// endpoint. (See the Handler function for more detail.) -// -// Two more advanced metric types are the Summary and Histogram. -// -// In addition to the fundamental metric types Gauge, Counter, Summary, and -// Histogram, a very important part of the Prometheus data model is the -// partitioning of samples along dimensions called labels, which results in -// metric vectors. The fundamental types are GaugeVec, CounterVec, SummaryVec, -// and HistogramVec. -// -// Those are all the parts needed for basic usage. Detailed documentation and -// examples are provided below. -// -// Everything else this package offers is essentially for "power users" only. A -// few pointers to "power user features": -// -// All the various ...Opts structs have a ConstLabels field for labels that -// never change their value (which is only useful under special circumstances, -// see documentation of the Opts type). -// -// The Untyped metric behaves like a Gauge, but signals the Prometheus server -// not to assume anything about its type. -// -// Functions to fine-tune how the metric registry works: EnableCollectChecks, -// PanicOnCollectError, Register, Unregister, SetMetricFamilyInjectionHook. -// -// For custom metric collection, there are two entry points: Custom Metric -// implementations and custom Collector implementations. A Metric is the -// fundamental unit in the Prometheus data model: a sample at a point in time -// together with its meta-data (like its fully-qualified name and any number of -// pairs of label name and label value) that knows how to marshal itself into a -// data transfer object (aka DTO, implemented as a protocol buffer). A Collector -// gets registered with the Prometheus registry and manages the collection of -// one or more Metrics. Many parts of this package are building blocks for -// Metrics and Collectors. Desc is the metric descriptor, actually used by all -// metrics under the hood, and by Collectors to describe the Metrics to be -// collected, but only to be dealt with by users if they implement their own -// Metrics or Collectors. To create a Desc, the BuildFQName function will come -// in handy. Other useful components for Metric and Collector implementation -// include: LabelPairSorter to sort the DTO version of label pairs, -// NewConstMetric and MustNewConstMetric to create "throw away" Metrics at -// collection time, MetricVec to bundle custom Metrics into a metric vector -// Collector, SelfCollector to make a custom Metric collect itself. -// -// A good example for a custom Collector is the ExpVarCollector included in this -// package, which exports variables exported via the "expvar" package as -// Prometheus metrics. -package prometheus diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/expvar.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/expvar.go deleted file mode 100644 index 0f7630d5..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/expvar.go +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package prometheus - -import ( - "encoding/json" - "expvar" -) - -// ExpvarCollector collects metrics from the expvar interface. It provides a -// quick way to expose numeric values that are already exported via expvar as -// Prometheus metrics. Note that the data models of expvar and Prometheus are -// fundamentally different, and that the ExpvarCollector is inherently -// slow. Thus, the ExpvarCollector is probably great for experiments and -// prototying, but you should seriously consider a more direct implementation of -// Prometheus metrics for monitoring production systems. -// -// Use NewExpvarCollector to create new instances. -type ExpvarCollector struct { - exports map[string]*Desc -} - -// NewExpvarCollector returns a newly allocated ExpvarCollector that still has -// to be registered with the Prometheus registry. -// -// The exports map has the following meaning: -// -// The keys in the map correspond to expvar keys, i.e. for every expvar key you -// want to export as Prometheus metric, you need an entry in the exports -// map. The descriptor mapped to each key describes how to export the expvar -// value. It defines the name and the help string of the Prometheus metric -// proxying the expvar value. The type will always be Untyped. -// -// For descriptors without variable labels, the expvar value must be a number or -// a bool. The number is then directly exported as the Prometheus sample -// value. (For a bool, 'false' translates to 0 and 'true' to 1). Expvar values -// that are not numbers or bools are silently ignored. -// -// If the descriptor has one variable label, the expvar value must be an expvar -// map. The keys in the expvar map become the various values of the one -// Prometheus label. The values in the expvar map must be numbers or bools again -// as above. -// -// For descriptors with more than one variable label, the expvar must be a -// nested expvar map, i.e. where the values of the topmost map are maps again -// etc. until a depth is reached that corresponds to the number of labels. The -// leaves of that structure must be numbers or bools as above to serve as the -// sample values. -// -// Anything that does not fit into the scheme above is silently ignored. -func NewExpvarCollector(exports map[string]*Desc) *ExpvarCollector { - return &ExpvarCollector{ - exports: exports, - } -} - -// Describe implements Collector. -func (e *ExpvarCollector) Describe(ch chan<- *Desc) { - for _, desc := range e.exports { - ch <- desc - } -} - -// Collect implements Collector. -func (e *ExpvarCollector) Collect(ch chan<- Metric) { - for name, desc := range e.exports { - var m Metric - expVar := expvar.Get(name) - if expVar == nil { - continue - } - var v interface{} - labels := make([]string, len(desc.variableLabels)) - if err := json.Unmarshal([]byte(expVar.String()), &v); err != nil { - ch <- NewInvalidMetric(desc, err) - continue - } - var processValue func(v interface{}, i int) - processValue = func(v interface{}, i int) { - if i >= len(labels) { - copiedLabels := append(make([]string, 0, len(labels)), labels...) - switch v := v.(type) { - case float64: - m = MustNewConstMetric(desc, UntypedValue, v, copiedLabels...) - case bool: - if v { - m = MustNewConstMetric(desc, UntypedValue, 1, copiedLabels...) - } else { - m = MustNewConstMetric(desc, UntypedValue, 0, copiedLabels...) - } - default: - return - } - ch <- m - return - } - vm, ok := v.(map[string]interface{}) - if !ok { - return - } - for lv, val := range vm { - labels[i] = lv - processValue(val, i+1) - } - } - processValue(v, 0) - } -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/gauge.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/gauge.go deleted file mode 100644 index ba8a402c..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/gauge.go +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package prometheus - -import "hash/fnv" - -// Gauge is a Metric that represents a single numerical value that can -// arbitrarily go up and down. -// -// A Gauge is typically used for measured values like temperatures or current -// memory usage, but also "counts" that can go up and down, like the number of -// running goroutines. -// -// To create Gauge instances, use NewGauge. -type Gauge interface { - Metric - Collector - - // Set sets the Gauge to an arbitrary value. - Set(float64) - // Inc increments the Gauge by 1. - Inc() - // Dec decrements the Gauge by 1. - Dec() - // Add adds the given value to the Gauge. (The value can be - // negative, resulting in a decrease of the Gauge.) - Add(float64) - // Sub subtracts the given value from the Gauge. (The value can be - // negative, resulting in an increase of the Gauge.) - Sub(float64) -} - -// GaugeOpts is an alias for Opts. See there for doc comments. -type GaugeOpts Opts - -// NewGauge creates a new Gauge based on the provided GaugeOpts. -func NewGauge(opts GaugeOpts) Gauge { - return newValue(NewDesc( - BuildFQName(opts.Namespace, opts.Subsystem, opts.Name), - opts.Help, - nil, - opts.ConstLabels, - ), GaugeValue, 0) -} - -// GaugeVec is a Collector that bundles a set of Gauges that all share the same -// Desc, but have different values for their variable labels. This is used if -// you want to count the same thing partitioned by various dimensions -// (e.g. number of operations queued, partitioned by user and operation -// type). Create instances with NewGaugeVec. -type GaugeVec struct { - MetricVec -} - -// NewGaugeVec creates a new GaugeVec based on the provided GaugeOpts and -// partitioned by the given label names. At least one label name must be -// provided. -func NewGaugeVec(opts GaugeOpts, labelNames []string) *GaugeVec { - desc := NewDesc( - BuildFQName(opts.Namespace, opts.Subsystem, opts.Name), - opts.Help, - labelNames, - opts.ConstLabels, - ) - return &GaugeVec{ - MetricVec: MetricVec{ - children: map[uint64]Metric{}, - desc: desc, - hash: fnv.New64a(), - newMetric: func(lvs ...string) Metric { - return newValue(desc, GaugeValue, 0, lvs...) - }, - }, - } -} - -// GetMetricWithLabelValues replaces the method of the same name in -// MetricVec. The difference is that this method returns a Gauge and not a -// Metric so that no type conversion is required. -func (m *GaugeVec) GetMetricWithLabelValues(lvs ...string) (Gauge, error) { - metric, err := m.MetricVec.GetMetricWithLabelValues(lvs...) - if metric != nil { - return metric.(Gauge), err - } - return nil, err -} - -// GetMetricWith replaces the method of the same name in MetricVec. The -// difference is that this method returns a Gauge and not a Metric so that no -// type conversion is required. -func (m *GaugeVec) GetMetricWith(labels Labels) (Gauge, error) { - metric, err := m.MetricVec.GetMetricWith(labels) - if metric != nil { - return metric.(Gauge), err - } - return nil, err -} - -// WithLabelValues works as GetMetricWithLabelValues, but panics where -// GetMetricWithLabelValues would have returned an error. By not returning an -// error, WithLabelValues allows shortcuts like -// myVec.WithLabelValues("404", "GET").Add(42) -func (m *GaugeVec) WithLabelValues(lvs ...string) Gauge { - return m.MetricVec.WithLabelValues(lvs...).(Gauge) -} - -// With works as GetMetricWith, but panics where GetMetricWithLabels would have -// returned an error. By not returning an error, With allows shortcuts like -// myVec.With(Labels{"code": "404", "method": "GET"}).Add(42) -func (m *GaugeVec) With(labels Labels) Gauge { - return m.MetricVec.With(labels).(Gauge) -} - -// GaugeFunc is a Gauge whose value is determined at collect time by calling a -// provided function. -// -// To create GaugeFunc instances, use NewGaugeFunc. -type GaugeFunc interface { - Metric - Collector -} - -// NewGaugeFunc creates a new GaugeFunc based on the provided GaugeOpts. The -// value reported is determined by calling the given function from within the -// Write method. Take into account that metric collection may happen -// concurrently. If that results in concurrent calls to Write, like in the case -// where a GaugeFunc is directly registered with Prometheus, the provided -// function must be concurrency-safe. -func NewGaugeFunc(opts GaugeOpts, function func() float64) GaugeFunc { - return newValueFunc(NewDesc( - BuildFQName(opts.Namespace, opts.Subsystem, opts.Name), - opts.Help, - nil, - opts.ConstLabels, - ), GaugeValue, function) -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/go_collector.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/go_collector.go deleted file mode 100644 index 8be24769..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/go_collector.go +++ /dev/null @@ -1,263 +0,0 @@ -package prometheus - -import ( - "fmt" - "runtime" - "runtime/debug" - "time" -) - -type goCollector struct { - goroutines Gauge - gcDesc *Desc - - // metrics to describe and collect - metrics memStatsMetrics -} - -// NewGoCollector returns a collector which exports metrics about the current -// go process. -func NewGoCollector() *goCollector { - return &goCollector{ - goroutines: NewGauge(GaugeOpts{ - Namespace: "go", - Name: "goroutines", - Help: "Number of goroutines that currently exist.", - }), - gcDesc: NewDesc( - "go_gc_duration_seconds", - "A summary of the GC invocation durations.", - nil, nil), - metrics: memStatsMetrics{ - { - desc: NewDesc( - memstatNamespace("alloc_bytes"), - "Number of bytes allocated and still in use.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.Alloc) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("alloc_bytes_total"), - "Total number of bytes allocated, even if freed.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.TotalAlloc) }, - valType: CounterValue, - }, { - desc: NewDesc( - memstatNamespace("sys_bytes"), - "Number of bytes obtained by system. Sum of all system allocations.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.Sys) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("lookups_total"), - "Total number of pointer lookups.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.Lookups) }, - valType: CounterValue, - }, { - desc: NewDesc( - memstatNamespace("mallocs_total"), - "Total number of mallocs.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.Mallocs) }, - valType: CounterValue, - }, { - desc: NewDesc( - memstatNamespace("frees_total"), - "Total number of frees.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.Frees) }, - valType: CounterValue, - }, { - desc: NewDesc( - memstatNamespace("heap_alloc_bytes"), - "Number of heap bytes allocated and still in use.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.HeapAlloc) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("heap_sys_bytes"), - "Number of heap bytes obtained from system.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.HeapSys) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("heap_idle_bytes"), - "Number of heap bytes waiting to be used.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.HeapIdle) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("heap_inuse_bytes"), - "Number of heap bytes that are in use.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.HeapInuse) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("heap_released_bytes_total"), - "Total number of heap bytes released to OS.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.HeapReleased) }, - valType: CounterValue, - }, { - desc: NewDesc( - memstatNamespace("heap_objects"), - "Number of allocated objects.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.HeapObjects) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("stack_inuse_bytes"), - "Number of bytes in use by the stack allocator.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.StackInuse) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("stack_sys_bytes"), - "Number of bytes obtained from system for stack allocator.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.StackSys) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("mspan_inuse_bytes"), - "Number of bytes in use by mspan structures.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.MSpanInuse) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("mspan_sys_bytes"), - "Number of bytes used for mspan structures obtained from system.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.MSpanSys) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("mcache_inuse_bytes"), - "Number of bytes in use by mcache structures.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.MCacheInuse) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("mcache_sys_bytes"), - "Number of bytes used for mcache structures obtained from system.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.MCacheSys) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("buck_hash_sys_bytes"), - "Number of bytes used by the profiling bucket hash table.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.BuckHashSys) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("gc_sys_bytes"), - "Number of bytes used for garbage collection system metadata.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.GCSys) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("other_sys_bytes"), - "Number of bytes used for other system allocations.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.OtherSys) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("next_gc_bytes"), - "Number of heap bytes when next garbage collection will take place.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.NextGC) }, - valType: GaugeValue, - }, { - desc: NewDesc( - memstatNamespace("last_gc_time_seconds"), - "Number of seconds since 1970 of last garbage collection.", - nil, nil, - ), - eval: func(ms *runtime.MemStats) float64 { return float64(ms.LastGC*10 ^ 9) }, - valType: GaugeValue, - }, - }, - } -} - -func memstatNamespace(s string) string { - return fmt.Sprintf("go_memstats_%s", s) -} - -// Describe returns all descriptions of the collector. -func (c *goCollector) Describe(ch chan<- *Desc) { - ch <- c.goroutines.Desc() - ch <- c.gcDesc - - for _, i := range c.metrics { - ch <- i.desc - } -} - -// Collect returns the current state of all metrics of the collector. -func (c *goCollector) Collect(ch chan<- Metric) { - c.goroutines.Set(float64(runtime.NumGoroutine())) - ch <- c.goroutines - - var stats debug.GCStats - stats.PauseQuantiles = make([]time.Duration, 5) - debug.ReadGCStats(&stats) - - quantiles := make(map[float64]float64) - for idx, pq := range stats.PauseQuantiles[1:] { - quantiles[float64(idx+1)/float64(len(stats.PauseQuantiles)-1)] = pq.Seconds() - } - quantiles[0.0] = stats.PauseQuantiles[0].Seconds() - ch <- MustNewConstSummary(c.gcDesc, uint64(stats.NumGC), float64(stats.PauseTotal.Seconds()), quantiles) - - ms := &runtime.MemStats{} - runtime.ReadMemStats(ms) - for _, i := range c.metrics { - ch <- MustNewConstMetric(i.desc, i.valType, i.eval(ms)) - } -} - -// memStatsMetrics provide description, value, and value type for memstat metrics. -type memStatsMetrics []struct { - desc *Desc - eval func(*runtime.MemStats) float64 - valType ValueType -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/histogram.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/histogram.go deleted file mode 100644 index f98a41bc..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/histogram.go +++ /dev/null @@ -1,450 +0,0 @@ -// Copyright 2015 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package prometheus - -import ( - "fmt" - "hash/fnv" - "math" - "sort" - "sync/atomic" - - "github.com/golang/protobuf/proto" - - dto "github.com/prometheus/client_model/go" -) - -// A Histogram counts individual observations from an event or sample stream in -// configurable buckets. Similar to a summary, it also provides a sum of -// observations and an observation count. -// -// On the Prometheus server, quantiles can be calculated from a Histogram using -// the histogram_quantile function in the query language. -// -// Note that Histograms, in contrast to Summaries, can be aggregated with the -// Prometheus query language (see the documentation for detailed -// procedures). However, Histograms require the user to pre-define suitable -// buckets, and they are in general less accurate. The Observe method of a -// Histogram has a very low performance overhead in comparison with the Observe -// method of a Summary. -// -// To create Histogram instances, use NewHistogram. -type Histogram interface { - Metric - Collector - - // Observe adds a single observation to the histogram. - Observe(float64) -} - -// bucketLabel is used for the label that defines the upper bound of a -// bucket of a histogram ("le" -> "less or equal"). -const bucketLabel = "le" - -var ( - // DefBuckets are the default Histogram buckets. The default buckets are - // tailored to broadly measure the response time (in seconds) of a - // network service. Most likely, however, you will be required to define - // buckets customized to your use case. - DefBuckets = []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10} - - errBucketLabelNotAllowed = fmt.Errorf( - "%q is not allowed as label name in histograms", bucketLabel, - ) -) - -// LinearBuckets creates 'count' buckets, each 'width' wide, where the lowest -// bucket has an upper bound of 'start'. The final +Inf bucket is not counted -// and not included in the returned slice. The returned slice is meant to be -// used for the Buckets field of HistogramOpts. -// -// The function panics if 'count' is zero or negative. -func LinearBuckets(start, width float64, count int) []float64 { - if count < 1 { - panic("LinearBuckets needs a positive count") - } - buckets := make([]float64, count) - for i := range buckets { - buckets[i] = start - start += width - } - return buckets -} - -// ExponentialBuckets creates 'count' buckets, where the lowest bucket has an -// upper bound of 'start' and each following bucket's upper bound is 'factor' -// times the previous bucket's upper bound. The final +Inf bucket is not counted -// and not included in the returned slice. The returned slice is meant to be -// used for the Buckets field of HistogramOpts. -// -// The function panics if 'count' is 0 or negative, if 'start' is 0 or negative, -// or if 'factor' is less than or equal 1. -func ExponentialBuckets(start, factor float64, count int) []float64 { - if count < 1 { - panic("ExponentialBuckets needs a positive count") - } - if start <= 0 { - panic("ExponentialBuckets needs a positive start value") - } - if factor <= 1 { - panic("ExponentialBuckets needs a factor greater than 1") - } - buckets := make([]float64, count) - for i := range buckets { - buckets[i] = start - start *= factor - } - return buckets -} - -// HistogramOpts bundles the options for creating a Histogram metric. It is -// mandatory to set Name and Help to a non-empty string. All other fields are -// optional and can safely be left at their zero value. -type HistogramOpts struct { - // Namespace, Subsystem, and Name are components of the fully-qualified - // name of the Histogram (created by joining these components with - // "_"). Only Name is mandatory, the others merely help structuring the - // name. Note that the fully-qualified name of the Histogram must be a - // valid Prometheus metric name. - Namespace string - Subsystem string - Name string - - // Help provides information about this Histogram. Mandatory! - // - // Metrics with the same fully-qualified name must have the same Help - // string. - Help string - - // ConstLabels are used to attach fixed labels to this - // Histogram. Histograms with the same fully-qualified name must have the - // same label names in their ConstLabels. - // - // Note that in most cases, labels have a value that varies during the - // lifetime of a process. Those labels are usually managed with a - // HistogramVec. ConstLabels serve only special purposes. One is for the - // special case where the value of a label does not change during the - // lifetime of a process, e.g. if the revision of the running binary is - // put into a label. Another, more advanced purpose is if more than one - // Collector needs to collect Histograms with the same fully-qualified - // name. In that case, those Summaries must differ in the values of - // their ConstLabels. See the Collector examples. - // - // If the value of a label never changes (not even between binaries), - // that label most likely should not be a label at all (but part of the - // metric name). - ConstLabels Labels - - // Buckets defines the buckets into which observations are counted. Each - // element in the slice is the upper inclusive bound of a bucket. The - // values must be sorted in strictly increasing order. There is no need - // to add a highest bucket with +Inf bound, it will be added - // implicitly. The default value is DefBuckets. - Buckets []float64 -} - -// NewHistogram creates a new Histogram based on the provided HistogramOpts. It -// panics if the buckets in HistogramOpts are not in strictly increasing order. -func NewHistogram(opts HistogramOpts) Histogram { - return newHistogram( - NewDesc( - BuildFQName(opts.Namespace, opts.Subsystem, opts.Name), - opts.Help, - nil, - opts.ConstLabels, - ), - opts, - ) -} - -func newHistogram(desc *Desc, opts HistogramOpts, labelValues ...string) Histogram { - if len(desc.variableLabels) != len(labelValues) { - panic(errInconsistentCardinality) - } - - for _, n := range desc.variableLabels { - if n == bucketLabel { - panic(errBucketLabelNotAllowed) - } - } - for _, lp := range desc.constLabelPairs { - if lp.GetName() == bucketLabel { - panic(errBucketLabelNotAllowed) - } - } - - if len(opts.Buckets) == 0 { - opts.Buckets = DefBuckets - } - - h := &histogram{ - desc: desc, - upperBounds: opts.Buckets, - labelPairs: makeLabelPairs(desc, labelValues), - } - for i, upperBound := range h.upperBounds { - if i < len(h.upperBounds)-1 { - if upperBound >= h.upperBounds[i+1] { - panic(fmt.Errorf( - "histogram buckets must be in increasing order: %f >= %f", - upperBound, h.upperBounds[i+1], - )) - } - } else { - if math.IsInf(upperBound, +1) { - // The +Inf bucket is implicit. Remove it here. - h.upperBounds = h.upperBounds[:i] - } - } - } - // Finally we know the final length of h.upperBounds and can make counts. - h.counts = make([]uint64, len(h.upperBounds)) - - h.Init(h) // Init self-collection. - return h -} - -type histogram struct { - // sumBits contains the bits of the float64 representing the sum of all - // observations. sumBits and count have to go first in the struct to - // guarantee alignment for atomic operations. - // http://golang.org/pkg/sync/atomic/#pkg-note-BUG - sumBits uint64 - count uint64 - - SelfCollector - // Note that there is no mutex required. - - desc *Desc - - upperBounds []float64 - counts []uint64 - - labelPairs []*dto.LabelPair -} - -func (h *histogram) Desc() *Desc { - return h.desc -} - -func (h *histogram) Observe(v float64) { - // TODO(beorn7): For small numbers of buckets (<30), a linear search is - // slightly faster than the binary search. If we really care, we could - // switch from one search strategy to the other depending on the number - // of buckets. - // - // Microbenchmarks (BenchmarkHistogramNoLabels): - // 11 buckets: 38.3 ns/op linear - binary 48.7 ns/op - // 100 buckets: 78.1 ns/op linear - binary 54.9 ns/op - // 300 buckets: 154 ns/op linear - binary 61.6 ns/op - i := sort.SearchFloat64s(h.upperBounds, v) - if i < len(h.counts) { - atomic.AddUint64(&h.counts[i], 1) - } - atomic.AddUint64(&h.count, 1) - for { - oldBits := atomic.LoadUint64(&h.sumBits) - newBits := math.Float64bits(math.Float64frombits(oldBits) + v) - if atomic.CompareAndSwapUint64(&h.sumBits, oldBits, newBits) { - break - } - } -} - -func (h *histogram) Write(out *dto.Metric) error { - his := &dto.Histogram{} - buckets := make([]*dto.Bucket, len(h.upperBounds)) - - his.SampleSum = proto.Float64(math.Float64frombits(atomic.LoadUint64(&h.sumBits))) - his.SampleCount = proto.Uint64(atomic.LoadUint64(&h.count)) - var count uint64 - for i, upperBound := range h.upperBounds { - count += atomic.LoadUint64(&h.counts[i]) - buckets[i] = &dto.Bucket{ - CumulativeCount: proto.Uint64(count), - UpperBound: proto.Float64(upperBound), - } - } - his.Bucket = buckets - out.Histogram = his - out.Label = h.labelPairs - return nil -} - -// HistogramVec is a Collector that bundles a set of Histograms that all share the -// same Desc, but have different values for their variable labels. This is used -// if you want to count the same thing partitioned by various dimensions -// (e.g. HTTP request latencies, partitioned by status code and method). Create -// instances with NewHistogramVec. -type HistogramVec struct { - MetricVec -} - -// NewHistogramVec creates a new HistogramVec based on the provided HistogramOpts and -// partitioned by the given label names. At least one label name must be -// provided. -func NewHistogramVec(opts HistogramOpts, labelNames []string) *HistogramVec { - desc := NewDesc( - BuildFQName(opts.Namespace, opts.Subsystem, opts.Name), - opts.Help, - labelNames, - opts.ConstLabels, - ) - return &HistogramVec{ - MetricVec: MetricVec{ - children: map[uint64]Metric{}, - desc: desc, - hash: fnv.New64a(), - newMetric: func(lvs ...string) Metric { - return newHistogram(desc, opts, lvs...) - }, - }, - } -} - -// GetMetricWithLabelValues replaces the method of the same name in -// MetricVec. The difference is that this method returns a Histogram and not a -// Metric so that no type conversion is required. -func (m *HistogramVec) GetMetricWithLabelValues(lvs ...string) (Histogram, error) { - metric, err := m.MetricVec.GetMetricWithLabelValues(lvs...) - if metric != nil { - return metric.(Histogram), err - } - return nil, err -} - -// GetMetricWith replaces the method of the same name in MetricVec. The -// difference is that this method returns a Histogram and not a Metric so that no -// type conversion is required. -func (m *HistogramVec) GetMetricWith(labels Labels) (Histogram, error) { - metric, err := m.MetricVec.GetMetricWith(labels) - if metric != nil { - return metric.(Histogram), err - } - return nil, err -} - -// WithLabelValues works as GetMetricWithLabelValues, but panics where -// GetMetricWithLabelValues would have returned an error. By not returning an -// error, WithLabelValues allows shortcuts like -// myVec.WithLabelValues("404", "GET").Observe(42.21) -func (m *HistogramVec) WithLabelValues(lvs ...string) Histogram { - return m.MetricVec.WithLabelValues(lvs...).(Histogram) -} - -// With works as GetMetricWith, but panics where GetMetricWithLabels would have -// returned an error. By not returning an error, With allows shortcuts like -// myVec.With(Labels{"code": "404", "method": "GET"}).Observe(42.21) -func (m *HistogramVec) With(labels Labels) Histogram { - return m.MetricVec.With(labels).(Histogram) -} - -type constHistogram struct { - desc *Desc - count uint64 - sum float64 - buckets map[float64]uint64 - labelPairs []*dto.LabelPair -} - -func (h *constHistogram) Desc() *Desc { - return h.desc -} - -func (h *constHistogram) Write(out *dto.Metric) error { - his := &dto.Histogram{} - buckets := make([]*dto.Bucket, 0, len(h.buckets)) - - his.SampleCount = proto.Uint64(h.count) - his.SampleSum = proto.Float64(h.sum) - - for upperBound, count := range h.buckets { - buckets = append(buckets, &dto.Bucket{ - CumulativeCount: proto.Uint64(count), - UpperBound: proto.Float64(upperBound), - }) - } - - if len(buckets) > 0 { - sort.Sort(buckSort(buckets)) - } - his.Bucket = buckets - - out.Histogram = his - out.Label = h.labelPairs - - return nil -} - -// NewConstHistogram returns a metric representing a Prometheus histogram with -// fixed values for the count, sum, and bucket counts. As those parameters -// cannot be changed, the returned value does not implement the Histogram -// interface (but only the Metric interface). Users of this package will not -// have much use for it in regular operations. However, when implementing custom -// Collectors, it is useful as a throw-away metric that is generated on the fly -// to send it to Prometheus in the Collect method. -// -// buckets is a map of upper bounds to cumulative counts, excluding the +Inf -// bucket. -// -// NewConstHistogram returns an error if the length of labelValues is not -// consistent with the variable labels in Desc. -func NewConstHistogram( - desc *Desc, - count uint64, - sum float64, - buckets map[float64]uint64, - labelValues ...string, -) (Metric, error) { - if len(desc.variableLabels) != len(labelValues) { - return nil, errInconsistentCardinality - } - return &constHistogram{ - desc: desc, - count: count, - sum: sum, - buckets: buckets, - labelPairs: makeLabelPairs(desc, labelValues), - }, nil -} - -// MustNewConstHistogram is a version of NewConstHistogram that panics where -// NewConstMetric would have returned an error. -func MustNewConstHistogram( - desc *Desc, - count uint64, - sum float64, - buckets map[float64]uint64, - labelValues ...string, -) Metric { - m, err := NewConstHistogram(desc, count, sum, buckets, labelValues...) - if err != nil { - panic(err) - } - return m -} - -type buckSort []*dto.Bucket - -func (s buckSort) Len() int { - return len(s) -} - -func (s buckSort) Swap(i, j int) { - s[i], s[j] = s[j], s[i] -} - -func (s buckSort) Less(i, j int) bool { - return s[i].GetUpperBound() < s[j].GetUpperBound() -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/http.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/http.go deleted file mode 100644 index eabe6024..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/http.go +++ /dev/null @@ -1,361 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package prometheus - -import ( - "bufio" - "io" - "net" - "net/http" - "strconv" - "strings" - "time" -) - -var instLabels = []string{"method", "code"} - -type nower interface { - Now() time.Time -} - -type nowFunc func() time.Time - -func (n nowFunc) Now() time.Time { - return n() -} - -var now nower = nowFunc(func() time.Time { - return time.Now() -}) - -func nowSeries(t ...time.Time) nower { - return nowFunc(func() time.Time { - defer func() { - t = t[1:] - }() - - return t[0] - }) -} - -// InstrumentHandler wraps the given HTTP handler for instrumentation. It -// registers four metric collectors (if not already done) and reports HTTP -// metrics to the (newly or already) registered collectors: http_requests_total -// (CounterVec), http_request_duration_microseconds (Summary), -// http_request_size_bytes (Summary), http_response_size_bytes (Summary). Each -// has a constant label named "handler" with the provided handlerName as -// value. http_requests_total is a metric vector partitioned by HTTP method -// (label name "method") and HTTP status code (label name "code"). -func InstrumentHandler(handlerName string, handler http.Handler) http.HandlerFunc { - return InstrumentHandlerFunc(handlerName, handler.ServeHTTP) -} - -// InstrumentHandlerFunc wraps the given function for instrumentation. It -// otherwise works in the same way as InstrumentHandler. -func InstrumentHandlerFunc(handlerName string, handlerFunc func(http.ResponseWriter, *http.Request)) http.HandlerFunc { - return InstrumentHandlerFuncWithOpts( - SummaryOpts{ - Subsystem: "http", - ConstLabels: Labels{"handler": handlerName}, - }, - handlerFunc, - ) -} - -// InstrumentHandlerWithOpts works like InstrumentHandler but provides more -// flexibility (at the cost of a more complex call syntax). As -// InstrumentHandler, this function registers four metric collectors, but it -// uses the provided SummaryOpts to create them. However, the fields "Name" and -// "Help" in the SummaryOpts are ignored. "Name" is replaced by -// "requests_total", "request_duration_microseconds", "request_size_bytes", and -// "response_size_bytes", respectively. "Help" is replaced by an appropriate -// help string. The names of the variable labels of the http_requests_total -// CounterVec are "method" (get, post, etc.), and "code" (HTTP status code). -// -// If InstrumentHandlerWithOpts is called as follows, it mimics exactly the -// behavior of InstrumentHandler: -// -// prometheus.InstrumentHandlerWithOpts( -// prometheus.SummaryOpts{ -// Subsystem: "http", -// ConstLabels: prometheus.Labels{"handler": handlerName}, -// }, -// handler, -// ) -// -// Technical detail: "requests_total" is a CounterVec, not a SummaryVec, so it -// cannot use SummaryOpts. Instead, a CounterOpts struct is created internally, -// and all its fields are set to the equally named fields in the provided -// SummaryOpts. -func InstrumentHandlerWithOpts(opts SummaryOpts, handler http.Handler) http.HandlerFunc { - return InstrumentHandlerFuncWithOpts(opts, handler.ServeHTTP) -} - -// InstrumentHandlerFuncWithOpts works like InstrumentHandlerFunc but provides -// more flexibility (at the cost of a more complex call syntax). See -// InstrumentHandlerWithOpts for details how the provided SummaryOpts are used. -func InstrumentHandlerFuncWithOpts(opts SummaryOpts, handlerFunc func(http.ResponseWriter, *http.Request)) http.HandlerFunc { - reqCnt := NewCounterVec( - CounterOpts{ - Namespace: opts.Namespace, - Subsystem: opts.Subsystem, - Name: "requests_total", - Help: "Total number of HTTP requests made.", - ConstLabels: opts.ConstLabels, - }, - instLabels, - ) - - opts.Name = "request_duration_microseconds" - opts.Help = "The HTTP request latencies in microseconds." - reqDur := NewSummary(opts) - - opts.Name = "request_size_bytes" - opts.Help = "The HTTP request sizes in bytes." - reqSz := NewSummary(opts) - - opts.Name = "response_size_bytes" - opts.Help = "The HTTP response sizes in bytes." - resSz := NewSummary(opts) - - regReqCnt := MustRegisterOrGet(reqCnt).(*CounterVec) - regReqDur := MustRegisterOrGet(reqDur).(Summary) - regReqSz := MustRegisterOrGet(reqSz).(Summary) - regResSz := MustRegisterOrGet(resSz).(Summary) - - return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - now := time.Now() - - delegate := &responseWriterDelegator{ResponseWriter: w} - out := make(chan int) - urlLen := 0 - if r.URL != nil { - urlLen = len(r.URL.String()) - } - go computeApproximateRequestSize(r, out, urlLen) - - _, cn := w.(http.CloseNotifier) - _, fl := w.(http.Flusher) - _, hj := w.(http.Hijacker) - _, rf := w.(io.ReaderFrom) - var rw http.ResponseWriter - if cn && fl && hj && rf { - rw = &fancyResponseWriterDelegator{delegate} - } else { - rw = delegate - } - handlerFunc(rw, r) - - elapsed := float64(time.Since(now)) / float64(time.Microsecond) - - method := sanitizeMethod(r.Method) - code := sanitizeCode(delegate.status) - regReqCnt.WithLabelValues(method, code).Inc() - regReqDur.Observe(elapsed) - regResSz.Observe(float64(delegate.written)) - regReqSz.Observe(float64(<-out)) - }) -} - -func computeApproximateRequestSize(r *http.Request, out chan int, s int) { - s += len(r.Method) - s += len(r.Proto) - for name, values := range r.Header { - s += len(name) - for _, value := range values { - s += len(value) - } - } - s += len(r.Host) - - // N.B. r.Form and r.MultipartForm are assumed to be included in r.URL. - - if r.ContentLength != -1 { - s += int(r.ContentLength) - } - out <- s -} - -type responseWriterDelegator struct { - http.ResponseWriter - - handler, method string - status int - written int64 - wroteHeader bool -} - -func (r *responseWriterDelegator) WriteHeader(code int) { - r.status = code - r.wroteHeader = true - r.ResponseWriter.WriteHeader(code) -} - -func (r *responseWriterDelegator) Write(b []byte) (int, error) { - if !r.wroteHeader { - r.WriteHeader(http.StatusOK) - } - n, err := r.ResponseWriter.Write(b) - r.written += int64(n) - return n, err -} - -type fancyResponseWriterDelegator struct { - *responseWriterDelegator -} - -func (f *fancyResponseWriterDelegator) CloseNotify() <-chan bool { - return f.ResponseWriter.(http.CloseNotifier).CloseNotify() -} - -func (f *fancyResponseWriterDelegator) Flush() { - f.ResponseWriter.(http.Flusher).Flush() -} - -func (f *fancyResponseWriterDelegator) Hijack() (net.Conn, *bufio.ReadWriter, error) { - return f.ResponseWriter.(http.Hijacker).Hijack() -} - -func (f *fancyResponseWriterDelegator) ReadFrom(r io.Reader) (int64, error) { - if !f.wroteHeader { - f.WriteHeader(http.StatusOK) - } - n, err := f.ResponseWriter.(io.ReaderFrom).ReadFrom(r) - f.written += n - return n, err -} - -func sanitizeMethod(m string) string { - switch m { - case "GET", "get": - return "get" - case "PUT", "put": - return "put" - case "HEAD", "head": - return "head" - case "POST", "post": - return "post" - case "DELETE", "delete": - return "delete" - case "CONNECT", "connect": - return "connect" - case "OPTIONS", "options": - return "options" - case "NOTIFY", "notify": - return "notify" - default: - return strings.ToLower(m) - } -} - -func sanitizeCode(s int) string { - switch s { - case 100: - return "100" - case 101: - return "101" - - case 200: - return "200" - case 201: - return "201" - case 202: - return "202" - case 203: - return "203" - case 204: - return "204" - case 205: - return "205" - case 206: - return "206" - - case 300: - return "300" - case 301: - return "301" - case 302: - return "302" - case 304: - return "304" - case 305: - return "305" - case 307: - return "307" - - case 400: - return "400" - case 401: - return "401" - case 402: - return "402" - case 403: - return "403" - case 404: - return "404" - case 405: - return "405" - case 406: - return "406" - case 407: - return "407" - case 408: - return "408" - case 409: - return "409" - case 410: - return "410" - case 411: - return "411" - case 412: - return "412" - case 413: - return "413" - case 414: - return "414" - case 415: - return "415" - case 416: - return "416" - case 417: - return "417" - case 418: - return "418" - - case 500: - return "500" - case 501: - return "501" - case 502: - return "502" - case 503: - return "503" - case 504: - return "504" - case 505: - return "505" - - case 428: - return "428" - case 429: - return "429" - case 431: - return "431" - case 511: - return "511" - - default: - return strconv.Itoa(s) - } -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/metric.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/metric.go deleted file mode 100644 index 86fd81c1..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/metric.go +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package prometheus - -import ( - "strings" - - dto "github.com/prometheus/client_model/go" -) - -const separatorByte byte = 255 - -// A Metric models a single sample value with its meta data being exported to -// Prometheus. Implementers of Metric in this package inclued Gauge, Counter, -// Untyped, and Summary. Users can implement their own Metric types, but that -// should be rarely needed. See the example for SelfCollector, which is also an -// example for a user-implemented Metric. -type Metric interface { - // Desc returns the descriptor for the Metric. This method idempotently - // returns the same descriptor throughout the lifetime of the - // Metric. The returned descriptor is immutable by contract. A Metric - // unable to describe itself must return an invalid descriptor (created - // with NewInvalidDesc). - Desc() *Desc - // Write encodes the Metric into a "Metric" Protocol Buffer data - // transmission object. - // - // Implementers of custom Metric types must observe concurrency safety - // as reads of this metric may occur at any time, and any blocking - // occurs at the expense of total performance of rendering all - // registered metrics. Ideally Metric implementations should support - // concurrent readers. - // - // The Prometheus client library attempts to minimize memory allocations - // and will provide a pre-existing reset dto.Metric pointer. Prometheus - // may recycle the dto.Metric proto message, so Metric implementations - // should just populate the provided dto.Metric and then should not keep - // any reference to it. - // - // While populating dto.Metric, labels must be sorted lexicographically. - // (Implementers may find LabelPairSorter useful for that.) - Write(*dto.Metric) error -} - -// Opts bundles the options for creating most Metric types. Each metric -// implementation XXX has its own XXXOpts type, but in most cases, it is just be -// an alias of this type (which might change when the requirement arises.) -// -// It is mandatory to set Name and Help to a non-empty string. All other fields -// are optional and can safely be left at their zero value. -type Opts struct { - // Namespace, Subsystem, and Name are components of the fully-qualified - // name of the Metric (created by joining these components with - // "_"). Only Name is mandatory, the others merely help structuring the - // name. Note that the fully-qualified name of the metric must be a - // valid Prometheus metric name. - Namespace string - Subsystem string - Name string - - // Help provides information about this metric. Mandatory! - // - // Metrics with the same fully-qualified name must have the same Help - // string. - Help string - - // ConstLabels are used to attach fixed labels to this metric. Metrics - // with the same fully-qualified name must have the same label names in - // their ConstLabels. - // - // Note that in most cases, labels have a value that varies during the - // lifetime of a process. Those labels are usually managed with a metric - // vector collector (like CounterVec, GaugeVec, UntypedVec). ConstLabels - // serve only special purposes. One is for the special case where the - // value of a label does not change during the lifetime of a process, - // e.g. if the revision of the running binary is put into a - // label. Another, more advanced purpose is if more than one Collector - // needs to collect Metrics with the same fully-qualified name. In that - // case, those Metrics must differ in the values of their - // ConstLabels. See the Collector examples. - // - // If the value of a label never changes (not even between binaries), - // that label most likely should not be a label at all (but part of the - // metric name). - ConstLabels Labels -} - -// BuildFQName joins the given three name components by "_". Empty name -// components are ignored. If the name parameter itself is empty, an empty -// string is returned, no matter what. Metric implementations included in this -// library use this function internally to generate the fully-qualified metric -// name from the name component in their Opts. Users of the library will only -// need this function if they implement their own Metric or instantiate a Desc -// (with NewDesc) directly. -func BuildFQName(namespace, subsystem, name string) string { - if name == "" { - return "" - } - switch { - case namespace != "" && subsystem != "": - return strings.Join([]string{namespace, subsystem, name}, "_") - case namespace != "": - return strings.Join([]string{namespace, name}, "_") - case subsystem != "": - return strings.Join([]string{subsystem, name}, "_") - } - return name -} - -// LabelPairSorter implements sort.Interface. It is used to sort a slice of -// dto.LabelPair pointers. This is useful for implementing the Write method of -// custom metrics. -type LabelPairSorter []*dto.LabelPair - -func (s LabelPairSorter) Len() int { - return len(s) -} - -func (s LabelPairSorter) Swap(i, j int) { - s[i], s[j] = s[j], s[i] -} - -func (s LabelPairSorter) Less(i, j int) bool { - return s[i].GetName() < s[j].GetName() -} - -type hashSorter []uint64 - -func (s hashSorter) Len() int { - return len(s) -} - -func (s hashSorter) Swap(i, j int) { - s[i], s[j] = s[j], s[i] -} - -func (s hashSorter) Less(i, j int) bool { - return s[i] < s[j] -} - -type invalidMetric struct { - desc *Desc - err error -} - -// NewInvalidMetric returns a metric whose Write method always returns the -// provided error. It is useful if a Collector finds itself unable to collect -// a metric and wishes to report an error to the registry. -func NewInvalidMetric(desc *Desc, err error) Metric { - return &invalidMetric{desc, err} -} - -func (m *invalidMetric) Desc() *Desc { return m.desc } - -func (m *invalidMetric) Write(*dto.Metric) error { return m.err } diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/process_collector.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/process_collector.go deleted file mode 100644 index d8cf0eda..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/process_collector.go +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright 2015 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package prometheus - -import "github.com/prometheus/procfs" - -type processCollector struct { - pid int - collectFn func(chan<- Metric) - pidFn func() (int, error) - cpuTotal Counter - openFDs, maxFDs Gauge - vsize, rss Gauge - startTime Gauge -} - -// NewProcessCollector returns a collector which exports the current state of -// process metrics including cpu, memory and file descriptor usage as well as -// the process start time for the given process id under the given namespace. -func NewProcessCollector(pid int, namespace string) *processCollector { - return NewProcessCollectorPIDFn( - func() (int, error) { return pid, nil }, - namespace, - ) -} - -// NewProcessCollectorPIDFn returns a collector which exports the current state -// of process metrics including cpu, memory and file descriptor usage as well -// as the process start time under the given namespace. The given pidFn is -// called on each collect and is used to determine the process to export -// metrics for. -func NewProcessCollectorPIDFn( - pidFn func() (int, error), - namespace string, -) *processCollector { - c := processCollector{ - pidFn: pidFn, - collectFn: func(chan<- Metric) {}, - - cpuTotal: NewCounter(CounterOpts{ - Namespace: namespace, - Name: "process_cpu_seconds_total", - Help: "Total user and system CPU time spent in seconds.", - }), - openFDs: NewGauge(GaugeOpts{ - Namespace: namespace, - Name: "process_open_fds", - Help: "Number of open file descriptors.", - }), - maxFDs: NewGauge(GaugeOpts{ - Namespace: namespace, - Name: "process_max_fds", - Help: "Maximum number of open file descriptors.", - }), - vsize: NewGauge(GaugeOpts{ - Namespace: namespace, - Name: "process_virtual_memory_bytes", - Help: "Virtual memory size in bytes.", - }), - rss: NewGauge(GaugeOpts{ - Namespace: namespace, - Name: "process_resident_memory_bytes", - Help: "Resident memory size in bytes.", - }), - startTime: NewGauge(GaugeOpts{ - Namespace: namespace, - Name: "process_start_time_seconds", - Help: "Start time of the process since unix epoch in seconds.", - }), - } - - // Set up process metric collection if supported by the runtime. - if _, err := procfs.NewStat(); err == nil { - c.collectFn = c.processCollect - } - - return &c -} - -// Describe returns all descriptions of the collector. -func (c *processCollector) Describe(ch chan<- *Desc) { - ch <- c.cpuTotal.Desc() - ch <- c.openFDs.Desc() - ch <- c.maxFDs.Desc() - ch <- c.vsize.Desc() - ch <- c.rss.Desc() - ch <- c.startTime.Desc() -} - -// Collect returns the current state of all metrics of the collector. -func (c *processCollector) Collect(ch chan<- Metric) { - c.collectFn(ch) -} - -// TODO(ts): Bring back error reporting by reverting 7faf9e7 as soon as the -// client allows users to configure the error behavior. -func (c *processCollector) processCollect(ch chan<- Metric) { - pid, err := c.pidFn() - if err != nil { - return - } - - p, err := procfs.NewProc(pid) - if err != nil { - return - } - - if stat, err := p.NewStat(); err == nil { - c.cpuTotal.Set(stat.CPUTime()) - ch <- c.cpuTotal - c.vsize.Set(float64(stat.VirtualMemory())) - ch <- c.vsize - c.rss.Set(float64(stat.ResidentMemory())) - ch <- c.rss - - if startTime, err := stat.StartTime(); err == nil { - c.startTime.Set(startTime) - ch <- c.startTime - } - } - - if fds, err := p.FileDescriptorsLen(); err == nil { - c.openFDs.Set(float64(fds)) - ch <- c.openFDs - } - - if limits, err := p.NewLimits(); err == nil { - c.maxFDs.Set(float64(limits.OpenFiles)) - ch <- c.maxFDs - } -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/push.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/push.go deleted file mode 100644 index 1c33848a..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/push.go +++ /dev/null @@ -1,65 +0,0 @@ -// Copyright 2015 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Copyright (c) 2013, The Prometheus Authors -// All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found -// in the LICENSE file. - -package prometheus - -// Push triggers a metric collection by the default registry and pushes all -// collected metrics to the Pushgateway specified by addr. See the Pushgateway -// documentation for detailed implications of the job and instance -// parameter. instance can be left empty. You can use just host:port or ip:port -// as url, in which case 'http://' is added automatically. You can also include -// the schema in the URL. However, do not include the '/metrics/jobs/...' part. -// -// Note that all previously pushed metrics with the same job and instance will -// be replaced with the metrics pushed by this call. (It uses HTTP method 'PUT' -// to push to the Pushgateway.) -func Push(job, instance, url string) error { - return defRegistry.Push(job, instance, url, "PUT") -} - -// PushAdd works like Push, but only previously pushed metrics with the same -// name (and the same job and instance) will be replaced. (It uses HTTP method -// 'POST' to push to the Pushgateway.) -func PushAdd(job, instance, url string) error { - return defRegistry.Push(job, instance, url, "POST") -} - -// PushCollectors works like Push, but it does not collect from the default -// registry. Instead, it collects from the provided collectors. It is a -// convenient way to push only a few metrics. -func PushCollectors(job, instance, url string, collectors ...Collector) error { - return pushCollectors(job, instance, url, "PUT", collectors...) -} - -// PushAddCollectors works like PushAdd, but it does not collect from the -// default registry. Instead, it collects from the provided collectors. It is a -// convenient way to push only a few metrics. -func PushAddCollectors(job, instance, url string, collectors ...Collector) error { - return pushCollectors(job, instance, url, "POST", collectors...) -} - -func pushCollectors(job, instance, url, method string, collectors ...Collector) error { - r := newRegistry() - for _, collector := range collectors { - if _, err := r.Register(collector); err != nil { - return err - } - } - return r.Push(job, instance, url, method) -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/registry.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/registry.go deleted file mode 100644 index 5970aaee..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/registry.go +++ /dev/null @@ -1,726 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Copyright (c) 2013, The Prometheus Authors -// All rights reserved. -// -// Use of this source code is governed by a BSD-style license that can be found -// in the LICENSE file. - -package prometheus - -import ( - "bytes" - "compress/gzip" - "errors" - "fmt" - "hash/fnv" - "io" - "net/http" - "net/url" - "os" - "sort" - "strings" - "sync" - - "github.com/golang/protobuf/proto" - "github.com/prometheus/common/expfmt" - - dto "github.com/prometheus/client_model/go" -) - -var ( - defRegistry = newDefaultRegistry() - errAlreadyReg = errors.New("duplicate metrics collector registration attempted") -) - -// Constants relevant to the HTTP interface. -const ( - // APIVersion is the version of the format of the exported data. This - // will match this library's version, which subscribes to the Semantic - // Versioning scheme. - APIVersion = "0.0.4" - - // DelimitedTelemetryContentType is the content type set on telemetry - // data responses in delimited protobuf format. - DelimitedTelemetryContentType = `application/vnd.google.protobuf; proto=io.prometheus.client.MetricFamily; encoding=delimited` - // TextTelemetryContentType is the content type set on telemetry data - // responses in text format. - TextTelemetryContentType = `text/plain; version=` + APIVersion - // ProtoTextTelemetryContentType is the content type set on telemetry - // data responses in protobuf text format. (Only used for debugging.) - ProtoTextTelemetryContentType = `application/vnd.google.protobuf; proto=io.prometheus.client.MetricFamily; encoding=text` - // ProtoCompactTextTelemetryContentType is the content type set on - // telemetry data responses in protobuf compact text format. (Only used - // for debugging.) - ProtoCompactTextTelemetryContentType = `application/vnd.google.protobuf; proto=io.prometheus.client.MetricFamily; encoding=compact-text` - - // Constants for object pools. - numBufs = 4 - numMetricFamilies = 1000 - numMetrics = 10000 - - // Capacity for the channel to collect metrics and descriptors. - capMetricChan = 1000 - capDescChan = 10 - - contentTypeHeader = "Content-Type" - contentLengthHeader = "Content-Length" - contentEncodingHeader = "Content-Encoding" - - acceptEncodingHeader = "Accept-Encoding" - acceptHeader = "Accept" -) - -// Handler returns the HTTP handler for the global Prometheus registry. It is -// already instrumented with InstrumentHandler (using "prometheus" as handler -// name). Usually the handler is used to handle the "/metrics" endpoint. -func Handler() http.Handler { - return InstrumentHandler("prometheus", defRegistry) -} - -// UninstrumentedHandler works in the same way as Handler, but the returned HTTP -// handler is not instrumented. This is useful if no instrumentation is desired -// (for whatever reason) or if the instrumentation has to happen with a -// different handler name (or with a different instrumentation approach -// altogether). See the InstrumentHandler example. -func UninstrumentedHandler() http.Handler { - return defRegistry -} - -// Register registers a new Collector to be included in metrics collection. It -// returns an error if the descriptors provided by the Collector are invalid or -// if they - in combination with descriptors of already registered Collectors - -// do not fulfill the consistency and uniqueness criteria described in the Desc -// documentation. -// -// Do not register the same Collector multiple times concurrently. (Registering -// the same Collector twice would result in an error anyway, but on top of that, -// it is not safe to do so concurrently.) -func Register(m Collector) error { - _, err := defRegistry.Register(m) - return err -} - -// MustRegister works like Register but panics where Register would have -// returned an error. -func MustRegister(m Collector) { - err := Register(m) - if err != nil { - panic(err) - } -} - -// RegisterOrGet works like Register but does not return an error if a Collector -// is registered that equals a previously registered Collector. (Two Collectors -// are considered equal if their Describe method yields the same set of -// descriptors.) Instead, the previously registered Collector is returned (which -// is helpful if the new and previously registered Collectors are equal but not -// identical, i.e. not pointers to the same object). -// -// As for Register, it is still not safe to call RegisterOrGet with the same -// Collector multiple times concurrently. -func RegisterOrGet(m Collector) (Collector, error) { - return defRegistry.RegisterOrGet(m) -} - -// MustRegisterOrGet works like Register but panics where RegisterOrGet would -// have returned an error. -func MustRegisterOrGet(m Collector) Collector { - existing, err := RegisterOrGet(m) - if err != nil { - panic(err) - } - return existing -} - -// Unregister unregisters the Collector that equals the Collector passed in as -// an argument. (Two Collectors are considered equal if their Describe method -// yields the same set of descriptors.) The function returns whether a Collector -// was unregistered. -func Unregister(c Collector) bool { - return defRegistry.Unregister(c) -} - -// SetMetricFamilyInjectionHook sets a function that is called whenever metrics -// are collected. The hook function must be set before metrics collection begins -// (i.e. call SetMetricFamilyInjectionHook before setting the HTTP handler.) The -// MetricFamily protobufs returned by the hook function are merged with the -// metrics collected in the usual way. -// -// This is a way to directly inject MetricFamily protobufs managed and owned by -// the caller. The caller has full responsibility. As no registration of the -// injected metrics has happened, there is no descriptor to check against, and -// there are no registration-time checks. If collect-time checks are disabled -// (see function EnableCollectChecks), no sanity checks are performed on the -// returned protobufs at all. If collect-checks are enabled, type and uniqueness -// checks are performed, but no further consistency checks (which would require -// knowledge of a metric descriptor). -// -// Sorting concerns: The caller is responsible for sorting the label pairs in -// each metric. However, the order of metrics will be sorted by the registry as -// it is required anyway after merging with the metric families collected -// conventionally. -// -// The function must be callable at any time and concurrently. -func SetMetricFamilyInjectionHook(hook func() []*dto.MetricFamily) { - defRegistry.metricFamilyInjectionHook = hook -} - -// PanicOnCollectError sets the behavior whether a panic is caused upon an error -// while metrics are collected and served to the HTTP endpoint. By default, an -// internal server error (status code 500) is served with an error message. -func PanicOnCollectError(b bool) { - defRegistry.panicOnCollectError = b -} - -// EnableCollectChecks enables (or disables) additional consistency checks -// during metrics collection. These additional checks are not enabled by default -// because they inflict a performance penalty and the errors they check for can -// only happen if the used Metric and Collector types have internal programming -// errors. It can be helpful to enable these checks while working with custom -// Collectors or Metrics whose correctness is not well established yet. -func EnableCollectChecks(b bool) { - defRegistry.collectChecksEnabled = b -} - -// encoder is a function that writes a dto.MetricFamily to an io.Writer in a -// certain encoding. It returns the number of bytes written and any error -// encountered. Note that pbutil.WriteDelimited and pbutil.MetricFamilyToText -// are encoders. -type encoder func(io.Writer, *dto.MetricFamily) (int, error) - -type registry struct { - mtx sync.RWMutex - collectorsByID map[uint64]Collector // ID is a hash of the descIDs. - descIDs map[uint64]struct{} - dimHashesByName map[string]uint64 - bufPool chan *bytes.Buffer - metricFamilyPool chan *dto.MetricFamily - metricPool chan *dto.Metric - metricFamilyInjectionHook func() []*dto.MetricFamily - - panicOnCollectError, collectChecksEnabled bool -} - -func (r *registry) Register(c Collector) (Collector, error) { - descChan := make(chan *Desc, capDescChan) - go func() { - c.Describe(descChan) - close(descChan) - }() - - newDescIDs := map[uint64]struct{}{} - newDimHashesByName := map[string]uint64{} - var collectorID uint64 // Just a sum of all desc IDs. - var duplicateDescErr error - - r.mtx.Lock() - defer r.mtx.Unlock() - // Coduct various tests... - for desc := range descChan { - - // Is the descriptor valid at all? - if desc.err != nil { - return c, fmt.Errorf("descriptor %s is invalid: %s", desc, desc.err) - } - - // Is the descID unique? - // (In other words: Is the fqName + constLabel combination unique?) - if _, exists := r.descIDs[desc.id]; exists { - duplicateDescErr = fmt.Errorf("descriptor %s already exists with the same fully-qualified name and const label values", desc) - } - // If it is not a duplicate desc in this collector, add it to - // the collectorID. (We allow duplicate descs within the same - // collector, but their existence must be a no-op.) - if _, exists := newDescIDs[desc.id]; !exists { - newDescIDs[desc.id] = struct{}{} - collectorID += desc.id - } - - // Are all the label names and the help string consistent with - // previous descriptors of the same name? - // First check existing descriptors... - if dimHash, exists := r.dimHashesByName[desc.fqName]; exists { - if dimHash != desc.dimHash { - return nil, fmt.Errorf("a previously registered descriptor with the same fully-qualified name as %s has different label names or a different help string", desc) - } - } else { - // ...then check the new descriptors already seen. - if dimHash, exists := newDimHashesByName[desc.fqName]; exists { - if dimHash != desc.dimHash { - return nil, fmt.Errorf("descriptors reported by collector have inconsistent label names or help strings for the same fully-qualified name, offender is %s", desc) - } - } else { - newDimHashesByName[desc.fqName] = desc.dimHash - } - } - } - // Did anything happen at all? - if len(newDescIDs) == 0 { - return nil, errors.New("collector has no descriptors") - } - if existing, exists := r.collectorsByID[collectorID]; exists { - return existing, errAlreadyReg - } - // If the collectorID is new, but at least one of the descs existed - // before, we are in trouble. - if duplicateDescErr != nil { - return nil, duplicateDescErr - } - - // Only after all tests have passed, actually register. - r.collectorsByID[collectorID] = c - for hash := range newDescIDs { - r.descIDs[hash] = struct{}{} - } - for name, dimHash := range newDimHashesByName { - r.dimHashesByName[name] = dimHash - } - return c, nil -} - -func (r *registry) RegisterOrGet(m Collector) (Collector, error) { - existing, err := r.Register(m) - if err != nil && err != errAlreadyReg { - return nil, err - } - return existing, nil -} - -func (r *registry) Unregister(c Collector) bool { - descChan := make(chan *Desc, capDescChan) - go func() { - c.Describe(descChan) - close(descChan) - }() - - descIDs := map[uint64]struct{}{} - var collectorID uint64 // Just a sum of the desc IDs. - for desc := range descChan { - if _, exists := descIDs[desc.id]; !exists { - collectorID += desc.id - descIDs[desc.id] = struct{}{} - } - } - - r.mtx.RLock() - if _, exists := r.collectorsByID[collectorID]; !exists { - r.mtx.RUnlock() - return false - } - r.mtx.RUnlock() - - r.mtx.Lock() - defer r.mtx.Unlock() - - delete(r.collectorsByID, collectorID) - for id := range descIDs { - delete(r.descIDs, id) - } - // dimHashesByName is left untouched as those must be consistent - // throughout the lifetime of a program. - return true -} - -func (r *registry) Push(job, instance, pushURL, method string) error { - if !strings.Contains(pushURL, "://") { - pushURL = "http://" + pushURL - } - pushURL = fmt.Sprintf("%s/metrics/jobs/%s", pushURL, url.QueryEscape(job)) - if instance != "" { - pushURL += "/instances/" + url.QueryEscape(instance) - } - buf := r.getBuf() - defer r.giveBuf(buf) - if err := r.writePB(expfmt.NewEncoder(buf, expfmt.FmtProtoDelim)); err != nil { - if r.panicOnCollectError { - panic(err) - } - return err - } - req, err := http.NewRequest(method, pushURL, buf) - if err != nil { - return err - } - req.Header.Set(contentTypeHeader, DelimitedTelemetryContentType) - resp, err := http.DefaultClient.Do(req) - if err != nil { - return err - } - defer resp.Body.Close() - if resp.StatusCode != 202 { - return fmt.Errorf("unexpected status code %d while pushing to %s", resp.StatusCode, pushURL) - } - return nil -} - -func (r *registry) ServeHTTP(w http.ResponseWriter, req *http.Request) { - contentType := expfmt.Negotiate(req.Header) - buf := r.getBuf() - defer r.giveBuf(buf) - writer, encoding := decorateWriter(req, buf) - if err := r.writePB(expfmt.NewEncoder(writer, contentType)); err != nil { - if r.panicOnCollectError { - panic(err) - } - http.Error(w, "An error has occurred:\n\n"+err.Error(), http.StatusInternalServerError) - return - } - if closer, ok := writer.(io.Closer); ok { - closer.Close() - } - header := w.Header() - header.Set(contentTypeHeader, string(contentType)) - header.Set(contentLengthHeader, fmt.Sprint(buf.Len())) - if encoding != "" { - header.Set(contentEncodingHeader, encoding) - } - w.Write(buf.Bytes()) -} - -func (r *registry) writePB(encoder expfmt.Encoder) error { - var metricHashes map[uint64]struct{} - if r.collectChecksEnabled { - metricHashes = make(map[uint64]struct{}) - } - metricChan := make(chan Metric, capMetricChan) - wg := sync.WaitGroup{} - - r.mtx.RLock() - metricFamiliesByName := make(map[string]*dto.MetricFamily, len(r.dimHashesByName)) - - // Scatter. - // (Collectors could be complex and slow, so we call them all at once.) - wg.Add(len(r.collectorsByID)) - go func() { - wg.Wait() - close(metricChan) - }() - for _, collector := range r.collectorsByID { - go func(collector Collector) { - defer wg.Done() - collector.Collect(metricChan) - }(collector) - } - r.mtx.RUnlock() - - // Drain metricChan in case of premature return. - defer func() { - for _ = range metricChan { - } - }() - - // Gather. - for metric := range metricChan { - // This could be done concurrently, too, but it required locking - // of metricFamiliesByName (and of metricHashes if checks are - // enabled). Most likely not worth it. - desc := metric.Desc() - metricFamily, ok := metricFamiliesByName[desc.fqName] - if !ok { - metricFamily = r.getMetricFamily() - defer r.giveMetricFamily(metricFamily) - metricFamily.Name = proto.String(desc.fqName) - metricFamily.Help = proto.String(desc.help) - metricFamiliesByName[desc.fqName] = metricFamily - } - dtoMetric := r.getMetric() - defer r.giveMetric(dtoMetric) - if err := metric.Write(dtoMetric); err != nil { - // TODO: Consider different means of error reporting so - // that a single erroneous metric could be skipped - // instead of blowing up the whole collection. - return fmt.Errorf("error collecting metric %v: %s", desc, err) - } - switch { - case metricFamily.Type != nil: - // Type already set. We are good. - case dtoMetric.Gauge != nil: - metricFamily.Type = dto.MetricType_GAUGE.Enum() - case dtoMetric.Counter != nil: - metricFamily.Type = dto.MetricType_COUNTER.Enum() - case dtoMetric.Summary != nil: - metricFamily.Type = dto.MetricType_SUMMARY.Enum() - case dtoMetric.Untyped != nil: - metricFamily.Type = dto.MetricType_UNTYPED.Enum() - case dtoMetric.Histogram != nil: - metricFamily.Type = dto.MetricType_HISTOGRAM.Enum() - default: - return fmt.Errorf("empty metric collected: %s", dtoMetric) - } - if r.collectChecksEnabled { - if err := r.checkConsistency(metricFamily, dtoMetric, desc, metricHashes); err != nil { - return err - } - } - metricFamily.Metric = append(metricFamily.Metric, dtoMetric) - } - - if r.metricFamilyInjectionHook != nil { - for _, mf := range r.metricFamilyInjectionHook() { - existingMF, exists := metricFamiliesByName[mf.GetName()] - if !exists { - metricFamiliesByName[mf.GetName()] = mf - if r.collectChecksEnabled { - for _, m := range mf.Metric { - if err := r.checkConsistency(mf, m, nil, metricHashes); err != nil { - return err - } - } - } - continue - } - for _, m := range mf.Metric { - if r.collectChecksEnabled { - if err := r.checkConsistency(existingMF, m, nil, metricHashes); err != nil { - return err - } - } - existingMF.Metric = append(existingMF.Metric, m) - } - } - } - - // Now that MetricFamilies are all set, sort their Metrics - // lexicographically by their label values. - for _, mf := range metricFamiliesByName { - sort.Sort(metricSorter(mf.Metric)) - } - - // Write out MetricFamilies sorted by their name. - names := make([]string, 0, len(metricFamiliesByName)) - for name := range metricFamiliesByName { - names = append(names, name) - } - sort.Strings(names) - - for _, name := range names { - if err := encoder.Encode(metricFamiliesByName[name]); err != nil { - return err - } - } - return nil -} - -func (r *registry) checkConsistency(metricFamily *dto.MetricFamily, dtoMetric *dto.Metric, desc *Desc, metricHashes map[uint64]struct{}) error { - - // Type consistency with metric family. - if metricFamily.GetType() == dto.MetricType_GAUGE && dtoMetric.Gauge == nil || - metricFamily.GetType() == dto.MetricType_COUNTER && dtoMetric.Counter == nil || - metricFamily.GetType() == dto.MetricType_SUMMARY && dtoMetric.Summary == nil || - metricFamily.GetType() == dto.MetricType_HISTOGRAM && dtoMetric.Histogram == nil || - metricFamily.GetType() == dto.MetricType_UNTYPED && dtoMetric.Untyped == nil { - return fmt.Errorf( - "collected metric %s %s is not a %s", - metricFamily.GetName(), dtoMetric, metricFamily.GetType(), - ) - } - - // Is the metric unique (i.e. no other metric with the same name and the same label values)? - h := fnv.New64a() - var buf bytes.Buffer - buf.WriteString(metricFamily.GetName()) - buf.WriteByte(separatorByte) - h.Write(buf.Bytes()) - // Make sure label pairs are sorted. We depend on it for the consistency - // check. Label pairs must be sorted by contract. But the point of this - // method is to check for contract violations. So we better do the sort - // now. - sort.Sort(LabelPairSorter(dtoMetric.Label)) - for _, lp := range dtoMetric.Label { - buf.Reset() - buf.WriteString(lp.GetValue()) - buf.WriteByte(separatorByte) - h.Write(buf.Bytes()) - } - metricHash := h.Sum64() - if _, exists := metricHashes[metricHash]; exists { - return fmt.Errorf( - "collected metric %s %s was collected before with the same name and label values", - metricFamily.GetName(), dtoMetric, - ) - } - metricHashes[metricHash] = struct{}{} - - if desc == nil { - return nil // Nothing left to check if we have no desc. - } - - // Desc consistency with metric family. - if metricFamily.GetName() != desc.fqName { - return fmt.Errorf( - "collected metric %s %s has name %q but should have %q", - metricFamily.GetName(), dtoMetric, metricFamily.GetName(), desc.fqName, - ) - } - if metricFamily.GetHelp() != desc.help { - return fmt.Errorf( - "collected metric %s %s has help %q but should have %q", - metricFamily.GetName(), dtoMetric, metricFamily.GetHelp(), desc.help, - ) - } - - // Is the desc consistent with the content of the metric? - lpsFromDesc := make([]*dto.LabelPair, 0, len(dtoMetric.Label)) - lpsFromDesc = append(lpsFromDesc, desc.constLabelPairs...) - for _, l := range desc.variableLabels { - lpsFromDesc = append(lpsFromDesc, &dto.LabelPair{ - Name: proto.String(l), - }) - } - if len(lpsFromDesc) != len(dtoMetric.Label) { - return fmt.Errorf( - "labels in collected metric %s %s are inconsistent with descriptor %s", - metricFamily.GetName(), dtoMetric, desc, - ) - } - sort.Sort(LabelPairSorter(lpsFromDesc)) - for i, lpFromDesc := range lpsFromDesc { - lpFromMetric := dtoMetric.Label[i] - if lpFromDesc.GetName() != lpFromMetric.GetName() || - lpFromDesc.Value != nil && lpFromDesc.GetValue() != lpFromMetric.GetValue() { - return fmt.Errorf( - "labels in collected metric %s %s are inconsistent with descriptor %s", - metricFamily.GetName(), dtoMetric, desc, - ) - } - } - - r.mtx.RLock() // Remaining checks need the read lock. - defer r.mtx.RUnlock() - - // Is the desc registered? - if _, exist := r.descIDs[desc.id]; !exist { - return fmt.Errorf( - "collected metric %s %s with unregistered descriptor %s", - metricFamily.GetName(), dtoMetric, desc, - ) - } - - return nil -} - -func (r *registry) getBuf() *bytes.Buffer { - select { - case buf := <-r.bufPool: - return buf - default: - return &bytes.Buffer{} - } -} - -func (r *registry) giveBuf(buf *bytes.Buffer) { - buf.Reset() - select { - case r.bufPool <- buf: - default: - } -} - -func (r *registry) getMetricFamily() *dto.MetricFamily { - select { - case mf := <-r.metricFamilyPool: - return mf - default: - return &dto.MetricFamily{} - } -} - -func (r *registry) giveMetricFamily(mf *dto.MetricFamily) { - mf.Reset() - select { - case r.metricFamilyPool <- mf: - default: - } -} - -func (r *registry) getMetric() *dto.Metric { - select { - case m := <-r.metricPool: - return m - default: - return &dto.Metric{} - } -} - -func (r *registry) giveMetric(m *dto.Metric) { - m.Reset() - select { - case r.metricPool <- m: - default: - } -} - -func newRegistry() *registry { - return ®istry{ - collectorsByID: map[uint64]Collector{}, - descIDs: map[uint64]struct{}{}, - dimHashesByName: map[string]uint64{}, - bufPool: make(chan *bytes.Buffer, numBufs), - metricFamilyPool: make(chan *dto.MetricFamily, numMetricFamilies), - metricPool: make(chan *dto.Metric, numMetrics), - } -} - -func newDefaultRegistry() *registry { - r := newRegistry() - r.Register(NewProcessCollector(os.Getpid(), "")) - r.Register(NewGoCollector()) - return r -} - -// decorateWriter wraps a writer to handle gzip compression if requested. It -// returns the decorated writer and the appropriate "Content-Encoding" header -// (which is empty if no compression is enabled). -func decorateWriter(request *http.Request, writer io.Writer) (io.Writer, string) { - header := request.Header.Get(acceptEncodingHeader) - parts := strings.Split(header, ",") - for _, part := range parts { - part := strings.TrimSpace(part) - if part == "gzip" || strings.HasPrefix(part, "gzip;") { - return gzip.NewWriter(writer), "gzip" - } - } - return writer, "" -} - -type metricSorter []*dto.Metric - -func (s metricSorter) Len() int { - return len(s) -} - -func (s metricSorter) Swap(i, j int) { - s[i], s[j] = s[j], s[i] -} - -func (s metricSorter) Less(i, j int) bool { - if len(s[i].Label) != len(s[j].Label) { - // This should not happen. The metrics are - // inconsistent. However, we have to deal with the fact, as - // people might use custom collectors or metric family injection - // to create inconsistent metrics. So let's simply compare the - // number of labels in this case. That will still yield - // reproducible sorting. - return len(s[i].Label) < len(s[j].Label) - } - for n, lp := range s[i].Label { - vi := lp.GetValue() - vj := s[j].Label[n].GetValue() - if vi != vj { - return vi < vj - } - } - return true -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/summary.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/summary.go deleted file mode 100644 index fe81e004..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/summary.go +++ /dev/null @@ -1,540 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package prometheus - -import ( - "fmt" - "hash/fnv" - "math" - "sort" - "sync" - "time" - - "github.com/beorn7/perks/quantile" - "github.com/golang/protobuf/proto" - - dto "github.com/prometheus/client_model/go" -) - -// quantileLabel is used for the label that defines the quantile in a -// summary. -const quantileLabel = "quantile" - -// A Summary captures individual observations from an event or sample stream and -// summarizes them in a manner similar to traditional summary statistics: 1. sum -// of observations, 2. observation count, 3. rank estimations. -// -// A typical use-case is the observation of request latencies. By default, a -// Summary provides the median, the 90th and the 99th percentile of the latency -// as rank estimations. -// -// Note that the rank estimations cannot be aggregated in a meaningful way with -// the Prometheus query language (i.e. you cannot average or add them). If you -// need aggregatable quantiles (e.g. you want the 99th percentile latency of all -// queries served across all instances of a service), consider the Histogram -// metric type. See the Prometheus documentation for more details. -// -// To create Summary instances, use NewSummary. -type Summary interface { - Metric - Collector - - // Observe adds a single observation to the summary. - Observe(float64) -} - -var ( - // DefObjectives are the default Summary quantile values. - DefObjectives = map[float64]float64{0.5: 0.05, 0.9: 0.01, 0.99: 0.001} - - errQuantileLabelNotAllowed = fmt.Errorf( - "%q is not allowed as label name in summaries", quantileLabel, - ) -) - -// Default values for SummaryOpts. -const ( - // DefMaxAge is the default duration for which observations stay - // relevant. - DefMaxAge time.Duration = 10 * time.Minute - // DefAgeBuckets is the default number of buckets used to calculate the - // age of observations. - DefAgeBuckets = 5 - // DefBufCap is the standard buffer size for collecting Summary observations. - DefBufCap = 500 -) - -// SummaryOpts bundles the options for creating a Summary metric. It is -// mandatory to set Name and Help to a non-empty string. All other fields are -// optional and can safely be left at their zero value. -type SummaryOpts struct { - // Namespace, Subsystem, and Name are components of the fully-qualified - // name of the Summary (created by joining these components with - // "_"). Only Name is mandatory, the others merely help structuring the - // name. Note that the fully-qualified name of the Summary must be a - // valid Prometheus metric name. - Namespace string - Subsystem string - Name string - - // Help provides information about this Summary. Mandatory! - // - // Metrics with the same fully-qualified name must have the same Help - // string. - Help string - - // ConstLabels are used to attach fixed labels to this - // Summary. Summaries with the same fully-qualified name must have the - // same label names in their ConstLabels. - // - // Note that in most cases, labels have a value that varies during the - // lifetime of a process. Those labels are usually managed with a - // SummaryVec. ConstLabels serve only special purposes. One is for the - // special case where the value of a label does not change during the - // lifetime of a process, e.g. if the revision of the running binary is - // put into a label. Another, more advanced purpose is if more than one - // Collector needs to collect Summaries with the same fully-qualified - // name. In that case, those Summaries must differ in the values of - // their ConstLabels. See the Collector examples. - // - // If the value of a label never changes (not even between binaries), - // that label most likely should not be a label at all (but part of the - // metric name). - ConstLabels Labels - - // Objectives defines the quantile rank estimates with their respective - // absolute error. If Objectives[q] = e, then the value reported - // for q will be the φ-quantile value for some φ between q-e and q+e. - // The default value is DefObjectives. - Objectives map[float64]float64 - - // MaxAge defines the duration for which an observation stays relevant - // for the summary. Must be positive. The default value is DefMaxAge. - MaxAge time.Duration - - // AgeBuckets is the number of buckets used to exclude observations that - // are older than MaxAge from the summary. A higher number has a - // resource penalty, so only increase it if the higher resolution is - // really required. For very high observation rates, you might want to - // reduce the number of age buckets. With only one age bucket, you will - // effectively see a complete reset of the summary each time MaxAge has - // passed. The default value is DefAgeBuckets. - AgeBuckets uint32 - - // BufCap defines the default sample stream buffer size. The default - // value of DefBufCap should suffice for most uses. If there is a need - // to increase the value, a multiple of 500 is recommended (because that - // is the internal buffer size of the underlying package - // "github.com/bmizerany/perks/quantile"). - BufCap uint32 -} - -// TODO: Great fuck-up with the sliding-window decay algorithm... The Merge -// method of perk/quantile is actually not working as advertised - and it might -// be unfixable, as the underlying algorithm is apparently not capable of -// merging summaries in the first place. To avoid using Merge, we are currently -// adding observations to _each_ age bucket, i.e. the effort to add a sample is -// essentially multiplied by the number of age buckets. When rotating age -// buckets, we empty the previous head stream. On scrape time, we simply take -// the quantiles from the head stream (no merging required). Result: More effort -// on observation time, less effort on scrape time, which is exactly the -// opposite of what we try to accomplish, but at least the results are correct. -// -// The quite elegant previous contraption to merge the age buckets efficiently -// on scrape time (see code up commit 6b9530d72ea715f0ba612c0120e6e09fbf1d49d0) -// can't be used anymore. - -// NewSummary creates a new Summary based on the provided SummaryOpts. -func NewSummary(opts SummaryOpts) Summary { - return newSummary( - NewDesc( - BuildFQName(opts.Namespace, opts.Subsystem, opts.Name), - opts.Help, - nil, - opts.ConstLabels, - ), - opts, - ) -} - -func newSummary(desc *Desc, opts SummaryOpts, labelValues ...string) Summary { - if len(desc.variableLabels) != len(labelValues) { - panic(errInconsistentCardinality) - } - - for _, n := range desc.variableLabels { - if n == quantileLabel { - panic(errQuantileLabelNotAllowed) - } - } - for _, lp := range desc.constLabelPairs { - if lp.GetName() == quantileLabel { - panic(errQuantileLabelNotAllowed) - } - } - - if len(opts.Objectives) == 0 { - opts.Objectives = DefObjectives - } - - if opts.MaxAge < 0 { - panic(fmt.Errorf("illegal max age MaxAge=%v", opts.MaxAge)) - } - if opts.MaxAge == 0 { - opts.MaxAge = DefMaxAge - } - - if opts.AgeBuckets == 0 { - opts.AgeBuckets = DefAgeBuckets - } - - if opts.BufCap == 0 { - opts.BufCap = DefBufCap - } - - s := &summary{ - desc: desc, - - objectives: opts.Objectives, - sortedObjectives: make([]float64, 0, len(opts.Objectives)), - - labelPairs: makeLabelPairs(desc, labelValues), - - hotBuf: make([]float64, 0, opts.BufCap), - coldBuf: make([]float64, 0, opts.BufCap), - streamDuration: opts.MaxAge / time.Duration(opts.AgeBuckets), - } - s.headStreamExpTime = time.Now().Add(s.streamDuration) - s.hotBufExpTime = s.headStreamExpTime - - for i := uint32(0); i < opts.AgeBuckets; i++ { - s.streams = append(s.streams, s.newStream()) - } - s.headStream = s.streams[0] - - for qu := range s.objectives { - s.sortedObjectives = append(s.sortedObjectives, qu) - } - sort.Float64s(s.sortedObjectives) - - s.Init(s) // Init self-collection. - return s -} - -type summary struct { - SelfCollector - - bufMtx sync.Mutex // Protects hotBuf and hotBufExpTime. - mtx sync.Mutex // Protects every other moving part. - // Lock bufMtx before mtx if both are needed. - - desc *Desc - - objectives map[float64]float64 - sortedObjectives []float64 - - labelPairs []*dto.LabelPair - - sum float64 - cnt uint64 - - hotBuf, coldBuf []float64 - - streams []*quantile.Stream - streamDuration time.Duration - headStream *quantile.Stream - headStreamIdx int - headStreamExpTime, hotBufExpTime time.Time -} - -func (s *summary) Desc() *Desc { - return s.desc -} - -func (s *summary) Observe(v float64) { - s.bufMtx.Lock() - defer s.bufMtx.Unlock() - - now := time.Now() - if now.After(s.hotBufExpTime) { - s.asyncFlush(now) - } - s.hotBuf = append(s.hotBuf, v) - if len(s.hotBuf) == cap(s.hotBuf) { - s.asyncFlush(now) - } -} - -func (s *summary) Write(out *dto.Metric) error { - sum := &dto.Summary{} - qs := make([]*dto.Quantile, 0, len(s.objectives)) - - s.bufMtx.Lock() - s.mtx.Lock() - // Swap bufs even if hotBuf is empty to set new hotBufExpTime. - s.swapBufs(time.Now()) - s.bufMtx.Unlock() - - s.flushColdBuf() - sum.SampleCount = proto.Uint64(s.cnt) - sum.SampleSum = proto.Float64(s.sum) - - for _, rank := range s.sortedObjectives { - var q float64 - if s.headStream.Count() == 0 { - q = math.NaN() - } else { - q = s.headStream.Query(rank) - } - qs = append(qs, &dto.Quantile{ - Quantile: proto.Float64(rank), - Value: proto.Float64(q), - }) - } - - s.mtx.Unlock() - - if len(qs) > 0 { - sort.Sort(quantSort(qs)) - } - sum.Quantile = qs - - out.Summary = sum - out.Label = s.labelPairs - return nil -} - -func (s *summary) newStream() *quantile.Stream { - return quantile.NewTargeted(s.objectives) -} - -// asyncFlush needs bufMtx locked. -func (s *summary) asyncFlush(now time.Time) { - s.mtx.Lock() - s.swapBufs(now) - - // Unblock the original goroutine that was responsible for the mutation - // that triggered the compaction. But hold onto the global non-buffer - // state mutex until the operation finishes. - go func() { - s.flushColdBuf() - s.mtx.Unlock() - }() -} - -// rotateStreams needs mtx AND bufMtx locked. -func (s *summary) maybeRotateStreams() { - for !s.hotBufExpTime.Equal(s.headStreamExpTime) { - s.headStream.Reset() - s.headStreamIdx++ - if s.headStreamIdx >= len(s.streams) { - s.headStreamIdx = 0 - } - s.headStream = s.streams[s.headStreamIdx] - s.headStreamExpTime = s.headStreamExpTime.Add(s.streamDuration) - } -} - -// flushColdBuf needs mtx locked. -func (s *summary) flushColdBuf() { - for _, v := range s.coldBuf { - for _, stream := range s.streams { - stream.Insert(v) - } - s.cnt++ - s.sum += v - } - s.coldBuf = s.coldBuf[0:0] - s.maybeRotateStreams() -} - -// swapBufs needs mtx AND bufMtx locked, coldBuf must be empty. -func (s *summary) swapBufs(now time.Time) { - if len(s.coldBuf) != 0 { - panic("coldBuf is not empty") - } - s.hotBuf, s.coldBuf = s.coldBuf, s.hotBuf - // hotBuf is now empty and gets new expiration set. - for now.After(s.hotBufExpTime) { - s.hotBufExpTime = s.hotBufExpTime.Add(s.streamDuration) - } -} - -type quantSort []*dto.Quantile - -func (s quantSort) Len() int { - return len(s) -} - -func (s quantSort) Swap(i, j int) { - s[i], s[j] = s[j], s[i] -} - -func (s quantSort) Less(i, j int) bool { - return s[i].GetQuantile() < s[j].GetQuantile() -} - -// SummaryVec is a Collector that bundles a set of Summaries that all share the -// same Desc, but have different values for their variable labels. This is used -// if you want to count the same thing partitioned by various dimensions -// (e.g. HTTP request latencies, partitioned by status code and method). Create -// instances with NewSummaryVec. -type SummaryVec struct { - MetricVec -} - -// NewSummaryVec creates a new SummaryVec based on the provided SummaryOpts and -// partitioned by the given label names. At least one label name must be -// provided. -func NewSummaryVec(opts SummaryOpts, labelNames []string) *SummaryVec { - desc := NewDesc( - BuildFQName(opts.Namespace, opts.Subsystem, opts.Name), - opts.Help, - labelNames, - opts.ConstLabels, - ) - return &SummaryVec{ - MetricVec: MetricVec{ - children: map[uint64]Metric{}, - desc: desc, - hash: fnv.New64a(), - newMetric: func(lvs ...string) Metric { - return newSummary(desc, opts, lvs...) - }, - }, - } -} - -// GetMetricWithLabelValues replaces the method of the same name in -// MetricVec. The difference is that this method returns a Summary and not a -// Metric so that no type conversion is required. -func (m *SummaryVec) GetMetricWithLabelValues(lvs ...string) (Summary, error) { - metric, err := m.MetricVec.GetMetricWithLabelValues(lvs...) - if metric != nil { - return metric.(Summary), err - } - return nil, err -} - -// GetMetricWith replaces the method of the same name in MetricVec. The -// difference is that this method returns a Summary and not a Metric so that no -// type conversion is required. -func (m *SummaryVec) GetMetricWith(labels Labels) (Summary, error) { - metric, err := m.MetricVec.GetMetricWith(labels) - if metric != nil { - return metric.(Summary), err - } - return nil, err -} - -// WithLabelValues works as GetMetricWithLabelValues, but panics where -// GetMetricWithLabelValues would have returned an error. By not returning an -// error, WithLabelValues allows shortcuts like -// myVec.WithLabelValues("404", "GET").Observe(42.21) -func (m *SummaryVec) WithLabelValues(lvs ...string) Summary { - return m.MetricVec.WithLabelValues(lvs...).(Summary) -} - -// With works as GetMetricWith, but panics where GetMetricWithLabels would have -// returned an error. By not returning an error, With allows shortcuts like -// myVec.With(Labels{"code": "404", "method": "GET"}).Observe(42.21) -func (m *SummaryVec) With(labels Labels) Summary { - return m.MetricVec.With(labels).(Summary) -} - -type constSummary struct { - desc *Desc - count uint64 - sum float64 - quantiles map[float64]float64 - labelPairs []*dto.LabelPair -} - -func (s *constSummary) Desc() *Desc { - return s.desc -} - -func (s *constSummary) Write(out *dto.Metric) error { - sum := &dto.Summary{} - qs := make([]*dto.Quantile, 0, len(s.quantiles)) - - sum.SampleCount = proto.Uint64(s.count) - sum.SampleSum = proto.Float64(s.sum) - - for rank, q := range s.quantiles { - qs = append(qs, &dto.Quantile{ - Quantile: proto.Float64(rank), - Value: proto.Float64(q), - }) - } - - if len(qs) > 0 { - sort.Sort(quantSort(qs)) - } - sum.Quantile = qs - - out.Summary = sum - out.Label = s.labelPairs - - return nil -} - -// NewConstSummary returns a metric representing a Prometheus summary with fixed -// values for the count, sum, and quantiles. As those parameters cannot be -// changed, the returned value does not implement the Summary interface (but -// only the Metric interface). Users of this package will not have much use for -// it in regular operations. However, when implementing custom Collectors, it is -// useful as a throw-away metric that is generated on the fly to send it to -// Prometheus in the Collect method. -// -// quantiles maps ranks to quantile values. For example, a median latency of -// 0.23s and a 99th percentile latency of 0.56s would be expressed as: -// map[float64]float64{0.5: 0.23, 0.99: 0.56} -// -// NewConstSummary returns an error if the length of labelValues is not -// consistent with the variable labels in Desc. -func NewConstSummary( - desc *Desc, - count uint64, - sum float64, - quantiles map[float64]float64, - labelValues ...string, -) (Metric, error) { - if len(desc.variableLabels) != len(labelValues) { - return nil, errInconsistentCardinality - } - return &constSummary{ - desc: desc, - count: count, - sum: sum, - quantiles: quantiles, - labelPairs: makeLabelPairs(desc, labelValues), - }, nil -} - -// MustNewConstSummary is a version of NewConstSummary that panics where -// NewConstMetric would have returned an error. -func MustNewConstSummary( - desc *Desc, - count uint64, - sum float64, - quantiles map[float64]float64, - labelValues ...string, -) Metric { - m, err := NewConstSummary(desc, count, sum, quantiles, labelValues...) - if err != nil { - panic(err) - } - return m -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/untyped.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/untyped.go deleted file mode 100644 index c65ab1c5..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/untyped.go +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package prometheus - -import "hash/fnv" - -// Untyped is a Metric that represents a single numerical value that can -// arbitrarily go up and down. -// -// An Untyped metric works the same as a Gauge. The only difference is that to -// no type information is implied. -// -// To create Untyped instances, use NewUntyped. -type Untyped interface { - Metric - Collector - - // Set sets the Untyped metric to an arbitrary value. - Set(float64) - // Inc increments the Untyped metric by 1. - Inc() - // Dec decrements the Untyped metric by 1. - Dec() - // Add adds the given value to the Untyped metric. (The value can be - // negative, resulting in a decrease.) - Add(float64) - // Sub subtracts the given value from the Untyped metric. (The value can - // be negative, resulting in an increase.) - Sub(float64) -} - -// UntypedOpts is an alias for Opts. See there for doc comments. -type UntypedOpts Opts - -// NewUntyped creates a new Untyped metric from the provided UntypedOpts. -func NewUntyped(opts UntypedOpts) Untyped { - return newValue(NewDesc( - BuildFQName(opts.Namespace, opts.Subsystem, opts.Name), - opts.Help, - nil, - opts.ConstLabels, - ), UntypedValue, 0) -} - -// UntypedVec is a Collector that bundles a set of Untyped metrics that all -// share the same Desc, but have different values for their variable -// labels. This is used if you want to count the same thing partitioned by -// various dimensions. Create instances with NewUntypedVec. -type UntypedVec struct { - MetricVec -} - -// NewUntypedVec creates a new UntypedVec based on the provided UntypedOpts and -// partitioned by the given label names. At least one label name must be -// provided. -func NewUntypedVec(opts UntypedOpts, labelNames []string) *UntypedVec { - desc := NewDesc( - BuildFQName(opts.Namespace, opts.Subsystem, opts.Name), - opts.Help, - labelNames, - opts.ConstLabels, - ) - return &UntypedVec{ - MetricVec: MetricVec{ - children: map[uint64]Metric{}, - desc: desc, - hash: fnv.New64a(), - newMetric: func(lvs ...string) Metric { - return newValue(desc, UntypedValue, 0, lvs...) - }, - }, - } -} - -// GetMetricWithLabelValues replaces the method of the same name in -// MetricVec. The difference is that this method returns an Untyped and not a -// Metric so that no type conversion is required. -func (m *UntypedVec) GetMetricWithLabelValues(lvs ...string) (Untyped, error) { - metric, err := m.MetricVec.GetMetricWithLabelValues(lvs...) - if metric != nil { - return metric.(Untyped), err - } - return nil, err -} - -// GetMetricWith replaces the method of the same name in MetricVec. The -// difference is that this method returns an Untyped and not a Metric so that no -// type conversion is required. -func (m *UntypedVec) GetMetricWith(labels Labels) (Untyped, error) { - metric, err := m.MetricVec.GetMetricWith(labels) - if metric != nil { - return metric.(Untyped), err - } - return nil, err -} - -// WithLabelValues works as GetMetricWithLabelValues, but panics where -// GetMetricWithLabelValues would have returned an error. By not returning an -// error, WithLabelValues allows shortcuts like -// myVec.WithLabelValues("404", "GET").Add(42) -func (m *UntypedVec) WithLabelValues(lvs ...string) Untyped { - return m.MetricVec.WithLabelValues(lvs...).(Untyped) -} - -// With works as GetMetricWith, but panics where GetMetricWithLabels would have -// returned an error. By not returning an error, With allows shortcuts like -// myVec.With(Labels{"code": "404", "method": "GET"}).Add(42) -func (m *UntypedVec) With(labels Labels) Untyped { - return m.MetricVec.With(labels).(Untyped) -} - -// UntypedFunc is an Untyped whose value is determined at collect time by -// calling a provided function. -// -// To create UntypedFunc instances, use NewUntypedFunc. -type UntypedFunc interface { - Metric - Collector -} - -// NewUntypedFunc creates a new UntypedFunc based on the provided -// UntypedOpts. The value reported is determined by calling the given function -// from within the Write method. Take into account that metric collection may -// happen concurrently. If that results in concurrent calls to Write, like in -// the case where an UntypedFunc is directly registered with Prometheus, the -// provided function must be concurrency-safe. -func NewUntypedFunc(opts UntypedOpts, function func() float64) UntypedFunc { - return newValueFunc(NewDesc( - BuildFQName(opts.Namespace, opts.Subsystem, opts.Name), - opts.Help, - nil, - opts.ConstLabels, - ), UntypedValue, function) -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/value.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/value.go deleted file mode 100644 index b54ac11e..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/value.go +++ /dev/null @@ -1,234 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package prometheus - -import ( - "errors" - "fmt" - "math" - "sort" - "sync/atomic" - - dto "github.com/prometheus/client_model/go" - - "github.com/golang/protobuf/proto" -) - -// ValueType is an enumeration of metric types that represent a simple value. -type ValueType int - -// Possible values for the ValueType enum. -const ( - _ ValueType = iota - CounterValue - GaugeValue - UntypedValue -) - -var errInconsistentCardinality = errors.New("inconsistent label cardinality") - -// value is a generic metric for simple values. It implements Metric, Collector, -// Counter, Gauge, and Untyped. Its effective type is determined by -// ValueType. This is a low-level building block used by the library to back the -// implementations of Counter, Gauge, and Untyped. -type value struct { - // valBits containst the bits of the represented float64 value. It has - // to go first in the struct to guarantee alignment for atomic - // operations. http://golang.org/pkg/sync/atomic/#pkg-note-BUG - valBits uint64 - - SelfCollector - - desc *Desc - valType ValueType - labelPairs []*dto.LabelPair -} - -// newValue returns a newly allocated value with the given Desc, ValueType, -// sample value and label values. It panics if the number of label -// values is different from the number of variable labels in Desc. -func newValue(desc *Desc, valueType ValueType, val float64, labelValues ...string) *value { - if len(labelValues) != len(desc.variableLabels) { - panic(errInconsistentCardinality) - } - result := &value{ - desc: desc, - valType: valueType, - valBits: math.Float64bits(val), - labelPairs: makeLabelPairs(desc, labelValues), - } - result.Init(result) - return result -} - -func (v *value) Desc() *Desc { - return v.desc -} - -func (v *value) Set(val float64) { - atomic.StoreUint64(&v.valBits, math.Float64bits(val)) -} - -func (v *value) Inc() { - v.Add(1) -} - -func (v *value) Dec() { - v.Add(-1) -} - -func (v *value) Add(val float64) { - for { - oldBits := atomic.LoadUint64(&v.valBits) - newBits := math.Float64bits(math.Float64frombits(oldBits) + val) - if atomic.CompareAndSwapUint64(&v.valBits, oldBits, newBits) { - return - } - } -} - -func (v *value) Sub(val float64) { - v.Add(val * -1) -} - -func (v *value) Write(out *dto.Metric) error { - val := math.Float64frombits(atomic.LoadUint64(&v.valBits)) - return populateMetric(v.valType, val, v.labelPairs, out) -} - -// valueFunc is a generic metric for simple values retrieved on collect time -// from a function. It implements Metric and Collector. Its effective type is -// determined by ValueType. This is a low-level building block used by the -// library to back the implementations of CounterFunc, GaugeFunc, and -// UntypedFunc. -type valueFunc struct { - SelfCollector - - desc *Desc - valType ValueType - function func() float64 - labelPairs []*dto.LabelPair -} - -// newValueFunc returns a newly allocated valueFunc with the given Desc and -// ValueType. The value reported is determined by calling the given function -// from within the Write method. Take into account that metric collection may -// happen concurrently. If that results in concurrent calls to Write, like in -// the case where a valueFunc is directly registered with Prometheus, the -// provided function must be concurrency-safe. -func newValueFunc(desc *Desc, valueType ValueType, function func() float64) *valueFunc { - result := &valueFunc{ - desc: desc, - valType: valueType, - function: function, - labelPairs: makeLabelPairs(desc, nil), - } - result.Init(result) - return result -} - -func (v *valueFunc) Desc() *Desc { - return v.desc -} - -func (v *valueFunc) Write(out *dto.Metric) error { - return populateMetric(v.valType, v.function(), v.labelPairs, out) -} - -// NewConstMetric returns a metric with one fixed value that cannot be -// changed. Users of this package will not have much use for it in regular -// operations. However, when implementing custom Collectors, it is useful as a -// throw-away metric that is generated on the fly to send it to Prometheus in -// the Collect method. NewConstMetric returns an error if the length of -// labelValues is not consistent with the variable labels in Desc. -func NewConstMetric(desc *Desc, valueType ValueType, value float64, labelValues ...string) (Metric, error) { - if len(desc.variableLabels) != len(labelValues) { - return nil, errInconsistentCardinality - } - return &constMetric{ - desc: desc, - valType: valueType, - val: value, - labelPairs: makeLabelPairs(desc, labelValues), - }, nil -} - -// MustNewConstMetric is a version of NewConstMetric that panics where -// NewConstMetric would have returned an error. -func MustNewConstMetric(desc *Desc, valueType ValueType, value float64, labelValues ...string) Metric { - m, err := NewConstMetric(desc, valueType, value, labelValues...) - if err != nil { - panic(err) - } - return m -} - -type constMetric struct { - desc *Desc - valType ValueType - val float64 - labelPairs []*dto.LabelPair -} - -func (m *constMetric) Desc() *Desc { - return m.desc -} - -func (m *constMetric) Write(out *dto.Metric) error { - return populateMetric(m.valType, m.val, m.labelPairs, out) -} - -func populateMetric( - t ValueType, - v float64, - labelPairs []*dto.LabelPair, - m *dto.Metric, -) error { - m.Label = labelPairs - switch t { - case CounterValue: - m.Counter = &dto.Counter{Value: proto.Float64(v)} - case GaugeValue: - m.Gauge = &dto.Gauge{Value: proto.Float64(v)} - case UntypedValue: - m.Untyped = &dto.Untyped{Value: proto.Float64(v)} - default: - return fmt.Errorf("encountered unknown type %v", t) - } - return nil -} - -func makeLabelPairs(desc *Desc, labelValues []string) []*dto.LabelPair { - totalLen := len(desc.variableLabels) + len(desc.constLabelPairs) - if totalLen == 0 { - // Super fast path. - return nil - } - if len(desc.variableLabels) == 0 { - // Moderately fast path. - return desc.constLabelPairs - } - labelPairs := make([]*dto.LabelPair, 0, totalLen) - for i, n := range desc.variableLabels { - labelPairs = append(labelPairs, &dto.LabelPair{ - Name: proto.String(n), - Value: proto.String(labelValues[i]), - }) - } - for _, lp := range desc.constLabelPairs { - labelPairs = append(labelPairs, lp) - } - sort.Sort(LabelPairSorter(labelPairs)) - return labelPairs -} diff --git a/1.4/vendor/github.com/prometheus/client_golang/prometheus/vec.go b/1.4/vendor/github.com/prometheus/client_golang/prometheus/vec.go deleted file mode 100644 index a1f3bdf3..00000000 --- a/1.4/vendor/github.com/prometheus/client_golang/prometheus/vec.go +++ /dev/null @@ -1,247 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package prometheus - -import ( - "bytes" - "fmt" - "hash" - "sync" -) - -// MetricVec is a Collector to bundle metrics of the same name that -// differ in their label values. MetricVec is usually not used directly but as a -// building block for implementations of vectors of a given metric -// type. GaugeVec, CounterVec, SummaryVec, and UntypedVec are examples already -// provided in this package. -type MetricVec struct { - mtx sync.RWMutex // Protects not only children, but also hash and buf. - children map[uint64]Metric - desc *Desc - - // hash is our own hash instance to avoid repeated allocations. - hash hash.Hash64 - // buf is used to copy string contents into it for hashing, - // again to avoid allocations. - buf bytes.Buffer - - newMetric func(labelValues ...string) Metric -} - -// Describe implements Collector. The length of the returned slice -// is always one. -func (m *MetricVec) Describe(ch chan<- *Desc) { - ch <- m.desc -} - -// Collect implements Collector. -func (m *MetricVec) Collect(ch chan<- Metric) { - m.mtx.RLock() - defer m.mtx.RUnlock() - - for _, metric := range m.children { - ch <- metric - } -} - -// GetMetricWithLabelValues returns the Metric for the given slice of label -// values (same order as the VariableLabels in Desc). If that combination of -// label values is accessed for the first time, a new Metric is created. -// -// It is possible to call this method without using the returned Metric to only -// create the new Metric but leave it at its start value (e.g. a Summary or -// Histogram without any observations). See also the SummaryVec example. -// -// Keeping the Metric for later use is possible (and should be considered if -// performance is critical), but keep in mind that Reset, DeleteLabelValues and -// Delete can be used to delete the Metric from the MetricVec. In that case, the -// Metric will still exist, but it will not be exported anymore, even if a -// Metric with the same label values is created later. See also the CounterVec -// example. -// -// An error is returned if the number of label values is not the same as the -// number of VariableLabels in Desc. -// -// Note that for more than one label value, this method is prone to mistakes -// caused by an incorrect order of arguments. Consider GetMetricWith(Labels) as -// an alternative to avoid that type of mistake. For higher label numbers, the -// latter has a much more readable (albeit more verbose) syntax, but it comes -// with a performance overhead (for creating and processing the Labels map). -// See also the GaugeVec example. -func (m *MetricVec) GetMetricWithLabelValues(lvs ...string) (Metric, error) { - m.mtx.Lock() - defer m.mtx.Unlock() - - h, err := m.hashLabelValues(lvs) - if err != nil { - return nil, err - } - return m.getOrCreateMetric(h, lvs...), nil -} - -// GetMetricWith returns the Metric for the given Labels map (the label names -// must match those of the VariableLabels in Desc). If that label map is -// accessed for the first time, a new Metric is created. Implications of -// creating a Metric without using it and keeping the Metric for later use are -// the same as for GetMetricWithLabelValues. -// -// An error is returned if the number and names of the Labels are inconsistent -// with those of the VariableLabels in Desc. -// -// This method is used for the same purpose as -// GetMetricWithLabelValues(...string). See there for pros and cons of the two -// methods. -func (m *MetricVec) GetMetricWith(labels Labels) (Metric, error) { - m.mtx.Lock() - defer m.mtx.Unlock() - - h, err := m.hashLabels(labels) - if err != nil { - return nil, err - } - lvs := make([]string, len(labels)) - for i, label := range m.desc.variableLabels { - lvs[i] = labels[label] - } - return m.getOrCreateMetric(h, lvs...), nil -} - -// WithLabelValues works as GetMetricWithLabelValues, but panics if an error -// occurs. The method allows neat syntax like: -// httpReqs.WithLabelValues("404", "POST").Inc() -func (m *MetricVec) WithLabelValues(lvs ...string) Metric { - metric, err := m.GetMetricWithLabelValues(lvs...) - if err != nil { - panic(err) - } - return metric -} - -// With works as GetMetricWith, but panics if an error occurs. The method allows -// neat syntax like: -// httpReqs.With(Labels{"status":"404", "method":"POST"}).Inc() -func (m *MetricVec) With(labels Labels) Metric { - metric, err := m.GetMetricWith(labels) - if err != nil { - panic(err) - } - return metric -} - -// DeleteLabelValues removes the metric where the variable labels are the same -// as those passed in as labels (same order as the VariableLabels in Desc). It -// returns true if a metric was deleted. -// -// It is not an error if the number of label values is not the same as the -// number of VariableLabels in Desc. However, such inconsistent label count can -// never match an actual Metric, so the method will always return false in that -// case. -// -// Note that for more than one label value, this method is prone to mistakes -// caused by an incorrect order of arguments. Consider Delete(Labels) as an -// alternative to avoid that type of mistake. For higher label numbers, the -// latter has a much more readable (albeit more verbose) syntax, but it comes -// with a performance overhead (for creating and processing the Labels map). -// See also the CounterVec example. -func (m *MetricVec) DeleteLabelValues(lvs ...string) bool { - m.mtx.Lock() - defer m.mtx.Unlock() - - h, err := m.hashLabelValues(lvs) - if err != nil { - return false - } - if _, has := m.children[h]; !has { - return false - } - delete(m.children, h) - return true -} - -// Delete deletes the metric where the variable labels are the same as those -// passed in as labels. It returns true if a metric was deleted. -// -// It is not an error if the number and names of the Labels are inconsistent -// with those of the VariableLabels in the Desc of the MetricVec. However, such -// inconsistent Labels can never match an actual Metric, so the method will -// always return false in that case. -// -// This method is used for the same purpose as DeleteLabelValues(...string). See -// there for pros and cons of the two methods. -func (m *MetricVec) Delete(labels Labels) bool { - m.mtx.Lock() - defer m.mtx.Unlock() - - h, err := m.hashLabels(labels) - if err != nil { - return false - } - if _, has := m.children[h]; !has { - return false - } - delete(m.children, h) - return true -} - -// Reset deletes all metrics in this vector. -func (m *MetricVec) Reset() { - m.mtx.Lock() - defer m.mtx.Unlock() - - for h := range m.children { - delete(m.children, h) - } -} - -func (m *MetricVec) hashLabelValues(vals []string) (uint64, error) { - if len(vals) != len(m.desc.variableLabels) { - return 0, errInconsistentCardinality - } - m.hash.Reset() - for _, val := range vals { - m.buf.Reset() - m.buf.WriteString(val) - m.hash.Write(m.buf.Bytes()) - } - return m.hash.Sum64(), nil -} - -func (m *MetricVec) hashLabels(labels Labels) (uint64, error) { - if len(labels) != len(m.desc.variableLabels) { - return 0, errInconsistentCardinality - } - m.hash.Reset() - for _, label := range m.desc.variableLabels { - val, ok := labels[label] - if !ok { - return 0, fmt.Errorf("label name %q missing in label map", label) - } - m.buf.Reset() - m.buf.WriteString(val) - m.hash.Write(m.buf.Bytes()) - } - return m.hash.Sum64(), nil -} - -func (m *MetricVec) getOrCreateMetric(hash uint64, labelValues ...string) Metric { - metric, ok := m.children[hash] - if !ok { - // Copy labelValues. Otherwise, they would be allocated even if we don't go - // down this code path. - copiedLabelValues := append(make([]string, 0, len(labelValues)), labelValues...) - metric = m.newMetric(copiedLabelValues...) - m.children[hash] = metric - } - return metric -} diff --git a/1.4/vendor/github.com/prometheus/client_model/LICENSE b/1.4/vendor/github.com/prometheus/client_model/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/1.4/vendor/github.com/prometheus/client_model/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/1.4/vendor/github.com/prometheus/client_model/NOTICE b/1.4/vendor/github.com/prometheus/client_model/NOTICE deleted file mode 100644 index 20110e41..00000000 --- a/1.4/vendor/github.com/prometheus/client_model/NOTICE +++ /dev/null @@ -1,5 +0,0 @@ -Data model artifacts for Prometheus. -Copyright 2012-2015 The Prometheus Authors - -This product includes software developed at -SoundCloud Ltd. (http://soundcloud.com/). diff --git a/1.4/vendor/github.com/prometheus/client_model/go/metrics.pb.go b/1.4/vendor/github.com/prometheus/client_model/go/metrics.pb.go deleted file mode 100644 index b065f868..00000000 --- a/1.4/vendor/github.com/prometheus/client_model/go/metrics.pb.go +++ /dev/null @@ -1,364 +0,0 @@ -// Code generated by protoc-gen-go. -// source: metrics.proto -// DO NOT EDIT! - -/* -Package io_prometheus_client is a generated protocol buffer package. - -It is generated from these files: - metrics.proto - -It has these top-level messages: - LabelPair - Gauge - Counter - Quantile - Summary - Untyped - Histogram - Bucket - Metric - MetricFamily -*/ -package io_prometheus_client - -import proto "github.com/golang/protobuf/proto" -import math "math" - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = math.Inf - -type MetricType int32 - -const ( - MetricType_COUNTER MetricType = 0 - MetricType_GAUGE MetricType = 1 - MetricType_SUMMARY MetricType = 2 - MetricType_UNTYPED MetricType = 3 - MetricType_HISTOGRAM MetricType = 4 -) - -var MetricType_name = map[int32]string{ - 0: "COUNTER", - 1: "GAUGE", - 2: "SUMMARY", - 3: "UNTYPED", - 4: "HISTOGRAM", -} -var MetricType_value = map[string]int32{ - "COUNTER": 0, - "GAUGE": 1, - "SUMMARY": 2, - "UNTYPED": 3, - "HISTOGRAM": 4, -} - -func (x MetricType) Enum() *MetricType { - p := new(MetricType) - *p = x - return p -} -func (x MetricType) String() string { - return proto.EnumName(MetricType_name, int32(x)) -} -func (x *MetricType) UnmarshalJSON(data []byte) error { - value, err := proto.UnmarshalJSONEnum(MetricType_value, data, "MetricType") - if err != nil { - return err - } - *x = MetricType(value) - return nil -} - -type LabelPair struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *LabelPair) Reset() { *m = LabelPair{} } -func (m *LabelPair) String() string { return proto.CompactTextString(m) } -func (*LabelPair) ProtoMessage() {} - -func (m *LabelPair) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *LabelPair) GetValue() string { - if m != nil && m.Value != nil { - return *m.Value - } - return "" -} - -type Gauge struct { - Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Gauge) Reset() { *m = Gauge{} } -func (m *Gauge) String() string { return proto.CompactTextString(m) } -func (*Gauge) ProtoMessage() {} - -func (m *Gauge) GetValue() float64 { - if m != nil && m.Value != nil { - return *m.Value - } - return 0 -} - -type Counter struct { - Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Counter) Reset() { *m = Counter{} } -func (m *Counter) String() string { return proto.CompactTextString(m) } -func (*Counter) ProtoMessage() {} - -func (m *Counter) GetValue() float64 { - if m != nil && m.Value != nil { - return *m.Value - } - return 0 -} - -type Quantile struct { - Quantile *float64 `protobuf:"fixed64,1,opt,name=quantile" json:"quantile,omitempty"` - Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Quantile) Reset() { *m = Quantile{} } -func (m *Quantile) String() string { return proto.CompactTextString(m) } -func (*Quantile) ProtoMessage() {} - -func (m *Quantile) GetQuantile() float64 { - if m != nil && m.Quantile != nil { - return *m.Quantile - } - return 0 -} - -func (m *Quantile) GetValue() float64 { - if m != nil && m.Value != nil { - return *m.Value - } - return 0 -} - -type Summary struct { - SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count" json:"sample_count,omitempty"` - SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum" json:"sample_sum,omitempty"` - Quantile []*Quantile `protobuf:"bytes,3,rep,name=quantile" json:"quantile,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Summary) Reset() { *m = Summary{} } -func (m *Summary) String() string { return proto.CompactTextString(m) } -func (*Summary) ProtoMessage() {} - -func (m *Summary) GetSampleCount() uint64 { - if m != nil && m.SampleCount != nil { - return *m.SampleCount - } - return 0 -} - -func (m *Summary) GetSampleSum() float64 { - if m != nil && m.SampleSum != nil { - return *m.SampleSum - } - return 0 -} - -func (m *Summary) GetQuantile() []*Quantile { - if m != nil { - return m.Quantile - } - return nil -} - -type Untyped struct { - Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Untyped) Reset() { *m = Untyped{} } -func (m *Untyped) String() string { return proto.CompactTextString(m) } -func (*Untyped) ProtoMessage() {} - -func (m *Untyped) GetValue() float64 { - if m != nil && m.Value != nil { - return *m.Value - } - return 0 -} - -type Histogram struct { - SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count" json:"sample_count,omitempty"` - SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum" json:"sample_sum,omitempty"` - Bucket []*Bucket `protobuf:"bytes,3,rep,name=bucket" json:"bucket,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Histogram) Reset() { *m = Histogram{} } -func (m *Histogram) String() string { return proto.CompactTextString(m) } -func (*Histogram) ProtoMessage() {} - -func (m *Histogram) GetSampleCount() uint64 { - if m != nil && m.SampleCount != nil { - return *m.SampleCount - } - return 0 -} - -func (m *Histogram) GetSampleSum() float64 { - if m != nil && m.SampleSum != nil { - return *m.SampleSum - } - return 0 -} - -func (m *Histogram) GetBucket() []*Bucket { - if m != nil { - return m.Bucket - } - return nil -} - -type Bucket struct { - CumulativeCount *uint64 `protobuf:"varint,1,opt,name=cumulative_count" json:"cumulative_count,omitempty"` - UpperBound *float64 `protobuf:"fixed64,2,opt,name=upper_bound" json:"upper_bound,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Bucket) Reset() { *m = Bucket{} } -func (m *Bucket) String() string { return proto.CompactTextString(m) } -func (*Bucket) ProtoMessage() {} - -func (m *Bucket) GetCumulativeCount() uint64 { - if m != nil && m.CumulativeCount != nil { - return *m.CumulativeCount - } - return 0 -} - -func (m *Bucket) GetUpperBound() float64 { - if m != nil && m.UpperBound != nil { - return *m.UpperBound - } - return 0 -} - -type Metric struct { - Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"` - Gauge *Gauge `protobuf:"bytes,2,opt,name=gauge" json:"gauge,omitempty"` - Counter *Counter `protobuf:"bytes,3,opt,name=counter" json:"counter,omitempty"` - Summary *Summary `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"` - Untyped *Untyped `protobuf:"bytes,5,opt,name=untyped" json:"untyped,omitempty"` - Histogram *Histogram `protobuf:"bytes,7,opt,name=histogram" json:"histogram,omitempty"` - TimestampMs *int64 `protobuf:"varint,6,opt,name=timestamp_ms" json:"timestamp_ms,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *Metric) Reset() { *m = Metric{} } -func (m *Metric) String() string { return proto.CompactTextString(m) } -func (*Metric) ProtoMessage() {} - -func (m *Metric) GetLabel() []*LabelPair { - if m != nil { - return m.Label - } - return nil -} - -func (m *Metric) GetGauge() *Gauge { - if m != nil { - return m.Gauge - } - return nil -} - -func (m *Metric) GetCounter() *Counter { - if m != nil { - return m.Counter - } - return nil -} - -func (m *Metric) GetSummary() *Summary { - if m != nil { - return m.Summary - } - return nil -} - -func (m *Metric) GetUntyped() *Untyped { - if m != nil { - return m.Untyped - } - return nil -} - -func (m *Metric) GetHistogram() *Histogram { - if m != nil { - return m.Histogram - } - return nil -} - -func (m *Metric) GetTimestampMs() int64 { - if m != nil && m.TimestampMs != nil { - return *m.TimestampMs - } - return 0 -} - -type MetricFamily struct { - Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` - Help *string `protobuf:"bytes,2,opt,name=help" json:"help,omitempty"` - Type *MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"` - Metric []*Metric `protobuf:"bytes,4,rep,name=metric" json:"metric,omitempty"` - XXX_unrecognized []byte `json:"-"` -} - -func (m *MetricFamily) Reset() { *m = MetricFamily{} } -func (m *MetricFamily) String() string { return proto.CompactTextString(m) } -func (*MetricFamily) ProtoMessage() {} - -func (m *MetricFamily) GetName() string { - if m != nil && m.Name != nil { - return *m.Name - } - return "" -} - -func (m *MetricFamily) GetHelp() string { - if m != nil && m.Help != nil { - return *m.Help - } - return "" -} - -func (m *MetricFamily) GetType() MetricType { - if m != nil && m.Type != nil { - return *m.Type - } - return MetricType_COUNTER -} - -func (m *MetricFamily) GetMetric() []*Metric { - if m != nil { - return m.Metric - } - return nil -} - -func init() { - proto.RegisterEnum("io.prometheus.client.MetricType", MetricType_name, MetricType_value) -} diff --git a/1.4/vendor/github.com/prometheus/common/LICENSE b/1.4/vendor/github.com/prometheus/common/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/1.4/vendor/github.com/prometheus/common/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/1.4/vendor/github.com/prometheus/common/NOTICE b/1.4/vendor/github.com/prometheus/common/NOTICE deleted file mode 100644 index 636a2c1a..00000000 --- a/1.4/vendor/github.com/prometheus/common/NOTICE +++ /dev/null @@ -1,5 +0,0 @@ -Common libraries shared by Prometheus Go components. -Copyright 2015 The Prometheus Authors - -This product includes software developed at -SoundCloud Ltd. (http://soundcloud.com/). diff --git a/1.4/vendor/github.com/prometheus/common/expfmt/decode.go b/1.4/vendor/github.com/prometheus/common/expfmt/decode.go deleted file mode 100644 index b72c9bed..00000000 --- a/1.4/vendor/github.com/prometheus/common/expfmt/decode.go +++ /dev/null @@ -1,411 +0,0 @@ -// Copyright 2015 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package expfmt - -import ( - "fmt" - "io" - "math" - "mime" - "net/http" - - dto "github.com/prometheus/client_model/go" - - "github.com/matttproud/golang_protobuf_extensions/pbutil" - "github.com/prometheus/common/model" -) - -// Decoder types decode an input stream into metric families. -type Decoder interface { - Decode(*dto.MetricFamily) error -} - -type DecodeOptions struct { - // Timestamp is added to each value from the stream that has no explicit timestamp set. - Timestamp model.Time -} - -// ResponseFormat extracts the correct format from a HTTP response header. -// If no matching format can be found FormatUnknown is returned. -func ResponseFormat(h http.Header) Format { - ct := h.Get(hdrContentType) - - mediatype, params, err := mime.ParseMediaType(ct) - if err != nil { - return FmtUnknown - } - - const ( - textType = "text/plain" - jsonType = "application/json" - ) - - switch mediatype { - case ProtoType: - if p, ok := params["proto"]; ok && p != ProtoProtocol { - return FmtUnknown - } - if e, ok := params["encoding"]; ok && e != "delimited" { - return FmtUnknown - } - return FmtProtoDelim - - case textType: - if v, ok := params["version"]; ok && v != TextVersion { - return FmtUnknown - } - return FmtText - - case jsonType: - var prometheusAPIVersion string - - if params["schema"] == "prometheus/telemetry" && params["version"] != "" { - prometheusAPIVersion = params["version"] - } else { - prometheusAPIVersion = h.Get("X-Prometheus-API-Version") - } - - switch prometheusAPIVersion { - case "0.0.2", "": - return fmtJSON2 - default: - return FmtUnknown - } - } - - return FmtUnknown -} - -// NewDecoder returns a new decoder based on the given input format. -// If the input format does not imply otherwise, a text format decoder is returned. -func NewDecoder(r io.Reader, format Format) Decoder { - switch format { - case FmtProtoDelim: - return &protoDecoder{r: r} - case fmtJSON2: - return newJSON2Decoder(r) - } - return &textDecoder{r: r} -} - -// protoDecoder implements the Decoder interface for protocol buffers. -type protoDecoder struct { - r io.Reader -} - -// Decode implements the Decoder interface. -func (d *protoDecoder) Decode(v *dto.MetricFamily) error { - _, err := pbutil.ReadDelimited(d.r, v) - return err -} - -// textDecoder implements the Decoder interface for the text protcol. -type textDecoder struct { - r io.Reader - p TextParser - fams []*dto.MetricFamily -} - -// Decode implements the Decoder interface. -func (d *textDecoder) Decode(v *dto.MetricFamily) error { - // TODO(fabxc): Wrap this as a line reader to make streaming safer. - if len(d.fams) == 0 { - // No cached metric families, read everything and parse metrics. - fams, err := d.p.TextToMetricFamilies(d.r) - if err != nil { - return err - } - if len(fams) == 0 { - return io.EOF - } - d.fams = make([]*dto.MetricFamily, 0, len(fams)) - for _, f := range fams { - d.fams = append(d.fams, f) - } - } - - *v = *d.fams[0] - d.fams = d.fams[1:] - - return nil -} - -type SampleDecoder struct { - Dec Decoder - Opts *DecodeOptions - - f dto.MetricFamily -} - -func (sd *SampleDecoder) Decode(s *model.Vector) error { - if err := sd.Dec.Decode(&sd.f); err != nil { - return err - } - *s = extractSamples(&sd.f, sd.Opts) - return nil -} - -// Extract samples builds a slice of samples from the provided metric families. -func ExtractSamples(o *DecodeOptions, fams ...*dto.MetricFamily) model.Vector { - var all model.Vector - for _, f := range fams { - all = append(all, extractSamples(f, o)...) - } - return all -} - -func extractSamples(f *dto.MetricFamily, o *DecodeOptions) model.Vector { - switch f.GetType() { - case dto.MetricType_COUNTER: - return extractCounter(o, f) - case dto.MetricType_GAUGE: - return extractGauge(o, f) - case dto.MetricType_SUMMARY: - return extractSummary(o, f) - case dto.MetricType_UNTYPED: - return extractUntyped(o, f) - case dto.MetricType_HISTOGRAM: - return extractHistogram(o, f) - } - panic("expfmt.extractSamples: unknown metric family type") -} - -func extractCounter(o *DecodeOptions, f *dto.MetricFamily) model.Vector { - samples := make(model.Vector, 0, len(f.Metric)) - - for _, m := range f.Metric { - if m.Counter == nil { - continue - } - - lset := make(model.LabelSet, len(m.Label)+1) - for _, p := range m.Label { - lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue()) - } - lset[model.MetricNameLabel] = model.LabelValue(f.GetName()) - - smpl := &model.Sample{ - Metric: model.Metric(lset), - Value: model.SampleValue(m.Counter.GetValue()), - } - - if m.TimestampMs != nil { - smpl.Timestamp = model.TimeFromUnixNano(*m.TimestampMs * 1000000) - } else { - smpl.Timestamp = o.Timestamp - } - - samples = append(samples, smpl) - } - - return samples -} - -func extractGauge(o *DecodeOptions, f *dto.MetricFamily) model.Vector { - samples := make(model.Vector, 0, len(f.Metric)) - - for _, m := range f.Metric { - if m.Gauge == nil { - continue - } - - lset := make(model.LabelSet, len(m.Label)+1) - for _, p := range m.Label { - lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue()) - } - lset[model.MetricNameLabel] = model.LabelValue(f.GetName()) - - smpl := &model.Sample{ - Metric: model.Metric(lset), - Value: model.SampleValue(m.Gauge.GetValue()), - } - - if m.TimestampMs != nil { - smpl.Timestamp = model.TimeFromUnixNano(*m.TimestampMs * 1000000) - } else { - smpl.Timestamp = o.Timestamp - } - - samples = append(samples, smpl) - } - - return samples -} - -func extractUntyped(o *DecodeOptions, f *dto.MetricFamily) model.Vector { - samples := make(model.Vector, 0, len(f.Metric)) - - for _, m := range f.Metric { - if m.Untyped == nil { - continue - } - - lset := make(model.LabelSet, len(m.Label)+1) - for _, p := range m.Label { - lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue()) - } - lset[model.MetricNameLabel] = model.LabelValue(f.GetName()) - - smpl := &model.Sample{ - Metric: model.Metric(lset), - Value: model.SampleValue(m.Untyped.GetValue()), - } - - if m.TimestampMs != nil { - smpl.Timestamp = model.TimeFromUnixNano(*m.TimestampMs * 1000000) - } else { - smpl.Timestamp = o.Timestamp - } - - samples = append(samples, smpl) - } - - return samples -} - -func extractSummary(o *DecodeOptions, f *dto.MetricFamily) model.Vector { - samples := make(model.Vector, 0, len(f.Metric)) - - for _, m := range f.Metric { - if m.Summary == nil { - continue - } - - timestamp := o.Timestamp - if m.TimestampMs != nil { - timestamp = model.TimeFromUnixNano(*m.TimestampMs * 1000000) - } - - for _, q := range m.Summary.Quantile { - lset := make(model.LabelSet, len(m.Label)+2) - for _, p := range m.Label { - lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue()) - } - // BUG(matt): Update other names to "quantile". - lset[model.LabelName(model.QuantileLabel)] = model.LabelValue(fmt.Sprint(q.GetQuantile())) - lset[model.MetricNameLabel] = model.LabelValue(f.GetName()) - - samples = append(samples, &model.Sample{ - Metric: model.Metric(lset), - Value: model.SampleValue(q.GetValue()), - Timestamp: timestamp, - }) - } - - lset := make(model.LabelSet, len(m.Label)+1) - for _, p := range m.Label { - lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue()) - } - lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_sum") - - samples = append(samples, &model.Sample{ - Metric: model.Metric(lset), - Value: model.SampleValue(m.Summary.GetSampleSum()), - Timestamp: timestamp, - }) - - lset = make(model.LabelSet, len(m.Label)+1) - for _, p := range m.Label { - lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue()) - } - lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_count") - - samples = append(samples, &model.Sample{ - Metric: model.Metric(lset), - Value: model.SampleValue(m.Summary.GetSampleCount()), - Timestamp: timestamp, - }) - } - - return samples -} - -func extractHistogram(o *DecodeOptions, f *dto.MetricFamily) model.Vector { - samples := make(model.Vector, 0, len(f.Metric)) - - for _, m := range f.Metric { - if m.Histogram == nil { - continue - } - - timestamp := o.Timestamp - if m.TimestampMs != nil { - timestamp = model.TimeFromUnixNano(*m.TimestampMs * 1000000) - } - - infSeen := false - - for _, q := range m.Histogram.Bucket { - lset := make(model.LabelSet, len(m.Label)+2) - for _, p := range m.Label { - lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue()) - } - lset[model.LabelName(model.BucketLabel)] = model.LabelValue(fmt.Sprint(q.GetUpperBound())) - lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_bucket") - - if math.IsInf(q.GetUpperBound(), +1) { - infSeen = true - } - - samples = append(samples, &model.Sample{ - Metric: model.Metric(lset), - Value: model.SampleValue(q.GetCumulativeCount()), - Timestamp: timestamp, - }) - } - - lset := make(model.LabelSet, len(m.Label)+1) - for _, p := range m.Label { - lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue()) - } - lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_sum") - - samples = append(samples, &model.Sample{ - Metric: model.Metric(lset), - Value: model.SampleValue(m.Histogram.GetSampleSum()), - Timestamp: timestamp, - }) - - lset = make(model.LabelSet, len(m.Label)+1) - for _, p := range m.Label { - lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue()) - } - lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_count") - - count := &model.Sample{ - Metric: model.Metric(lset), - Value: model.SampleValue(m.Histogram.GetSampleCount()), - Timestamp: timestamp, - } - samples = append(samples, count) - - if !infSeen { - // Append an infinity bucket sample. - lset := make(model.LabelSet, len(m.Label)+2) - for _, p := range m.Label { - lset[model.LabelName(p.GetName())] = model.LabelValue(p.GetValue()) - } - lset[model.LabelName(model.BucketLabel)] = model.LabelValue("+Inf") - lset[model.MetricNameLabel] = model.LabelValue(f.GetName() + "_bucket") - - samples = append(samples, &model.Sample{ - Metric: model.Metric(lset), - Value: count.Value, - Timestamp: timestamp, - }) - } - } - - return samples -} diff --git a/1.4/vendor/github.com/prometheus/common/expfmt/encode.go b/1.4/vendor/github.com/prometheus/common/expfmt/encode.go deleted file mode 100644 index 392ca90e..00000000 --- a/1.4/vendor/github.com/prometheus/common/expfmt/encode.go +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright 2015 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package expfmt - -import ( - "fmt" - "io" - "net/http" - - "bitbucket.org/ww/goautoneg" - "github.com/golang/protobuf/proto" - "github.com/matttproud/golang_protobuf_extensions/pbutil" - - dto "github.com/prometheus/client_model/go" -) - -// Encoder types encode metric families into an underlying wire protocol. -type Encoder interface { - Encode(*dto.MetricFamily) error -} - -type encoder func(*dto.MetricFamily) error - -func (e encoder) Encode(v *dto.MetricFamily) error { - return e(v) -} - -// Negotiate returns the Content-Type based on the given Accept header. -// If no appropriate accepted type is found, FmtText is returned. -func Negotiate(h http.Header) Format { - for _, ac := range goautoneg.ParseAccept(h.Get(hdrAccept)) { - // Check for protocol buffer - if ac.Type+"/"+ac.SubType == ProtoType && ac.Params["proto"] == ProtoProtocol { - switch ac.Params["encoding"] { - case "delimited": - return FmtProtoDelim - case "text": - return FmtProtoText - case "compact-text": - return FmtProtoCompact - } - } - // Check for text format. - ver := ac.Params["version"] - if ac.Type == "text" && ac.SubType == "plain" && (ver == TextVersion || ver == "") { - return FmtText - } - } - return FmtText -} - -// NewEncoder returns a new encoder based on content type negotiation. -func NewEncoder(w io.Writer, format Format) Encoder { - switch format { - case FmtProtoDelim: - return encoder(func(v *dto.MetricFamily) error { - _, err := pbutil.WriteDelimited(w, v) - return err - }) - case FmtProtoCompact: - return encoder(func(v *dto.MetricFamily) error { - _, err := fmt.Fprintln(w, v.String()) - return err - }) - case FmtProtoText: - return encoder(func(v *dto.MetricFamily) error { - _, err := fmt.Fprintln(w, proto.MarshalTextString(v)) - return err - }) - case FmtText: - return encoder(func(v *dto.MetricFamily) error { - _, err := MetricFamilyToText(w, v) - return err - }) - } - panic("expfmt.NewEncoder: unknown format") -} diff --git a/1.4/vendor/github.com/prometheus/common/expfmt/expfmt.go b/1.4/vendor/github.com/prometheus/common/expfmt/expfmt.go deleted file mode 100644 index 366fbde9..00000000 --- a/1.4/vendor/github.com/prometheus/common/expfmt/expfmt.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2015 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// A package for reading and writing Prometheus metrics. -package expfmt - -type Format string - -const ( - TextVersion = "0.0.4" - - ProtoType = `application/vnd.google.protobuf` - ProtoProtocol = `io.prometheus.client.MetricFamily` - ProtoFmt = ProtoType + "; proto=" + ProtoProtocol + ";" - - // The Content-Type values for the different wire protocols. - FmtUnknown Format = `` - FmtText Format = `text/plain; version=` + TextVersion - FmtProtoDelim Format = ProtoFmt + ` encoding=delimited` - FmtProtoText Format = ProtoFmt + ` encoding=text` - FmtProtoCompact Format = ProtoFmt + ` encoding=compact-text` - - // fmtJSON2 is hidden as it is deprecated. - fmtJSON2 Format = `application/json; version=0.0.2` -) - -const ( - hdrContentType = "Content-Type" - hdrAccept = "Accept" -) diff --git a/1.4/vendor/github.com/prometheus/common/expfmt/fuzz.go b/1.4/vendor/github.com/prometheus/common/expfmt/fuzz.go deleted file mode 100644 index 14f92014..00000000 --- a/1.4/vendor/github.com/prometheus/common/expfmt/fuzz.go +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Build only when actually fuzzing -// +build gofuzz - -package expfmt - -import "bytes" - -// Fuzz text metric parser with with github.com/dvyukov/go-fuzz: -// -// go-fuzz-build github.com/prometheus/client_golang/text -// go-fuzz -bin text-fuzz.zip -workdir fuzz -// -// Further input samples should go in the folder fuzz/corpus. -func Fuzz(in []byte) int { - parser := TextParser{} - _, err := parser.TextToMetricFamilies(bytes.NewReader(in)) - - if err != nil { - return 0 - } - - return 1 -} diff --git a/1.4/vendor/github.com/prometheus/common/expfmt/json_decode.go b/1.4/vendor/github.com/prometheus/common/expfmt/json_decode.go deleted file mode 100644 index 67e3a0d4..00000000 --- a/1.4/vendor/github.com/prometheus/common/expfmt/json_decode.go +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright 2015 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package expfmt - -import ( - "encoding/json" - "fmt" - "io" - "sort" - - "github.com/golang/protobuf/proto" - dto "github.com/prometheus/client_model/go" - - "github.com/prometheus/common/model" -) - -type json2Decoder struct { - dec *json.Decoder - fams []*dto.MetricFamily -} - -func newJSON2Decoder(r io.Reader) Decoder { - return &json2Decoder{ - dec: json.NewDecoder(r), - } -} - -type histogram002 struct { - Labels model.LabelSet `json:"labels"` - Values map[string]float64 `json:"value"` -} - -type counter002 struct { - Labels model.LabelSet `json:"labels"` - Value float64 `json:"value"` -} - -func protoLabelSet(base, ext model.LabelSet) []*dto.LabelPair { - labels := base.Clone().Merge(ext) - delete(labels, model.MetricNameLabel) - - names := make([]string, 0, len(labels)) - for ln := range labels { - names = append(names, string(ln)) - } - sort.Strings(names) - - pairs := make([]*dto.LabelPair, 0, len(labels)) - - for _, ln := range names { - lv := labels[model.LabelName(ln)] - - pairs = append(pairs, &dto.LabelPair{ - Name: proto.String(ln), - Value: proto.String(string(lv)), - }) - } - - return pairs -} - -func (d *json2Decoder) more() error { - var entities []struct { - BaseLabels model.LabelSet `json:"baseLabels"` - Docstring string `json:"docstring"` - Metric struct { - Type string `json:"type"` - Values json.RawMessage `json:"value"` - } `json:"metric"` - } - - if err := d.dec.Decode(&entities); err != nil { - return err - } - for _, e := range entities { - f := &dto.MetricFamily{ - Name: proto.String(string(e.BaseLabels[model.MetricNameLabel])), - Help: proto.String(e.Docstring), - Type: dto.MetricType_UNTYPED.Enum(), - Metric: []*dto.Metric{}, - } - - d.fams = append(d.fams, f) - - switch e.Metric.Type { - case "counter", "gauge": - var values []counter002 - - if err := json.Unmarshal(e.Metric.Values, &values); err != nil { - return fmt.Errorf("could not extract %s value: %s", e.Metric.Type, err) - } - - for _, ctr := range values { - f.Metric = append(f.Metric, &dto.Metric{ - Label: protoLabelSet(e.BaseLabels, ctr.Labels), - Untyped: &dto.Untyped{ - Value: proto.Float64(ctr.Value), - }, - }) - } - - case "histogram": - var values []histogram002 - - if err := json.Unmarshal(e.Metric.Values, &values); err != nil { - return fmt.Errorf("could not extract %s value: %s", e.Metric.Type, err) - } - - for _, hist := range values { - quants := make([]string, 0, len(values)) - for q := range hist.Values { - quants = append(quants, q) - } - - sort.Strings(quants) - - for _, q := range quants { - value := hist.Values[q] - // The correct label is "quantile" but to not break old expressions - // this remains "percentile" - hist.Labels["percentile"] = model.LabelValue(q) - - f.Metric = append(f.Metric, &dto.Metric{ - Label: protoLabelSet(e.BaseLabels, hist.Labels), - Untyped: &dto.Untyped{ - Value: proto.Float64(value), - }, - }) - } - } - - default: - return fmt.Errorf("unknown metric type %q", e.Metric.Type) - } - } - return nil -} - -// Decode implements the Decoder interface. -func (d *json2Decoder) Decode(v *dto.MetricFamily) error { - if len(d.fams) == 0 { - if err := d.more(); err != nil { - return err - } - } - - *v = *d.fams[0] - d.fams = d.fams[1:] - - return nil -} diff --git a/1.4/vendor/github.com/prometheus/common/expfmt/text_create.go b/1.4/vendor/github.com/prometheus/common/expfmt/text_create.go deleted file mode 100644 index 0bb9c14c..00000000 --- a/1.4/vendor/github.com/prometheus/common/expfmt/text_create.go +++ /dev/null @@ -1,305 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package expfmt - -import ( - "bytes" - "fmt" - "io" - "math" - "strings" - - dto "github.com/prometheus/client_model/go" - "github.com/prometheus/common/model" -) - -// MetricFamilyToText converts a MetricFamily proto message into text format and -// writes the resulting lines to 'out'. It returns the number of bytes written -// and any error encountered. This function does not perform checks on the -// content of the metric and label names, i.e. invalid metric or label names -// will result in invalid text format output. -// This method fulfills the type 'prometheus.encoder'. -func MetricFamilyToText(out io.Writer, in *dto.MetricFamily) (int, error) { - var written int - - // Fail-fast checks. - if len(in.Metric) == 0 { - return written, fmt.Errorf("MetricFamily has no metrics: %s", in) - } - name := in.GetName() - if name == "" { - return written, fmt.Errorf("MetricFamily has no name: %s", in) - } - - // Comments, first HELP, then TYPE. - if in.Help != nil { - n, err := fmt.Fprintf( - out, "# HELP %s %s\n", - name, escapeString(*in.Help, false), - ) - written += n - if err != nil { - return written, err - } - } - metricType := in.GetType() - n, err := fmt.Fprintf( - out, "# TYPE %s %s\n", - name, strings.ToLower(metricType.String()), - ) - written += n - if err != nil { - return written, err - } - - // Finally the samples, one line for each. - for _, metric := range in.Metric { - switch metricType { - case dto.MetricType_COUNTER: - if metric.Counter == nil { - return written, fmt.Errorf( - "expected counter in metric %s %s", name, metric, - ) - } - n, err = writeSample( - name, metric, "", "", - metric.Counter.GetValue(), - out, - ) - case dto.MetricType_GAUGE: - if metric.Gauge == nil { - return written, fmt.Errorf( - "expected gauge in metric %s %s", name, metric, - ) - } - n, err = writeSample( - name, metric, "", "", - metric.Gauge.GetValue(), - out, - ) - case dto.MetricType_UNTYPED: - if metric.Untyped == nil { - return written, fmt.Errorf( - "expected untyped in metric %s %s", name, metric, - ) - } - n, err = writeSample( - name, metric, "", "", - metric.Untyped.GetValue(), - out, - ) - case dto.MetricType_SUMMARY: - if metric.Summary == nil { - return written, fmt.Errorf( - "expected summary in metric %s %s", name, metric, - ) - } - for _, q := range metric.Summary.Quantile { - n, err = writeSample( - name, metric, - model.QuantileLabel, fmt.Sprint(q.GetQuantile()), - q.GetValue(), - out, - ) - written += n - if err != nil { - return written, err - } - } - n, err = writeSample( - name+"_sum", metric, "", "", - metric.Summary.GetSampleSum(), - out, - ) - if err != nil { - return written, err - } - written += n - n, err = writeSample( - name+"_count", metric, "", "", - float64(metric.Summary.GetSampleCount()), - out, - ) - case dto.MetricType_HISTOGRAM: - if metric.Histogram == nil { - return written, fmt.Errorf( - "expected histogram in metric %s %s", name, metric, - ) - } - infSeen := false - for _, q := range metric.Histogram.Bucket { - n, err = writeSample( - name+"_bucket", metric, - model.BucketLabel, fmt.Sprint(q.GetUpperBound()), - float64(q.GetCumulativeCount()), - out, - ) - written += n - if err != nil { - return written, err - } - if math.IsInf(q.GetUpperBound(), +1) { - infSeen = true - } - } - if !infSeen { - n, err = writeSample( - name+"_bucket", metric, - model.BucketLabel, "+Inf", - float64(metric.Histogram.GetSampleCount()), - out, - ) - if err != nil { - return written, err - } - written += n - } - n, err = writeSample( - name+"_sum", metric, "", "", - metric.Histogram.GetSampleSum(), - out, - ) - if err != nil { - return written, err - } - written += n - n, err = writeSample( - name+"_count", metric, "", "", - float64(metric.Histogram.GetSampleCount()), - out, - ) - default: - return written, fmt.Errorf( - "unexpected type in metric %s %s", name, metric, - ) - } - written += n - if err != nil { - return written, err - } - } - return written, nil -} - -// writeSample writes a single sample in text format to out, given the metric -// name, the metric proto message itself, optionally an additional label name -// and value (use empty strings if not required), and the value. The function -// returns the number of bytes written and any error encountered. -func writeSample( - name string, - metric *dto.Metric, - additionalLabelName, additionalLabelValue string, - value float64, - out io.Writer, -) (int, error) { - var written int - n, err := fmt.Fprint(out, name) - written += n - if err != nil { - return written, err - } - n, err = labelPairsToText( - metric.Label, - additionalLabelName, additionalLabelValue, - out, - ) - written += n - if err != nil { - return written, err - } - n, err = fmt.Fprintf(out, " %v", value) - written += n - if err != nil { - return written, err - } - if metric.TimestampMs != nil { - n, err = fmt.Fprintf(out, " %v", *metric.TimestampMs) - written += n - if err != nil { - return written, err - } - } - n, err = out.Write([]byte{'\n'}) - written += n - if err != nil { - return written, err - } - return written, nil -} - -// labelPairsToText converts a slice of LabelPair proto messages plus the -// explicitly given additional label pair into text formatted as required by the -// text format and writes it to 'out'. An empty slice in combination with an -// empty string 'additionalLabelName' results in nothing being -// written. Otherwise, the label pairs are written, escaped as required by the -// text format, and enclosed in '{...}'. The function returns the number of -// bytes written and any error encountered. -func labelPairsToText( - in []*dto.LabelPair, - additionalLabelName, additionalLabelValue string, - out io.Writer, -) (int, error) { - if len(in) == 0 && additionalLabelName == "" { - return 0, nil - } - var written int - separator := '{' - for _, lp := range in { - n, err := fmt.Fprintf( - out, `%c%s="%s"`, - separator, lp.GetName(), escapeString(lp.GetValue(), true), - ) - written += n - if err != nil { - return written, err - } - separator = ',' - } - if additionalLabelName != "" { - n, err := fmt.Fprintf( - out, `%c%s="%s"`, - separator, additionalLabelName, - escapeString(additionalLabelValue, true), - ) - written += n - if err != nil { - return written, err - } - } - n, err := out.Write([]byte{'}'}) - written += n - if err != nil { - return written, err - } - return written, nil -} - -// escapeString replaces '\' by '\\', new line character by '\n', and - if -// includeDoubleQuote is true - '"' by '\"'. -func escapeString(v string, includeDoubleQuote bool) string { - result := bytes.NewBuffer(make([]byte, 0, len(v))) - for _, c := range v { - switch { - case c == '\\': - result.WriteString(`\\`) - case includeDoubleQuote && c == '"': - result.WriteString(`\"`) - case c == '\n': - result.WriteString(`\n`) - default: - result.WriteRune(c) - } - } - return result.String() -} diff --git a/1.4/vendor/github.com/prometheus/common/expfmt/text_parse.go b/1.4/vendor/github.com/prometheus/common/expfmt/text_parse.go deleted file mode 100644 index 84433bc4..00000000 --- a/1.4/vendor/github.com/prometheus/common/expfmt/text_parse.go +++ /dev/null @@ -1,746 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package expfmt - -import ( - "bufio" - "bytes" - "fmt" - "io" - "math" - "strconv" - "strings" - - dto "github.com/prometheus/client_model/go" - - "github.com/golang/protobuf/proto" - "github.com/prometheus/common/model" -) - -// A stateFn is a function that represents a state in a state machine. By -// executing it, the state is progressed to the next state. The stateFn returns -// another stateFn, which represents the new state. The end state is represented -// by nil. -type stateFn func() stateFn - -// ParseError signals errors while parsing the simple and flat text-based -// exchange format. -type ParseError struct { - Line int - Msg string -} - -// Error implements the error interface. -func (e ParseError) Error() string { - return fmt.Sprintf("text format parsing error in line %d: %s", e.Line, e.Msg) -} - -// TextParser is used to parse the simple and flat text-based exchange format. Its -// nil value is ready to use. -type TextParser struct { - metricFamiliesByName map[string]*dto.MetricFamily - buf *bufio.Reader // Where the parsed input is read through. - err error // Most recent error. - lineCount int // Tracks the line count for error messages. - currentByte byte // The most recent byte read. - currentToken bytes.Buffer // Re-used each time a token has to be gathered from multiple bytes. - currentMF *dto.MetricFamily - currentMetric *dto.Metric - currentLabelPair *dto.LabelPair - - // The remaining member variables are only used for summaries/histograms. - currentLabels map[string]string // All labels including '__name__' but excluding 'quantile'/'le' - // Summary specific. - summaries map[uint64]*dto.Metric // Key is created with LabelsToSignature. - currentQuantile float64 - // Histogram specific. - histograms map[uint64]*dto.Metric // Key is created with LabelsToSignature. - currentBucket float64 - // These tell us if the currently processed line ends on '_count' or - // '_sum' respectively and belong to a summary/histogram, representing the sample - // count and sum of that summary/histogram. - currentIsSummaryCount, currentIsSummarySum bool - currentIsHistogramCount, currentIsHistogramSum bool -} - -// TextToMetricFamilies reads 'in' as the simple and flat text-based exchange -// format and creates MetricFamily proto messages. It returns the MetricFamily -// proto messages in a map where the metric names are the keys, along with any -// error encountered. -// -// If the input contains duplicate metrics (i.e. lines with the same metric name -// and exactly the same label set), the resulting MetricFamily will contain -// duplicate Metric proto messages. Similar is true for duplicate label -// names. Checks for duplicates have to be performed separately, if required. -// Also note that neither the metrics within each MetricFamily are sorted nor -// the label pairs within each Metric. Sorting is not required for the most -// frequent use of this method, which is sample ingestion in the Prometheus -// server. However, for presentation purposes, you might want to sort the -// metrics, and in some cases, you must sort the labels, e.g. for consumption by -// the metric family injection hook of the Prometheus registry. -// -// Summaries and histograms are rather special beasts. You would probably not -// use them in the simple text format anyway. This method can deal with -// summaries and histograms if they are presented in exactly the way the -// text.Create function creates them. -// -// This method must not be called concurrently. If you want to parse different -// input concurrently, instantiate a separate Parser for each goroutine. -func (p *TextParser) TextToMetricFamilies(in io.Reader) (map[string]*dto.MetricFamily, error) { - p.reset(in) - for nextState := p.startOfLine; nextState != nil; nextState = nextState() { - // Magic happens here... - } - // Get rid of empty metric families. - for k, mf := range p.metricFamiliesByName { - if len(mf.GetMetric()) == 0 { - delete(p.metricFamiliesByName, k) - } - } - return p.metricFamiliesByName, p.err -} - -func (p *TextParser) reset(in io.Reader) { - p.metricFamiliesByName = map[string]*dto.MetricFamily{} - if p.buf == nil { - p.buf = bufio.NewReader(in) - } else { - p.buf.Reset(in) - } - p.err = nil - p.lineCount = 0 - if p.summaries == nil || len(p.summaries) > 0 { - p.summaries = map[uint64]*dto.Metric{} - } - if p.histograms == nil || len(p.histograms) > 0 { - p.histograms = map[uint64]*dto.Metric{} - } - p.currentQuantile = math.NaN() - p.currentBucket = math.NaN() -} - -// startOfLine represents the state where the next byte read from p.buf is the -// start of a line (or whitespace leading up to it). -func (p *TextParser) startOfLine() stateFn { - p.lineCount++ - if p.skipBlankTab(); p.err != nil { - // End of input reached. This is the only case where - // that is not an error but a signal that we are done. - p.err = nil - return nil - } - switch p.currentByte { - case '#': - return p.startComment - case '\n': - return p.startOfLine // Empty line, start the next one. - } - return p.readingMetricName -} - -// startComment represents the state where the next byte read from p.buf is the -// start of a comment (or whitespace leading up to it). -func (p *TextParser) startComment() stateFn { - if p.skipBlankTab(); p.err != nil { - return nil // Unexpected end of input. - } - if p.currentByte == '\n' { - return p.startOfLine - } - if p.readTokenUntilWhitespace(); p.err != nil { - return nil // Unexpected end of input. - } - // If we have hit the end of line already, there is nothing left - // to do. This is not considered a syntax error. - if p.currentByte == '\n' { - return p.startOfLine - } - keyword := p.currentToken.String() - if keyword != "HELP" && keyword != "TYPE" { - // Generic comment, ignore by fast forwarding to end of line. - for p.currentByte != '\n' { - if p.currentByte, p.err = p.buf.ReadByte(); p.err != nil { - return nil // Unexpected end of input. - } - } - return p.startOfLine - } - // There is something. Next has to be a metric name. - if p.skipBlankTab(); p.err != nil { - return nil // Unexpected end of input. - } - if p.readTokenAsMetricName(); p.err != nil { - return nil // Unexpected end of input. - } - if p.currentByte == '\n' { - // At the end of the line already. - // Again, this is not considered a syntax error. - return p.startOfLine - } - if !isBlankOrTab(p.currentByte) { - p.parseError("invalid metric name in comment") - return nil - } - p.setOrCreateCurrentMF() - if p.skipBlankTab(); p.err != nil { - return nil // Unexpected end of input. - } - if p.currentByte == '\n' { - // At the end of the line already. - // Again, this is not considered a syntax error. - return p.startOfLine - } - switch keyword { - case "HELP": - return p.readingHelp - case "TYPE": - return p.readingType - } - panic(fmt.Sprintf("code error: unexpected keyword %q", keyword)) -} - -// readingMetricName represents the state where the last byte read (now in -// p.currentByte) is the first byte of a metric name. -func (p *TextParser) readingMetricName() stateFn { - if p.readTokenAsMetricName(); p.err != nil { - return nil - } - if p.currentToken.Len() == 0 { - p.parseError("invalid metric name") - return nil - } - p.setOrCreateCurrentMF() - // Now is the time to fix the type if it hasn't happened yet. - if p.currentMF.Type == nil { - p.currentMF.Type = dto.MetricType_UNTYPED.Enum() - } - p.currentMetric = &dto.Metric{} - // Do not append the newly created currentMetric to - // currentMF.Metric right now. First wait if this is a summary, - // and the metric exists already, which we can only know after - // having read all the labels. - if p.skipBlankTabIfCurrentBlankTab(); p.err != nil { - return nil // Unexpected end of input. - } - return p.readingLabels -} - -// readingLabels represents the state where the last byte read (now in -// p.currentByte) is either the first byte of the label set (i.e. a '{'), or the -// first byte of the value (otherwise). -func (p *TextParser) readingLabels() stateFn { - // Summaries/histograms are special. We have to reset the - // currentLabels map, currentQuantile and currentBucket before starting to - // read labels. - if p.currentMF.GetType() == dto.MetricType_SUMMARY || p.currentMF.GetType() == dto.MetricType_HISTOGRAM { - p.currentLabels = map[string]string{} - p.currentLabels[string(model.MetricNameLabel)] = p.currentMF.GetName() - p.currentQuantile = math.NaN() - p.currentBucket = math.NaN() - } - if p.currentByte != '{' { - return p.readingValue - } - return p.startLabelName -} - -// startLabelName represents the state where the next byte read from p.buf is -// the start of a label name (or whitespace leading up to it). -func (p *TextParser) startLabelName() stateFn { - if p.skipBlankTab(); p.err != nil { - return nil // Unexpected end of input. - } - if p.currentByte == '}' { - if p.skipBlankTab(); p.err != nil { - return nil // Unexpected end of input. - } - return p.readingValue - } - if p.readTokenAsLabelName(); p.err != nil { - return nil // Unexpected end of input. - } - if p.currentToken.Len() == 0 { - p.parseError(fmt.Sprintf("invalid label name for metric %q", p.currentMF.GetName())) - return nil - } - p.currentLabelPair = &dto.LabelPair{Name: proto.String(p.currentToken.String())} - if p.currentLabelPair.GetName() == string(model.MetricNameLabel) { - p.parseError(fmt.Sprintf("label name %q is reserved", model.MetricNameLabel)) - return nil - } - // Special summary/histogram treatment. Don't add 'quantile' and 'le' - // labels to 'real' labels. - if !(p.currentMF.GetType() == dto.MetricType_SUMMARY && p.currentLabelPair.GetName() == model.QuantileLabel) && - !(p.currentMF.GetType() == dto.MetricType_HISTOGRAM && p.currentLabelPair.GetName() == model.BucketLabel) { - p.currentMetric.Label = append(p.currentMetric.Label, p.currentLabelPair) - } - if p.skipBlankTabIfCurrentBlankTab(); p.err != nil { - return nil // Unexpected end of input. - } - if p.currentByte != '=' { - p.parseError(fmt.Sprintf("expected '=' after label name, found %q", p.currentByte)) - return nil - } - return p.startLabelValue -} - -// startLabelValue represents the state where the next byte read from p.buf is -// the start of a (quoted) label value (or whitespace leading up to it). -func (p *TextParser) startLabelValue() stateFn { - if p.skipBlankTab(); p.err != nil { - return nil // Unexpected end of input. - } - if p.currentByte != '"' { - p.parseError(fmt.Sprintf("expected '\"' at start of label value, found %q", p.currentByte)) - return nil - } - if p.readTokenAsLabelValue(); p.err != nil { - return nil - } - p.currentLabelPair.Value = proto.String(p.currentToken.String()) - // Special treatment of summaries: - // - Quantile labels are special, will result in dto.Quantile later. - // - Other labels have to be added to currentLabels for signature calculation. - if p.currentMF.GetType() == dto.MetricType_SUMMARY { - if p.currentLabelPair.GetName() == model.QuantileLabel { - if p.currentQuantile, p.err = strconv.ParseFloat(p.currentLabelPair.GetValue(), 64); p.err != nil { - // Create a more helpful error message. - p.parseError(fmt.Sprintf("expected float as value for 'quantile' label, got %q", p.currentLabelPair.GetValue())) - return nil - } - } else { - p.currentLabels[p.currentLabelPair.GetName()] = p.currentLabelPair.GetValue() - } - } - // Similar special treatment of histograms. - if p.currentMF.GetType() == dto.MetricType_HISTOGRAM { - if p.currentLabelPair.GetName() == model.BucketLabel { - if p.currentBucket, p.err = strconv.ParseFloat(p.currentLabelPair.GetValue(), 64); p.err != nil { - // Create a more helpful error message. - p.parseError(fmt.Sprintf("expected float as value for 'le' label, got %q", p.currentLabelPair.GetValue())) - return nil - } - } else { - p.currentLabels[p.currentLabelPair.GetName()] = p.currentLabelPair.GetValue() - } - } - if p.skipBlankTab(); p.err != nil { - return nil // Unexpected end of input. - } - switch p.currentByte { - case ',': - return p.startLabelName - - case '}': - if p.skipBlankTab(); p.err != nil { - return nil // Unexpected end of input. - } - return p.readingValue - default: - p.parseError(fmt.Sprintf("unexpected end of label value %q", p.currentLabelPair.Value)) - return nil - } -} - -// readingValue represents the state where the last byte read (now in -// p.currentByte) is the first byte of the sample value (i.e. a float). -func (p *TextParser) readingValue() stateFn { - // When we are here, we have read all the labels, so for the - // special case of a summary/histogram, we can finally find out - // if the metric already exists. - if p.currentMF.GetType() == dto.MetricType_SUMMARY { - signature := model.LabelsToSignature(p.currentLabels) - if summary := p.summaries[signature]; summary != nil { - p.currentMetric = summary - } else { - p.summaries[signature] = p.currentMetric - p.currentMF.Metric = append(p.currentMF.Metric, p.currentMetric) - } - } else if p.currentMF.GetType() == dto.MetricType_HISTOGRAM { - signature := model.LabelsToSignature(p.currentLabels) - if histogram := p.histograms[signature]; histogram != nil { - p.currentMetric = histogram - } else { - p.histograms[signature] = p.currentMetric - p.currentMF.Metric = append(p.currentMF.Metric, p.currentMetric) - } - } else { - p.currentMF.Metric = append(p.currentMF.Metric, p.currentMetric) - } - if p.readTokenUntilWhitespace(); p.err != nil { - return nil // Unexpected end of input. - } - value, err := strconv.ParseFloat(p.currentToken.String(), 64) - if err != nil { - // Create a more helpful error message. - p.parseError(fmt.Sprintf("expected float as value, got %q", p.currentToken.String())) - return nil - } - switch p.currentMF.GetType() { - case dto.MetricType_COUNTER: - p.currentMetric.Counter = &dto.Counter{Value: proto.Float64(value)} - case dto.MetricType_GAUGE: - p.currentMetric.Gauge = &dto.Gauge{Value: proto.Float64(value)} - case dto.MetricType_UNTYPED: - p.currentMetric.Untyped = &dto.Untyped{Value: proto.Float64(value)} - case dto.MetricType_SUMMARY: - // *sigh* - if p.currentMetric.Summary == nil { - p.currentMetric.Summary = &dto.Summary{} - } - switch { - case p.currentIsSummaryCount: - p.currentMetric.Summary.SampleCount = proto.Uint64(uint64(value)) - case p.currentIsSummarySum: - p.currentMetric.Summary.SampleSum = proto.Float64(value) - case !math.IsNaN(p.currentQuantile): - p.currentMetric.Summary.Quantile = append( - p.currentMetric.Summary.Quantile, - &dto.Quantile{ - Quantile: proto.Float64(p.currentQuantile), - Value: proto.Float64(value), - }, - ) - } - case dto.MetricType_HISTOGRAM: - // *sigh* - if p.currentMetric.Histogram == nil { - p.currentMetric.Histogram = &dto.Histogram{} - } - switch { - case p.currentIsHistogramCount: - p.currentMetric.Histogram.SampleCount = proto.Uint64(uint64(value)) - case p.currentIsHistogramSum: - p.currentMetric.Histogram.SampleSum = proto.Float64(value) - case !math.IsNaN(p.currentBucket): - p.currentMetric.Histogram.Bucket = append( - p.currentMetric.Histogram.Bucket, - &dto.Bucket{ - UpperBound: proto.Float64(p.currentBucket), - CumulativeCount: proto.Uint64(uint64(value)), - }, - ) - } - default: - p.err = fmt.Errorf("unexpected type for metric name %q", p.currentMF.GetName()) - } - if p.currentByte == '\n' { - return p.startOfLine - } - return p.startTimestamp -} - -// startTimestamp represents the state where the next byte read from p.buf is -// the start of the timestamp (or whitespace leading up to it). -func (p *TextParser) startTimestamp() stateFn { - if p.skipBlankTab(); p.err != nil { - return nil // Unexpected end of input. - } - if p.readTokenUntilWhitespace(); p.err != nil { - return nil // Unexpected end of input. - } - timestamp, err := strconv.ParseInt(p.currentToken.String(), 10, 64) - if err != nil { - // Create a more helpful error message. - p.parseError(fmt.Sprintf("expected integer as timestamp, got %q", p.currentToken.String())) - return nil - } - p.currentMetric.TimestampMs = proto.Int64(timestamp) - if p.readTokenUntilNewline(false); p.err != nil { - return nil // Unexpected end of input. - } - if p.currentToken.Len() > 0 { - p.parseError(fmt.Sprintf("spurious string after timestamp: %q", p.currentToken.String())) - return nil - } - return p.startOfLine -} - -// readingHelp represents the state where the last byte read (now in -// p.currentByte) is the first byte of the docstring after 'HELP'. -func (p *TextParser) readingHelp() stateFn { - if p.currentMF.Help != nil { - p.parseError(fmt.Sprintf("second HELP line for metric name %q", p.currentMF.GetName())) - return nil - } - // Rest of line is the docstring. - if p.readTokenUntilNewline(true); p.err != nil { - return nil // Unexpected end of input. - } - p.currentMF.Help = proto.String(p.currentToken.String()) - return p.startOfLine -} - -// readingType represents the state where the last byte read (now in -// p.currentByte) is the first byte of the type hint after 'HELP'. -func (p *TextParser) readingType() stateFn { - if p.currentMF.Type != nil { - p.parseError(fmt.Sprintf("second TYPE line for metric name %q, or TYPE reported after samples", p.currentMF.GetName())) - return nil - } - // Rest of line is the type. - if p.readTokenUntilNewline(false); p.err != nil { - return nil // Unexpected end of input. - } - metricType, ok := dto.MetricType_value[strings.ToUpper(p.currentToken.String())] - if !ok { - p.parseError(fmt.Sprintf("unknown metric type %q", p.currentToken.String())) - return nil - } - p.currentMF.Type = dto.MetricType(metricType).Enum() - return p.startOfLine -} - -// parseError sets p.err to a ParseError at the current line with the given -// message. -func (p *TextParser) parseError(msg string) { - p.err = ParseError{ - Line: p.lineCount, - Msg: msg, - } -} - -// skipBlankTab reads (and discards) bytes from p.buf until it encounters a byte -// that is neither ' ' nor '\t'. That byte is left in p.currentByte. -func (p *TextParser) skipBlankTab() { - for { - if p.currentByte, p.err = p.buf.ReadByte(); p.err != nil || !isBlankOrTab(p.currentByte) { - return - } - } -} - -// skipBlankTabIfCurrentBlankTab works exactly as skipBlankTab but doesn't do -// anything if p.currentByte is neither ' ' nor '\t'. -func (p *TextParser) skipBlankTabIfCurrentBlankTab() { - if isBlankOrTab(p.currentByte) { - p.skipBlankTab() - } -} - -// readTokenUntilWhitespace copies bytes from p.buf into p.currentToken. The -// first byte considered is the byte already read (now in p.currentByte). The -// first whitespace byte encountered is still copied into p.currentByte, but not -// into p.currentToken. -func (p *TextParser) readTokenUntilWhitespace() { - p.currentToken.Reset() - for p.err == nil && !isBlankOrTab(p.currentByte) && p.currentByte != '\n' { - p.currentToken.WriteByte(p.currentByte) - p.currentByte, p.err = p.buf.ReadByte() - } -} - -// readTokenUntilNewline copies bytes from p.buf into p.currentToken. The first -// byte considered is the byte already read (now in p.currentByte). The first -// newline byte encountered is still copied into p.currentByte, but not into -// p.currentToken. If recognizeEscapeSequence is true, two escape sequences are -// recognized: '\\' tranlates into '\', and '\n' into a line-feed character. All -// other escape sequences are invalid and cause an error. -func (p *TextParser) readTokenUntilNewline(recognizeEscapeSequence bool) { - p.currentToken.Reset() - escaped := false - for p.err == nil { - if recognizeEscapeSequence && escaped { - switch p.currentByte { - case '\\': - p.currentToken.WriteByte(p.currentByte) - case 'n': - p.currentToken.WriteByte('\n') - default: - p.parseError(fmt.Sprintf("invalid escape sequence '\\%c'", p.currentByte)) - return - } - escaped = false - } else { - switch p.currentByte { - case '\n': - return - case '\\': - escaped = true - default: - p.currentToken.WriteByte(p.currentByte) - } - } - p.currentByte, p.err = p.buf.ReadByte() - } -} - -// readTokenAsMetricName copies a metric name from p.buf into p.currentToken. -// The first byte considered is the byte already read (now in p.currentByte). -// The first byte not part of a metric name is still copied into p.currentByte, -// but not into p.currentToken. -func (p *TextParser) readTokenAsMetricName() { - p.currentToken.Reset() - if !isValidMetricNameStart(p.currentByte) { - return - } - for { - p.currentToken.WriteByte(p.currentByte) - p.currentByte, p.err = p.buf.ReadByte() - if p.err != nil || !isValidMetricNameContinuation(p.currentByte) { - return - } - } -} - -// readTokenAsLabelName copies a label name from p.buf into p.currentToken. -// The first byte considered is the byte already read (now in p.currentByte). -// The first byte not part of a label name is still copied into p.currentByte, -// but not into p.currentToken. -func (p *TextParser) readTokenAsLabelName() { - p.currentToken.Reset() - if !isValidLabelNameStart(p.currentByte) { - return - } - for { - p.currentToken.WriteByte(p.currentByte) - p.currentByte, p.err = p.buf.ReadByte() - if p.err != nil || !isValidLabelNameContinuation(p.currentByte) { - return - } - } -} - -// readTokenAsLabelValue copies a label value from p.buf into p.currentToken. -// In contrast to the other 'readTokenAs...' functions, which start with the -// last read byte in p.currentByte, this method ignores p.currentByte and starts -// with reading a new byte from p.buf. The first byte not part of a label value -// is still copied into p.currentByte, but not into p.currentToken. -func (p *TextParser) readTokenAsLabelValue() { - p.currentToken.Reset() - escaped := false - for { - if p.currentByte, p.err = p.buf.ReadByte(); p.err != nil { - return - } - if escaped { - switch p.currentByte { - case '"', '\\': - p.currentToken.WriteByte(p.currentByte) - case 'n': - p.currentToken.WriteByte('\n') - default: - p.parseError(fmt.Sprintf("invalid escape sequence '\\%c'", p.currentByte)) - return - } - escaped = false - continue - } - switch p.currentByte { - case '"': - return - case '\n': - p.parseError(fmt.Sprintf("label value %q contains unescaped new-line", p.currentToken.String())) - return - case '\\': - escaped = true - default: - p.currentToken.WriteByte(p.currentByte) - } - } -} - -func (p *TextParser) setOrCreateCurrentMF() { - p.currentIsSummaryCount = false - p.currentIsSummarySum = false - p.currentIsHistogramCount = false - p.currentIsHistogramSum = false - name := p.currentToken.String() - if p.currentMF = p.metricFamiliesByName[name]; p.currentMF != nil { - return - } - // Try out if this is a _sum or _count for a summary/histogram. - summaryName := summaryMetricName(name) - if p.currentMF = p.metricFamiliesByName[summaryName]; p.currentMF != nil { - if p.currentMF.GetType() == dto.MetricType_SUMMARY { - if isCount(name) { - p.currentIsSummaryCount = true - } - if isSum(name) { - p.currentIsSummarySum = true - } - return - } - } - histogramName := histogramMetricName(name) - if p.currentMF = p.metricFamiliesByName[histogramName]; p.currentMF != nil { - if p.currentMF.GetType() == dto.MetricType_HISTOGRAM { - if isCount(name) { - p.currentIsHistogramCount = true - } - if isSum(name) { - p.currentIsHistogramSum = true - } - return - } - } - p.currentMF = &dto.MetricFamily{Name: proto.String(name)} - p.metricFamiliesByName[name] = p.currentMF -} - -func isValidLabelNameStart(b byte) bool { - return (b >= 'a' && b <= 'z') || (b >= 'A' && b <= 'Z') || b == '_' -} - -func isValidLabelNameContinuation(b byte) bool { - return isValidLabelNameStart(b) || (b >= '0' && b <= '9') -} - -func isValidMetricNameStart(b byte) bool { - return isValidLabelNameStart(b) || b == ':' -} - -func isValidMetricNameContinuation(b byte) bool { - return isValidLabelNameContinuation(b) || b == ':' -} - -func isBlankOrTab(b byte) bool { - return b == ' ' || b == '\t' -} - -func isCount(name string) bool { - return len(name) > 6 && name[len(name)-6:] == "_count" -} - -func isSum(name string) bool { - return len(name) > 4 && name[len(name)-4:] == "_sum" -} - -func isBucket(name string) bool { - return len(name) > 7 && name[len(name)-7:] == "_bucket" -} - -func summaryMetricName(name string) string { - switch { - case isCount(name): - return name[:len(name)-6] - case isSum(name): - return name[:len(name)-4] - default: - return name - } -} - -func histogramMetricName(name string) string { - switch { - case isCount(name): - return name[:len(name)-6] - case isSum(name): - return name[:len(name)-4] - case isBucket(name): - return name[:len(name)-7] - default: - return name - } -} diff --git a/1.4/vendor/github.com/prometheus/common/model/alert.go b/1.4/vendor/github.com/prometheus/common/model/alert.go deleted file mode 100644 index b027e9f3..00000000 --- a/1.4/vendor/github.com/prometheus/common/model/alert.go +++ /dev/null @@ -1,109 +0,0 @@ -// Copyright 2013 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package model - -import ( - "fmt" - "time" -) - -type AlertStatus string - -const ( - AlertFiring AlertStatus = "firing" - AlertResolved AlertStatus = "resolved" -) - -// Alert is a generic representation of an alert in the Prometheus eco-system. -type Alert struct { - // Label value pairs for purpose of aggregation, matching, and disposition - // dispatching. This must minimally include an "alertname" label. - Labels LabelSet `json:"labels"` - - // Extra key/value information which does not define alert identity. - Annotations LabelSet `json:"annotations"` - - // The known time range for this alert. Both ends are optional. - StartsAt time.Time `json:"startsAt,omitempty"` - EndsAt time.Time `json:"endsAt,omitempty"` -} - -// Name returns the name of the alert. It is equivalent to the "alertname" label. -func (a *Alert) Name() string { - return string(a.Labels[AlertNameLabel]) -} - -// Fingerprint returns a unique hash for the alert. It is equivalent to -// the fingerprint of the alert's label set. -func (a *Alert) Fingerprint() Fingerprint { - return a.Labels.Fingerprint() -} - -func (a *Alert) String() string { - s := fmt.Sprintf("%s[%s]", a.Name(), a.Fingerprint().String()[:7]) - if a.Resolved() { - return s + "[resolved]" - } - return s + "[active]" -} - -// Resolved returns true iff the activity interval ended in the past. -func (a *Alert) Resolved() bool { - if a.EndsAt.IsZero() { - return false - } - return !a.EndsAt.After(time.Now()) -} - -// Status returns the status of the alert. -func (a *Alert) Status() AlertStatus { - if a.Resolved() { - return AlertResolved - } - return AlertFiring -} - -// Alert is a list of alerts that can be sorted in chronological order. -type Alerts []*Alert - -func (as Alerts) Len() int { return len(as) } -func (as Alerts) Swap(i, j int) { as[i], as[j] = as[j], as[i] } - -func (as Alerts) Less(i, j int) bool { - if as[i].StartsAt.Before(as[j].StartsAt) { - return true - } - if as[i].EndsAt.Before(as[j].EndsAt) { - return true - } - return as[i].Fingerprint() < as[j].Fingerprint() -} - -// HasFiring returns true iff one of the alerts is not resolved. -func (as Alerts) HasFiring() bool { - for _, a := range as { - if !a.Resolved() { - return true - } - } - return false -} - -// Status returns StatusFiring iff at least one of the alerts is firing. -func (as Alerts) Status() AlertStatus { - if as.HasFiring() { - return AlertFiring - } - return AlertResolved -} diff --git a/1.4/vendor/github.com/prometheus/common/model/fingerprinting.go b/1.4/vendor/github.com/prometheus/common/model/fingerprinting.go deleted file mode 100644 index fc4de410..00000000 --- a/1.4/vendor/github.com/prometheus/common/model/fingerprinting.go +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2013 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package model - -import ( - "fmt" - "strconv" -) - -// Fingerprint provides a hash-capable representation of a Metric. -// For our purposes, FNV-1A 64-bit is used. -type Fingerprint uint64 - -// FingerprintFromString transforms a string representation into a Fingerprint. -func FingerprintFromString(s string) (Fingerprint, error) { - num, err := strconv.ParseUint(s, 16, 64) - return Fingerprint(num), err -} - -// ParseFingerprint parses the input string into a fingerprint. -func ParseFingerprint(s string) (Fingerprint, error) { - num, err := strconv.ParseUint(s, 16, 64) - if err != nil { - return 0, err - } - return Fingerprint(num), nil -} - -func (f Fingerprint) String() string { - return fmt.Sprintf("%016x", uint64(f)) -} - -// Fingerprints represents a collection of Fingerprint subject to a given -// natural sorting scheme. It implements sort.Interface. -type Fingerprints []Fingerprint - -// Len implements sort.Interface. -func (f Fingerprints) Len() int { - return len(f) -} - -// Less implements sort.Interface. -func (f Fingerprints) Less(i, j int) bool { - return f[i] < f[j] -} - -// Swap implements sort.Interface. -func (f Fingerprints) Swap(i, j int) { - f[i], f[j] = f[j], f[i] -} - -// FingerprintSet is a set of Fingerprints. -type FingerprintSet map[Fingerprint]struct{} - -// Equal returns true if both sets contain the same elements (and not more). -func (s FingerprintSet) Equal(o FingerprintSet) bool { - if len(s) != len(o) { - return false - } - - for k := range s { - if _, ok := o[k]; !ok { - return false - } - } - - return true -} - -// Intersection returns the elements contained in both sets. -func (s FingerprintSet) Intersection(o FingerprintSet) FingerprintSet { - myLength, otherLength := len(s), len(o) - if myLength == 0 || otherLength == 0 { - return FingerprintSet{} - } - - subSet := s - superSet := o - - if otherLength < myLength { - subSet = o - superSet = s - } - - out := FingerprintSet{} - - for k := range subSet { - if _, ok := superSet[k]; ok { - out[k] = struct{}{} - } - } - - return out -} diff --git a/1.4/vendor/github.com/prometheus/common/model/labels.go b/1.4/vendor/github.com/prometheus/common/model/labels.go deleted file mode 100644 index 6459c8f7..00000000 --- a/1.4/vendor/github.com/prometheus/common/model/labels.go +++ /dev/null @@ -1,188 +0,0 @@ -// Copyright 2013 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package model - -import ( - "encoding/json" - "fmt" - "regexp" - "sort" - "strings" -) - -const ( - // AlertNameLabel is the name of the label containing the an alert's name. - AlertNameLabel = "alertname" - - // ExportedLabelPrefix is the prefix to prepend to the label names present in - // exported metrics if a label of the same name is added by the server. - ExportedLabelPrefix = "exported_" - - // MetricNameLabel is the label name indicating the metric name of a - // timeseries. - MetricNameLabel = "__name__" - - // SchemeLabel is the name of the label that holds the scheme on which to - // scrape a target. - SchemeLabel = "__scheme__" - - // AddressLabel is the name of the label that holds the address of - // a scrape target. - AddressLabel = "__address__" - - // MetricsPathLabel is the name of the label that holds the path on which to - // scrape a target. - MetricsPathLabel = "__metrics_path__" - - // ReservedLabelPrefix is a prefix which is not legal in user-supplied - // label names. - ReservedLabelPrefix = "__" - - // MetaLabelPrefix is a prefix for labels that provide meta information. - // Labels with this prefix are used for intermediate label processing and - // will not be attached to time series. - MetaLabelPrefix = "__meta_" - - // TmpLabelPrefix is a prefix for temporary labels as part of relabelling. - // Labels with this prefix are used for intermediate label processing and - // will not be attached to time series. This is reserved for use in - // Prometheus configuration files by users. - TmpLabelPrefix = "__tmp_" - - // ParamLabelPrefix is a prefix for labels that provide URL parameters - // used to scrape a target. - ParamLabelPrefix = "__param_" - - // JobLabel is the label name indicating the job from which a timeseries - // was scraped. - JobLabel = "job" - - // InstanceLabel is the label name used for the instance label. - InstanceLabel = "instance" - - // BucketLabel is used for the label that defines the upper bound of a - // bucket of a histogram ("le" -> "less or equal"). - BucketLabel = "le" - - // QuantileLabel is used for the label that defines the quantile in a - // summary. - QuantileLabel = "quantile" -) - -// LabelNameRE is a regular expression matching valid label names. -var LabelNameRE = regexp.MustCompile("^[a-zA-Z_][a-zA-Z0-9_]*$") - -// A LabelName is a key for a LabelSet or Metric. It has a value associated -// therewith. -type LabelName string - -// UnmarshalYAML implements the yaml.Unmarshaler interface. -func (ln *LabelName) UnmarshalYAML(unmarshal func(interface{}) error) error { - var s string - if err := unmarshal(&s); err != nil { - return err - } - if !LabelNameRE.MatchString(s) { - return fmt.Errorf("%q is not a valid label name", s) - } - *ln = LabelName(s) - return nil -} - -// UnmarshalJSON implements the json.Unmarshaler interface. -func (ln *LabelName) UnmarshalJSON(b []byte) error { - var s string - if err := json.Unmarshal(b, &s); err != nil { - return err - } - if !LabelNameRE.MatchString(s) { - return fmt.Errorf("%q is not a valid label name", s) - } - *ln = LabelName(s) - return nil -} - -// LabelNames is a sortable LabelName slice. In implements sort.Interface. -type LabelNames []LabelName - -func (l LabelNames) Len() int { - return len(l) -} - -func (l LabelNames) Less(i, j int) bool { - return l[i] < l[j] -} - -func (l LabelNames) Swap(i, j int) { - l[i], l[j] = l[j], l[i] -} - -func (l LabelNames) String() string { - labelStrings := make([]string, 0, len(l)) - for _, label := range l { - labelStrings = append(labelStrings, string(label)) - } - return strings.Join(labelStrings, ", ") -} - -// A LabelValue is an associated value for a LabelName. -type LabelValue string - -// LabelValues is a sortable LabelValue slice. It implements sort.Interface. -type LabelValues []LabelValue - -func (l LabelValues) Len() int { - return len(l) -} - -func (l LabelValues) Less(i, j int) bool { - return sort.StringsAreSorted([]string{string(l[i]), string(l[j])}) -} - -func (l LabelValues) Swap(i, j int) { - l[i], l[j] = l[j], l[i] -} - -// LabelPair pairs a name with a value. -type LabelPair struct { - Name LabelName - Value LabelValue -} - -// LabelPairs is a sortable slice of LabelPair pointers. It implements -// sort.Interface. -type LabelPairs []*LabelPair - -func (l LabelPairs) Len() int { - return len(l) -} - -func (l LabelPairs) Less(i, j int) bool { - switch { - case l[i].Name > l[j].Name: - return false - case l[i].Name < l[j].Name: - return true - case l[i].Value > l[j].Value: - return false - case l[i].Value < l[j].Value: - return true - default: - return false - } -} - -func (l LabelPairs) Swap(i, j int) { - l[i], l[j] = l[j], l[i] -} diff --git a/1.4/vendor/github.com/prometheus/common/model/labelset.go b/1.4/vendor/github.com/prometheus/common/model/labelset.go deleted file mode 100644 index 142b9d1e..00000000 --- a/1.4/vendor/github.com/prometheus/common/model/labelset.go +++ /dev/null @@ -1,153 +0,0 @@ -// Copyright 2013 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package model - -import ( - "encoding/json" - "fmt" - "sort" - "strings" -) - -// A LabelSet is a collection of LabelName and LabelValue pairs. The LabelSet -// may be fully-qualified down to the point where it may resolve to a single -// Metric in the data store or not. All operations that occur within the realm -// of a LabelSet can emit a vector of Metric entities to which the LabelSet may -// match. -type LabelSet map[LabelName]LabelValue - -func (ls LabelSet) Equal(o LabelSet) bool { - if len(ls) != len(o) { - return false - } - for ln, lv := range ls { - olv, ok := o[ln] - if !ok { - return false - } - if olv != lv { - return false - } - } - return true -} - -// Before compares the metrics, using the following criteria: -// -// If m has fewer labels than o, it is before o. If it has more, it is not. -// -// If the number of labels is the same, the superset of all label names is -// sorted alphanumerically. The first differing label pair found in that order -// determines the outcome: If the label does not exist at all in m, then m is -// before o, and vice versa. Otherwise the label value is compared -// alphanumerically. -// -// If m and o are equal, the method returns false. -func (ls LabelSet) Before(o LabelSet) bool { - if len(ls) < len(o) { - return true - } - if len(ls) > len(o) { - return false - } - - lns := make(LabelNames, 0, len(ls)+len(o)) - for ln := range ls { - lns = append(lns, ln) - } - for ln := range o { - lns = append(lns, ln) - } - // It's probably not worth it to de-dup lns. - sort.Sort(lns) - for _, ln := range lns { - mlv, ok := ls[ln] - if !ok { - return true - } - olv, ok := o[ln] - if !ok { - return false - } - if mlv < olv { - return true - } - if mlv > olv { - return false - } - } - return false -} - -func (ls LabelSet) Clone() LabelSet { - lsn := make(LabelSet, len(ls)) - for ln, lv := range ls { - lsn[ln] = lv - } - return lsn -} - -// Merge is a helper function to non-destructively merge two label sets. -func (l LabelSet) Merge(other LabelSet) LabelSet { - result := make(LabelSet, len(l)) - - for k, v := range l { - result[k] = v - } - - for k, v := range other { - result[k] = v - } - - return result -} - -func (l LabelSet) String() string { - lstrs := make([]string, 0, len(l)) - for l, v := range l { - lstrs = append(lstrs, fmt.Sprintf("%s=%q", l, v)) - } - - sort.Strings(lstrs) - return fmt.Sprintf("{%s}", strings.Join(lstrs, ", ")) -} - -// Fingerprint returns the LabelSet's fingerprint. -func (ls LabelSet) Fingerprint() Fingerprint { - return labelSetToFingerprint(ls) -} - -// FastFingerprint returns the LabelSet's Fingerprint calculated by a faster hashing -// algorithm, which is, however, more susceptible to hash collisions. -func (ls LabelSet) FastFingerprint() Fingerprint { - return labelSetToFastFingerprint(ls) -} - -// UnmarshalJSON implements the json.Unmarshaler interface. -func (l *LabelSet) UnmarshalJSON(b []byte) error { - var m map[LabelName]LabelValue - if err := json.Unmarshal(b, &m); err != nil { - return err - } - // encoding/json only unmarshals maps of the form map[string]T. It treats - // LabelName as a string and does not call its UnmarshalJSON method. - // Thus, we have to replicate the behavior here. - for ln := range m { - if !LabelNameRE.MatchString(string(ln)) { - return fmt.Errorf("%q is not a valid label name", ln) - } - } - *l = LabelSet(m) - return nil -} diff --git a/1.4/vendor/github.com/prometheus/common/model/metric.go b/1.4/vendor/github.com/prometheus/common/model/metric.go deleted file mode 100644 index 25fc3c94..00000000 --- a/1.4/vendor/github.com/prometheus/common/model/metric.go +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2013 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package model - -import ( - "fmt" - "sort" - "strings" -) - -var separator = []byte{0} - -// A Metric is similar to a LabelSet, but the key difference is that a Metric is -// a singleton and refers to one and only one stream of samples. -type Metric LabelSet - -// Equal compares the metrics. -func (m Metric) Equal(o Metric) bool { - return LabelSet(m).Equal(LabelSet(o)) -} - -// Before compares the metrics' underlying label sets. -func (m Metric) Before(o Metric) bool { - return LabelSet(m).Before(LabelSet(o)) -} - -// Clone returns a copy of the Metric. -func (m Metric) Clone() Metric { - clone := Metric{} - for k, v := range m { - clone[k] = v - } - return clone -} - -func (m Metric) String() string { - metricName, hasName := m[MetricNameLabel] - numLabels := len(m) - 1 - if !hasName { - numLabels = len(m) - } - labelStrings := make([]string, 0, numLabels) - for label, value := range m { - if label != MetricNameLabel { - labelStrings = append(labelStrings, fmt.Sprintf("%s=%q", label, value)) - } - } - - switch numLabels { - case 0: - if hasName { - return string(metricName) - } - return "{}" - default: - sort.Strings(labelStrings) - return fmt.Sprintf("%s{%s}", metricName, strings.Join(labelStrings, ", ")) - } -} - -// Fingerprint returns a Metric's Fingerprint. -func (m Metric) Fingerprint() Fingerprint { - return LabelSet(m).Fingerprint() -} - -// FastFingerprint returns a Metric's Fingerprint calculated by a faster hashing -// algorithm, which is, however, more susceptible to hash collisions. -func (m Metric) FastFingerprint() Fingerprint { - return LabelSet(m).FastFingerprint() -} diff --git a/1.4/vendor/github.com/prometheus/common/model/model.go b/1.4/vendor/github.com/prometheus/common/model/model.go deleted file mode 100644 index 88f013a4..00000000 --- a/1.4/vendor/github.com/prometheus/common/model/model.go +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright 2013 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Package model contains common data structures that are shared across -// Prometheus componenets and libraries. -package model diff --git a/1.4/vendor/github.com/prometheus/common/model/signature.go b/1.4/vendor/github.com/prometheus/common/model/signature.go deleted file mode 100644 index 28f37006..00000000 --- a/1.4/vendor/github.com/prometheus/common/model/signature.go +++ /dev/null @@ -1,190 +0,0 @@ -// Copyright 2014 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package model - -import ( - "bytes" - "hash" - "hash/fnv" - "sort" - "sync" -) - -// SeparatorByte is a byte that cannot occur in valid UTF-8 sequences and is -// used to separate label names, label values, and other strings from each other -// when calculating their combined hash value (aka signature aka fingerprint). -const SeparatorByte byte = 255 - -var ( - // cache the signature of an empty label set. - emptyLabelSignature = fnv.New64a().Sum64() - - hashAndBufPool sync.Pool -) - -type hashAndBuf struct { - h hash.Hash64 - b bytes.Buffer -} - -func getHashAndBuf() *hashAndBuf { - hb := hashAndBufPool.Get() - if hb == nil { - return &hashAndBuf{h: fnv.New64a()} - } - return hb.(*hashAndBuf) -} - -func putHashAndBuf(hb *hashAndBuf) { - hb.h.Reset() - hb.b.Reset() - hashAndBufPool.Put(hb) -} - -// LabelsToSignature returns a quasi-unique signature (i.e., fingerprint) for a -// given label set. (Collisions are possible but unlikely if the number of label -// sets the function is applied to is small.) -func LabelsToSignature(labels map[string]string) uint64 { - if len(labels) == 0 { - return emptyLabelSignature - } - - labelNames := make([]string, 0, len(labels)) - for labelName := range labels { - labelNames = append(labelNames, labelName) - } - sort.Strings(labelNames) - - hb := getHashAndBuf() - defer putHashAndBuf(hb) - - for _, labelName := range labelNames { - hb.b.WriteString(labelName) - hb.b.WriteByte(SeparatorByte) - hb.b.WriteString(labels[labelName]) - hb.b.WriteByte(SeparatorByte) - hb.h.Write(hb.b.Bytes()) - hb.b.Reset() - } - return hb.h.Sum64() -} - -// labelSetToFingerprint works exactly as LabelsToSignature but takes a LabelSet as -// parameter (rather than a label map) and returns a Fingerprint. -func labelSetToFingerprint(ls LabelSet) Fingerprint { - if len(ls) == 0 { - return Fingerprint(emptyLabelSignature) - } - - labelNames := make(LabelNames, 0, len(ls)) - for labelName := range ls { - labelNames = append(labelNames, labelName) - } - sort.Sort(labelNames) - - hb := getHashAndBuf() - defer putHashAndBuf(hb) - - for _, labelName := range labelNames { - hb.b.WriteString(string(labelName)) - hb.b.WriteByte(SeparatorByte) - hb.b.WriteString(string(ls[labelName])) - hb.b.WriteByte(SeparatorByte) - hb.h.Write(hb.b.Bytes()) - hb.b.Reset() - } - return Fingerprint(hb.h.Sum64()) -} - -// labelSetToFastFingerprint works similar to labelSetToFingerprint but uses a -// faster and less allocation-heavy hash function, which is more susceptible to -// create hash collisions. Therefore, collision detection should be applied. -func labelSetToFastFingerprint(ls LabelSet) Fingerprint { - if len(ls) == 0 { - return Fingerprint(emptyLabelSignature) - } - - var result uint64 - hb := getHashAndBuf() - defer putHashAndBuf(hb) - - for labelName, labelValue := range ls { - hb.b.WriteString(string(labelName)) - hb.b.WriteByte(SeparatorByte) - hb.b.WriteString(string(labelValue)) - hb.h.Write(hb.b.Bytes()) - result ^= hb.h.Sum64() - hb.h.Reset() - hb.b.Reset() - } - return Fingerprint(result) -} - -// SignatureForLabels works like LabelsToSignature but takes a Metric as -// parameter (rather than a label map) and only includes the labels with the -// specified LabelNames into the signature calculation. The labels passed in -// will be sorted by this function. -func SignatureForLabels(m Metric, labels ...LabelName) uint64 { - if len(m) == 0 || len(labels) == 0 { - return emptyLabelSignature - } - - sort.Sort(LabelNames(labels)) - - hb := getHashAndBuf() - defer putHashAndBuf(hb) - - for _, label := range labels { - hb.b.WriteString(string(label)) - hb.b.WriteByte(SeparatorByte) - hb.b.WriteString(string(m[label])) - hb.b.WriteByte(SeparatorByte) - hb.h.Write(hb.b.Bytes()) - hb.b.Reset() - } - return hb.h.Sum64() -} - -// SignatureWithoutLabels works like LabelsToSignature but takes a Metric as -// parameter (rather than a label map) and excludes the labels with any of the -// specified LabelNames from the signature calculation. -func SignatureWithoutLabels(m Metric, labels map[LabelName]struct{}) uint64 { - if len(m) == 0 { - return emptyLabelSignature - } - - labelNames := make(LabelNames, 0, len(m)) - for labelName := range m { - if _, exclude := labels[labelName]; !exclude { - labelNames = append(labelNames, labelName) - } - } - if len(labelNames) == 0 { - return emptyLabelSignature - } - sort.Sort(labelNames) - - hb := getHashAndBuf() - defer putHashAndBuf(hb) - - for _, labelName := range labelNames { - hb.b.WriteString(string(labelName)) - hb.b.WriteByte(SeparatorByte) - hb.b.WriteString(string(m[labelName])) - hb.b.WriteByte(SeparatorByte) - hb.h.Write(hb.b.Bytes()) - hb.b.Reset() - } - return hb.h.Sum64() -} diff --git a/1.4/vendor/github.com/prometheus/common/model/silence.go b/1.4/vendor/github.com/prometheus/common/model/silence.go deleted file mode 100644 index b4b96eae..00000000 --- a/1.4/vendor/github.com/prometheus/common/model/silence.go +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright 2015 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package model - -import ( - "encoding/json" - "fmt" - "regexp" - "time" -) - -// Matcher describes a matches the value of a given label. -type Matcher struct { - Name LabelName `json:"name"` - Value string `json:"value"` - IsRegex bool `json:"isRegex"` -} - -func (m *Matcher) UnmarshalJSON(b []byte) error { - type plain Matcher - if err := json.Unmarshal(b, (*plain)(m)); err != nil { - return err - } - - if len(m.Name) == 0 { - return fmt.Errorf("label name in matcher must not be empty") - } - if m.IsRegex { - if _, err := regexp.Compile(m.Value); err != nil { - return err - } - } - return nil -} - -// Silence defines the representation of a silence definiton -// in the Prometheus eco-system. -type Silence struct { - ID uint64 `json:"id,omitempty"` - - Matchers []*Matcher `json:"matchers"` - - StartsAt time.Time `json:"startsAt"` - EndsAt time.Time `json:"endsAt"` - - CreatedAt time.Time `json:"createdAt,omitempty"` - CreatedBy string `json:"createdBy"` - Comment string `json:"comment,omitempty"` -} diff --git a/1.4/vendor/github.com/prometheus/common/model/time.go b/1.4/vendor/github.com/prometheus/common/model/time.go deleted file mode 100644 index ebc8bf6c..00000000 --- a/1.4/vendor/github.com/prometheus/common/model/time.go +++ /dev/null @@ -1,230 +0,0 @@ -// Copyright 2013 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package model - -import ( - "fmt" - "math" - "regexp" - "strconv" - "strings" - "time" -) - -const ( - // MinimumTick is the minimum supported time resolution. This has to be - // at least time.Second in order for the code below to work. - minimumTick = time.Millisecond - // second is the Time duration equivalent to one second. - second = int64(time.Second / minimumTick) - // The number of nanoseconds per minimum tick. - nanosPerTick = int64(minimumTick / time.Nanosecond) - - // Earliest is the earliest Time representable. Handy for - // initializing a high watermark. - Earliest = Time(math.MinInt64) - // Latest is the latest Time representable. Handy for initializing - // a low watermark. - Latest = Time(math.MaxInt64) -) - -// Time is the number of milliseconds since the epoch -// (1970-01-01 00:00 UTC) excluding leap seconds. -type Time int64 - -// Interval describes and interval between two timestamps. -type Interval struct { - Start, End Time -} - -// Now returns the current time as a Time. -func Now() Time { - return TimeFromUnixNano(time.Now().UnixNano()) -} - -// TimeFromUnix returns the Time equivalent to the Unix Time t -// provided in seconds. -func TimeFromUnix(t int64) Time { - return Time(t * second) -} - -// TimeFromUnixNano returns the Time equivalent to the Unix Time -// t provided in nanoseconds. -func TimeFromUnixNano(t int64) Time { - return Time(t / nanosPerTick) -} - -// Equal reports whether two Times represent the same instant. -func (t Time) Equal(o Time) bool { - return t == o -} - -// Before reports whether the Time t is before o. -func (t Time) Before(o Time) bool { - return t < o -} - -// After reports whether the Time t is after o. -func (t Time) After(o Time) bool { - return t > o -} - -// Add returns the Time t + d. -func (t Time) Add(d time.Duration) Time { - return t + Time(d/minimumTick) -} - -// Sub returns the Duration t - o. -func (t Time) Sub(o Time) time.Duration { - return time.Duration(t-o) * minimumTick -} - -// Time returns the time.Time representation of t. -func (t Time) Time() time.Time { - return time.Unix(int64(t)/second, (int64(t)%second)*nanosPerTick) -} - -// Unix returns t as a Unix time, the number of seconds elapsed -// since January 1, 1970 UTC. -func (t Time) Unix() int64 { - return int64(t) / second -} - -// UnixNano returns t as a Unix time, the number of nanoseconds elapsed -// since January 1, 1970 UTC. -func (t Time) UnixNano() int64 { - return int64(t) * nanosPerTick -} - -// The number of digits after the dot. -var dotPrecision = int(math.Log10(float64(second))) - -// String returns a string representation of the Time. -func (t Time) String() string { - return strconv.FormatFloat(float64(t)/float64(second), 'f', -1, 64) -} - -// MarshalJSON implements the json.Marshaler interface. -func (t Time) MarshalJSON() ([]byte, error) { - return []byte(t.String()), nil -} - -// UnmarshalJSON implements the json.Unmarshaler interface. -func (t *Time) UnmarshalJSON(b []byte) error { - p := strings.Split(string(b), ".") - switch len(p) { - case 1: - v, err := strconv.ParseInt(string(p[0]), 10, 64) - if err != nil { - return err - } - *t = Time(v * second) - - case 2: - v, err := strconv.ParseInt(string(p[0]), 10, 64) - if err != nil { - return err - } - v *= second - - prec := dotPrecision - len(p[1]) - if prec < 0 { - p[1] = p[1][:dotPrecision] - } else if prec > 0 { - p[1] = p[1] + strings.Repeat("0", prec) - } - - va, err := strconv.ParseInt(p[1], 10, 32) - if err != nil { - return err - } - - *t = Time(v + va) - - default: - return fmt.Errorf("invalid time %q", string(b)) - } - return nil -} - -// Duration wraps time.Duration. It is used to parse the custom duration format -// from YAML. -// This type should not propagate beyond the scope of input/output processing. -type Duration time.Duration - -// StringToDuration parses a string into a time.Duration, assuming that a year -// a day always has 24h. -func ParseDuration(durationStr string) (Duration, error) { - matches := durationRE.FindStringSubmatch(durationStr) - if len(matches) != 3 { - return 0, fmt.Errorf("not a valid duration string: %q", durationStr) - } - durSeconds, _ := strconv.Atoi(matches[1]) - dur := time.Duration(durSeconds) * time.Second - unit := matches[2] - switch unit { - case "d": - dur *= 60 * 60 * 24 - case "h": - dur *= 60 * 60 - case "m": - dur *= 60 - case "s": - dur *= 1 - default: - return 0, fmt.Errorf("invalid time unit in duration string: %q", unit) - } - return Duration(dur), nil -} - -var durationRE = regexp.MustCompile("^([0-9]+)([ywdhms]+)$") - -func (d Duration) String() string { - seconds := int64(time.Duration(d) / time.Second) - factors := map[string]int64{ - "d": 60 * 60 * 24, - "h": 60 * 60, - "m": 60, - "s": 1, - } - unit := "s" - switch int64(0) { - case seconds % factors["d"]: - unit = "d" - case seconds % factors["h"]: - unit = "h" - case seconds % factors["m"]: - unit = "m" - } - return fmt.Sprintf("%v%v", seconds/factors[unit], unit) -} - -// MarshalYAML implements the yaml.Marshaler interface. -func (d Duration) MarshalYAML() (interface{}, error) { - return d.String(), nil -} - -// UnmarshalYAML implements the yaml.Unmarshaler interface. -func (d *Duration) UnmarshalYAML(unmarshal func(interface{}) error) error { - var s string - if err := unmarshal(&s); err != nil { - return err - } - dur, err := ParseDuration(s) - if err != nil { - return err - } - *d = dur - return nil -} diff --git a/1.4/vendor/github.com/prometheus/common/model/value.go b/1.4/vendor/github.com/prometheus/common/model/value.go deleted file mode 100644 index 10ffb0bd..00000000 --- a/1.4/vendor/github.com/prometheus/common/model/value.go +++ /dev/null @@ -1,395 +0,0 @@ -// Copyright 2013 The Prometheus Authors -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package model - -import ( - "encoding/json" - "fmt" - "sort" - "strconv" - "strings" -) - -// A SampleValue is a representation of a value for a given sample at a given -// time. -type SampleValue float64 - -// MarshalJSON implements json.Marshaler. -func (v SampleValue) MarshalJSON() ([]byte, error) { - return json.Marshal(v.String()) -} - -// UnmarshalJSON implements json.Unmarshaler. -func (v *SampleValue) UnmarshalJSON(b []byte) error { - if len(b) < 2 || b[0] != '"' || b[len(b)-1] != '"' { - return fmt.Errorf("sample value must be a quoted string") - } - f, err := strconv.ParseFloat(string(b[1:len(b)-1]), 64) - if err != nil { - return err - } - *v = SampleValue(f) - return nil -} - -func (v SampleValue) Equal(o SampleValue) bool { - return v == o -} - -func (v SampleValue) String() string { - return strconv.FormatFloat(float64(v), 'f', -1, 64) -} - -// SamplePair pairs a SampleValue with a Timestamp. -type SamplePair struct { - Timestamp Time - Value SampleValue -} - -// MarshalJSON implements json.Marshaler. -func (s SamplePair) MarshalJSON() ([]byte, error) { - t, err := json.Marshal(s.Timestamp) - if err != nil { - return nil, err - } - v, err := json.Marshal(s.Value) - if err != nil { - return nil, err - } - return []byte(fmt.Sprintf("[%s,%s]", t, v)), nil -} - -// UnmarshalJSON implements json.Unmarshaler. -func (s *SamplePair) UnmarshalJSON(b []byte) error { - v := [...]json.Unmarshaler{&s.Timestamp, &s.Value} - return json.Unmarshal(b, &v) -} - -// Equal returns true if this SamplePair and o have equal Values and equal -// Timestamps. -func (s *SamplePair) Equal(o *SamplePair) bool { - return s == o || (s.Value == o.Value && s.Timestamp.Equal(o.Timestamp)) -} - -func (s SamplePair) String() string { - return fmt.Sprintf("%s @[%s]", s.Value, s.Timestamp) -} - -// Sample is a sample pair associated with a metric. -type Sample struct { - Metric Metric `json:"metric"` - Value SampleValue `json:"value"` - Timestamp Time `json:"timestamp"` -} - -// Equal compares first the metrics, then the timestamp, then the value. -func (s *Sample) Equal(o *Sample) bool { - if s == o { - return true - } - - if !s.Metric.Equal(o.Metric) { - return false - } - if !s.Timestamp.Equal(o.Timestamp) { - return false - } - if s.Value != o.Value { - return false - } - - return true -} - -func (s Sample) String() string { - return fmt.Sprintf("%s => %s", s.Metric, SamplePair{ - Timestamp: s.Timestamp, - Value: s.Value, - }) -} - -// MarshalJSON implements json.Marshaler. -func (s Sample) MarshalJSON() ([]byte, error) { - v := struct { - Metric Metric `json:"metric"` - Value SamplePair `json:"value"` - }{ - Metric: s.Metric, - Value: SamplePair{ - Timestamp: s.Timestamp, - Value: s.Value, - }, - } - - return json.Marshal(&v) -} - -// UnmarshalJSON implements json.Unmarshaler. -func (s *Sample) UnmarshalJSON(b []byte) error { - v := struct { - Metric Metric `json:"metric"` - Value SamplePair `json:"value"` - }{ - Metric: s.Metric, - Value: SamplePair{ - Timestamp: s.Timestamp, - Value: s.Value, - }, - } - - if err := json.Unmarshal(b, &v); err != nil { - return err - } - - s.Metric = v.Metric - s.Timestamp = v.Value.Timestamp - s.Value = v.Value.Value - - return nil -} - -// Samples is a sortable Sample slice. It implements sort.Interface. -type Samples []*Sample - -func (s Samples) Len() int { - return len(s) -} - -// Less compares first the metrics, then the timestamp. -func (s Samples) Less(i, j int) bool { - switch { - case s[i].Metric.Before(s[j].Metric): - return true - case s[j].Metric.Before(s[i].Metric): - return false - case s[i].Timestamp.Before(s[j].Timestamp): - return true - default: - return false - } -} - -func (s Samples) Swap(i, j int) { - s[i], s[j] = s[j], s[i] -} - -// Equal compares two sets of samples and returns true if they are equal. -func (s Samples) Equal(o Samples) bool { - if len(s) != len(o) { - return false - } - - for i, sample := range s { - if !sample.Equal(o[i]) { - return false - } - } - return true -} - -// SampleStream is a stream of Values belonging to an attached COWMetric. -type SampleStream struct { - Metric Metric `json:"metric"` - Values []SamplePair `json:"values"` -} - -func (ss SampleStream) String() string { - vals := make([]string, len(ss.Values)) - for i, v := range ss.Values { - vals[i] = v.String() - } - return fmt.Sprintf("%s =>\n%s", ss.Metric, strings.Join(vals, "\n")) -} - -// Value is a generic interface for values resulting from a query evaluation. -type Value interface { - Type() ValueType - String() string -} - -func (Matrix) Type() ValueType { return ValMatrix } -func (Vector) Type() ValueType { return ValVector } -func (*Scalar) Type() ValueType { return ValScalar } -func (*String) Type() ValueType { return ValString } - -type ValueType int - -const ( - ValNone ValueType = iota - ValScalar - ValVector - ValMatrix - ValString -) - -// MarshalJSON implements json.Marshaler. -func (et ValueType) MarshalJSON() ([]byte, error) { - return json.Marshal(et.String()) -} - -func (et *ValueType) UnmarshalJSON(b []byte) error { - var s string - if err := json.Unmarshal(b, &s); err != nil { - return err - } - switch s { - case "": - *et = ValNone - case "scalar": - *et = ValScalar - case "vector": - *et = ValVector - case "matrix": - *et = ValMatrix - case "string": - *et = ValString - default: - return fmt.Errorf("unknown value type %q", s) - } - return nil -} - -func (e ValueType) String() string { - switch e { - case ValNone: - return "" - case ValScalar: - return "scalar" - case ValVector: - return "vector" - case ValMatrix: - return "matrix" - case ValString: - return "string" - } - panic("ValueType.String: unhandled value type") -} - -// Scalar is a scalar value evaluated at the set timestamp. -type Scalar struct { - Value SampleValue `json:"value"` - Timestamp Time `json:"timestamp"` -} - -func (s Scalar) String() string { - return fmt.Sprintf("scalar: %v @[%v]", s.Value, s.Timestamp) -} - -// MarshalJSON implements json.Marshaler. -func (s Scalar) MarshalJSON() ([]byte, error) { - v := strconv.FormatFloat(float64(s.Value), 'f', -1, 64) - return json.Marshal([...]interface{}{s.Timestamp, string(v)}) -} - -// UnmarshalJSON implements json.Unmarshaler. -func (s *Scalar) UnmarshalJSON(b []byte) error { - var f string - v := [...]interface{}{&s.Timestamp, &f} - - if err := json.Unmarshal(b, &v); err != nil { - return err - } - - value, err := strconv.ParseFloat(f, 64) - if err != nil { - return fmt.Errorf("error parsing sample value: %s", err) - } - s.Value = SampleValue(value) - return nil -} - -// String is a string value evaluated at the set timestamp. -type String struct { - Value string `json:"value"` - Timestamp Time `json:"timestamp"` -} - -func (s *String) String() string { - return s.Value -} - -// MarshalJSON implements json.Marshaler. -func (s String) MarshalJSON() ([]byte, error) { - return json.Marshal([]interface{}{s.Timestamp, s.Value}) -} - -// UnmarshalJSON implements json.Unmarshaler. -func (s *String) UnmarshalJSON(b []byte) error { - v := [...]interface{}{&s.Timestamp, &s.Value} - return json.Unmarshal(b, &v) -} - -// Vector is basically only an alias for Samples, but the -// contract is that in a Vector, all Samples have the same timestamp. -type Vector []*Sample - -func (vec Vector) String() string { - entries := make([]string, len(vec)) - for i, s := range vec { - entries[i] = s.String() - } - return strings.Join(entries, "\n") -} - -func (vec Vector) Len() int { return len(vec) } -func (vec Vector) Swap(i, j int) { vec[i], vec[j] = vec[j], vec[i] } - -// Less compares first the metrics, then the timestamp. -func (vec Vector) Less(i, j int) bool { - switch { - case vec[i].Metric.Before(vec[j].Metric): - return true - case vec[j].Metric.Before(vec[i].Metric): - return false - case vec[i].Timestamp.Before(vec[j].Timestamp): - return true - default: - return false - } -} - -// Equal compares two sets of samples and returns true if they are equal. -func (vec Vector) Equal(o Vector) bool { - if len(vec) != len(o) { - return false - } - - for i, sample := range vec { - if !sample.Equal(o[i]) { - return false - } - } - return true -} - -// Matrix is a list of time series. -type Matrix []*SampleStream - -func (m Matrix) Len() int { return len(m) } -func (m Matrix) Less(i, j int) bool { return m[i].Metric.Before(m[j].Metric) } -func (m Matrix) Swap(i, j int) { m[i], m[j] = m[j], m[i] } - -func (mat Matrix) String() string { - matCp := make(Matrix, len(mat)) - copy(matCp, mat) - sort.Sort(matCp) - - strs := make([]string, len(matCp)) - - for i, ss := range matCp { - strs[i] = ss.String() - } - - return strings.Join(strs, "\n") -} diff --git a/1.4/vendor/github.com/prometheus/procfs/AUTHORS.md b/1.4/vendor/github.com/prometheus/procfs/AUTHORS.md deleted file mode 100644 index f1c27ccb..00000000 --- a/1.4/vendor/github.com/prometheus/procfs/AUTHORS.md +++ /dev/null @@ -1,20 +0,0 @@ -The Prometheus project was started by Matt T. Proud (emeritus) and -Julius Volz in 2012. - -Maintainers of this repository: - -* Tobias Schmidt - -The following individuals have contributed code to this repository -(listed in alphabetical order): - -* Armen Baghumian -* Bjoern Rabenstein -* David Cournapeau -* Ji-Hoon, Seol -* Jonas Große Sundrup -* Julius Volz -* Matthias Rampke -* Nicky Gerritsen -* Rémi Audebert -* Tobias Schmidt diff --git a/1.4/vendor/github.com/prometheus/procfs/CONTRIBUTING.md b/1.4/vendor/github.com/prometheus/procfs/CONTRIBUTING.md deleted file mode 100644 index 5705f0fb..00000000 --- a/1.4/vendor/github.com/prometheus/procfs/CONTRIBUTING.md +++ /dev/null @@ -1,18 +0,0 @@ -# Contributing - -Prometheus uses GitHub to manage reviews of pull requests. - -* If you have a trivial fix or improvement, go ahead and create a pull - request, addressing (with `@...`) one or more of the maintainers - (see [AUTHORS.md](AUTHORS.md)) in the description of the pull request. - -* If you plan to do something more involved, first discuss your ideas - on our [mailing list](https://groups.google.com/forum/?fromgroups#!forum/prometheus-developers). - This will avoid unnecessary work and surely give you and us a good deal - of inspiration. - -* Relevant coding style guidelines are the [Go Code Review - Comments](https://code.google.com/p/go-wiki/wiki/CodeReviewComments) - and the _Formatting and style_ section of Peter Bourgon's [Go: Best - Practices for Production - Environments](http://peter.bourgon.org/go-in-production/#formatting-and-style). diff --git a/1.4/vendor/github.com/prometheus/procfs/LICENSE b/1.4/vendor/github.com/prometheus/procfs/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/1.4/vendor/github.com/prometheus/procfs/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/1.4/vendor/github.com/prometheus/procfs/Makefile b/1.4/vendor/github.com/prometheus/procfs/Makefile deleted file mode 100644 index e8acbbc5..00000000 --- a/1.4/vendor/github.com/prometheus/procfs/Makefile +++ /dev/null @@ -1,6 +0,0 @@ -ci: - go fmt - go vet - go test -v ./... - go get github.com/golang/lint/golint - golint *.go diff --git a/1.4/vendor/github.com/prometheus/procfs/NOTICE b/1.4/vendor/github.com/prometheus/procfs/NOTICE deleted file mode 100644 index 53c5e9aa..00000000 --- a/1.4/vendor/github.com/prometheus/procfs/NOTICE +++ /dev/null @@ -1,7 +0,0 @@ -procfs provides functions to retrieve system, kernel and process -metrics from the pseudo-filesystem proc. - -Copyright 2014-2015 The Prometheus Authors - -This product includes software developed at -SoundCloud Ltd. (http://soundcloud.com/). diff --git a/1.4/vendor/github.com/prometheus/procfs/doc.go b/1.4/vendor/github.com/prometheus/procfs/doc.go deleted file mode 100644 index e2acd6d4..00000000 --- a/1.4/vendor/github.com/prometheus/procfs/doc.go +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2014 Prometheus Team -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Package procfs provides functions to retrieve system, kernel and process -// metrics from the pseudo-filesystem proc. -// -// Example: -// -// package main -// -// import ( -// "fmt" -// "log" -// -// "github.com/prometheus/procfs" -// ) -// -// func main() { -// p, err := procfs.Self() -// if err != nil { -// log.Fatalf("could not get process: %s", err) -// } -// -// stat, err := p.NewStat() -// if err != nil { -// log.Fatalf("could not get process stat: %s", err) -// } -// -// fmt.Printf("command: %s\n", stat.Comm) -// fmt.Printf("cpu time: %fs\n", stat.CPUTime()) -// fmt.Printf("vsize: %dB\n", stat.VirtualMemory()) -// fmt.Printf("rss: %dB\n", stat.ResidentMemory()) -// } -// -package procfs diff --git a/1.4/vendor/github.com/prometheus/procfs/fs.go b/1.4/vendor/github.com/prometheus/procfs/fs.go deleted file mode 100644 index 6a8d97b1..00000000 --- a/1.4/vendor/github.com/prometheus/procfs/fs.go +++ /dev/null @@ -1,40 +0,0 @@ -package procfs - -import ( - "fmt" - "os" - "path" -) - -// FS represents the pseudo-filesystem proc, which provides an interface to -// kernel data structures. -type FS string - -// DefaultMountPoint is the common mount point of the proc filesystem. -const DefaultMountPoint = "/proc" - -// NewFS returns a new FS mounted under the given mountPoint. It will error -// if the mount point can't be read. -func NewFS(mountPoint string) (FS, error) { - info, err := os.Stat(mountPoint) - if err != nil { - return "", fmt.Errorf("could not read %s: %s", mountPoint, err) - } - if !info.IsDir() { - return "", fmt.Errorf("mount point %s is not a directory", mountPoint) - } - - return FS(mountPoint), nil -} - -func (fs FS) stat(p string) (os.FileInfo, error) { - return os.Stat(path.Join(string(fs), p)) -} - -func (fs FS) open(p string) (*os.File, error) { - return os.Open(path.Join(string(fs), p)) -} - -func (fs FS) readlink(p string) (string, error) { - return os.Readlink(path.Join(string(fs), p)) -} diff --git a/1.4/vendor/github.com/prometheus/procfs/ipvs.go b/1.4/vendor/github.com/prometheus/procfs/ipvs.go deleted file mode 100644 index 26da5000..00000000 --- a/1.4/vendor/github.com/prometheus/procfs/ipvs.go +++ /dev/null @@ -1,223 +0,0 @@ -package procfs - -import ( - "bufio" - "encoding/hex" - "errors" - "fmt" - "io" - "io/ioutil" - "net" - "strconv" - "strings" -) - -// IPVSStats holds IPVS statistics, as exposed by the kernel in `/proc/net/ip_vs_stats`. -type IPVSStats struct { - // Total count of connections. - Connections uint64 - // Total incoming packages processed. - IncomingPackets uint64 - // Total outgoing packages processed. - OutgoingPackets uint64 - // Total incoming traffic. - IncomingBytes uint64 - // Total outgoing traffic. - OutgoingBytes uint64 -} - -// IPVSBackendStatus holds current metrics of one virtual / real address pair. -type IPVSBackendStatus struct { - // The local (virtual) IP address. - LocalAddress net.IP - // The local (virtual) port. - LocalPort uint16 - // The transport protocol (TCP, UDP). - Proto string - // The remote (real) IP address. - RemoteAddress net.IP - // The remote (real) port. - RemotePort uint16 - // The current number of active connections for this virtual/real address pair. - ActiveConn uint64 - // The current number of inactive connections for this virtual/real address pair. - InactConn uint64 - // The current weight of this virtual/real address pair. - Weight uint64 -} - -// NewIPVSStats reads the IPVS statistics. -func NewIPVSStats() (IPVSStats, error) { - fs, err := NewFS(DefaultMountPoint) - if err != nil { - return IPVSStats{}, err - } - - return fs.NewIPVSStats() -} - -// NewIPVSStats reads the IPVS statistics from the specified `proc` filesystem. -func (fs FS) NewIPVSStats() (IPVSStats, error) { - file, err := fs.open("net/ip_vs_stats") - if err != nil { - return IPVSStats{}, err - } - defer file.Close() - - return parseIPVSStats(file) -} - -// parseIPVSStats performs the actual parsing of `ip_vs_stats`. -func parseIPVSStats(file io.Reader) (IPVSStats, error) { - var ( - statContent []byte - statLines []string - statFields []string - stats IPVSStats - ) - - statContent, err := ioutil.ReadAll(file) - if err != nil { - return IPVSStats{}, err - } - - statLines = strings.SplitN(string(statContent), "\n", 4) - if len(statLines) != 4 { - return IPVSStats{}, errors.New("ip_vs_stats corrupt: too short") - } - - statFields = strings.Fields(statLines[2]) - if len(statFields) != 5 { - return IPVSStats{}, errors.New("ip_vs_stats corrupt: unexpected number of fields") - } - - stats.Connections, err = strconv.ParseUint(statFields[0], 16, 64) - if err != nil { - return IPVSStats{}, err - } - stats.IncomingPackets, err = strconv.ParseUint(statFields[1], 16, 64) - if err != nil { - return IPVSStats{}, err - } - stats.OutgoingPackets, err = strconv.ParseUint(statFields[2], 16, 64) - if err != nil { - return IPVSStats{}, err - } - stats.IncomingBytes, err = strconv.ParseUint(statFields[3], 16, 64) - if err != nil { - return IPVSStats{}, err - } - stats.OutgoingBytes, err = strconv.ParseUint(statFields[4], 16, 64) - if err != nil { - return IPVSStats{}, err - } - - return stats, nil -} - -// NewIPVSBackendStatus reads and returns the status of all (virtual,real) server pairs. -func NewIPVSBackendStatus() ([]IPVSBackendStatus, error) { - fs, err := NewFS(DefaultMountPoint) - if err != nil { - return []IPVSBackendStatus{}, err - } - - return fs.NewIPVSBackendStatus() -} - -// NewIPVSBackendStatus reads and returns the status of all (virtual,real) server pairs from the specified `proc` filesystem. -func (fs FS) NewIPVSBackendStatus() ([]IPVSBackendStatus, error) { - file, err := fs.open("net/ip_vs") - if err != nil { - return nil, err - } - defer file.Close() - - return parseIPVSBackendStatus(file) -} - -func parseIPVSBackendStatus(file io.Reader) ([]IPVSBackendStatus, error) { - var ( - status []IPVSBackendStatus - scanner = bufio.NewScanner(file) - proto string - localAddress net.IP - localPort uint16 - err error - ) - - for scanner.Scan() { - fields := strings.Fields(string(scanner.Text())) - if len(fields) == 0 { - continue - } - switch { - case fields[0] == "IP" || fields[0] == "Prot" || fields[1] == "RemoteAddress:Port": - continue - case fields[0] == "TCP" || fields[0] == "UDP": - if len(fields) < 2 { - continue - } - proto = fields[0] - localAddress, localPort, err = parseIPPort(fields[1]) - if err != nil { - return nil, err - } - case fields[0] == "->": - if len(fields) < 6 { - continue - } - remoteAddress, remotePort, err := parseIPPort(fields[1]) - if err != nil { - return nil, err - } - weight, err := strconv.ParseUint(fields[3], 10, 64) - if err != nil { - return nil, err - } - activeConn, err := strconv.ParseUint(fields[4], 10, 64) - if err != nil { - return nil, err - } - inactConn, err := strconv.ParseUint(fields[5], 10, 64) - if err != nil { - return nil, err - } - status = append(status, IPVSBackendStatus{ - LocalAddress: localAddress, - LocalPort: localPort, - RemoteAddress: remoteAddress, - RemotePort: remotePort, - Proto: proto, - Weight: weight, - ActiveConn: activeConn, - InactConn: inactConn, - }) - } - } - return status, nil -} - -func parseIPPort(s string) (net.IP, uint16, error) { - tmp := strings.SplitN(s, ":", 2) - - if len(tmp) != 2 { - return nil, 0, fmt.Errorf("invalid IP:Port: %s", s) - } - - if len(tmp[0]) != 8 && len(tmp[0]) != 32 { - return nil, 0, fmt.Errorf("invalid IP: %s", tmp[0]) - } - - ip, err := hex.DecodeString(tmp[0]) - if err != nil { - return nil, 0, err - } - - port, err := strconv.ParseUint(tmp[1], 16, 16) - if err != nil { - return nil, 0, err - } - - return ip, uint16(port), nil -} diff --git a/1.4/vendor/github.com/prometheus/procfs/mdstat.go b/1.4/vendor/github.com/prometheus/procfs/mdstat.go deleted file mode 100644 index 09ed6b5e..00000000 --- a/1.4/vendor/github.com/prometheus/procfs/mdstat.go +++ /dev/null @@ -1,158 +0,0 @@ -package procfs - -import ( - "fmt" - "io/ioutil" - "path" - "regexp" - "strconv" - "strings" -) - -var ( - statuslineRE = regexp.MustCompile(`(\d+) blocks .*\[(\d+)/(\d+)\] \[[U_]+\]`) - buildlineRE = regexp.MustCompile(`\((\d+)/\d+\)`) -) - -// MDStat holds info parsed from /proc/mdstat. -type MDStat struct { - // Name of the device. - Name string - // activity-state of the device. - ActivityState string - // Number of active disks. - DisksActive int64 - // Total number of disks the device consists of. - DisksTotal int64 - // Number of blocks the device holds. - BlocksTotal int64 - // Number of blocks on the device that are in sync. - BlocksSynced int64 -} - -// ParseMDStat parses an mdstat-file and returns a struct with the relevant infos. -func (fs FS) ParseMDStat() (mdstates []MDStat, err error) { - mdStatusFilePath := path.Join(string(fs), "mdstat") - content, err := ioutil.ReadFile(mdStatusFilePath) - if err != nil { - return []MDStat{}, fmt.Errorf("error parsing %s: %s", mdStatusFilePath, err) - } - - mdStatusFile := string(content) - - lines := strings.Split(mdStatusFile, "\n") - var currentMD string - - // Each md has at least the deviceline, statusline and one empty line afterwards - // so we will have probably something of the order len(lines)/3 devices - // so we use that for preallocation. - estimateMDs := len(lines) / 3 - mdStates := make([]MDStat, 0, estimateMDs) - - for i, l := range lines { - if l == "" { - // Skip entirely empty lines. - continue - } - - if l[0] == ' ' { - // Those lines are not the beginning of a md-section. - continue - } - - if strings.HasPrefix(l, "Personalities") || strings.HasPrefix(l, "unused") { - // We aren't interested in lines with general info. - continue - } - - mainLine := strings.Split(l, " ") - if len(mainLine) < 3 { - return mdStates, fmt.Errorf("error parsing mdline: %s", l) - } - currentMD = mainLine[0] // name of md-device - activityState := mainLine[2] // activity status of said md-device - - if len(lines) <= i+3 { - return mdStates, fmt.Errorf("error parsing %s: entry for %s has fewer lines than expected", mdStatusFilePath, currentMD) - } - - active, total, size, err := evalStatusline(lines[i+1]) // parse statusline, always present - if err != nil { - return mdStates, fmt.Errorf("error parsing %s: %s", mdStatusFilePath, err) - } - - // - // Now get the number of synced blocks. - // - - // Get the line number of the syncing-line. - var j int - if strings.Contains(lines[i+2], "bitmap") { // then skip the bitmap line - j = i + 3 - } else { - j = i + 2 - } - - // If device is syncing at the moment, get the number of currently synced bytes, - // otherwise that number equals the size of the device. - syncedBlocks := size - if strings.Contains(lines[j], "recovery") || strings.Contains(lines[j], "resync") { - syncedBlocks, err = evalBuildline(lines[j]) - if err != nil { - return mdStates, fmt.Errorf("error parsing %s: %s", mdStatusFilePath, err) - } - } - - mdStates = append(mdStates, MDStat{currentMD, activityState, active, total, size, syncedBlocks}) - - } - - return mdStates, nil -} - -func evalStatusline(statusline string) (active, total, size int64, err error) { - matches := statuslineRE.FindStringSubmatch(statusline) - - // +1 to make it more obvious that the whole string containing the info is also returned as matches[0]. - if len(matches) != 3+1 { - return 0, 0, 0, fmt.Errorf("unexpected number matches found in statusline: %s", statusline) - } - - size, err = strconv.ParseInt(matches[1], 10, 64) - if err != nil { - return 0, 0, 0, fmt.Errorf("%s in statusline: %s", err, statusline) - } - - total, err = strconv.ParseInt(matches[2], 10, 64) - if err != nil { - return 0, 0, 0, fmt.Errorf("%s in statusline: %s", err, statusline) - } - - active, err = strconv.ParseInt(matches[3], 10, 64) - if err != nil { - return 0, 0, 0, fmt.Errorf("%s in statusline: %s", err, statusline) - } - - return active, total, size, nil -} - -// Gets the size that has already been synced out of the sync-line. -func evalBuildline(buildline string) (int64, error) { - matches := buildlineRE.FindStringSubmatch(buildline) - - // +1 to make it more obvious that the whole string containing the info is also returned as matches[0]. - if len(matches) < 1+1 { - return 0, fmt.Errorf("too few matches found in buildline: %s", buildline) - } - - if len(matches) > 1+1 { - return 0, fmt.Errorf("too many matches found in buildline: %s", buildline) - } - - syncedSize, err := strconv.ParseInt(matches[1], 10, 64) - if err != nil { - return 0, fmt.Errorf("%s in buildline: %s", err, buildline) - } - - return syncedSize, nil -} diff --git a/1.4/vendor/github.com/prometheus/procfs/proc.go b/1.4/vendor/github.com/prometheus/procfs/proc.go deleted file mode 100644 index efc85027..00000000 --- a/1.4/vendor/github.com/prometheus/procfs/proc.go +++ /dev/null @@ -1,202 +0,0 @@ -package procfs - -import ( - "fmt" - "io/ioutil" - "os" - "path" - "strconv" - "strings" -) - -// Proc provides information about a running process. -type Proc struct { - // The process ID. - PID int - - fs FS -} - -// Procs represents a list of Proc structs. -type Procs []Proc - -func (p Procs) Len() int { return len(p) } -func (p Procs) Swap(i, j int) { p[i], p[j] = p[j], p[i] } -func (p Procs) Less(i, j int) bool { return p[i].PID < p[j].PID } - -// Self returns a process for the current process read via /proc/self. -func Self() (Proc, error) { - fs, err := NewFS(DefaultMountPoint) - if err != nil { - return Proc{}, err - } - return fs.Self() -} - -// NewProc returns a process for the given pid under /proc. -func NewProc(pid int) (Proc, error) { - fs, err := NewFS(DefaultMountPoint) - if err != nil { - return Proc{}, err - } - return fs.NewProc(pid) -} - -// AllProcs returns a list of all currently avaible processes under /proc. -func AllProcs() (Procs, error) { - fs, err := NewFS(DefaultMountPoint) - if err != nil { - return Procs{}, err - } - return fs.AllProcs() -} - -// Self returns a process for the current process. -func (fs FS) Self() (Proc, error) { - p, err := fs.readlink("self") - if err != nil { - return Proc{}, err - } - pid, err := strconv.Atoi(strings.Replace(p, string(fs), "", -1)) - if err != nil { - return Proc{}, err - } - return fs.NewProc(pid) -} - -// NewProc returns a process for the given pid. -func (fs FS) NewProc(pid int) (Proc, error) { - if _, err := fs.stat(strconv.Itoa(pid)); err != nil { - return Proc{}, err - } - return Proc{PID: pid, fs: fs}, nil -} - -// AllProcs returns a list of all currently avaible processes. -func (fs FS) AllProcs() (Procs, error) { - d, err := fs.open("") - if err != nil { - return Procs{}, err - } - defer d.Close() - - names, err := d.Readdirnames(-1) - if err != nil { - return Procs{}, fmt.Errorf("could not read %s: %s", d.Name(), err) - } - - p := Procs{} - for _, n := range names { - pid, err := strconv.ParseInt(n, 10, 64) - if err != nil { - continue - } - p = append(p, Proc{PID: int(pid), fs: fs}) - } - - return p, nil -} - -// CmdLine returns the command line of a process. -func (p Proc) CmdLine() ([]string, error) { - f, err := p.open("cmdline") - if err != nil { - return nil, err - } - defer f.Close() - - data, err := ioutil.ReadAll(f) - if err != nil { - return nil, err - } - - if len(data) < 1 { - return []string{}, nil - } - - return strings.Split(string(data[:len(data)-1]), string(byte(0))), nil -} - -// Executable returns the absolute path of the executable command of a process. -func (p Proc) Executable() (string, error) { - exe, err := p.readlink("exe") - - if os.IsNotExist(err) { - return "", nil - } - - return exe, err -} - -// FileDescriptors returns the currently open file descriptors of a process. -func (p Proc) FileDescriptors() ([]uintptr, error) { - names, err := p.fileDescriptors() - if err != nil { - return nil, err - } - - fds := make([]uintptr, len(names)) - for i, n := range names { - fd, err := strconv.ParseInt(n, 10, 32) - if err != nil { - return nil, fmt.Errorf("could not parse fd %s: %s", n, err) - } - fds[i] = uintptr(fd) - } - - return fds, nil -} - -// FileDescriptorTargets returns the targets of all file descriptors of a process. -// If a file descriptor is not a symlink to a file (like a socket), that value will be the empty string. -func (p Proc) FileDescriptorTargets() ([]string, error) { - names, err := p.fileDescriptors() - if err != nil { - return nil, err - } - - targets := make([]string, len(names)) - - for i, name := range names { - target, err := p.readlink("fd/" + name) - if err == nil { - targets[i] = target - } - } - - return targets, nil -} - -// FileDescriptorsLen returns the number of currently open file descriptors of -// a process. -func (p Proc) FileDescriptorsLen() (int, error) { - fds, err := p.fileDescriptors() - if err != nil { - return 0, err - } - - return len(fds), nil -} - -func (p Proc) fileDescriptors() ([]string, error) { - d, err := p.open("fd") - if err != nil { - return nil, err - } - defer d.Close() - - names, err := d.Readdirnames(-1) - if err != nil { - return nil, fmt.Errorf("could not read %s: %s", d.Name(), err) - } - - return names, nil -} - -func (p Proc) open(pa string) (*os.File, error) { - return p.fs.open(path.Join(strconv.Itoa(p.PID), pa)) -} - -func (p Proc) readlink(pa string) (string, error) { - return p.fs.readlink(path.Join(strconv.Itoa(p.PID), pa)) -} diff --git a/1.4/vendor/github.com/prometheus/procfs/proc_io.go b/1.4/vendor/github.com/prometheus/procfs/proc_io.go deleted file mode 100644 index 7c6dc869..00000000 --- a/1.4/vendor/github.com/prometheus/procfs/proc_io.go +++ /dev/null @@ -1,54 +0,0 @@ -package procfs - -import ( - "fmt" - "io/ioutil" -) - -// ProcIO models the content of /proc//io. -type ProcIO struct { - // Chars read. - RChar uint64 - // Chars written. - WChar uint64 - // Read syscalls. - SyscR uint64 - // Write syscalls. - SyscW uint64 - // Bytes read. - ReadBytes uint64 - // Bytes written. - WriteBytes uint64 - // Bytes written, but taking into account truncation. See - // Documentation/filesystems/proc.txt in the kernel sources for - // detailed explanation. - CancelledWriteBytes int64 -} - -// NewIO creates a new ProcIO instance from a given Proc instance. -func (p Proc) NewIO() (ProcIO, error) { - pio := ProcIO{} - - f, err := p.open("io") - if err != nil { - return pio, err - } - defer f.Close() - - data, err := ioutil.ReadAll(f) - if err != nil { - return pio, err - } - - ioFormat := "rchar: %d\nwchar: %d\nsyscr: %d\nsyscw: %d\n" + - "read_bytes: %d\nwrite_bytes: %d\n" + - "cancelled_write_bytes: %d\n" - - _, err = fmt.Sscanf(string(data), ioFormat, &pio.RChar, &pio.WChar, &pio.SyscR, - &pio.SyscW, &pio.ReadBytes, &pio.WriteBytes, &pio.CancelledWriteBytes) - if err != nil { - return pio, err - } - - return pio, nil -} diff --git a/1.4/vendor/github.com/prometheus/procfs/proc_limits.go b/1.4/vendor/github.com/prometheus/procfs/proc_limits.go deleted file mode 100644 index 9f080b9f..00000000 --- a/1.4/vendor/github.com/prometheus/procfs/proc_limits.go +++ /dev/null @@ -1,111 +0,0 @@ -package procfs - -import ( - "bufio" - "fmt" - "regexp" - "strconv" -) - -// ProcLimits represents the soft limits for each of the process's resource -// limits. -type ProcLimits struct { - CPUTime int - FileSize int - DataSize int - StackSize int - CoreFileSize int - ResidentSet int - Processes int - OpenFiles int - LockedMemory int - AddressSpace int - FileLocks int - PendingSignals int - MsqqueueSize int - NicePriority int - RealtimePriority int - RealtimeTimeout int -} - -const ( - limitsFields = 3 - limitsUnlimited = "unlimited" -) - -var ( - limitsDelimiter = regexp.MustCompile(" +") -) - -// NewLimits returns the current soft limits of the process. -func (p Proc) NewLimits() (ProcLimits, error) { - f, err := p.open("limits") - if err != nil { - return ProcLimits{}, err - } - defer f.Close() - - var ( - l = ProcLimits{} - s = bufio.NewScanner(f) - ) - for s.Scan() { - fields := limitsDelimiter.Split(s.Text(), limitsFields) - if len(fields) != limitsFields { - return ProcLimits{}, fmt.Errorf( - "couldn't parse %s line %s", f.Name(), s.Text()) - } - - switch fields[0] { - case "Max cpu time": - l.CPUTime, err = parseInt(fields[1]) - case "Max file size": - l.FileLocks, err = parseInt(fields[1]) - case "Max data size": - l.DataSize, err = parseInt(fields[1]) - case "Max stack size": - l.StackSize, err = parseInt(fields[1]) - case "Max core file size": - l.CoreFileSize, err = parseInt(fields[1]) - case "Max resident set": - l.ResidentSet, err = parseInt(fields[1]) - case "Max processes": - l.Processes, err = parseInt(fields[1]) - case "Max open files": - l.OpenFiles, err = parseInt(fields[1]) - case "Max locked memory": - l.LockedMemory, err = parseInt(fields[1]) - case "Max address space": - l.AddressSpace, err = parseInt(fields[1]) - case "Max file locks": - l.FileLocks, err = parseInt(fields[1]) - case "Max pending signals": - l.PendingSignals, err = parseInt(fields[1]) - case "Max msgqueue size": - l.MsqqueueSize, err = parseInt(fields[1]) - case "Max nice priority": - l.NicePriority, err = parseInt(fields[1]) - case "Max realtime priority": - l.RealtimePriority, err = parseInt(fields[1]) - case "Max realtime timeout": - l.RealtimeTimeout, err = parseInt(fields[1]) - } - - if err != nil { - return ProcLimits{}, err - } - } - - return l, s.Err() -} - -func parseInt(s string) (int, error) { - if s == limitsUnlimited { - return -1, nil - } - i, err := strconv.ParseInt(s, 10, 32) - if err != nil { - return 0, fmt.Errorf("couldn't parse value %s: %s", s, err) - } - return int(i), nil -} diff --git a/1.4/vendor/github.com/prometheus/procfs/proc_stat.go b/1.4/vendor/github.com/prometheus/procfs/proc_stat.go deleted file mode 100644 index 30a403b6..00000000 --- a/1.4/vendor/github.com/prometheus/procfs/proc_stat.go +++ /dev/null @@ -1,175 +0,0 @@ -package procfs - -import ( - "bytes" - "fmt" - "io/ioutil" - "os" -) - -// Originally, this USER_HZ value was dynamically retrieved via a sysconf call which -// required cgo. However, that caused a lot of problems regarding -// cross-compilation. Alternatives such as running a binary to determine the -// value, or trying to derive it in some other way were all problematic. -// After much research it was determined that USER_HZ is actually hardcoded to -// 100 on all Go-supported platforms as of the time of this writing. This is -// why we decided to hardcode it here as well. It is not impossible that there -// could be systems with exceptions, but they should be very exotic edge cases, -// and in that case, the worst outcome will be two misreported metrics. -// -// See also the following discussions: -// -// - https://github.com/prometheus/node_exporter/issues/52 -// - https://github.com/prometheus/procfs/pull/2 -// - http://stackoverflow.com/questions/17410841/how-does-user-hz-solve-the-jiffy-scaling-issue -const userHZ = 100 - -// ProcStat provides status information about the process, -// read from /proc/[pid]/stat. -type ProcStat struct { - // The process ID. - PID int - // The filename of the executable. - Comm string - // The process state. - State string - // The PID of the parent of this process. - PPID int - // The process group ID of the process. - PGRP int - // The session ID of the process. - Session int - // The controlling terminal of the process. - TTY int - // The ID of the foreground process group of the controlling terminal of - // the process. - TPGID int - // The kernel flags word of the process. - Flags uint - // The number of minor faults the process has made which have not required - // loading a memory page from disk. - MinFlt uint - // The number of minor faults that the process's waited-for children have - // made. - CMinFlt uint - // The number of major faults the process has made which have required - // loading a memory page from disk. - MajFlt uint - // The number of major faults that the process's waited-for children have - // made. - CMajFlt uint - // Amount of time that this process has been scheduled in user mode, - // measured in clock ticks. - UTime uint - // Amount of time that this process has been scheduled in kernel mode, - // measured in clock ticks. - STime uint - // Amount of time that this process's waited-for children have been - // scheduled in user mode, measured in clock ticks. - CUTime uint - // Amount of time that this process's waited-for children have been - // scheduled in kernel mode, measured in clock ticks. - CSTime uint - // For processes running a real-time scheduling policy, this is the negated - // scheduling priority, minus one. - Priority int - // The nice value, a value in the range 19 (low priority) to -20 (high - // priority). - Nice int - // Number of threads in this process. - NumThreads int - // The time the process started after system boot, the value is expressed - // in clock ticks. - Starttime uint64 - // Virtual memory size in bytes. - VSize int - // Resident set size in pages. - RSS int - - fs FS -} - -// NewStat returns the current status information of the process. -func (p Proc) NewStat() (ProcStat, error) { - f, err := p.open("stat") - if err != nil { - return ProcStat{}, err - } - defer f.Close() - - data, err := ioutil.ReadAll(f) - if err != nil { - return ProcStat{}, err - } - - var ( - ignore int - - s = ProcStat{PID: p.PID, fs: p.fs} - l = bytes.Index(data, []byte("(")) - r = bytes.LastIndex(data, []byte(")")) - ) - - if l < 0 || r < 0 { - return ProcStat{}, fmt.Errorf( - "unexpected format, couldn't extract comm: %s", - data, - ) - } - - s.Comm = string(data[l+1 : r]) - _, err = fmt.Fscan( - bytes.NewBuffer(data[r+2:]), - &s.State, - &s.PPID, - &s.PGRP, - &s.Session, - &s.TTY, - &s.TPGID, - &s.Flags, - &s.MinFlt, - &s.CMinFlt, - &s.MajFlt, - &s.CMajFlt, - &s.UTime, - &s.STime, - &s.CUTime, - &s.CSTime, - &s.Priority, - &s.Nice, - &s.NumThreads, - &ignore, - &s.Starttime, - &s.VSize, - &s.RSS, - ) - if err != nil { - return ProcStat{}, err - } - - return s, nil -} - -// VirtualMemory returns the virtual memory size in bytes. -func (s ProcStat) VirtualMemory() int { - return s.VSize -} - -// ResidentMemory returns the resident memory size in bytes. -func (s ProcStat) ResidentMemory() int { - return s.RSS * os.Getpagesize() -} - -// StartTime returns the unix timestamp of the process in seconds. -func (s ProcStat) StartTime() (float64, error) { - stat, err := s.fs.NewStat() - if err != nil { - return 0, err - } - return float64(stat.BootTime) + (float64(s.Starttime) / userHZ), nil -} - -// CPUTime returns the total CPU user and system time in seconds. -func (s ProcStat) CPUTime() float64 { - return float64(s.UTime+s.STime) / userHZ -} diff --git a/1.4/vendor/github.com/prometheus/procfs/stat.go b/1.4/vendor/github.com/prometheus/procfs/stat.go deleted file mode 100644 index 26fefb0f..00000000 --- a/1.4/vendor/github.com/prometheus/procfs/stat.go +++ /dev/null @@ -1,55 +0,0 @@ -package procfs - -import ( - "bufio" - "fmt" - "strconv" - "strings" -) - -// Stat represents kernel/system statistics. -type Stat struct { - // Boot time in seconds since the Epoch. - BootTime int64 -} - -// NewStat returns kernel/system statistics read from /proc/stat. -func NewStat() (Stat, error) { - fs, err := NewFS(DefaultMountPoint) - if err != nil { - return Stat{}, err - } - - return fs.NewStat() -} - -// NewStat returns an information about current kernel/system statistics. -func (fs FS) NewStat() (Stat, error) { - f, err := fs.open("stat") - if err != nil { - return Stat{}, err - } - defer f.Close() - - s := bufio.NewScanner(f) - for s.Scan() { - line := s.Text() - if !strings.HasPrefix(line, "btime") { - continue - } - fields := strings.Fields(line) - if len(fields) != 2 { - return Stat{}, fmt.Errorf("couldn't parse %s line %s", f.Name(), line) - } - i, err := strconv.ParseInt(fields[1], 10, 32) - if err != nil { - return Stat{}, fmt.Errorf("couldn't parse %s: %s", fields[1], err) - } - return Stat{BootTime: i}, nil - } - if err := s.Err(); err != nil { - return Stat{}, fmt.Errorf("couldn't parse %s: %s", f.Name(), err) - } - - return Stat{}, fmt.Errorf("couldn't parse %s, missing btime", f.Name()) -} diff --git a/1.4/vendor/github.com/spf13/pflag/.travis.yml b/1.4/vendor/github.com/spf13/pflag/.travis.yml new file mode 100644 index 00000000..580ad22f --- /dev/null +++ b/1.4/vendor/github.com/spf13/pflag/.travis.yml @@ -0,0 +1,17 @@ +sudo: false + +language: go + +go: + - 1.5.4 + - 1.6.3 + - tip + +install: + - go get github.com/golang/lint/golint + - export PATH=$GOPATH/bin:$PATH + - go install ./... + +script: + - verify/all.sh -v + - go test ./... diff --git a/1.4/vendor/github.com/ugorji/go/codec/prebuild.sh b/1.4/vendor/github.com/ugorji/go/codec/prebuild.sh new file mode 100755 index 00000000..98f44248 --- /dev/null +++ b/1.4/vendor/github.com/ugorji/go/codec/prebuild.sh @@ -0,0 +1,199 @@ +#!/bin/bash + +# _needgen is a helper function to tell if we need to generate files for msgp, codecgen. +_needgen() { + local a="$1" + zneedgen=0 + if [[ ! -e "$a" ]] + then + zneedgen=1 + echo 1 + return 0 + fi + for i in `ls -1 *.go.tmpl gen.go values_test.go` + do + if [[ "$a" -ot "$i" ]] + then + zneedgen=1 + echo 1 + return 0 + fi + done + echo 0 +} + +# _build generates fast-path.go and gen-helper.go. +# +# It is needed because there is some dependency between the generated code +# and the other classes. Consequently, we have to totally remove the +# generated files and put stubs in place, before calling "go run" again +# to recreate them. +_build() { + if ! [[ "${zforce}" == "1" || + "1" == $( _needgen "fast-path.generated.go" ) || + "1" == $( _needgen "gen-helper.generated.go" ) || + "1" == $( _needgen "gen.generated.go" ) || + 1 == 0 ]] + then + return 0 + fi + + # echo "Running prebuild" + if [ "${zbak}" == "1" ] + then + # echo "Backing up old generated files" + _zts=`date '+%m%d%Y_%H%M%S'` + _gg=".generated.go" + [ -e "gen-helper${_gg}" ] && mv gen-helper${_gg} gen-helper${_gg}__${_zts}.bak + [ -e "fast-path${_gg}" ] && mv fast-path${_gg} fast-path${_gg}__${_zts}.bak + # [ -e "safe${_gg}" ] && mv safe${_gg} safe${_gg}__${_zts}.bak + # [ -e "unsafe${_gg}" ] && mv unsafe${_gg} unsafe${_gg}__${_zts}.bak + else + rm -f fast-path.generated.go gen.generated.go gen-helper.generated.go \ + *safe.generated.go *_generated_test.go *.generated_ffjson_expose.go + fi + + cat > gen.generated.go <> gen.generated.go < gen-dec-map.go.tmpl + + cat >> gen.generated.go <> gen.generated.go < gen-dec-array.go.tmpl + + cat >> gen.generated.go < gen-from-tmpl.codec.generated.go < gen-from-tmpl.generated.go <>>>>>> TAGS: $ztags" + + OPTIND=1 + while getopts "xurtcinsvgzmef" flag + do + case "x$flag" in + 'xt') printf ">>>>>>> REGULAR : "; go test "-tags=$ztags" $zargs ; sleep 2 ;; + 'xc') printf ">>>>>>> CANONICAL : "; go test "-tags=$ztags" $zargs -tc; sleep 2 ;; + 'xi') printf ">>>>>>> I/O : "; go test "-tags=$ztags" $zargs -ti; sleep 2 ;; + 'xn') printf ">>>>>>> NO_SYMBOLS : "; go test "-tags=$ztags" $zargs -tn; sleep 2 ;; + 'xs') printf ">>>>>>> TO_ARRAY : "; go test "-tags=$ztags" $zargs -ts; sleep 2 ;; + 'xe') printf ">>>>>>> INTERN : "; go test "-tags=$ztags" $zargs -te; sleep 2 ;; + *) ;; + esac + done + shift $((OPTIND-1)) + + OPTIND=1 +} + +# echo ">>>>>>> RUNNING VARIATIONS OF TESTS" +if [[ "x$@" = "x" ]]; then + # All: r, x, g, gu + _run "-rtcinsm" # regular + _run "-rtcinsmz" # regular with reset + _run "-rtcinsmf" # regular with no fastpath (notfastpath) + _run "-xtcinsm" # external + _run "-gxtcinsm" # codecgen: requires external + _run "-gxutcinsm" # codecgen + unsafe +elif [[ "x$@" = "x-Z" ]]; then + # Regular + _run "-rtcinsm" # regular + _run "-rtcinsmz" # regular with reset +elif [[ "x$@" = "x-F" ]]; then + # regular with notfastpath + _run "-rtcinsmf" # regular + _run "-rtcinsmzf" # regular with reset +else + _run "$@" +fi